2017-12-07 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / libquadmath / configure
blobb32dcbc8e03c5fed01f2efc7f5934d3bd14d2c86
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GCC Quad-precision Math Library'
558 PACKAGE_TARNAME='libquadmath'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 get_gcc_base_ver
605 GENINSRC_FALSE
606 GENINSRC_TRUE
607 XCFLAGS
608 BUILD_LIBQUADMATH_FALSE
609 BUILD_LIBQUADMATH_TRUE
610 LIBQUAD_USE_SYMVER_SUN_FALSE
611 LIBQUAD_USE_SYMVER_SUN_TRUE
612 LIBQUAD_USE_SYMVER_GNU_FALSE
613 LIBQUAD_USE_SYMVER_GNU_TRUE
614 LIBQUAD_USE_SYMVER_FALSE
615 LIBQUAD_USE_SYMVER_TRUE
616 toolexeclibdir
617 toolexecdir
618 MAINT
619 MAINTAINER_MODE_FALSE
620 MAINTAINER_MODE_TRUE
621 enable_static
622 enable_shared
623 lt_host_flags
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 RANLIB
631 OBJDUMP
632 LN_S
634 ac_ct_DUMPBIN
635 DUMPBIN
637 FGREP
639 LIBTOOL
640 REPORT_BUGS_TEXI
641 REPORT_BUGS_TO
642 BUILD_INFO_FALSE
643 BUILD_INFO_TRUE
644 EGREP
645 GREP
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 am__nodep
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 multi_basedir
688 target_noncanonical
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_multilib
743 enable_version_specific_runtime_libs
744 enable_dependency_tracking
745 with_bugurl
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 enable_libtool_lock
752 enable_maintainer_mode
753 enable_symvers
754 enable_cet
755 enable_generated_files_in_srcdir
756 with_gcc_major_version_only
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP'
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
817 ac_prev=
818 ac_dashdash=
819 for ac_option
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
833 # Accept the important Cygnus configure options, so we can diagnose typos.
835 case $ac_dashdash$ac_option in
837 ac_dashdash=yes ;;
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
856 --config-cache | -C)
857 cache_file=config.cache ;;
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information."
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 esac
1174 done
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1260 /^X\(\/\/\)$/{
1261 s//\1/
1264 /^X\(\/\).*/{
1265 s//\1/
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1273 else
1274 ac_srcdir_defaulted=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1363 cat <<\_ACEOF
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1380 esac
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-multilib build many library versions (default)
1388 --enable-version-specific-runtime-libs
1389 specify that runtime libraries should be installed
1390 in a compiler-specific directory
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --enable-maintainer-mode enable make rules and dependencies not useful
1399 (and sometimes confusing) to the casual installer
1400 --disable-symvers disable symbol versioning for libquadmath
1401 --enable-cet enable Intel CET in target libraries
1402 [default=default]
1403 --enable-generated-files-in-srcdir
1404 put copies of generated files in source dir intended
1405 for creating source tarballs for users without
1406 texinfo bison or flex
1408 Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-bugurl=URL Direct users to URL to report a bug
1412 --with-pic try to use only PIC/non-PIC objects [default=use
1413 both]
1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1415 --with-gcc-major-version-only
1416 use only GCC major number in filesystem paths
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1431 Report bugs to the package provider.
1432 _ACEOF
1433 ac_status=$?
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1484 else
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 fi || ac_status=$?
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1488 done
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493 cat <<\_ACEOF
1494 GCC Quad-precision Math Library configure 0.1
1495 generated by GNU Autoconf 2.64
1497 Copyright (C) 2009 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501 exit
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1539 ac_retval=1
1541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542 return $ac_retval
1544 } # ac_fn_c_try_compile
1546 # ac_fn_c_try_cpp LINENO
1547 # ----------------------
1548 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_cpp ()
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_cpp conftest.$ac_ext"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } >/dev/null && {
1568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 }; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1576 ac_retval=1
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 return $ac_retval
1581 } # ac_fn_c_try_cpp
1583 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586 # the include files in INCLUDES and setting the cache variable VAR
1587 # accordingly.
1588 ac_fn_c_check_header_mongrel ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1595 $as_echo_n "(cached) " >&6
1597 eval ac_res=\$$3
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1600 else
1601 # Is the header compilable?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603 $as_echo_n "checking $2 usability... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610 ac_header_compiler=yes
1611 else
1612 ac_header_compiler=no
1614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616 $as_echo "$ac_header_compiler" >&6; }
1618 # Is the header present?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620 $as_echo_n "checking $2 presence... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_cpp "$LINENO"; then :
1626 ac_header_preproc=yes
1627 else
1628 ac_header_preproc=no
1630 rm -f conftest.err conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632 $as_echo "$ac_header_preproc" >&6; }
1634 # So? What about this header?
1635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1636 yes:no: )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642 no:yes:* )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 esac
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 eval "$3=\$ac_header_compiler"
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 } # ac_fn_c_check_header_mongrel
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=$ac_status
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1710 } # ac_fn_c_try_run
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 } # ac_fn_c_check_header_compile
1743 # ac_fn_c_try_link LINENO
1744 # -----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_link ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 $as_test_x conftest$ac_exeext
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 return $ac_retval
1787 } # ac_fn_c_try_link
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 if test x$gcc_no_link = xyes; then
1801 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1814 #ifdef __STDC__
1815 # include <limits.h>
1816 #else
1817 # include <assert.h>
1818 #endif
1820 #undef $2
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1837 main ()
1839 return $2 ();
1841 return 0;
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846 else
1847 eval "$3=no"
1849 rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 } # ac_fn_c_check_func
1858 cat >config.log <<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1862 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1863 generated by GNU Autoconf 2.64. Invocation command line was
1865 $ $0 $@
1867 _ACEOF
1868 exec 5>>config.log
1870 cat <<_ASUNAME
1871 ## --------- ##
1872 ## Platform. ##
1873 ## --------- ##
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1884 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1892 _ASUNAME
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 $as_echo "PATH: $as_dir"
1900 done
1901 IFS=$as_save_IFS
1903 } >&5
1905 cat >&5 <<_ACEOF
1908 ## ----------- ##
1909 ## Core tests. ##
1910 ## ----------- ##
1912 _ACEOF
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1920 ac_configure_args=
1921 ac_configure_args0=
1922 ac_configure_args1=
1923 ac_must_keep_next=false
1924 for ac_pass in 1 2
1926 for ac_arg
1928 case $ac_arg in
1929 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931 | -silent | --silent | --silen | --sile | --sil)
1932 continue ;;
1933 *\'*)
1934 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 esac
1936 case $ac_pass in
1937 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1939 as_fn_append ac_configure_args1 " '$ac_arg'"
1940 if test $ac_must_keep_next = true; then
1941 ac_must_keep_next=false # Got value, back to normal.
1942 else
1943 case $ac_arg in
1944 *=* | --config-cache | -C | -disable-* | --disable-* \
1945 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947 | -with-* | --with-* | -without-* | --without-* | --x)
1948 case "$ac_configure_args0 " in
1949 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950 esac
1952 -* ) ac_must_keep_next=true ;;
1953 esac
1955 as_fn_append ac_configure_args " '$ac_arg'"
1957 esac
1958 done
1959 done
1960 { ac_configure_args0=; unset ac_configure_args0;}
1961 { ac_configure_args1=; unset ac_configure_args1;}
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log. We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969 # Save into config.log some information that might help in debugging.
1971 echo
1973 cat <<\_ASBOX
1974 ## ---------------- ##
1975 ## Cache variables. ##
1976 ## ---------------- ##
1977 _ASBOX
1978 echo
1979 # The following way of writing the cache mishandles newlines in values,
1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in #(
1984 *${as_nl}*)
1985 case $ac_var in #(
1986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 esac
1989 case $ac_var in #(
1990 _ | IFS | as_nl) ;; #(
1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992 *) { eval $ac_var=; unset $ac_var;} ;;
1993 esac ;;
1994 esac
1995 done
1996 (set) 2>&1 |
1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998 *${as_nl}ac_space=\ *)
1999 sed -n \
2000 "s/'\''/'\''\\\\'\'''\''/g;
2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 ;; #(
2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 esac |
2007 sort
2009 echo
2011 cat <<\_ASBOX
2012 ## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##
2015 _ASBOX
2016 echo
2017 for ac_var in $ac_subst_vars
2019 eval ac_val=\$$ac_var
2020 case $ac_val in
2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 esac
2023 $as_echo "$ac_var='\''$ac_val'\''"
2024 done | sort
2025 echo
2027 if test -n "$ac_subst_files"; then
2028 cat <<\_ASBOX
2029 ## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##
2032 _ASBOX
2033 echo
2034 for ac_var in $ac_subst_files
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2045 if test -s confdefs.h; then
2046 cat <<\_ASBOX
2047 ## ----------- ##
2048 ## confdefs.h. ##
2049 ## ----------- ##
2050 _ASBOX
2051 echo
2052 cat confdefs.h
2053 echo
2055 test "$ac_signal" != 0 &&
2056 $as_echo "$as_me: caught signal $ac_signal"
2057 $as_echo "$as_me: exit $exit_status"
2058 } >&5
2059 rm -f core *.core core.conftest.* &&
2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061 exit $exit_status
2063 for ac_signal in 1 2 13 15; do
2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065 done
2066 ac_signal=0
2068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2069 rm -f -r conftest* confdefs.h
2071 $as_echo "/* confdefs.h */" > confdefs.h
2073 # Predefined preprocessor variables.
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_NAME "$PACKAGE_NAME"
2077 _ACEOF
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_STRING "$PACKAGE_STRING"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_URL "$PACKAGE_URL"
2097 _ACEOF
2100 # Let the site file select an alternate cache file if it wants to.
2101 # Prefer an explicitly selected file to automatically selected ones.
2102 ac_site_file1=NONE
2103 ac_site_file2=NONE
2104 if test -n "$CONFIG_SITE"; then
2105 ac_site_file1=$CONFIG_SITE
2106 elif test "x$prefix" != xNONE; then
2107 ac_site_file1=$prefix/share/config.site
2108 ac_site_file2=$prefix/etc/config.site
2109 else
2110 ac_site_file1=$ac_default_prefix/share/config.site
2111 ac_site_file2=$ac_default_prefix/etc/config.site
2113 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2115 test "x$ac_site_file" = xNONE && continue
2116 if test -r "$ac_site_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119 sed 's/^/| /' "$ac_site_file" >&5
2120 . "$ac_site_file"
2122 done
2124 if test -r "$cache_file"; then
2125 # Some versions of bash will fail to source /dev/null (special
2126 # files actually), so we avoid doing that.
2127 if test -f "$cache_file"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129 $as_echo "$as_me: loading cache $cache_file" >&6;}
2130 case $cache_file in
2131 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132 *) . "./$cache_file";;
2133 esac
2135 else
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137 $as_echo "$as_me: creating cache $cache_file" >&6;}
2138 >$cache_file
2141 # Check that the precious variables saved in the cache have kept the same
2142 # value.
2143 ac_cache_corrupted=false
2144 for ac_var in $ac_precious_vars; do
2145 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146 eval ac_new_set=\$ac_env_${ac_var}_set
2147 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148 eval ac_new_val=\$ac_env_${ac_var}_value
2149 case $ac_old_set,$ac_new_set in
2150 set,)
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,set)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,);;
2160 if test "x$ac_old_val" != "x$ac_new_val"; then
2161 # differences in whitespace do not lead to failure.
2162 ac_old_val_w=`echo x $ac_old_val`
2163 ac_new_val_w=`echo x $ac_new_val`
2164 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2166 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167 ac_cache_corrupted=:
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171 eval $ac_var=\$ac_old_val
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2174 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2176 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2177 fi;;
2178 esac
2179 # Pass precious variables to config.status.
2180 if test "$ac_new_set" = set; then
2181 case $ac_new_val in
2182 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 *) ac_arg=$ac_var=$ac_new_val ;;
2184 esac
2185 case " $ac_configure_args " in
2186 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2187 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2188 esac
2190 done
2191 if $ac_cache_corrupted; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2195 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2198 ## -------------------- ##
2199 ## Main body of script. ##
2200 ## -------------------- ##
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 ac_config_headers="$ac_config_headers config.h"
2215 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2217 # You will slowly go insane if you do not grok the following fact: when
2218 # building this library, the top-level /target/ becomes the library's /host/.
2220 # configure then causes --target to default to --host, exactly like any
2221 # other package using autoconf. Therefore, 'target' and 'host' will
2222 # always be the same. This makes sense both for native and cross compilers
2223 # just think about it for a little while. :-)
2225 # Also, if this library is being configured as part of a cross compiler, the
2226 # top-level configure script will pass the "real" host as $with_cross_host.
2228 # Do not delete or change the following two lines. For why, see
2229 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2230 ac_aux_dir=
2231 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232 for ac_t in install-sh install.sh shtool; do
2233 if test -f "$ac_dir/$ac_t"; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/$ac_t -c"
2236 break 2
2238 done
2239 done
2240 if test -z "$ac_aux_dir"; then
2241 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2244 # These three variables are undocumented and unsupported,
2245 # and are intended to be withdrawn in a future Autoconf release.
2246 # They can cause serious problems if a builder's source tree is in a directory
2247 # whose full name contains unusual characters.
2248 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2249 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2250 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253 # Make sure we can run config.sub.
2254 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2255 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2258 $as_echo_n "checking build system type... " >&6; }
2259 if test "${ac_cv_build+set}" = set; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 ac_build_alias=$build_alias
2263 test "x$ac_build_alias" = x &&
2264 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2265 test "x$ac_build_alias" = x &&
2266 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2267 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2268 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2272 $as_echo "$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2274 *-*-*) ;;
2275 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2276 esac
2277 build=$ac_cv_build
2278 ac_save_IFS=$IFS; IFS='-'
2279 set x $ac_cv_build
2280 shift
2281 build_cpu=$1
2282 build_vendor=$2
2283 shift; shift
2284 # Remember, the first character of IFS is used to create $*,
2285 # except with old shells:
2286 build_os=$*
2287 IFS=$ac_save_IFS
2288 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292 $as_echo_n "checking host system type... " >&6; }
2293 if test "${ac_cv_host+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
2295 else
2296 if test "x$host_alias" = x; then
2297 ac_cv_host=$ac_cv_build
2298 else
2299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305 $as_echo "$ac_cv_host" >&6; }
2306 case $ac_cv_host in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2325 $as_echo_n "checking target system type... " >&6; }
2326 if test "${ac_cv_target+set}" = set; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 if test "x$target_alias" = x; then
2330 ac_cv_target=$ac_cv_host
2331 else
2332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2338 $as_echo "$ac_cv_target" >&6; }
2339 case $ac_cv_target in
2340 *-*-*) ;;
2341 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2342 esac
2343 target=$ac_cv_target
2344 ac_save_IFS=$IFS; IFS='-'
2345 set x $ac_cv_target
2346 shift
2347 target_cpu=$1
2348 target_vendor=$2
2349 shift; shift
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2352 target_os=$*
2353 IFS=$ac_save_IFS
2354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2357 # The aliases save the names the user supplied, while $host etc.
2358 # will get canonicalized.
2359 test -n "$target_alias" &&
2360 test "$program_prefix$program_suffix$program_transform_name" = \
2361 NONENONEs,x,x, &&
2362 program_prefix=${target_alias}-
2364 case ${build_alias} in
2365 "") build_noncanonical=${build} ;;
2366 *) build_noncanonical=${build_alias} ;;
2367 esac
2369 case ${host_alias} in
2370 "") host_noncanonical=${build_noncanonical} ;;
2371 *) host_noncanonical=${host_alias} ;;
2372 esac
2374 case ${target_alias} in
2375 "") target_noncanonical=${host_noncanonical} ;;
2376 *) target_noncanonical=${target_alias} ;;
2377 esac
2382 # Default to --enable-multilib
2383 # Check whether --enable-multilib was given.
2384 if test "${enable_multilib+set}" = set; then :
2385 enableval=$enable_multilib; case "$enableval" in
2386 yes) multilib=yes ;;
2387 no) multilib=no ;;
2388 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2389 esac
2390 else
2391 multilib=yes
2395 # We may get other options which we leave undocumented:
2396 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2397 # See config-ml.in if you want the gory details.
2399 if test "$srcdir" = "."; then
2400 if test "$with_target_subdir" != "."; then
2401 multi_basedir="$srcdir/$with_multisrctop../.."
2402 else
2403 multi_basedir="$srcdir/$with_multisrctop.."
2405 else
2406 multi_basedir="$srcdir/.."
2410 # Even if the default multilib is not a cross compilation,
2411 # it may be that some of the other multilibs are.
2412 if test $cross_compiling = no && test $multilib = yes \
2413 && test "x${with_multisubdir}" != x ; then
2414 cross_compiling=maybe
2417 ac_config_commands="$ac_config_commands default-1"
2420 target_alias=${target_alias-$host_alias}
2423 am__api_version='1.11'
2425 # Find a good install program. We prefer a C program (faster),
2426 # so one script is as good as another. But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2431 # AIX /bin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if test "${ac_cv_path_install+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2455 /usr/ucb/* ) ;;
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2459 # by default.
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2471 else
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2475 mkdir conftest.dir
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2480 then
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482 break 3
2486 done
2487 done
2489 esac
2491 done
2492 IFS=$as_save_IFS
2494 rm -rf conftest.one conftest.two conftest.dir
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2499 else
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519 $as_echo_n "checking whether build environment is sane... " >&6; }
2520 # Just in case
2521 sleep 1
2522 echo timestamp > conftest.file
2523 # Reject unsafe characters in $srcdir or the absolute working directory
2524 # name. Accept space and tab only in the latter.
2525 am_lf='
2527 case `pwd` in
2528 *[\\\"\#\$\&\'\`$am_lf]*)
2529 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2530 esac
2531 case $srcdir in
2532 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2533 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2534 esac
2536 # Do `set' in a subshell so we don't clobber the current shell's
2537 # arguments. Must try -L first in case configure is actually a
2538 # symlink; some systems play weird games with the mod time of symlinks
2539 # (eg FreeBSD returns the mod time of the symlink's containing
2540 # directory).
2541 if (
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2544 # -L didn't work.
2545 set X `ls -t "$srcdir/configure" conftest.file`
2547 rm -f conftest.file
2548 if test "$*" != "X $srcdir/configure conftest.file" \
2549 && test "$*" != "X conftest.file $srcdir/configure"; then
2551 # If neither matched, then we have a broken ls. This can happen
2552 # if, for instance, CONFIG_SHELL is bash and it inherits a
2553 # broken ls alias from the environment. This has actually
2554 # happened. Such a system could not be considered "sane".
2555 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2556 alias in your environment" "$LINENO" 5
2559 test "$2" = conftest.file
2561 then
2562 # Ok.
2564 else
2565 as_fn_error "newly created file is older than distributed files!
2566 Check your system clock" "$LINENO" 5
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569 $as_echo "yes" >&6; }
2570 test "$program_prefix" != NONE &&
2571 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2572 # Use a double $ so make ignores it.
2573 test "$program_suffix" != NONE &&
2574 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2575 # Double any \ or $.
2576 # By default was `s,x,x', remove it if useless.
2577 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2578 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2580 # expand $ac_aux_dir to an absolute path
2581 am_aux_dir=`cd $ac_aux_dir && pwd`
2583 if test x"${MISSING+set}" != xset; then
2584 case $am_aux_dir in
2585 *\ * | *\ *)
2586 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2588 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2589 esac
2591 # Use eval to expand $SHELL
2592 if eval "$MISSING --run true"; then
2593 am_missing_run="$MISSING --run "
2594 else
2595 am_missing_run=
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2597 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2600 if test x"${install_sh}" != xset; then
2601 case $am_aux_dir in
2602 *\ * | *\ *)
2603 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2605 install_sh="\${SHELL} $am_aux_dir/install-sh"
2606 esac
2609 # Installed binaries are usually stripped using `strip' when the user
2610 # run `make install-strip'. However `strip' might not be the right
2611 # tool to use in cross-compilation environments, therefore Automake
2612 # will honor the `STRIP' environment variable to overrule this program.
2613 if test "$cross_compiling" != no; then
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}strip; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if test "${ac_cv_prog_STRIP+set}" = set; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 if test -n "$STRIP"; then
2623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2636 done
2637 done
2638 IFS=$as_save_IFS
2642 STRIP=$ac_cv_prog_STRIP
2643 if test -n "$STRIP"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2645 $as_echo "$STRIP" >&6; }
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2653 if test -z "$ac_cv_prog_STRIP"; then
2654 ac_ct_STRIP=$STRIP
2655 # Extract the first word of "strip", so it can be a program name with args.
2656 set dummy strip; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$ac_ct_STRIP"; then
2663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_ac_ct_STRIP="strip"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2676 done
2677 done
2678 IFS=$as_save_IFS
2682 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2683 if test -n "$ac_ct_STRIP"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2685 $as_echo "$ac_ct_STRIP" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2691 if test "x$ac_ct_STRIP" = x; then
2692 STRIP=":"
2693 else
2694 case $cross_compiling:$ac_tool_warned in
2695 yes:)
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698 ac_tool_warned=yes ;;
2699 esac
2700 STRIP=$ac_ct_STRIP
2702 else
2703 STRIP="$ac_cv_prog_STRIP"
2707 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2710 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2711 if test -z "$MKDIR_P"; then
2712 if test "${ac_cv_path_mkdir+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_prog in mkdir gmkdir; do
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2723 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2724 'mkdir (GNU coreutils) '* | \
2725 'mkdir (coreutils) '* | \
2726 'mkdir (fileutils) '4.1*)
2727 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2728 break 3;;
2729 esac
2730 done
2731 done
2732 done
2733 IFS=$as_save_IFS
2737 if test "${ac_cv_path_mkdir+set}" = set; then
2738 MKDIR_P="$ac_cv_path_mkdir -p"
2739 else
2740 # As a last resort, use the slow shell script. Don't cache a
2741 # value for MKDIR_P within a source directory, because that will
2742 # break other packages using the cache if that directory is
2743 # removed, or if the value is a relative name.
2744 test -d ./--version && rmdir ./--version
2745 MKDIR_P="$ac_install_sh -d"
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2749 $as_echo "$MKDIR_P" >&6; }
2751 mkdir_p="$MKDIR_P"
2752 case $mkdir_p in
2753 [\\/$]* | ?:[\\/]*) ;;
2754 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2755 esac
2757 for ac_prog in gawk mawk nawk awk
2759 # Extract the first word of "$ac_prog", so it can be a program name with args.
2760 set dummy $ac_prog; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_AWK+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$AWK"; then
2767 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_AWK="$ac_prog"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 AWK=$ac_cv_prog_AWK
2787 if test -n "$AWK"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2789 $as_echo "$AWK" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2796 test -n "$AWK" && break
2797 done
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2800 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2801 set x ${MAKE-make}
2802 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2803 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 cat >conftest.make <<\_ACEOF
2807 SHELL = /bin/sh
2808 all:
2809 @echo '@@@%%%=$(MAKE)=@@@%%%'
2810 _ACEOF
2811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2812 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2813 *@@@%%%=?*=@@@%%%*)
2814 eval ac_cv_prog_make_${ac_make}_set=yes;;
2816 eval ac_cv_prog_make_${ac_make}_set=no;;
2817 esac
2818 rm -f conftest.make
2820 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2822 $as_echo "yes" >&6; }
2823 SET_MAKE=
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 SET_MAKE="MAKE=${MAKE-make}"
2830 rm -rf .tst 2>/dev/null
2831 mkdir .tst 2>/dev/null
2832 if test -d .tst; then
2833 am__leading_dot=.
2834 else
2835 am__leading_dot=_
2837 rmdir .tst 2>/dev/null
2839 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2840 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2841 # is not polluted with repeated "-I."
2842 am__isrc=' -I$(srcdir)'
2843 # test to see if srcdir already configured
2844 if test -f $srcdir/config.status; then
2845 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2849 # test whether we have cygpath
2850 if test -z "$CYGPATH_W"; then
2851 if (cygpath --version) >/dev/null 2>/dev/null; then
2852 CYGPATH_W='cygpath -w'
2853 else
2854 CYGPATH_W=echo
2859 # Define the identity of the package.
2860 PACKAGE='libquadmath'
2861 VERSION='0.1'
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE "$PACKAGE"
2866 _ACEOF
2869 cat >>confdefs.h <<_ACEOF
2870 #define VERSION "$VERSION"
2871 _ACEOF
2873 # Some tools Automake needs.
2875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2889 # We need awk for the "check" target. The system "awk" is bad on
2890 # some platforms.
2891 # Always define AMTAR for backward compatibility. Yes, it's still used
2892 # in the wild :-( We should find a proper way to deprecate it ...
2893 AMTAR='$${TAR-tar}'
2895 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2903 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2904 # Check whether --enable-version-specific-runtime-libs was given.
2905 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2906 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2907 yes) version_specific_libs=yes ;;
2908 no) version_specific_libs=no ;;
2909 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2910 esac
2911 else
2912 version_specific_libs=no
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2916 $as_echo "$version_specific_libs" >&6; }
2920 DEPDIR="${am__leading_dot}deps"
2922 ac_config_commands="$ac_config_commands depfiles"
2925 am_make=${MAKE-make}
2926 cat > confinc << 'END'
2927 am__doit:
2928 @echo this is the am__doit target
2929 .PHONY: am__doit
2931 # If we don't find an include directive, just comment out the code.
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2933 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2934 am__include="#"
2935 am__quote=
2936 _am_result=none
2937 # First try GNU make style include.
2938 echo "include confinc" > confmf
2939 # Ignore all kinds of additional output from `make'.
2940 case `$am_make -s -f confmf 2> /dev/null` in #(
2941 *the\ am__doit\ target*)
2942 am__include=include
2943 am__quote=
2944 _am_result=GNU
2946 esac
2947 # Now try BSD make style include.
2948 if test "$am__include" = "#"; then
2949 echo '.include "confinc"' > confmf
2950 case `$am_make -s -f confmf 2> /dev/null` in #(
2951 *the\ am__doit\ target*)
2952 am__include=.include
2953 am__quote="\""
2954 _am_result=BSD
2956 esac
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2961 $as_echo "$_am_result" >&6; }
2962 rm -f confinc confmf
2964 # Check whether --enable-dependency-tracking was given.
2965 if test "${enable_dependency_tracking+set}" = set; then :
2966 enableval=$enable_dependency_tracking;
2969 if test "x$enable_dependency_tracking" != xno; then
2970 am_depcomp="$ac_aux_dir/depcomp"
2971 AMDEPBACKSLASH='\'
2972 am__nodep='_no'
2974 if test "x$enable_dependency_tracking" != xno; then
2975 AMDEP_TRUE=
2976 AMDEP_FALSE='#'
2977 else
2978 AMDEP_TRUE='#'
2979 AMDEP_FALSE=
2983 ac_ext=c
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3010 done
3011 done
3012 IFS=$as_save_IFS
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3027 if test -z "$ac_cv_prog_CC"; then
3028 ac_ct_CC=$CC
3029 # Extract the first word of "gcc", so it can be a program name with args.
3030 set dummy gcc; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_ac_ct_CC="gcc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059 $as_echo "$ac_ct_CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3065 if test "x$ac_ct_CC" = x; then
3066 CC=""
3067 else
3068 case $cross_compiling:$ac_tool_warned in
3069 yes:)
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072 ac_tool_warned=yes ;;
3073 esac
3074 CC=$ac_ct_CC
3076 else
3077 CC="$ac_cv_prog_CC"
3080 if test -z "$CC"; then
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}cc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_CC="${ac_tool_prefix}cc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3103 done
3104 done
3105 IFS=$as_save_IFS
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3121 if test -z "$CC"; then
3122 # Extract the first word of "cc", so it can be a program name with args.
3123 set dummy cc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 ac_prog_rejected=no
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3141 ac_prog_rejected=yes
3142 continue
3144 ac_cv_prog_CC="cc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3150 IFS=$as_save_IFS
3152 if test $ac_prog_rejected = yes; then
3153 # We found a bogon in the path, so make sure we never use it.
3154 set dummy $ac_cv_prog_CC
3155 shift
3156 if test $# != 0; then
3157 # We chose a different compiler from the bogus one.
3158 # However, it has the same basename, so the bogon will be chosen
3159 # first if we set CC to just the basename; use the full file name.
3160 shift
3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3177 if test -z "$CC"; then
3178 if test -n "$ac_tool_prefix"; then
3179 for ac_prog in cl.exe
3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_CC+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3202 done
3203 done
3204 IFS=$as_save_IFS
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$CC" && break
3219 done
3221 if test -z "$CC"; then
3222 ac_ct_CC=$CC
3223 for ac_prog in cl.exe
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226 set dummy $ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_ac_ct_CC="$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3246 done
3247 done
3248 IFS=$as_save_IFS
3252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253 if test -n "$ac_ct_CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255 $as_echo "$ac_ct_CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3262 test -n "$ac_ct_CC" && break
3263 done
3265 if test "x$ac_ct_CC" = x; then
3266 CC=""
3267 else
3268 case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272 ac_tool_warned=yes ;;
3273 esac
3274 CC=$ac_ct_CC
3281 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error "no acceptable C compiler found in \$PATH
3284 See \`config.log' for more details." "$LINENO" 5; }
3286 # Provide some information about the compiler.
3287 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3288 set X $ac_compile
3289 ac_compiler=$2
3290 for ac_option in --version -v -V -qversion; do
3291 { { ac_try="$ac_compiler $ac_option >&5"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3299 ac_status=$?
3300 if test -s conftest.err; then
3301 sed '10a\
3302 ... rest of stderr output deleted ...
3303 10q' conftest.err >conftest.er1
3304 cat conftest.er1 >&5
3305 rm -f conftest.er1 conftest.err
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }
3309 done
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3315 main ()
3319 return 0;
3321 _ACEOF
3322 # FIXME: Cleanup?
3323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3324 (eval $ac_link) 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 gcc_no_link=no
3329 else
3330 gcc_no_link=yes
3332 if test x$gcc_no_link = xyes; then
3333 # Setting cross_compile will disable run tests; it will
3334 # also disable AC_CHECK_FILE but that's generally
3335 # correct if we can't link.
3336 cross_compiling=yes
3337 EXEEXT=
3338 else
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3343 main ()
3347 return 0;
3349 _ACEOF
3350 ac_clean_files_save=$ac_clean_files
3351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3352 # Try to create an executable without -o first, disregard a.out.
3353 # It will help us diagnose broken compilers, and finding out an intuition
3354 # of exeext.
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356 $as_echo_n "checking for C compiler default output file name... " >&6; }
3357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3359 # The possible output files:
3360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3362 ac_rmfiles=
3363 for ac_file in $ac_files
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368 esac
3369 done
3370 rm -f $ac_rmfiles
3372 if { { ac_try="$ac_link_default"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link_default") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3386 # so that the user can short-circuit this test for compilers unknown to
3387 # Autoconf.
3388 for ac_file in $ac_files ''
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3394 [ab].out )
3395 # We found the default executable, but exeext='' is most
3396 # certainly right.
3397 break;;
3398 *.* )
3399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400 then :; else
3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403 # We set ac_cv_exeext here because the later test for it is not
3404 # safe: cross compilers may not add the suffix if given an `-o'
3405 # argument, so we may need to know it at that point already.
3406 # Even if this section looks crufty: it has the advantage of
3407 # actually working.
3408 break;;
3410 break;;
3411 esac
3412 done
3413 test "$ac_cv_exeext" = no && ac_cv_exeext=
3415 else
3416 ac_file=''
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 if test -z "$ac_file"; then :
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 { as_fn_set_status 77
3427 as_fn_error "C compiler cannot create executables
3428 See \`config.log' for more details." "$LINENO" 5; }; }
3430 ac_exeext=$ac_cv_exeext
3432 # Check that the compiler produces executables we can run. If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3435 $as_echo_n "checking whether the C compiler works... " >&6; }
3436 # If not cross compiling, check that we can run a simple program.
3437 if test "$cross_compiling" != yes; then
3438 if { ac_try='./$ac_file'
3439 { { case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_try") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; }; then
3449 cross_compiling=no
3450 else
3451 if test "$cross_compiling" = maybe; then
3452 cross_compiling=yes
3453 else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error "cannot run C compiled programs.
3457 If you meant to cross compile, use \`--host'.
3458 See \`config.log' for more details." "$LINENO" 5; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463 $as_echo "yes" >&6; }
3465 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3466 ac_clean_files=$ac_clean_files_save
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3470 $as_echo_n "checking whether we are cross compiling... " >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472 $as_echo "$cross_compiling" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3475 $as_echo_n "checking for suffix of executables... " >&6; }
3476 if { { ac_try="$ac_link"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3488 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3489 # work properly (i.e., refer to `conftest.exe'), while it won't with
3490 # `rm'.
3491 for ac_file in conftest.exe conftest conftest.*; do
3492 test -f "$ac_file" || continue
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3495 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 break;;
3497 * ) break;;
3498 esac
3499 done
3500 else
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error "cannot compute suffix of executables: cannot compile and link
3504 See \`config.log' for more details." "$LINENO" 5; }
3506 rm -f conftest$ac_cv_exeext
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3508 $as_echo "$ac_cv_exeext" >&6; }
3510 rm -f conftest.$ac_ext
3511 EXEEXT=$ac_cv_exeext
3512 ac_exeext=$EXEEXT
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3515 $as_echo_n "checking for suffix of object files... " >&6; }
3516 if test "${ac_cv_objext+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3523 main ()
3527 return 0;
3529 _ACEOF
3530 rm -f conftest.o conftest.obj
3531 if { { ac_try="$ac_compile"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_compile") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 for ac_file in conftest.o conftest.obj conftest.*; do
3543 test -f "$ac_file" || continue;
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3547 break;;
3548 esac
3549 done
3550 else
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error "cannot compute suffix of object files: cannot compile
3557 See \`config.log' for more details." "$LINENO" 5; }
3559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3562 $as_echo "$ac_cv_objext" >&6; }
3563 OBJEXT=$ac_cv_objext
3564 ac_objext=$OBJEXT
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3567 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3574 main ()
3576 #ifndef __GNUC__
3577 choke me
3578 #endif
3581 return 0;
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_compiler_gnu=yes
3586 else
3587 ac_compiler_gnu=no
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595 if test $ac_compiler_gnu = yes; then
3596 GCC=yes
3597 else
3598 GCC=
3600 ac_test_CFLAGS=${CFLAGS+set}
3601 ac_save_CFLAGS=$CFLAGS
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3604 if test "${ac_cv_prog_cc_g+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3609 ac_cv_prog_cc_g=no
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3615 main ()
3619 return 0;
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_g=yes
3624 else
3625 CFLAGS=""
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3630 main ()
3634 return 0;
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3639 else
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3641 CFLAGS="-g"
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3646 main ()
3650 return 0;
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_g=yes
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3664 $as_echo "$ac_cv_prog_cc_g" >&6; }
3665 if test "$ac_test_CFLAGS" = set; then
3666 CFLAGS=$ac_save_CFLAGS
3667 elif test $ac_cv_prog_cc_g = yes; then
3668 if test "$GCC" = yes; then
3669 CFLAGS="-g -O2"
3670 else
3671 CFLAGS="-g"
3673 else
3674 if test "$GCC" = yes; then
3675 CFLAGS="-O2"
3676 else
3677 CFLAGS=
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3681 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3682 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 ac_cv_prog_cc_c89=no
3686 ac_save_CC=$CC
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <stdarg.h>
3690 #include <stdio.h>
3691 #include <sys/types.h>
3692 #include <sys/stat.h>
3693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3694 struct buf { int x; };
3695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3696 static char *e (p, i)
3697 char **p;
3698 int i;
3700 return p[i];
3702 static char *f (char * (*g) (char **, int), char **p, ...)
3704 char *s;
3705 va_list v;
3706 va_start (v,p);
3707 s = g (p, va_arg (v,int));
3708 va_end (v);
3709 return s;
3712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3713 function prototypes and stuff, but not '\xHH' hex character constants.
3714 These don't provoke an error unfortunately, instead are silently treated
3715 as 'x'. The following induces an error, until -std is added to get
3716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3717 array size at least. It's necessary to write '\x00'==0 to get something
3718 that's true only with -std. */
3719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3722 inside strings and character constants. */
3723 #define FOO(x) 'x'
3724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3726 int test (int i, double x);
3727 struct s1 {int (*f) (int a);};
3728 struct s2 {int (*f) (double a);};
3729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730 int argc;
3731 char **argv;
3733 main ()
3735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3737 return 0;
3739 _ACEOF
3740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3743 CC="$ac_save_CC $ac_arg"
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_c89=$ac_arg
3747 rm -f core conftest.err conftest.$ac_objext
3748 test "x$ac_cv_prog_cc_c89" != "xno" && break
3749 done
3750 rm -f conftest.$ac_ext
3751 CC=$ac_save_CC
3754 # AC_CACHE_VAL
3755 case "x$ac_cv_prog_cc_c89" in
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758 $as_echo "none needed" >&6; } ;;
3759 xno)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3761 $as_echo "unsupported" >&6; } ;;
3763 CC="$CC $ac_cv_prog_cc_c89"
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3765 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3766 esac
3767 if test "x$ac_cv_prog_cc_c89" != xno; then :
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 depcc="$CC" am_compiler_list=
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3780 $as_echo_n "checking dependency style of $depcc... " >&6; }
3781 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3785 # We make a subdir and do the tests there. Otherwise we can end up
3786 # making bogus files that we don't know about and never remove. For
3787 # instance it was reported that on HP-UX the gcc test will end up
3788 # making a dummy file named `D' -- because `-MD' means `put the output
3789 # in D'.
3790 rm -rf conftest.dir
3791 mkdir conftest.dir
3792 # Copy depcomp to subdir because otherwise we won't find it if we're
3793 # using a relative directory.
3794 cp "$am_depcomp" conftest.dir
3795 cd conftest.dir
3796 # We will build objects and dependencies in a subdirectory because
3797 # it helps to detect inapplicable dependency modes. For instance
3798 # both Tru64's cc and ICC support -MD to output dependencies as a
3799 # side effect of compilation, but ICC will put the dependencies in
3800 # the current directory while Tru64 will put them in the object
3801 # directory.
3802 mkdir sub
3804 am_cv_CC_dependencies_compiler_type=none
3805 if test "$am_compiler_list" = ""; then
3806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3808 am__universal=false
3809 case " $depcc " in #(
3810 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3811 esac
3813 for depmode in $am_compiler_list; do
3814 # Setup a source with many dependencies, because some compilers
3815 # like to wrap large dependency lists on column 80 (with \), and
3816 # we should not choose a depcomp mode which is confused by this.
3818 # We need to recreate these files for each test, as the compiler may
3819 # overwrite some of them when testing with obscure command lines.
3820 # This happens at least with the AIX C compiler.
3821 : > sub/conftest.c
3822 for i in 1 2 3 4 5 6; do
3823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3825 # Solaris 8's {/usr,}/bin/sh.
3826 touch sub/conftst$i.h
3827 done
3828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3831 # mode. It turns out that the SunPro C++ compiler does not properly
3832 # handle `-M -o', and we need to detect this. Also, some Intel
3833 # versions had trouble with output in subdirs
3834 am__obj=sub/conftest.${OBJEXT-o}
3835 am__minus_obj="-o $am__obj"
3836 case $depmode in
3837 gcc)
3838 # This depmode causes a compiler race in universal mode.
3839 test "$am__universal" = false || continue
3841 nosideeffect)
3842 # after this tag, mechanisms are not by side-effect, so they'll
3843 # only be used when explicitly requested
3844 if test "x$enable_dependency_tracking" = xyes; then
3845 continue
3846 else
3847 break
3850 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3851 # This compiler won't grok `-c -o', but also, the minuso test has
3852 # not run yet. These depmodes are late enough in the game, and
3853 # so weak that their functioning should not be impacted.
3854 am__obj=conftest.${OBJEXT-o}
3855 am__minus_obj=
3857 none) break ;;
3858 esac
3859 if depmode=$depmode \
3860 source=sub/conftest.c object=$am__obj \
3861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3862 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3863 >/dev/null 2>conftest.err &&
3864 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3865 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3866 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3867 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3868 # icc doesn't choke on unknown options, it will just issue warnings
3869 # or remarks (even with -Werror). So we grep stderr for any message
3870 # that says an option was ignored or not supported.
3871 # When given -MP, icc 7.0 and 7.1 complain thusly:
3872 # icc: Command line warning: ignoring option '-M'; no argument required
3873 # The diagnosis changed in icc 8.0:
3874 # icc: Command line remark: option '-MP' not supported
3875 if (grep 'ignoring option' conftest.err ||
3876 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3877 am_cv_CC_dependencies_compiler_type=$depmode
3878 break
3881 done
3883 cd ..
3884 rm -rf conftest.dir
3885 else
3886 am_cv_CC_dependencies_compiler_type=none
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3891 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3892 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3895 test "x$enable_dependency_tracking" != xno \
3896 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3897 am__fastdepCC_TRUE=
3898 am__fastdepCC_FALSE='#'
3899 else
3900 am__fastdepCC_TRUE='#'
3901 am__fastdepCC_FALSE=
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3913 # On Suns, sometimes $CPP names a directory.
3914 if test -n "$CPP" && test -d "$CPP"; then
3915 CPP=
3917 if test -z "$CPP"; then
3918 if test "${ac_cv_prog_CPP+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 # Double quotes because CPP needs to be expanded
3922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3924 ac_preproc_ok=false
3925 for ac_c_preproc_warn_flag in '' yes
3927 # Use a header file that comes with gcc, so configuring glibc
3928 # with a fresh cross-compiler works.
3929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3930 # <limits.h> exists even on freestanding compilers.
3931 # On the NeXT, cc -E runs the code through the compiler's parser,
3932 # not just through cpp. "Syntax error" is here to catch this case.
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 #ifdef __STDC__
3936 # include <limits.h>
3937 #else
3938 # include <assert.h>
3939 #endif
3940 Syntax error
3941 _ACEOF
3942 if ac_fn_c_try_cpp "$LINENO"; then :
3944 else
3945 # Broken: fails on valid input.
3946 continue
3948 rm -f conftest.err conftest.$ac_ext
3950 # OK, works on sane cases. Now check whether nonexistent headers
3951 # can be detected and how.
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954 #include <ac_nonexistent.h>
3955 _ACEOF
3956 if ac_fn_c_try_cpp "$LINENO"; then :
3957 # Broken: success on invalid input.
3958 continue
3959 else
3960 # Passes both tests.
3961 ac_preproc_ok=:
3962 break
3964 rm -f conftest.err conftest.$ac_ext
3966 done
3967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3968 rm -f conftest.err conftest.$ac_ext
3969 if $ac_preproc_ok; then :
3970 break
3973 done
3974 ac_cv_prog_CPP=$CPP
3977 CPP=$ac_cv_prog_CPP
3978 else
3979 ac_cv_prog_CPP=$CPP
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3982 $as_echo "$CPP" >&6; }
3983 ac_preproc_ok=false
3984 for ac_c_preproc_warn_flag in '' yes
3986 # Use a header file that comes with gcc, so configuring glibc
3987 # with a fresh cross-compiler works.
3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 # <limits.h> exists even on freestanding compilers.
3990 # On the NeXT, cc -E runs the code through the compiler's parser,
3991 # not just through cpp. "Syntax error" is here to catch this case.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #ifdef __STDC__
3995 # include <limits.h>
3996 #else
3997 # include <assert.h>
3998 #endif
3999 Syntax error
4000 _ACEOF
4001 if ac_fn_c_try_cpp "$LINENO"; then :
4003 else
4004 # Broken: fails on valid input.
4005 continue
4007 rm -f conftest.err conftest.$ac_ext
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #include <ac_nonexistent.h>
4014 _ACEOF
4015 if ac_fn_c_try_cpp "$LINENO"; then :
4016 # Broken: success on invalid input.
4017 continue
4018 else
4019 # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4023 rm -f conftest.err conftest.$ac_ext
4025 done
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.$ac_ext
4028 if $ac_preproc_ok; then :
4030 else
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4034 See \`config.log' for more details." "$LINENO" 5; }
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4046 if test "${ac_cv_path_GREP+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -z "$GREP"; then
4050 ac_path_GREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in grep ggrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4061 # Check for GNU ac_path_GREP and select it if it is found.
4062 # Check for GNU $ac_path_GREP
4063 case `"$ac_path_GREP" --version 2>&1` in
4064 *GNU*)
4065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4067 ac_count=0
4068 $as_echo_n 0123456789 >"conftest.in"
4069 while :
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 $as_echo 'GREP' >> "conftest.nl"
4075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 as_fn_arith $ac_count + 1 && ac_count=$as_val
4078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_GREP="$ac_path_GREP"
4081 ac_path_GREP_max=$ac_count
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4085 done
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4089 $ac_path_GREP_found && break 3
4090 done
4091 done
4092 done
4093 IFS=$as_save_IFS
4094 if test -z "$ac_cv_path_GREP"; then
4095 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4097 else
4098 ac_cv_path_GREP=$GREP
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4103 $as_echo "$ac_cv_path_GREP" >&6; }
4104 GREP="$ac_cv_path_GREP"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4108 $as_echo_n "checking for egrep... " >&6; }
4109 if test "${ac_cv_path_EGREP+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4113 then ac_cv_path_EGREP="$GREP -E"
4114 else
4115 if test -z "$EGREP"; then
4116 ac_path_EGREP_found=false
4117 # Loop through the user's path and test for each of PROGNAME-LIST
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_prog in egrep; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4127 # Check for GNU ac_path_EGREP and select it if it is found.
4128 # Check for GNU $ac_path_EGREP
4129 case `"$ac_path_EGREP" --version 2>&1` in
4130 *GNU*)
4131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4133 ac_count=0
4134 $as_echo_n 0123456789 >"conftest.in"
4135 while :
4137 cat "conftest.in" "conftest.in" >"conftest.tmp"
4138 mv "conftest.tmp" "conftest.in"
4139 cp "conftest.in" "conftest.nl"
4140 $as_echo 'EGREP' >> "conftest.nl"
4141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143 as_fn_arith $ac_count + 1 && ac_count=$as_val
4144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4145 # Best one so far, save it but keep looking for a better one
4146 ac_cv_path_EGREP="$ac_path_EGREP"
4147 ac_path_EGREP_max=$ac_count
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4151 done
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153 esac
4155 $ac_path_EGREP_found && break 3
4156 done
4157 done
4158 done
4159 IFS=$as_save_IFS
4160 if test -z "$ac_cv_path_EGREP"; then
4161 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4163 else
4164 ac_cv_path_EGREP=$EGREP
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4170 $as_echo "$ac_cv_path_EGREP" >&6; }
4171 EGREP="$ac_cv_path_EGREP"
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4175 $as_echo_n "checking for ANSI C header files... " >&6; }
4176 if test "${ac_cv_header_stdc+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #include <stdlib.h>
4182 #include <stdarg.h>
4183 #include <string.h>
4184 #include <float.h>
4187 main ()
4191 return 0;
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_header_stdc=yes
4196 else
4197 ac_cv_header_stdc=no
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 if test $ac_cv_header_stdc = yes; then
4202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <string.h>
4207 _ACEOF
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "memchr" >/dev/null 2>&1; then :
4211 else
4212 ac_cv_header_stdc=no
4214 rm -f conftest*
4218 if test $ac_cv_header_stdc = yes; then
4219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <stdlib.h>
4224 _ACEOF
4225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "free" >/dev/null 2>&1; then :
4228 else
4229 ac_cv_header_stdc=no
4231 rm -f conftest*
4235 if test $ac_cv_header_stdc = yes; then
4236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4237 if test "$cross_compiling" = yes; then :
4239 else
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <ctype.h>
4243 #include <stdlib.h>
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 #else
4248 # define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #endif
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4257 main ()
4259 int i;
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4263 return 2;
4264 return 0;
4266 _ACEOF
4267 if ac_fn_c_try_run "$LINENO"; then :
4269 else
4270 ac_cv_header_stdc=no
4272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4273 conftest.$ac_objext conftest.beam conftest.$ac_ext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4279 $as_echo "$ac_cv_header_stdc" >&6; }
4280 if test $ac_cv_header_stdc = yes; then
4282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4288 inttypes.h stdint.h unistd.h
4289 do :
4290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4293 eval as_val=\$$as_ac_Header
4294 if test "x$as_val" = x""yes; then :
4295 cat >>confdefs.h <<_ACEOF
4296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297 _ACEOF
4301 done
4305 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4306 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4307 MINIX=yes
4308 else
4309 MINIX=
4313 if test "$MINIX" = yes; then
4315 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4318 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4321 $as_echo "#define _MINIX 1" >>confdefs.h
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4327 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4328 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4334 # define __EXTENSIONS__ 1
4335 $ac_includes_default
4337 main ()
4341 return 0;
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_cv_safe_to_define___extensions__=yes
4346 else
4347 ac_cv_safe_to_define___extensions__=no
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4352 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4353 test $ac_cv_safe_to_define___extensions__ = yes &&
4354 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4356 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4358 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4360 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4362 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4366 # See if makeinfo has been installed and is modern enough
4367 # that we can use it.
4369 # Extract the first word of "makeinfo", so it can be a program name with args.
4370 set dummy makeinfo; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -n "$MAKEINFO"; then
4377 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_MAKEINFO="makeinfo"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4390 done
4391 done
4392 IFS=$as_save_IFS
4396 MAKEINFO=$ac_cv_prog_MAKEINFO
4397 if test -n "$MAKEINFO"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4399 $as_echo "$MAKEINFO" >&6; }
4400 else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4406 if test -n "$MAKEINFO"; then
4407 # Found it, now check the version.
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4409 $as_echo_n "checking for modern makeinfo... " >&6; }
4410 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4414 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4416 case $ac_prog_version in
4417 '') gcc_cv_prog_makeinfo_modern=no;;
4418 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4419 *) gcc_cv_prog_makeinfo_modern=no;;
4420 esac
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4424 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4425 else
4426 gcc_cv_prog_makeinfo_modern=no
4428 if test $gcc_cv_prog_makeinfo_modern = no; then
4429 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4432 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4433 BUILD_INFO_TRUE=
4434 BUILD_INFO_FALSE='#'
4435 else
4436 BUILD_INFO_TRUE='#'
4437 BUILD_INFO_FALSE=
4443 # Check whether --with-bugurl was given.
4444 if test "${with_bugurl+set}" = set; then :
4445 withval=$with_bugurl; case "$withval" in
4446 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4447 no) BUGURL=
4449 *) BUGURL="$withval"
4451 esac
4452 else
4453 BUGURL="https://gcc.gnu.org/bugs/"
4457 case ${BUGURL} in
4459 REPORT_BUGS_TO=
4460 REPORT_BUGS_TEXI=
4463 REPORT_BUGS_TO="<$BUGURL>"
4464 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4466 esac;
4471 # Configure libtool
4472 case `pwd` in
4473 *\ * | *\ *)
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4475 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4476 esac
4480 macro_version='2.2.7a'
4481 macro_revision='1.3134'
4495 ltmain="$ac_aux_dir/ltmain.sh"
4497 # Backslashify metacharacters that are still active within
4498 # double-quoted strings.
4499 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4501 # Same as above, but do not quote variable references.
4502 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4504 # Sed substitution to delay expansion of an escaped shell variable in a
4505 # double_quote_subst'ed string.
4506 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4508 # Sed substitution to delay expansion of an escaped single quote.
4509 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4511 # Sed substitution to avoid accidental globbing in evaled expressions
4512 no_glob_subst='s/\*/\\\*/g'
4514 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4515 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4516 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4519 $as_echo_n "checking how to print strings... " >&6; }
4520 # Test print first, because it will be a builtin if present.
4521 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4522 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4523 ECHO='print -r --'
4524 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4525 ECHO='printf %s\n'
4526 else
4527 # Use this function as a fallback that always works.
4528 func_fallback_echo ()
4530 eval 'cat <<_LTECHO_EOF
4532 _LTECHO_EOF'
4534 ECHO='func_fallback_echo'
4537 # func_echo_all arg...
4538 # Invoke $ECHO with all args, space-separated.
4539 func_echo_all ()
4541 $ECHO ""
4544 case "$ECHO" in
4545 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4546 $as_echo "printf" >&6; } ;;
4547 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4548 $as_echo "print -r" >&6; } ;;
4549 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4550 $as_echo "cat" >&6; } ;;
4551 esac
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4567 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4568 if test "${ac_cv_path_SED+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4572 for ac_i in 1 2 3 4 5 6 7; do
4573 ac_script="$ac_script$as_nl$ac_script"
4574 done
4575 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4576 { ac_script=; unset ac_script;}
4577 if test -z "$SED"; then
4578 ac_path_SED_found=false
4579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_prog in sed gsed; do
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4588 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4589 # Check for GNU ac_path_SED and select it if it is found.
4590 # Check for GNU $ac_path_SED
4591 case `"$ac_path_SED" --version 2>&1` in
4592 *GNU*)
4593 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4595 ac_count=0
4596 $as_echo_n 0123456789 >"conftest.in"
4597 while :
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
4602 $as_echo '' >> "conftest.nl"
4603 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605 as_fn_arith $ac_count + 1 && ac_count=$as_val
4606 if test $ac_count -gt ${ac_path_SED_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_SED="$ac_path_SED"
4609 ac_path_SED_max=$ac_count
4611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
4613 done
4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615 esac
4617 $ac_path_SED_found && break 3
4618 done
4619 done
4620 done
4621 IFS=$as_save_IFS
4622 if test -z "$ac_cv_path_SED"; then
4623 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4625 else
4626 ac_cv_path_SED=$SED
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4631 $as_echo "$ac_cv_path_SED" >&6; }
4632 SED="$ac_cv_path_SED"
4633 rm -f conftest.sed
4635 test -z "$SED" && SED=sed
4636 Xsed="$SED -e 1s/^X//"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4649 $as_echo_n "checking for fgrep... " >&6; }
4650 if test "${ac_cv_path_FGREP+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4654 then ac_cv_path_FGREP="$GREP -F"
4655 else
4656 if test -z "$FGREP"; then
4657 ac_path_FGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in fgrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4668 # Check for GNU ac_path_FGREP and select it if it is found.
4669 # Check for GNU $ac_path_FGREP
4670 case `"$ac_path_FGREP" --version 2>&1` in
4671 *GNU*)
4672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'FGREP' >> "conftest.nl"
4682 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_FGREP="$ac_path_FGREP"
4688 ac_path_FGREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4692 done
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4696 $ac_path_FGREP_found && break 3
4697 done
4698 done
4699 done
4700 IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_FGREP"; then
4702 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704 else
4705 ac_cv_path_FGREP=$FGREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4711 $as_echo "$ac_cv_path_FGREP" >&6; }
4712 FGREP="$ac_cv_path_FGREP"
4715 test -z "$GREP" && GREP=grep
4735 # Check whether --with-gnu-ld was given.
4736 if test "${with_gnu_ld+set}" = set; then :
4737 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4738 else
4739 with_gnu_ld=no
4742 ac_prog=ld
4743 if test "$GCC" = yes; then
4744 # Check if gcc -print-prog-name=ld gives a path.
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4746 $as_echo_n "checking for ld used by $CC... " >&6; }
4747 case $host in
4748 *-*-mingw*)
4749 # gcc leaves a trailing carriage return which upsets mingw
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4753 esac
4754 case $ac_prog in
4755 # Accept absolute paths.
4756 [\\/]* | ?:[\\/]*)
4757 re_direlt='/[^/][^/]*/\.\./'
4758 # Canonicalize the pathname of ld
4759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4762 done
4763 test -z "$LD" && LD="$ac_prog"
4766 # If it fails, then pretend we aren't using GCC.
4767 ac_prog=ld
4770 # If it is relative, then search for the first ld in PATH.
4771 with_gnu_ld=unknown
4773 esac
4774 elif test "$with_gnu_ld" = yes; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4776 $as_echo_n "checking for GNU ld... " >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4779 $as_echo_n "checking for non-GNU ld... " >&6; }
4781 if test "${lt_cv_path_LD+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -z "$LD"; then
4785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4786 for ac_dir in $PATH; do
4787 IFS="$lt_save_ifs"
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790 lt_cv_path_LD="$ac_dir/$ac_prog"
4791 # Check to see if the program is GNU ld. I'd rather use --version,
4792 # but apparently some variants of GNU ld only accept -v.
4793 # Break only if it was the GNU/non-GNU ld that we prefer.
4794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 test "$with_gnu_ld" != no && break
4799 test "$with_gnu_ld" != yes && break
4801 esac
4803 done
4804 IFS="$lt_save_ifs"
4805 else
4806 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4810 LD="$lt_cv_path_LD"
4811 if test -n "$LD"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4813 $as_echo "$LD" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4818 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4821 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825 case `$LD -v 2>&1 </dev/null` in
4826 *GNU* | *'with BFD'*)
4827 lt_cv_prog_gnu_ld=yes
4830 lt_cv_prog_gnu_ld=no
4832 esac
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4836 with_gnu_ld=$lt_cv_prog_gnu_ld
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4847 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4848 if test "${lt_cv_path_NM+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4853 lt_cv_path_NM="$NM"
4854 else
4855 lt_nm_to_check="${ac_tool_prefix}nm"
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm"
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 IFS="$lt_save_ifs"
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm="$ac_dir/$lt_tmp_nm"
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4871 */dev/null* | *'Invalid file or object type'*)
4872 lt_cv_path_NM="$tmp_nm -B"
4873 break
4876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4877 */dev/null*)
4878 lt_cv_path_NM="$tmp_nm -p"
4879 break
4882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4883 continue # so that we can try to find one that supports BSD flags
4885 esac
4887 esac
4889 done
4890 IFS="$lt_save_ifs"
4891 done
4892 : ${lt_cv_path_NM=no}
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4896 $as_echo "$lt_cv_path_NM" >&6; }
4897 if test "$lt_cv_path_NM" != "no"; then
4898 NM="$lt_cv_path_NM"
4899 else
4900 # Didn't find any BSD compatible name lister, look for dumpbin.
4901 if test -n "$DUMPBIN"; then :
4902 # Let the user override the test.
4903 else
4904 if test -n "$ac_tool_prefix"; then
4905 for ac_prog in dumpbin "link -dump"
4907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$DUMPBIN"; then
4915 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 DUMPBIN=$ac_cv_prog_DUMPBIN
4935 if test -n "$DUMPBIN"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4937 $as_echo "$DUMPBIN" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$DUMPBIN" && break
4945 done
4947 if test -z "$DUMPBIN"; then
4948 ac_ct_DUMPBIN=$DUMPBIN
4949 for ac_prog in dumpbin "link -dump"
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$ac_ct_DUMPBIN"; then
4959 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4979 if test -n "$ac_ct_DUMPBIN"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4981 $as_echo "$ac_ct_DUMPBIN" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 test -n "$ac_ct_DUMPBIN" && break
4989 done
4991 if test "x$ac_ct_DUMPBIN" = x; then
4992 DUMPBIN=":"
4993 else
4994 case $cross_compiling:$ac_tool_warned in
4995 yes:)
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998 ac_tool_warned=yes ;;
4999 esac
5000 DUMPBIN=$ac_ct_DUMPBIN
5004 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5005 *COFF*)
5006 DUMPBIN="$DUMPBIN -symbols"
5009 DUMPBIN=:
5011 esac
5014 if test "$DUMPBIN" != ":"; then
5015 NM="$DUMPBIN"
5018 test -z "$NM" && NM=nm
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5026 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5027 if test "${lt_cv_nm_interface+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 lt_cv_nm_interface="BSD nm"
5031 echo "int some_variable = 0;" > conftest.$ac_ext
5032 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5033 (eval "$ac_compile" 2>conftest.err)
5034 cat conftest.err >&5
5035 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5036 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5037 cat conftest.err >&5
5038 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5039 cat conftest.out >&5
5040 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5041 lt_cv_nm_interface="MS dumpbin"
5043 rm -f conftest*
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5046 $as_echo "$lt_cv_nm_interface" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5049 $as_echo_n "checking whether ln -s works... " >&6; }
5050 LN_S=$as_ln_s
5051 if test "$LN_S" = "ln -s"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 $as_echo "yes" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5056 $as_echo "no, using $LN_S" >&6; }
5059 # find the maximum length of command line arguments
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5061 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5062 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5066 teststring="ABCD"
5068 case $build_os in
5069 msdosdjgpp*)
5070 # On DJGPP, this test can blow up pretty badly due to problems in libc
5071 # (any single argument exceeding 2000 bytes causes a buffer overrun
5072 # during glob expansion). Even if it were fixed, the result of this
5073 # check would be larger than it should be.
5074 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5077 gnu*)
5078 # Under GNU Hurd, this test is not required because there is
5079 # no limit to the length of command line arguments.
5080 # Libtool will interpret -1 as no limit whatsoever
5081 lt_cv_sys_max_cmd_len=-1;
5084 cygwin* | mingw* | cegcc*)
5085 # On Win9x/ME, this test blows up -- it succeeds, but takes
5086 # about 5 minutes as the teststring grows exponentially.
5087 # Worse, since 9x/ME are not pre-emptively multitasking,
5088 # you end up with a "frozen" computer, even though with patience
5089 # the test eventually succeeds (with a max line length of 256k).
5090 # Instead, let's just punt: use the minimum linelength reported by
5091 # all of the supported platforms: 8192 (on NT/2K/XP).
5092 lt_cv_sys_max_cmd_len=8192;
5095 mint*)
5096 # On MiNT this can take a long time and run out of memory.
5097 lt_cv_sys_max_cmd_len=8192;
5100 amigaos*)
5101 # On AmigaOS with pdksh, this test takes hours, literally.
5102 # So we just punt and use a minimum line length of 8192.
5103 lt_cv_sys_max_cmd_len=8192;
5106 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5107 # This has been around since 386BSD, at least. Likely further.
5108 if test -x /sbin/sysctl; then
5109 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5110 elif test -x /usr/sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5112 else
5113 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5115 # And add a safety zone
5116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5120 interix*)
5121 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5122 lt_cv_sys_max_cmd_len=196608
5125 osf*)
5126 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5127 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5128 # nice to cause kernel panics so lets avoid the loop below.
5129 # First set a reasonable default.
5130 lt_cv_sys_max_cmd_len=16384
5132 if test -x /sbin/sysconfig; then
5133 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5134 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5135 esac
5138 sco3.2v5*)
5139 lt_cv_sys_max_cmd_len=102400
5141 sysv5* | sco5v6* | sysv4.2uw2*)
5142 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5143 if test -n "$kargmax"; then
5144 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5145 else
5146 lt_cv_sys_max_cmd_len=32768
5150 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5151 if test -n "$lt_cv_sys_max_cmd_len"; then
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5154 else
5155 # Make teststring a little bigger before we do anything with it.
5156 # a 1K string should be a reasonable start.
5157 for i in 1 2 3 4 5 6 7 8 ; do
5158 teststring=$teststring$teststring
5159 done
5160 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5161 # If test is not a shell built-in, we'll probably end up computing a
5162 # maximum length that is only half of the actual maximum length, but
5163 # we can't tell.
5164 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5165 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5166 test $i != 17 # 1/2 MB should be enough
5168 i=`expr $i + 1`
5169 teststring=$teststring$teststring
5170 done
5171 # Only check the string length outside the loop.
5172 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5173 teststring=
5174 # Add a significant safety factor because C++ compilers can tack on
5175 # massive amounts of additional arguments before passing them to the
5176 # linker. It appears as though 1/2 is a usable value.
5177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180 esac
5184 if test -n $lt_cv_sys_max_cmd_len ; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5186 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5189 $as_echo "none" >&6; }
5191 max_cmd_len=$lt_cv_sys_max_cmd_len
5198 : ${CP="cp -f"}
5199 : ${MV="mv -f"}
5200 : ${RM="rm -f"}
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5203 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5204 # Try some XSI features
5205 xsi_shell=no
5206 ( _lt_dummy="a/b/c"
5207 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5208 = c,a/b,, \
5209 && eval 'test $(( 1 + 1 )) -eq 2 \
5210 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5211 && xsi_shell=yes
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5213 $as_echo "$xsi_shell" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5217 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5218 lt_shell_append=no
5219 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5220 >/dev/null 2>&1 \
5221 && lt_shell_append=yes
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5223 $as_echo "$lt_shell_append" >&6; }
5226 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5227 lt_unset=unset
5228 else
5229 lt_unset=false
5236 # test EBCDIC or ASCII
5237 case `echo X|tr X '\101'` in
5238 A) # ASCII based system
5239 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5240 lt_SP2NL='tr \040 \012'
5241 lt_NL2SP='tr \015\012 \040\040'
5243 *) # EBCDIC based system
5244 lt_SP2NL='tr \100 \n'
5245 lt_NL2SP='tr \r\n \100\100'
5247 esac
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5258 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5259 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 lt_cv_ld_reload_flag='-r'
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5265 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5266 reload_flag=$lt_cv_ld_reload_flag
5267 case $reload_flag in
5268 "" | " "*) ;;
5269 *) reload_flag=" $reload_flag" ;;
5270 esac
5271 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 case $host_os in
5273 darwin*)
5274 if test "$GCC" = yes; then
5275 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5276 else
5277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 esac
5290 if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5292 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$OBJDUMP"; then
5299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 OBJDUMP=$ac_cv_prog_OBJDUMP
5319 if test -n "$OBJDUMP"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5321 $as_echo "$OBJDUMP" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5329 if test -z "$ac_cv_prog_OBJDUMP"; then
5330 ac_ct_OBJDUMP=$OBJDUMP
5331 # Extract the first word of "objdump", so it can be a program name with args.
5332 set dummy objdump; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$ac_ct_OBJDUMP"; then
5339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5352 done
5353 done
5354 IFS=$as_save_IFS
5358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5359 if test -n "$ac_ct_OBJDUMP"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5361 $as_echo "$ac_ct_OBJDUMP" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5367 if test "x$ac_ct_OBJDUMP" = x; then
5368 OBJDUMP="false"
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376 OBJDUMP=$ac_ct_OBJDUMP
5378 else
5379 OBJDUMP="$ac_cv_prog_OBJDUMP"
5382 test -z "$OBJDUMP" && OBJDUMP=objdump
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5393 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5394 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 lt_cv_file_magic_cmd='$MAGIC_CMD'
5398 lt_cv_file_magic_test_file=
5399 lt_cv_deplibs_check_method='unknown'
5400 # Need to set the preceding variable on all platforms that support
5401 # interlibrary dependencies.
5402 # 'none' -- dependencies not supported.
5403 # `unknown' -- same as none, but documents that we really don't know.
5404 # 'pass_all' -- all dependencies passed with no checks.
5405 # 'test_compile' -- check by making test program.
5406 # 'file_magic [[regex]]' -- check by looking for files in library path
5407 # which responds to the $file_magic_cmd with a given extended regex.
5408 # If you have `file' or equivalent on your system and you're not sure
5409 # whether `pass_all' will *always* work, you probably want this one.
5411 case $host_os in
5412 aix[4-9]*)
5413 lt_cv_deplibs_check_method=pass_all
5416 beos*)
5417 lt_cv_deplibs_check_method=pass_all
5420 bsdi[45]*)
5421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5422 lt_cv_file_magic_cmd='/usr/bin/file -L'
5423 lt_cv_file_magic_test_file=/shlib/libc.so
5426 cygwin*)
5427 # func_win32_libid is a shell function defined in ltmain.sh
5428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5429 lt_cv_file_magic_cmd='func_win32_libid'
5432 mingw* | pw32*)
5433 # Base MSYS/MinGW do not provide the 'file' command needed by
5434 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5435 # unless we find 'file', for example because we are cross-compiling.
5436 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5437 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439 lt_cv_file_magic_cmd='func_win32_libid'
5440 else
5441 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5442 lt_cv_file_magic_cmd='$OBJDUMP -f'
5446 cegcc*)
5447 # use the weaker test based on 'objdump'. See mingw*.
5448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5449 lt_cv_file_magic_cmd='$OBJDUMP -f'
5452 darwin* | rhapsody*)
5453 lt_cv_deplibs_check_method=pass_all
5456 freebsd* | dragonfly*)
5457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5458 case $host_cpu in
5459 i*86 )
5460 # Not sure whether the presence of OpenBSD here was a mistake.
5461 # Let's accept both of them until this is cleared up.
5462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5463 lt_cv_file_magic_cmd=/usr/bin/file
5464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5466 esac
5467 else
5468 lt_cv_deplibs_check_method=pass_all
5472 gnu*)
5473 lt_cv_deplibs_check_method=pass_all
5476 haiku*)
5477 lt_cv_deplibs_check_method=pass_all
5480 hpux10.20* | hpux11*)
5481 lt_cv_file_magic_cmd=/usr/bin/file
5482 case $host_cpu in
5483 ia64*)
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5487 hppa*64*)
5488 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]'
5489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5495 esac
5498 interix[3-9]*)
5499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5503 irix5* | irix6* | nonstopux*)
5504 case $LD in
5505 *-32|*"-32 ") libmagic=32-bit;;
5506 *-n32|*"-n32 ") libmagic=N32;;
5507 *-64|*"-64 ") libmagic=64-bit;;
5508 *) libmagic=never-match;;
5509 esac
5510 lt_cv_deplibs_check_method=pass_all
5513 # This must be Linux ELF.
5514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5515 lt_cv_deplibs_check_method=pass_all
5518 netbsd*)
5519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5521 else
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5526 newos6*)
5527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5528 lt_cv_file_magic_cmd=/usr/bin/file
5529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5532 *nto* | *qnx*)
5533 lt_cv_deplibs_check_method=pass_all
5536 openbsd*)
5537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5539 else
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5544 osf3* | osf4* | osf5*)
5545 lt_cv_deplibs_check_method=pass_all
5548 rdos*)
5549 lt_cv_deplibs_check_method=pass_all
5552 solaris*)
5553 lt_cv_deplibs_check_method=pass_all
5556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5557 lt_cv_deplibs_check_method=pass_all
5560 sysv4 | sysv4.3*)
5561 case $host_vendor in
5562 motorola)
5563 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]'
5564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5566 ncr)
5567 lt_cv_deplibs_check_method=pass_all
5569 sequent)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5573 sni)
5574 lt_cv_file_magic_cmd='/bin/file'
5575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5576 lt_cv_file_magic_test_file=/lib/libc.so
5578 siemens)
5579 lt_cv_deplibs_check_method=pass_all
5582 lt_cv_deplibs_check_method=pass_all
5584 esac
5587 tpf*)
5588 lt_cv_deplibs_check_method=pass_all
5590 esac
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5594 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5595 file_magic_cmd=$lt_cv_file_magic_cmd
5596 deplibs_check_method=$lt_cv_deplibs_check_method
5597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}ar; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if test "${ac_cv_prog_AR+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$AR"; then
5619 ac_cv_prog_AR="$AR" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_AR="${ac_tool_prefix}ar"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5632 done
5633 done
5634 IFS=$as_save_IFS
5638 AR=$ac_cv_prog_AR
5639 if test -n "$AR"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5641 $as_echo "$AR" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5649 if test -z "$ac_cv_prog_AR"; then
5650 ac_ct_AR=$AR
5651 # Extract the first word of "ar", so it can be a program name with args.
5652 set dummy ar; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_AR"; then
5659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_AR="ar"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5679 if test -n "$ac_ct_AR"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5681 $as_echo "$ac_ct_AR" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5687 if test "x$ac_ct_AR" = x; then
5688 AR="false"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 AR=$ac_ct_AR
5698 else
5699 AR="$ac_cv_prog_AR"
5702 test -z "$AR" && AR=ar
5703 test -z "$AR_FLAGS" && AR_FLAGS=cru
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}strip; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_STRIP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$STRIP"; then
5724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5739 IFS=$as_save_IFS
5743 STRIP=$ac_cv_prog_STRIP
5744 if test -n "$STRIP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5746 $as_echo "$STRIP" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5754 if test -z "$ac_cv_prog_STRIP"; then
5755 ac_ct_STRIP=$STRIP
5756 # Extract the first word of "strip", so it can be a program name with args.
5757 set dummy strip; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$ac_ct_STRIP"; then
5764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_ac_ct_STRIP="strip"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5784 if test -n "$ac_ct_STRIP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5786 $as_echo "$ac_ct_STRIP" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5792 if test "x$ac_ct_STRIP" = x; then
5793 STRIP=":"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801 STRIP=$ac_ct_STRIP
5803 else
5804 STRIP="$ac_cv_prog_STRIP"
5807 test -z "$STRIP" && STRIP=:
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$RANLIB"; then
5823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5836 done
5837 done
5838 IFS=$as_save_IFS
5842 RANLIB=$ac_cv_prog_RANLIB
5843 if test -n "$RANLIB"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5845 $as_echo "$RANLIB" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5853 if test -z "$ac_cv_prog_RANLIB"; then
5854 ac_ct_RANLIB=$RANLIB
5855 # Extract the first word of "ranlib", so it can be a program name with args.
5856 set dummy ranlib; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$ac_ct_RANLIB"; then
5863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_RANLIB="ranlib"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5878 IFS=$as_save_IFS
5882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5883 if test -n "$ac_ct_RANLIB"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5885 $as_echo "$ac_ct_RANLIB" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5891 if test "x$ac_ct_RANLIB" = x; then
5892 RANLIB=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 RANLIB=$ac_ct_RANLIB
5902 else
5903 RANLIB="$ac_cv_prog_RANLIB"
5906 test -z "$RANLIB" && RANLIB=:
5913 # Determine commands to create old-style static archives.
5914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5915 old_postinstall_cmds='chmod 644 $oldlib'
5916 old_postuninstall_cmds=
5918 if test -n "$RANLIB"; then
5919 case $host_os in
5920 openbsd*)
5921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5926 esac
5927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930 case $host_os in
5931 darwin*)
5932 lock_old_archive_extraction=yes ;;
5934 lock_old_archive_extraction=no ;;
5935 esac
5975 # If no C compiler was specified, use CC.
5976 LTCC=${LTCC-"$CC"}
5978 # If no C compiler flags were specified, use CFLAGS.
5979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5981 # Allow CC to be a program name with arguments.
5982 compiler=$CC
5985 # Check for command to grab the raw symbol name followed by C symbol from nm.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5987 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5988 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5992 # These are sane defaults that work on at least a few old systems.
5993 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5995 # Character class describing NM global symbol codes.
5996 symcode='[BCDEGRST]'
5998 # Regexp to match symbols that can be accessed directly from C.
5999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6001 # Define system-specific variables.
6002 case $host_os in
6003 aix*)
6004 symcode='[BCDT]'
6006 cygwin* | mingw* | pw32* | cegcc*)
6007 symcode='[ABCDGISTW]'
6009 hpux*)
6010 if test "$host_cpu" = ia64; then
6011 symcode='[ABCDEGRST]'
6014 irix* | nonstopux*)
6015 symcode='[BCDEGRST]'
6017 osf*)
6018 symcode='[BCDEGQRST]'
6020 solaris*)
6021 symcode='[BDRT]'
6023 sco3.2v5*)
6024 symcode='[DT]'
6026 sysv4.2uw2*)
6027 symcode='[DT]'
6029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6030 symcode='[ABDT]'
6032 sysv4)
6033 symcode='[DFNSTU]'
6035 esac
6037 # If we're using GNU nm, then use its standard symbol codes.
6038 case `$NM -V 2>&1` in
6039 *GNU* | *'with BFD'*)
6040 symcode='[ABCDGIRSTW]' ;;
6041 esac
6043 # Transform an extracted symbol line into a proper C declaration.
6044 # Some systems (esp. on ia64) link data and code symbols differently,
6045 # so use this general approach.
6046 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6048 # Transform an extracted symbol line into symbol name and symbol address
6049 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6050 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'"
6052 # Handle CRLF in mingw tool chain
6053 opt_cr=
6054 case $build_os in
6055 mingw*)
6056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6058 esac
6060 # Try without a prefix underscore, then with it.
6061 for ac_symprfx in "" "_"; do
6063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6064 symxfrm="\\1 $ac_symprfx\\2 \\2"
6066 # Write the raw and C identifiers.
6067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6068 # Fake it for dumpbin and say T for any non-static function
6069 # and D for any global variable.
6070 # Also find C++ and __fastcall symbols from MSVC++,
6071 # which start with @ or ?.
6072 lt_cv_sys_global_symbol_pipe="$AWK '"\
6073 " {last_section=section; section=\$ 3};"\
6074 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6075 " \$ 0!~/External *\|/{next};"\
6076 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6077 " {if(hide[section]) next};"\
6078 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6079 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6080 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6081 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6082 " ' prfx=^$ac_symprfx"
6083 else
6084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087 # Check to see that the pipe works correctly.
6088 pipe_works=no
6090 rm -f conftest*
6091 cat > conftest.$ac_ext <<_LT_EOF
6092 #ifdef __cplusplus
6093 extern "C" {
6094 #endif
6095 char nm_test_var;
6096 void nm_test_func(void);
6097 void nm_test_func(void){}
6098 #ifdef __cplusplus
6100 #endif
6101 int main(){nm_test_var='a';nm_test_func();return(0);}
6102 _LT_EOF
6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105 (eval $ac_compile) 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; then
6109 # Now try to grab the symbols.
6110 nlist=conftest.nm
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6112 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; } && test -s "$nlist"; then
6116 # Try sorting and uniquifying the output.
6117 if sort "$nlist" | uniq > "$nlist"T; then
6118 mv -f "$nlist"T "$nlist"
6119 else
6120 rm -f "$nlist"T
6123 # Make sure that we snagged all the symbols we need.
6124 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6125 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6126 cat <<_LT_EOF > conftest.$ac_ext
6127 #ifdef __cplusplus
6128 extern "C" {
6129 #endif
6131 _LT_EOF
6132 # Now generate the symbol file.
6133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6135 cat <<_LT_EOF >> conftest.$ac_ext
6137 /* The mapping between symbol names and symbols. */
6138 const struct {
6139 const char *name;
6140 void *address;
6142 lt__PROGRAM__LTX_preloaded_symbols[] =
6144 { "@PROGRAM@", (void *) 0 },
6145 _LT_EOF
6146 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6147 cat <<\_LT_EOF >> conftest.$ac_ext
6148 {0, (void *) 0}
6151 /* This works around a problem in FreeBSD linker */
6152 #ifdef FREEBSD_WORKAROUND
6153 static const void *lt_preloaded_setup() {
6154 return lt__PROGRAM__LTX_preloaded_symbols;
6156 #endif
6158 #ifdef __cplusplus
6160 #endif
6161 _LT_EOF
6162 # Now try linking the two files.
6163 mv conftest.$ac_objext conftstm.$ac_objext
6164 lt_save_LIBS="$LIBS"
6165 lt_save_CFLAGS="$CFLAGS"
6166 LIBS="conftstm.$ac_objext"
6167 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6169 (eval $ac_link) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6173 pipe_works=yes
6175 LIBS="$lt_save_LIBS"
6176 CFLAGS="$lt_save_CFLAGS"
6177 else
6178 echo "cannot find nm_test_func in $nlist" >&5
6180 else
6181 echo "cannot find nm_test_var in $nlist" >&5
6183 else
6184 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6186 else
6187 echo "$progname: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 rm -rf conftest* conftst*
6192 # Do not use the global_symbol_pipe unless it works.
6193 if test "$pipe_works" = yes; then
6194 break
6195 else
6196 lt_cv_sys_global_symbol_pipe=
6198 done
6202 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6203 lt_cv_sys_global_symbol_to_cdecl=
6205 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6207 $as_echo "failed" >&6; }
6208 else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6210 $as_echo "ok" >&6; }
6234 # Check whether --enable-libtool-lock was given.
6235 if test "${enable_libtool_lock+set}" = set; then :
6236 enableval=$enable_libtool_lock;
6239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6241 # Some flags need to be propagated to the compiler or linker for good
6242 # libtool support.
6243 case $host in
6244 ia64-*-hpux*)
6245 # Find out which ABI we are using.
6246 echo 'int i;' > conftest.$ac_ext
6247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6248 (eval $ac_compile) 2>&5
6249 ac_status=$?
6250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251 test $ac_status = 0; }; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6253 *ELF-32*)
6254 HPUX_IA64_MODE="32"
6256 *ELF-64*)
6257 HPUX_IA64_MODE="64"
6259 esac
6261 rm -rf conftest*
6263 *-*-irix6*)
6264 # Find out which ABI we are using.
6265 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6267 (eval $ac_compile) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; }; then
6271 if test "$lt_cv_prog_gnu_ld" = yes; then
6272 case `/usr/bin/file conftest.$ac_objext` in
6273 *32-bit*)
6274 LD="${LD-ld} -melf32bsmip"
6276 *N32*)
6277 LD="${LD-ld} -melf32bmipn32"
6279 *64-bit*)
6280 LD="${LD-ld} -melf64bmip"
6282 esac
6283 else
6284 case `/usr/bin/file conftest.$ac_objext` in
6285 *32-bit*)
6286 LD="${LD-ld} -32"
6288 *N32*)
6289 LD="${LD-ld} -n32"
6291 *64-bit*)
6292 LD="${LD-ld} -64"
6294 esac
6297 rm -rf conftest*
6300 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6301 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6302 # Find out which ABI we are using.
6303 echo 'int i;' > conftest.$ac_ext
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; then
6309 case `/usr/bin/file conftest.o` in
6310 *32-bit*)
6311 case $host in
6312 x86_64-*kfreebsd*-gnu)
6313 LD="${LD-ld} -m elf_i386_fbsd"
6315 x86_64-*linux*)
6316 case `/usr/bin/file conftest.o` in
6317 *x86-64*)
6318 LD="${LD-ld} -m elf32_x86_64"
6321 LD="${LD-ld} -m elf_i386"
6323 esac
6325 powerpc64le-*linux*)
6326 LD="${LD-ld} -m elf32lppclinux"
6328 powerpc64-*linux*)
6329 LD="${LD-ld} -m elf32ppclinux"
6331 s390x-*linux*)
6332 LD="${LD-ld} -m elf_s390"
6334 sparc64-*linux*)
6335 LD="${LD-ld} -m elf32_sparc"
6337 esac
6339 *64-bit*)
6340 case $host in
6341 x86_64-*kfreebsd*-gnu)
6342 LD="${LD-ld} -m elf_x86_64_fbsd"
6344 x86_64-*linux*)
6345 LD="${LD-ld} -m elf_x86_64"
6347 powerpcle-*linux*)
6348 LD="${LD-ld} -m elf64lppc"
6350 powerpc-*linux*)
6351 LD="${LD-ld} -m elf64ppc"
6353 s390*-*linux*|s390*-*tpf*)
6354 LD="${LD-ld} -m elf64_s390"
6356 sparc*-*linux*)
6357 LD="${LD-ld} -m elf64_sparc"
6359 esac
6361 esac
6363 rm -rf conftest*
6366 *-*-sco3.2v5*)
6367 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6368 SAVE_CFLAGS="$CFLAGS"
6369 CFLAGS="$CFLAGS -belf"
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6371 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6372 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 ac_ext=c
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 if test x$gcc_no_link = xyes; then
6382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6388 main ()
6392 return 0;
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"; then :
6396 lt_cv_cc_needs_belf=yes
6397 else
6398 lt_cv_cc_needs_belf=no
6400 rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6402 ac_ext=c
6403 ac_cpp='$CPP $CPPFLAGS'
6404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6410 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6411 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413 CFLAGS="$SAVE_CFLAGS"
6416 sparc*-*solaris*)
6417 # Find out which ABI we are using.
6418 echo 'int i;' > conftest.$ac_ext
6419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6420 (eval $ac_compile) 2>&5
6421 ac_status=$?
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }; then
6424 case `/usr/bin/file conftest.o` in
6425 *64-bit*)
6426 case $lt_cv_prog_gnu_ld in
6427 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6430 LD="${LD-ld} -64"
6433 esac
6435 esac
6437 rm -rf conftest*
6439 esac
6441 need_locks="$enable_libtool_lock"
6444 case $host_os in
6445 rhapsody* | darwin*)
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$DSYMUTIL"; then
6455 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6474 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6475 if test -n "$DSYMUTIL"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6477 $as_echo "$DSYMUTIL" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6485 if test -z "$ac_cv_prog_DSYMUTIL"; then
6486 ac_ct_DSYMUTIL=$DSYMUTIL
6487 # Extract the first word of "dsymutil", so it can be a program name with args.
6488 set dummy dsymutil; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -n "$ac_ct_DSYMUTIL"; then
6495 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6508 done
6509 done
6510 IFS=$as_save_IFS
6514 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6515 if test -n "$ac_ct_DSYMUTIL"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6517 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6523 if test "x$ac_ct_DSYMUTIL" = x; then
6524 DSYMUTIL=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 DSYMUTIL=$ac_ct_DSYMUTIL
6534 else
6535 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$NMEDIT"; then
6547 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6560 done
6561 done
6562 IFS=$as_save_IFS
6566 NMEDIT=$ac_cv_prog_NMEDIT
6567 if test -n "$NMEDIT"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6569 $as_echo "$NMEDIT" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6577 if test -z "$ac_cv_prog_NMEDIT"; then
6578 ac_ct_NMEDIT=$NMEDIT
6579 # Extract the first word of "nmedit", so it can be a program name with args.
6580 set dummy nmedit; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$ac_ct_NMEDIT"; then
6587 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6600 done
6601 done
6602 IFS=$as_save_IFS
6606 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6607 if test -n "$ac_ct_NMEDIT"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6609 $as_echo "$ac_ct_NMEDIT" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6615 if test "x$ac_ct_NMEDIT" = x; then
6616 NMEDIT=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624 NMEDIT=$ac_ct_NMEDIT
6626 else
6627 NMEDIT="$ac_cv_prog_NMEDIT"
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_LIPO+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$LIPO"; then
6639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6658 LIPO=$ac_cv_prog_LIPO
6659 if test -n "$LIPO"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6661 $as_echo "$LIPO" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6669 if test -z "$ac_cv_prog_LIPO"; then
6670 ac_ct_LIPO=$LIPO
6671 # Extract the first word of "lipo", so it can be a program name with args.
6672 set dummy lipo; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 if test -n "$ac_ct_LIPO"; then
6679 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_LIPO="lipo"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6692 done
6693 done
6694 IFS=$as_save_IFS
6698 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6699 if test -n "$ac_ct_LIPO"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6701 $as_echo "$ac_ct_LIPO" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6707 if test "x$ac_ct_LIPO" = x; then
6708 LIPO=":"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716 LIPO=$ac_ct_LIPO
6718 else
6719 LIPO="$ac_cv_prog_LIPO"
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}otool; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$OTOOL"; then
6731 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6750 OTOOL=$ac_cv_prog_OTOOL
6751 if test -n "$OTOOL"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6753 $as_echo "$OTOOL" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_OTOOL"; then
6762 ac_ct_OTOOL=$OTOOL
6763 # Extract the first word of "otool", so it can be a program name with args.
6764 set dummy otool; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_OTOOL"; then
6771 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_OTOOL="otool"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6784 done
6785 done
6786 IFS=$as_save_IFS
6790 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6791 if test -n "$ac_ct_OTOOL"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6793 $as_echo "$ac_ct_OTOOL" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_OTOOL" = x; then
6800 OTOOL=":"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808 OTOOL=$ac_ct_OTOOL
6810 else
6811 OTOOL="$ac_cv_prog_OTOOL"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -n "$OTOOL64"; then
6823 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6842 OTOOL64=$ac_cv_prog_OTOOL64
6843 if test -n "$OTOOL64"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6845 $as_echo "$OTOOL64" >&6; }
6846 else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_OTOOL64"; then
6854 ac_ct_OTOOL64=$OTOOL64
6855 # Extract the first word of "otool64", so it can be a program name with args.
6856 set dummy otool64; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$ac_ct_OTOOL64"; then
6863 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_OTOOL64="otool64"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6882 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6883 if test -n "$ac_ct_OTOOL64"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6885 $as_echo "$ac_ct_OTOOL64" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_OTOOL64" = x; then
6892 OTOOL64=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900 OTOOL64=$ac_ct_OTOOL64
6902 else
6903 OTOOL64="$ac_cv_prog_OTOOL64"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6933 $as_echo_n "checking for -single_module linker flag... " >&6; }
6934 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 lt_cv_apple_cc_single_mod=no
6938 if test -z "${LT_MULTI_MODULE}"; then
6939 # By default we will add the -single_module flag. You can override
6940 # by either setting the environment variable LT_MULTI_MODULE
6941 # non-empty at configure time, or by adding -multi_module to the
6942 # link flags.
6943 rm -rf libconftest.dylib*
6944 echo "int foo(void){return 1;}" > conftest.c
6945 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946 -dynamiclib -Wl,-single_module conftest.c" >&5
6947 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6949 _lt_result=$?
6950 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6951 lt_cv_apple_cc_single_mod=yes
6952 else
6953 cat conftest.err >&5
6955 rm -rf libconftest.dylib*
6956 rm -f conftest.*
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6960 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6962 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6963 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 lt_cv_ld_exported_symbols_list=no
6967 save_LDFLAGS=$LDFLAGS
6968 echo "_main" > conftest.sym
6969 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6970 if test x$gcc_no_link = xyes; then
6971 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6977 main ()
6981 return 0;
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 lt_cv_ld_exported_symbols_list=yes
6986 else
6987 lt_cv_ld_exported_symbols_list=no
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 LDFLAGS="$save_LDFLAGS"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6995 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6997 $as_echo_n "checking for -force_load linker flag... " >&6; }
6998 if test "${lt_cv_ld_force_load+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 lt_cv_ld_force_load=no
7002 cat > conftest.c << _LT_EOF
7003 int forced_loaded() { return 2;}
7004 _LT_EOF
7005 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7006 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7007 echo "$AR cru libconftest.a conftest.o" >&5
7008 $AR cru libconftest.a conftest.o 2>&5
7009 cat > conftest.c << _LT_EOF
7010 int main() { return 0;}
7011 _LT_EOF
7012 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7013 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7014 _lt_result=$?
7015 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7016 lt_cv_ld_force_load=yes
7017 else
7018 cat conftest.err >&5
7020 rm -f conftest.err libconftest.a conftest conftest.c
7021 rm -rf conftest.dSYM
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7025 $as_echo "$lt_cv_ld_force_load" >&6; }
7026 case $host_os in
7027 rhapsody* | darwin1.[012])
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7029 darwin1.*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 darwin*) # darwin 5.x on
7032 # if running on 10.5 or later, the deployment target defaults
7033 # to the OS version, if on x86, and 10.4, the deployment
7034 # target defaults to 10.4. Don't you love it?
7035 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7036 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7038 10.[012][,.]*)
7039 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7040 10.*)
7041 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7042 esac
7044 esac
7045 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7046 _lt_dar_single_mod='$single_module'
7048 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7049 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7050 else
7051 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7053 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7054 _lt_dsymutil='~$DSYMUTIL $lib || :'
7055 else
7056 _lt_dsymutil=
7059 esac
7061 for ac_header in dlfcn.h
7062 do :
7063 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7065 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_DLFCN_H 1
7068 _ACEOF
7072 done
7078 # Set options
7082 enable_dlopen=no
7085 enable_win32_dll=no
7088 # Check whether --enable-shared was given.
7089 if test "${enable_shared+set}" = set; then :
7090 enableval=$enable_shared; p=${PACKAGE-default}
7091 case $enableval in
7092 yes) enable_shared=yes ;;
7093 no) enable_shared=no ;;
7095 enable_shared=no
7096 # Look at the argument we got. We use all the common list separators.
7097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7098 for pkg in $enableval; do
7099 IFS="$lt_save_ifs"
7100 if test "X$pkg" = "X$p"; then
7101 enable_shared=yes
7103 done
7104 IFS="$lt_save_ifs"
7106 esac
7107 else
7108 enable_shared=yes
7119 # Check whether --enable-static was given.
7120 if test "${enable_static+set}" = set; then :
7121 enableval=$enable_static; p=${PACKAGE-default}
7122 case $enableval in
7123 yes) enable_static=yes ;;
7124 no) enable_static=no ;;
7126 enable_static=no
7127 # Look at the argument we got. We use all the common list separators.
7128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7129 for pkg in $enableval; do
7130 IFS="$lt_save_ifs"
7131 if test "X$pkg" = "X$p"; then
7132 enable_static=yes
7134 done
7135 IFS="$lt_save_ifs"
7137 esac
7138 else
7139 enable_static=yes
7151 # Check whether --with-pic was given.
7152 if test "${with_pic+set}" = set; then :
7153 withval=$with_pic; pic_mode="$withval"
7154 else
7155 pic_mode=default
7159 test -z "$pic_mode" && pic_mode=default
7167 # Check whether --enable-fast-install was given.
7168 if test "${enable_fast_install+set}" = set; then :
7169 enableval=$enable_fast_install; p=${PACKAGE-default}
7170 case $enableval in
7171 yes) enable_fast_install=yes ;;
7172 no) enable_fast_install=no ;;
7174 enable_fast_install=no
7175 # Look at the argument we got. We use all the common list separators.
7176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7177 for pkg in $enableval; do
7178 IFS="$lt_save_ifs"
7179 if test "X$pkg" = "X$p"; then
7180 enable_fast_install=yes
7182 done
7183 IFS="$lt_save_ifs"
7185 esac
7186 else
7187 enable_fast_install=yes
7200 # This can be used to rebuild libtool when needed
7201 LIBTOOL_DEPS="$ltmain"
7203 # Always use our own libtool.
7204 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7231 test -z "$LN_S" && LN_S="ln -s"
7246 if test -n "${ZSH_VERSION+set}" ; then
7247 setopt NO_GLOB_SUBST
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7251 $as_echo_n "checking for objdir... " >&6; }
7252 if test "${lt_cv_objdir+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 rm -f .libs 2>/dev/null
7256 mkdir .libs 2>/dev/null
7257 if test -d .libs; then
7258 lt_cv_objdir=.libs
7259 else
7260 # MS-DOS does not allow filenames that begin with a dot.
7261 lt_cv_objdir=_libs
7263 rmdir .libs 2>/dev/null
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7266 $as_echo "$lt_cv_objdir" >&6; }
7267 objdir=$lt_cv_objdir
7273 cat >>confdefs.h <<_ACEOF
7274 #define LT_OBJDIR "$lt_cv_objdir/"
7275 _ACEOF
7280 case $host_os in
7281 aix3*)
7282 # AIX sometimes has problems with the GCC collect2 program. For some
7283 # reason, if we set the COLLECT_NAMES environment variable, the problems
7284 # vanish in a puff of smoke.
7285 if test "X${COLLECT_NAMES+set}" != Xset; then
7286 COLLECT_NAMES=
7287 export COLLECT_NAMES
7290 esac
7292 # Global variables:
7293 ofile=libtool
7294 can_build_shared=yes
7296 # All known linkers require a `.a' archive for static linking (except MSVC,
7297 # which needs '.lib').
7298 libext=a
7300 with_gnu_ld="$lt_cv_prog_gnu_ld"
7302 old_CC="$CC"
7303 old_CFLAGS="$CFLAGS"
7305 # Set sane defaults for various variables
7306 test -z "$CC" && CC=cc
7307 test -z "$LTCC" && LTCC=$CC
7308 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7309 test -z "$LD" && LD=ld
7310 test -z "$ac_objext" && ac_objext=o
7312 for cc_temp in $compiler""; do
7313 case $cc_temp in
7314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7316 \-*) ;;
7317 *) break;;
7318 esac
7319 done
7320 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7323 # Only perform the check for file, if the check method requires it
7324 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7325 case $deplibs_check_method in
7326 file_magic*)
7327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7329 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7330 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 case $MAGIC_CMD in
7334 [\\/*] | ?:[\\/]*)
7335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7338 lt_save_MAGIC_CMD="$MAGIC_CMD"
7339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7341 for ac_dir in $ac_dummy; do
7342 IFS="$lt_save_ifs"
7343 test -z "$ac_dir" && ac_dir=.
7344 if test -f $ac_dir/${ac_tool_prefix}file; then
7345 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7346 if test -n "$file_magic_test_file"; then
7347 case $deplibs_check_method in
7348 "file_magic "*)
7349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7352 $EGREP "$file_magic_regex" > /dev/null; then
7354 else
7355 cat <<_LT_EOF 1>&2
7357 *** Warning: the command libtool uses to detect shared libraries,
7358 *** $file_magic_cmd, produces output that libtool cannot recognize.
7359 *** The result is that libtool may fail to recognize shared libraries
7360 *** as such. This will affect the creation of libtool libraries that
7361 *** depend on shared libraries, but programs linked with such libtool
7362 *** libraries will work regardless of this problem. Nevertheless, you
7363 *** may want to report the problem to your system manager and/or to
7364 *** bug-libtool@gnu.org
7366 _LT_EOF
7367 fi ;;
7368 esac
7370 break
7372 done
7373 IFS="$lt_save_ifs"
7374 MAGIC_CMD="$lt_save_MAGIC_CMD"
7376 esac
7379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380 if test -n "$MAGIC_CMD"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7382 $as_echo "$MAGIC_CMD" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7392 if test -z "$lt_cv_path_MAGIC_CMD"; then
7393 if test -n "$ac_tool_prefix"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7395 $as_echo_n "checking for file... " >&6; }
7396 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 case $MAGIC_CMD in
7400 [\\/*] | ?:[\\/]*)
7401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7404 lt_save_MAGIC_CMD="$MAGIC_CMD"
7405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7407 for ac_dir in $ac_dummy; do
7408 IFS="$lt_save_ifs"
7409 test -z "$ac_dir" && ac_dir=.
7410 if test -f $ac_dir/file; then
7411 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7412 if test -n "$file_magic_test_file"; then
7413 case $deplibs_check_method in
7414 "file_magic "*)
7415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7418 $EGREP "$file_magic_regex" > /dev/null; then
7420 else
7421 cat <<_LT_EOF 1>&2
7423 *** Warning: the command libtool uses to detect shared libraries,
7424 *** $file_magic_cmd, produces output that libtool cannot recognize.
7425 *** The result is that libtool may fail to recognize shared libraries
7426 *** as such. This will affect the creation of libtool libraries that
7427 *** depend on shared libraries, but programs linked with such libtool
7428 *** libraries will work regardless of this problem. Nevertheless, you
7429 *** may want to report the problem to your system manager and/or to
7430 *** bug-libtool@gnu.org
7432 _LT_EOF
7433 fi ;;
7434 esac
7436 break
7438 done
7439 IFS="$lt_save_ifs"
7440 MAGIC_CMD="$lt_save_MAGIC_CMD"
7442 esac
7445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7446 if test -n "$MAGIC_CMD"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7448 $as_echo "$MAGIC_CMD" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7455 else
7456 MAGIC_CMD=:
7462 esac
7464 # Use C for the default configuration in the libtool script
7466 lt_save_CC="$CC"
7467 ac_ext=c
7468 ac_cpp='$CPP $CPPFLAGS'
7469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474 # Source file extension for C test sources.
7475 ac_ext=c
7477 # Object file extension for compiled C test sources.
7478 objext=o
7479 objext=$objext
7481 # Code to be used in simple compile tests
7482 lt_simple_compile_test_code="int some_variable = 0;"
7484 # Code to be used in simple link tests
7485 lt_simple_link_test_code='int main(){return(0);}'
7493 # If no C compiler was specified, use CC.
7494 LTCC=${LTCC-"$CC"}
7496 # If no C compiler flags were specified, use CFLAGS.
7497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7499 # Allow CC to be a program name with arguments.
7500 compiler=$CC
7502 # Save the default compiler, since it gets overwritten when the other
7503 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7504 compiler_DEFAULT=$CC
7506 # save warnings/boilerplate of simple test code
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510 _lt_compiler_boilerplate=`cat conftest.err`
7511 $RM conftest*
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7516 _lt_linker_boilerplate=`cat conftest.err`
7517 $RM -r conftest*
7520 ## CAVEAT EMPTOR:
7521 ## There is no encapsulation within the following macros, do not change
7522 ## the running order or otherwise move them around unless you know exactly
7523 ## what you are doing...
7524 if test -n "$compiler"; then
7526 lt_prog_compiler_no_builtin_flag=
7528 if test "$GCC" = yes; then
7529 case $cc_basename in
7530 nvcc*)
7531 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7533 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7534 esac
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7537 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 lt_cv_prog_compiler_rtti_exceptions=no
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7544 lt_compiler_flag="-fno-rtti -fno-exceptions"
7545 # Insert the option either (1) after the last *FLAGS variable, or
7546 # (2) before a word containing "conftest.", or (3) at the end.
7547 # Note that $ac_compile itself does not contain backslashes and begins
7548 # with a dollar sign (not a hyphen), so the echo should work correctly.
7549 # The option is referenced via a variable to avoid confusing sed.
7550 lt_compile=`echo "$ac_compile" | $SED \
7551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553 -e 's:$: $lt_compiler_flag:'`
7554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7555 (eval "$lt_compile" 2>conftest.err)
7556 ac_status=$?
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 if (exit $ac_status) && test -s "$ac_outfile"; then
7560 # The compiler can only warn and ignore the option if not recognized
7561 # So say no if there are warnings other than the usual output.
7562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7565 lt_cv_prog_compiler_rtti_exceptions=yes
7568 $RM conftest*
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7572 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7576 else
7587 lt_prog_compiler_wl=
7588 lt_prog_compiler_pic=
7589 lt_prog_compiler_static=
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7592 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7594 if test "$GCC" = yes; then
7595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_static='-static'
7598 case $host_os in
7599 aix*)
7600 # All AIX code is PIC.
7601 if test "$host_cpu" = ia64; then
7602 # AIX 5 now supports IA64 processor
7603 lt_prog_compiler_static='-Bstatic'
7605 lt_prog_compiler_pic='-fPIC'
7608 amigaos*)
7609 case $host_cpu in
7610 powerpc)
7611 # see comment about AmigaOS4 .so support
7612 lt_prog_compiler_pic='-fPIC'
7614 m68k)
7615 # FIXME: we need at least 68020 code to build shared libraries, but
7616 # adding the `-m68020' flag to GCC prevents building anything better,
7617 # like `-m68040'.
7618 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7620 esac
7623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7624 # PIC is the default for these OSes.
7627 mingw* | cygwin* | pw32* | os2* | cegcc*)
7628 # This hack is so that the source file can tell whether it is being
7629 # built for inclusion in a dll (and should export symbols for example).
7630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7631 # (--disable-auto-import) libraries
7632 lt_prog_compiler_pic='-DDLL_EXPORT'
7635 darwin* | rhapsody*)
7636 # PIC is the default on this platform
7637 # Common symbols not allowed in MH_DYLIB files
7638 lt_prog_compiler_pic='-fno-common'
7641 haiku*)
7642 # PIC is the default for Haiku.
7643 # The "-static" flag exists, but is broken.
7644 lt_prog_compiler_static=
7647 hpux*)
7648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7650 # sets the default TLS model and affects inlining.
7651 case $host_cpu in
7652 hppa*64*)
7653 # +Z the default
7656 lt_prog_compiler_pic='-fPIC'
7658 esac
7661 interix[3-9]*)
7662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7663 # Instead, we relocate shared libraries at runtime.
7666 msdosdjgpp*)
7667 # Just because we use GCC doesn't mean we suddenly get shared libraries
7668 # on systems that don't support them.
7669 lt_prog_compiler_can_build_shared=no
7670 enable_shared=no
7673 *nto* | *qnx*)
7674 # QNX uses GNU C++, but need to define -shared option too, otherwise
7675 # it will coredump.
7676 lt_prog_compiler_pic='-fPIC -shared'
7679 sysv4*MP*)
7680 if test -d /usr/nec; then
7681 lt_prog_compiler_pic=-Kconform_pic
7686 lt_prog_compiler_pic='-fPIC'
7688 esac
7690 case $cc_basename in
7691 nvcc*) # Cuda Compiler Driver 2.2
7692 lt_prog_compiler_wl='-Xlinker '
7693 lt_prog_compiler_pic='-Xcompiler -fPIC'
7695 esac
7696 else
7697 # PORTME Check for flag to pass linker flags through the system compiler.
7698 case $host_os in
7699 aix*)
7700 lt_prog_compiler_wl='-Wl,'
7701 if test "$host_cpu" = ia64; then
7702 # AIX 5 now supports IA64 processor
7703 lt_prog_compiler_static='-Bstatic'
7704 else
7705 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7709 mingw* | cygwin* | pw32* | os2* | cegcc*)
7710 # This hack is so that the source file can tell whether it is being
7711 # built for inclusion in a dll (and should export symbols for example).
7712 lt_prog_compiler_pic='-DDLL_EXPORT'
7715 hpux9* | hpux10* | hpux11*)
7716 lt_prog_compiler_wl='-Wl,'
7717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718 # not for PA HP-UX.
7719 case $host_cpu in
7720 hppa*64*|ia64*)
7721 # +Z the default
7724 lt_prog_compiler_pic='+Z'
7726 esac
7727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7728 lt_prog_compiler_static='${wl}-a ${wl}archive'
7731 irix5* | irix6* | nonstopux*)
7732 lt_prog_compiler_wl='-Wl,'
7733 # PIC (with -KPIC) is the default.
7734 lt_prog_compiler_static='-non_shared'
7737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7738 case $cc_basename in
7739 # old Intel for x86_64 which still supported -KPIC.
7740 ecc*)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-static'
7745 # icc used to be incompatible with GCC.
7746 # ICC 10 doesn't accept -KPIC any more.
7747 icc* | ifort*)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_pic='-fPIC'
7750 lt_prog_compiler_static='-static'
7752 # Lahey Fortran 8.1.
7753 lf95*)
7754 lt_prog_compiler_wl='-Wl,'
7755 lt_prog_compiler_pic='--shared'
7756 lt_prog_compiler_static='--static'
7758 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7759 # Portland Group compilers (*not* the Pentium gcc compiler,
7760 # which looks to be a dead project)
7761 lt_prog_compiler_wl='-Wl,'
7762 lt_prog_compiler_pic='-fpic'
7763 lt_prog_compiler_static='-Bstatic'
7765 ccc*)
7766 lt_prog_compiler_wl='-Wl,'
7767 # All Alpha code is PIC.
7768 lt_prog_compiler_static='-non_shared'
7770 xl* | bgxl* | bgf* | mpixl*)
7771 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7772 lt_prog_compiler_wl='-Wl,'
7773 lt_prog_compiler_pic='-qpic'
7774 lt_prog_compiler_static='-qstaticlink'
7777 case `$CC -V 2>&1 | sed 5q` in
7778 *Sun\ F* | *Sun*Fortran*)
7779 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 lt_prog_compiler_wl=''
7784 *Sun\ C*)
7785 # Sun C 5.9
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7788 lt_prog_compiler_wl='-Wl,'
7790 esac
7792 esac
7795 newsos6)
7796 lt_prog_compiler_pic='-KPIC'
7797 lt_prog_compiler_static='-Bstatic'
7800 *nto* | *qnx*)
7801 # QNX uses GNU C++, but need to define -shared option too, otherwise
7802 # it will coredump.
7803 lt_prog_compiler_pic='-fPIC -shared'
7806 osf3* | osf4* | osf5*)
7807 lt_prog_compiler_wl='-Wl,'
7808 # All OSF/1 code is PIC.
7809 lt_prog_compiler_static='-non_shared'
7812 rdos*)
7813 lt_prog_compiler_static='-non_shared'
7816 solaris*)
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 case $cc_basename in
7820 f77* | f90* | f95*)
7821 lt_prog_compiler_wl='-Qoption ld ';;
7823 lt_prog_compiler_wl='-Wl,';;
7824 esac
7827 sunos4*)
7828 lt_prog_compiler_wl='-Qoption ld '
7829 lt_prog_compiler_pic='-PIC'
7830 lt_prog_compiler_static='-Bstatic'
7833 sysv4 | sysv4.2uw2* | sysv4.3*)
7834 lt_prog_compiler_wl='-Wl,'
7835 lt_prog_compiler_pic='-KPIC'
7836 lt_prog_compiler_static='-Bstatic'
7839 sysv4*MP*)
7840 if test -d /usr/nec ;then
7841 lt_prog_compiler_pic='-Kconform_pic'
7842 lt_prog_compiler_static='-Bstatic'
7846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-Bstatic'
7852 unicos*)
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_can_build_shared=no
7857 uts4*)
7858 lt_prog_compiler_pic='-pic'
7859 lt_prog_compiler_static='-Bstatic'
7863 lt_prog_compiler_can_build_shared=no
7865 esac
7868 case $host_os in
7869 # For platforms which do not support PIC, -DPIC is meaningless:
7870 *djgpp*)
7871 lt_prog_compiler_pic=
7874 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7876 esac
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7878 $as_echo "$lt_prog_compiler_pic" >&6; }
7886 # Check to make sure the PIC flag actually works.
7888 if test -n "$lt_prog_compiler_pic"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7890 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7891 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 lt_cv_prog_compiler_pic_works=no
7895 ac_outfile=conftest.$ac_objext
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7898 # Insert the option either (1) after the last *FLAGS variable, or
7899 # (2) before a word containing "conftest.", or (3) at the end.
7900 # Note that $ac_compile itself does not contain backslashes and begins
7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
7902 # The option is referenced via a variable to avoid confusing sed.
7903 lt_compile=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
7907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7908 (eval "$lt_compile" 2>conftest.err)
7909 ac_status=$?
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 if (exit $ac_status) && test -s "$ac_outfile"; then
7913 # The compiler can only warn and ignore the option if not recognized
7914 # So say no if there are warnings other than the usual output.
7915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7918 lt_cv_prog_compiler_pic_works=yes
7921 $RM conftest*
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7925 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7927 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7928 case $lt_prog_compiler_pic in
7929 "" | " "*) ;;
7930 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7931 esac
7932 else
7933 lt_prog_compiler_pic=
7934 lt_prog_compiler_can_build_shared=no
7945 # Check to make sure the static flag actually works.
7947 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7949 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7950 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 lt_cv_prog_compiler_static_works=no
7954 save_LDFLAGS="$LDFLAGS"
7955 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7958 # The linker can only warn and ignore the option if not recognized
7959 # So say no if there are warnings
7960 if test -s conftest.err; then
7961 # Append any errors to the config.log.
7962 cat conftest.err 1>&5
7963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7965 if diff conftest.exp conftest.er2 >/dev/null; then
7966 lt_cv_prog_compiler_static_works=yes
7968 else
7969 lt_cv_prog_compiler_static_works=yes
7972 $RM -r conftest*
7973 LDFLAGS="$save_LDFLAGS"
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7977 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7979 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7981 else
7982 lt_prog_compiler_static=
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7993 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 lt_cv_prog_compiler_c_o=no
7997 $RM -r conftest 2>/dev/null
7998 mkdir conftest
7999 cd conftest
8000 mkdir out
8001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8003 lt_compiler_flag="-o out/conftest2.$ac_objext"
8004 # Insert the option either (1) after the last *FLAGS variable, or
8005 # (2) before a word containing "conftest.", or (3) at the end.
8006 # Note that $ac_compile itself does not contain backslashes and begins
8007 # with a dollar sign (not a hyphen), so the echo should work correctly.
8008 lt_compile=`echo "$ac_compile" | $SED \
8009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8011 -e 's:$: $lt_compiler_flag:'`
8012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8013 (eval "$lt_compile" 2>out/conftest.err)
8014 ac_status=$?
8015 cat out/conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8018 then
8019 # The compiler can only warn and ignore the option if not recognized
8020 # So say no if there are warnings
8021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8024 lt_cv_prog_compiler_c_o=yes
8027 chmod u+w . 2>&5
8028 $RM conftest*
8029 # SGI C++ compiler will create directory out/ii_files/ for
8030 # template instantiation
8031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8032 $RM out/* && rmdir out
8033 cd ..
8034 $RM -r conftest
8035 $RM conftest*
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8039 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8047 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8048 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 lt_cv_prog_compiler_c_o=no
8052 $RM -r conftest 2>/dev/null
8053 mkdir conftest
8054 cd conftest
8055 mkdir out
8056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8058 lt_compiler_flag="-o out/conftest2.$ac_objext"
8059 # Insert the option either (1) after the last *FLAGS variable, or
8060 # (2) before a word containing "conftest.", or (3) at the end.
8061 # Note that $ac_compile itself does not contain backslashes and begins
8062 # with a dollar sign (not a hyphen), so the echo should work correctly.
8063 lt_compile=`echo "$ac_compile" | $SED \
8064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8066 -e 's:$: $lt_compiler_flag:'`
8067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8068 (eval "$lt_compile" 2>out/conftest.err)
8069 ac_status=$?
8070 cat out/conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8073 then
8074 # The compiler can only warn and ignore the option if not recognized
8075 # So say no if there are warnings
8076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8079 lt_cv_prog_compiler_c_o=yes
8082 chmod u+w . 2>&5
8083 $RM conftest*
8084 # SGI C++ compiler will create directory out/ii_files/ for
8085 # template instantiation
8086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8087 $RM out/* && rmdir out
8088 cd ..
8089 $RM -r conftest
8090 $RM conftest*
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8094 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8099 hard_links="nottested"
8100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8101 # do not overwrite the value of need_locks provided by the user
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8103 $as_echo_n "checking if we can lock with hard links... " >&6; }
8104 hard_links=yes
8105 $RM conftest*
8106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8107 touch conftest.a
8108 ln conftest.a conftest.b 2>&5 || hard_links=no
8109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8111 $as_echo "$hard_links" >&6; }
8112 if test "$hard_links" = no; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8114 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8115 need_locks=warn
8117 else
8118 need_locks=no
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8129 runpath_var=
8130 allow_undefined_flag=
8131 always_export_symbols=no
8132 archive_cmds=
8133 archive_expsym_cmds=
8134 compiler_needs_object=no
8135 enable_shared_with_static_runtimes=no
8136 export_dynamic_flag_spec=
8137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8138 hardcode_automatic=no
8139 hardcode_direct=no
8140 hardcode_direct_absolute=no
8141 hardcode_libdir_flag_spec=
8142 hardcode_libdir_flag_spec_ld=
8143 hardcode_libdir_separator=
8144 hardcode_minus_L=no
8145 hardcode_shlibpath_var=unsupported
8146 inherit_rpath=no
8147 link_all_deplibs=unknown
8148 module_cmds=
8149 module_expsym_cmds=
8150 old_archive_from_new_cmds=
8151 old_archive_from_expsyms_cmds=
8152 thread_safe_flag_spec=
8153 whole_archive_flag_spec=
8154 # include_expsyms should be a list of space-separated symbols to be *always*
8155 # included in the symbol list
8156 include_expsyms=
8157 # exclude_expsyms can be an extended regexp of symbols to exclude
8158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8160 # as well as any symbol that contains `d'.
8161 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8163 # platforms (ab)use it in PIC code, but their linkers get confused if
8164 # the symbol is explicitly referenced. Since portable code cannot
8165 # rely on this symbol name, it's probably fine to never include it in
8166 # preloaded symbol tables.
8167 # Exclude shared library initialization/finalization symbols.
8168 extract_expsyms_cmds=
8170 case $host_os in
8171 cygwin* | mingw* | pw32* | cegcc*)
8172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8173 # When not using gcc, we currently assume that we are using
8174 # Microsoft Visual C++.
8175 if test "$GCC" != yes; then
8176 with_gnu_ld=no
8179 interix*)
8180 # we just hope/assume this is gcc and not c89 (= MSVC++)
8181 with_gnu_ld=yes
8183 openbsd*)
8184 with_gnu_ld=no
8186 esac
8188 ld_shlibs=yes
8190 # On some targets, GNU ld is compatible enough with the native linker
8191 # that we're better off using the native interface for both.
8192 lt_use_gnu_ld_interface=no
8193 if test "$with_gnu_ld" = yes; then
8194 case $host_os in
8195 aix*)
8196 # The AIX port of GNU ld has always aspired to compatibility
8197 # with the native linker. However, as the warning in the GNU ld
8198 # block says, versions before 2.19.5* couldn't really create working
8199 # shared libraries, regardless of the interface used.
8200 case `$LD -v 2>&1` in
8201 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8202 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8203 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8205 lt_use_gnu_ld_interface=yes
8207 esac
8210 lt_use_gnu_ld_interface=yes
8212 esac
8215 if test "$lt_use_gnu_ld_interface" = yes; then
8216 # If archive_cmds runs LD, not CC, wlarc should be empty
8217 wlarc='${wl}'
8219 # Set some defaults for GNU ld with shared library support. These
8220 # are reset later if shared libraries are not supported. Putting them
8221 # here allows them to be overridden if necessary.
8222 runpath_var=LD_RUN_PATH
8223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8224 export_dynamic_flag_spec='${wl}--export-dynamic'
8225 # ancient GNU ld didn't support --whole-archive et. al.
8226 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8228 else
8229 whole_archive_flag_spec=
8231 supports_anon_versioning=no
8232 case `$LD -v 2>&1` in
8233 *GNU\ gold*) supports_anon_versioning=yes ;;
8234 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8237 *\ 2.11.*) ;; # other 2.11 versions
8238 *) supports_anon_versioning=yes ;;
8239 esac
8241 # See if GNU ld supports shared libraries.
8242 case $host_os in
8243 aix[3-9]*)
8244 # On AIX/PPC, the GNU linker is very broken
8245 if test "$host_cpu" != ia64; then
8246 ld_shlibs=no
8247 cat <<_LT_EOF 1>&2
8249 *** Warning: the GNU linker, at least up to release 2.19, is reported
8250 *** to be unable to reliably create shared libraries on AIX.
8251 *** Therefore, libtool is disabling shared libraries support. If you
8252 *** really care for shared libraries, you may want to install binutils
8253 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8254 *** You will then need to restart the configuration process.
8256 _LT_EOF
8260 amigaos*)
8261 case $host_cpu in
8262 powerpc)
8263 # see comment about AmigaOS4 .so support
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds=''
8267 m68k)
8268 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)'
8269 hardcode_libdir_flag_spec='-L$libdir'
8270 hardcode_minus_L=yes
8272 esac
8275 beos*)
8276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8277 allow_undefined_flag=unsupported
8278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8279 # support --undefined. This deserves some investigation. FIXME
8280 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281 else
8282 ld_shlibs=no
8286 cygwin* | mingw* | pw32* | cegcc*)
8287 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8288 # as there is no search path for DLLs.
8289 hardcode_libdir_flag_spec='-L$libdir'
8290 export_dynamic_flag_spec='${wl}--export-all-symbols'
8291 allow_undefined_flag=unsupported
8292 always_export_symbols=no
8293 enable_shared_with_static_runtimes=yes
8294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8296 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8298 # If the export-symbols file already is a .def file (1st line
8299 # is EXPORTS), use it as is; otherwise, prepend...
8300 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8301 cp $export_symbols $output_objdir/$soname.def;
8302 else
8303 echo EXPORTS > $output_objdir/$soname.def;
8304 cat $export_symbols >> $output_objdir/$soname.def;
8306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8307 else
8308 ld_shlibs=no
8312 haiku*)
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 link_all_deplibs=yes
8317 interix[3-9]*)
8318 hardcode_direct=no
8319 hardcode_shlibpath_var=no
8320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8321 export_dynamic_flag_spec='${wl}-E'
8322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8323 # Instead, shared libraries are loaded at an image base (0x10000000 by
8324 # default) and relocated if they conflict, which is a slow very memory
8325 # consuming and fragmenting process. To avoid this, we pick a random,
8326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8329 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'
8332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8333 tmp_diet=no
8334 if test "$host_os" = linux-dietlibc; then
8335 case $cc_basename in
8336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8337 esac
8339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8340 && test "$tmp_diet" = no
8341 then
8342 tmp_addflag=' $pic_flag'
8343 tmp_sharedflag='-shared'
8344 case $cc_basename,$host_cpu in
8345 pgcc*) # Portland Group C compiler
8346 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'
8347 tmp_addflag=' $pic_flag'
8349 pgf77* | pgf90* | pgf95* | pgfortran*)
8350 # Portland Group f77 and f90 compilers
8351 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'
8352 tmp_addflag=' $pic_flag -Mnomain' ;;
8353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8354 tmp_addflag=' -i_dynamic' ;;
8355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8356 tmp_addflag=' -i_dynamic -nofor_main' ;;
8357 ifc* | ifort*) # Intel Fortran compiler
8358 tmp_addflag=' -nofor_main' ;;
8359 lf95*) # Lahey Fortran 8.1
8360 whole_archive_flag_spec=
8361 tmp_sharedflag='--shared' ;;
8362 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8363 tmp_sharedflag='-qmkshrobj'
8364 tmp_addflag= ;;
8365 nvcc*) # Cuda Compiler Driver 2.2
8366 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'
8367 compiler_needs_object=yes
8369 esac
8370 case `$CC -V 2>&1 | sed 5q` in
8371 *Sun\ C*) # Sun C 5.9
8372 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'
8373 compiler_needs_object=yes
8374 tmp_sharedflag='-G' ;;
8375 *Sun\ F*) # Sun Fortran 8.3
8376 tmp_sharedflag='-G' ;;
8377 esac
8378 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8380 if test "x$supports_anon_versioning" = xyes; then
8381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8383 echo "local: *; };" >> $output_objdir/$libname.ver~
8384 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8387 case $cc_basename in
8388 xlf* | bgf* | bgxlf* | mpixlf*)
8389 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8390 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8391 hardcode_libdir_flag_spec=
8392 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8393 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8394 if test "x$supports_anon_versioning" = xyes; then
8395 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8397 echo "local: *; };" >> $output_objdir/$libname.ver~
8398 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8401 esac
8402 else
8403 ld_shlibs=no
8407 netbsd*)
8408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8409 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8410 wlarc=
8411 else
8412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417 solaris*)
8418 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8419 ld_shlibs=no
8420 cat <<_LT_EOF 1>&2
8422 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8423 *** create shared libraries on Solaris systems. Therefore, libtool
8424 *** is disabling shared libraries support. We urge you to upgrade GNU
8425 *** binutils to release 2.9.1 or newer. Another option is to modify
8426 *** your PATH or compiler configuration so that the native linker is
8427 *** used, and then restart.
8429 _LT_EOF
8430 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8432 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8433 else
8434 ld_shlibs=no
8438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8439 case `$LD -v 2>&1` in
8440 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8441 ld_shlibs=no
8442 cat <<_LT_EOF 1>&2
8444 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8445 *** reliably create shared libraries on SCO systems. Therefore, libtool
8446 *** is disabling shared libraries support. We urge you to upgrade GNU
8447 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8448 *** your PATH or compiler configuration so that the native linker is
8449 *** used, and then restart.
8451 _LT_EOF
8454 # For security reasons, it is highly recommended that you always
8455 # use absolute paths for naming shared libraries, and exclude the
8456 # DT_RUNPATH tag from executables and libraries. But doing so
8457 # requires that you compile everything twice, which is a pain.
8458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8462 else
8463 ld_shlibs=no
8466 esac
8469 sunos4*)
8470 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8471 wlarc=
8472 hardcode_direct=yes
8473 hardcode_shlibpath_var=no
8477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8480 else
8481 ld_shlibs=no
8484 esac
8486 if test "$ld_shlibs" = no; then
8487 runpath_var=
8488 hardcode_libdir_flag_spec=
8489 export_dynamic_flag_spec=
8490 whole_archive_flag_spec=
8492 else
8493 # PORTME fill in a description of your system's linker (not GNU ld)
8494 case $host_os in
8495 aix3*)
8496 allow_undefined_flag=unsupported
8497 always_export_symbols=yes
8498 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'
8499 # Note: this linker hardcodes the directories in LIBPATH if there
8500 # are no directories specified by -L.
8501 hardcode_minus_L=yes
8502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8503 # Neither direct hardcoding nor static linking is supported with a
8504 # broken collect2.
8505 hardcode_direct=unsupported
8509 aix[4-9]*)
8510 if test "$host_cpu" = ia64; then
8511 # On IA64, the linker does run time linking by default, so we don't
8512 # have to do anything special.
8513 aix_use_runtimelinking=no
8514 exp_sym_flag='-Bexport'
8515 no_entry_flag=""
8516 else
8517 # If we're using GNU nm, then we don't want the "-C" option.
8518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8519 # Also, AIX nm treats weak defined symbols like other global
8520 # defined symbols, whereas GNU nm marks them as "W".
8521 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8522 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'
8523 else
8524 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8526 aix_use_runtimelinking=no
8528 # Test if we are trying to use run time linking or normal
8529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8530 # need to do runtime linking.
8531 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8532 for ld_flag in $LDFLAGS; do
8533 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8534 aix_use_runtimelinking=yes
8535 break
8537 done
8539 esac
8541 exp_sym_flag='-bexport'
8542 no_entry_flag='-bnoentry'
8545 # When large executables or shared objects are built, AIX ld can
8546 # have problems creating the table of contents. If linking a library
8547 # or program results in "error TOC overflow" add -mminimal-toc to
8548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8551 archive_cmds=''
8552 hardcode_direct=yes
8553 hardcode_direct_absolute=yes
8554 hardcode_libdir_separator=':'
8555 link_all_deplibs=yes
8556 file_list_spec='${wl}-f,'
8558 if test "$GCC" = yes; then
8559 case $host_os in aix4.[012]|aix4.[012].*)
8560 # We only want to do this on AIX 4.2 and lower, the check
8561 # below for broken collect2 doesn't work under 4.3+
8562 collect2name=`${CC} -print-prog-name=collect2`
8563 if test -f "$collect2name" &&
8564 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8565 then
8566 # We have reworked collect2
8568 else
8569 # We have old collect2
8570 hardcode_direct=unsupported
8571 # It fails to find uninstalled libraries when the uninstalled
8572 # path is not listed in the libpath. Setting hardcode_minus_L
8573 # to unsupported forces relinking
8574 hardcode_minus_L=yes
8575 hardcode_libdir_flag_spec='-L$libdir'
8576 hardcode_libdir_separator=
8579 esac
8580 shared_flag='-shared'
8581 if test "$aix_use_runtimelinking" = yes; then
8582 shared_flag="$shared_flag "'${wl}-G'
8584 else
8585 # not using gcc
8586 if test "$host_cpu" = ia64; then
8587 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8588 # chokes on -Wl,-G. The following line is correct:
8589 shared_flag='-G'
8590 else
8591 if test "$aix_use_runtimelinking" = yes; then
8592 shared_flag='${wl}-G'
8593 else
8594 shared_flag='${wl}-bM:SRE'
8599 export_dynamic_flag_spec='${wl}-bexpall'
8600 # It seems that -bexpall does not export symbols beginning with
8601 # underscore (_), so it is better to generate a list of symbols to export.
8602 always_export_symbols=yes
8603 if test "$aix_use_runtimelinking" = yes; then
8604 # Warning - without using the other runtime loading flags (-brtl),
8605 # -berok will link without error, but may produce a broken library.
8606 allow_undefined_flag='-berok'
8607 # Determine the default libpath from the value encoded in an
8608 # empty executable.
8609 if test x$gcc_no_link = xyes; then
8610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8616 main ()
8620 return 0;
8622 _ACEOF
8623 if ac_fn_c_try_link "$LINENO"; then :
8625 lt_aix_libpath_sed='
8626 /Import File Strings/,/^$/ {
8627 /^0/ {
8628 s/^0 *\(.*\)$/\1/
8632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633 # Check for a 64-bit object if we didn't find anything.
8634 if test -z "$aix_libpath"; then
8635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643 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"
8644 else
8645 if test "$host_cpu" = ia64; then
8646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8647 allow_undefined_flag="-z nodefs"
8648 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"
8649 else
8650 # Determine the default libpath from the value encoded in an
8651 # empty executable.
8652 if test x$gcc_no_link = xyes; then
8653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8659 main ()
8663 return 0;
8665 _ACEOF
8666 if ac_fn_c_try_link "$LINENO"; then :
8668 lt_aix_libpath_sed='
8669 /Import File Strings/,/^$/ {
8670 /^0/ {
8671 s/^0 *\(.*\)$/\1/
8675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8676 # Check for a 64-bit object if we didn't find anything.
8677 if test -z "$aix_libpath"; then
8678 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8681 rm -f core conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8685 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8686 # Warning - without using the other run time loading flags,
8687 # -berok will link without error, but may produce a broken library.
8688 no_undefined_flag=' ${wl}-bernotok'
8689 allow_undefined_flag=' ${wl}-berok'
8690 if test "$with_gnu_ld" = yes; then
8691 # We only use this code for GNU lds that support --whole-archive.
8692 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8693 else
8694 # Exported symbols can be pulled into shared objects from archives
8695 whole_archive_flag_spec='$convenience'
8697 archive_cmds_need_lc=yes
8698 # This is similar to how AIX traditionally builds its shared libraries.
8699 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'
8704 amigaos*)
8705 case $host_cpu in
8706 powerpc)
8707 # see comment about AmigaOS4 .so support
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds=''
8711 m68k)
8712 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)'
8713 hardcode_libdir_flag_spec='-L$libdir'
8714 hardcode_minus_L=yes
8716 esac
8719 bsdi[45]*)
8720 export_dynamic_flag_spec=-rdynamic
8723 cygwin* | mingw* | pw32* | cegcc*)
8724 # When not using gcc, we currently assume that we are using
8725 # Microsoft Visual C++.
8726 # hardcode_libdir_flag_spec is actually meaningless, as there is
8727 # no search path for DLLs.
8728 hardcode_libdir_flag_spec=' '
8729 allow_undefined_flag=unsupported
8730 # Tell ltmain to make .lib files, not .a files.
8731 libext=lib
8732 # Tell ltmain to make .dll files, not .so files.
8733 shrext_cmds=".dll"
8734 # FIXME: Setting linknames here is a bad hack.
8735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8736 # The linker will automatically build a .lib file if we build a DLL.
8737 old_archive_from_new_cmds='true'
8738 # FIXME: Should let the user specify the lib program.
8739 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8740 fix_srcfile_path='`cygpath -w "$srcfile"`'
8741 enable_shared_with_static_runtimes=yes
8744 darwin* | rhapsody*)
8747 archive_cmds_need_lc=no
8748 hardcode_direct=no
8749 hardcode_automatic=yes
8750 hardcode_shlibpath_var=unsupported
8751 if test "$lt_cv_ld_force_load" = "yes"; then
8752 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\"`'
8753 else
8754 whole_archive_flag_spec=''
8756 link_all_deplibs=yes
8757 allow_undefined_flag="$_lt_dar_allow_undefined"
8758 case $cc_basename in
8759 ifort*) _lt_dar_can_shared=yes ;;
8760 *) _lt_dar_can_shared=$GCC ;;
8761 esac
8762 if test "$_lt_dar_can_shared" = "yes"; then
8763 output_verbose_link_cmd=func_echo_all
8764 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8765 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8766 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}"
8767 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}"
8769 else
8770 ld_shlibs=no
8775 dgux*)
8776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_shlibpath_var=no
8781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8782 # support. Future versions do this automatically, but an explicit c++rt0.o
8783 # does not break anything, and helps significantly (at the cost of a little
8784 # extra space).
8785 freebsd2.2*)
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8787 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8793 freebsd2.*)
8794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct=yes
8796 hardcode_minus_L=yes
8797 hardcode_shlibpath_var=no
8800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8801 freebsd* | dragonfly*)
8802 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8803 hardcode_libdir_flag_spec='-R$libdir'
8804 hardcode_direct=yes
8805 hardcode_shlibpath_var=no
8808 hpux9*)
8809 if test "$GCC" = yes; then
8810 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'
8811 else
8812 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'
8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815 hardcode_libdir_separator=:
8816 hardcode_direct=yes
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8821 export_dynamic_flag_spec='${wl}-E'
8824 hpux10*)
8825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827 else
8828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8830 if test "$with_gnu_ld" = no; then
8831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832 hardcode_libdir_flag_spec_ld='+b $libdir'
8833 hardcode_libdir_separator=:
8834 hardcode_direct=yes
8835 hardcode_direct_absolute=yes
8836 export_dynamic_flag_spec='${wl}-E'
8837 # hardcode_minus_L: Not really in the search PATH,
8838 # but as the default location of the library.
8839 hardcode_minus_L=yes
8843 hpux11*)
8844 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8845 case $host_cpu in
8846 hppa*64*)
8847 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 ia64*)
8850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8855 esac
8856 else
8857 case $host_cpu in
8858 hppa*64*)
8859 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 ia64*)
8862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8866 # Older versions of the 11.00 compiler do not understand -b yet
8867 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8869 $as_echo_n "checking if $CC understands -b... " >&6; }
8870 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 lt_cv_prog_compiler__b=no
8874 save_LDFLAGS="$LDFLAGS"
8875 LDFLAGS="$LDFLAGS -b"
8876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8878 # The linker can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 if test -s conftest.err; then
8881 # Append any errors to the config.log.
8882 cat conftest.err 1>&5
8883 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8885 if diff conftest.exp conftest.er2 >/dev/null; then
8886 lt_cv_prog_compiler__b=yes
8888 else
8889 lt_cv_prog_compiler__b=yes
8892 $RM -r conftest*
8893 LDFLAGS="$save_LDFLAGS"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8897 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8899 if test x"$lt_cv_prog_compiler__b" = xyes; then
8900 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8901 else
8902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8906 esac
8908 if test "$with_gnu_ld" = no; then
8909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8910 hardcode_libdir_separator=:
8912 case $host_cpu in
8913 hppa*64*|ia64*)
8914 hardcode_direct=no
8915 hardcode_shlibpath_var=no
8918 hardcode_direct=yes
8919 hardcode_direct_absolute=yes
8920 export_dynamic_flag_spec='${wl}-E'
8922 # hardcode_minus_L: Not really in the search PATH,
8923 # but as the default location of the library.
8924 hardcode_minus_L=yes
8926 esac
8930 irix5* | irix6* | nonstopux*)
8931 if test "$GCC" = yes; then
8932 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'
8933 # Try to use the -exported_symbol ld option, if it does not
8934 # work, assume that -exports_file does not work either and
8935 # implicitly export all symbols.
8936 save_LDFLAGS="$LDFLAGS"
8937 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8938 if test x$gcc_no_link = xyes; then
8939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 int foo(void) {}
8944 _ACEOF
8945 if ac_fn_c_try_link "$LINENO"; then :
8946 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'
8949 rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LDFLAGS="$save_LDFLAGS"
8952 else
8953 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'
8954 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'
8956 archive_cmds_need_lc='no'
8957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8958 hardcode_libdir_separator=:
8959 inherit_rpath=yes
8960 link_all_deplibs=yes
8963 netbsd*)
8964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8966 else
8967 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8969 hardcode_libdir_flag_spec='-R$libdir'
8970 hardcode_direct=yes
8971 hardcode_shlibpath_var=no
8974 newsos6)
8975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976 hardcode_direct=yes
8977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8978 hardcode_libdir_separator=:
8979 hardcode_shlibpath_var=no
8982 *nto* | *qnx*)
8985 openbsd*)
8986 if test -f /usr/libexec/ld.so; then
8987 hardcode_direct=yes
8988 hardcode_shlibpath_var=no
8989 hardcode_direct_absolute=yes
8990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8992 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8994 export_dynamic_flag_spec='${wl}-E'
8995 else
8996 case $host_os in
8997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8999 hardcode_libdir_flag_spec='-R$libdir'
9002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9005 esac
9007 else
9008 ld_shlibs=no
9012 os2*)
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_minus_L=yes
9015 allow_undefined_flag=unsupported
9016 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'
9017 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9020 osf3*)
9021 if test "$GCC" = yes; then
9022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9023 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'
9024 else
9025 allow_undefined_flag=' -expect_unresolved \*'
9026 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'
9028 archive_cmds_need_lc='no'
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 hardcode_libdir_separator=:
9033 osf4* | osf5*) # as osf3* with the addition of -msym flag
9034 if test "$GCC" = yes; then
9035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9036 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'
9037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9038 else
9039 allow_undefined_flag=' -expect_unresolved \*'
9040 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'
9041 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~
9042 $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'
9044 # Both c and cxx compiler support -rpath directly
9045 hardcode_libdir_flag_spec='-rpath $libdir'
9047 archive_cmds_need_lc='no'
9048 hardcode_libdir_separator=:
9051 solaris*)
9052 no_undefined_flag=' -z defs'
9053 if test "$GCC" = yes; then
9054 wlarc='${wl}'
9055 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9057 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9058 else
9059 case `$CC -V 2>&1` in
9060 *"Compilers 5.0"*)
9061 wlarc=''
9062 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9067 wlarc='${wl}'
9068 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9070 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9072 esac
9074 hardcode_libdir_flag_spec='-R$libdir'
9075 hardcode_shlibpath_var=no
9076 case $host_os in
9077 solaris2.[0-5] | solaris2.[0-5].*) ;;
9079 # The compiler driver will combine and reorder linker options,
9080 # but understands `-z linker_flag'. GCC discards it without `$wl',
9081 # but is careful enough not to reorder.
9082 # Supported since Solaris 2.6 (maybe 2.5.1?)
9083 if test "$GCC" = yes; then
9084 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9085 else
9086 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9089 esac
9090 link_all_deplibs=yes
9093 sunos4*)
9094 if test "x$host_vendor" = xsequent; then
9095 # Use $CC to link under sequent, because it throws in some extra .o
9096 # files that make .init and .fini sections work.
9097 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9098 else
9099 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 hardcode_direct=yes
9103 hardcode_minus_L=yes
9104 hardcode_shlibpath_var=no
9107 sysv4)
9108 case $host_vendor in
9109 sni)
9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_direct=yes # is this really true???
9113 siemens)
9114 ## LD is ld it makes a PLAMLIB
9115 ## CC just makes a GrossModule.
9116 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9117 reload_cmds='$CC -r -o $output$reload_objs'
9118 hardcode_direct=no
9120 motorola)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9124 esac
9125 runpath_var='LD_RUN_PATH'
9126 hardcode_shlibpath_var=no
9129 sysv4.3*)
9130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131 hardcode_shlibpath_var=no
9132 export_dynamic_flag_spec='-Bexport'
9135 sysv4*MP*)
9136 if test -d /usr/nec; then
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_shlibpath_var=no
9139 runpath_var=LD_RUN_PATH
9140 hardcode_runpath_var=yes
9141 ld_shlibs=yes
9145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9146 no_undefined_flag='${wl}-z,text'
9147 archive_cmds_need_lc=no
9148 hardcode_shlibpath_var=no
9149 runpath_var='LD_RUN_PATH'
9151 if test "$GCC" = yes; then
9152 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154 else
9155 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 sysv5* | sco3.2v5* | sco5v6*)
9161 # Note: We can NOT use -z defs as we might desire, because we do not
9162 # link with -lc, and that would cause any symbols used from libc to
9163 # always be unresolved, which means just about no library would
9164 # ever link correctly. If we're not using GNU ld we use -z text
9165 # though, which does catch some bad symbols but isn't as heavy-handed
9166 # as -z defs.
9167 no_undefined_flag='${wl}-z,text'
9168 allow_undefined_flag='${wl}-z,nodefs'
9169 archive_cmds_need_lc=no
9170 hardcode_shlibpath_var=no
9171 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9172 hardcode_libdir_separator=':'
9173 link_all_deplibs=yes
9174 export_dynamic_flag_spec='${wl}-Bexport'
9175 runpath_var='LD_RUN_PATH'
9177 if test "$GCC" = yes; then
9178 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9180 else
9181 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186 uts4*)
9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_shlibpath_var=no
9193 ld_shlibs=no
9195 esac
9197 if test x$host_vendor = xsni; then
9198 case $host in
9199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9200 export_dynamic_flag_spec='${wl}-Blargedynsym'
9202 esac
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9207 $as_echo "$ld_shlibs" >&6; }
9208 test "$ld_shlibs" = no && can_build_shared=no
9210 with_gnu_ld=$with_gnu_ld
9227 # Do we need to explicitly link libc?
9229 case "x$archive_cmds_need_lc" in
9230 x|xyes)
9231 # Assume -lc should be added
9232 archive_cmds_need_lc=yes
9234 if test "$enable_shared" = yes && test "$GCC" = yes; then
9235 case $archive_cmds in
9236 *'~'*)
9237 # FIXME: we may have to deal with multi-command sequences.
9239 '$CC '*)
9240 # Test whether the compiler implicitly links with -lc since on some
9241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9242 # to ld, don't add -lc before -lgcc.
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9245 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 $RM conftest*
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9252 (eval $ac_compile) 2>&5
9253 ac_status=$?
9254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9255 test $ac_status = 0; } 2>conftest.err; then
9256 soname=conftest
9257 lib=conftest
9258 libobjs=conftest.$ac_objext
9259 deplibs=
9260 wl=$lt_prog_compiler_wl
9261 pic_flag=$lt_prog_compiler_pic
9262 compiler_flags=-v
9263 linker_flags=-v
9264 verstring=
9265 output_objdir=.
9266 libname=conftest
9267 lt_save_allow_undefined_flag=$allow_undefined_flag
9268 allow_undefined_flag=
9269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9270 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9271 ac_status=$?
9272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9273 test $ac_status = 0; }
9274 then
9275 lt_cv_archive_cmds_need_lc=no
9276 else
9277 lt_cv_archive_cmds_need_lc=yes
9279 allow_undefined_flag=$lt_save_allow_undefined_flag
9280 else
9281 cat conftest.err 1>&5
9283 $RM conftest*
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9287 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9288 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9290 esac
9293 esac
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9452 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9454 if test "$GCC" = yes; then
9455 case $host_os in
9456 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9457 *) lt_awk_arg="/^libraries:/" ;;
9458 esac
9459 case $host_os in
9460 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9461 *) lt_sed_strip_eq="s,=/,/,g" ;;
9462 esac
9463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9464 case $lt_search_path_spec in
9465 *\;*)
9466 # if the path contains ";" then we assume it to be the separator
9467 # otherwise default to the standard path separator (i.e. ":") - it is
9468 # assumed that no part of a normal pathname contains ";" but that should
9469 # okay in the real world where ";" in dirpaths is itself problematic.
9470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9475 esac
9476 # Ok, now we have the path, separated by spaces, we can step through it
9477 # and add multilib dir if necessary.
9478 lt_tmp_lt_search_path_spec=
9479 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9480 for lt_sys_path in $lt_search_path_spec; do
9481 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9483 else
9484 test -d "$lt_sys_path" && \
9485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9487 done
9488 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9489 BEGIN {RS=" "; FS="/|\n";} {
9490 lt_foo="";
9491 lt_count=0;
9492 for (lt_i = NF; lt_i > 0; lt_i--) {
9493 if ($lt_i != "" && $lt_i != ".") {
9494 if ($lt_i == "..") {
9495 lt_count++;
9496 } else {
9497 if (lt_count == 0) {
9498 lt_foo="/" $lt_i lt_foo;
9499 } else {
9500 lt_count--;
9505 if (lt_foo != "") { lt_freq[lt_foo]++; }
9506 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9508 # AWK program above erroneously prepends '/' to C:/dos/paths
9509 # for these hosts.
9510 case $host_os in
9511 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9512 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9513 esac
9514 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9515 else
9516 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9518 library_names_spec=
9519 libname_spec='lib$name'
9520 soname_spec=
9521 shrext_cmds=".so"
9522 postinstall_cmds=
9523 postuninstall_cmds=
9524 finish_cmds=
9525 finish_eval=
9526 shlibpath_var=
9527 shlibpath_overrides_runpath=unknown
9528 version_type=none
9529 dynamic_linker="$host_os ld.so"
9530 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9531 need_lib_prefix=unknown
9532 hardcode_into_libs=no
9534 # when you set need_version to no, make sure it does not cause -set_version
9535 # flags to be left without arguments
9536 need_version=unknown
9538 case $host_os in
9539 aix3*)
9540 version_type=linux
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9542 shlibpath_var=LIBPATH
9544 # AIX 3 has no versioning support, so we append a major version to the name.
9545 soname_spec='${libname}${release}${shared_ext}$major'
9548 aix[4-9]*)
9549 version_type=linux
9550 need_lib_prefix=no
9551 need_version=no
9552 hardcode_into_libs=yes
9553 if test "$host_cpu" = ia64; then
9554 # AIX 5 supports IA64
9555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 else
9558 # With GCC up to 2.95.x, collect2 would create an import file
9559 # for dependence libraries. The import file would start with
9560 # the line `#! .'. This would cause the generated library to
9561 # depend on `.', always an invalid library. This was fixed in
9562 # development snapshots of GCC prior to 3.0.
9563 case $host_os in
9564 aix4 | aix4.[01] | aix4.[01].*)
9565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9566 echo ' yes '
9567 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9569 else
9570 can_build_shared=no
9573 esac
9574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9575 # soname into executable. Probably we can add versioning support to
9576 # collect2, so additional links can be useful in future.
9577 if test "$aix_use_runtimelinking" = yes; then
9578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9579 # instead of lib<name>.a to let people know that these are not
9580 # typical AIX shared libraries.
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 else
9583 # We preserve .a as extension for shared libraries through AIX4.2
9584 # and later when we are not doing run time linking.
9585 library_names_spec='${libname}${release}.a $libname.a'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9588 shlibpath_var=LIBPATH
9592 amigaos*)
9593 case $host_cpu in
9594 powerpc)
9595 # Since July 2007 AmigaOS4 officially supports .so libraries.
9596 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 m68k)
9600 library_names_spec='$libname.ixlibrary $libname.a'
9601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9602 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'
9604 esac
9607 beos*)
9608 library_names_spec='${libname}${shared_ext}'
9609 dynamic_linker="$host_os ld.so"
9610 shlibpath_var=LIBRARY_PATH
9613 bsdi[45]*)
9614 version_type=linux
9615 need_version=no
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9622 # the default ld.so.conf also contains /usr/contrib/lib and
9623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9624 # libtool to hard-code these into programs
9627 cygwin* | mingw* | pw32* | cegcc*)
9628 version_type=windows
9629 shrext_cmds=".dll"
9630 need_version=no
9631 need_lib_prefix=no
9633 case $GCC,$host_os in
9634 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9635 library_names_spec='$libname.dll.a'
9636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9637 postinstall_cmds='base_file=`basename \${file}`~
9638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9639 dldir=$destdir/`dirname \$dlpath`~
9640 test -d \$dldir || mkdir -p \$dldir~
9641 $install_prog $dir/$dlname \$dldir/$dlname~
9642 chmod a+x \$dldir/$dlname~
9643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9647 dlpath=$dir/\$dldll~
9648 $RM \$dlpath'
9649 shlibpath_overrides_runpath=yes
9651 case $host_os in
9652 cygwin*)
9653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9658 mingw* | cegcc*)
9659 # MinGW DLLs use traditional 'lib' prefix
9660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9662 pw32*)
9663 # pw32 DLLs use 'pw' prefix rather than 'lib'
9664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666 esac
9670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9672 esac
9673 dynamic_linker='Win32 ld.exe'
9674 # FIXME: first we should search . and the directory the executable is in
9675 shlibpath_var=PATH
9678 darwin* | rhapsody*)
9679 dynamic_linker="$host_os dyld"
9680 version_type=darwin
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9684 soname_spec='${libname}${release}${major}$shared_ext'
9685 shlibpath_overrides_runpath=yes
9686 shlibpath_var=DYLD_LIBRARY_PATH
9687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9693 dgux*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9702 freebsd* | dragonfly*)
9703 # DragonFly does not have aout. When/if they implement a new
9704 # versioning mechanism, adjust this.
9705 if test -x /usr/bin/objformat; then
9706 objformat=`/usr/bin/objformat`
9707 else
9708 case $host_os in
9709 freebsd[23].*) objformat=aout ;;
9710 *) objformat=elf ;;
9711 esac
9713 version_type=freebsd-$objformat
9714 case $version_type in
9715 freebsd-elf*)
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9717 need_version=no
9718 need_lib_prefix=no
9720 freebsd-*)
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9722 need_version=yes
9724 esac
9725 shlibpath_var=LD_LIBRARY_PATH
9726 case $host_os in
9727 freebsd2.*)
9728 shlibpath_overrides_runpath=yes
9730 freebsd3.[01]* | freebsdelf3.[01]*)
9731 shlibpath_overrides_runpath=yes
9732 hardcode_into_libs=yes
9734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9736 shlibpath_overrides_runpath=no
9737 hardcode_into_libs=yes
9739 *) # from 4.6 on, and DragonFly
9740 shlibpath_overrides_runpath=yes
9741 hardcode_into_libs=yes
9743 esac
9746 gnu*)
9747 version_type=linux
9748 need_lib_prefix=no
9749 need_version=no
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 hardcode_into_libs=yes
9756 haiku*)
9757 version_type=linux
9758 need_lib_prefix=no
9759 need_version=no
9760 dynamic_linker="$host_os runtime_loader"
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9766 hardcode_into_libs=yes
9769 hpux9* | hpux10* | hpux11*)
9770 # Give a soname corresponding to the major version so that dld.sl refuses to
9771 # link against other versions.
9772 version_type=sunos
9773 need_lib_prefix=no
9774 need_version=no
9775 case $host_cpu in
9776 ia64*)
9777 shrext_cmds='.so'
9778 hardcode_into_libs=yes
9779 dynamic_linker="$host_os dld.so"
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 if test "X$HPUX_IA64_MODE" = X32; then
9785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9786 else
9787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9791 hppa*64*)
9792 shrext_cmds='.sl'
9793 hardcode_into_libs=yes
9794 dynamic_linker="$host_os dld.sl"
9795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9803 shrext_cmds='.sl'
9804 dynamic_linker="$host_os dld.sl"
9805 shlibpath_var=SHLIB_PATH
9806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9810 esac
9811 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9812 postinstall_cmds='chmod 555 $lib'
9813 # or fails outright, so override atomically:
9814 install_override_mode=555
9817 interix[3-9]*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=no
9826 hardcode_into_libs=yes
9829 irix5* | irix6* | nonstopux*)
9830 case $host_os in
9831 nonstopux*) version_type=nonstopux ;;
9833 if test "$lt_cv_prog_gnu_ld" = yes; then
9834 version_type=linux
9835 else
9836 version_type=irix
9837 fi ;;
9838 esac
9839 need_lib_prefix=no
9840 need_version=no
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9843 case $host_os in
9844 irix5* | nonstopux*)
9845 libsuff= shlibsuff=
9848 case $LD in # libtool.m4 will add one of these switches to LD
9849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9850 libsuff= shlibsuff= libmagic=32-bit;;
9851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9852 libsuff=32 shlibsuff=N32 libmagic=N32;;
9853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9855 *) libsuff= shlibsuff= libmagic=never-match;;
9856 esac
9858 esac
9859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9860 shlibpath_overrides_runpath=no
9861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9863 hardcode_into_libs=yes
9866 # No shared lib support for Linux oldld, aout, or coff.
9867 linux*oldld* | linux*aout* | linux*coff*)
9868 dynamic_linker=no
9871 # This must be Linux ELF.
9872 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9873 version_type=linux
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 shlibpath_overrides_runpath=no
9882 # Some binutils ld are patched to set DT_RUNPATH
9883 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 lt_cv_shlibpath_overrides_runpath=no
9887 save_LDFLAGS=$LDFLAGS
9888 save_libdir=$libdir
9889 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9890 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9891 if test x$gcc_no_link = xyes; then
9892 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9898 main ()
9902 return 0;
9904 _ACEOF
9905 if ac_fn_c_try_link "$LINENO"; then :
9906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9907 lt_cv_shlibpath_overrides_runpath=yes
9910 rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LDFLAGS=$save_LDFLAGS
9913 libdir=$save_libdir
9917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9919 # This implies no fast_install, which is unacceptable.
9920 # Some rework will be needed to allow for fast_install
9921 # before this can be enabled.
9922 hardcode_into_libs=yes
9924 # Append ld.so.conf contents to the search path
9925 if test -f /etc/ld.so.conf; then
9926 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' ' '`
9927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9930 # We used to test for /lib/ld.so.1 and disable shared libraries on
9931 # powerpc, because MkLinux only supported shared libraries with the
9932 # GNU dynamic linker. Since this was broken with cross compilers,
9933 # most powerpc-linux boxes support dynamic linking these days and
9934 # people can always --disable-shared, the test was removed, and we
9935 # assume the GNU/Linux dynamic linker is in use.
9936 dynamic_linker='GNU/Linux ld.so'
9939 netbsd*)
9940 version_type=sunos
9941 need_lib_prefix=no
9942 need_version=no
9943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9946 dynamic_linker='NetBSD (a.out) ld.so'
9947 else
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 dynamic_linker='NetBSD ld.elf_so'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 shlibpath_overrides_runpath=yes
9954 hardcode_into_libs=yes
9957 newsos6)
9958 version_type=linux
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=yes
9964 *nto* | *qnx*)
9965 version_type=qnx
9966 need_lib_prefix=no
9967 need_version=no
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 shlibpath_overrides_runpath=no
9972 hardcode_into_libs=yes
9973 dynamic_linker='ldqnx.so'
9976 openbsd*)
9977 version_type=sunos
9978 sys_lib_dlsearch_path_spec="/usr/lib"
9979 need_lib_prefix=no
9980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9981 case $host_os in
9982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9983 *) need_version=no ;;
9984 esac
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9989 case $host_os in
9990 openbsd2.[89] | openbsd2.[89].*)
9991 shlibpath_overrides_runpath=no
9994 shlibpath_overrides_runpath=yes
9996 esac
9997 else
9998 shlibpath_overrides_runpath=yes
10002 os2*)
10003 libname_spec='$name'
10004 shrext_cmds=".dll"
10005 need_lib_prefix=no
10006 library_names_spec='$libname${shared_ext} $libname.a'
10007 dynamic_linker='OS/2 ld.exe'
10008 shlibpath_var=LIBPATH
10011 osf3* | osf4* | osf5*)
10012 version_type=osf
10013 need_lib_prefix=no
10014 need_version=no
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10022 rdos*)
10023 dynamic_linker=no
10026 solaris*)
10027 version_type=linux
10028 need_lib_prefix=no
10029 need_version=no
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=yes
10034 hardcode_into_libs=yes
10035 # ldd complains unless libraries are executable
10036 postinstall_cmds='chmod +x $lib'
10039 sunos4*)
10040 version_type=sunos
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=yes
10045 if test "$with_gnu_ld" = yes; then
10046 need_lib_prefix=no
10048 need_version=yes
10051 sysv4 | sysv4.3*)
10052 version_type=linux
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 case $host_vendor in
10057 sni)
10058 shlibpath_overrides_runpath=no
10059 need_lib_prefix=no
10060 runpath_var=LD_RUN_PATH
10062 siemens)
10063 need_lib_prefix=no
10065 motorola)
10066 need_lib_prefix=no
10067 need_version=no
10068 shlibpath_overrides_runpath=no
10069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10071 esac
10074 sysv4*MP*)
10075 if test -d /usr/nec ;then
10076 version_type=linux
10077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10078 soname_spec='$libname${shared_ext}.$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10084 version_type=freebsd-elf
10085 need_lib_prefix=no
10086 need_version=no
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=yes
10091 hardcode_into_libs=yes
10092 if test "$with_gnu_ld" = yes; then
10093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10094 else
10095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10096 case $host_os in
10097 sco3.2v5*)
10098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10100 esac
10102 sys_lib_dlsearch_path_spec='/usr/lib'
10105 tpf*)
10106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10107 version_type=linux
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=no
10113 hardcode_into_libs=yes
10116 uts4*)
10117 version_type=linux
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 shlibpath_var=LD_LIBRARY_PATH
10124 dynamic_linker=no
10126 esac
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10128 $as_echo "$dynamic_linker" >&6; }
10129 test "$dynamic_linker" = no && can_build_shared=no
10131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10132 if test "$GCC" = yes; then
10133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10236 hardcode_action=
10237 if test -n "$hardcode_libdir_flag_spec" ||
10238 test -n "$runpath_var" ||
10239 test "X$hardcode_automatic" = "Xyes" ; then
10241 # We can hardcode non-existent directories.
10242 if test "$hardcode_direct" != no &&
10243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10244 # have to relink, otherwise we might link with an installed library
10245 # when we should be linking with a yet-to-be-installed one
10246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10247 test "$hardcode_minus_L" != no; then
10248 # Linking always hardcodes the temporary library directory.
10249 hardcode_action=relink
10250 else
10251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10252 hardcode_action=immediate
10254 else
10255 # We cannot hardcode anything, or else we can only hardcode existing
10256 # directories.
10257 hardcode_action=unsupported
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10260 $as_echo "$hardcode_action" >&6; }
10262 if test "$hardcode_action" = relink ||
10263 test "$inherit_rpath" = yes; then
10264 # Fast installation is not supported
10265 enable_fast_install=no
10266 elif test "$shlibpath_overrides_runpath" = yes ||
10267 test "$enable_shared" = no; then
10268 # Fast installation is not necessary
10269 enable_fast_install=needless
10277 if test "x$enable_dlopen" != xyes; then
10278 enable_dlopen=unknown
10279 enable_dlopen_self=unknown
10280 enable_dlopen_self_static=unknown
10281 else
10282 lt_cv_dlopen=no
10283 lt_cv_dlopen_libs=
10285 case $host_os in
10286 beos*)
10287 lt_cv_dlopen="load_add_on"
10288 lt_cv_dlopen_libs=
10289 lt_cv_dlopen_self=yes
10292 mingw* | pw32* | cegcc*)
10293 lt_cv_dlopen="LoadLibrary"
10294 lt_cv_dlopen_libs=
10297 cygwin*)
10298 lt_cv_dlopen="dlopen"
10299 lt_cv_dlopen_libs=
10302 darwin*)
10303 # if libdl is installed we need to link against it
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 ac_check_lib_save_LIBS=$LIBS
10310 LIBS="-ldl $LIBS"
10311 if test x$gcc_no_link = xyes; then
10312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h. */
10317 /* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
10320 #ifdef __cplusplus
10321 extern "C"
10322 #endif
10323 char dlopen ();
10325 main ()
10327 return dlopen ();
10329 return 0;
10331 _ACEOF
10332 if ac_fn_c_try_link "$LINENO"; then :
10333 ac_cv_lib_dl_dlopen=yes
10334 else
10335 ac_cv_lib_dl_dlopen=no
10337 rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10339 LIBS=$ac_check_lib_save_LIBS
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10342 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10343 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10345 else
10347 lt_cv_dlopen="dyld"
10348 lt_cv_dlopen_libs=
10349 lt_cv_dlopen_self=yes
10356 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10357 if test "x$ac_cv_func_shl_load" = x""yes; then :
10358 lt_cv_dlopen="shl_load"
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10361 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10362 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-ldld $LIBS"
10367 if test x$gcc_no_link = xyes; then
10368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10373 /* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 char shl_load ();
10381 main ()
10383 return shl_load ();
10385 return 0;
10387 _ACEOF
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 ac_cv_lib_dld_shl_load=yes
10390 else
10391 ac_cv_lib_dld_shl_load=no
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10398 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10399 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10400 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10401 else
10402 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10403 if test "x$ac_cv_func_dlopen" = x""yes; then :
10404 lt_cv_dlopen="dlopen"
10405 else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10407 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 ac_check_lib_save_LIBS=$LIBS
10412 LIBS="-ldl $LIBS"
10413 if test x$gcc_no_link = xyes; then
10414 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10419 /* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 char dlopen ();
10427 main ()
10429 return dlopen ();
10431 return 0;
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435 ac_cv_lib_dl_dlopen=yes
10436 else
10437 ac_cv_lib_dl_dlopen=no
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LIBS=$ac_check_lib_save_LIBS
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10444 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10445 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10447 else
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10449 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10450 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 ac_check_lib_save_LIBS=$LIBS
10454 LIBS="-lsvld $LIBS"
10455 if test x$gcc_no_link = xyes; then
10456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10461 /* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10464 #ifdef __cplusplus
10465 extern "C"
10466 #endif
10467 char dlopen ();
10469 main ()
10471 return dlopen ();
10473 return 0;
10475 _ACEOF
10476 if ac_fn_c_try_link "$LINENO"; then :
10477 ac_cv_lib_svld_dlopen=yes
10478 else
10479 ac_cv_lib_svld_dlopen=no
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10486 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10487 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10491 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10492 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 ac_check_lib_save_LIBS=$LIBS
10496 LIBS="-ldld $LIBS"
10497 if test x$gcc_no_link = xyes; then
10498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10506 #ifdef __cplusplus
10507 extern "C"
10508 #endif
10509 char dld_link ();
10511 main ()
10513 return dld_link ();
10515 return 0;
10517 _ACEOF
10518 if ac_fn_c_try_link "$LINENO"; then :
10519 ac_cv_lib_dld_dld_link=yes
10520 else
10521 ac_cv_lib_dld_dld_link=no
10523 rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525 LIBS=$ac_check_lib_save_LIBS
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10528 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10529 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10530 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10549 esac
10551 if test "x$lt_cv_dlopen" != xno; then
10552 enable_dlopen=yes
10553 else
10554 enable_dlopen=no
10557 case $lt_cv_dlopen in
10558 dlopen)
10559 save_CPPFLAGS="$CPPFLAGS"
10560 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10562 save_LDFLAGS="$LDFLAGS"
10563 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10565 save_LIBS="$LIBS"
10566 LIBS="$lt_cv_dlopen_libs $LIBS"
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10569 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10570 if test "${lt_cv_dlopen_self+set}" = set; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 if test "$cross_compiling" = yes; then :
10574 lt_cv_dlopen_self=cross
10575 else
10576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10577 lt_status=$lt_dlunknown
10578 cat > conftest.$ac_ext <<_LT_EOF
10579 #line 10579 "configure"
10580 #include "confdefs.h"
10582 #if HAVE_DLFCN_H
10583 #include <dlfcn.h>
10584 #endif
10586 #include <stdio.h>
10588 #ifdef RTLD_GLOBAL
10589 # define LT_DLGLOBAL RTLD_GLOBAL
10590 #else
10591 # ifdef DL_GLOBAL
10592 # define LT_DLGLOBAL DL_GLOBAL
10593 # else
10594 # define LT_DLGLOBAL 0
10595 # endif
10596 #endif
10598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10599 find out it does not work in some platform. */
10600 #ifndef LT_DLLAZY_OR_NOW
10601 # ifdef RTLD_LAZY
10602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10603 # else
10604 # ifdef DL_LAZY
10605 # define LT_DLLAZY_OR_NOW DL_LAZY
10606 # else
10607 # ifdef RTLD_NOW
10608 # define LT_DLLAZY_OR_NOW RTLD_NOW
10609 # else
10610 # ifdef DL_NOW
10611 # define LT_DLLAZY_OR_NOW DL_NOW
10612 # else
10613 # define LT_DLLAZY_OR_NOW 0
10614 # endif
10615 # endif
10616 # endif
10617 # endif
10618 #endif
10620 /* When -fvisbility=hidden is used, assume the code has been annotated
10621 correspondingly for the symbols needed. */
10622 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10623 void fnord () __attribute__((visibility("default")));
10624 #endif
10626 void fnord () { int i=42; }
10627 int main ()
10629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10630 int status = $lt_dlunknown;
10632 if (self)
10634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10635 else
10637 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10638 else puts (dlerror ());
10640 /* dlclose (self); */
10642 else
10643 puts (dlerror ());
10645 return status;
10647 _LT_EOF
10648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10649 (eval $ac_link) 2>&5
10650 ac_status=$?
10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10653 (./conftest; exit; ) >&5 2>/dev/null
10654 lt_status=$?
10655 case x$lt_status in
10656 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10657 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10658 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10659 esac
10660 else :
10661 # compilation failed
10662 lt_cv_dlopen_self=no
10665 rm -fr conftest*
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10670 $as_echo "$lt_cv_dlopen_self" >&6; }
10672 if test "x$lt_cv_dlopen_self" = xyes; then
10673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10675 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10676 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 if test "$cross_compiling" = yes; then :
10680 lt_cv_dlopen_self_static=cross
10681 else
10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10683 lt_status=$lt_dlunknown
10684 cat > conftest.$ac_ext <<_LT_EOF
10685 #line 10685 "configure"
10686 #include "confdefs.h"
10688 #if HAVE_DLFCN_H
10689 #include <dlfcn.h>
10690 #endif
10692 #include <stdio.h>
10694 #ifdef RTLD_GLOBAL
10695 # define LT_DLGLOBAL RTLD_GLOBAL
10696 #else
10697 # ifdef DL_GLOBAL
10698 # define LT_DLGLOBAL DL_GLOBAL
10699 # else
10700 # define LT_DLGLOBAL 0
10701 # endif
10702 #endif
10704 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10705 find out it does not work in some platform. */
10706 #ifndef LT_DLLAZY_OR_NOW
10707 # ifdef RTLD_LAZY
10708 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10709 # else
10710 # ifdef DL_LAZY
10711 # define LT_DLLAZY_OR_NOW DL_LAZY
10712 # else
10713 # ifdef RTLD_NOW
10714 # define LT_DLLAZY_OR_NOW RTLD_NOW
10715 # else
10716 # ifdef DL_NOW
10717 # define LT_DLLAZY_OR_NOW DL_NOW
10718 # else
10719 # define LT_DLLAZY_OR_NOW 0
10720 # endif
10721 # endif
10722 # endif
10723 # endif
10724 #endif
10726 /* When -fvisbility=hidden is used, assume the code has been annotated
10727 correspondingly for the symbols needed. */
10728 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10729 void fnord () __attribute__((visibility("default")));
10730 #endif
10732 void fnord () { int i=42; }
10733 int main ()
10735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10736 int status = $lt_dlunknown;
10738 if (self)
10740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10741 else
10743 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10744 else puts (dlerror ());
10746 /* dlclose (self); */
10748 else
10749 puts (dlerror ());
10751 return status;
10753 _LT_EOF
10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10755 (eval $ac_link) 2>&5
10756 ac_status=$?
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10759 (./conftest; exit; ) >&5 2>/dev/null
10760 lt_status=$?
10761 case x$lt_status in
10762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10764 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10765 esac
10766 else :
10767 # compilation failed
10768 lt_cv_dlopen_self_static=no
10771 rm -fr conftest*
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10776 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10779 CPPFLAGS="$save_CPPFLAGS"
10780 LDFLAGS="$save_LDFLAGS"
10781 LIBS="$save_LIBS"
10783 esac
10785 case $lt_cv_dlopen_self in
10786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10787 *) enable_dlopen_self=unknown ;;
10788 esac
10790 case $lt_cv_dlopen_self_static in
10791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10792 *) enable_dlopen_self_static=unknown ;;
10793 esac
10812 striplib=
10813 old_striplib=
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10815 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10816 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10817 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10818 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820 $as_echo "yes" >&6; }
10821 else
10822 # FIXME - insert some real tests, host_os isn't really good enough
10823 case $host_os in
10824 darwin*)
10825 if test -n "$STRIP" ; then
10826 striplib="$STRIP -x"
10827 old_striplib="$STRIP -S"
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10829 $as_echo "yes" >&6; }
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; }
10839 esac
10853 # Report which library types will actually be built
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10855 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10857 $as_echo "$can_build_shared" >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10860 $as_echo_n "checking whether to build shared libraries... " >&6; }
10861 test "$can_build_shared" = "no" && enable_shared=no
10863 # On AIX, shared libraries and static libraries use the same namespace, and
10864 # are all built from PIC.
10865 case $host_os in
10866 aix3*)
10867 test "$enable_shared" = yes && enable_static=no
10868 if test -n "$RANLIB"; then
10869 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10870 postinstall_cmds='$RANLIB $lib'
10874 aix[4-9]*)
10875 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10876 test "$enable_shared" = yes && enable_static=no
10879 esac
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10881 $as_echo "$enable_shared" >&6; }
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10884 $as_echo_n "checking whether to build static libraries... " >&6; }
10885 # Make sure either enable_shared or enable_static is yes.
10886 test "$enable_shared" = yes || enable_static=yes
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10888 $as_echo "$enable_static" >&6; }
10894 ac_ext=c
10895 ac_cpp='$CPP $CPPFLAGS'
10896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10900 CC="$lt_save_CC"
10914 ac_config_commands="$ac_config_commands libtool"
10919 # Only expand once:
10925 case $host in
10926 *-cygwin* | *-mingw*)
10927 # 'host' will be top-level target in the case of a target lib,
10928 # we must compare to with_cross_host to decide if this is a native
10929 # or cross-compiler and select where to install dlls appropriately.
10930 if test -n "$with_cross_host" &&
10931 test x"$with_cross_host" != x"no"; then
10932 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10933 else
10934 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10938 lt_host_flags=
10940 esac
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10949 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10950 # Check whether --enable-maintainer-mode was given.
10951 if test "${enable_maintainer_mode+set}" = set; then :
10952 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10953 else
10954 USE_MAINTAINER_MODE=no
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10958 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10959 if test $USE_MAINTAINER_MODE = yes; then
10960 MAINTAINER_MODE_TRUE=
10961 MAINTAINER_MODE_FALSE='#'
10962 else
10963 MAINTAINER_MODE_TRUE='#'
10964 MAINTAINER_MODE_FALSE=
10967 MAINT=$MAINTAINER_MODE_TRUE
10971 ac_ext=c
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10977 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10978 # We must force CC to /not/ be precious variables; otherwise
10979 # the wrong, non-multilib-adjusted value will be used in multilibs.
10980 # As a side effect, we have to subst CFLAGS ourselves.
10984 ac_ext=c
10985 ac_cpp='$CPP $CPPFLAGS'
10986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10989 if test -n "$ac_tool_prefix"; then
10990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if test "${ac_cv_prog_CC+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test -n "$CC"; then
10998 ac_cv_prog_CC="$CC" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11011 done
11012 done
11013 IFS=$as_save_IFS
11017 CC=$ac_cv_prog_CC
11018 if test -n "$CC"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11020 $as_echo "$CC" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11028 if test -z "$ac_cv_prog_CC"; then
11029 ac_ct_CC=$CC
11030 # Extract the first word of "gcc", so it can be a program name with args.
11031 set dummy gcc; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 if test -n "$ac_ct_CC"; then
11038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_prog_ac_ct_CC="gcc"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11051 done
11052 done
11053 IFS=$as_save_IFS
11057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11058 if test -n "$ac_ct_CC"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11060 $as_echo "$ac_ct_CC" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11066 if test "x$ac_ct_CC" = x; then
11067 CC=""
11068 else
11069 case $cross_compiling:$ac_tool_warned in
11070 yes:)
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11073 ac_tool_warned=yes ;;
11074 esac
11075 CC=$ac_ct_CC
11077 else
11078 CC="$ac_cv_prog_CC"
11081 if test -z "$CC"; then
11082 if test -n "$ac_tool_prefix"; then
11083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11084 set dummy ${ac_tool_prefix}cc; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if test "${ac_cv_prog_CC+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 if test -n "$CC"; then
11091 ac_cv_prog_CC="$CC" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_CC="${ac_tool_prefix}cc"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11104 done
11105 done
11106 IFS=$as_save_IFS
11110 CC=$ac_cv_prog_CC
11111 if test -n "$CC"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11113 $as_echo "$CC" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11122 if test -z "$CC"; then
11123 # Extract the first word of "cc", so it can be a program name with args.
11124 set dummy cc; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if test "${ac_cv_prog_CC+set}" = set; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 if test -n "$CC"; then
11131 ac_cv_prog_CC="$CC" # Let the user override the test.
11132 else
11133 ac_prog_rejected=no
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11142 ac_prog_rejected=yes
11143 continue
11145 ac_cv_prog_CC="cc"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11153 if test $ac_prog_rejected = yes; then
11154 # We found a bogon in the path, so make sure we never use it.
11155 set dummy $ac_cv_prog_CC
11156 shift
11157 if test $# != 0; then
11158 # We chose a different compiler from the bogus one.
11159 # However, it has the same basename, so the bogon will be chosen
11160 # first if we set CC to just the basename; use the full file name.
11161 shift
11162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11167 CC=$ac_cv_prog_CC
11168 if test -n "$CC"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11170 $as_echo "$CC" >&6; }
11171 else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11178 if test -z "$CC"; then
11179 if test -n "$ac_tool_prefix"; then
11180 for ac_prog in cl.exe
11182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_prog_CC+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 if test -n "$CC"; then
11190 ac_cv_prog_CC="$CC" # Let the user override the test.
11191 else
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11203 done
11204 done
11205 IFS=$as_save_IFS
11209 CC=$ac_cv_prog_CC
11210 if test -n "$CC"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11212 $as_echo "$CC" >&6; }
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11219 test -n "$CC" && break
11220 done
11222 if test -z "$CC"; then
11223 ac_ct_CC=$CC
11224 for ac_prog in cl.exe
11226 # Extract the first word of "$ac_prog", so it can be a program name with args.
11227 set dummy $ac_prog; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 if test -n "$ac_ct_CC"; then
11234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11235 else
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243 ac_cv_prog_ac_ct_CC="$ac_prog"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11247 done
11248 done
11249 IFS=$as_save_IFS
11253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11254 if test -n "$ac_ct_CC"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11256 $as_echo "$ac_ct_CC" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11263 test -n "$ac_ct_CC" && break
11264 done
11266 if test "x$ac_ct_CC" = x; then
11267 CC=""
11268 else
11269 case $cross_compiling:$ac_tool_warned in
11270 yes:)
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11273 ac_tool_warned=yes ;;
11274 esac
11275 CC=$ac_ct_CC
11282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11284 as_fn_error "no acceptable C compiler found in \$PATH
11285 See \`config.log' for more details." "$LINENO" 5; }
11287 # Provide some information about the compiler.
11288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11289 set X $ac_compile
11290 ac_compiler=$2
11291 for ac_option in --version -v -V -qversion; do
11292 { { ac_try="$ac_compiler $ac_option >&5"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11298 $as_echo "$ac_try_echo"; } >&5
11299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11300 ac_status=$?
11301 if test -s conftest.err; then
11302 sed '10a\
11303 ... rest of stderr output deleted ...
11304 10q' conftest.err >conftest.er1
11305 cat conftest.er1 >&5
11306 rm -f conftest.er1 conftest.err
11308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309 test $ac_status = 0; }
11310 done
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11314 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11321 main ()
11323 #ifndef __GNUC__
11324 choke me
11325 #endif
11328 return 0;
11330 _ACEOF
11331 if ac_fn_c_try_compile "$LINENO"; then :
11332 ac_compiler_gnu=yes
11333 else
11334 ac_compiler_gnu=no
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11341 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11342 if test $ac_compiler_gnu = yes; then
11343 GCC=yes
11344 else
11345 GCC=
11347 ac_test_CFLAGS=${CFLAGS+set}
11348 ac_save_CFLAGS=$CFLAGS
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11350 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11351 if test "${ac_cv_prog_cc_g+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 ac_save_c_werror_flag=$ac_c_werror_flag
11355 ac_c_werror_flag=yes
11356 ac_cv_prog_cc_g=no
11357 CFLAGS="-g"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11362 main ()
11366 return 0;
11368 _ACEOF
11369 if ac_fn_c_try_compile "$LINENO"; then :
11370 ac_cv_prog_cc_g=yes
11371 else
11372 CFLAGS=""
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11377 main ()
11381 return 0;
11383 _ACEOF
11384 if ac_fn_c_try_compile "$LINENO"; then :
11386 else
11387 ac_c_werror_flag=$ac_save_c_werror_flag
11388 CFLAGS="-g"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11393 main ()
11397 return 0;
11399 _ACEOF
11400 if ac_fn_c_try_compile "$LINENO"; then :
11401 ac_cv_prog_cc_g=yes
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 ac_c_werror_flag=$ac_save_c_werror_flag
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11411 $as_echo "$ac_cv_prog_cc_g" >&6; }
11412 if test "$ac_test_CFLAGS" = set; then
11413 CFLAGS=$ac_save_CFLAGS
11414 elif test $ac_cv_prog_cc_g = yes; then
11415 if test "$GCC" = yes; then
11416 CFLAGS="-g -O2"
11417 else
11418 CFLAGS="-g"
11420 else
11421 if test "$GCC" = yes; then
11422 CFLAGS="-O2"
11423 else
11424 CFLAGS=
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11429 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11430 $as_echo_n "(cached) " >&6
11431 else
11432 ac_cv_prog_cc_c89=no
11433 ac_save_CC=$CC
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436 #include <stdarg.h>
11437 #include <stdio.h>
11438 #include <sys/types.h>
11439 #include <sys/stat.h>
11440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11441 struct buf { int x; };
11442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11443 static char *e (p, i)
11444 char **p;
11445 int i;
11447 return p[i];
11449 static char *f (char * (*g) (char **, int), char **p, ...)
11451 char *s;
11452 va_list v;
11453 va_start (v,p);
11454 s = g (p, va_arg (v,int));
11455 va_end (v);
11456 return s;
11459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11460 function prototypes and stuff, but not '\xHH' hex character constants.
11461 These don't provoke an error unfortunately, instead are silently treated
11462 as 'x'. The following induces an error, until -std is added to get
11463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11464 array size at least. It's necessary to write '\x00'==0 to get something
11465 that's true only with -std. */
11466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11469 inside strings and character constants. */
11470 #define FOO(x) 'x'
11471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11473 int test (int i, double x);
11474 struct s1 {int (*f) (int a);};
11475 struct s2 {int (*f) (double a);};
11476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11477 int argc;
11478 char **argv;
11480 main ()
11482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11484 return 0;
11486 _ACEOF
11487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11490 CC="$ac_save_CC $ac_arg"
11491 if ac_fn_c_try_compile "$LINENO"; then :
11492 ac_cv_prog_cc_c89=$ac_arg
11494 rm -f core conftest.err conftest.$ac_objext
11495 test "x$ac_cv_prog_cc_c89" != "xno" && break
11496 done
11497 rm -f conftest.$ac_ext
11498 CC=$ac_save_CC
11501 # AC_CACHE_VAL
11502 case "x$ac_cv_prog_cc_c89" in
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11505 $as_echo "none needed" >&6; } ;;
11506 xno)
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11508 $as_echo "unsupported" >&6; } ;;
11510 CC="$CC $ac_cv_prog_cc_c89"
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11513 esac
11514 if test "x$ac_cv_prog_cc_c89" != xno; then :
11518 ac_ext=c
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11524 depcc="$CC" am_compiler_list=
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11527 $as_echo_n "checking dependency style of $depcc... " >&6; }
11528 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11532 # We make a subdir and do the tests there. Otherwise we can end up
11533 # making bogus files that we don't know about and never remove. For
11534 # instance it was reported that on HP-UX the gcc test will end up
11535 # making a dummy file named `D' -- because `-MD' means `put the output
11536 # in D'.
11537 rm -rf conftest.dir
11538 mkdir conftest.dir
11539 # Copy depcomp to subdir because otherwise we won't find it if we're
11540 # using a relative directory.
11541 cp "$am_depcomp" conftest.dir
11542 cd conftest.dir
11543 # We will build objects and dependencies in a subdirectory because
11544 # it helps to detect inapplicable dependency modes. For instance
11545 # both Tru64's cc and ICC support -MD to output dependencies as a
11546 # side effect of compilation, but ICC will put the dependencies in
11547 # the current directory while Tru64 will put them in the object
11548 # directory.
11549 mkdir sub
11551 am_cv_CC_dependencies_compiler_type=none
11552 if test "$am_compiler_list" = ""; then
11553 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11555 am__universal=false
11556 case " $depcc " in #(
11557 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11558 esac
11560 for depmode in $am_compiler_list; do
11561 # Setup a source with many dependencies, because some compilers
11562 # like to wrap large dependency lists on column 80 (with \), and
11563 # we should not choose a depcomp mode which is confused by this.
11565 # We need to recreate these files for each test, as the compiler may
11566 # overwrite some of them when testing with obscure command lines.
11567 # This happens at least with the AIX C compiler.
11568 : > sub/conftest.c
11569 for i in 1 2 3 4 5 6; do
11570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11572 # Solaris 8's {/usr,}/bin/sh.
11573 touch sub/conftst$i.h
11574 done
11575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11578 # mode. It turns out that the SunPro C++ compiler does not properly
11579 # handle `-M -o', and we need to detect this. Also, some Intel
11580 # versions had trouble with output in subdirs
11581 am__obj=sub/conftest.${OBJEXT-o}
11582 am__minus_obj="-o $am__obj"
11583 case $depmode in
11584 gcc)
11585 # This depmode causes a compiler race in universal mode.
11586 test "$am__universal" = false || continue
11588 nosideeffect)
11589 # after this tag, mechanisms are not by side-effect, so they'll
11590 # only be used when explicitly requested
11591 if test "x$enable_dependency_tracking" = xyes; then
11592 continue
11593 else
11594 break
11597 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11598 # This compiler won't grok `-c -o', but also, the minuso test has
11599 # not run yet. These depmodes are late enough in the game, and
11600 # so weak that their functioning should not be impacted.
11601 am__obj=conftest.${OBJEXT-o}
11602 am__minus_obj=
11604 none) break ;;
11605 esac
11606 if depmode=$depmode \
11607 source=sub/conftest.c object=$am__obj \
11608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11610 >/dev/null 2>conftest.err &&
11611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11615 # icc doesn't choke on unknown options, it will just issue warnings
11616 # or remarks (even with -Werror). So we grep stderr for any message
11617 # that says an option was ignored or not supported.
11618 # When given -MP, icc 7.0 and 7.1 complain thusly:
11619 # icc: Command line warning: ignoring option '-M'; no argument required
11620 # The diagnosis changed in icc 8.0:
11621 # icc: Command line remark: option '-MP' not supported
11622 if (grep 'ignoring option' conftest.err ||
11623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11624 am_cv_CC_dependencies_compiler_type=$depmode
11625 break
11628 done
11630 cd ..
11631 rm -rf conftest.dir
11632 else
11633 am_cv_CC_dependencies_compiler_type=none
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11638 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11642 test "x$enable_dependency_tracking" != xno \
11643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11644 am__fastdepCC_TRUE=
11645 am__fastdepCC_FALSE='#'
11646 else
11647 am__fastdepCC_TRUE='#'
11648 am__fastdepCC_FALSE=
11656 if test "x$CC" != xcc; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11658 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11661 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11663 set dummy $CC; ac_cc=`$as_echo "$2" |
11664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11665 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11672 main ()
11676 return 0;
11678 _ACEOF
11679 # Make sure it works both with $CC and with simple cc.
11680 # We do the test twice because some compilers refuse to overwrite an
11681 # existing .o file with -o, though they will create one.
11682 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11683 rm -f conftest2.*
11684 if { { case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687 esac
11688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11689 $as_echo "$ac_try_echo"; } >&5
11690 (eval "$ac_try") 2>&5
11691 ac_status=$?
11692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11693 test $ac_status = 0; } &&
11694 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697 esac
11698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11699 $as_echo "$ac_try_echo"; } >&5
11700 (eval "$ac_try") 2>&5
11701 ac_status=$?
11702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11703 test $ac_status = 0; };
11704 then
11705 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11706 if test "x$CC" != xcc; then
11707 # Test first that cc exists at all.
11708 if { ac_try='cc -c conftest.$ac_ext >&5'
11709 { { case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712 esac
11713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11714 $as_echo "$ac_try_echo"; } >&5
11715 (eval "$ac_try") 2>&5
11716 ac_status=$?
11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11718 test $ac_status = 0; }; }; then
11719 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11720 rm -f conftest2.*
11721 if { { case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724 esac
11725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11726 $as_echo "$ac_try_echo"; } >&5
11727 (eval "$ac_try") 2>&5
11728 ac_status=$?
11729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11730 test $ac_status = 0; } &&
11731 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734 esac
11735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11736 $as_echo "$ac_try_echo"; } >&5
11737 (eval "$ac_try") 2>&5
11738 ac_status=$?
11739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740 test $ac_status = 0; };
11741 then
11742 # cc works too.
11744 else
11745 # cc exists but doesn't like -o.
11746 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11750 else
11751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11753 rm -f core conftest*
11756 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11759 else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11763 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11767 # FIXME: we rely on the cache variable name because
11768 # there is no other way.
11769 set dummy $CC
11770 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11771 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11772 if test "$am_t" != yes; then
11773 # Losing compiler, so override with the script.
11774 # FIXME: It is wrong to rewrite CC.
11775 # But if we don't then we get into trouble of one sort or another.
11776 # A longer-term fix would be to have automake use am__CC in this case,
11777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11778 CC="$am_aux_dir/compile $CC"
11783 if test "x$GCC" != "xyes"; then
11784 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11786 ac_ext=c
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11793 # On Suns, sometimes $CPP names a directory.
11794 if test -n "$CPP" && test -d "$CPP"; then
11795 CPP=
11797 if test -z "$CPP"; then
11798 if test "${ac_cv_prog_CPP+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 # Double quotes because CPP needs to be expanded
11802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11804 ac_preproc_ok=false
11805 for ac_c_preproc_warn_flag in '' yes
11807 # Use a header file that comes with gcc, so configuring glibc
11808 # with a fresh cross-compiler works.
11809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 # <limits.h> exists even on freestanding compilers.
11811 # On the NeXT, cc -E runs the code through the compiler's parser,
11812 # not just through cpp. "Syntax error" is here to catch this case.
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11815 #ifdef __STDC__
11816 # include <limits.h>
11817 #else
11818 # include <assert.h>
11819 #endif
11820 Syntax error
11821 _ACEOF
11822 if ac_fn_c_try_cpp "$LINENO"; then :
11824 else
11825 # Broken: fails on valid input.
11826 continue
11828 rm -f conftest.err conftest.$ac_ext
11830 # OK, works on sane cases. Now check whether nonexistent headers
11831 # can be detected and how.
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <ac_nonexistent.h>
11835 _ACEOF
11836 if ac_fn_c_try_cpp "$LINENO"; then :
11837 # Broken: success on invalid input.
11838 continue
11839 else
11840 # Passes both tests.
11841 ac_preproc_ok=:
11842 break
11844 rm -f conftest.err conftest.$ac_ext
11846 done
11847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11848 rm -f conftest.err conftest.$ac_ext
11849 if $ac_preproc_ok; then :
11850 break
11853 done
11854 ac_cv_prog_CPP=$CPP
11857 CPP=$ac_cv_prog_CPP
11858 else
11859 ac_cv_prog_CPP=$CPP
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11862 $as_echo "$CPP" >&6; }
11863 ac_preproc_ok=false
11864 for ac_c_preproc_warn_flag in '' yes
11866 # Use a header file that comes with gcc, so configuring glibc
11867 # with a fresh cross-compiler works.
11868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 # <limits.h> exists even on freestanding compilers.
11870 # On the NeXT, cc -E runs the code through the compiler's parser,
11871 # not just through cpp. "Syntax error" is here to catch this case.
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874 #ifdef __STDC__
11875 # include <limits.h>
11876 #else
11877 # include <assert.h>
11878 #endif
11879 Syntax error
11880 _ACEOF
11881 if ac_fn_c_try_cpp "$LINENO"; then :
11883 else
11884 # Broken: fails on valid input.
11885 continue
11887 rm -f conftest.err conftest.$ac_ext
11889 # OK, works on sane cases. Now check whether nonexistent headers
11890 # can be detected and how.
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893 #include <ac_nonexistent.h>
11894 _ACEOF
11895 if ac_fn_c_try_cpp "$LINENO"; then :
11896 # Broken: success on invalid input.
11897 continue
11898 else
11899 # Passes both tests.
11900 ac_preproc_ok=:
11901 break
11903 rm -f conftest.err conftest.$ac_ext
11905 done
11906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11907 rm -f conftest.err conftest.$ac_ext
11908 if $ac_preproc_ok; then :
11910 else
11911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11913 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11914 See \`config.log' for more details." "$LINENO" 5; }
11917 ac_ext=c
11918 ac_cpp='$CPP $CPPFLAGS'
11919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11924 # Calculate toolexeclibdir
11925 # Also toolexecdir, though it's only used in toolexeclibdir
11926 case ${version_specific_libs} in
11927 yes)
11928 # Need the gcc compiler version to know where to install libraries
11929 # and header files if --enable-version-specific-runtime-libs option
11930 # is selected.
11931 toolexecdir='$(libdir)/gcc/$(target_alias)'
11932 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11935 if test -n "$with_cross_host" &&
11936 test x"$with_cross_host" != x"no"; then
11937 # Install a library built with a cross compiler in tooldir, not libdir.
11938 toolexecdir='$(exec_prefix)/$(target_alias)'
11939 toolexeclibdir='$(toolexecdir)/lib'
11940 else
11941 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11942 toolexeclibdir='$(libdir)'
11944 multi_os_directory=`$CC -print-multi-os-directory`
11945 case $multi_os_directory in
11946 .) ;; # Avoid trailing /.
11947 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11948 esac
11950 esac
11954 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
11955 do :
11956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11957 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11958 eval as_val=\$$as_ac_Header
11959 if test "x$as_val" = x""yes; then :
11960 cat >>confdefs.h <<_ACEOF
11961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11962 _ACEOF
11966 done
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11970 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11971 if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11975 save_CFLAGS="$CFLAGS"
11976 CFLAGS="$CFLAGS -Werror"
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11980 #include <math.h>
11981 void foo(void) { signgam = 1; }
11983 main ()
11987 return 0;
11989 _ACEOF
11990 if ac_fn_c_try_compile "$LINENO"; then :
11991 libgfor_cv_have_math_h_signgam=yes
11992 else
11993 libgfor_cv_have_math_h_signgam=no
11995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 CFLAGS="$save_CFLAGS"
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11999 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12000 if test $libgfor_cv_have_math_h_signgam = yes; then
12002 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12006 # If available, sqrtl and cbrtl speed up the calculation -
12007 # but they are not required
12008 if test x$gcc_no_link != xyes; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12010 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12011 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 ac_check_lib_save_LIBS=$LIBS
12015 LIBS="-lm $LIBS"
12016 if test x$gcc_no_link = xyes; then
12017 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char sqrtl ();
12030 main ()
12032 return sqrtl ();
12034 return 0;
12036 _ACEOF
12037 if ac_fn_c_try_link "$LINENO"; then :
12038 ac_cv_lib_m_sqrtl=yes
12039 else
12040 ac_cv_lib_m_sqrtl=no
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12047 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12048 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12050 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12055 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12056 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-lm $LIBS"
12061 if test x$gcc_no_link = xyes; then
12062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char cbrtl ();
12075 main ()
12077 return cbrtl ();
12079 return 0;
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_lib_m_cbrtl=yes
12084 else
12085 ac_cv_lib_m_cbrtl=no
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12092 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12093 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12095 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12100 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12101 if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 ac_check_lib_save_LIBS=$LIBS
12105 LIBS="-lm $LIBS"
12106 if test x$gcc_no_link = xyes; then
12107 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 char feholdexcept ();
12120 main ()
12122 return feholdexcept ();
12124 return 0;
12126 _ACEOF
12127 if ac_fn_c_try_link "$LINENO"; then :
12128 ac_cv_lib_m_feholdexcept=yes
12129 else
12130 ac_cv_lib_m_feholdexcept=no
12132 rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12137 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12138 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12140 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12145 $as_echo_n "checking for fesetround in -lm... " >&6; }
12146 if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 ac_check_lib_save_LIBS=$LIBS
12150 LIBS="-lm $LIBS"
12151 if test x$gcc_no_link = xyes; then
12152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char fesetround ();
12165 main ()
12167 return fesetround ();
12169 return 0;
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_m_fesetround=yes
12174 else
12175 ac_cv_lib_m_fesetround=no
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12182 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12183 if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12185 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12190 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12191 if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-lm $LIBS"
12196 if test x$gcc_no_link = xyes; then
12197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 char feupdateenv ();
12210 main ()
12212 return feupdateenv ();
12214 return 0;
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_m_feupdateenv=yes
12219 else
12220 ac_cv_lib_m_feupdateenv=no
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12227 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12228 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12230 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12235 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12236 if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-lm $LIBS"
12241 if test x$gcc_no_link = xyes; then
12242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12250 #ifdef __cplusplus
12251 extern "C"
12252 #endif
12253 char fesetenv ();
12255 main ()
12257 return fesetenv ();
12259 return 0;
12261 _ACEOF
12262 if ac_fn_c_try_link "$LINENO"; then :
12263 ac_cv_lib_m_fesetenv=yes
12264 else
12265 ac_cv_lib_m_fesetenv=no
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12272 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12273 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12275 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12280 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12281 if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 ac_check_lib_save_LIBS=$LIBS
12285 LIBS="-lm $LIBS"
12286 if test x$gcc_no_link = xyes; then
12287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295 #ifdef __cplusplus
12296 extern "C"
12297 #endif
12298 char fetestexcept ();
12300 main ()
12302 return fetestexcept ();
12304 return 0;
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"; then :
12308 ac_cv_lib_m_fetestexcept=yes
12309 else
12310 ac_cv_lib_m_fetestexcept=no
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12317 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12318 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12320 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12324 for ac_func in strtoull
12325 do :
12326 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12327 if test "x$ac_cv_func_strtoull" = x""yes; then :
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_STRTOULL 1
12330 _ACEOF
12333 done
12335 else
12336 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12338 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12341 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12343 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12346 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12348 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12351 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12353 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12356 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12358 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12361 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12363 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12366 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12368 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12373 # Check for hidden visibility (copied from libssp).
12374 saved_CFLAGS="$CFLAGS"
12375 CFLAGS="$CFLAGS -Werror"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12377 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12381 void __attribute__((visibility ("hidden"))) bar (void) {}
12383 main ()
12387 return 0;
12389 _ACEOF
12390 if ac_fn_c_try_compile "$LINENO"; then :
12391 quadmath_hidden=yes
12392 else
12393 quadmath_hidden=no
12395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12397 $as_echo "$quadmath_hidden" >&6; }
12398 if test x$quadmath_hidden = xyes; then
12400 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12403 CFLAGS="$saved_CFLAGS"
12405 # Check for symbol versioning (copied from libssp).
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12407 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12408 # Check whether --enable-symvers was given.
12409 if test "${enable_symvers+set}" = set; then :
12410 enableval=$enable_symvers; quadmath_use_symver=$enableval
12411 else
12412 quadmath_use_symver=yes
12415 if test "x$quadmath_use_symver" != xno; then
12416 if test x$gcc_no_link = xyes; then
12417 # If we cannot link, we cannot build shared libraries, so do not use
12418 # symbol versioning.
12419 quadmath_use_symver=no
12420 else
12421 save_LDFLAGS="$LDFLAGS"
12422 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12423 cat > conftest.map <<EOF
12424 FOO_1.0 {
12425 global: *foo*; bar; local: *;
12428 if test x$gcc_no_link = xyes; then
12429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433 int foo;
12435 main ()
12439 return 0;
12441 _ACEOF
12442 if ac_fn_c_try_link "$LINENO"; then :
12443 quadmath_use_symver=gnu
12444 else
12445 quadmath_use_symver=no
12447 rm -f core conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
12449 if test x$quadmath_use_symver = xno; then
12450 case "$target_os" in
12451 solaris2*)
12452 LDFLAGS="$save_LDFLAGS"
12453 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12454 # Sun ld cannot handle wildcards and treats all entries as undefined.
12455 cat > conftest.map <<EOF
12456 FOO_1.0 {
12457 global: foo; local: *;
12460 if test x$gcc_no_link = xyes; then
12461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465 int foo;
12467 main ()
12471 return 0;
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"; then :
12475 quadmath_use_symver=sun
12476 else
12477 quadmath_use_symver=no
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12482 esac
12484 LDFLAGS="$save_LDFLAGS"
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12488 $as_echo "$quadmath_use_symver" >&6; }
12489 if test "x$quadmath_use_symver" != xno; then
12490 LIBQUAD_USE_SYMVER_TRUE=
12491 LIBQUAD_USE_SYMVER_FALSE='#'
12492 else
12493 LIBQUAD_USE_SYMVER_TRUE='#'
12494 LIBQUAD_USE_SYMVER_FALSE=
12497 if test "x$quadmath_use_symver" = xgnu; then
12498 LIBQUAD_USE_SYMVER_GNU_TRUE=
12499 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12500 else
12501 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12502 LIBQUAD_USE_SYMVER_GNU_FALSE=
12505 if test "x$quadmath_use_symver" = xsun; then
12506 LIBQUAD_USE_SYMVER_SUN_TRUE=
12507 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12508 else
12509 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12510 LIBQUAD_USE_SYMVER_SUN_FALSE=
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12515 $as_echo_n "checking whether __float128 is supported... " >&6; }
12516 if test "${libquad_cv_have_float128+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test x$gcc_no_link = xyes; then
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12523 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12524 typedef _Complex float __attribute__((mode(TC))) __complex128;
12525 #else
12526 typedef _Complex float __attribute__((mode(KC))) __complex128;
12527 #endif
12529 __float128 foo (__float128 x)
12532 __complex128 z1, z2;
12534 z1 = x;
12535 z2 = x / 7.Q;
12536 z2 /= z1;
12538 return (__float128) z2;
12541 __float128 bar (__float128 x)
12543 return x * __builtin_huge_valq ();
12547 main ()
12550 foo (1.2Q);
12551 bar (1.2Q);
12554 return 0;
12556 _ACEOF
12557 if ac_fn_c_try_compile "$LINENO"; then :
12559 libquad_cv_have_float128=yes
12561 else
12563 libquad_cv_have_float128=no
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 else
12568 if test x$gcc_no_link = xyes; then
12569 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12574 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12575 typedef _Complex float __attribute__((mode(TC))) __complex128;
12576 #else
12577 typedef _Complex float __attribute__((mode(KC))) __complex128;
12578 #endif
12580 __float128 foo (__float128 x)
12583 __complex128 z1, z2;
12585 z1 = x;
12586 z2 = x / 7.Q;
12587 z2 /= z1;
12589 return (__float128) z2;
12592 __float128 bar (__float128 x)
12594 return x * __builtin_huge_valq ();
12598 main ()
12601 foo (1.2Q);
12602 bar (1.2Q);
12605 return 0;
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12610 libquad_cv_have_float128=yes
12612 else
12614 libquad_cv_have_float128=no
12617 rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12622 $as_echo "$libquad_cv_have_float128" >&6; }
12623 if test "x$libquad_cv_have_float128" = xyes; then
12624 BUILD_LIBQUADMATH_TRUE=
12625 BUILD_LIBQUADMATH_FALSE='#'
12626 else
12627 BUILD_LIBQUADMATH_TRUE='#'
12628 BUILD_LIBQUADMATH_FALSE=
12632 # Check for printf hook support.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12634 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 #include <printf.h>
12639 #include <stdarg.h>
12640 #include <stdlib.h>
12641 extern void flt128_va (void *, va_list *);
12642 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12643 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12646 main ()
12649 int pa_flt128 = register_printf_type (flt128_va);
12650 int mod_Q = register_printf_modifier (L"Q");
12651 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12652 struct printf_info info = { .user = -1 };
12655 return 0;
12657 _ACEOF
12658 if ac_fn_c_try_compile "$LINENO"; then :
12659 quadmath_printf_hooks=yes
12660 else
12661 quadmath_printf_hooks=no
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12665 $as_echo "$quadmath_printf_hooks" >&6; }
12666 if test x$quadmath_printf_hooks = xyes; then
12668 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12672 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12673 # should be provided.
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12675 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 #include <langinfo.h>
12680 main ()
12683 const char *s;
12684 s = nl_langinfo (DECIMAL_POINT);
12685 s = nl_langinfo (MON_DECIMAL_POINT);
12686 s = nl_langinfo (GROUPING);
12687 s = nl_langinfo (MON_GROUPING);
12688 s = nl_langinfo (THOUSANDS_SEP);
12689 s = nl_langinfo (MON_THOUSANDS_SEP);
12690 (void) s;
12693 return 0;
12695 _ACEOF
12696 if ac_fn_c_try_compile "$LINENO"; then :
12697 quadmath_use_nl_langinfo=yes
12698 else
12699 quadmath_use_nl_langinfo=no
12701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12703 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12704 if test x$quadmath_use_nl_langinfo = xyes; then
12706 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12711 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 #include <langinfo.h>
12716 main ()
12719 const char *s;
12720 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12721 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12722 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12723 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12724 (void) s;
12727 return 0;
12729 _ACEOF
12730 if ac_fn_c_try_compile "$LINENO"; then :
12731 quadmath_use_nl_langinfo_wc=yes
12732 else
12733 quadmath_use_nl_langinfo_wc=no
12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12737 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12738 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12740 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12745 $as_echo_n "checking whether localeconv should be used... " >&6; }
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748 #include <locale.h>
12750 main ()
12753 const struct lconv *l = localeconv ();
12754 const char *s;
12755 s = l->decimal_point;
12756 s = l->mon_decimal_point;
12757 s = l->grouping;
12758 s = l->mon_grouping;
12759 s = l->thousands_sep;
12760 s = l->mon_thousands_sep;
12761 (void) s;
12764 return 0;
12766 _ACEOF
12767 if ac_fn_c_try_compile "$LINENO"; then :
12768 quadmath_use_localeconv=yes
12769 else
12770 quadmath_use_localeconv=no
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12774 $as_echo "$quadmath_use_localeconv" >&6; }
12775 if test x$quadmath_use_localeconv = xyes; then
12777 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12781 # Check for whether i18n number rewriting support for quadmath_snprintf
12782 # or Q printf hooks should be provided.
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12784 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786 /* end confdefs.h. */
12787 #include <langinfo.h>
12788 #include <limits.h>
12789 #include <string.h>
12790 #include <wchar.h>
12791 #include <wctype.h>
12793 main ()
12796 const char *s;
12797 char decimal[MB_LEN_MAX];
12798 wctrans_t map = wctrans ("to_outpunct");
12799 wint_t wdecimal = towctrans (L'.', map);
12800 mbstate_t state;
12801 memset (&state, '\0', sizeof (state));
12802 wcrtomb (decimal, wdecimal, &state);
12803 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12804 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12805 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12806 (void) s;
12809 return 0;
12811 _ACEOF
12812 if ac_fn_c_try_compile "$LINENO"; then :
12813 quadmath_use_i18n_number_h=yes
12814 else
12815 quadmath_use_i18n_number_h=no
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12819 $as_echo "$quadmath_use_i18n_number_h" >&6; }
12820 if test x$quadmath_use_i18n_number_h = xyes; then
12822 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12826 # Add CET specific flags if CET is enabled
12827 # Check whether --enable-cet was given.
12828 if test "${enable_cet+set}" = set; then :
12829 enableval=$enable_cet;
12830 case "$enableval" in
12831 yes|no|default) ;;
12832 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12833 esac
12835 else
12836 enable_cet=default
12840 case "$host" in
12841 i[34567]86-*-linux* | x86_64-*-linux*)
12842 case "$enable_cet" in
12843 default)
12844 # Check if assembler supports CET.
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12849 main ()
12851 asm ("setssbsy");
12853 return 0;
12855 _ACEOF
12856 if ac_fn_c_try_compile "$LINENO"; then :
12857 enable_cet=yes
12858 else
12859 enable_cet=no
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 yes)
12864 # Check if assembler supports CET.
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12869 main ()
12871 asm ("setssbsy");
12873 return 0;
12875 _ACEOF
12876 if ac_fn_c_try_compile "$LINENO"; then :
12878 else
12879 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883 esac
12886 enable_cet=no
12888 esac
12889 if test x$enable_cet = xyes; then
12890 CET_FLAGS="-fcf-protection -mcet"
12893 XCFLAGS="$XCFLAGS $CET_FLAGS"
12896 cat >confcache <<\_ACEOF
12897 # This file is a shell script that caches the results of configure
12898 # tests run on this system so they can be shared between configure
12899 # scripts and configure runs, see configure's option --config-cache.
12900 # It is not useful on other systems. If it contains results you don't
12901 # want to keep, you may remove or edit it.
12903 # config.status only pays attention to the cache file if you give it
12904 # the --recheck option to rerun configure.
12906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12908 # following values.
12910 _ACEOF
12912 # The following way of writing the cache mishandles newlines in values,
12913 # but we know of no workaround that is simple, portable, and efficient.
12914 # So, we kill variables containing newlines.
12915 # Ultrix sh set writes to stderr and can't be redirected directly,
12916 # and sets the high bit in the cache file unless we assign to the vars.
12918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12919 eval ac_val=\$$ac_var
12920 case $ac_val in #(
12921 *${as_nl}*)
12922 case $ac_var in #(
12923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12925 esac
12926 case $ac_var in #(
12927 _ | IFS | as_nl) ;; #(
12928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12929 *) { eval $ac_var=; unset $ac_var;} ;;
12930 esac ;;
12931 esac
12932 done
12934 (set) 2>&1 |
12935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12936 *${as_nl}ac_space=\ *)
12937 # `set' does not quote correctly, so add quotes: double-quote
12938 # substitution turns \\\\ into \\, and sed turns \\ into \.
12939 sed -n \
12940 "s/'/'\\\\''/g;
12941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12942 ;; #(
12944 # `set' quotes correctly as required by POSIX, so do not add quotes.
12945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12947 esac |
12948 sort
12950 sed '
12951 /^ac_cv_env_/b end
12952 t clear
12953 :clear
12954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12955 t end
12956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12957 :end' >>confcache
12958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12959 if test -w "$cache_file"; then
12960 test "x$cache_file" != "x/dev/null" &&
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12962 $as_echo "$as_me: updating cache $cache_file" >&6;}
12963 cat confcache >$cache_file
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12966 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12969 rm -f confcache
12971 if test ${multilib} = yes; then
12972 multilib_arg="--enable-multilib"
12973 else
12974 multilib_arg=
12978 # We would like our source tree to be readonly. However when releases or
12979 # pre-releases are generated, the flex/bison generated files as well as the
12980 # various formats of manuals need to be included along with the rest of the
12981 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12982 # just that.
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12984 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12985 # Check whether --enable-generated-files-in-srcdir was given.
12986 if test "${enable_generated_files_in_srcdir+set}" = set; then :
12987 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12988 yes) enable_generated_files_in_srcdir=yes ;;
12989 no) enable_generated_files_in_srcdir=no ;;
12990 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12991 esac
12992 else
12993 enable_generated_files_in_srcdir=no
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12997 $as_echo "$enable_generated_files_in_srcdir" >&6; }
12998 if test "$enable_generated_files_in_srcdir" = yes; then
12999 GENINSRC_TRUE=
13000 GENINSRC_FALSE='#'
13001 else
13002 GENINSRC_TRUE='#'
13003 GENINSRC_FALSE=
13007 # Determine what GCC version number to use in filesystem paths.
13009 get_gcc_base_ver="cat"
13011 # Check whether --with-gcc-major-version-only was given.
13012 if test "${with_gcc_major_version_only+set}" = set; then :
13013 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13014 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
13022 ac_config_files="$ac_config_files Makefile"
13024 cat >confcache <<\_ACEOF
13025 # This file is a shell script that caches the results of configure
13026 # tests run on this system so they can be shared between configure
13027 # scripts and configure runs, see configure's option --config-cache.
13028 # It is not useful on other systems. If it contains results you don't
13029 # want to keep, you may remove or edit it.
13031 # config.status only pays attention to the cache file if you give it
13032 # the --recheck option to rerun configure.
13034 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13035 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13036 # following values.
13038 _ACEOF
13040 # The following way of writing the cache mishandles newlines in values,
13041 # but we know of no workaround that is simple, portable, and efficient.
13042 # So, we kill variables containing newlines.
13043 # Ultrix sh set writes to stderr and can't be redirected directly,
13044 # and sets the high bit in the cache file unless we assign to the vars.
13046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13047 eval ac_val=\$$ac_var
13048 case $ac_val in #(
13049 *${as_nl}*)
13050 case $ac_var in #(
13051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13053 esac
13054 case $ac_var in #(
13055 _ | IFS | as_nl) ;; #(
13056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13057 *) { eval $ac_var=; unset $ac_var;} ;;
13058 esac ;;
13059 esac
13060 done
13062 (set) 2>&1 |
13063 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13064 *${as_nl}ac_space=\ *)
13065 # `set' does not quote correctly, so add quotes: double-quote
13066 # substitution turns \\\\ into \\, and sed turns \\ into \.
13067 sed -n \
13068 "s/'/'\\\\''/g;
13069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13070 ;; #(
13072 # `set' quotes correctly as required by POSIX, so do not add quotes.
13073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13075 esac |
13076 sort
13078 sed '
13079 /^ac_cv_env_/b end
13080 t clear
13081 :clear
13082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13083 t end
13084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13085 :end' >>confcache
13086 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13087 if test -w "$cache_file"; then
13088 test "x$cache_file" != "x/dev/null" &&
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13090 $as_echo "$as_me: updating cache $cache_file" >&6;}
13091 cat confcache >$cache_file
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13094 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13097 rm -f confcache
13099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13100 # Let make expand exec_prefix.
13101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13103 DEFS=-DHAVE_CONFIG_H
13105 ac_libobjs=
13106 ac_ltlibobjs=
13107 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13108 # 1. Remove the extension, and $U if already installed.
13109 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13110 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13111 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13112 # will be set to the directory where LIBOBJS objects are built.
13113 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13114 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13115 done
13116 LIBOBJS=$ac_libobjs
13118 LTLIBOBJS=$ac_ltlibobjs
13121 if test -n "$EXEEXT"; then
13122 am__EXEEXT_TRUE=
13123 am__EXEEXT_FALSE='#'
13124 else
13125 am__EXEEXT_TRUE='#'
13126 am__EXEEXT_FALSE=
13129 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13130 as_fn_error "conditional \"AMDEP\" was never defined.
13131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13133 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13134 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13137 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13138 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13141 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13142 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13145 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13146 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13149 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13150 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13153 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13154 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13157 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13158 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13161 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13162 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
13163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13165 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13166 as_fn_error "conditional \"GENINSRC\" was never defined.
13167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13170 : ${CONFIG_STATUS=./config.status}
13171 ac_write_fail=0
13172 ac_clean_files_save=$ac_clean_files
13173 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13175 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13176 as_write_fail=0
13177 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13178 #! $SHELL
13179 # Generated by $as_me.
13180 # Run this file to recreate the current configuration.
13181 # Compiler output produced by configure, useful for debugging
13182 # configure, is in config.log if it exists.
13184 debug=false
13185 ac_cs_recheck=false
13186 ac_cs_silent=false
13188 SHELL=\${CONFIG_SHELL-$SHELL}
13189 export SHELL
13190 _ASEOF
13191 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13192 ## -------------------- ##
13193 ## M4sh Initialization. ##
13194 ## -------------------- ##
13196 # Be more Bourne compatible
13197 DUALCASE=1; export DUALCASE # for MKS sh
13198 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13199 emulate sh
13200 NULLCMD=:
13201 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13202 # is contrary to our usage. Disable this feature.
13203 alias -g '${1+"$@"}'='"$@"'
13204 setopt NO_GLOB_SUBST
13205 else
13206 case `(set -o) 2>/dev/null` in #(
13207 *posix*) :
13208 set -o posix ;; #(
13209 *) :
13211 esac
13215 as_nl='
13217 export as_nl
13218 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13219 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13220 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13222 # Prefer a ksh shell builtin over an external printf program on Solaris,
13223 # but without wasting forks for bash or zsh.
13224 if test -z "$BASH_VERSION$ZSH_VERSION" \
13225 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13226 as_echo='print -r --'
13227 as_echo_n='print -rn --'
13228 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13229 as_echo='printf %s\n'
13230 as_echo_n='printf %s'
13231 else
13232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13233 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13234 as_echo_n='/usr/ucb/echo -n'
13235 else
13236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13237 as_echo_n_body='eval
13238 arg=$1;
13239 case $arg in #(
13240 *"$as_nl"*)
13241 expr "X$arg" : "X\\(.*\\)$as_nl";
13242 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13243 esac;
13244 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13246 export as_echo_n_body
13247 as_echo_n='sh -c $as_echo_n_body as_echo'
13249 export as_echo_body
13250 as_echo='sh -c $as_echo_body as_echo'
13253 # The user is always right.
13254 if test "${PATH_SEPARATOR+set}" != set; then
13255 PATH_SEPARATOR=:
13256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13258 PATH_SEPARATOR=';'
13263 # IFS
13264 # We need space, tab and new line, in precisely that order. Quoting is
13265 # there to prevent editors from complaining about space-tab.
13266 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13267 # splitting by setting IFS to empty value.)
13268 IFS=" "" $as_nl"
13270 # Find who we are. Look in the path if we contain no directory separator.
13271 case $0 in #((
13272 *[\\/]* ) as_myself=$0 ;;
13273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13279 done
13280 IFS=$as_save_IFS
13283 esac
13284 # We did not find ourselves, most probably we were run as `sh COMMAND'
13285 # in which case we are not to be found in the path.
13286 if test "x$as_myself" = x; then
13287 as_myself=$0
13289 if test ! -f "$as_myself"; then
13290 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13291 exit 1
13294 # Unset variables that we do not need and which cause bugs (e.g. in
13295 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13296 # suppresses any "Segmentation fault" message there. '((' could
13297 # trigger a bug in pdksh 5.2.14.
13298 for as_var in BASH_ENV ENV MAIL MAILPATH
13299 do eval test x\${$as_var+set} = xset \
13300 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13301 done
13302 PS1='$ '
13303 PS2='> '
13304 PS4='+ '
13306 # NLS nuisances.
13307 LC_ALL=C
13308 export LC_ALL
13309 LANGUAGE=C
13310 export LANGUAGE
13312 # CDPATH.
13313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13316 # as_fn_error ERROR [LINENO LOG_FD]
13317 # ---------------------------------
13318 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13319 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13320 # script with status $?, using 1 if that was 0.
13321 as_fn_error ()
13323 as_status=$?; test $as_status -eq 0 && as_status=1
13324 if test "$3"; then
13325 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13326 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13328 $as_echo "$as_me: error: $1" >&2
13329 as_fn_exit $as_status
13330 } # as_fn_error
13333 # as_fn_set_status STATUS
13334 # -----------------------
13335 # Set $? to STATUS, without forking.
13336 as_fn_set_status ()
13338 return $1
13339 } # as_fn_set_status
13341 # as_fn_exit STATUS
13342 # -----------------
13343 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13344 as_fn_exit ()
13346 set +e
13347 as_fn_set_status $1
13348 exit $1
13349 } # as_fn_exit
13351 # as_fn_unset VAR
13352 # ---------------
13353 # Portably unset VAR.
13354 as_fn_unset ()
13356 { eval $1=; unset $1;}
13358 as_unset=as_fn_unset
13359 # as_fn_append VAR VALUE
13360 # ----------------------
13361 # Append the text in VALUE to the end of the definition contained in VAR. Take
13362 # advantage of any shell optimizations that allow amortized linear growth over
13363 # repeated appends, instead of the typical quadratic growth present in naive
13364 # implementations.
13365 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13366 eval 'as_fn_append ()
13368 eval $1+=\$2
13370 else
13371 as_fn_append ()
13373 eval $1=\$$1\$2
13375 fi # as_fn_append
13377 # as_fn_arith ARG...
13378 # ------------------
13379 # Perform arithmetic evaluation on the ARGs, and store the result in the
13380 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13381 # must be portable across $(()) and expr.
13382 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13383 eval 'as_fn_arith ()
13385 as_val=$(( $* ))
13387 else
13388 as_fn_arith ()
13390 as_val=`expr "$@" || test $? -eq 1`
13392 fi # as_fn_arith
13395 if expr a : '\(a\)' >/dev/null 2>&1 &&
13396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13397 as_expr=expr
13398 else
13399 as_expr=false
13402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13403 as_basename=basename
13404 else
13405 as_basename=false
13408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13409 as_dirname=dirname
13410 else
13411 as_dirname=false
13414 as_me=`$as_basename -- "$0" ||
13415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13416 X"$0" : 'X\(//\)$' \| \
13417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13418 $as_echo X/"$0" |
13419 sed '/^.*\/\([^/][^/]*\)\/*$/{
13420 s//\1/
13423 /^X\/\(\/\/\)$/{
13424 s//\1/
13427 /^X\/\(\/\).*/{
13428 s//\1/
13431 s/.*/./; q'`
13433 # Avoid depending upon Character Ranges.
13434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13437 as_cr_digits='0123456789'
13438 as_cr_alnum=$as_cr_Letters$as_cr_digits
13440 ECHO_C= ECHO_N= ECHO_T=
13441 case `echo -n x` in #(((((
13442 -n*)
13443 case `echo 'xy\c'` in
13444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13445 xy) ECHO_C='\c';;
13446 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13447 ECHO_T=' ';;
13448 esac;;
13450 ECHO_N='-n';;
13451 esac
13453 rm -f conf$$ conf$$.exe conf$$.file
13454 if test -d conf$$.dir; then
13455 rm -f conf$$.dir/conf$$.file
13456 else
13457 rm -f conf$$.dir
13458 mkdir conf$$.dir 2>/dev/null
13460 if (echo >conf$$.file) 2>/dev/null; then
13461 if ln -s conf$$.file conf$$ 2>/dev/null; then
13462 as_ln_s='ln -s'
13463 # ... but there are two gotchas:
13464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13466 # In both cases, we have to default to `cp -p'.
13467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13468 as_ln_s='cp -p'
13469 elif ln conf$$.file conf$$ 2>/dev/null; then
13470 as_ln_s=ln
13471 else
13472 as_ln_s='cp -p'
13474 else
13475 as_ln_s='cp -p'
13477 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13478 rmdir conf$$.dir 2>/dev/null
13481 # as_fn_mkdir_p
13482 # -------------
13483 # Create "$as_dir" as a directory, including parents if necessary.
13484 as_fn_mkdir_p ()
13487 case $as_dir in #(
13488 -*) as_dir=./$as_dir;;
13489 esac
13490 test -d "$as_dir" || eval $as_mkdir_p || {
13491 as_dirs=
13492 while :; do
13493 case $as_dir in #(
13494 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13495 *) as_qdir=$as_dir;;
13496 esac
13497 as_dirs="'$as_qdir' $as_dirs"
13498 as_dir=`$as_dirname -- "$as_dir" ||
13499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13500 X"$as_dir" : 'X\(//\)[^/]' \| \
13501 X"$as_dir" : 'X\(//\)$' \| \
13502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13503 $as_echo X"$as_dir" |
13504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13505 s//\1/
13508 /^X\(\/\/\)[^/].*/{
13509 s//\1/
13512 /^X\(\/\/\)$/{
13513 s//\1/
13516 /^X\(\/\).*/{
13517 s//\1/
13520 s/.*/./; q'`
13521 test -d "$as_dir" && break
13522 done
13523 test -z "$as_dirs" || eval "mkdir $as_dirs"
13524 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13527 } # as_fn_mkdir_p
13528 if mkdir -p . 2>/dev/null; then
13529 as_mkdir_p='mkdir -p "$as_dir"'
13530 else
13531 test -d ./-p && rmdir ./-p
13532 as_mkdir_p=false
13535 if test -x / >/dev/null 2>&1; then
13536 as_test_x='test -x'
13537 else
13538 if ls -dL / >/dev/null 2>&1; then
13539 as_ls_L_option=L
13540 else
13541 as_ls_L_option=
13543 as_test_x='
13544 eval sh -c '\''
13545 if test -d "$1"; then
13546 test -d "$1/.";
13547 else
13548 case $1 in #(
13549 -*)set "./$1";;
13550 esac;
13551 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13552 ???[sx]*):;;*)false;;esac;fi
13553 '\'' sh
13556 as_executable_p=$as_test_x
13558 # Sed expression to map a string onto a valid CPP name.
13559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13561 # Sed expression to map a string onto a valid variable name.
13562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13565 exec 6>&1
13566 ## ----------------------------------- ##
13567 ## Main body of $CONFIG_STATUS script. ##
13568 ## ----------------------------------- ##
13569 _ASEOF
13570 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13573 # Save the log message, to keep $0 and so on meaningful, and to
13574 # report actual input values of CONFIG_FILES etc. instead of their
13575 # values after options handling.
13576 ac_log="
13577 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13578 generated by GNU Autoconf 2.64. Invocation command line was
13580 CONFIG_FILES = $CONFIG_FILES
13581 CONFIG_HEADERS = $CONFIG_HEADERS
13582 CONFIG_LINKS = $CONFIG_LINKS
13583 CONFIG_COMMANDS = $CONFIG_COMMANDS
13584 $ $0 $@
13586 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13589 _ACEOF
13591 case $ac_config_files in *"
13592 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13593 esac
13595 case $ac_config_headers in *"
13596 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13597 esac
13600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13601 # Files that config.status was made for.
13602 config_files="$ac_config_files"
13603 config_headers="$ac_config_headers"
13604 config_commands="$ac_config_commands"
13606 _ACEOF
13608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13609 ac_cs_usage="\
13610 \`$as_me' instantiates files and other configuration actions
13611 from templates according to the current configuration. Unless the files
13612 and actions are specified as TAGs, all are instantiated by default.
13614 Usage: $0 [OPTION]... [TAG]...
13616 -h, --help print this help, then exit
13617 -V, --version print version number and configuration settings, then exit
13618 -q, --quiet, --silent
13619 do not print progress messages
13620 -d, --debug don't remove temporary files
13621 --recheck update $as_me by reconfiguring in the same conditions
13622 --file=FILE[:TEMPLATE]
13623 instantiate the configuration file FILE
13624 --header=FILE[:TEMPLATE]
13625 instantiate the configuration header FILE
13627 Configuration files:
13628 $config_files
13630 Configuration headers:
13631 $config_headers
13633 Configuration commands:
13634 $config_commands
13636 Report bugs to the package provider."
13638 _ACEOF
13639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13640 ac_cs_version="\\
13641 GCC Quad-precision Math Library config.status 0.1
13642 configured by $0, generated by GNU Autoconf 2.64,
13643 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13645 Copyright (C) 2009 Free Software Foundation, Inc.
13646 This config.status script is free software; the Free Software Foundation
13647 gives unlimited permission to copy, distribute and modify it."
13649 ac_pwd='$ac_pwd'
13650 srcdir='$srcdir'
13651 INSTALL='$INSTALL'
13652 MKDIR_P='$MKDIR_P'
13653 AWK='$AWK'
13654 test -n "\$AWK" || AWK=awk
13655 _ACEOF
13657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13658 # The default lists apply if the user does not specify any file.
13659 ac_need_defaults=:
13660 while test $# != 0
13662 case $1 in
13663 --*=*)
13664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13665 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13666 ac_shift=:
13669 ac_option=$1
13670 ac_optarg=$2
13671 ac_shift=shift
13673 esac
13675 case $ac_option in
13676 # Handling of the options.
13677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13678 ac_cs_recheck=: ;;
13679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13680 $as_echo "$ac_cs_version"; exit ;;
13681 --debug | --debu | --deb | --de | --d | -d )
13682 debug=: ;;
13683 --file | --fil | --fi | --f )
13684 $ac_shift
13685 case $ac_optarg in
13686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13687 esac
13688 as_fn_append CONFIG_FILES " '$ac_optarg'"
13689 ac_need_defaults=false;;
13690 --header | --heade | --head | --hea )
13691 $ac_shift
13692 case $ac_optarg in
13693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13694 esac
13695 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13696 ac_need_defaults=false;;
13697 --he | --h)
13698 # Conflict between --help and --header
13699 as_fn_error "ambiguous option: \`$1'
13700 Try \`$0 --help' for more information.";;
13701 --help | --hel | -h )
13702 $as_echo "$ac_cs_usage"; exit ;;
13703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13705 ac_cs_silent=: ;;
13707 # This is an error.
13708 -*) as_fn_error "unrecognized option: \`$1'
13709 Try \`$0 --help' for more information." ;;
13711 *) as_fn_append ac_config_targets " $1"
13712 ac_need_defaults=false ;;
13714 esac
13715 shift
13716 done
13718 ac_configure_extra_args=
13720 if $ac_cs_silent; then
13721 exec 6>/dev/null
13722 ac_configure_extra_args="$ac_configure_extra_args --silent"
13725 _ACEOF
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 if \$ac_cs_recheck; then
13728 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13729 shift
13730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13731 CONFIG_SHELL='$SHELL'
13732 export CONFIG_SHELL
13733 exec "\$@"
13736 _ACEOF
13737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738 exec 5>>config.log
13740 echo
13741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13742 ## Running $as_me. ##
13743 _ASBOX
13744 $as_echo "$ac_log"
13745 } >&5
13747 _ACEOF
13748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13750 # INIT-COMMANDS
13753 srcdir="$srcdir"
13754 host="$host"
13755 target="$target"
13756 with_multisubdir="$with_multisubdir"
13757 with_multisrctop="$with_multisrctop"
13758 with_target_subdir="$with_target_subdir"
13759 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13760 multi_basedir="$multi_basedir"
13761 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13762 CC="$CC"
13763 CXX="$CXX"
13764 GFORTRAN="$GFORTRAN"
13765 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13768 # The HP-UX ksh and POSIX shell print the target directory to stdout
13769 # if CDPATH is set.
13770 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13772 sed_quote_subst='$sed_quote_subst'
13773 double_quote_subst='$double_quote_subst'
13774 delay_variable_subst='$delay_variable_subst'
13775 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13776 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13777 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13778 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13779 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13780 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13781 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13782 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13783 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13784 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13785 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13786 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13787 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13788 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13789 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13790 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13791 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13792 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13793 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13794 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13795 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13796 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13797 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13798 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13799 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13800 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13801 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13802 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13803 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13804 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13805 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13806 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13807 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13808 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13809 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13810 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13811 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13812 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13813 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13814 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13815 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13816 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13817 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13818 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13819 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13820 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13821 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13822 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13823 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"`'
13824 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13825 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13826 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13827 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13828 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13829 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13830 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13831 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13832 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13833 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13834 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13835 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13836 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13837 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13838 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13839 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13840 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13841 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13842 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13843 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13844 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13845 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13846 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13847 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13848 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13849 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13850 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13851 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13852 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13853 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13854 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13855 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13856 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13857 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13858 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13859 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13860 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13861 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13862 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13863 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13864 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13865 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13866 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13867 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13868 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13869 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13870 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13871 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13872 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13873 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13874 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13875 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13876 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13877 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13878 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13879 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13880 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13881 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13882 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13883 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13884 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13885 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13886 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13887 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13888 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13889 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13890 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13891 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13892 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13893 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13894 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13896 LTCC='$LTCC'
13897 LTCFLAGS='$LTCFLAGS'
13898 compiler='$compiler_DEFAULT'
13900 # A function that is used when there is no print builtin or printf.
13901 func_fallback_echo ()
13903 eval 'cat <<_LTECHO_EOF
13905 _LTECHO_EOF'
13908 # Quote evaled strings.
13909 for var in SHELL \
13910 ECHO \
13911 SED \
13912 GREP \
13913 EGREP \
13914 FGREP \
13915 LD \
13916 NM \
13917 LN_S \
13918 lt_SP2NL \
13919 lt_NL2SP \
13920 reload_flag \
13921 OBJDUMP \
13922 deplibs_check_method \
13923 file_magic_cmd \
13924 AR \
13925 AR_FLAGS \
13926 STRIP \
13927 RANLIB \
13928 CC \
13929 CFLAGS \
13930 compiler \
13931 lt_cv_sys_global_symbol_pipe \
13932 lt_cv_sys_global_symbol_to_cdecl \
13933 lt_cv_sys_global_symbol_to_c_name_address \
13934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13935 lt_prog_compiler_no_builtin_flag \
13936 lt_prog_compiler_wl \
13937 lt_prog_compiler_pic \
13938 lt_prog_compiler_static \
13939 lt_cv_prog_compiler_c_o \
13940 need_locks \
13941 DSYMUTIL \
13942 NMEDIT \
13943 LIPO \
13944 OTOOL \
13945 OTOOL64 \
13946 shrext_cmds \
13947 export_dynamic_flag_spec \
13948 whole_archive_flag_spec \
13949 compiler_needs_object \
13950 with_gnu_ld \
13951 allow_undefined_flag \
13952 no_undefined_flag \
13953 hardcode_libdir_flag_spec \
13954 hardcode_libdir_flag_spec_ld \
13955 hardcode_libdir_separator \
13956 fix_srcfile_path \
13957 exclude_expsyms \
13958 include_expsyms \
13959 file_list_spec \
13960 variables_saved_for_relink \
13961 libname_spec \
13962 library_names_spec \
13963 soname_spec \
13964 install_override_mode \
13965 finish_eval \
13966 old_striplib \
13967 striplib; do
13968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13969 *[\\\\\\\`\\"\\\$]*)
13970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13975 esac
13976 done
13978 # Double-quote double-evaled strings.
13979 for var in reload_cmds \
13980 old_postinstall_cmds \
13981 old_postuninstall_cmds \
13982 old_archive_cmds \
13983 extract_expsyms_cmds \
13984 old_archive_from_new_cmds \
13985 old_archive_from_expsyms_cmds \
13986 archive_cmds \
13987 archive_expsym_cmds \
13988 module_cmds \
13989 module_expsym_cmds \
13990 export_symbols_cmds \
13991 prelink_cmds \
13992 postinstall_cmds \
13993 postuninstall_cmds \
13994 finish_cmds \
13995 sys_lib_search_path_spec \
13996 sys_lib_dlsearch_path_spec; do
13997 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13998 *[\\\\\\\`\\"\\\$]*)
13999 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14002 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14004 esac
14005 done
14007 ac_aux_dir='$ac_aux_dir'
14008 xsi_shell='$xsi_shell'
14009 lt_shell_append='$lt_shell_append'
14011 # See if we are running on zsh, and set the options which allow our
14012 # commands through without removal of \ escapes INIT.
14013 if test -n "\${ZSH_VERSION+set}" ; then
14014 setopt NO_GLOB_SUBST
14018 PACKAGE='$PACKAGE'
14019 VERSION='$VERSION'
14020 TIMESTAMP='$TIMESTAMP'
14021 RM='$RM'
14022 ofile='$ofile'
14027 _ACEOF
14029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031 # Handling of arguments.
14032 for ac_config_target in $ac_config_targets
14034 case $ac_config_target in
14035 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14036 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14037 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14038 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14041 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14042 esac
14043 done
14046 # If the user did not use the arguments to specify the items to instantiate,
14047 # then the envvar interface is used. Set only those that are not.
14048 # We use the long form for the default assignment because of an extremely
14049 # bizarre bug on SunOS 4.1.3.
14050 if $ac_need_defaults; then
14051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14056 # Have a temporary directory for convenience. Make it in the build tree
14057 # simply because there is no reason against having it here, and in addition,
14058 # creating and moving files from /tmp can sometimes cause problems.
14059 # Hook for its removal unless debugging.
14060 # Note that there is a small window in which the directory will not be cleaned:
14061 # after its creation but before its name has been assigned to `$tmp'.
14062 $debug ||
14064 tmp=
14065 trap 'exit_status=$?
14066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14068 trap 'as_fn_exit 1' 1 2 13 15
14070 # Create a (secure) tmp directory for tmp files.
14073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14074 test -n "$tmp" && test -d "$tmp"
14075 } ||
14077 tmp=./conf$$-$RANDOM
14078 (umask 077 && mkdir "$tmp")
14079 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14081 # Set up the scripts for CONFIG_FILES section.
14082 # No need to generate them if there are no CONFIG_FILES.
14083 # This happens for instance with `./config.status config.h'.
14084 if test -n "$CONFIG_FILES"; then
14087 ac_cr=`echo X | tr X '\015'`
14088 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14089 # But we know of no other shell where ac_cr would be empty at this
14090 # point, so we can use a bashism as a fallback.
14091 if test "x$ac_cr" = x; then
14092 eval ac_cr=\$\'\\r\'
14094 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14095 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14096 ac_cs_awk_cr='\r'
14097 else
14098 ac_cs_awk_cr=$ac_cr
14101 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14102 _ACEOF
14106 echo "cat >conf$$subs.awk <<_ACEOF" &&
14107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14108 echo "_ACEOF"
14109 } >conf$$subs.sh ||
14110 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14111 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14112 ac_delim='%!_!# '
14113 for ac_last_try in false false false false false :; do
14114 . ./conf$$subs.sh ||
14115 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14118 if test $ac_delim_n = $ac_delim_num; then
14119 break
14120 elif $ac_last_try; then
14121 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14122 else
14123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14125 done
14126 rm -f conf$$subs.sh
14128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14129 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14130 _ACEOF
14131 sed -n '
14133 s/^/S["/; s/!.*/"]=/
14136 s/^[^!]*!//
14137 :repl
14138 t repl
14139 s/'"$ac_delim"'$//
14140 t delim
14143 s/\(.\{148\}\).*/\1/
14144 t more1
14145 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14148 b repl
14149 :more1
14150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14153 s/.\{148\}//
14154 t nl
14155 :delim
14157 s/\(.\{148\}\).*/\1/
14158 t more2
14159 s/["\\]/\\&/g; s/^/"/; s/$/"/
14162 :more2
14163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14166 s/.\{148\}//
14167 t delim
14168 ' <conf$$subs.awk | sed '
14169 /^[^""]/{
14171 s/\n//
14173 ' >>$CONFIG_STATUS || ac_write_fail=1
14174 rm -f conf$$subs.awk
14175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14176 _ACAWK
14177 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14178 for (key in S) S_is_set[key] = 1
14179 FS = "\a"
14183 line = $ 0
14184 nfields = split(line, field, "@")
14185 substed = 0
14186 len = length(field[1])
14187 for (i = 2; i < nfields; i++) {
14188 key = field[i]
14189 keylen = length(key)
14190 if (S_is_set[key]) {
14191 value = S[key]
14192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14193 len += length(value) + length(field[++i])
14194 substed = 1
14195 } else
14196 len += 1 + keylen
14199 print line
14202 _ACAWK
14203 _ACEOF
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14207 else
14209 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14210 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14211 _ACEOF
14213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14215 # trailing colons and then remove the whole line if VPATH becomes empty
14216 # (actually we leave an empty line to preserve line numbers).
14217 if test "x$srcdir" = x.; then
14218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14219 s/:*\$(srcdir):*/:/
14220 s/:*\${srcdir}:*/:/
14221 s/:*@srcdir@:*/:/
14222 s/^\([^=]*=[ ]*\):*/\1/
14223 s/:*$//
14224 s/^[^=]*=[ ]*$//
14228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14229 fi # test -n "$CONFIG_FILES"
14231 # Set up the scripts for CONFIG_HEADERS section.
14232 # No need to generate them if there are no CONFIG_HEADERS.
14233 # This happens for instance with `./config.status Makefile'.
14234 if test -n "$CONFIG_HEADERS"; then
14235 cat >"$tmp/defines.awk" <<\_ACAWK ||
14236 BEGIN {
14237 _ACEOF
14239 # Transform confdefs.h into an awk script `defines.awk', embedded as
14240 # here-document in config.status, that substitutes the proper values into
14241 # config.h.in to produce config.h.
14243 # Create a delimiter string that does not exist in confdefs.h, to ease
14244 # handling of long lines.
14245 ac_delim='%!_!# '
14246 for ac_last_try in false false :; do
14247 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14248 if test -z "$ac_t"; then
14249 break
14250 elif $ac_last_try; then
14251 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14252 else
14253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14255 done
14257 # For the awk script, D is an array of macro values keyed by name,
14258 # likewise P contains macro parameters if any. Preserve backslash
14259 # newline sequences.
14261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14262 sed -n '
14263 s/.\{148\}/&'"$ac_delim"'/g
14264 t rset
14265 :rset
14266 s/^[ ]*#[ ]*define[ ][ ]*/ /
14267 t def
14269 :def
14270 s/\\$//
14271 t bsnl
14272 s/["\\]/\\&/g
14273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14274 D["\1"]=" \3"/p
14275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14277 :bsnl
14278 s/["\\]/\\&/g
14279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14280 D["\1"]=" \3\\\\\\n"\\/p
14281 t cont
14282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14283 t cont
14285 :cont
14287 s/.\{148\}/&'"$ac_delim"'/g
14288 t clear
14289 :clear
14290 s/\\$//
14291 t bsnlc
14292 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14294 :bsnlc
14295 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14296 b cont
14297 ' <confdefs.h | sed '
14298 s/'"$ac_delim"'/"\\\
14299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14302 for (key in D) D_is_set[key] = 1
14303 FS = "\a"
14305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14306 line = \$ 0
14307 split(line, arg, " ")
14308 if (arg[1] == "#") {
14309 defundef = arg[2]
14310 mac1 = arg[3]
14311 } else {
14312 defundef = substr(arg[1], 2)
14313 mac1 = arg[2]
14315 split(mac1, mac2, "(") #)
14316 macro = mac2[1]
14317 prefix = substr(line, 1, index(line, defundef) - 1)
14318 if (D_is_set[macro]) {
14319 # Preserve the white space surrounding the "#".
14320 print prefix "define", macro P[macro] D[macro]
14321 next
14322 } else {
14323 # Replace #undef with comments. This is necessary, for example,
14324 # in the case of _POSIX_SOURCE, which is predefined and required
14325 # on some systems where configure will not decide to define it.
14326 if (defundef == "undef") {
14327 print "/*", prefix defundef, macro, "*/"
14328 next
14332 { print }
14333 _ACAWK
14334 _ACEOF
14335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14336 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14337 fi # test -n "$CONFIG_HEADERS"
14340 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14341 shift
14342 for ac_tag
14344 case $ac_tag in
14345 :[FHLC]) ac_mode=$ac_tag; continue;;
14346 esac
14347 case $ac_mode$ac_tag in
14348 :[FHL]*:*);;
14349 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14350 :[FH]-) ac_tag=-:-;;
14351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14352 esac
14353 ac_save_IFS=$IFS
14354 IFS=:
14355 set x $ac_tag
14356 IFS=$ac_save_IFS
14357 shift
14358 ac_file=$1
14359 shift
14361 case $ac_mode in
14362 :L) ac_source=$1;;
14363 :[FH])
14364 ac_file_inputs=
14365 for ac_f
14367 case $ac_f in
14368 -) ac_f="$tmp/stdin";;
14369 *) # Look for the file first in the build tree, then in the source tree
14370 # (if the path is not absolute). The absolute path cannot be DOS-style,
14371 # because $ac_f cannot contain `:'.
14372 test -f "$ac_f" ||
14373 case $ac_f in
14374 [\\/$]*) false;;
14375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14376 esac ||
14377 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14378 esac
14379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14380 as_fn_append ac_file_inputs " '$ac_f'"
14381 done
14383 # Let's still pretend it is `configure' which instantiates (i.e., don't
14384 # use $as_me), people would be surprised to read:
14385 # /* config.h. Generated by config.status. */
14386 configure_input='Generated from '`
14387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14388 `' by configure.'
14389 if test x"$ac_file" != x-; then
14390 configure_input="$ac_file. $configure_input"
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14392 $as_echo "$as_me: creating $ac_file" >&6;}
14394 # Neutralize special characters interpreted by sed in replacement strings.
14395 case $configure_input in #(
14396 *\&* | *\|* | *\\* )
14397 ac_sed_conf_input=`$as_echo "$configure_input" |
14398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14399 *) ac_sed_conf_input=$configure_input;;
14400 esac
14402 case $ac_tag in
14403 *:-:* | *:-) cat >"$tmp/stdin" \
14404 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14405 esac
14407 esac
14409 ac_dir=`$as_dirname -- "$ac_file" ||
14410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411 X"$ac_file" : 'X\(//\)[^/]' \| \
14412 X"$ac_file" : 'X\(//\)$' \| \
14413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14414 $as_echo X"$ac_file" |
14415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14416 s//\1/
14419 /^X\(\/\/\)[^/].*/{
14420 s//\1/
14423 /^X\(\/\/\)$/{
14424 s//\1/
14427 /^X\(\/\).*/{
14428 s//\1/
14431 s/.*/./; q'`
14432 as_dir="$ac_dir"; as_fn_mkdir_p
14433 ac_builddir=.
14435 case "$ac_dir" in
14436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14439 # A ".." for each directory in $ac_dir_suffix.
14440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14441 case $ac_top_builddir_sub in
14442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14444 esac ;;
14445 esac
14446 ac_abs_top_builddir=$ac_pwd
14447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14448 # for backward compatibility:
14449 ac_top_builddir=$ac_top_build_prefix
14451 case $srcdir in
14452 .) # We are building in place.
14453 ac_srcdir=.
14454 ac_top_srcdir=$ac_top_builddir_sub
14455 ac_abs_top_srcdir=$ac_pwd ;;
14456 [\\/]* | ?:[\\/]* ) # Absolute name.
14457 ac_srcdir=$srcdir$ac_dir_suffix;
14458 ac_top_srcdir=$srcdir
14459 ac_abs_top_srcdir=$srcdir ;;
14460 *) # Relative name.
14461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14462 ac_top_srcdir=$ac_top_build_prefix$srcdir
14463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14464 esac
14465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14468 case $ac_mode in
14471 # CONFIG_FILE
14474 case $INSTALL in
14475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14477 esac
14478 ac_MKDIR_P=$MKDIR_P
14479 case $MKDIR_P in
14480 [\\/$]* | ?:[\\/]* ) ;;
14481 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14482 esac
14483 _ACEOF
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 # If the template does not know about datarootdir, expand it.
14487 # FIXME: This hack should be removed a few years after 2.60.
14488 ac_datarootdir_hack=; ac_datarootdir_seen=
14489 ac_sed_dataroot='
14490 /datarootdir/ {
14494 /@datadir@/p
14495 /@docdir@/p
14496 /@infodir@/p
14497 /@localedir@/p
14498 /@mandir@/p'
14499 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14500 *datarootdir*) ac_datarootdir_seen=yes;;
14501 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14503 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14504 _ACEOF
14505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14506 ac_datarootdir_hack='
14507 s&@datadir@&$datadir&g
14508 s&@docdir@&$docdir&g
14509 s&@infodir@&$infodir&g
14510 s&@localedir@&$localedir&g
14511 s&@mandir@&$mandir&g
14512 s&\\\${datarootdir}&$datarootdir&g' ;;
14513 esac
14514 _ACEOF
14516 # Neutralize VPATH when `$srcdir' = `.'.
14517 # Shell code in configure.ac might set extrasub.
14518 # FIXME: do we really want to maintain this feature?
14519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520 ac_sed_extra="$ac_vpsub
14521 $extrasub
14522 _ACEOF
14523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14526 s|@configure_input@|$ac_sed_conf_input|;t t
14527 s&@top_builddir@&$ac_top_builddir_sub&;t t
14528 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14529 s&@srcdir@&$ac_srcdir&;t t
14530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14531 s&@top_srcdir@&$ac_top_srcdir&;t t
14532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14533 s&@builddir@&$ac_builddir&;t t
14534 s&@abs_builddir@&$ac_abs_builddir&;t t
14535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14536 s&@INSTALL@&$ac_INSTALL&;t t
14537 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14538 $ac_datarootdir_hack
14540 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14541 || as_fn_error "could not create $ac_file" "$LINENO" 5
14543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14547 which seems to be undefined. Please make sure it is defined." >&5
14548 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14549 which seems to be undefined. Please make sure it is defined." >&2;}
14551 rm -f "$tmp/stdin"
14552 case $ac_file in
14553 -) cat "$tmp/out" && rm -f "$tmp/out";;
14554 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14555 esac \
14556 || as_fn_error "could not create $ac_file" "$LINENO" 5
14560 # CONFIG_HEADER
14562 if test x"$ac_file" != x-; then
14564 $as_echo "/* $configure_input */" \
14565 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14566 } >"$tmp/config.h" \
14567 || as_fn_error "could not create $ac_file" "$LINENO" 5
14568 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14570 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14571 else
14572 rm -f "$ac_file"
14573 mv "$tmp/config.h" "$ac_file" \
14574 || as_fn_error "could not create $ac_file" "$LINENO" 5
14576 else
14577 $as_echo "/* $configure_input */" \
14578 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14579 || as_fn_error "could not create -" "$LINENO" 5
14581 # Compute "$ac_file"'s index in $config_headers.
14582 _am_arg="$ac_file"
14583 _am_stamp_count=1
14584 for _am_header in $config_headers :; do
14585 case $_am_header in
14586 $_am_arg | $_am_arg:* )
14587 break ;;
14589 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14590 esac
14591 done
14592 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14593 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14594 X"$_am_arg" : 'X\(//\)[^/]' \| \
14595 X"$_am_arg" : 'X\(//\)$' \| \
14596 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14597 $as_echo X"$_am_arg" |
14598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14599 s//\1/
14602 /^X\(\/\/\)[^/].*/{
14603 s//\1/
14606 /^X\(\/\/\)$/{
14607 s//\1/
14610 /^X\(\/\).*/{
14611 s//\1/
14614 s/.*/./; q'`/stamp-h$_am_stamp_count
14617 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14618 $as_echo "$as_me: executing $ac_file commands" >&6;}
14620 esac
14623 case $ac_file$ac_mode in
14624 "default-1":C)
14625 # Only add multilib support code if we just rebuilt the top-level
14626 # Makefile.
14627 case " $CONFIG_FILES " in
14628 *" Makefile "*)
14629 ac_file=Makefile . ${multi_basedir}/config-ml.in
14631 esac ;;
14632 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14633 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14634 # are listed without --file. Let's play safe and only enable the eval
14635 # if we detect the quoting.
14636 case $CONFIG_FILES in
14637 *\'*) eval set x "$CONFIG_FILES" ;;
14638 *) set x $CONFIG_FILES ;;
14639 esac
14640 shift
14641 for mf
14643 # Strip MF so we end up with the name of the file.
14644 mf=`echo "$mf" | sed -e 's/:.*$//'`
14645 # Check whether this is an Automake generated Makefile or not.
14646 # We used to match only the files named `Makefile.in', but
14647 # some people rename them; so instead we look at the file content.
14648 # Grep'ing the first line is not enough: some people post-process
14649 # each Makefile.in and add a new line on top of each file to say so.
14650 # Grep'ing the whole file is not good either: AIX grep has a line
14651 # limit of 2048, but all sed's we know have understand at least 4000.
14652 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14653 dirpart=`$as_dirname -- "$mf" ||
14654 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14655 X"$mf" : 'X\(//\)[^/]' \| \
14656 X"$mf" : 'X\(//\)$' \| \
14657 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14658 $as_echo X"$mf" |
14659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14660 s//\1/
14663 /^X\(\/\/\)[^/].*/{
14664 s//\1/
14667 /^X\(\/\/\)$/{
14668 s//\1/
14671 /^X\(\/\).*/{
14672 s//\1/
14675 s/.*/./; q'`
14676 else
14677 continue
14679 # Extract the definition of DEPDIR, am__include, and am__quote
14680 # from the Makefile without running `make'.
14681 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14682 test -z "$DEPDIR" && continue
14683 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14684 test -z "am__include" && continue
14685 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14686 # When using ansi2knr, U may be empty or an underscore; expand it
14687 U=`sed -n 's/^U = //p' < "$mf"`
14688 # Find all dependency output files, they are included files with
14689 # $(DEPDIR) in their names. We invoke sed twice because it is the
14690 # simplest approach to changing $(DEPDIR) to its actual value in the
14691 # expansion.
14692 for file in `sed -n "
14693 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14694 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14695 # Make sure the directory exists.
14696 test -f "$dirpart/$file" && continue
14697 fdir=`$as_dirname -- "$file" ||
14698 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14699 X"$file" : 'X\(//\)[^/]' \| \
14700 X"$file" : 'X\(//\)$' \| \
14701 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14702 $as_echo X"$file" |
14703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14704 s//\1/
14707 /^X\(\/\/\)[^/].*/{
14708 s//\1/
14711 /^X\(\/\/\)$/{
14712 s//\1/
14715 /^X\(\/\).*/{
14716 s//\1/
14719 s/.*/./; q'`
14720 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14721 # echo "creating $dirpart/$file"
14722 echo '# dummy' > "$dirpart/$file"
14723 done
14724 done
14727 "libtool":C)
14729 # See if we are running on zsh, and set the options which allow our
14730 # commands through without removal of \ escapes.
14731 if test -n "${ZSH_VERSION+set}" ; then
14732 setopt NO_GLOB_SUBST
14735 cfgfile="${ofile}T"
14736 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14737 $RM "$cfgfile"
14739 cat <<_LT_EOF >> "$cfgfile"
14740 #! $SHELL
14742 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14743 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14745 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14747 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14748 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14749 # Written by Gordon Matzigkeit, 1996
14751 # This file is part of GNU Libtool.
14753 # GNU Libtool is free software; you can redistribute it and/or
14754 # modify it under the terms of the GNU General Public License as
14755 # published by the Free Software Foundation; either version 2 of
14756 # the License, or (at your option) any later version.
14758 # As a special exception to the GNU General Public License,
14759 # if you distribute this file as part of a program or library that
14760 # is built using GNU Libtool, you may include this file under the
14761 # same distribution terms that you use for the rest of that program.
14763 # GNU Libtool is distributed in the hope that it will be useful,
14764 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14765 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14766 # GNU General Public License for more details.
14768 # You should have received a copy of the GNU General Public License
14769 # along with GNU Libtool; see the file COPYING. If not, a copy
14770 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14771 # obtained by writing to the Free Software Foundation, Inc.,
14772 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14775 # The names of the tagged configurations supported by this script.
14776 available_tags=""
14778 # ### BEGIN LIBTOOL CONFIG
14780 # Which release of libtool.m4 was used?
14781 macro_version=$macro_version
14782 macro_revision=$macro_revision
14784 # Whether or not to build shared libraries.
14785 build_libtool_libs=$enable_shared
14787 # Whether or not to build static libraries.
14788 build_old_libs=$enable_static
14790 # What type of objects to build.
14791 pic_mode=$pic_mode
14793 # Whether or not to optimize for fast installation.
14794 fast_install=$enable_fast_install
14796 # Shell to use when invoking shell scripts.
14797 SHELL=$lt_SHELL
14799 # An echo program that protects backslashes.
14800 ECHO=$lt_ECHO
14802 # The host system.
14803 host_alias=$host_alias
14804 host=$host
14805 host_os=$host_os
14807 # The build system.
14808 build_alias=$build_alias
14809 build=$build
14810 build_os=$build_os
14812 # A sed program that does not truncate output.
14813 SED=$lt_SED
14815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14816 Xsed="\$SED -e 1s/^X//"
14818 # A grep program that handles long lines.
14819 GREP=$lt_GREP
14821 # An ERE matcher.
14822 EGREP=$lt_EGREP
14824 # A literal string matcher.
14825 FGREP=$lt_FGREP
14827 # A BSD- or MS-compatible name lister.
14828 NM=$lt_NM
14830 # Whether we need soft or hard links.
14831 LN_S=$lt_LN_S
14833 # What is the maximum length of a command?
14834 max_cmd_len=$max_cmd_len
14836 # Object file suffix (normally "o").
14837 objext=$ac_objext
14839 # Executable file suffix (normally "").
14840 exeext=$exeext
14842 # whether the shell understands "unset".
14843 lt_unset=$lt_unset
14845 # turn spaces into newlines.
14846 SP2NL=$lt_lt_SP2NL
14848 # turn newlines into spaces.
14849 NL2SP=$lt_lt_NL2SP
14851 # An object symbol dumper.
14852 OBJDUMP=$lt_OBJDUMP
14854 # Method to check whether dependent libraries are shared objects.
14855 deplibs_check_method=$lt_deplibs_check_method
14857 # Command to use when deplibs_check_method == "file_magic".
14858 file_magic_cmd=$lt_file_magic_cmd
14860 # The archiver.
14861 AR=$lt_AR
14862 AR_FLAGS=$lt_AR_FLAGS
14864 # A symbol stripping program.
14865 STRIP=$lt_STRIP
14867 # Commands used to install an old-style archive.
14868 RANLIB=$lt_RANLIB
14869 old_postinstall_cmds=$lt_old_postinstall_cmds
14870 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14872 # Whether to use a lock for old archive extraction.
14873 lock_old_archive_extraction=$lock_old_archive_extraction
14875 # A C compiler.
14876 LTCC=$lt_CC
14878 # LTCC compiler flags.
14879 LTCFLAGS=$lt_CFLAGS
14881 # Take the output of nm and produce a listing of raw symbols and C names.
14882 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14884 # Transform the output of nm in a proper C declaration.
14885 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14887 # Transform the output of nm in a C name address pair.
14888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14890 # Transform the output of nm in a C name address pair when lib prefix is needed.
14891 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14893 # The name of the directory that contains temporary libtool files.
14894 objdir=$objdir
14896 # Used to examine libraries when file_magic_cmd begins with "file".
14897 MAGIC_CMD=$MAGIC_CMD
14899 # Must we lock files when doing compilation?
14900 need_locks=$lt_need_locks
14902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14903 DSYMUTIL=$lt_DSYMUTIL
14905 # Tool to change global to local symbols on Mac OS X.
14906 NMEDIT=$lt_NMEDIT
14908 # Tool to manipulate fat objects and archives on Mac OS X.
14909 LIPO=$lt_LIPO
14911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14912 OTOOL=$lt_OTOOL
14914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14915 OTOOL64=$lt_OTOOL64
14917 # Old archive suffix (normally "a").
14918 libext=$libext
14920 # Shared library suffix (normally ".so").
14921 shrext_cmds=$lt_shrext_cmds
14923 # The commands to extract the exported symbol list from a shared archive.
14924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14926 # Variables whose values should be saved in libtool wrapper scripts and
14927 # restored at link time.
14928 variables_saved_for_relink=$lt_variables_saved_for_relink
14930 # Do we need the "lib" prefix for modules?
14931 need_lib_prefix=$need_lib_prefix
14933 # Do we need a version for libraries?
14934 need_version=$need_version
14936 # Library versioning type.
14937 version_type=$version_type
14939 # Shared library runtime path variable.
14940 runpath_var=$runpath_var
14942 # Shared library path variable.
14943 shlibpath_var=$shlibpath_var
14945 # Is shlibpath searched before the hard-coded library search path?
14946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14948 # Format of library name prefix.
14949 libname_spec=$lt_libname_spec
14951 # List of archive names. First name is the real one, the rest are links.
14952 # The last name is the one that the linker finds with -lNAME
14953 library_names_spec=$lt_library_names_spec
14955 # The coded name of the library, if different from the real name.
14956 soname_spec=$lt_soname_spec
14958 # Permission mode override for installation of shared libraries.
14959 install_override_mode=$lt_install_override_mode
14961 # Command to use after installation of a shared archive.
14962 postinstall_cmds=$lt_postinstall_cmds
14964 # Command to use after uninstallation of a shared archive.
14965 postuninstall_cmds=$lt_postuninstall_cmds
14967 # Commands used to finish a libtool library installation in a directory.
14968 finish_cmds=$lt_finish_cmds
14970 # As "finish_cmds", except a single script fragment to be evaled but
14971 # not shown.
14972 finish_eval=$lt_finish_eval
14974 # Whether we should hardcode library paths into libraries.
14975 hardcode_into_libs=$hardcode_into_libs
14977 # Compile-time system search path for libraries.
14978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14980 # Run-time system search path for libraries.
14981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14983 # Whether dlopen is supported.
14984 dlopen_support=$enable_dlopen
14986 # Whether dlopen of programs is supported.
14987 dlopen_self=$enable_dlopen_self
14989 # Whether dlopen of statically linked programs is supported.
14990 dlopen_self_static=$enable_dlopen_self_static
14992 # Commands to strip libraries.
14993 old_striplib=$lt_old_striplib
14994 striplib=$lt_striplib
14997 # The linker used to build libraries.
14998 LD=$lt_LD
15000 # How to create reloadable object files.
15001 reload_flag=$lt_reload_flag
15002 reload_cmds=$lt_reload_cmds
15004 # Commands used to build an old-style archive.
15005 old_archive_cmds=$lt_old_archive_cmds
15007 # A language specific compiler.
15008 CC=$lt_compiler
15010 # Is the compiler the GNU compiler?
15011 with_gcc=$GCC
15013 # Compiler flag to turn off builtin functions.
15014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15016 # How to pass a linker flag through the compiler.
15017 wl=$lt_lt_prog_compiler_wl
15019 # Additional compiler flags for building library objects.
15020 pic_flag=$lt_lt_prog_compiler_pic
15022 # Compiler flag to prevent dynamic linking.
15023 link_static_flag=$lt_lt_prog_compiler_static
15025 # Does compiler simultaneously support -c and -o options?
15026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15028 # Whether or not to add -lc for building shared libraries.
15029 build_libtool_need_lc=$archive_cmds_need_lc
15031 # Whether or not to disallow shared libs when runtime libs are static.
15032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15034 # Compiler flag to allow reflexive dlopens.
15035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15037 # Compiler flag to generate shared objects directly from archives.
15038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15040 # Whether the compiler copes with passing no objects directly.
15041 compiler_needs_object=$lt_compiler_needs_object
15043 # Create an old-style archive from a shared archive.
15044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15046 # Create a temporary old-style archive to link instead of a shared archive.
15047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15049 # Commands used to build a shared archive.
15050 archive_cmds=$lt_archive_cmds
15051 archive_expsym_cmds=$lt_archive_expsym_cmds
15053 # Commands used to build a loadable module if different from building
15054 # a shared archive.
15055 module_cmds=$lt_module_cmds
15056 module_expsym_cmds=$lt_module_expsym_cmds
15058 # Whether we are building with GNU ld or not.
15059 with_gnu_ld=$lt_with_gnu_ld
15061 # Flag that allows shared libraries with undefined symbols to be built.
15062 allow_undefined_flag=$lt_allow_undefined_flag
15064 # Flag that enforces no undefined symbols.
15065 no_undefined_flag=$lt_no_undefined_flag
15067 # Flag to hardcode \$libdir into a binary during linking.
15068 # This must work even if \$libdir does not exist
15069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15071 # If ld is used when linking, flag to hardcode \$libdir into a binary
15072 # during linking. This must work even if \$libdir does not exist.
15073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15075 # Whether we need a single "-rpath" flag with a separated argument.
15076 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15079 # DIR into the resulting binary.
15080 hardcode_direct=$hardcode_direct
15082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15083 # DIR into the resulting binary and the resulting library dependency is
15084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15085 # library is relocated.
15086 hardcode_direct_absolute=$hardcode_direct_absolute
15088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15089 # into the resulting binary.
15090 hardcode_minus_L=$hardcode_minus_L
15092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15093 # into the resulting binary.
15094 hardcode_shlibpath_var=$hardcode_shlibpath_var
15096 # Set to "yes" if building a shared library automatically hardcodes DIR
15097 # into the library and all subsequent libraries and executables linked
15098 # against it.
15099 hardcode_automatic=$hardcode_automatic
15101 # Set to yes if linker adds runtime paths of dependent libraries
15102 # to runtime path list.
15103 inherit_rpath=$inherit_rpath
15105 # Whether libtool must link a program against all its dependency libraries.
15106 link_all_deplibs=$link_all_deplibs
15108 # Fix the shell variable \$srcfile for the compiler.
15109 fix_srcfile_path=$lt_fix_srcfile_path
15111 # Set to "yes" if exported symbols are required.
15112 always_export_symbols=$always_export_symbols
15114 # The commands to list exported symbols.
15115 export_symbols_cmds=$lt_export_symbols_cmds
15117 # Symbols that should not be listed in the preloaded symbols.
15118 exclude_expsyms=$lt_exclude_expsyms
15120 # Symbols that must always be exported.
15121 include_expsyms=$lt_include_expsyms
15123 # Commands necessary for linking programs (against libraries) with templates.
15124 prelink_cmds=$lt_prelink_cmds
15126 # Specify filename containing input files.
15127 file_list_spec=$lt_file_list_spec
15129 # How to hardcode a shared library path into an executable.
15130 hardcode_action=$hardcode_action
15132 # ### END LIBTOOL CONFIG
15134 _LT_EOF
15136 case $host_os in
15137 aix3*)
15138 cat <<\_LT_EOF >> "$cfgfile"
15139 # AIX sometimes has problems with the GCC collect2 program. For some
15140 # reason, if we set the COLLECT_NAMES environment variable, the problems
15141 # vanish in a puff of smoke.
15142 if test "X${COLLECT_NAMES+set}" != Xset; then
15143 COLLECT_NAMES=
15144 export COLLECT_NAMES
15146 _LT_EOF
15148 esac
15151 ltmain="$ac_aux_dir/ltmain.sh"
15154 # We use sed instead of cat because bash on DJGPP gets confused if
15155 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15156 # text mode, it properly converts lines to CR/LF. This bash problem
15157 # is reportedly fixed, but why not run on old versions too?
15158 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15159 || (rm -f "$cfgfile"; exit 1)
15161 case $xsi_shell in
15162 yes)
15163 cat << \_LT_EOF >> "$cfgfile"
15165 # func_dirname file append nondir_replacement
15166 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15167 # otherwise set result to NONDIR_REPLACEMENT.
15168 func_dirname ()
15170 case ${1} in
15171 */*) func_dirname_result="${1%/*}${2}" ;;
15172 * ) func_dirname_result="${3}" ;;
15173 esac
15176 # func_basename file
15177 func_basename ()
15179 func_basename_result="${1##*/}"
15182 # func_dirname_and_basename file append nondir_replacement
15183 # perform func_basename and func_dirname in a single function
15184 # call:
15185 # dirname: Compute the dirname of FILE. If nonempty,
15186 # add APPEND to the result, otherwise set result
15187 # to NONDIR_REPLACEMENT.
15188 # value returned in "$func_dirname_result"
15189 # basename: Compute filename of FILE.
15190 # value retuned in "$func_basename_result"
15191 # Implementation must be kept synchronized with func_dirname
15192 # and func_basename. For efficiency, we do not delegate to
15193 # those functions but instead duplicate the functionality here.
15194 func_dirname_and_basename ()
15196 case ${1} in
15197 */*) func_dirname_result="${1%/*}${2}" ;;
15198 * ) func_dirname_result="${3}" ;;
15199 esac
15200 func_basename_result="${1##*/}"
15203 # func_stripname prefix suffix name
15204 # strip PREFIX and SUFFIX off of NAME.
15205 # PREFIX and SUFFIX must not contain globbing or regex special
15206 # characters, hashes, percent signs, but SUFFIX may contain a leading
15207 # dot (in which case that matches only a dot).
15208 func_stripname ()
15210 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15211 # positional parameters, so assign one to ordinary parameter first.
15212 func_stripname_result=${3}
15213 func_stripname_result=${func_stripname_result#"${1}"}
15214 func_stripname_result=${func_stripname_result%"${2}"}
15217 # func_opt_split
15218 func_opt_split ()
15220 func_opt_split_opt=${1%%=*}
15221 func_opt_split_arg=${1#*=}
15224 # func_lo2o object
15225 func_lo2o ()
15227 case ${1} in
15228 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15229 *) func_lo2o_result=${1} ;;
15230 esac
15233 # func_xform libobj-or-source
15234 func_xform ()
15236 func_xform_result=${1%.*}.lo
15239 # func_arith arithmetic-term...
15240 func_arith ()
15242 func_arith_result=$(( $* ))
15245 # func_len string
15246 # STRING may not start with a hyphen.
15247 func_len ()
15249 func_len_result=${#1}
15252 _LT_EOF
15254 *) # Bourne compatible functions.
15255 cat << \_LT_EOF >> "$cfgfile"
15257 # func_dirname file append nondir_replacement
15258 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15259 # otherwise set result to NONDIR_REPLACEMENT.
15260 func_dirname ()
15262 # Extract subdirectory from the argument.
15263 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15264 if test "X$func_dirname_result" = "X${1}"; then
15265 func_dirname_result="${3}"
15266 else
15267 func_dirname_result="$func_dirname_result${2}"
15271 # func_basename file
15272 func_basename ()
15274 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15278 # func_stripname prefix suffix name
15279 # strip PREFIX and SUFFIX off of NAME.
15280 # PREFIX and SUFFIX must not contain globbing or regex special
15281 # characters, hashes, percent signs, but SUFFIX may contain a leading
15282 # dot (in which case that matches only a dot).
15283 # func_strip_suffix prefix name
15284 func_stripname ()
15286 case ${2} in
15287 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15288 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15289 esac
15292 # sed scripts:
15293 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15294 my_sed_long_arg='1s/^-[^=]*=//'
15296 # func_opt_split
15297 func_opt_split ()
15299 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15300 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15303 # func_lo2o object
15304 func_lo2o ()
15306 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15309 # func_xform libobj-or-source
15310 func_xform ()
15312 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15315 # func_arith arithmetic-term...
15316 func_arith ()
15318 func_arith_result=`expr "$@"`
15321 # func_len string
15322 # STRING may not start with a hyphen.
15323 func_len ()
15325 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15328 _LT_EOF
15329 esac
15331 case $lt_shell_append in
15332 yes)
15333 cat << \_LT_EOF >> "$cfgfile"
15335 # func_append var value
15336 # Append VALUE to the end of shell variable VAR.
15337 func_append ()
15339 eval "$1+=\$2"
15341 _LT_EOF
15344 cat << \_LT_EOF >> "$cfgfile"
15346 # func_append var value
15347 # Append VALUE to the end of shell variable VAR.
15348 func_append ()
15350 eval "$1=\$$1\$2"
15353 _LT_EOF
15355 esac
15358 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15359 || (rm -f "$cfgfile"; exit 1)
15361 mv -f "$cfgfile" "$ofile" ||
15362 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15363 chmod +x "$ofile"
15367 esac
15368 done # for ac_tag
15371 as_fn_exit 0
15372 _ACEOF
15373 ac_clean_files=$ac_clean_files_save
15375 test $ac_write_fail = 0 ||
15376 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15379 # configure is writing to config.log, and then calls config.status.
15380 # config.status does its own redirection, appending to config.log.
15381 # Unfortunately, on DOS this fails, as config.log is still kept open
15382 # by configure, so config.status won't be able to write to it; its
15383 # output is simply discarded. So we exec the FD to /dev/null,
15384 # effectively closing config.log, so it can be properly (re)opened and
15385 # appended to by config.status. When coming back to configure, we
15386 # need to make the FD available again.
15387 if test "$no_create" != yes; then
15388 ac_cs_success=:
15389 ac_config_status_args=
15390 test "$silent" = yes &&
15391 ac_config_status_args="$ac_config_status_args --quiet"
15392 exec 5>/dev/null
15393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15394 exec 5>>config.log
15395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15396 # would make configure fail if this is the last instruction.
15397 $ac_cs_success || as_fn_exit $?
15399 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15401 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}