.
[official-gcc.git] / libquadmath / configure
blobd2f13bf7751e5dbfad167d93823832b9a3cd92fc
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 BUILD_LIBQUADMATH_FALSE
608 BUILD_LIBQUADMATH_TRUE
609 LIBQUAD_USE_SYMVER_SUN_FALSE
610 LIBQUAD_USE_SYMVER_SUN_TRUE
611 LIBQUAD_USE_SYMVER_GNU_FALSE
612 LIBQUAD_USE_SYMVER_GNU_TRUE
613 LIBQUAD_USE_SYMVER_FALSE
614 LIBQUAD_USE_SYMVER_TRUE
615 toolexeclibdir
616 toolexecdir
617 MAINT
618 MAINTAINER_MODE_FALSE
619 MAINTAINER_MODE_TRUE
620 enable_static
621 enable_shared
622 lt_host_flags
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 RANLIB
630 OBJDUMP
631 LN_S
633 ac_ct_DUMPBIN
634 DUMPBIN
636 FGREP
638 LIBTOOL
639 REPORT_BUGS_TEXI
640 REPORT_BUGS_TO
641 BUILD_INFO_FALSE
642 BUILD_INFO_TRUE
643 EGREP
644 GREP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
669 mkdir_p
670 MKDIR_P
671 INSTALL_STRIP_PROGRAM
672 STRIP
673 install_sh
674 MAKEINFO
675 AUTOHEADER
676 AUTOMAKE
677 AUTOCONF
678 ACLOCAL
679 VERSION
680 PACKAGE
681 CYGPATH_W
682 am__isrc
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 multi_basedir
687 target_noncanonical
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_multilib
742 enable_version_specific_runtime_libs
743 enable_dependency_tracking
744 with_bugurl
745 enable_shared
746 enable_static
747 with_pic
748 enable_fast_install
749 with_gnu_ld
750 enable_libtool_lock
751 enable_maintainer_mode
752 enable_symvers
753 enable_generated_files_in_srcdir
754 with_gcc_major_version_only
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CPP'
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
815 ac_prev=
816 ac_dashdash=
817 for ac_option
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
835 ac_dashdash=yes ;;
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
854 --config-cache | -C)
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) as_fn_error "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information."
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 esac
1172 done
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error "missing argument to $ac_option"
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used." >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229 test "$silent" = yes && exec 6>/dev/null
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error "pwd does not report name of working directory"
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1258 /^X\(\/\/\)$/{
1259 s//\1/
1262 /^X\(\/\).*/{
1263 s//\1/
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1271 else
1272 ac_srcdir_defaulted=no
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1361 cat <<\_ACEOF
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1372 _ACEOF
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1378 esac
1379 cat <<\_ACEOF
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-multilib build many library versions (default)
1386 --enable-version-specific-runtime-libs
1387 specify that runtime libraries should be installed
1388 in a compiler-specific directory
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396 --enable-maintainer-mode enable make rules and dependencies not useful
1397 (and sometimes confusing) to the casual installer
1398 --disable-symvers disable symbol versioning for libquadmath
1399 --enable-generated-files-in-srcdir
1400 put copies of generated files in source dir intended
1401 for creating source tarballs for users without
1402 texinfo bison or flex
1404 Optional Packages:
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-bugurl=URL Direct users to URL to report a bug
1408 --with-pic try to use only PIC/non-PIC objects [default=use
1409 both]
1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1411 --with-gcc-major-version-only
1412 use only GCC major number in filesystem paths
1414 Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CPP C preprocessor
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1427 Report bugs to the package provider.
1428 _ACEOF
1429 ac_status=$?
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489 cat <<\_ACEOF
1490 GCC Quad-precision Math Library configure 0.1
1491 generated by GNU Autoconf 2.64
1493 Copyright (C) 2009 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1535 ac_retval=1
1537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1538 return $ac_retval
1540 } # ac_fn_c_try_compile
1542 # ac_fn_c_try_cpp LINENO
1543 # ----------------------
1544 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_cpp ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if { { ac_try="$ac_cpp conftest.$ac_ext"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } >/dev/null && {
1564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 }; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1572 ac_retval=1
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
1577 } # ac_fn_c_try_cpp
1579 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1582 # the include files in INCLUDES and setting the cache variable VAR
1583 # accordingly.
1584 ac_fn_c_check_header_mongrel ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589 $as_echo_n "checking for $2... " >&6; }
1590 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1591 $as_echo_n "(cached) " >&6
1593 eval ac_res=\$$3
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 else
1597 # Is the header compilable?
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1599 $as_echo_n "checking $2 usability... " >&6; }
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1603 #include <$2>
1604 _ACEOF
1605 if ac_fn_c_try_compile "$LINENO"; then :
1606 ac_header_compiler=yes
1607 else
1608 ac_header_compiler=no
1610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1612 $as_echo "$ac_header_compiler" >&6; }
1614 # Is the header present?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1616 $as_echo_n "checking $2 presence... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_cpp "$LINENO"; then :
1622 ac_header_preproc=yes
1623 else
1624 ac_header_preproc=no
1626 rm -f conftest.err conftest.$ac_ext
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1628 $as_echo "$ac_header_preproc" >&6; }
1630 # So? What about this header?
1631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1632 yes:no: )
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1634 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638 no:yes:* )
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1640 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1642 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1644 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1646 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 esac
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 eval "$3=\$ac_header_compiler"
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 } # ac_fn_c_check_header_mongrel
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=$ac_status
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704 return $ac_retval
1706 } # ac_fn_c_try_run
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 } # ac_fn_c_check_header_compile
1739 # ac_fn_c_try_link LINENO
1740 # -----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_link ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext conftest$ac_exeext
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest$ac_exeext && {
1765 test "$cross_compiling" = yes ||
1766 $as_test_x conftest$ac_exeext
1767 }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1773 ac_retval=1
1775 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1776 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1777 # interfere with the next link command; also delete a directory that is
1778 # left behind by Apple's compiler. We do this before executing the actions.
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1783 } # ac_fn_c_try_link
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 if test x$gcc_no_link = xyes; then
1797 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1810 #ifdef __STDC__
1811 # include <limits.h>
1812 #else
1813 # include <assert.h>
1814 #endif
1816 #undef $2
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1821 #ifdef __cplusplus
1822 extern "C"
1823 #endif
1824 char $2 ();
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1829 choke me
1830 #endif
1833 main ()
1835 return $2 ();
1837 return 0;
1839 _ACEOF
1840 if ac_fn_c_try_link "$LINENO"; then :
1841 eval "$3=yes"
1842 else
1843 eval "$3=no"
1845 rm -f core conftest.err conftest.$ac_objext \
1846 conftest$ac_exeext conftest.$ac_ext
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 } # ac_fn_c_check_func
1854 cat >config.log <<_ACEOF
1855 This file contains any messages produced by compilers while
1856 running configure, to aid debugging if configure makes a mistake.
1858 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1859 generated by GNU Autoconf 2.64. Invocation command line was
1861 $ $0 $@
1863 _ACEOF
1864 exec 5>>config.log
1866 cat <<_ASUNAME
1867 ## --------- ##
1868 ## Platform. ##
1869 ## --------- ##
1871 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1872 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1873 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1874 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1875 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1877 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1878 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1880 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1881 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1882 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1883 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1884 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1885 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1886 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1888 _ASUNAME
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 $as_echo "PATH: $as_dir"
1896 done
1897 IFS=$as_save_IFS
1899 } >&5
1901 cat >&5 <<_ACEOF
1904 ## ----------- ##
1905 ## Core tests. ##
1906 ## ----------- ##
1908 _ACEOF
1911 # Keep a trace of the command line.
1912 # Strip out --no-create and --no-recursion so they do not pile up.
1913 # Strip out --silent because we don't want to record it for future runs.
1914 # Also quote any args containing shell meta-characters.
1915 # Make two passes to allow for proper duplicate-argument suppression.
1916 ac_configure_args=
1917 ac_configure_args0=
1918 ac_configure_args1=
1919 ac_must_keep_next=false
1920 for ac_pass in 1 2
1922 for ac_arg
1924 case $ac_arg in
1925 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1926 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1927 | -silent | --silent | --silen | --sile | --sil)
1928 continue ;;
1929 *\'*)
1930 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 esac
1932 case $ac_pass in
1933 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1935 as_fn_append ac_configure_args1 " '$ac_arg'"
1936 if test $ac_must_keep_next = true; then
1937 ac_must_keep_next=false # Got value, back to normal.
1938 else
1939 case $ac_arg in
1940 *=* | --config-cache | -C | -disable-* | --disable-* \
1941 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1942 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1943 | -with-* | --with-* | -without-* | --without-* | --x)
1944 case "$ac_configure_args0 " in
1945 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1946 esac
1948 -* ) ac_must_keep_next=true ;;
1949 esac
1951 as_fn_append ac_configure_args " '$ac_arg'"
1953 esac
1954 done
1955 done
1956 { ac_configure_args0=; unset ac_configure_args0;}
1957 { ac_configure_args1=; unset ac_configure_args1;}
1959 # When interrupted or exit'd, cleanup temporary files, and complete
1960 # config.log. We remove comments because anyway the quotes in there
1961 # would cause problems or look ugly.
1962 # WARNING: Use '\'' to represent an apostrophe within the trap.
1963 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1964 trap 'exit_status=$?
1965 # Save into config.log some information that might help in debugging.
1967 echo
1969 cat <<\_ASBOX
1970 ## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##
1973 _ASBOX
1974 echo
1975 # The following way of writing the cache mishandles newlines in values,
1977 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in #(
1980 *${as_nl}*)
1981 case $ac_var in #(
1982 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1983 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1984 esac
1985 case $ac_var in #(
1986 _ | IFS | as_nl) ;; #(
1987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1988 *) { eval $ac_var=; unset $ac_var;} ;;
1989 esac ;;
1990 esac
1991 done
1992 (set) 2>&1 |
1993 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1994 *${as_nl}ac_space=\ *)
1995 sed -n \
1996 "s/'\''/'\''\\\\'\'''\''/g;
1997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1998 ;; #(
2000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002 esac |
2003 sort
2005 echo
2007 cat <<\_ASBOX
2008 ## ----------------- ##
2009 ## Output variables. ##
2010 ## ----------------- ##
2011 _ASBOX
2012 echo
2013 for ac_var in $ac_subst_vars
2015 eval ac_val=\$$ac_var
2016 case $ac_val in
2017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018 esac
2019 $as_echo "$ac_var='\''$ac_val'\''"
2020 done | sort
2021 echo
2023 if test -n "$ac_subst_files"; then
2024 cat <<\_ASBOX
2025 ## ------------------- ##
2026 ## File substitutions. ##
2027 ## ------------------- ##
2028 _ASBOX
2029 echo
2030 for ac_var in $ac_subst_files
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 $as_echo "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2041 if test -s confdefs.h; then
2042 cat <<\_ASBOX
2043 ## ----------- ##
2044 ## confdefs.h. ##
2045 ## ----------- ##
2046 _ASBOX
2047 echo
2048 cat confdefs.h
2049 echo
2051 test "$ac_signal" != 0 &&
2052 $as_echo "$as_me: caught signal $ac_signal"
2053 $as_echo "$as_me: exit $exit_status"
2054 } >&5
2055 rm -f core *.core core.conftest.* &&
2056 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2057 exit $exit_status
2059 for ac_signal in 1 2 13 15; do
2060 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2061 done
2062 ac_signal=0
2064 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2065 rm -f -r conftest* confdefs.h
2067 $as_echo "/* confdefs.h */" > confdefs.h
2069 # Predefined preprocessor variables.
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_NAME "$PACKAGE_NAME"
2073 _ACEOF
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2077 _ACEOF
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_STRING "$PACKAGE_STRING"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_URL "$PACKAGE_URL"
2093 _ACEOF
2096 # Let the site file select an alternate cache file if it wants to.
2097 # Prefer an explicitly selected file to automatically selected ones.
2098 ac_site_file1=NONE
2099 ac_site_file2=NONE
2100 if test -n "$CONFIG_SITE"; then
2101 ac_site_file1=$CONFIG_SITE
2102 elif test "x$prefix" != xNONE; then
2103 ac_site_file1=$prefix/share/config.site
2104 ac_site_file2=$prefix/etc/config.site
2105 else
2106 ac_site_file1=$ac_default_prefix/share/config.site
2107 ac_site_file2=$ac_default_prefix/etc/config.site
2109 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2111 test "x$ac_site_file" = xNONE && continue
2112 if test -r "$ac_site_file"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2114 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2116 . "$ac_site_file"
2118 done
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special
2122 # files actually), so we avoid doing that.
2123 if test -f "$cache_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2126 case $cache_file in
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2129 esac
2131 else
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134 >$cache_file
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2146 set,)
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2150 ,set)
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,);;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 # differences in whitespace do not lead to failure.
2158 ac_old_val_w=`echo x $ac_old_val`
2159 ac_new_val_w=`echo x $ac_new_val`
2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163 ac_cache_corrupted=:
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167 eval $ac_var=\$ac_old_val
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2170 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2173 fi;;
2174 esac
2175 # Pass precious variables to config.status.
2176 if test "$ac_new_set" = set; then
2177 case $ac_new_val in
2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 *) ac_arg=$ac_var=$ac_new_val ;;
2180 esac
2181 case " $ac_configure_args " in
2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184 esac
2186 done
2187 if $ac_cache_corrupted; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2208 ac_config_headers="$ac_config_headers config.h"
2211 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2213 # You will slowly go insane if you do not grok the following fact: when
2214 # building this library, the top-level /target/ becomes the library's /host/.
2216 # configure then causes --target to default to --host, exactly like any
2217 # other package using autoconf. Therefore, 'target' and 'host' will
2218 # always be the same. This makes sense both for native and cross compilers
2219 # just think about it for a little while. :-)
2221 # Also, if this library is being configured as part of a cross compiler, the
2222 # top-level configure script will pass the "real" host as $with_cross_host.
2224 # Do not delete or change the following two lines. For why, see
2225 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2226 ac_aux_dir=
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228 for ac_t in install-sh install.sh shtool; do
2229 if test -f "$ac_dir/$ac_t"; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/$ac_t -c"
2232 break 2
2234 done
2235 done
2236 if test -z "$ac_aux_dir"; then
2237 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2240 # These three variables are undocumented and unsupported,
2241 # and are intended to be withdrawn in a future Autoconf release.
2242 # They can cause serious problems if a builder's source tree is in a directory
2243 # whose full name contains unusual characters.
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2246 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2249 # Make sure we can run config.sub.
2250 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2251 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2254 $as_echo_n "checking build system type... " >&6; }
2255 if test "${ac_cv_build+set}" = set; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 ac_build_alias=$build_alias
2259 test "x$ac_build_alias" = x &&
2260 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x &&
2262 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2263 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2264 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2268 $as_echo "$ac_cv_build" >&6; }
2269 case $ac_cv_build in
2270 *-*-*) ;;
2271 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2272 esac
2273 build=$ac_cv_build
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_build
2276 shift
2277 build_cpu=$1
2278 build_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 build_os=$*
2283 IFS=$ac_save_IFS
2284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2288 $as_echo_n "checking host system type... " >&6; }
2289 if test "${ac_cv_host+set}" = set; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 if test "x$host_alias" = x; then
2293 ac_cv_host=$ac_cv_build
2294 else
2295 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2301 $as_echo "$ac_cv_host" >&6; }
2302 case $ac_cv_host in
2303 *-*-*) ;;
2304 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2305 esac
2306 host=$ac_cv_host
2307 ac_save_IFS=$IFS; IFS='-'
2308 set x $ac_cv_host
2309 shift
2310 host_cpu=$1
2311 host_vendor=$2
2312 shift; shift
2313 # Remember, the first character of IFS is used to create $*,
2314 # except with old shells:
2315 host_os=$*
2316 IFS=$ac_save_IFS
2317 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2321 $as_echo_n "checking target system type... " >&6; }
2322 if test "${ac_cv_target+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test "x$target_alias" = x; then
2326 ac_cv_target=$ac_cv_host
2327 else
2328 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2329 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2334 $as_echo "$ac_cv_target" >&6; }
2335 case $ac_cv_target in
2336 *-*-*) ;;
2337 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2338 esac
2339 target=$ac_cv_target
2340 ac_save_IFS=$IFS; IFS='-'
2341 set x $ac_cv_target
2342 shift
2343 target_cpu=$1
2344 target_vendor=$2
2345 shift; shift
2346 # Remember, the first character of IFS is used to create $*,
2347 # except with old shells:
2348 target_os=$*
2349 IFS=$ac_save_IFS
2350 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2353 # The aliases save the names the user supplied, while $host etc.
2354 # will get canonicalized.
2355 test -n "$target_alias" &&
2356 test "$program_prefix$program_suffix$program_transform_name" = \
2357 NONENONEs,x,x, &&
2358 program_prefix=${target_alias}-
2360 case ${build_alias} in
2361 "") build_noncanonical=${build} ;;
2362 *) build_noncanonical=${build_alias} ;;
2363 esac
2365 case ${host_alias} in
2366 "") host_noncanonical=${build_noncanonical} ;;
2367 *) host_noncanonical=${host_alias} ;;
2368 esac
2370 case ${target_alias} in
2371 "") target_noncanonical=${host_noncanonical} ;;
2372 *) target_noncanonical=${target_alias} ;;
2373 esac
2378 # Default to --enable-multilib
2379 # Check whether --enable-multilib was given.
2380 if test "${enable_multilib+set}" = set; then :
2381 enableval=$enable_multilib; case "$enableval" in
2382 yes) multilib=yes ;;
2383 no) multilib=no ;;
2384 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2385 esac
2386 else
2387 multilib=yes
2391 # We may get other options which we leave undocumented:
2392 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2393 # See config-ml.in if you want the gory details.
2395 if test "$srcdir" = "."; then
2396 if test "$with_target_subdir" != "."; then
2397 multi_basedir="$srcdir/$with_multisrctop../.."
2398 else
2399 multi_basedir="$srcdir/$with_multisrctop.."
2401 else
2402 multi_basedir="$srcdir/.."
2406 # Even if the default multilib is not a cross compilation,
2407 # it may be that some of the other multilibs are.
2408 if test $cross_compiling = no && test $multilib = yes \
2409 && test "x${with_multisubdir}" != x ; then
2410 cross_compiling=maybe
2413 ac_config_commands="$ac_config_commands default-1"
2416 target_alias=${target_alias-$host_alias}
2419 am__api_version='1.11'
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2427 # AIX /bin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if test "${ac_cv_path_install+set}" = set; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448 ./ | .// | /[cC]/* | \
2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2451 /usr/ucb/* ) ;;
2453 # OSF1 and SCO ODT 3.0 have their own names for install.
2454 # Don't use installbsd from OSF since it installs stuff as root
2455 # by default.
2456 for ac_prog in ginstall scoinst install; do
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459 if test $ac_prog = install &&
2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2463 elif test $ac_prog = install &&
2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # program-specific install script used by HP pwplus--don't use.
2467 else
2468 rm -rf conftest.one conftest.two conftest.dir
2469 echo one > conftest.one
2470 echo two > conftest.two
2471 mkdir conftest.dir
2472 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473 test -s conftest.one && test -s conftest.two &&
2474 test -s conftest.dir/conftest.one &&
2475 test -s conftest.dir/conftest.two
2476 then
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478 break 3
2482 done
2483 done
2485 esac
2487 done
2488 IFS=$as_save_IFS
2490 rm -rf conftest.one conftest.two conftest.dir
2493 if test "${ac_cv_path_install+set}" = set; then
2494 INSTALL=$ac_cv_path_install
2495 else
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for INSTALL within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 INSTALL=$ac_install_sh
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2515 $as_echo_n "checking whether build environment is sane... " >&6; }
2516 # Just in case
2517 sleep 1
2518 echo timestamp > conftest.file
2519 # Reject unsafe characters in $srcdir or the absolute working directory
2520 # name. Accept space and tab only in the latter.
2521 am_lf='
2523 case `pwd` in
2524 *[\\\"\#\$\&\'\`$am_lf]*)
2525 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2526 esac
2527 case $srcdir in
2528 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2529 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2530 esac
2532 # Do `set' in a subshell so we don't clobber the current shell's
2533 # arguments. Must try -L first in case configure is actually a
2534 # symlink; some systems play weird games with the mod time of symlinks
2535 # (eg FreeBSD returns the mod time of the symlink's containing
2536 # directory).
2537 if (
2538 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2539 if test "$*" = "X"; then
2540 # -L didn't work.
2541 set X `ls -t "$srcdir/configure" conftest.file`
2543 rm -f conftest.file
2544 if test "$*" != "X $srcdir/configure conftest.file" \
2545 && test "$*" != "X conftest.file $srcdir/configure"; then
2547 # If neither matched, then we have a broken ls. This can happen
2548 # if, for instance, CONFIG_SHELL is bash and it inherits a
2549 # broken ls alias from the environment. This has actually
2550 # happened. Such a system could not be considered "sane".
2551 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2552 alias in your environment" "$LINENO" 5
2555 test "$2" = conftest.file
2557 then
2558 # Ok.
2560 else
2561 as_fn_error "newly created file is older than distributed files!
2562 Check your system clock" "$LINENO" 5
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 test "$program_prefix" != NONE &&
2567 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2576 # expand $ac_aux_dir to an absolute path
2577 am_aux_dir=`cd $ac_aux_dir && pwd`
2579 if test x"${MISSING+set}" != xset; then
2580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2584 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2585 esac
2587 # Use eval to expand $SHELL
2588 if eval "$MISSING --run true"; then
2589 am_missing_run="$MISSING --run "
2590 else
2591 am_missing_run=
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2593 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2596 if test x"${install_sh}" != xset; then
2597 case $am_aux_dir in
2598 *\ * | *\ *)
2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2601 install_sh="\${SHELL} $am_aux_dir/install-sh"
2602 esac
2605 # Installed binaries are usually stripped using `strip' when the user
2606 # run `make install-strip'. However `strip' might not be the right
2607 # tool to use in cross-compilation environments, therefore Automake
2608 # will honor the `STRIP' environment variable to overrule this program.
2609 if test "$cross_compiling" != no; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if test "${ac_cv_prog_STRIP+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$STRIP"; then
2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2632 done
2633 done
2634 IFS=$as_save_IFS
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 $as_echo "$STRIP" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2649 if test -z "$ac_cv_prog_STRIP"; then
2650 ac_ct_STRIP=$STRIP
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$ac_ct_STRIP"; then
2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_ac_ct_STRIP="strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2674 IFS=$as_save_IFS
2678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2679 if test -n "$ac_ct_STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2681 $as_echo "$ac_ct_STRIP" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2687 if test "x$ac_ct_STRIP" = x; then
2688 STRIP=":"
2689 else
2690 case $cross_compiling:$ac_tool_warned in
2691 yes:)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696 STRIP=$ac_ct_STRIP
2698 else
2699 STRIP="$ac_cv_prog_STRIP"
2703 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2706 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2707 if test -z "$MKDIR_P"; then
2708 if test "${ac_cv_path_mkdir+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_prog in mkdir gmkdir; do
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2720 'mkdir (GNU coreutils) '* | \
2721 'mkdir (coreutils) '* | \
2722 'mkdir (fileutils) '4.1*)
2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2724 break 3;;
2725 esac
2726 done
2727 done
2728 done
2729 IFS=$as_save_IFS
2733 if test "${ac_cv_path_mkdir+set}" = set; then
2734 MKDIR_P="$ac_cv_path_mkdir -p"
2735 else
2736 # As a last resort, use the slow shell script. Don't cache a
2737 # value for MKDIR_P within a source directory, because that will
2738 # break other packages using the cache if that directory is
2739 # removed, or if the value is a relative name.
2740 test -d ./--version && rmdir ./--version
2741 MKDIR_P="$ac_install_sh -d"
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2745 $as_echo "$MKDIR_P" >&6; }
2747 mkdir_p="$MKDIR_P"
2748 case $mkdir_p in
2749 [\\/$]* | ?:[\\/]*) ;;
2750 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2751 esac
2753 for ac_prog in gawk mawk nawk awk
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_AWK+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test -n "$AWK"; then
2763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_AWK="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2776 done
2777 done
2778 IFS=$as_save_IFS
2782 AWK=$ac_cv_prog_AWK
2783 if test -n "$AWK"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2792 test -n "$AWK" && break
2793 done
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797 set x ${MAKE-make}
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 cat >conftest.make <<\_ACEOF
2803 SHELL = /bin/sh
2804 all:
2805 @echo '@@@%%%=$(MAKE)=@@@%%%'
2806 _ACEOF
2807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809 *@@@%%%=?*=@@@%%%*)
2810 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 eval ac_cv_prog_make_${ac_make}_set=no;;
2813 esac
2814 rm -f conftest.make
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2819 SET_MAKE=
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 SET_MAKE="MAKE=${MAKE-make}"
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2829 am__leading_dot=.
2830 else
2831 am__leading_dot=_
2833 rmdir .tst 2>/dev/null
2835 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2837 # is not polluted with repeated "-I."
2838 am__isrc=' -I$(srcdir)'
2839 # test to see if srcdir already configured
2840 if test -f $srcdir/config.status; then
2841 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2845 # test whether we have cygpath
2846 if test -z "$CYGPATH_W"; then
2847 if (cygpath --version) >/dev/null 2>/dev/null; then
2848 CYGPATH_W='cygpath -w'
2849 else
2850 CYGPATH_W=echo
2855 # Define the identity of the package.
2856 PACKAGE='libquadmath'
2857 VERSION='0.1'
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE "$PACKAGE"
2862 _ACEOF
2865 cat >>confdefs.h <<_ACEOF
2866 #define VERSION "$VERSION"
2867 _ACEOF
2869 # Some tools Automake needs.
2871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885 # We need awk for the "check" target. The system "awk" is bad on
2886 # some platforms.
2887 # Always define AMTAR for backward compatibility. Yes, it's still used
2888 # in the wild :-( We should find a proper way to deprecate it ...
2889 AMTAR='$${TAR-tar}'
2891 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2899 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2900 # Check whether --enable-version-specific-runtime-libs was given.
2901 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2902 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2903 yes) version_specific_libs=yes ;;
2904 no) version_specific_libs=no ;;
2905 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2906 esac
2907 else
2908 version_specific_libs=no
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2912 $as_echo "$version_specific_libs" >&6; }
2916 DEPDIR="${am__leading_dot}deps"
2918 ac_config_commands="$ac_config_commands depfiles"
2921 am_make=${MAKE-make}
2922 cat > confinc << 'END'
2923 am__doit:
2924 @echo this is the am__doit target
2925 .PHONY: am__doit
2927 # If we don't find an include directive, just comment out the code.
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2929 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2930 am__include="#"
2931 am__quote=
2932 _am_result=none
2933 # First try GNU make style include.
2934 echo "include confinc" > confmf
2935 # Ignore all kinds of additional output from `make'.
2936 case `$am_make -s -f confmf 2> /dev/null` in #(
2937 *the\ am__doit\ target*)
2938 am__include=include
2939 am__quote=
2940 _am_result=GNU
2942 esac
2943 # Now try BSD make style include.
2944 if test "$am__include" = "#"; then
2945 echo '.include "confinc"' > confmf
2946 case `$am_make -s -f confmf 2> /dev/null` in #(
2947 *the\ am__doit\ target*)
2948 am__include=.include
2949 am__quote="\""
2950 _am_result=BSD
2952 esac
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2957 $as_echo "$_am_result" >&6; }
2958 rm -f confinc confmf
2960 # Check whether --enable-dependency-tracking was given.
2961 if test "${enable_dependency_tracking+set}" = set; then :
2962 enableval=$enable_dependency_tracking;
2965 if test "x$enable_dependency_tracking" != xno; then
2966 am_depcomp="$ac_aux_dir/depcomp"
2967 AMDEPBACKSLASH='\'
2968 am__nodep='_no'
2970 if test "x$enable_dependency_tracking" != xno; then
2971 AMDEP_TRUE=
2972 AMDEP_FALSE='#'
2973 else
2974 AMDEP_TRUE='#'
2975 AMDEP_FALSE=
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3006 done
3007 done
3008 IFS=$as_save_IFS
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3023 if test -z "$ac_cv_prog_CC"; then
3024 ac_ct_CC=$CC
3025 # Extract the first word of "gcc", so it can be a program name with args.
3026 set dummy gcc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_ac_ct_CC="gcc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 $as_echo "$ac_ct_CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 CC=$ac_ct_CC
3072 else
3073 CC="$ac_cv_prog_CC"
3076 if test -z "$CC"; then
3077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC="${ac_tool_prefix}cc"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3099 done
3100 done
3101 IFS=$as_save_IFS
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3117 if test -z "$CC"; then
3118 # Extract the first word of "cc", so it can be a program name with args.
3119 set dummy cc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_CC+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 ac_prog_rejected=no
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3137 ac_prog_rejected=yes
3138 continue
3140 ac_cv_prog_CC="cc"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3146 IFS=$as_save_IFS
3148 if test $ac_prog_rejected = yes; then
3149 # We found a bogon in the path, so make sure we never use it.
3150 set dummy $ac_cv_prog_CC
3151 shift
3152 if test $# != 0; then
3153 # We chose a different compiler from the bogus one.
3154 # However, it has the same basename, so the bogon will be chosen
3155 # first if we set CC to just the basename; use the full file name.
3156 shift
3157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3173 if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
3175 for ac_prog in cl.exe
3177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3214 test -n "$CC" && break
3215 done
3217 if test -z "$CC"; then
3218 ac_ct_CC=$CC
3219 for ac_prog in cl.exe
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_ac_ct_CC="$ac_prog"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3242 done
3243 done
3244 IFS=$as_save_IFS
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3258 test -n "$ac_ct_CC" && break
3259 done
3261 if test "x$ac_ct_CC" = x; then
3262 CC=""
3263 else
3264 case $cross_compiling:$ac_tool_warned in
3265 yes:)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268 ac_tool_warned=yes ;;
3269 esac
3270 CC=$ac_ct_CC
3277 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error "no acceptable C compiler found in \$PATH
3280 See \`config.log' for more details." "$LINENO" 5; }
3282 # Provide some information about the compiler.
3283 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3284 set X $ac_compile
3285 ac_compiler=$2
3286 for ac_option in --version -v -V -qversion; do
3287 { { ac_try="$ac_compiler $ac_option >&5"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3295 ac_status=$?
3296 if test -s conftest.err; then
3297 sed '10a\
3298 ... rest of stderr output deleted ...
3299 10q' conftest.err >conftest.er1
3300 cat conftest.er1 >&5
3301 rm -f conftest.er1 conftest.err
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }
3305 done
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3311 main ()
3315 return 0;
3317 _ACEOF
3318 # FIXME: Cleanup?
3319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3320 (eval $ac_link) 2>&5
3321 ac_status=$?
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 gcc_no_link=no
3325 else
3326 gcc_no_link=yes
3328 if test x$gcc_no_link = xyes; then
3329 # Setting cross_compile will disable run tests; it will
3330 # also disable AC_CHECK_FILE but that's generally
3331 # correct if we can't link.
3332 cross_compiling=yes
3333 EXEEXT=
3334 else
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 ac_clean_files_save=$ac_clean_files
3347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3348 # Try to create an executable without -o first, disregard a.out.
3349 # It will help us diagnose broken compilers, and finding out an intuition
3350 # of exeext.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3352 $as_echo_n "checking for C compiler default output file name... " >&6; }
3353 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3355 # The possible output files:
3356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3358 ac_rmfiles=
3359 for ac_file in $ac_files
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364 esac
3365 done
3366 rm -f $ac_rmfiles
3368 if { { ac_try="$ac_link_default"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link_default") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3382 # so that the user can short-circuit this test for compilers unknown to
3383 # Autoconf.
3384 for ac_file in $ac_files ''
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3390 [ab].out )
3391 # We found the default executable, but exeext='' is most
3392 # certainly right.
3393 break;;
3394 *.* )
3395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3396 then :; else
3397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 # We set ac_cv_exeext here because the later test for it is not
3400 # safe: cross compilers may not add the suffix if given an `-o'
3401 # argument, so we may need to know it at that point already.
3402 # Even if this section looks crufty: it has the advantage of
3403 # actually working.
3404 break;;
3406 break;;
3407 esac
3408 done
3409 test "$ac_cv_exeext" = no && ac_cv_exeext=
3411 else
3412 ac_file=''
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3415 $as_echo "$ac_file" >&6; }
3416 if test -z "$ac_file"; then :
3417 $as_echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 { as_fn_set_status 77
3423 as_fn_error "C compiler cannot create executables
3424 See \`config.log' for more details." "$LINENO" 5; }; }
3426 ac_exeext=$ac_cv_exeext
3428 # Check that the compiler produces executables we can run. If not, either
3429 # the compiler is broken, or we cross compile.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3431 $as_echo_n "checking whether the C compiler works... " >&6; }
3432 # If not cross compiling, check that we can run a simple program.
3433 if test "$cross_compiling" != yes; then
3434 if { ac_try='./$ac_file'
3435 { { case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_try") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; }; then
3445 cross_compiling=no
3446 else
3447 if test "$cross_compiling" = maybe; then
3448 cross_compiling=yes
3449 else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error "cannot run C compiled programs.
3453 If you meant to cross compile, use \`--host'.
3454 See \`config.log' for more details." "$LINENO" 5; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3462 ac_clean_files=$ac_clean_files_save
3463 # Check that the compiler produces executables we can run. If not, either
3464 # the compiler is broken, or we cross compile.
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3466 $as_echo_n "checking whether we are cross compiling... " >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468 $as_echo "$cross_compiling" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3471 $as_echo_n "checking for suffix of executables... " >&6; }
3472 if { { ac_try="$ac_link"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_link") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3484 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3485 # work properly (i.e., refer to `conftest.exe'), while it won't with
3486 # `rm'.
3487 for ac_file in conftest.exe conftest conftest.*; do
3488 test -f "$ac_file" || continue
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492 break;;
3493 * ) break;;
3494 esac
3495 done
3496 else
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error "cannot compute suffix of executables: cannot compile and link
3500 See \`config.log' for more details." "$LINENO" 5; }
3502 rm -f conftest$ac_cv_exeext
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3504 $as_echo "$ac_cv_exeext" >&6; }
3506 rm -f conftest.$ac_ext
3507 EXEEXT=$ac_cv_exeext
3508 ac_exeext=$EXEEXT
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3511 $as_echo_n "checking for suffix of object files... " >&6; }
3512 if test "${ac_cv_objext+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3519 main ()
3523 return 0;
3525 _ACEOF
3526 rm -f conftest.o conftest.obj
3527 if { { ac_try="$ac_compile"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_compile") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 for ac_file in conftest.o conftest.obj conftest.*; do
3539 test -f "$ac_file" || continue;
3540 case $ac_file in
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3542 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3543 break;;
3544 esac
3545 done
3546 else
3547 $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error "cannot compute suffix of object files: cannot compile
3553 See \`config.log' for more details." "$LINENO" 5; }
3555 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3558 $as_echo "$ac_cv_objext" >&6; }
3559 OBJEXT=$ac_cv_objext
3560 ac_objext=$OBJEXT
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3562 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3563 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3570 main ()
3572 #ifndef __GNUC__
3573 choke me
3574 #endif
3577 return 0;
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_compiler_gnu=yes
3582 else
3583 ac_compiler_gnu=no
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3591 if test $ac_compiler_gnu = yes; then
3592 GCC=yes
3593 else
3594 GCC=
3596 ac_test_CFLAGS=${CFLAGS+set}
3597 ac_save_CFLAGS=$CFLAGS
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3600 if test "${ac_cv_prog_cc_g+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 ac_save_c_werror_flag=$ac_c_werror_flag
3604 ac_c_werror_flag=yes
3605 ac_cv_prog_cc_g=no
3606 CFLAGS="-g"
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3611 main ()
3615 return 0;
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_g=yes
3620 else
3621 CFLAGS=""
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3626 main ()
3630 return 0;
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3635 else
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3637 CFLAGS="-g"
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3642 main ()
3646 return 0;
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650 ac_cv_prog_cc_g=yes
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3660 $as_echo "$ac_cv_prog_cc_g" >&6; }
3661 if test "$ac_test_CFLAGS" = set; then
3662 CFLAGS=$ac_save_CFLAGS
3663 elif test $ac_cv_prog_cc_g = yes; then
3664 if test "$GCC" = yes; then
3665 CFLAGS="-g -O2"
3666 else
3667 CFLAGS="-g"
3669 else
3670 if test "$GCC" = yes; then
3671 CFLAGS="-O2"
3672 else
3673 CFLAGS=
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3677 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 ac_cv_prog_cc_c89=no
3682 ac_save_CC=$CC
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <stdarg.h>
3686 #include <stdio.h>
3687 #include <sys/types.h>
3688 #include <sys/stat.h>
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693 char **p;
3694 int i;
3696 return p[i];
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3700 char *s;
3701 va_list v;
3702 va_start (v,p);
3703 s = g (p, va_arg (v,int));
3704 va_end (v);
3705 return s;
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3729 main ()
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733 return 0;
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_c89=$ac_arg
3743 rm -f core conftest.err conftest.$ac_objext
3744 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC
3750 # AC_CACHE_VAL
3751 case "x$ac_cv_prog_cc_c89" in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754 $as_echo "none needed" >&6; } ;;
3755 xno)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 $as_echo "unsupported" >&6; } ;;
3759 CC="$CC $ac_cv_prog_cc_c89"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 esac
3763 if test "x$ac_cv_prog_cc_c89" != xno; then :
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 depcc="$CC" am_compiler_list=
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781 # We make a subdir and do the tests there. Otherwise we can end up
3782 # making bogus files that we don't know about and never remove. For
3783 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3785 # in D'.
3786 rm -rf conftest.dir
3787 mkdir conftest.dir
3788 # Copy depcomp to subdir because otherwise we won't find it if we're
3789 # using a relative directory.
3790 cp "$am_depcomp" conftest.dir
3791 cd conftest.dir
3792 # We will build objects and dependencies in a subdirectory because
3793 # it helps to detect inapplicable dependency modes. For instance
3794 # both Tru64's cc and ICC support -MD to output dependencies as a
3795 # side effect of compilation, but ICC will put the dependencies in
3796 # the current directory while Tru64 will put them in the object
3797 # directory.
3798 mkdir sub
3800 am_cv_CC_dependencies_compiler_type=none
3801 if test "$am_compiler_list" = ""; then
3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 am__universal=false
3805 case " $depcc " in #(
3806 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807 esac
3809 for depmode in $am_compiler_list; do
3810 # Setup a source with many dependencies, because some compilers
3811 # like to wrap large dependency lists on column 80 (with \), and
3812 # we should not choose a depcomp mode which is confused by this.
3814 # We need to recreate these files for each test, as the compiler may
3815 # overwrite some of them when testing with obscure command lines.
3816 # This happens at least with the AIX C compiler.
3817 : > sub/conftest.c
3818 for i in 1 2 3 4 5 6; do
3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821 # Solaris 8's {/usr,}/bin/sh.
3822 touch sub/conftst$i.h
3823 done
3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827 # mode. It turns out that the SunPro C++ compiler does not properly
3828 # handle `-M -o', and we need to detect this. Also, some Intel
3829 # versions had trouble with output in subdirs
3830 am__obj=sub/conftest.${OBJEXT-o}
3831 am__minus_obj="-o $am__obj"
3832 case $depmode in
3833 gcc)
3834 # This depmode causes a compiler race in universal mode.
3835 test "$am__universal" = false || continue
3837 nosideeffect)
3838 # after this tag, mechanisms are not by side-effect, so they'll
3839 # only be used when explicitly requested
3840 if test "x$enable_dependency_tracking" = xyes; then
3841 continue
3842 else
3843 break
3846 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847 # This compiler won't grok `-c -o', but also, the minuso test has
3848 # not run yet. These depmodes are late enough in the game, and
3849 # so weak that their functioning should not be impacted.
3850 am__obj=conftest.${OBJEXT-o}
3851 am__minus_obj=
3853 none) break ;;
3854 esac
3855 if depmode=$depmode \
3856 source=sub/conftest.c object=$am__obj \
3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859 >/dev/null 2>conftest.err &&
3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3874 break
3877 done
3879 cd ..
3880 rm -rf conftest.dir
3881 else
3882 am_cv_CC_dependencies_compiler_type=none
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_TRUE=
3894 am__fastdepCC_FALSE='#'
3895 else
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3909 # On Suns, sometimes $CPP names a directory.
3910 if test -n "$CPP" && test -d "$CPP"; then
3911 CPP=
3913 if test -z "$CPP"; then
3914 if test "${ac_cv_prog_CPP+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 # Double quotes because CPP needs to be expanded
3918 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3920 ac_preproc_ok=false
3921 for ac_c_preproc_warn_flag in '' yes
3923 # Use a header file that comes with gcc, so configuring glibc
3924 # with a fresh cross-compiler works.
3925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3926 # <limits.h> exists even on freestanding compilers.
3927 # On the NeXT, cc -E runs the code through the compiler's parser,
3928 # not just through cpp. "Syntax error" is here to catch this case.
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #ifdef __STDC__
3932 # include <limits.h>
3933 #else
3934 # include <assert.h>
3935 #endif
3936 Syntax error
3937 _ACEOF
3938 if ac_fn_c_try_cpp "$LINENO"; then :
3940 else
3941 # Broken: fails on valid input.
3942 continue
3944 rm -f conftest.err conftest.$ac_ext
3946 # OK, works on sane cases. Now check whether nonexistent headers
3947 # can be detected and how.
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <ac_nonexistent.h>
3951 _ACEOF
3952 if ac_fn_c_try_cpp "$LINENO"; then :
3953 # Broken: success on invalid input.
3954 continue
3955 else
3956 # Passes both tests.
3957 ac_preproc_ok=:
3958 break
3960 rm -f conftest.err conftest.$ac_ext
3962 done
3963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964 rm -f conftest.err conftest.$ac_ext
3965 if $ac_preproc_ok; then :
3966 break
3969 done
3970 ac_cv_prog_CPP=$CPP
3973 CPP=$ac_cv_prog_CPP
3974 else
3975 ac_cv_prog_CPP=$CPP
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3978 $as_echo "$CPP" >&6; }
3979 ac_preproc_ok=false
3980 for ac_c_preproc_warn_flag in '' yes
3982 # Use a header file that comes with gcc, so configuring glibc
3983 # with a fresh cross-compiler works.
3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 # <limits.h> exists even on freestanding compilers.
3986 # On the NeXT, cc -E runs the code through the compiler's parser,
3987 # not just through cpp. "Syntax error" is here to catch this case.
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #ifdef __STDC__
3991 # include <limits.h>
3992 #else
3993 # include <assert.h>
3994 #endif
3995 Syntax error
3996 _ACEOF
3997 if ac_fn_c_try_cpp "$LINENO"; then :
3999 else
4000 # Broken: fails on valid input.
4001 continue
4003 rm -f conftest.err conftest.$ac_ext
4005 # OK, works on sane cases. Now check whether nonexistent headers
4006 # can be detected and how.
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 #include <ac_nonexistent.h>
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012 # Broken: success on invalid input.
4013 continue
4014 else
4015 # Passes both tests.
4016 ac_preproc_ok=:
4017 break
4019 rm -f conftest.err conftest.$ac_ext
4021 done
4022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4023 rm -f conftest.err conftest.$ac_ext
4024 if $ac_preproc_ok; then :
4026 else
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4030 See \`config.log' for more details." "$LINENO" 5; }
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4041 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4042 if test "${ac_cv_path_GREP+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -z "$GREP"; then
4046 ac_path_GREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in grep ggrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4057 # Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP
4059 case `"$ac_path_GREP" --version 2>&1` in
4060 *GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4063 ac_count=0
4064 $as_echo_n 0123456789 >"conftest.in"
4065 while :
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 $as_echo 'GREP' >> "conftest.nl"
4071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 as_fn_arith $ac_count + 1 && ac_count=$as_val
4074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_GREP="$ac_path_GREP"
4077 ac_path_GREP_max=$ac_count
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4081 done
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083 esac
4085 $ac_path_GREP_found && break 3
4086 done
4087 done
4088 done
4089 IFS=$as_save_IFS
4090 if test -z "$ac_cv_path_GREP"; then
4091 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4093 else
4094 ac_cv_path_GREP=$GREP
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4099 $as_echo "$ac_cv_path_GREP" >&6; }
4100 GREP="$ac_cv_path_GREP"
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4104 $as_echo_n "checking for egrep... " >&6; }
4105 if test "${ac_cv_path_EGREP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4109 then ac_cv_path_EGREP="$GREP -E"
4110 else
4111 if test -z "$EGREP"; then
4112 ac_path_EGREP_found=false
4113 # Loop through the user's path and test for each of PROGNAME-LIST
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_prog in egrep; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4123 # Check for GNU ac_path_EGREP and select it if it is found.
4124 # Check for GNU $ac_path_EGREP
4125 case `"$ac_path_EGREP" --version 2>&1` in
4126 *GNU*)
4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4129 ac_count=0
4130 $as_echo_n 0123456789 >"conftest.in"
4131 while :
4133 cat "conftest.in" "conftest.in" >"conftest.tmp"
4134 mv "conftest.tmp" "conftest.in"
4135 cp "conftest.in" "conftest.nl"
4136 $as_echo 'EGREP' >> "conftest.nl"
4137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4139 as_fn_arith $ac_count + 1 && ac_count=$as_val
4140 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4141 # Best one so far, save it but keep looking for a better one
4142 ac_cv_path_EGREP="$ac_path_EGREP"
4143 ac_path_EGREP_max=$ac_count
4145 # 10*(2^10) chars as input seems more than enough
4146 test $ac_count -gt 10 && break
4147 done
4148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4149 esac
4151 $ac_path_EGREP_found && break 3
4152 done
4153 done
4154 done
4155 IFS=$as_save_IFS
4156 if test -z "$ac_cv_path_EGREP"; then
4157 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4159 else
4160 ac_cv_path_EGREP=$EGREP
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4166 $as_echo "$ac_cv_path_EGREP" >&6; }
4167 EGREP="$ac_cv_path_EGREP"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4171 $as_echo_n "checking for ANSI C header files... " >&6; }
4172 if test "${ac_cv_header_stdc+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #include <stdlib.h>
4178 #include <stdarg.h>
4179 #include <string.h>
4180 #include <float.h>
4183 main ()
4187 return 0;
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_header_stdc=yes
4192 else
4193 ac_cv_header_stdc=no
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <string.h>
4203 _ACEOF
4204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "memchr" >/dev/null 2>&1; then :
4207 else
4208 ac_cv_header_stdc=no
4210 rm -f conftest*
4214 if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 #include <stdlib.h>
4220 _ACEOF
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then :
4224 else
4225 ac_cv_header_stdc=no
4227 rm -f conftest*
4231 if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then :
4235 else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <ctype.h>
4239 #include <stdlib.h>
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 #else
4244 # define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249 #endif
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253 main ()
4255 int i;
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4259 return 2;
4260 return 0;
4262 _ACEOF
4263 if ac_fn_c_try_run "$LINENO"; then :
4265 else
4266 ac_cv_header_stdc=no
4268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4269 conftest.$ac_objext conftest.beam conftest.$ac_ext
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4275 $as_echo "$ac_cv_header_stdc" >&6; }
4276 if test $ac_cv_header_stdc = yes; then
4278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284 inttypes.h stdint.h unistd.h
4285 do :
4286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4289 eval as_val=\$$as_ac_Header
4290 if test "x$as_val" = x""yes; then :
4291 cat >>confdefs.h <<_ACEOF
4292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293 _ACEOF
4297 done
4301 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4302 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4303 MINIX=yes
4304 else
4305 MINIX=
4309 if test "$MINIX" = yes; then
4311 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4314 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4317 $as_echo "#define _MINIX 1" >>confdefs.h
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4323 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4324 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4330 # define __EXTENSIONS__ 1
4331 $ac_includes_default
4333 main ()
4337 return 0;
4339 _ACEOF
4340 if ac_fn_c_try_compile "$LINENO"; then :
4341 ac_cv_safe_to_define___extensions__=yes
4342 else
4343 ac_cv_safe_to_define___extensions__=no
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4348 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4349 test $ac_cv_safe_to_define___extensions__ = yes &&
4350 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4352 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4354 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4356 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4358 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4362 # See if makeinfo has been installed and is modern enough
4363 # that we can use it.
4365 # Extract the first word of "makeinfo", so it can be a program name with args.
4366 set dummy makeinfo; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if test -n "$MAKEINFO"; then
4373 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_prog_MAKEINFO="makeinfo"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4386 done
4387 done
4388 IFS=$as_save_IFS
4392 MAKEINFO=$ac_cv_prog_MAKEINFO
4393 if test -n "$MAKEINFO"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4395 $as_echo "$MAKEINFO" >&6; }
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4402 if test -n "$MAKEINFO"; then
4403 # Found it, now check the version.
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4405 $as_echo_n "checking for modern makeinfo... " >&6; }
4406 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4410 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4412 case $ac_prog_version in
4413 '') gcc_cv_prog_makeinfo_modern=no;;
4414 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4415 *) gcc_cv_prog_makeinfo_modern=no;;
4416 esac
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4420 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4421 else
4422 gcc_cv_prog_makeinfo_modern=no
4424 if test $gcc_cv_prog_makeinfo_modern = no; then
4425 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4428 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4429 BUILD_INFO_TRUE=
4430 BUILD_INFO_FALSE='#'
4431 else
4432 BUILD_INFO_TRUE='#'
4433 BUILD_INFO_FALSE=
4439 # Check whether --with-bugurl was given.
4440 if test "${with_bugurl+set}" = set; then :
4441 withval=$with_bugurl; case "$withval" in
4442 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4443 no) BUGURL=
4445 *) BUGURL="$withval"
4447 esac
4448 else
4449 BUGURL="https://gcc.gnu.org/bugs/"
4453 case ${BUGURL} in
4455 REPORT_BUGS_TO=
4456 REPORT_BUGS_TEXI=
4459 REPORT_BUGS_TO="<$BUGURL>"
4460 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4462 esac;
4467 # Configure libtool
4468 case `pwd` in
4469 *\ * | *\ *)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4471 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4472 esac
4476 macro_version='2.2.7a'
4477 macro_revision='1.3134'
4491 ltmain="$ac_aux_dir/ltmain.sh"
4493 # Backslashify metacharacters that are still active within
4494 # double-quoted strings.
4495 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4497 # Same as above, but do not quote variable references.
4498 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4500 # Sed substitution to delay expansion of an escaped shell variable in a
4501 # double_quote_subst'ed string.
4502 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4504 # Sed substitution to delay expansion of an escaped single quote.
4505 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4507 # Sed substitution to avoid accidental globbing in evaled expressions
4508 no_glob_subst='s/\*/\\\*/g'
4510 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4511 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4512 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4515 $as_echo_n "checking how to print strings... " >&6; }
4516 # Test print first, because it will be a builtin if present.
4517 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4518 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4519 ECHO='print -r --'
4520 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4521 ECHO='printf %s\n'
4522 else
4523 # Use this function as a fallback that always works.
4524 func_fallback_echo ()
4526 eval 'cat <<_LTECHO_EOF
4528 _LTECHO_EOF'
4530 ECHO='func_fallback_echo'
4533 # func_echo_all arg...
4534 # Invoke $ECHO with all args, space-separated.
4535 func_echo_all ()
4537 $ECHO ""
4540 case "$ECHO" in
4541 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4542 $as_echo "printf" >&6; } ;;
4543 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4544 $as_echo "print -r" >&6; } ;;
4545 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4546 $as_echo "cat" >&6; } ;;
4547 esac
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4563 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4564 if test "${ac_cv_path_SED+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4568 for ac_i in 1 2 3 4 5 6 7; do
4569 ac_script="$ac_script$as_nl$ac_script"
4570 done
4571 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4572 { ac_script=; unset ac_script;}
4573 if test -z "$SED"; then
4574 ac_path_SED_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in sed gsed; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4585 # Check for GNU ac_path_SED and select it if it is found.
4586 # Check for GNU $ac_path_SED
4587 case `"$ac_path_SED" --version 2>&1` in
4588 *GNU*)
4589 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4591 ac_count=0
4592 $as_echo_n 0123456789 >"conftest.in"
4593 while :
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo '' >> "conftest.nl"
4599 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_SED_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_SED="$ac_path_SED"
4605 ac_path_SED_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4609 done
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4613 $ac_path_SED_found && break 3
4614 done
4615 done
4616 done
4617 IFS=$as_save_IFS
4618 if test -z "$ac_cv_path_SED"; then
4619 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4621 else
4622 ac_cv_path_SED=$SED
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4627 $as_echo "$ac_cv_path_SED" >&6; }
4628 SED="$ac_cv_path_SED"
4629 rm -f conftest.sed
4631 test -z "$SED" && SED=sed
4632 Xsed="$SED -e 1s/^X//"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4645 $as_echo_n "checking for fgrep... " >&6; }
4646 if test "${ac_cv_path_FGREP+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4650 then ac_cv_path_FGREP="$GREP -F"
4651 else
4652 if test -z "$FGREP"; then
4653 ac_path_FGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_prog in fgrep; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4663 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4664 # Check for GNU ac_path_FGREP and select it if it is found.
4665 # Check for GNU $ac_path_FGREP
4666 case `"$ac_path_FGREP" --version 2>&1` in
4667 *GNU*)
4668 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4670 ac_count=0
4671 $as_echo_n 0123456789 >"conftest.in"
4672 while :
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'FGREP' >> "conftest.nl"
4678 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_FGREP="$ac_path_FGREP"
4684 ac_path_FGREP_max=$ac_count
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
4688 done
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4690 esac
4692 $ac_path_FGREP_found && break 3
4693 done
4694 done
4695 done
4696 IFS=$as_save_IFS
4697 if test -z "$ac_cv_path_FGREP"; then
4698 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4700 else
4701 ac_cv_path_FGREP=$FGREP
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4707 $as_echo "$ac_cv_path_FGREP" >&6; }
4708 FGREP="$ac_cv_path_FGREP"
4711 test -z "$GREP" && GREP=grep
4731 # Check whether --with-gnu-ld was given.
4732 if test "${with_gnu_ld+set}" = set; then :
4733 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4734 else
4735 with_gnu_ld=no
4738 ac_prog=ld
4739 if test "$GCC" = yes; then
4740 # Check if gcc -print-prog-name=ld gives a path.
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4742 $as_echo_n "checking for ld used by $CC... " >&6; }
4743 case $host in
4744 *-*-mingw*)
4745 # gcc leaves a trailing carriage return which upsets mingw
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4749 esac
4750 case $ac_prog in
4751 # Accept absolute paths.
4752 [\\/]* | ?:[\\/]*)
4753 re_direlt='/[^/][^/]*/\.\./'
4754 # Canonicalize the pathname of ld
4755 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4756 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4757 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4758 done
4759 test -z "$LD" && LD="$ac_prog"
4762 # If it fails, then pretend we aren't using GCC.
4763 ac_prog=ld
4766 # If it is relative, then search for the first ld in PATH.
4767 with_gnu_ld=unknown
4769 esac
4770 elif test "$with_gnu_ld" = yes; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4772 $as_echo_n "checking for GNU ld... " >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4775 $as_echo_n "checking for non-GNU ld... " >&6; }
4777 if test "${lt_cv_path_LD+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -z "$LD"; then
4781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782 for ac_dir in $PATH; do
4783 IFS="$lt_save_ifs"
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4786 lt_cv_path_LD="$ac_dir/$ac_prog"
4787 # Check to see if the program is GNU ld. I'd rather use --version,
4788 # but apparently some variants of GNU ld only accept -v.
4789 # Break only if it was the GNU/non-GNU ld that we prefer.
4790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4791 *GNU* | *'with BFD'*)
4792 test "$with_gnu_ld" != no && break
4795 test "$with_gnu_ld" != yes && break
4797 esac
4799 done
4800 IFS="$lt_save_ifs"
4801 else
4802 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4806 LD="$lt_cv_path_LD"
4807 if test -n "$LD"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4809 $as_echo "$LD" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4814 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4817 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4821 case `$LD -v 2>&1 </dev/null` in
4822 *GNU* | *'with BFD'*)
4823 lt_cv_prog_gnu_ld=yes
4826 lt_cv_prog_gnu_ld=no
4828 esac
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4832 with_gnu_ld=$lt_cv_prog_gnu_ld
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844 if test "${lt_cv_path_NM+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$NM"; then
4848 # Let the user override the test.
4849 lt_cv_path_NM="$NM"
4850 else
4851 lt_nm_to_check="${ac_tool_prefix}nm"
4852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853 lt_nm_to_check="$lt_nm_to_check nm"
4855 for lt_tmp_nm in $lt_nm_to_check; do
4856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4858 IFS="$lt_save_ifs"
4859 test -z "$ac_dir" && ac_dir=.
4860 tmp_nm="$ac_dir/$lt_tmp_nm"
4861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862 # Check to see if the nm accepts a BSD-compat flag.
4863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864 # nm: unknown option "B" ignored
4865 # Tru64's nm complains that /dev/null is an invalid object file
4866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867 */dev/null* | *'Invalid file or object type'*)
4868 lt_cv_path_NM="$tmp_nm -B"
4869 break
4872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873 */dev/null*)
4874 lt_cv_path_NM="$tmp_nm -p"
4875 break
4878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879 continue # so that we can try to find one that supports BSD flags
4881 esac
4883 esac
4885 done
4886 IFS="$lt_save_ifs"
4887 done
4888 : ${lt_cv_path_NM=no}
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test "$lt_cv_path_NM" != "no"; then
4894 NM="$lt_cv_path_NM"
4895 else
4896 # Didn't find any BSD compatible name lister, look for dumpbin.
4897 if test -n "$DUMPBIN"; then :
4898 # Let the user override the test.
4899 else
4900 if test -n "$ac_tool_prefix"; then
4901 for ac_prog in dumpbin "link -dump"
4903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$DUMPBIN"; then
4911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 test -n "$DUMPBIN" && break
4941 done
4943 if test -z "$DUMPBIN"; then
4944 ac_ct_DUMPBIN=$DUMPBIN
4945 for ac_prog in dumpbin "link -dump"
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$ac_ct_DUMPBIN"; then
4955 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 test -n "$ac_ct_DUMPBIN" && break
4985 done
4987 if test "x$ac_ct_DUMPBIN" = x; then
4988 DUMPBIN=":"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 DUMPBIN=$ac_ct_DUMPBIN
5000 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5001 *COFF*)
5002 DUMPBIN="$DUMPBIN -symbols"
5005 DUMPBIN=:
5007 esac
5010 if test "$DUMPBIN" != ":"; then
5011 NM="$DUMPBIN"
5014 test -z "$NM" && NM=nm
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if test "${lt_cv_nm_interface+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 lt_cv_nm_interface="BSD nm"
5027 echo "int some_variable = 0;" > conftest.$ac_ext
5028 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029 (eval "$ac_compile" 2>conftest.err)
5030 cat conftest.err >&5
5031 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033 cat conftest.err >&5
5034 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035 cat conftest.out >&5
5036 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037 lt_cv_nm_interface="MS dumpbin"
5039 rm -f conftest*
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5046 LN_S=$as_ln_s
5047 if test "$LN_S" = "ln -s"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5062 teststring="ABCD"
5064 case $build_os in
5065 msdosdjgpp*)
5066 # On DJGPP, this test can blow up pretty badly due to problems in libc
5067 # (any single argument exceeding 2000 bytes causes a buffer overrun
5068 # during glob expansion). Even if it were fixed, the result of this
5069 # check would be larger than it should be.
5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5073 gnu*)
5074 # Under GNU Hurd, this test is not required because there is
5075 # no limit to the length of command line arguments.
5076 # Libtool will interpret -1 as no limit whatsoever
5077 lt_cv_sys_max_cmd_len=-1;
5080 cygwin* | mingw* | cegcc*)
5081 # On Win9x/ME, this test blows up -- it succeeds, but takes
5082 # about 5 minutes as the teststring grows exponentially.
5083 # Worse, since 9x/ME are not pre-emptively multitasking,
5084 # you end up with a "frozen" computer, even though with patience
5085 # the test eventually succeeds (with a max line length of 256k).
5086 # Instead, let's just punt: use the minimum linelength reported by
5087 # all of the supported platforms: 8192 (on NT/2K/XP).
5088 lt_cv_sys_max_cmd_len=8192;
5091 mint*)
5092 # On MiNT this can take a long time and run out of memory.
5093 lt_cv_sys_max_cmd_len=8192;
5096 amigaos*)
5097 # On AmigaOS with pdksh, this test takes hours, literally.
5098 # So we just punt and use a minimum line length of 8192.
5099 lt_cv_sys_max_cmd_len=8192;
5102 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103 # This has been around since 386BSD, at least. Likely further.
5104 if test -x /sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106 elif test -x /usr/sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108 else
5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5111 # And add a safety zone
5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5116 interix*)
5117 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118 lt_cv_sys_max_cmd_len=196608
5121 osf*)
5122 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124 # nice to cause kernel panics so lets avoid the loop below.
5125 # First set a reasonable default.
5126 lt_cv_sys_max_cmd_len=16384
5128 if test -x /sbin/sysconfig; then
5129 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5131 esac
5134 sco3.2v5*)
5135 lt_cv_sys_max_cmd_len=102400
5137 sysv5* | sco5v6* | sysv4.2uw2*)
5138 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139 if test -n "$kargmax"; then
5140 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5141 else
5142 lt_cv_sys_max_cmd_len=32768
5146 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147 if test -n "$lt_cv_sys_max_cmd_len"; then
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150 else
5151 # Make teststring a little bigger before we do anything with it.
5152 # a 1K string should be a reasonable start.
5153 for i in 1 2 3 4 5 6 7 8 ; do
5154 teststring=$teststring$teststring
5155 done
5156 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5157 # If test is not a shell built-in, we'll probably end up computing a
5158 # maximum length that is only half of the actual maximum length, but
5159 # we can't tell.
5160 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5161 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5162 test $i != 17 # 1/2 MB should be enough
5164 i=`expr $i + 1`
5165 teststring=$teststring$teststring
5166 done
5167 # Only check the string length outside the loop.
5168 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5169 teststring=
5170 # Add a significant safety factor because C++ compilers can tack on
5171 # massive amounts of additional arguments before passing them to the
5172 # linker. It appears as though 1/2 is a usable value.
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5176 esac
5180 if test -n $lt_cv_sys_max_cmd_len ; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5182 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5185 $as_echo "none" >&6; }
5187 max_cmd_len=$lt_cv_sys_max_cmd_len
5194 : ${CP="cp -f"}
5195 : ${MV="mv -f"}
5196 : ${RM="rm -f"}
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5199 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5200 # Try some XSI features
5201 xsi_shell=no
5202 ( _lt_dummy="a/b/c"
5203 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5204 = c,a/b,, \
5205 && eval 'test $(( 1 + 1 )) -eq 2 \
5206 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5207 && xsi_shell=yes
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5209 $as_echo "$xsi_shell" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5213 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5214 lt_shell_append=no
5215 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5216 >/dev/null 2>&1 \
5217 && lt_shell_append=yes
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5219 $as_echo "$lt_shell_append" >&6; }
5222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223 lt_unset=unset
5224 else
5225 lt_unset=false
5232 # test EBCDIC or ASCII
5233 case `echo X|tr X '\101'` in
5234 A) # ASCII based system
5235 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5236 lt_SP2NL='tr \040 \012'
5237 lt_NL2SP='tr \015\012 \040\040'
5239 *) # EBCDIC based system
5240 lt_SP2NL='tr \100 \n'
5241 lt_NL2SP='tr \r\n \100\100'
5243 esac
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5255 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 lt_cv_ld_reload_flag='-r'
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5262 reload_flag=$lt_cv_ld_reload_flag
5263 case $reload_flag in
5264 "" | " "*) ;;
5265 *) reload_flag=" $reload_flag" ;;
5266 esac
5267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268 case $host_os in
5269 darwin*)
5270 if test "$GCC" = yes; then
5271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5272 else
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276 esac
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$OBJDUMP"; then
5295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 OBJDUMP=$ac_cv_prog_OBJDUMP
5315 if test -n "$OBJDUMP"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5317 $as_echo "$OBJDUMP" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5325 if test -z "$ac_cv_prog_OBJDUMP"; then
5326 ac_ct_OBJDUMP=$OBJDUMP
5327 # Extract the first word of "objdump", so it can be a program name with args.
5328 set dummy objdump; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_OBJDUMP"; then
5335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5355 if test -n "$ac_ct_OBJDUMP"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5357 $as_echo "$ac_ct_OBJDUMP" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5363 if test "x$ac_ct_OBJDUMP" = x; then
5364 OBJDUMP="false"
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367 yes:)
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372 OBJDUMP=$ac_ct_OBJDUMP
5374 else
5375 OBJDUMP="$ac_cv_prog_OBJDUMP"
5378 test -z "$OBJDUMP" && OBJDUMP=objdump
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5389 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5390 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 lt_cv_file_magic_cmd='$MAGIC_CMD'
5394 lt_cv_file_magic_test_file=
5395 lt_cv_deplibs_check_method='unknown'
5396 # Need to set the preceding variable on all platforms that support
5397 # interlibrary dependencies.
5398 # 'none' -- dependencies not supported.
5399 # `unknown' -- same as none, but documents that we really don't know.
5400 # 'pass_all' -- all dependencies passed with no checks.
5401 # 'test_compile' -- check by making test program.
5402 # 'file_magic [[regex]]' -- check by looking for files in library path
5403 # which responds to the $file_magic_cmd with a given extended regex.
5404 # If you have `file' or equivalent on your system and you're not sure
5405 # whether `pass_all' will *always* work, you probably want this one.
5407 case $host_os in
5408 aix[4-9]*)
5409 lt_cv_deplibs_check_method=pass_all
5412 beos*)
5413 lt_cv_deplibs_check_method=pass_all
5416 bsdi[45]*)
5417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5418 lt_cv_file_magic_cmd='/usr/bin/file -L'
5419 lt_cv_file_magic_test_file=/shlib/libc.so
5422 cygwin*)
5423 # func_win32_libid is a shell function defined in ltmain.sh
5424 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5425 lt_cv_file_magic_cmd='func_win32_libid'
5428 mingw* | pw32*)
5429 # Base MSYS/MinGW do not provide the 'file' command needed by
5430 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5431 # unless we find 'file', for example because we are cross-compiling.
5432 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5433 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5435 lt_cv_file_magic_cmd='func_win32_libid'
5436 else
5437 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5438 lt_cv_file_magic_cmd='$OBJDUMP -f'
5442 cegcc*)
5443 # use the weaker test based on 'objdump'. See mingw*.
5444 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5445 lt_cv_file_magic_cmd='$OBJDUMP -f'
5448 darwin* | rhapsody*)
5449 lt_cv_deplibs_check_method=pass_all
5452 freebsd* | dragonfly*)
5453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5454 case $host_cpu in
5455 i*86 )
5456 # Not sure whether the presence of OpenBSD here was a mistake.
5457 # Let's accept both of them until this is cleared up.
5458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5459 lt_cv_file_magic_cmd=/usr/bin/file
5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5462 esac
5463 else
5464 lt_cv_deplibs_check_method=pass_all
5468 gnu*)
5469 lt_cv_deplibs_check_method=pass_all
5472 haiku*)
5473 lt_cv_deplibs_check_method=pass_all
5476 hpux10.20* | hpux11*)
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 case $host_cpu in
5479 ia64*)
5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5481 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5483 hppa*64*)
5484 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]'
5485 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5489 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5491 esac
5494 interix[3-9]*)
5495 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5499 irix5* | irix6* | nonstopux*)
5500 case $LD in
5501 *-32|*"-32 ") libmagic=32-bit;;
5502 *-n32|*"-n32 ") libmagic=N32;;
5503 *-64|*"-64 ") libmagic=64-bit;;
5504 *) libmagic=never-match;;
5505 esac
5506 lt_cv_deplibs_check_method=pass_all
5509 # This must be Linux ELF.
5510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5511 lt_cv_deplibs_check_method=pass_all
5514 netbsd*)
5515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5517 else
5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5522 newos6*)
5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5524 lt_cv_file_magic_cmd=/usr/bin/file
5525 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5528 *nto* | *qnx*)
5529 lt_cv_deplibs_check_method=pass_all
5532 openbsd*)
5533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5535 else
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5540 osf3* | osf4* | osf5*)
5541 lt_cv_deplibs_check_method=pass_all
5544 rdos*)
5545 lt_cv_deplibs_check_method=pass_all
5548 solaris*)
5549 lt_cv_deplibs_check_method=pass_all
5552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5553 lt_cv_deplibs_check_method=pass_all
5556 sysv4 | sysv4.3*)
5557 case $host_vendor in
5558 motorola)
5559 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]'
5560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5562 ncr)
5563 lt_cv_deplibs_check_method=pass_all
5565 sequent)
5566 lt_cv_file_magic_cmd='/bin/file'
5567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5569 sni)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5572 lt_cv_file_magic_test_file=/lib/libc.so
5574 siemens)
5575 lt_cv_deplibs_check_method=pass_all
5578 lt_cv_deplibs_check_method=pass_all
5580 esac
5583 tpf*)
5584 lt_cv_deplibs_check_method=pass_all
5586 esac
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5590 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5591 file_magic_cmd=$lt_cv_file_magic_cmd
5592 deplibs_check_method=$lt_cv_deplibs_check_method
5593 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}ar; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_AR+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$AR"; then
5615 ac_cv_prog_AR="$AR" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_AR="${ac_tool_prefix}ar"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5634 AR=$ac_cv_prog_AR
5635 if test -n "$AR"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5637 $as_echo "$AR" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5645 if test -z "$ac_cv_prog_AR"; then
5646 ac_ct_AR=$AR
5647 # Extract the first word of "ar", so it can be a program name with args.
5648 set dummy ar; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$ac_ct_AR"; then
5655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_AR="ar"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5675 if test -n "$ac_ct_AR"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5677 $as_echo "$ac_ct_AR" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5683 if test "x$ac_ct_AR" = x; then
5684 AR="false"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692 AR=$ac_ct_AR
5694 else
5695 AR="$ac_cv_prog_AR"
5698 test -z "$AR" && AR=ar
5699 test -z "$AR_FLAGS" && AR_FLAGS=cru
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}strip; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if test "${ac_cv_prog_STRIP+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$STRIP"; then
5720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5739 STRIP=$ac_cv_prog_STRIP
5740 if test -n "$STRIP"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742 $as_echo "$STRIP" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5750 if test -z "$ac_cv_prog_STRIP"; then
5751 ac_ct_STRIP=$STRIP
5752 # Extract the first word of "strip", so it can be a program name with args.
5753 set dummy strip; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$ac_ct_STRIP"; then
5760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_STRIP="strip"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780 if test -n "$ac_ct_STRIP"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782 $as_echo "$ac_ct_STRIP" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5788 if test "x$ac_ct_STRIP" = x; then
5789 STRIP=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797 STRIP=$ac_ct_STRIP
5799 else
5800 STRIP="$ac_cv_prog_STRIP"
5803 test -z "$STRIP" && STRIP=:
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5838 RANLIB=$ac_cv_prog_RANLIB
5839 if test -n "$RANLIB"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841 $as_echo "$RANLIB" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5849 if test -z "$ac_cv_prog_RANLIB"; then
5850 ac_ct_RANLIB=$RANLIB
5851 # Extract the first word of "ranlib", so it can be a program name with args.
5852 set dummy ranlib; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_RANLIB"; then
5859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_RANLIB="ranlib"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879 if test -n "$ac_ct_RANLIB"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881 $as_echo "$ac_ct_RANLIB" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 if test "x$ac_ct_RANLIB" = x; then
5888 RANLIB=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 RANLIB=$ac_ct_RANLIB
5898 else
5899 RANLIB="$ac_cv_prog_RANLIB"
5902 test -z "$RANLIB" && RANLIB=:
5909 # Determine commands to create old-style static archives.
5910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911 old_postinstall_cmds='chmod 644 $oldlib'
5912 old_postuninstall_cmds=
5914 if test -n "$RANLIB"; then
5915 case $host_os in
5916 openbsd*)
5917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5922 esac
5923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5926 case $host_os in
5927 darwin*)
5928 lock_old_archive_extraction=yes ;;
5930 lock_old_archive_extraction=no ;;
5931 esac
5971 # If no C compiler was specified, use CC.
5972 LTCC=${LTCC-"$CC"}
5974 # If no C compiler flags were specified, use CFLAGS.
5975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5977 # Allow CC to be a program name with arguments.
5978 compiler=$CC
5981 # Check for command to grab the raw symbol name followed by C symbol from nm.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5988 # These are sane defaults that work on at least a few old systems.
5989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5991 # Character class describing NM global symbol codes.
5992 symcode='[BCDEGRST]'
5994 # Regexp to match symbols that can be accessed directly from C.
5995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5997 # Define system-specific variables.
5998 case $host_os in
5999 aix*)
6000 symcode='[BCDT]'
6002 cygwin* | mingw* | pw32* | cegcc*)
6003 symcode='[ABCDGISTW]'
6005 hpux*)
6006 if test "$host_cpu" = ia64; then
6007 symcode='[ABCDEGRST]'
6010 irix* | nonstopux*)
6011 symcode='[BCDEGRST]'
6013 osf*)
6014 symcode='[BCDEGQRST]'
6016 solaris*)
6017 symcode='[BDRT]'
6019 sco3.2v5*)
6020 symcode='[DT]'
6022 sysv4.2uw2*)
6023 symcode='[DT]'
6025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026 symcode='[ABDT]'
6028 sysv4)
6029 symcode='[DFNSTU]'
6031 esac
6033 # If we're using GNU nm, then use its standard symbol codes.
6034 case `$NM -V 2>&1` in
6035 *GNU* | *'with BFD'*)
6036 symcode='[ABCDGIRSTW]' ;;
6037 esac
6039 # Transform an extracted symbol line into a proper C declaration.
6040 # Some systems (esp. on ia64) link data and code symbols differently,
6041 # so use this general approach.
6042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6044 # Transform an extracted symbol line into symbol name and symbol address
6045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6046 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'"
6048 # Handle CRLF in mingw tool chain
6049 opt_cr=
6050 case $build_os in
6051 mingw*)
6052 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6054 esac
6056 # Try without a prefix underscore, then with it.
6057 for ac_symprfx in "" "_"; do
6059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6060 symxfrm="\\1 $ac_symprfx\\2 \\2"
6062 # Write the raw and C identifiers.
6063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6064 # Fake it for dumpbin and say T for any non-static function
6065 # and D for any global variable.
6066 # Also find C++ and __fastcall symbols from MSVC++,
6067 # which start with @ or ?.
6068 lt_cv_sys_global_symbol_pipe="$AWK '"\
6069 " {last_section=section; section=\$ 3};"\
6070 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6071 " \$ 0!~/External *\|/{next};"\
6072 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6073 " {if(hide[section]) next};"\
6074 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6075 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6076 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6077 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6078 " ' prfx=^$ac_symprfx"
6079 else
6080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6083 # Check to see that the pipe works correctly.
6084 pipe_works=no
6086 rm -f conftest*
6087 cat > conftest.$ac_ext <<_LT_EOF
6088 #ifdef __cplusplus
6089 extern "C" {
6090 #endif
6091 char nm_test_var;
6092 void nm_test_func(void);
6093 void nm_test_func(void){}
6094 #ifdef __cplusplus
6096 #endif
6097 int main(){nm_test_var='a';nm_test_func();return(0);}
6098 _LT_EOF
6100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6101 (eval $ac_compile) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }; then
6105 # Now try to grab the symbols.
6106 nlist=conftest.nm
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6108 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; } && test -s "$nlist"; then
6112 # Try sorting and uniquifying the output.
6113 if sort "$nlist" | uniq > "$nlist"T; then
6114 mv -f "$nlist"T "$nlist"
6115 else
6116 rm -f "$nlist"T
6119 # Make sure that we snagged all the symbols we need.
6120 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6121 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6122 cat <<_LT_EOF > conftest.$ac_ext
6123 #ifdef __cplusplus
6124 extern "C" {
6125 #endif
6127 _LT_EOF
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6131 cat <<_LT_EOF >> conftest.$ac_ext
6133 /* The mapping between symbol names and symbols. */
6134 const struct {
6135 const char *name;
6136 void *address;
6138 lt__PROGRAM__LTX_preloaded_symbols[] =
6140 { "@PROGRAM@", (void *) 0 },
6141 _LT_EOF
6142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6143 cat <<\_LT_EOF >> conftest.$ac_ext
6144 {0, (void *) 0}
6147 /* This works around a problem in FreeBSD linker */
6148 #ifdef FREEBSD_WORKAROUND
6149 static const void *lt_preloaded_setup() {
6150 return lt__PROGRAM__LTX_preloaded_symbols;
6152 #endif
6154 #ifdef __cplusplus
6156 #endif
6157 _LT_EOF
6158 # Now try linking the two files.
6159 mv conftest.$ac_objext conftstm.$ac_objext
6160 lt_save_LIBS="$LIBS"
6161 lt_save_CFLAGS="$CFLAGS"
6162 LIBS="conftstm.$ac_objext"
6163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6169 pipe_works=yes
6171 LIBS="$lt_save_LIBS"
6172 CFLAGS="$lt_save_CFLAGS"
6173 else
6174 echo "cannot find nm_test_func in $nlist" >&5
6176 else
6177 echo "cannot find nm_test_var in $nlist" >&5
6179 else
6180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6182 else
6183 echo "$progname: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6186 rm -rf conftest* conftst*
6188 # Do not use the global_symbol_pipe unless it works.
6189 if test "$pipe_works" = yes; then
6190 break
6191 else
6192 lt_cv_sys_global_symbol_pipe=
6194 done
6198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199 lt_cv_sys_global_symbol_to_cdecl=
6201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6203 $as_echo "failed" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6206 $as_echo "ok" >&6; }
6230 # Check whether --enable-libtool-lock was given.
6231 if test "${enable_libtool_lock+set}" = set; then :
6232 enableval=$enable_libtool_lock;
6235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6237 # Some flags need to be propagated to the compiler or linker for good
6238 # libtool support.
6239 case $host in
6240 ia64-*-hpux*)
6241 # Find out which ABI we are using.
6242 echo 'int i;' > conftest.$ac_ext
6243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }; then
6248 case `/usr/bin/file conftest.$ac_objext` in
6249 *ELF-32*)
6250 HPUX_IA64_MODE="32"
6252 *ELF-64*)
6253 HPUX_IA64_MODE="64"
6255 esac
6257 rm -rf conftest*
6259 *-*-irix6*)
6260 # Find out which ABI we are using.
6261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6263 (eval $ac_compile) 2>&5
6264 ac_status=$?
6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266 test $ac_status = 0; }; then
6267 if test "$lt_cv_prog_gnu_ld" = yes; then
6268 case `/usr/bin/file conftest.$ac_objext` in
6269 *32-bit*)
6270 LD="${LD-ld} -melf32bsmip"
6272 *N32*)
6273 LD="${LD-ld} -melf32bmipn32"
6275 *64-bit*)
6276 LD="${LD-ld} -melf64bmip"
6278 esac
6279 else
6280 case `/usr/bin/file conftest.$ac_objext` in
6281 *32-bit*)
6282 LD="${LD-ld} -32"
6284 *N32*)
6285 LD="${LD-ld} -n32"
6287 *64-bit*)
6288 LD="${LD-ld} -64"
6290 esac
6293 rm -rf conftest*
6296 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6297 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6298 # Find out which ABI we are using.
6299 echo 'int i;' > conftest.$ac_ext
6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6301 (eval $ac_compile) 2>&5
6302 ac_status=$?
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; }; then
6305 case `/usr/bin/file conftest.o` in
6306 *32-bit*)
6307 case $host in
6308 x86_64-*kfreebsd*-gnu)
6309 LD="${LD-ld} -m elf_i386_fbsd"
6311 x86_64-*linux*)
6312 case `/usr/bin/file conftest.o` in
6313 *x86-64*)
6314 LD="${LD-ld} -m elf32_x86_64"
6317 LD="${LD-ld} -m elf_i386"
6319 esac
6321 powerpc64le-*linux*)
6322 LD="${LD-ld} -m elf32lppclinux"
6324 powerpc64-*linux*)
6325 LD="${LD-ld} -m elf32ppclinux"
6327 s390x-*linux*)
6328 LD="${LD-ld} -m elf_s390"
6330 sparc64-*linux*)
6331 LD="${LD-ld} -m elf32_sparc"
6333 esac
6335 *64-bit*)
6336 case $host in
6337 x86_64-*kfreebsd*-gnu)
6338 LD="${LD-ld} -m elf_x86_64_fbsd"
6340 x86_64-*linux*)
6341 LD="${LD-ld} -m elf_x86_64"
6343 powerpcle-*linux*)
6344 LD="${LD-ld} -m elf64lppc"
6346 powerpc-*linux*)
6347 LD="${LD-ld} -m elf64ppc"
6349 s390*-*linux*|s390*-*tpf*)
6350 LD="${LD-ld} -m elf64_s390"
6352 sparc*-*linux*)
6353 LD="${LD-ld} -m elf64_sparc"
6355 esac
6357 esac
6359 rm -rf conftest*
6362 *-*-sco3.2v5*)
6363 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6364 SAVE_CFLAGS="$CFLAGS"
6365 CFLAGS="$CFLAGS -belf"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6367 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6368 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377 if test x$gcc_no_link = xyes; then
6378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6384 main ()
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 lt_cv_cc_needs_belf=yes
6393 else
6394 lt_cv_cc_needs_belf=no
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 ac_ext=c
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6406 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6407 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6408 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6409 CFLAGS="$SAVE_CFLAGS"
6412 sparc*-*solaris*)
6413 # Find out which ABI we are using.
6414 echo 'int i;' > conftest.$ac_ext
6415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6416 (eval $ac_compile) 2>&5
6417 ac_status=$?
6418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; }; then
6420 case `/usr/bin/file conftest.o` in
6421 *64-bit*)
6422 case $lt_cv_prog_gnu_ld in
6423 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6425 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6426 LD="${LD-ld} -64"
6429 esac
6431 esac
6433 rm -rf conftest*
6435 esac
6437 need_locks="$enable_libtool_lock"
6440 case $host_os in
6441 rhapsody* | darwin*)
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$DSYMUTIL"; then
6451 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6470 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6471 if test -n "$DSYMUTIL"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6473 $as_echo "$DSYMUTIL" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6481 if test -z "$ac_cv_prog_DSYMUTIL"; then
6482 ac_ct_DSYMUTIL=$DSYMUTIL
6483 # Extract the first word of "dsymutil", so it can be a program name with args.
6484 set dummy dsymutil; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_DSYMUTIL"; then
6491 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6504 done
6505 done
6506 IFS=$as_save_IFS
6510 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6511 if test -n "$ac_ct_DSYMUTIL"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6513 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6519 if test "x$ac_ct_DSYMUTIL" = x; then
6520 DSYMUTIL=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 DSYMUTIL=$ac_ct_DSYMUTIL
6530 else
6531 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$NMEDIT"; then
6543 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6556 done
6557 done
6558 IFS=$as_save_IFS
6562 NMEDIT=$ac_cv_prog_NMEDIT
6563 if test -n "$NMEDIT"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6565 $as_echo "$NMEDIT" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6573 if test -z "$ac_cv_prog_NMEDIT"; then
6574 ac_ct_NMEDIT=$NMEDIT
6575 # Extract the first word of "nmedit", so it can be a program name with args.
6576 set dummy nmedit; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$ac_ct_NMEDIT"; then
6583 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6596 done
6597 done
6598 IFS=$as_save_IFS
6602 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6603 if test -n "$ac_ct_NMEDIT"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6605 $as_echo "$ac_ct_NMEDIT" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6611 if test "x$ac_ct_NMEDIT" = x; then
6612 NMEDIT=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 NMEDIT=$ac_ct_NMEDIT
6622 else
6623 NMEDIT="$ac_cv_prog_NMEDIT"
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_prog_LIPO+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$LIPO"; then
6635 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6648 done
6649 done
6650 IFS=$as_save_IFS
6654 LIPO=$ac_cv_prog_LIPO
6655 if test -n "$LIPO"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6657 $as_echo "$LIPO" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_LIPO"; then
6666 ac_ct_LIPO=$LIPO
6667 # Extract the first word of "lipo", so it can be a program name with args.
6668 set dummy lipo; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_LIPO"; then
6675 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_LIPO="lipo"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6694 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6695 if test -n "$ac_ct_LIPO"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6697 $as_echo "$ac_ct_LIPO" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_LIPO" = x; then
6704 LIPO=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 LIPO=$ac_ct_LIPO
6714 else
6715 LIPO="$ac_cv_prog_LIPO"
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}otool; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$OTOOL"; then
6727 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6740 done
6741 done
6742 IFS=$as_save_IFS
6746 OTOOL=$ac_cv_prog_OTOOL
6747 if test -n "$OTOOL"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6749 $as_echo "$OTOOL" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6757 if test -z "$ac_cv_prog_OTOOL"; then
6758 ac_ct_OTOOL=$OTOOL
6759 # Extract the first word of "otool", so it can be a program name with args.
6760 set dummy otool; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 if test -n "$ac_ct_OTOOL"; then
6767 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_OTOOL="otool"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6780 done
6781 done
6782 IFS=$as_save_IFS
6786 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6787 if test -n "$ac_ct_OTOOL"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6789 $as_echo "$ac_ct_OTOOL" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6795 if test "x$ac_ct_OTOOL" = x; then
6796 OTOOL=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6803 esac
6804 OTOOL=$ac_ct_OTOOL
6806 else
6807 OTOOL="$ac_cv_prog_OTOOL"
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$OTOOL64"; then
6819 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6832 done
6833 done
6834 IFS=$as_save_IFS
6838 OTOOL64=$ac_cv_prog_OTOOL64
6839 if test -n "$OTOOL64"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6841 $as_echo "$OTOOL64" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6849 if test -z "$ac_cv_prog_OTOOL64"; then
6850 ac_ct_OTOOL64=$OTOOL64
6851 # Extract the first word of "otool64", so it can be a program name with args.
6852 set dummy otool64; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$ac_ct_OTOOL64"; then
6859 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_ac_ct_OTOOL64="otool64"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6872 done
6873 done
6874 IFS=$as_save_IFS
6878 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6879 if test -n "$ac_ct_OTOOL64"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6881 $as_echo "$ac_ct_OTOOL64" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6887 if test "x$ac_ct_OTOOL64" = x; then
6888 OTOOL64=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 OTOOL64=$ac_ct_OTOOL64
6898 else
6899 OTOOL64="$ac_cv_prog_OTOOL64"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6929 $as_echo_n "checking for -single_module linker flag... " >&6; }
6930 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 lt_cv_apple_cc_single_mod=no
6934 if test -z "${LT_MULTI_MODULE}"; then
6935 # By default we will add the -single_module flag. You can override
6936 # by either setting the environment variable LT_MULTI_MODULE
6937 # non-empty at configure time, or by adding -multi_module to the
6938 # link flags.
6939 rm -rf libconftest.dylib*
6940 echo "int foo(void){return 1;}" > conftest.c
6941 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c" >&5
6943 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6944 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6945 _lt_result=$?
6946 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6947 lt_cv_apple_cc_single_mod=yes
6948 else
6949 cat conftest.err >&5
6951 rm -rf libconftest.dylib*
6952 rm -f conftest.*
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6956 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6958 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6959 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 lt_cv_ld_exported_symbols_list=no
6963 save_LDFLAGS=$LDFLAGS
6964 echo "_main" > conftest.sym
6965 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6966 if test x$gcc_no_link = xyes; then
6967 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6973 main ()
6977 return 0;
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981 lt_cv_ld_exported_symbols_list=yes
6982 else
6983 lt_cv_ld_exported_symbols_list=no
6985 rm -f core conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6987 LDFLAGS="$save_LDFLAGS"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6991 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6993 $as_echo_n "checking for -force_load linker flag... " >&6; }
6994 if test "${lt_cv_ld_force_load+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 lt_cv_ld_force_load=no
6998 cat > conftest.c << _LT_EOF
6999 int forced_loaded() { return 2;}
7000 _LT_EOF
7001 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7002 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7003 echo "$AR cru libconftest.a conftest.o" >&5
7004 $AR cru libconftest.a conftest.o 2>&5
7005 cat > conftest.c << _LT_EOF
7006 int main() { return 0;}
7007 _LT_EOF
7008 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7009 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7010 _lt_result=$?
7011 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7012 lt_cv_ld_force_load=yes
7013 else
7014 cat conftest.err >&5
7016 rm -f conftest.err libconftest.a conftest conftest.c
7017 rm -rf conftest.dSYM
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7021 $as_echo "$lt_cv_ld_force_load" >&6; }
7022 case $host_os in
7023 rhapsody* | darwin1.[012])
7024 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7025 darwin1.*)
7026 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7027 darwin*) # darwin 5.x on
7028 # if running on 10.5 or later, the deployment target defaults
7029 # to the OS version, if on x86, and 10.4, the deployment
7030 # target defaults to 10.4. Don't you love it?
7031 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7032 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 10.[012][,.]*)
7035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7036 10.*)
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7038 esac
7040 esac
7041 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7042 _lt_dar_single_mod='$single_module'
7044 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7045 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7046 else
7047 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7049 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7050 _lt_dsymutil='~$DSYMUTIL $lib || :'
7051 else
7052 _lt_dsymutil=
7055 esac
7057 for ac_header in dlfcn.h
7058 do :
7059 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7061 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7062 cat >>confdefs.h <<_ACEOF
7063 #define HAVE_DLFCN_H 1
7064 _ACEOF
7068 done
7074 # Set options
7078 enable_dlopen=no
7081 enable_win32_dll=no
7084 # Check whether --enable-shared was given.
7085 if test "${enable_shared+set}" = set; then :
7086 enableval=$enable_shared; p=${PACKAGE-default}
7087 case $enableval in
7088 yes) enable_shared=yes ;;
7089 no) enable_shared=no ;;
7091 enable_shared=no
7092 # Look at the argument we got. We use all the common list separators.
7093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7094 for pkg in $enableval; do
7095 IFS="$lt_save_ifs"
7096 if test "X$pkg" = "X$p"; then
7097 enable_shared=yes
7099 done
7100 IFS="$lt_save_ifs"
7102 esac
7103 else
7104 enable_shared=yes
7115 # Check whether --enable-static was given.
7116 if test "${enable_static+set}" = set; then :
7117 enableval=$enable_static; p=${PACKAGE-default}
7118 case $enableval in
7119 yes) enable_static=yes ;;
7120 no) enable_static=no ;;
7122 enable_static=no
7123 # Look at the argument we got. We use all the common list separators.
7124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7125 for pkg in $enableval; do
7126 IFS="$lt_save_ifs"
7127 if test "X$pkg" = "X$p"; then
7128 enable_static=yes
7130 done
7131 IFS="$lt_save_ifs"
7133 esac
7134 else
7135 enable_static=yes
7147 # Check whether --with-pic was given.
7148 if test "${with_pic+set}" = set; then :
7149 withval=$with_pic; pic_mode="$withval"
7150 else
7151 pic_mode=default
7155 test -z "$pic_mode" && pic_mode=default
7163 # Check whether --enable-fast-install was given.
7164 if test "${enable_fast_install+set}" = set; then :
7165 enableval=$enable_fast_install; p=${PACKAGE-default}
7166 case $enableval in
7167 yes) enable_fast_install=yes ;;
7168 no) enable_fast_install=no ;;
7170 enable_fast_install=no
7171 # Look at the argument we got. We use all the common list separators.
7172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7173 for pkg in $enableval; do
7174 IFS="$lt_save_ifs"
7175 if test "X$pkg" = "X$p"; then
7176 enable_fast_install=yes
7178 done
7179 IFS="$lt_save_ifs"
7181 esac
7182 else
7183 enable_fast_install=yes
7196 # This can be used to rebuild libtool when needed
7197 LIBTOOL_DEPS="$ltmain"
7199 # Always use our own libtool.
7200 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7227 test -z "$LN_S" && LN_S="ln -s"
7242 if test -n "${ZSH_VERSION+set}" ; then
7243 setopt NO_GLOB_SUBST
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7247 $as_echo_n "checking for objdir... " >&6; }
7248 if test "${lt_cv_objdir+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 rm -f .libs 2>/dev/null
7252 mkdir .libs 2>/dev/null
7253 if test -d .libs; then
7254 lt_cv_objdir=.libs
7255 else
7256 # MS-DOS does not allow filenames that begin with a dot.
7257 lt_cv_objdir=_libs
7259 rmdir .libs 2>/dev/null
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7262 $as_echo "$lt_cv_objdir" >&6; }
7263 objdir=$lt_cv_objdir
7269 cat >>confdefs.h <<_ACEOF
7270 #define LT_OBJDIR "$lt_cv_objdir/"
7271 _ACEOF
7276 case $host_os in
7277 aix3*)
7278 # AIX sometimes has problems with the GCC collect2 program. For some
7279 # reason, if we set the COLLECT_NAMES environment variable, the problems
7280 # vanish in a puff of smoke.
7281 if test "X${COLLECT_NAMES+set}" != Xset; then
7282 COLLECT_NAMES=
7283 export COLLECT_NAMES
7286 esac
7288 # Global variables:
7289 ofile=libtool
7290 can_build_shared=yes
7292 # All known linkers require a `.a' archive for static linking (except MSVC,
7293 # which needs '.lib').
7294 libext=a
7296 with_gnu_ld="$lt_cv_prog_gnu_ld"
7298 old_CC="$CC"
7299 old_CFLAGS="$CFLAGS"
7301 # Set sane defaults for various variables
7302 test -z "$CC" && CC=cc
7303 test -z "$LTCC" && LTCC=$CC
7304 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7305 test -z "$LD" && LD=ld
7306 test -z "$ac_objext" && ac_objext=o
7308 for cc_temp in $compiler""; do
7309 case $cc_temp in
7310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7312 \-*) ;;
7313 *) break;;
7314 esac
7315 done
7316 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7319 # Only perform the check for file, if the check method requires it
7320 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7321 case $deplibs_check_method in
7322 file_magic*)
7323 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7325 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7326 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 case $MAGIC_CMD in
7330 [\\/*] | ?:[\\/]*)
7331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334 lt_save_MAGIC_CMD="$MAGIC_CMD"
7335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7336 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7337 for ac_dir in $ac_dummy; do
7338 IFS="$lt_save_ifs"
7339 test -z "$ac_dir" && ac_dir=.
7340 if test -f $ac_dir/${ac_tool_prefix}file; then
7341 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7342 if test -n "$file_magic_test_file"; then
7343 case $deplibs_check_method in
7344 "file_magic "*)
7345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7348 $EGREP "$file_magic_regex" > /dev/null; then
7350 else
7351 cat <<_LT_EOF 1>&2
7353 *** Warning: the command libtool uses to detect shared libraries,
7354 *** $file_magic_cmd, produces output that libtool cannot recognize.
7355 *** The result is that libtool may fail to recognize shared libraries
7356 *** as such. This will affect the creation of libtool libraries that
7357 *** depend on shared libraries, but programs linked with such libtool
7358 *** libraries will work regardless of this problem. Nevertheless, you
7359 *** may want to report the problem to your system manager and/or to
7360 *** bug-libtool@gnu.org
7362 _LT_EOF
7363 fi ;;
7364 esac
7366 break
7368 done
7369 IFS="$lt_save_ifs"
7370 MAGIC_CMD="$lt_save_MAGIC_CMD"
7372 esac
7375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7376 if test -n "$MAGIC_CMD"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7378 $as_echo "$MAGIC_CMD" >&6; }
7379 else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7388 if test -z "$lt_cv_path_MAGIC_CMD"; then
7389 if test -n "$ac_tool_prefix"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7391 $as_echo_n "checking for file... " >&6; }
7392 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 case $MAGIC_CMD in
7396 [\\/*] | ?:[\\/]*)
7397 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7400 lt_save_MAGIC_CMD="$MAGIC_CMD"
7401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7402 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7403 for ac_dir in $ac_dummy; do
7404 IFS="$lt_save_ifs"
7405 test -z "$ac_dir" && ac_dir=.
7406 if test -f $ac_dir/file; then
7407 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7408 if test -n "$file_magic_test_file"; then
7409 case $deplibs_check_method in
7410 "file_magic "*)
7411 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7413 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7414 $EGREP "$file_magic_regex" > /dev/null; then
7416 else
7417 cat <<_LT_EOF 1>&2
7419 *** Warning: the command libtool uses to detect shared libraries,
7420 *** $file_magic_cmd, produces output that libtool cannot recognize.
7421 *** The result is that libtool may fail to recognize shared libraries
7422 *** as such. This will affect the creation of libtool libraries that
7423 *** depend on shared libraries, but programs linked with such libtool
7424 *** libraries will work regardless of this problem. Nevertheless, you
7425 *** may want to report the problem to your system manager and/or to
7426 *** bug-libtool@gnu.org
7428 _LT_EOF
7429 fi ;;
7430 esac
7432 break
7434 done
7435 IFS="$lt_save_ifs"
7436 MAGIC_CMD="$lt_save_MAGIC_CMD"
7438 esac
7441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7442 if test -n "$MAGIC_CMD"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7444 $as_echo "$MAGIC_CMD" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7451 else
7452 MAGIC_CMD=:
7458 esac
7460 # Use C for the default configuration in the libtool script
7462 lt_save_CC="$CC"
7463 ac_ext=c
7464 ac_cpp='$CPP $CPPFLAGS'
7465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470 # Source file extension for C test sources.
7471 ac_ext=c
7473 # Object file extension for compiled C test sources.
7474 objext=o
7475 objext=$objext
7477 # Code to be used in simple compile tests
7478 lt_simple_compile_test_code="int some_variable = 0;"
7480 # Code to be used in simple link tests
7481 lt_simple_link_test_code='int main(){return(0);}'
7489 # If no C compiler was specified, use CC.
7490 LTCC=${LTCC-"$CC"}
7492 # If no C compiler flags were specified, use CFLAGS.
7493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7495 # Allow CC to be a program name with arguments.
7496 compiler=$CC
7498 # Save the default compiler, since it gets overwritten when the other
7499 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7500 compiler_DEFAULT=$CC
7502 # save warnings/boilerplate of simple test code
7503 ac_outfile=conftest.$ac_objext
7504 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7505 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7506 _lt_compiler_boilerplate=`cat conftest.err`
7507 $RM conftest*
7509 ac_outfile=conftest.$ac_objext
7510 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7511 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7512 _lt_linker_boilerplate=`cat conftest.err`
7513 $RM -r conftest*
7516 ## CAVEAT EMPTOR:
7517 ## There is no encapsulation within the following macros, do not change
7518 ## the running order or otherwise move them around unless you know exactly
7519 ## what you are doing...
7520 if test -n "$compiler"; then
7522 lt_prog_compiler_no_builtin_flag=
7524 if test "$GCC" = yes; then
7525 case $cc_basename in
7526 nvcc*)
7527 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7529 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7530 esac
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7533 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7534 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 lt_cv_prog_compiler_rtti_exceptions=no
7538 ac_outfile=conftest.$ac_objext
7539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7540 lt_compiler_flag="-fno-rtti -fno-exceptions"
7541 # Insert the option either (1) after the last *FLAGS variable, or
7542 # (2) before a word containing "conftest.", or (3) at the end.
7543 # Note that $ac_compile itself does not contain backslashes and begins
7544 # with a dollar sign (not a hyphen), so the echo should work correctly.
7545 # The option is referenced via a variable to avoid confusing sed.
7546 lt_compile=`echo "$ac_compile" | $SED \
7547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7549 -e 's:$: $lt_compiler_flag:'`
7550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7551 (eval "$lt_compile" 2>conftest.err)
7552 ac_status=$?
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 if (exit $ac_status) && test -s "$ac_outfile"; then
7556 # The compiler can only warn and ignore the option if not recognized
7557 # So say no if there are warnings other than the usual output.
7558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7561 lt_cv_prog_compiler_rtti_exceptions=yes
7564 $RM conftest*
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7568 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7570 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7571 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7572 else
7583 lt_prog_compiler_wl=
7584 lt_prog_compiler_pic=
7585 lt_prog_compiler_static=
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7588 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7590 if test "$GCC" = yes; then
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_static='-static'
7594 case $host_os in
7595 aix*)
7596 # All AIX code is PIC.
7597 if test "$host_cpu" = ia64; then
7598 # AIX 5 now supports IA64 processor
7599 lt_prog_compiler_static='-Bstatic'
7601 lt_prog_compiler_pic='-fPIC'
7604 amigaos*)
7605 case $host_cpu in
7606 powerpc)
7607 # see comment about AmigaOS4 .so support
7608 lt_prog_compiler_pic='-fPIC'
7610 m68k)
7611 # FIXME: we need at least 68020 code to build shared libraries, but
7612 # adding the `-m68020' flag to GCC prevents building anything better,
7613 # like `-m68040'.
7614 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7616 esac
7619 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7620 # PIC is the default for these OSes.
7623 mingw* | cygwin* | pw32* | os2* | cegcc*)
7624 # This hack is so that the source file can tell whether it is being
7625 # built for inclusion in a dll (and should export symbols for example).
7626 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7627 # (--disable-auto-import) libraries
7628 lt_prog_compiler_pic='-DDLL_EXPORT'
7631 darwin* | rhapsody*)
7632 # PIC is the default on this platform
7633 # Common symbols not allowed in MH_DYLIB files
7634 lt_prog_compiler_pic='-fno-common'
7637 haiku*)
7638 # PIC is the default for Haiku.
7639 # The "-static" flag exists, but is broken.
7640 lt_prog_compiler_static=
7643 hpux*)
7644 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7645 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7646 # sets the default TLS model and affects inlining.
7647 case $host_cpu in
7648 hppa*64*)
7649 # +Z the default
7652 lt_prog_compiler_pic='-fPIC'
7654 esac
7657 interix[3-9]*)
7658 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7659 # Instead, we relocate shared libraries at runtime.
7662 msdosdjgpp*)
7663 # Just because we use GCC doesn't mean we suddenly get shared libraries
7664 # on systems that don't support them.
7665 lt_prog_compiler_can_build_shared=no
7666 enable_shared=no
7669 *nto* | *qnx*)
7670 # QNX uses GNU C++, but need to define -shared option too, otherwise
7671 # it will coredump.
7672 lt_prog_compiler_pic='-fPIC -shared'
7675 sysv4*MP*)
7676 if test -d /usr/nec; then
7677 lt_prog_compiler_pic=-Kconform_pic
7682 lt_prog_compiler_pic='-fPIC'
7684 esac
7686 case $cc_basename in
7687 nvcc*) # Cuda Compiler Driver 2.2
7688 lt_prog_compiler_wl='-Xlinker '
7689 lt_prog_compiler_pic='-Xcompiler -fPIC'
7691 esac
7692 else
7693 # PORTME Check for flag to pass linker flags through the system compiler.
7694 case $host_os in
7695 aix*)
7696 lt_prog_compiler_wl='-Wl,'
7697 if test "$host_cpu" = ia64; then
7698 # AIX 5 now supports IA64 processor
7699 lt_prog_compiler_static='-Bstatic'
7700 else
7701 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7705 mingw* | cygwin* | pw32* | os2* | cegcc*)
7706 # This hack is so that the source file can tell whether it is being
7707 # built for inclusion in a dll (and should export symbols for example).
7708 lt_prog_compiler_pic='-DDLL_EXPORT'
7711 hpux9* | hpux10* | hpux11*)
7712 lt_prog_compiler_wl='-Wl,'
7713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7714 # not for PA HP-UX.
7715 case $host_cpu in
7716 hppa*64*|ia64*)
7717 # +Z the default
7720 lt_prog_compiler_pic='+Z'
7722 esac
7723 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7724 lt_prog_compiler_static='${wl}-a ${wl}archive'
7727 irix5* | irix6* | nonstopux*)
7728 lt_prog_compiler_wl='-Wl,'
7729 # PIC (with -KPIC) is the default.
7730 lt_prog_compiler_static='-non_shared'
7733 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7734 case $cc_basename in
7735 # old Intel for x86_64 which still supported -KPIC.
7736 ecc*)
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-static'
7741 # icc used to be incompatible with GCC.
7742 # ICC 10 doesn't accept -KPIC any more.
7743 icc* | ifort*)
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_pic='-fPIC'
7746 lt_prog_compiler_static='-static'
7748 # Lahey Fortran 8.1.
7749 lf95*)
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='--shared'
7752 lt_prog_compiler_static='--static'
7754 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7755 # Portland Group compilers (*not* the Pentium gcc compiler,
7756 # which looks to be a dead project)
7757 lt_prog_compiler_wl='-Wl,'
7758 lt_prog_compiler_pic='-fpic'
7759 lt_prog_compiler_static='-Bstatic'
7761 ccc*)
7762 lt_prog_compiler_wl='-Wl,'
7763 # All Alpha code is PIC.
7764 lt_prog_compiler_static='-non_shared'
7766 xl* | bgxl* | bgf* | mpixl*)
7767 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-qpic'
7770 lt_prog_compiler_static='-qstaticlink'
7773 case `$CC -V 2>&1 | sed 5q` in
7774 *Sun\ F* | *Sun*Fortran*)
7775 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_wl=''
7780 *Sun\ C*)
7781 # Sun C 5.9
7782 lt_prog_compiler_pic='-KPIC'
7783 lt_prog_compiler_static='-Bstatic'
7784 lt_prog_compiler_wl='-Wl,'
7786 esac
7788 esac
7791 newsos6)
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-Bstatic'
7796 *nto* | *qnx*)
7797 # QNX uses GNU C++, but need to define -shared option too, otherwise
7798 # it will coredump.
7799 lt_prog_compiler_pic='-fPIC -shared'
7802 osf3* | osf4* | osf5*)
7803 lt_prog_compiler_wl='-Wl,'
7804 # All OSF/1 code is PIC.
7805 lt_prog_compiler_static='-non_shared'
7808 rdos*)
7809 lt_prog_compiler_static='-non_shared'
7812 solaris*)
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7815 case $cc_basename in
7816 f77* | f90* | f95*)
7817 lt_prog_compiler_wl='-Qoption ld ';;
7819 lt_prog_compiler_wl='-Wl,';;
7820 esac
7823 sunos4*)
7824 lt_prog_compiler_wl='-Qoption ld '
7825 lt_prog_compiler_pic='-PIC'
7826 lt_prog_compiler_static='-Bstatic'
7829 sysv4 | sysv4.2uw2* | sysv4.3*)
7830 lt_prog_compiler_wl='-Wl,'
7831 lt_prog_compiler_pic='-KPIC'
7832 lt_prog_compiler_static='-Bstatic'
7835 sysv4*MP*)
7836 if test -d /usr/nec ;then
7837 lt_prog_compiler_pic='-Kconform_pic'
7838 lt_prog_compiler_static='-Bstatic'
7842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7843 lt_prog_compiler_wl='-Wl,'
7844 lt_prog_compiler_pic='-KPIC'
7845 lt_prog_compiler_static='-Bstatic'
7848 unicos*)
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_can_build_shared=no
7853 uts4*)
7854 lt_prog_compiler_pic='-pic'
7855 lt_prog_compiler_static='-Bstatic'
7859 lt_prog_compiler_can_build_shared=no
7861 esac
7864 case $host_os in
7865 # For platforms which do not support PIC, -DPIC is meaningless:
7866 *djgpp*)
7867 lt_prog_compiler_pic=
7870 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7872 esac
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7874 $as_echo "$lt_prog_compiler_pic" >&6; }
7882 # Check to make sure the PIC flag actually works.
7884 if test -n "$lt_prog_compiler_pic"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7886 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7887 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 lt_cv_prog_compiler_pic_works=no
7891 ac_outfile=conftest.$ac_objext
7892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7893 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7894 # Insert the option either (1) after the last *FLAGS variable, or
7895 # (2) before a word containing "conftest.", or (3) at the end.
7896 # Note that $ac_compile itself does not contain backslashes and begins
7897 # with a dollar sign (not a hyphen), so the echo should work correctly.
7898 # The option is referenced via a variable to avoid confusing sed.
7899 lt_compile=`echo "$ac_compile" | $SED \
7900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7902 -e 's:$: $lt_compiler_flag:'`
7903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7904 (eval "$lt_compile" 2>conftest.err)
7905 ac_status=$?
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 if (exit $ac_status) && test -s "$ac_outfile"; then
7909 # The compiler can only warn and ignore the option if not recognized
7910 # So say no if there are warnings other than the usual output.
7911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_pic_works=yes
7917 $RM conftest*
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7921 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7923 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7924 case $lt_prog_compiler_pic in
7925 "" | " "*) ;;
7926 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7927 esac
7928 else
7929 lt_prog_compiler_pic=
7930 lt_prog_compiler_can_build_shared=no
7941 # Check to make sure the static flag actually works.
7943 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7945 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7946 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 lt_cv_prog_compiler_static_works=no
7950 save_LDFLAGS="$LDFLAGS"
7951 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7954 # The linker can only warn and ignore the option if not recognized
7955 # So say no if there are warnings
7956 if test -s conftest.err; then
7957 # Append any errors to the config.log.
7958 cat conftest.err 1>&5
7959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7961 if diff conftest.exp conftest.er2 >/dev/null; then
7962 lt_cv_prog_compiler_static_works=yes
7964 else
7965 lt_cv_prog_compiler_static_works=yes
7968 $RM -r conftest*
7969 LDFLAGS="$save_LDFLAGS"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7973 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7975 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7977 else
7978 lt_prog_compiler_static=
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7988 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7989 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 lt_cv_prog_compiler_c_o=no
7993 $RM -r conftest 2>/dev/null
7994 mkdir conftest
7995 cd conftest
7996 mkdir out
7997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7999 lt_compiler_flag="-o out/conftest2.$ac_objext"
8000 # Insert the option either (1) after the last *FLAGS variable, or
8001 # (2) before a word containing "conftest.", or (3) at the end.
8002 # Note that $ac_compile itself does not contain backslashes and begins
8003 # with a dollar sign (not a hyphen), so the echo should work correctly.
8004 lt_compile=`echo "$ac_compile" | $SED \
8005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007 -e 's:$: $lt_compiler_flag:'`
8008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8009 (eval "$lt_compile" 2>out/conftest.err)
8010 ac_status=$?
8011 cat out/conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8014 then
8015 # The compiler can only warn and ignore the option if not recognized
8016 # So say no if there are warnings
8017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8020 lt_cv_prog_compiler_c_o=yes
8023 chmod u+w . 2>&5
8024 $RM conftest*
8025 # SGI C++ compiler will create directory out/ii_files/ for
8026 # template instantiation
8027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8028 $RM out/* && rmdir out
8029 cd ..
8030 $RM -r conftest
8031 $RM conftest*
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8035 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8043 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8044 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 lt_cv_prog_compiler_c_o=no
8048 $RM -r conftest 2>/dev/null
8049 mkdir conftest
8050 cd conftest
8051 mkdir out
8052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8054 lt_compiler_flag="-o out/conftest2.$ac_objext"
8055 # Insert the option either (1) after the last *FLAGS variable, or
8056 # (2) before a word containing "conftest.", or (3) at the end.
8057 # Note that $ac_compile itself does not contain backslashes and begins
8058 # with a dollar sign (not a hyphen), so the echo should work correctly.
8059 lt_compile=`echo "$ac_compile" | $SED \
8060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8062 -e 's:$: $lt_compiler_flag:'`
8063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8064 (eval "$lt_compile" 2>out/conftest.err)
8065 ac_status=$?
8066 cat out/conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8069 then
8070 # The compiler can only warn and ignore the option if not recognized
8071 # So say no if there are warnings
8072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8075 lt_cv_prog_compiler_c_o=yes
8078 chmod u+w . 2>&5
8079 $RM conftest*
8080 # SGI C++ compiler will create directory out/ii_files/ for
8081 # template instantiation
8082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8083 $RM out/* && rmdir out
8084 cd ..
8085 $RM -r conftest
8086 $RM conftest*
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8090 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8095 hard_links="nottested"
8096 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8097 # do not overwrite the value of need_locks provided by the user
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8099 $as_echo_n "checking if we can lock with hard links... " >&6; }
8100 hard_links=yes
8101 $RM conftest*
8102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8103 touch conftest.a
8104 ln conftest.a conftest.b 2>&5 || hard_links=no
8105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8107 $as_echo "$hard_links" >&6; }
8108 if test "$hard_links" = no; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8110 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8111 need_locks=warn
8113 else
8114 need_locks=no
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8123 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8125 runpath_var=
8126 allow_undefined_flag=
8127 always_export_symbols=no
8128 archive_cmds=
8129 archive_expsym_cmds=
8130 compiler_needs_object=no
8131 enable_shared_with_static_runtimes=no
8132 export_dynamic_flag_spec=
8133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8134 hardcode_automatic=no
8135 hardcode_direct=no
8136 hardcode_direct_absolute=no
8137 hardcode_libdir_flag_spec=
8138 hardcode_libdir_flag_spec_ld=
8139 hardcode_libdir_separator=
8140 hardcode_minus_L=no
8141 hardcode_shlibpath_var=unsupported
8142 inherit_rpath=no
8143 link_all_deplibs=unknown
8144 module_cmds=
8145 module_expsym_cmds=
8146 old_archive_from_new_cmds=
8147 old_archive_from_expsyms_cmds=
8148 thread_safe_flag_spec=
8149 whole_archive_flag_spec=
8150 # include_expsyms should be a list of space-separated symbols to be *always*
8151 # included in the symbol list
8152 include_expsyms=
8153 # exclude_expsyms can be an extended regexp of symbols to exclude
8154 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8155 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8156 # as well as any symbol that contains `d'.
8157 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8158 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8159 # platforms (ab)use it in PIC code, but their linkers get confused if
8160 # the symbol is explicitly referenced. Since portable code cannot
8161 # rely on this symbol name, it's probably fine to never include it in
8162 # preloaded symbol tables.
8163 # Exclude shared library initialization/finalization symbols.
8164 extract_expsyms_cmds=
8166 case $host_os in
8167 cygwin* | mingw* | pw32* | cegcc*)
8168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8169 # When not using gcc, we currently assume that we are using
8170 # Microsoft Visual C++.
8171 if test "$GCC" != yes; then
8172 with_gnu_ld=no
8175 interix*)
8176 # we just hope/assume this is gcc and not c89 (= MSVC++)
8177 with_gnu_ld=yes
8179 openbsd*)
8180 with_gnu_ld=no
8182 esac
8184 ld_shlibs=yes
8186 # On some targets, GNU ld is compatible enough with the native linker
8187 # that we're better off using the native interface for both.
8188 lt_use_gnu_ld_interface=no
8189 if test "$with_gnu_ld" = yes; then
8190 case $host_os in
8191 aix*)
8192 # The AIX port of GNU ld has always aspired to compatibility
8193 # with the native linker. However, as the warning in the GNU ld
8194 # block says, versions before 2.19.5* couldn't really create working
8195 # shared libraries, regardless of the interface used.
8196 case `$LD -v 2>&1` in
8197 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8198 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8199 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8201 lt_use_gnu_ld_interface=yes
8203 esac
8206 lt_use_gnu_ld_interface=yes
8208 esac
8211 if test "$lt_use_gnu_ld_interface" = yes; then
8212 # If archive_cmds runs LD, not CC, wlarc should be empty
8213 wlarc='${wl}'
8215 # Set some defaults for GNU ld with shared library support. These
8216 # are reset later if shared libraries are not supported. Putting them
8217 # here allows them to be overridden if necessary.
8218 runpath_var=LD_RUN_PATH
8219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220 export_dynamic_flag_spec='${wl}--export-dynamic'
8221 # ancient GNU ld didn't support --whole-archive et. al.
8222 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8223 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8224 else
8225 whole_archive_flag_spec=
8227 supports_anon_versioning=no
8228 case `$LD -v 2>&1` in
8229 *GNU\ gold*) supports_anon_versioning=yes ;;
8230 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8231 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233 *\ 2.11.*) ;; # other 2.11 versions
8234 *) supports_anon_versioning=yes ;;
8235 esac
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
8239 aix[3-9]*)
8240 # On AIX/PPC, the GNU linker is very broken
8241 if test "$host_cpu" != ia64; then
8242 ld_shlibs=no
8243 cat <<_LT_EOF 1>&2
8245 *** Warning: the GNU linker, at least up to release 2.19, is reported
8246 *** to be unable to reliably create shared libraries on AIX.
8247 *** Therefore, libtool is disabling shared libraries support. If you
8248 *** really care for shared libraries, you may want to install binutils
8249 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8250 *** You will then need to restart the configuration process.
8252 _LT_EOF
8256 amigaos*)
8257 case $host_cpu in
8258 powerpc)
8259 # see comment about AmigaOS4 .so support
8260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261 archive_expsym_cmds=''
8263 m68k)
8264 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)'
8265 hardcode_libdir_flag_spec='-L$libdir'
8266 hardcode_minus_L=yes
8268 esac
8271 beos*)
8272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8273 allow_undefined_flag=unsupported
8274 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8275 # support --undefined. This deserves some investigation. FIXME
8276 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277 else
8278 ld_shlibs=no
8282 cygwin* | mingw* | pw32* | cegcc*)
8283 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8284 # as there is no search path for DLLs.
8285 hardcode_libdir_flag_spec='-L$libdir'
8286 export_dynamic_flag_spec='${wl}--export-all-symbols'
8287 allow_undefined_flag=unsupported
8288 always_export_symbols=no
8289 enable_shared_with_static_runtimes=yes
8290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8292 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294 # If the export-symbols file already is a .def file (1st line
8295 # is EXPORTS), use it as is; otherwise, prepend...
8296 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8297 cp $export_symbols $output_objdir/$soname.def;
8298 else
8299 echo EXPORTS > $output_objdir/$soname.def;
8300 cat $export_symbols >> $output_objdir/$soname.def;
8302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8303 else
8304 ld_shlibs=no
8308 haiku*)
8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310 link_all_deplibs=yes
8313 interix[3-9]*)
8314 hardcode_direct=no
8315 hardcode_shlibpath_var=no
8316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8317 export_dynamic_flag_spec='${wl}-E'
8318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8319 # Instead, shared libraries are loaded at an image base (0x10000000 by
8320 # default) and relocated if they conflict, which is a slow very memory
8321 # consuming and fragmenting process. To avoid this, we pick a random,
8322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8325 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'
8328 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8329 tmp_diet=no
8330 if test "$host_os" = linux-dietlibc; then
8331 case $cc_basename in
8332 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8333 esac
8335 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8336 && test "$tmp_diet" = no
8337 then
8338 tmp_addflag=' $pic_flag'
8339 tmp_sharedflag='-shared'
8340 case $cc_basename,$host_cpu in
8341 pgcc*) # Portland Group C compiler
8342 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'
8343 tmp_addflag=' $pic_flag'
8345 pgf77* | pgf90* | pgf95* | pgfortran*)
8346 # Portland Group f77 and f90 compilers
8347 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'
8348 tmp_addflag=' $pic_flag -Mnomain' ;;
8349 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8350 tmp_addflag=' -i_dynamic' ;;
8351 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8352 tmp_addflag=' -i_dynamic -nofor_main' ;;
8353 ifc* | ifort*) # Intel Fortran compiler
8354 tmp_addflag=' -nofor_main' ;;
8355 lf95*) # Lahey Fortran 8.1
8356 whole_archive_flag_spec=
8357 tmp_sharedflag='--shared' ;;
8358 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8359 tmp_sharedflag='-qmkshrobj'
8360 tmp_addflag= ;;
8361 nvcc*) # Cuda Compiler Driver 2.2
8362 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'
8363 compiler_needs_object=yes
8365 esac
8366 case `$CC -V 2>&1 | sed 5q` in
8367 *Sun\ C*) # Sun C 5.9
8368 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'
8369 compiler_needs_object=yes
8370 tmp_sharedflag='-G' ;;
8371 *Sun\ F*) # Sun Fortran 8.3
8372 tmp_sharedflag='-G' ;;
8373 esac
8374 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376 if test "x$supports_anon_versioning" = xyes; then
8377 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8379 echo "local: *; };" >> $output_objdir/$libname.ver~
8380 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8383 case $cc_basename in
8384 xlf* | bgf* | bgxlf* | mpixlf*)
8385 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8386 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8387 hardcode_libdir_flag_spec=
8388 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8389 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8390 if test "x$supports_anon_versioning" = xyes; then
8391 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8392 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8393 echo "local: *; };" >> $output_objdir/$libname.ver~
8394 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8397 esac
8398 else
8399 ld_shlibs=no
8403 netbsd*)
8404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8405 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8406 wlarc=
8407 else
8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8413 solaris*)
8414 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8415 ld_shlibs=no
8416 cat <<_LT_EOF 1>&2
8418 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8419 *** create shared libraries on Solaris systems. Therefore, libtool
8420 *** is disabling shared libraries support. We urge you to upgrade GNU
8421 *** binutils to release 2.9.1 or newer. Another option is to modify
8422 *** your PATH or compiler configuration so that the native linker is
8423 *** used, and then restart.
8425 _LT_EOF
8426 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8429 else
8430 ld_shlibs=no
8434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8435 case `$LD -v 2>&1` in
8436 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8437 ld_shlibs=no
8438 cat <<_LT_EOF 1>&2
8440 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8441 *** reliably create shared libraries on SCO systems. Therefore, libtool
8442 *** is disabling shared libraries support. We urge you to upgrade GNU
8443 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8444 *** your PATH or compiler configuration so that the native linker is
8445 *** used, and then restart.
8447 _LT_EOF
8450 # For security reasons, it is highly recommended that you always
8451 # use absolute paths for naming shared libraries, and exclude the
8452 # DT_RUNPATH tag from executables and libraries. But doing so
8453 # requires that you compile everything twice, which is a pain.
8454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8458 else
8459 ld_shlibs=no
8462 esac
8465 sunos4*)
8466 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8467 wlarc=
8468 hardcode_direct=yes
8469 hardcode_shlibpath_var=no
8473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476 else
8477 ld_shlibs=no
8480 esac
8482 if test "$ld_shlibs" = no; then
8483 runpath_var=
8484 hardcode_libdir_flag_spec=
8485 export_dynamic_flag_spec=
8486 whole_archive_flag_spec=
8488 else
8489 # PORTME fill in a description of your system's linker (not GNU ld)
8490 case $host_os in
8491 aix3*)
8492 allow_undefined_flag=unsupported
8493 always_export_symbols=yes
8494 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'
8495 # Note: this linker hardcodes the directories in LIBPATH if there
8496 # are no directories specified by -L.
8497 hardcode_minus_L=yes
8498 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8499 # Neither direct hardcoding nor static linking is supported with a
8500 # broken collect2.
8501 hardcode_direct=unsupported
8505 aix[4-9]*)
8506 if test "$host_cpu" = ia64; then
8507 # On IA64, the linker does run time linking by default, so we don't
8508 # have to do anything special.
8509 aix_use_runtimelinking=no
8510 exp_sym_flag='-Bexport'
8511 no_entry_flag=""
8512 else
8513 # If we're using GNU nm, then we don't want the "-C" option.
8514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8515 # Also, AIX nm treats weak defined symbols like other global
8516 # defined symbols, whereas GNU nm marks them as "W".
8517 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8518 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'
8519 else
8520 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'
8522 aix_use_runtimelinking=no
8524 # Test if we are trying to use run time linking or normal
8525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8526 # need to do runtime linking.
8527 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8528 for ld_flag in $LDFLAGS; do
8529 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8530 aix_use_runtimelinking=yes
8531 break
8533 done
8535 esac
8537 exp_sym_flag='-bexport'
8538 no_entry_flag='-bnoentry'
8541 # When large executables or shared objects are built, AIX ld can
8542 # have problems creating the table of contents. If linking a library
8543 # or program results in "error TOC overflow" add -mminimal-toc to
8544 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8545 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8547 archive_cmds=''
8548 hardcode_direct=yes
8549 hardcode_direct_absolute=yes
8550 hardcode_libdir_separator=':'
8551 link_all_deplibs=yes
8552 file_list_spec='${wl}-f,'
8554 if test "$GCC" = yes; then
8555 case $host_os in aix4.[012]|aix4.[012].*)
8556 # We only want to do this on AIX 4.2 and lower, the check
8557 # below for broken collect2 doesn't work under 4.3+
8558 collect2name=`${CC} -print-prog-name=collect2`
8559 if test -f "$collect2name" &&
8560 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8561 then
8562 # We have reworked collect2
8564 else
8565 # We have old collect2
8566 hardcode_direct=unsupported
8567 # It fails to find uninstalled libraries when the uninstalled
8568 # path is not listed in the libpath. Setting hardcode_minus_L
8569 # to unsupported forces relinking
8570 hardcode_minus_L=yes
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_libdir_separator=
8575 esac
8576 shared_flag='-shared'
8577 if test "$aix_use_runtimelinking" = yes; then
8578 shared_flag="$shared_flag "'${wl}-G'
8580 else
8581 # not using gcc
8582 if test "$host_cpu" = ia64; then
8583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8584 # chokes on -Wl,-G. The following line is correct:
8585 shared_flag='-G'
8586 else
8587 if test "$aix_use_runtimelinking" = yes; then
8588 shared_flag='${wl}-G'
8589 else
8590 shared_flag='${wl}-bM:SRE'
8595 export_dynamic_flag_spec='${wl}-bexpall'
8596 # It seems that -bexpall does not export symbols beginning with
8597 # underscore (_), so it is better to generate a list of symbols to export.
8598 always_export_symbols=yes
8599 if test "$aix_use_runtimelinking" = yes; then
8600 # Warning - without using the other runtime loading flags (-brtl),
8601 # -berok will link without error, but may produce a broken library.
8602 allow_undefined_flag='-berok'
8603 # Determine the default libpath from the value encoded in an
8604 # empty executable.
8605 if test x$gcc_no_link = xyes; then
8606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8612 main ()
8616 return 0;
8618 _ACEOF
8619 if ac_fn_c_try_link "$LINENO"; then :
8621 lt_aix_libpath_sed='
8622 /Import File Strings/,/^$/ {
8623 /^0/ {
8624 s/^0 *\(.*\)$/\1/
8628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629 # Check for a 64-bit object if we didn't find anything.
8630 if test -z "$aix_libpath"; then
8631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8639 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"
8640 else
8641 if test "$host_cpu" = ia64; then
8642 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8643 allow_undefined_flag="-z nodefs"
8644 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"
8645 else
8646 # Determine the default libpath from the value encoded in an
8647 # empty executable.
8648 if test x$gcc_no_link = xyes; then
8649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8655 main ()
8659 return 0;
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8664 lt_aix_libpath_sed='
8665 /Import File Strings/,/^$/ {
8666 /^0/ {
8667 s/^0 *\(.*\)$/\1/
8671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8672 # Check for a 64-bit object if we didn't find anything.
8673 if test -z "$aix_libpath"; then
8674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8677 rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8681 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8682 # Warning - without using the other run time loading flags,
8683 # -berok will link without error, but may produce a broken library.
8684 no_undefined_flag=' ${wl}-bernotok'
8685 allow_undefined_flag=' ${wl}-berok'
8686 if test "$with_gnu_ld" = yes; then
8687 # We only use this code for GNU lds that support --whole-archive.
8688 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8689 else
8690 # Exported symbols can be pulled into shared objects from archives
8691 whole_archive_flag_spec='$convenience'
8693 archive_cmds_need_lc=yes
8694 # This is similar to how AIX traditionally builds its shared libraries.
8695 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'
8700 amigaos*)
8701 case $host_cpu in
8702 powerpc)
8703 # see comment about AmigaOS4 .so support
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds=''
8707 m68k)
8708 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)'
8709 hardcode_libdir_flag_spec='-L$libdir'
8710 hardcode_minus_L=yes
8712 esac
8715 bsdi[45]*)
8716 export_dynamic_flag_spec=-rdynamic
8719 cygwin* | mingw* | pw32* | cegcc*)
8720 # When not using gcc, we currently assume that we are using
8721 # Microsoft Visual C++.
8722 # hardcode_libdir_flag_spec is actually meaningless, as there is
8723 # no search path for DLLs.
8724 hardcode_libdir_flag_spec=' '
8725 allow_undefined_flag=unsupported
8726 # Tell ltmain to make .lib files, not .a files.
8727 libext=lib
8728 # Tell ltmain to make .dll files, not .so files.
8729 shrext_cmds=".dll"
8730 # FIXME: Setting linknames here is a bad hack.
8731 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8732 # The linker will automatically build a .lib file if we build a DLL.
8733 old_archive_from_new_cmds='true'
8734 # FIXME: Should let the user specify the lib program.
8735 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8736 fix_srcfile_path='`cygpath -w "$srcfile"`'
8737 enable_shared_with_static_runtimes=yes
8740 darwin* | rhapsody*)
8743 archive_cmds_need_lc=no
8744 hardcode_direct=no
8745 hardcode_automatic=yes
8746 hardcode_shlibpath_var=unsupported
8747 if test "$lt_cv_ld_force_load" = "yes"; then
8748 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\"`'
8749 else
8750 whole_archive_flag_spec=''
8752 link_all_deplibs=yes
8753 allow_undefined_flag="$_lt_dar_allow_undefined"
8754 case $cc_basename in
8755 ifort*) _lt_dar_can_shared=yes ;;
8756 *) _lt_dar_can_shared=$GCC ;;
8757 esac
8758 if test "$_lt_dar_can_shared" = "yes"; then
8759 output_verbose_link_cmd=func_echo_all
8760 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8761 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8762 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}"
8763 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}"
8765 else
8766 ld_shlibs=no
8771 dgux*)
8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_libdir_flag_spec='-L$libdir'
8774 hardcode_shlibpath_var=no
8777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8778 # support. Future versions do this automatically, but an explicit c++rt0.o
8779 # does not break anything, and helps significantly (at the cost of a little
8780 # extra space).
8781 freebsd2.2*)
8782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8783 hardcode_libdir_flag_spec='-R$libdir'
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8789 freebsd2.*)
8790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_direct=yes
8792 hardcode_minus_L=yes
8793 hardcode_shlibpath_var=no
8796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8797 freebsd* | dragonfly*)
8798 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8799 hardcode_libdir_flag_spec='-R$libdir'
8800 hardcode_direct=yes
8801 hardcode_shlibpath_var=no
8804 hpux9*)
8805 if test "$GCC" = yes; then
8806 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'
8807 else
8808 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'
8810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8811 hardcode_libdir_separator=:
8812 hardcode_direct=yes
8814 # hardcode_minus_L: Not really in the search PATH,
8815 # but as the default location of the library.
8816 hardcode_minus_L=yes
8817 export_dynamic_flag_spec='${wl}-E'
8820 hpux10*)
8821 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8822 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8823 else
8824 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8826 if test "$with_gnu_ld" = no; then
8827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8828 hardcode_libdir_flag_spec_ld='+b $libdir'
8829 hardcode_libdir_separator=:
8830 hardcode_direct=yes
8831 hardcode_direct_absolute=yes
8832 export_dynamic_flag_spec='${wl}-E'
8833 # hardcode_minus_L: Not really in the search PATH,
8834 # but as the default location of the library.
8835 hardcode_minus_L=yes
8839 hpux11*)
8840 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8841 case $host_cpu in
8842 hppa*64*)
8843 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 ia64*)
8846 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851 esac
8852 else
8853 case $host_cpu in
8854 hppa*64*)
8855 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8857 ia64*)
8858 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8862 # Older versions of the 11.00 compiler do not understand -b yet
8863 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8865 $as_echo_n "checking if $CC understands -b... " >&6; }
8866 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 lt_cv_prog_compiler__b=no
8870 save_LDFLAGS="$LDFLAGS"
8871 LDFLAGS="$LDFLAGS -b"
8872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8874 # The linker can only warn and ignore the option if not recognized
8875 # So say no if there are warnings
8876 if test -s conftest.err; then
8877 # Append any errors to the config.log.
8878 cat conftest.err 1>&5
8879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8881 if diff conftest.exp conftest.er2 >/dev/null; then
8882 lt_cv_prog_compiler__b=yes
8884 else
8885 lt_cv_prog_compiler__b=yes
8888 $RM -r conftest*
8889 LDFLAGS="$save_LDFLAGS"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8893 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8895 if test x"$lt_cv_prog_compiler__b" = xyes; then
8896 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8897 else
8898 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8902 esac
8904 if test "$with_gnu_ld" = no; then
8905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8906 hardcode_libdir_separator=:
8908 case $host_cpu in
8909 hppa*64*|ia64*)
8910 hardcode_direct=no
8911 hardcode_shlibpath_var=no
8914 hardcode_direct=yes
8915 hardcode_direct_absolute=yes
8916 export_dynamic_flag_spec='${wl}-E'
8918 # hardcode_minus_L: Not really in the search PATH,
8919 # but as the default location of the library.
8920 hardcode_minus_L=yes
8922 esac
8926 irix5* | irix6* | nonstopux*)
8927 if test "$GCC" = yes; then
8928 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'
8929 # Try to use the -exported_symbol ld option, if it does not
8930 # work, assume that -exports_file does not work either and
8931 # implicitly export all symbols.
8932 save_LDFLAGS="$LDFLAGS"
8933 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8934 if test x$gcc_no_link = xyes; then
8935 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 int foo(void) {}
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942 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'
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LDFLAGS="$save_LDFLAGS"
8948 else
8949 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'
8950 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'
8952 archive_cmds_need_lc='no'
8953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8954 hardcode_libdir_separator=:
8955 inherit_rpath=yes
8956 link_all_deplibs=yes
8959 netbsd*)
8960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8962 else
8963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8965 hardcode_libdir_flag_spec='-R$libdir'
8966 hardcode_direct=yes
8967 hardcode_shlibpath_var=no
8970 newsos6)
8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_direct=yes
8973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974 hardcode_libdir_separator=:
8975 hardcode_shlibpath_var=no
8978 *nto* | *qnx*)
8981 openbsd*)
8982 if test -f /usr/libexec/ld.so; then
8983 hardcode_direct=yes
8984 hardcode_shlibpath_var=no
8985 hardcode_direct_absolute=yes
8986 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8988 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8990 export_dynamic_flag_spec='${wl}-E'
8991 else
8992 case $host_os in
8993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8995 hardcode_libdir_flag_spec='-R$libdir'
8998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9001 esac
9003 else
9004 ld_shlibs=no
9008 os2*)
9009 hardcode_libdir_flag_spec='-L$libdir'
9010 hardcode_minus_L=yes
9011 allow_undefined_flag=unsupported
9012 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'
9013 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9016 osf3*)
9017 if test "$GCC" = yes; then
9018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9019 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'
9020 else
9021 allow_undefined_flag=' -expect_unresolved \*'
9022 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'
9024 archive_cmds_need_lc='no'
9025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9026 hardcode_libdir_separator=:
9029 osf4* | osf5*) # as osf3* with the addition of -msym flag
9030 if test "$GCC" = yes; then
9031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9032 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'
9033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9034 else
9035 allow_undefined_flag=' -expect_unresolved \*'
9036 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'
9037 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~
9038 $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'
9040 # Both c and cxx compiler support -rpath directly
9041 hardcode_libdir_flag_spec='-rpath $libdir'
9043 archive_cmds_need_lc='no'
9044 hardcode_libdir_separator=:
9047 solaris*)
9048 no_undefined_flag=' -z defs'
9049 if test "$GCC" = yes; then
9050 wlarc='${wl}'
9051 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9053 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9054 else
9055 case `$CC -V 2>&1` in
9056 *"Compilers 5.0"*)
9057 wlarc=''
9058 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9063 wlarc='${wl}'
9064 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9066 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9068 esac
9070 hardcode_libdir_flag_spec='-R$libdir'
9071 hardcode_shlibpath_var=no
9072 case $host_os in
9073 solaris2.[0-5] | solaris2.[0-5].*) ;;
9075 # The compiler driver will combine and reorder linker options,
9076 # but understands `-z linker_flag'. GCC discards it without `$wl',
9077 # but is careful enough not to reorder.
9078 # Supported since Solaris 2.6 (maybe 2.5.1?)
9079 if test "$GCC" = yes; then
9080 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9081 else
9082 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9085 esac
9086 link_all_deplibs=yes
9089 sunos4*)
9090 if test "x$host_vendor" = xsequent; then
9091 # Use $CC to link under sequent, because it throws in some extra .o
9092 # files that make .init and .fini sections work.
9093 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9094 else
9095 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9097 hardcode_libdir_flag_spec='-L$libdir'
9098 hardcode_direct=yes
9099 hardcode_minus_L=yes
9100 hardcode_shlibpath_var=no
9103 sysv4)
9104 case $host_vendor in
9105 sni)
9106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107 hardcode_direct=yes # is this really true???
9109 siemens)
9110 ## LD is ld it makes a PLAMLIB
9111 ## CC just makes a GrossModule.
9112 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9113 reload_cmds='$CC -r -o $output$reload_objs'
9114 hardcode_direct=no
9116 motorola)
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9120 esac
9121 runpath_var='LD_RUN_PATH'
9122 hardcode_shlibpath_var=no
9125 sysv4.3*)
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_shlibpath_var=no
9128 export_dynamic_flag_spec='-Bexport'
9131 sysv4*MP*)
9132 if test -d /usr/nec; then
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_shlibpath_var=no
9135 runpath_var=LD_RUN_PATH
9136 hardcode_runpath_var=yes
9137 ld_shlibs=yes
9141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9142 no_undefined_flag='${wl}-z,text'
9143 archive_cmds_need_lc=no
9144 hardcode_shlibpath_var=no
9145 runpath_var='LD_RUN_PATH'
9147 if test "$GCC" = yes; then
9148 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 else
9151 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 sysv5* | sco3.2v5* | sco5v6*)
9157 # Note: We can NOT use -z defs as we might desire, because we do not
9158 # link with -lc, and that would cause any symbols used from libc to
9159 # always be unresolved, which means just about no library would
9160 # ever link correctly. If we're not using GNU ld we use -z text
9161 # though, which does catch some bad symbols but isn't as heavy-handed
9162 # as -z defs.
9163 no_undefined_flag='${wl}-z,text'
9164 allow_undefined_flag='${wl}-z,nodefs'
9165 archive_cmds_need_lc=no
9166 hardcode_shlibpath_var=no
9167 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9168 hardcode_libdir_separator=':'
9169 link_all_deplibs=yes
9170 export_dynamic_flag_spec='${wl}-Bexport'
9171 runpath_var='LD_RUN_PATH'
9173 if test "$GCC" = yes; then
9174 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 else
9177 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 uts4*)
9183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184 hardcode_libdir_flag_spec='-L$libdir'
9185 hardcode_shlibpath_var=no
9189 ld_shlibs=no
9191 esac
9193 if test x$host_vendor = xsni; then
9194 case $host in
9195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9196 export_dynamic_flag_spec='${wl}-Blargedynsym'
9198 esac
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9203 $as_echo "$ld_shlibs" >&6; }
9204 test "$ld_shlibs" = no && can_build_shared=no
9206 with_gnu_ld=$with_gnu_ld
9223 # Do we need to explicitly link libc?
9225 case "x$archive_cmds_need_lc" in
9226 x|xyes)
9227 # Assume -lc should be added
9228 archive_cmds_need_lc=yes
9230 if test "$enable_shared" = yes && test "$GCC" = yes; then
9231 case $archive_cmds in
9232 *'~'*)
9233 # FIXME: we may have to deal with multi-command sequences.
9235 '$CC '*)
9236 # Test whether the compiler implicitly links with -lc since on some
9237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9238 # to ld, don't add -lc before -lgcc.
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9240 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9241 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 $RM conftest*
9245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9248 (eval $ac_compile) 2>&5
9249 ac_status=$?
9250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9251 test $ac_status = 0; } 2>conftest.err; then
9252 soname=conftest
9253 lib=conftest
9254 libobjs=conftest.$ac_objext
9255 deplibs=
9256 wl=$lt_prog_compiler_wl
9257 pic_flag=$lt_prog_compiler_pic
9258 compiler_flags=-v
9259 linker_flags=-v
9260 verstring=
9261 output_objdir=.
9262 libname=conftest
9263 lt_save_allow_undefined_flag=$allow_undefined_flag
9264 allow_undefined_flag=
9265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9266 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9267 ac_status=$?
9268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9269 test $ac_status = 0; }
9270 then
9271 lt_cv_archive_cmds_need_lc=no
9272 else
9273 lt_cv_archive_cmds_need_lc=yes
9275 allow_undefined_flag=$lt_save_allow_undefined_flag
9276 else
9277 cat conftest.err 1>&5
9279 $RM conftest*
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9283 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9284 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9286 esac
9289 esac
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9450 if test "$GCC" = yes; then
9451 case $host_os in
9452 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9453 *) lt_awk_arg="/^libraries:/" ;;
9454 esac
9455 case $host_os in
9456 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9457 *) lt_sed_strip_eq="s,=/,/,g" ;;
9458 esac
9459 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9460 case $lt_search_path_spec in
9461 *\;*)
9462 # if the path contains ";" then we assume it to be the separator
9463 # otherwise default to the standard path separator (i.e. ":") - it is
9464 # assumed that no part of a normal pathname contains ";" but that should
9465 # okay in the real world where ";" in dirpaths is itself problematic.
9466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9471 esac
9472 # Ok, now we have the path, separated by spaces, we can step through it
9473 # and add multilib dir if necessary.
9474 lt_tmp_lt_search_path_spec=
9475 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9476 for lt_sys_path in $lt_search_path_spec; do
9477 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9479 else
9480 test -d "$lt_sys_path" && \
9481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9483 done
9484 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9485 BEGIN {RS=" "; FS="/|\n";} {
9486 lt_foo="";
9487 lt_count=0;
9488 for (lt_i = NF; lt_i > 0; lt_i--) {
9489 if ($lt_i != "" && $lt_i != ".") {
9490 if ($lt_i == "..") {
9491 lt_count++;
9492 } else {
9493 if (lt_count == 0) {
9494 lt_foo="/" $lt_i lt_foo;
9495 } else {
9496 lt_count--;
9501 if (lt_foo != "") { lt_freq[lt_foo]++; }
9502 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9504 # AWK program above erroneously prepends '/' to C:/dos/paths
9505 # for these hosts.
9506 case $host_os in
9507 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9508 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9509 esac
9510 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9511 else
9512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9514 library_names_spec=
9515 libname_spec='lib$name'
9516 soname_spec=
9517 shrext_cmds=".so"
9518 postinstall_cmds=
9519 postuninstall_cmds=
9520 finish_cmds=
9521 finish_eval=
9522 shlibpath_var=
9523 shlibpath_overrides_runpath=unknown
9524 version_type=none
9525 dynamic_linker="$host_os ld.so"
9526 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9527 need_lib_prefix=unknown
9528 hardcode_into_libs=no
9530 # when you set need_version to no, make sure it does not cause -set_version
9531 # flags to be left without arguments
9532 need_version=unknown
9534 case $host_os in
9535 aix3*)
9536 version_type=linux
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9538 shlibpath_var=LIBPATH
9540 # AIX 3 has no versioning support, so we append a major version to the name.
9541 soname_spec='${libname}${release}${shared_ext}$major'
9544 aix[4-9]*)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 hardcode_into_libs=yes
9549 if test "$host_cpu" = ia64; then
9550 # AIX 5 supports IA64
9551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 else
9554 # With GCC up to 2.95.x, collect2 would create an import file
9555 # for dependence libraries. The import file would start with
9556 # the line `#! .'. This would cause the generated library to
9557 # depend on `.', always an invalid library. This was fixed in
9558 # development snapshots of GCC prior to 3.0.
9559 case $host_os in
9560 aix4 | aix4.[01] | aix4.[01].*)
9561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9562 echo ' yes '
9563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9565 else
9566 can_build_shared=no
9569 esac
9570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9571 # soname into executable. Probably we can add versioning support to
9572 # collect2, so additional links can be useful in future.
9573 if test "$aix_use_runtimelinking" = yes; then
9574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9575 # instead of lib<name>.a to let people know that these are not
9576 # typical AIX shared libraries.
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 else
9579 # We preserve .a as extension for shared libraries through AIX4.2
9580 # and later when we are not doing run time linking.
9581 library_names_spec='${libname}${release}.a $libname.a'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9584 shlibpath_var=LIBPATH
9588 amigaos*)
9589 case $host_cpu in
9590 powerpc)
9591 # Since July 2007 AmigaOS4 officially supports .so libraries.
9592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595 m68k)
9596 library_names_spec='$libname.ixlibrary $libname.a'
9597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9598 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'
9600 esac
9603 beos*)
9604 library_names_spec='${libname}${shared_ext}'
9605 dynamic_linker="$host_os ld.so"
9606 shlibpath_var=LIBRARY_PATH
9609 bsdi[45]*)
9610 version_type=linux
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9618 # the default ld.so.conf also contains /usr/contrib/lib and
9619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9620 # libtool to hard-code these into programs
9623 cygwin* | mingw* | pw32* | cegcc*)
9624 version_type=windows
9625 shrext_cmds=".dll"
9626 need_version=no
9627 need_lib_prefix=no
9629 case $GCC,$host_os in
9630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9631 library_names_spec='$libname.dll.a'
9632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9633 postinstall_cmds='base_file=`basename \${file}`~
9634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9635 dldir=$destdir/`dirname \$dlpath`~
9636 test -d \$dldir || mkdir -p \$dldir~
9637 $install_prog $dir/$dlname \$dldir/$dlname~
9638 chmod a+x \$dldir/$dlname~
9639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9643 dlpath=$dir/\$dldll~
9644 $RM \$dlpath'
9645 shlibpath_overrides_runpath=yes
9647 case $host_os in
9648 cygwin*)
9649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9652 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9654 mingw* | cegcc*)
9655 # MinGW DLLs use traditional 'lib' prefix
9656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9658 pw32*)
9659 # pw32 DLLs use 'pw' prefix rather than 'lib'
9660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9662 esac
9666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9668 esac
9669 dynamic_linker='Win32 ld.exe'
9670 # FIXME: first we should search . and the directory the executable is in
9671 shlibpath_var=PATH
9674 darwin* | rhapsody*)
9675 dynamic_linker="$host_os dyld"
9676 version_type=darwin
9677 need_lib_prefix=no
9678 need_version=no
9679 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9680 soname_spec='${libname}${release}${major}$shared_ext'
9681 shlibpath_overrides_runpath=yes
9682 shlibpath_var=DYLD_LIBRARY_PATH
9683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9689 dgux*)
9690 version_type=linux
9691 need_lib_prefix=no
9692 need_version=no
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 shlibpath_var=LD_LIBRARY_PATH
9698 freebsd* | dragonfly*)
9699 # DragonFly does not have aout. When/if they implement a new
9700 # versioning mechanism, adjust this.
9701 if test -x /usr/bin/objformat; then
9702 objformat=`/usr/bin/objformat`
9703 else
9704 case $host_os in
9705 freebsd[23].*) objformat=aout ;;
9706 *) objformat=elf ;;
9707 esac
9709 version_type=freebsd-$objformat
9710 case $version_type in
9711 freebsd-elf*)
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9713 need_version=no
9714 need_lib_prefix=no
9716 freebsd-*)
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9718 need_version=yes
9720 esac
9721 shlibpath_var=LD_LIBRARY_PATH
9722 case $host_os in
9723 freebsd2.*)
9724 shlibpath_overrides_runpath=yes
9726 freebsd3.[01]* | freebsdelf3.[01]*)
9727 shlibpath_overrides_runpath=yes
9728 hardcode_into_libs=yes
9730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9732 shlibpath_overrides_runpath=no
9733 hardcode_into_libs=yes
9735 *) # from 4.6 on, and DragonFly
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9739 esac
9742 gnu*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 hardcode_into_libs=yes
9752 haiku*)
9753 version_type=linux
9754 need_lib_prefix=no
9755 need_version=no
9756 dynamic_linker="$host_os runtime_loader"
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 shlibpath_var=LIBRARY_PATH
9760 shlibpath_overrides_runpath=yes
9761 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9762 hardcode_into_libs=yes
9765 hpux9* | hpux10* | hpux11*)
9766 # Give a soname corresponding to the major version so that dld.sl refuses to
9767 # link against other versions.
9768 version_type=sunos
9769 need_lib_prefix=no
9770 need_version=no
9771 case $host_cpu in
9772 ia64*)
9773 shrext_cmds='.so'
9774 hardcode_into_libs=yes
9775 dynamic_linker="$host_os dld.so"
9776 shlibpath_var=LD_LIBRARY_PATH
9777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 if test "X$HPUX_IA64_MODE" = X32; then
9781 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9782 else
9783 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9787 hppa*64*)
9788 shrext_cmds='.sl'
9789 hardcode_into_libs=yes
9790 dynamic_linker="$host_os dld.sl"
9791 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9799 shrext_cmds='.sl'
9800 dynamic_linker="$host_os dld.sl"
9801 shlibpath_var=SHLIB_PATH
9802 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9806 esac
9807 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9808 postinstall_cmds='chmod 555 $lib'
9809 # or fails outright, so override atomically:
9810 install_override_mode=555
9813 interix[3-9]*)
9814 version_type=linux
9815 need_lib_prefix=no
9816 need_version=no
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9818 soname_spec='${libname}${release}${shared_ext}$major'
9819 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=no
9822 hardcode_into_libs=yes
9825 irix5* | irix6* | nonstopux*)
9826 case $host_os in
9827 nonstopux*) version_type=nonstopux ;;
9829 if test "$lt_cv_prog_gnu_ld" = yes; then
9830 version_type=linux
9831 else
9832 version_type=irix
9833 fi ;;
9834 esac
9835 need_lib_prefix=no
9836 need_version=no
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9839 case $host_os in
9840 irix5* | nonstopux*)
9841 libsuff= shlibsuff=
9844 case $LD in # libtool.m4 will add one of these switches to LD
9845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9846 libsuff= shlibsuff= libmagic=32-bit;;
9847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9848 libsuff=32 shlibsuff=N32 libmagic=N32;;
9849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9850 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9851 *) libsuff= shlibsuff= libmagic=never-match;;
9852 esac
9854 esac
9855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9856 shlibpath_overrides_runpath=no
9857 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9858 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9859 hardcode_into_libs=yes
9862 # No shared lib support for Linux oldld, aout, or coff.
9863 linux*oldld* | linux*aout* | linux*coff*)
9864 dynamic_linker=no
9867 # This must be Linux ELF.
9868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9869 version_type=linux
9870 need_lib_prefix=no
9871 need_version=no
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 shlibpath_overrides_runpath=no
9878 # Some binutils ld are patched to set DT_RUNPATH
9879 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 lt_cv_shlibpath_overrides_runpath=no
9883 save_LDFLAGS=$LDFLAGS
9884 save_libdir=$libdir
9885 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9886 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9887 if test x$gcc_no_link = xyes; then
9888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9894 main ()
9898 return 0;
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9903 lt_cv_shlibpath_overrides_runpath=yes
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LDFLAGS=$save_LDFLAGS
9909 libdir=$save_libdir
9913 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9915 # This implies no fast_install, which is unacceptable.
9916 # Some rework will be needed to allow for fast_install
9917 # before this can be enabled.
9918 hardcode_into_libs=yes
9920 # Append ld.so.conf contents to the search path
9921 if test -f /etc/ld.so.conf; then
9922 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' ' '`
9923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9926 # We used to test for /lib/ld.so.1 and disable shared libraries on
9927 # powerpc, because MkLinux only supported shared libraries with the
9928 # GNU dynamic linker. Since this was broken with cross compilers,
9929 # most powerpc-linux boxes support dynamic linking these days and
9930 # people can always --disable-shared, the test was removed, and we
9931 # assume the GNU/Linux dynamic linker is in use.
9932 dynamic_linker='GNU/Linux ld.so'
9935 netbsd*)
9936 version_type=sunos
9937 need_lib_prefix=no
9938 need_version=no
9939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942 dynamic_linker='NetBSD (a.out) ld.so'
9943 else
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 dynamic_linker='NetBSD ld.elf_so'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=yes
9950 hardcode_into_libs=yes
9953 newsos6)
9954 version_type=linux
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9960 *nto* | *qnx*)
9961 version_type=qnx
9962 need_lib_prefix=no
9963 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=no
9968 hardcode_into_libs=yes
9969 dynamic_linker='ldqnx.so'
9972 openbsd*)
9973 version_type=sunos
9974 sys_lib_dlsearch_path_spec="/usr/lib"
9975 need_lib_prefix=no
9976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9977 case $host_os in
9978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9979 *) need_version=no ;;
9980 esac
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985 case $host_os in
9986 openbsd2.[89] | openbsd2.[89].*)
9987 shlibpath_overrides_runpath=no
9990 shlibpath_overrides_runpath=yes
9992 esac
9993 else
9994 shlibpath_overrides_runpath=yes
9998 os2*)
9999 libname_spec='$name'
10000 shrext_cmds=".dll"
10001 need_lib_prefix=no
10002 library_names_spec='$libname${shared_ext} $libname.a'
10003 dynamic_linker='OS/2 ld.exe'
10004 shlibpath_var=LIBPATH
10007 osf3* | osf4* | osf5*)
10008 version_type=osf
10009 need_lib_prefix=no
10010 need_version=no
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10018 rdos*)
10019 dynamic_linker=no
10022 solaris*)
10023 version_type=linux
10024 need_lib_prefix=no
10025 need_version=no
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes
10030 hardcode_into_libs=yes
10031 # ldd complains unless libraries are executable
10032 postinstall_cmds='chmod +x $lib'
10035 sunos4*)
10036 version_type=sunos
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes
10041 if test "$with_gnu_ld" = yes; then
10042 need_lib_prefix=no
10044 need_version=yes
10047 sysv4 | sysv4.3*)
10048 version_type=linux
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 case $host_vendor in
10053 sni)
10054 shlibpath_overrides_runpath=no
10055 need_lib_prefix=no
10056 runpath_var=LD_RUN_PATH
10058 siemens)
10059 need_lib_prefix=no
10061 motorola)
10062 need_lib_prefix=no
10063 need_version=no
10064 shlibpath_overrides_runpath=no
10065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10067 esac
10070 sysv4*MP*)
10071 if test -d /usr/nec ;then
10072 version_type=linux
10073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10074 soname_spec='$libname${shared_ext}.$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10080 version_type=freebsd-elf
10081 need_lib_prefix=no
10082 need_version=no
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10087 hardcode_into_libs=yes
10088 if test "$with_gnu_ld" = yes; then
10089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10090 else
10091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10092 case $host_os in
10093 sco3.2v5*)
10094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10096 esac
10098 sys_lib_dlsearch_path_spec='/usr/lib'
10101 tpf*)
10102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10103 version_type=linux
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 shlibpath_overrides_runpath=no
10109 hardcode_into_libs=yes
10112 uts4*)
10113 version_type=linux
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 shlibpath_var=LD_LIBRARY_PATH
10120 dynamic_linker=no
10122 esac
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10124 $as_echo "$dynamic_linker" >&6; }
10125 test "$dynamic_linker" = no && can_build_shared=no
10127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10128 if test "$GCC" = yes; then
10129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10132 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10136 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10232 hardcode_action=
10233 if test -n "$hardcode_libdir_flag_spec" ||
10234 test -n "$runpath_var" ||
10235 test "X$hardcode_automatic" = "Xyes" ; then
10237 # We can hardcode non-existent directories.
10238 if test "$hardcode_direct" != no &&
10239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10240 # have to relink, otherwise we might link with an installed library
10241 # when we should be linking with a yet-to-be-installed one
10242 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10243 test "$hardcode_minus_L" != no; then
10244 # Linking always hardcodes the temporary library directory.
10245 hardcode_action=relink
10246 else
10247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10248 hardcode_action=immediate
10250 else
10251 # We cannot hardcode anything, or else we can only hardcode existing
10252 # directories.
10253 hardcode_action=unsupported
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10256 $as_echo "$hardcode_action" >&6; }
10258 if test "$hardcode_action" = relink ||
10259 test "$inherit_rpath" = yes; then
10260 # Fast installation is not supported
10261 enable_fast_install=no
10262 elif test "$shlibpath_overrides_runpath" = yes ||
10263 test "$enable_shared" = no; then
10264 # Fast installation is not necessary
10265 enable_fast_install=needless
10273 if test "x$enable_dlopen" != xyes; then
10274 enable_dlopen=unknown
10275 enable_dlopen_self=unknown
10276 enable_dlopen_self_static=unknown
10277 else
10278 lt_cv_dlopen=no
10279 lt_cv_dlopen_libs=
10281 case $host_os in
10282 beos*)
10283 lt_cv_dlopen="load_add_on"
10284 lt_cv_dlopen_libs=
10285 lt_cv_dlopen_self=yes
10288 mingw* | pw32* | cegcc*)
10289 lt_cv_dlopen="LoadLibrary"
10290 lt_cv_dlopen_libs=
10293 cygwin*)
10294 lt_cv_dlopen="dlopen"
10295 lt_cv_dlopen_libs=
10298 darwin*)
10299 # if libdl is installed we need to link against it
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 ac_check_lib_save_LIBS=$LIBS
10306 LIBS="-ldl $LIBS"
10307 if test x$gcc_no_link = xyes; then
10308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char dlopen ();
10321 main ()
10323 return dlopen ();
10325 return 0;
10327 _ACEOF
10328 if ac_fn_c_try_link "$LINENO"; then :
10329 ac_cv_lib_dl_dlopen=yes
10330 else
10331 ac_cv_lib_dl_dlopen=no
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_lib_save_LIBS
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10338 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10339 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10341 else
10343 lt_cv_dlopen="dyld"
10344 lt_cv_dlopen_libs=
10345 lt_cv_dlopen_self=yes
10352 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10353 if test "x$ac_cv_func_shl_load" = x""yes; then :
10354 lt_cv_dlopen="shl_load"
10355 else
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10357 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10358 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 ac_check_lib_save_LIBS=$LIBS
10362 LIBS="-ldld $LIBS"
10363 if test x$gcc_no_link = xyes; then
10364 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372 #ifdef __cplusplus
10373 extern "C"
10374 #endif
10375 char shl_load ();
10377 main ()
10379 return shl_load ();
10381 return 0;
10383 _ACEOF
10384 if ac_fn_c_try_link "$LINENO"; then :
10385 ac_cv_lib_dld_shl_load=yes
10386 else
10387 ac_cv_lib_dld_shl_load=no
10389 rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10391 LIBS=$ac_check_lib_save_LIBS
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10394 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10395 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10396 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10397 else
10398 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10399 if test "x$ac_cv_func_dlopen" = x""yes; then :
10400 lt_cv_dlopen="dlopen"
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10403 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10404 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-ldl $LIBS"
10409 if test x$gcc_no_link = xyes; then
10410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10415 /* Override any GCC internal prototype to avoid an error.
10416 Use char because int might match the return type of a GCC
10417 builtin and then its argument prototype would still apply. */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 char dlopen ();
10423 main ()
10425 return dlopen ();
10427 return 0;
10429 _ACEOF
10430 if ac_fn_c_try_link "$LINENO"; then :
10431 ac_cv_lib_dl_dlopen=yes
10432 else
10433 ac_cv_lib_dl_dlopen=no
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 LIBS=$ac_check_lib_save_LIBS
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10440 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10441 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10443 else
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10445 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10446 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-lsvld $LIBS"
10451 if test x$gcc_no_link = xyes; then
10452 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char dlopen ();
10465 main ()
10467 return dlopen ();
10469 return 0;
10471 _ACEOF
10472 if ac_fn_c_try_link "$LINENO"; then :
10473 ac_cv_lib_svld_dlopen=yes
10474 else
10475 ac_cv_lib_svld_dlopen=no
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10482 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10483 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10487 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10488 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 ac_check_lib_save_LIBS=$LIBS
10492 LIBS="-ldld $LIBS"
10493 if test x$gcc_no_link = xyes; then
10494 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char dld_link ();
10507 main ()
10509 return dld_link ();
10511 return 0;
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 ac_cv_lib_dld_dld_link=yes
10516 else
10517 ac_cv_lib_dld_dld_link=no
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10524 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10525 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10526 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10545 esac
10547 if test "x$lt_cv_dlopen" != xno; then
10548 enable_dlopen=yes
10549 else
10550 enable_dlopen=no
10553 case $lt_cv_dlopen in
10554 dlopen)
10555 save_CPPFLAGS="$CPPFLAGS"
10556 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10558 save_LDFLAGS="$LDFLAGS"
10559 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10561 save_LIBS="$LIBS"
10562 LIBS="$lt_cv_dlopen_libs $LIBS"
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10565 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10566 if test "${lt_cv_dlopen_self+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 if test "$cross_compiling" = yes; then :
10570 lt_cv_dlopen_self=cross
10571 else
10572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10573 lt_status=$lt_dlunknown
10574 cat > conftest.$ac_ext <<_LT_EOF
10575 #line 10575 "configure"
10576 #include "confdefs.h"
10578 #if HAVE_DLFCN_H
10579 #include <dlfcn.h>
10580 #endif
10582 #include <stdio.h>
10584 #ifdef RTLD_GLOBAL
10585 # define LT_DLGLOBAL RTLD_GLOBAL
10586 #else
10587 # ifdef DL_GLOBAL
10588 # define LT_DLGLOBAL DL_GLOBAL
10589 # else
10590 # define LT_DLGLOBAL 0
10591 # endif
10592 #endif
10594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10595 find out it does not work in some platform. */
10596 #ifndef LT_DLLAZY_OR_NOW
10597 # ifdef RTLD_LAZY
10598 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10599 # else
10600 # ifdef DL_LAZY
10601 # define LT_DLLAZY_OR_NOW DL_LAZY
10602 # else
10603 # ifdef RTLD_NOW
10604 # define LT_DLLAZY_OR_NOW RTLD_NOW
10605 # else
10606 # ifdef DL_NOW
10607 # define LT_DLLAZY_OR_NOW DL_NOW
10608 # else
10609 # define LT_DLLAZY_OR_NOW 0
10610 # endif
10611 # endif
10612 # endif
10613 # endif
10614 #endif
10616 /* When -fvisbility=hidden is used, assume the code has been annotated
10617 correspondingly for the symbols needed. */
10618 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10619 void fnord () __attribute__((visibility("default")));
10620 #endif
10622 void fnord () { int i=42; }
10623 int main ()
10625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10626 int status = $lt_dlunknown;
10628 if (self)
10630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10631 else
10633 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10634 else puts (dlerror ());
10636 /* dlclose (self); */
10638 else
10639 puts (dlerror ());
10641 return status;
10643 _LT_EOF
10644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10645 (eval $ac_link) 2>&5
10646 ac_status=$?
10647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10649 (./conftest; exit; ) >&5 2>/dev/null
10650 lt_status=$?
10651 case x$lt_status in
10652 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10653 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10654 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10655 esac
10656 else :
10657 # compilation failed
10658 lt_cv_dlopen_self=no
10661 rm -fr conftest*
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10666 $as_echo "$lt_cv_dlopen_self" >&6; }
10668 if test "x$lt_cv_dlopen_self" = xyes; then
10669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10671 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10672 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 if test "$cross_compiling" = yes; then :
10676 lt_cv_dlopen_self_static=cross
10677 else
10678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10679 lt_status=$lt_dlunknown
10680 cat > conftest.$ac_ext <<_LT_EOF
10681 #line 10681 "configure"
10682 #include "confdefs.h"
10684 #if HAVE_DLFCN_H
10685 #include <dlfcn.h>
10686 #endif
10688 #include <stdio.h>
10690 #ifdef RTLD_GLOBAL
10691 # define LT_DLGLOBAL RTLD_GLOBAL
10692 #else
10693 # ifdef DL_GLOBAL
10694 # define LT_DLGLOBAL DL_GLOBAL
10695 # else
10696 # define LT_DLGLOBAL 0
10697 # endif
10698 #endif
10700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10701 find out it does not work in some platform. */
10702 #ifndef LT_DLLAZY_OR_NOW
10703 # ifdef RTLD_LAZY
10704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10705 # else
10706 # ifdef DL_LAZY
10707 # define LT_DLLAZY_OR_NOW DL_LAZY
10708 # else
10709 # ifdef RTLD_NOW
10710 # define LT_DLLAZY_OR_NOW RTLD_NOW
10711 # else
10712 # ifdef DL_NOW
10713 # define LT_DLLAZY_OR_NOW DL_NOW
10714 # else
10715 # define LT_DLLAZY_OR_NOW 0
10716 # endif
10717 # endif
10718 # endif
10719 # endif
10720 #endif
10722 /* When -fvisbility=hidden is used, assume the code has been annotated
10723 correspondingly for the symbols needed. */
10724 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10725 void fnord () __attribute__((visibility("default")));
10726 #endif
10728 void fnord () { int i=42; }
10729 int main ()
10731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10732 int status = $lt_dlunknown;
10734 if (self)
10736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10737 else
10739 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10740 else puts (dlerror ());
10742 /* dlclose (self); */
10744 else
10745 puts (dlerror ());
10747 return status;
10749 _LT_EOF
10750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10751 (eval $ac_link) 2>&5
10752 ac_status=$?
10753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10754 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10755 (./conftest; exit; ) >&5 2>/dev/null
10756 lt_status=$?
10757 case x$lt_status in
10758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10760 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10761 esac
10762 else :
10763 # compilation failed
10764 lt_cv_dlopen_self_static=no
10767 rm -fr conftest*
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10772 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10775 CPPFLAGS="$save_CPPFLAGS"
10776 LDFLAGS="$save_LDFLAGS"
10777 LIBS="$save_LIBS"
10779 esac
10781 case $lt_cv_dlopen_self in
10782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10783 *) enable_dlopen_self=unknown ;;
10784 esac
10786 case $lt_cv_dlopen_self_static in
10787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10788 *) enable_dlopen_self_static=unknown ;;
10789 esac
10808 striplib=
10809 old_striplib=
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10811 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10812 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10816 $as_echo "yes" >&6; }
10817 else
10818 # FIXME - insert some real tests, host_os isn't really good enough
10819 case $host_os in
10820 darwin*)
10821 if test -n "$STRIP" ; then
10822 striplib="$STRIP -x"
10823 old_striplib="$STRIP -S"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825 $as_echo "yes" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10835 esac
10849 # Report which library types will actually be built
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10851 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10853 $as_echo "$can_build_shared" >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10856 $as_echo_n "checking whether to build shared libraries... " >&6; }
10857 test "$can_build_shared" = "no" && enable_shared=no
10859 # On AIX, shared libraries and static libraries use the same namespace, and
10860 # are all built from PIC.
10861 case $host_os in
10862 aix3*)
10863 test "$enable_shared" = yes && enable_static=no
10864 if test -n "$RANLIB"; then
10865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10866 postinstall_cmds='$RANLIB $lib'
10870 aix[4-9]*)
10871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10872 test "$enable_shared" = yes && enable_static=no
10875 esac
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10877 $as_echo "$enable_shared" >&6; }
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10880 $as_echo_n "checking whether to build static libraries... " >&6; }
10881 # Make sure either enable_shared or enable_static is yes.
10882 test "$enable_shared" = yes || enable_static=yes
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10884 $as_echo "$enable_static" >&6; }
10890 ac_ext=c
10891 ac_cpp='$CPP $CPPFLAGS'
10892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10896 CC="$lt_save_CC"
10910 ac_config_commands="$ac_config_commands libtool"
10915 # Only expand once:
10921 case $host in
10922 *-cygwin* | *-mingw*)
10923 # 'host' will be top-level target in the case of a target lib,
10924 # we must compare to with_cross_host to decide if this is a native
10925 # or cross-compiler and select where to install dlls appropriately.
10926 if test -n "$with_cross_host" &&
10927 test x"$with_cross_host" != x"no"; then
10928 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10929 else
10930 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10934 lt_host_flags=
10936 esac
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10945 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10946 # Check whether --enable-maintainer-mode was given.
10947 if test "${enable_maintainer_mode+set}" = set; then :
10948 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10949 else
10950 USE_MAINTAINER_MODE=no
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10954 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10955 if test $USE_MAINTAINER_MODE = yes; then
10956 MAINTAINER_MODE_TRUE=
10957 MAINTAINER_MODE_FALSE='#'
10958 else
10959 MAINTAINER_MODE_TRUE='#'
10960 MAINTAINER_MODE_FALSE=
10963 MAINT=$MAINTAINER_MODE_TRUE
10967 ac_ext=c
10968 ac_cpp='$CPP $CPPFLAGS'
10969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10973 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10974 # We must force CC to /not/ be precious variables; otherwise
10975 # the wrong, non-multilib-adjusted value will be used in multilibs.
10976 # As a side effect, we have to subst CFLAGS ourselves.
10980 ac_ext=c
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10985 if test -n "$ac_tool_prefix"; then
10986 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10987 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if test "${ac_cv_prog_CC+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 if test -n "$CC"; then
10994 ac_cv_prog_CC="$CC" # Let the user override the test.
10995 else
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10999 IFS=$as_save_IFS
11000 test -z "$as_dir" && as_dir=.
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11003 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11005 break 2
11007 done
11008 done
11009 IFS=$as_save_IFS
11013 CC=$ac_cv_prog_CC
11014 if test -n "$CC"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11016 $as_echo "$CC" >&6; }
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11024 if test -z "$ac_cv_prog_CC"; then
11025 ac_ct_CC=$CC
11026 # Extract the first word of "gcc", so it can be a program name with args.
11027 set dummy gcc; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 if test -n "$ac_ct_CC"; then
11034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11035 else
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043 ac_cv_prog_ac_ct_CC="gcc"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11047 done
11048 done
11049 IFS=$as_save_IFS
11053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11054 if test -n "$ac_ct_CC"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11056 $as_echo "$ac_ct_CC" >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11062 if test "x$ac_ct_CC" = x; then
11063 CC=""
11064 else
11065 case $cross_compiling:$ac_tool_warned in
11066 yes:)
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11069 ac_tool_warned=yes ;;
11070 esac
11071 CC=$ac_ct_CC
11073 else
11074 CC="$ac_cv_prog_CC"
11077 if test -z "$CC"; then
11078 if test -n "$ac_tool_prefix"; then
11079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11080 set dummy ${ac_tool_prefix}cc; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if test "${ac_cv_prog_CC+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 if test -n "$CC"; then
11087 ac_cv_prog_CC="$CC" # Let the user override the test.
11088 else
11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090 for as_dir in $PATH
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11096 ac_cv_prog_CC="${ac_tool_prefix}cc"
11097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11100 done
11101 done
11102 IFS=$as_save_IFS
11106 CC=$ac_cv_prog_CC
11107 if test -n "$CC"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11109 $as_echo "$CC" >&6; }
11110 else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; }
11118 if test -z "$CC"; then
11119 # Extract the first word of "cc", so it can be a program name with args.
11120 set dummy cc; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if test "${ac_cv_prog_CC+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 if test -n "$CC"; then
11127 ac_cv_prog_CC="$CC" # Let the user override the test.
11128 else
11129 ac_prog_rejected=no
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in $PATH
11133 IFS=$as_save_IFS
11134 test -z "$as_dir" && as_dir=.
11135 for ac_exec_ext in '' $ac_executable_extensions; do
11136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11137 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11138 ac_prog_rejected=yes
11139 continue
11141 ac_cv_prog_CC="cc"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11145 done
11146 done
11147 IFS=$as_save_IFS
11149 if test $ac_prog_rejected = yes; then
11150 # We found a bogon in the path, so make sure we never use it.
11151 set dummy $ac_cv_prog_CC
11152 shift
11153 if test $# != 0; then
11154 # We chose a different compiler from the bogus one.
11155 # However, it has the same basename, so the bogon will be chosen
11156 # first if we set CC to just the basename; use the full file name.
11157 shift
11158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11163 CC=$ac_cv_prog_CC
11164 if test -n "$CC"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11166 $as_echo "$CC" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11174 if test -z "$CC"; then
11175 if test -n "$ac_tool_prefix"; then
11176 for ac_prog in cl.exe
11178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 $as_echo_n "checking for $ac_word... " >&6; }
11182 if test "${ac_cv_prog_CC+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test -n "$CC"; then
11186 ac_cv_prog_CC="$CC" # Let the user override the test.
11187 else
11188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189 for as_dir in $PATH
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 break 2
11199 done
11200 done
11201 IFS=$as_save_IFS
11205 CC=$ac_cv_prog_CC
11206 if test -n "$CC"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11208 $as_echo "$CC" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11215 test -n "$CC" && break
11216 done
11218 if test -z "$CC"; then
11219 ac_ct_CC=$CC
11220 for ac_prog in cl.exe
11222 # Extract the first word of "$ac_prog", so it can be a program name with args.
11223 set dummy $ac_prog; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 if test -n "$ac_ct_CC"; then
11230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_ac_ct_CC="$ac_prog"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11243 done
11244 done
11245 IFS=$as_save_IFS
11249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11250 if test -n "$ac_ct_CC"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11252 $as_echo "$ac_ct_CC" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11259 test -n "$ac_ct_CC" && break
11260 done
11262 if test "x$ac_ct_CC" = x; then
11263 CC=""
11264 else
11265 case $cross_compiling:$ac_tool_warned in
11266 yes:)
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11269 ac_tool_warned=yes ;;
11270 esac
11271 CC=$ac_ct_CC
11278 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11280 as_fn_error "no acceptable C compiler found in \$PATH
11281 See \`config.log' for more details." "$LINENO" 5; }
11283 # Provide some information about the compiler.
11284 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11285 set X $ac_compile
11286 ac_compiler=$2
11287 for ac_option in --version -v -V -qversion; do
11288 { { ac_try="$ac_compiler $ac_option >&5"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292 esac
11293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11294 $as_echo "$ac_try_echo"; } >&5
11295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11296 ac_status=$?
11297 if test -s conftest.err; then
11298 sed '10a\
11299 ... rest of stderr output deleted ...
11300 10q' conftest.err >conftest.er1
11301 cat conftest.er1 >&5
11302 rm -f conftest.er1 conftest.err
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; }
11306 done
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11310 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11317 main ()
11319 #ifndef __GNUC__
11320 choke me
11321 #endif
11324 return 0;
11326 _ACEOF
11327 if ac_fn_c_try_compile "$LINENO"; then :
11328 ac_compiler_gnu=yes
11329 else
11330 ac_compiler_gnu=no
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11337 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11338 if test $ac_compiler_gnu = yes; then
11339 GCC=yes
11340 else
11341 GCC=
11343 ac_test_CFLAGS=${CFLAGS+set}
11344 ac_save_CFLAGS=$CFLAGS
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11346 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11347 if test "${ac_cv_prog_cc_g+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 ac_save_c_werror_flag=$ac_c_werror_flag
11351 ac_c_werror_flag=yes
11352 ac_cv_prog_cc_g=no
11353 CFLAGS="-g"
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11358 main ()
11362 return 0;
11364 _ACEOF
11365 if ac_fn_c_try_compile "$LINENO"; then :
11366 ac_cv_prog_cc_g=yes
11367 else
11368 CFLAGS=""
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11373 main ()
11377 return 0;
11379 _ACEOF
11380 if ac_fn_c_try_compile "$LINENO"; then :
11382 else
11383 ac_c_werror_flag=$ac_save_c_werror_flag
11384 CFLAGS="-g"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11389 main ()
11393 return 0;
11395 _ACEOF
11396 if ac_fn_c_try_compile "$LINENO"; then :
11397 ac_cv_prog_cc_g=yes
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 ac_c_werror_flag=$ac_save_c_werror_flag
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11407 $as_echo "$ac_cv_prog_cc_g" >&6; }
11408 if test "$ac_test_CFLAGS" = set; then
11409 CFLAGS=$ac_save_CFLAGS
11410 elif test $ac_cv_prog_cc_g = yes; then
11411 if test "$GCC" = yes; then
11412 CFLAGS="-g -O2"
11413 else
11414 CFLAGS="-g"
11416 else
11417 if test "$GCC" = yes; then
11418 CFLAGS="-O2"
11419 else
11420 CFLAGS=
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11424 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11425 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 ac_cv_prog_cc_c89=no
11429 ac_save_CC=$CC
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #include <stdarg.h>
11433 #include <stdio.h>
11434 #include <sys/types.h>
11435 #include <sys/stat.h>
11436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11437 struct buf { int x; };
11438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11439 static char *e (p, i)
11440 char **p;
11441 int i;
11443 return p[i];
11445 static char *f (char * (*g) (char **, int), char **p, ...)
11447 char *s;
11448 va_list v;
11449 va_start (v,p);
11450 s = g (p, va_arg (v,int));
11451 va_end (v);
11452 return s;
11455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11456 function prototypes and stuff, but not '\xHH' hex character constants.
11457 These don't provoke an error unfortunately, instead are silently treated
11458 as 'x'. The following induces an error, until -std is added to get
11459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11460 array size at least. It's necessary to write '\x00'==0 to get something
11461 that's true only with -std. */
11462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11465 inside strings and character constants. */
11466 #define FOO(x) 'x'
11467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11469 int test (int i, double x);
11470 struct s1 {int (*f) (int a);};
11471 struct s2 {int (*f) (double a);};
11472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11473 int argc;
11474 char **argv;
11476 main ()
11478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11480 return 0;
11482 _ACEOF
11483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11486 CC="$ac_save_CC $ac_arg"
11487 if ac_fn_c_try_compile "$LINENO"; then :
11488 ac_cv_prog_cc_c89=$ac_arg
11490 rm -f core conftest.err conftest.$ac_objext
11491 test "x$ac_cv_prog_cc_c89" != "xno" && break
11492 done
11493 rm -f conftest.$ac_ext
11494 CC=$ac_save_CC
11497 # AC_CACHE_VAL
11498 case "x$ac_cv_prog_cc_c89" in
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11501 $as_echo "none needed" >&6; } ;;
11502 xno)
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11504 $as_echo "unsupported" >&6; } ;;
11506 CC="$CC $ac_cv_prog_cc_c89"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11509 esac
11510 if test "x$ac_cv_prog_cc_c89" != xno; then :
11514 ac_ext=c
11515 ac_cpp='$CPP $CPPFLAGS'
11516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11520 depcc="$CC" am_compiler_list=
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11523 $as_echo_n "checking dependency style of $depcc... " >&6; }
11524 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11528 # We make a subdir and do the tests there. Otherwise we can end up
11529 # making bogus files that we don't know about and never remove. For
11530 # instance it was reported that on HP-UX the gcc test will end up
11531 # making a dummy file named `D' -- because `-MD' means `put the output
11532 # in D'.
11533 rm -rf conftest.dir
11534 mkdir conftest.dir
11535 # Copy depcomp to subdir because otherwise we won't find it if we're
11536 # using a relative directory.
11537 cp "$am_depcomp" conftest.dir
11538 cd conftest.dir
11539 # We will build objects and dependencies in a subdirectory because
11540 # it helps to detect inapplicable dependency modes. For instance
11541 # both Tru64's cc and ICC support -MD to output dependencies as a
11542 # side effect of compilation, but ICC will put the dependencies in
11543 # the current directory while Tru64 will put them in the object
11544 # directory.
11545 mkdir sub
11547 am_cv_CC_dependencies_compiler_type=none
11548 if test "$am_compiler_list" = ""; then
11549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11551 am__universal=false
11552 case " $depcc " in #(
11553 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11554 esac
11556 for depmode in $am_compiler_list; do
11557 # Setup a source with many dependencies, because some compilers
11558 # like to wrap large dependency lists on column 80 (with \), and
11559 # we should not choose a depcomp mode which is confused by this.
11561 # We need to recreate these files for each test, as the compiler may
11562 # overwrite some of them when testing with obscure command lines.
11563 # This happens at least with the AIX C compiler.
11564 : > sub/conftest.c
11565 for i in 1 2 3 4 5 6; do
11566 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11568 # Solaris 8's {/usr,}/bin/sh.
11569 touch sub/conftst$i.h
11570 done
11571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11574 # mode. It turns out that the SunPro C++ compiler does not properly
11575 # handle `-M -o', and we need to detect this. Also, some Intel
11576 # versions had trouble with output in subdirs
11577 am__obj=sub/conftest.${OBJEXT-o}
11578 am__minus_obj="-o $am__obj"
11579 case $depmode in
11580 gcc)
11581 # This depmode causes a compiler race in universal mode.
11582 test "$am__universal" = false || continue
11584 nosideeffect)
11585 # after this tag, mechanisms are not by side-effect, so they'll
11586 # only be used when explicitly requested
11587 if test "x$enable_dependency_tracking" = xyes; then
11588 continue
11589 else
11590 break
11593 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11594 # This compiler won't grok `-c -o', but also, the minuso test has
11595 # not run yet. These depmodes are late enough in the game, and
11596 # so weak that their functioning should not be impacted.
11597 am__obj=conftest.${OBJEXT-o}
11598 am__minus_obj=
11600 none) break ;;
11601 esac
11602 if depmode=$depmode \
11603 source=sub/conftest.c object=$am__obj \
11604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11605 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11606 >/dev/null 2>conftest.err &&
11607 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11608 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11609 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11610 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11611 # icc doesn't choke on unknown options, it will just issue warnings
11612 # or remarks (even with -Werror). So we grep stderr for any message
11613 # that says an option was ignored or not supported.
11614 # When given -MP, icc 7.0 and 7.1 complain thusly:
11615 # icc: Command line warning: ignoring option '-M'; no argument required
11616 # The diagnosis changed in icc 8.0:
11617 # icc: Command line remark: option '-MP' not supported
11618 if (grep 'ignoring option' conftest.err ||
11619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11620 am_cv_CC_dependencies_compiler_type=$depmode
11621 break
11624 done
11626 cd ..
11627 rm -rf conftest.dir
11628 else
11629 am_cv_CC_dependencies_compiler_type=none
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11634 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11635 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11638 test "x$enable_dependency_tracking" != xno \
11639 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11640 am__fastdepCC_TRUE=
11641 am__fastdepCC_FALSE='#'
11642 else
11643 am__fastdepCC_TRUE='#'
11644 am__fastdepCC_FALSE=
11652 if test "x$CC" != xcc; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11659 set dummy $CC; ac_cc=`$as_echo "$2" |
11660 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11661 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11668 main ()
11672 return 0;
11674 _ACEOF
11675 # Make sure it works both with $CC and with simple cc.
11676 # We do the test twice because some compilers refuse to overwrite an
11677 # existing .o file with -o, though they will create one.
11678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11679 rm -f conftest2.*
11680 if { { case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683 esac
11684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11685 $as_echo "$ac_try_echo"; } >&5
11686 (eval "$ac_try") 2>&5
11687 ac_status=$?
11688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11689 test $ac_status = 0; } &&
11690 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11695 $as_echo "$ac_try_echo"; } >&5
11696 (eval "$ac_try") 2>&5
11697 ac_status=$?
11698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11699 test $ac_status = 0; };
11700 then
11701 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11702 if test "x$CC" != xcc; then
11703 # Test first that cc exists at all.
11704 if { ac_try='cc -c conftest.$ac_ext >&5'
11705 { { case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708 esac
11709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11710 $as_echo "$ac_try_echo"; } >&5
11711 (eval "$ac_try") 2>&5
11712 ac_status=$?
11713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714 test $ac_status = 0; }; }; then
11715 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11716 rm -f conftest2.*
11717 if { { case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720 esac
11721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11722 $as_echo "$ac_try_echo"; } >&5
11723 (eval "$ac_try") 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11726 test $ac_status = 0; } &&
11727 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730 esac
11731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11732 $as_echo "$ac_try_echo"; } >&5
11733 (eval "$ac_try") 2>&5
11734 ac_status=$?
11735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736 test $ac_status = 0; };
11737 then
11738 # cc works too.
11740 else
11741 # cc exists but doesn't like -o.
11742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11746 else
11747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11749 rm -f core conftest*
11752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754 $as_echo "yes" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11759 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11763 # FIXME: we rely on the cache variable name because
11764 # there is no other way.
11765 set dummy $CC
11766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11768 if test "$am_t" != yes; then
11769 # Losing compiler, so override with the script.
11770 # FIXME: It is wrong to rewrite CC.
11771 # But if we don't then we get into trouble of one sort or another.
11772 # A longer-term fix would be to have automake use am__CC in this case,
11773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11774 CC="$am_aux_dir/compile $CC"
11779 if test "x$GCC" != "xyes"; then
11780 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11782 ac_ext=c
11783 ac_cpp='$CPP $CPPFLAGS'
11784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11788 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11789 # On Suns, sometimes $CPP names a directory.
11790 if test -n "$CPP" && test -d "$CPP"; then
11791 CPP=
11793 if test -z "$CPP"; then
11794 if test "${ac_cv_prog_CPP+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 # Double quotes because CPP needs to be expanded
11798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11800 ac_preproc_ok=false
11801 for ac_c_preproc_warn_flag in '' yes
11803 # Use a header file that comes with gcc, so configuring glibc
11804 # with a fresh cross-compiler works.
11805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806 # <limits.h> exists even on freestanding compilers.
11807 # On the NeXT, cc -E runs the code through the compiler's parser,
11808 # not just through cpp. "Syntax error" is here to catch this case.
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #ifdef __STDC__
11812 # include <limits.h>
11813 #else
11814 # include <assert.h>
11815 #endif
11816 Syntax error
11817 _ACEOF
11818 if ac_fn_c_try_cpp "$LINENO"; then :
11820 else
11821 # Broken: fails on valid input.
11822 continue
11824 rm -f conftest.err conftest.$ac_ext
11826 # OK, works on sane cases. Now check whether nonexistent headers
11827 # can be detected and how.
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <ac_nonexistent.h>
11831 _ACEOF
11832 if ac_fn_c_try_cpp "$LINENO"; then :
11833 # Broken: success on invalid input.
11834 continue
11835 else
11836 # Passes both tests.
11837 ac_preproc_ok=:
11838 break
11840 rm -f conftest.err conftest.$ac_ext
11842 done
11843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11844 rm -f conftest.err conftest.$ac_ext
11845 if $ac_preproc_ok; then :
11846 break
11849 done
11850 ac_cv_prog_CPP=$CPP
11853 CPP=$ac_cv_prog_CPP
11854 else
11855 ac_cv_prog_CPP=$CPP
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11858 $as_echo "$CPP" >&6; }
11859 ac_preproc_ok=false
11860 for ac_c_preproc_warn_flag in '' yes
11862 # Use a header file that comes with gcc, so configuring glibc
11863 # with a fresh cross-compiler works.
11864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 # <limits.h> exists even on freestanding compilers.
11866 # On the NeXT, cc -E runs the code through the compiler's parser,
11867 # not just through cpp. "Syntax error" is here to catch this case.
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 #ifdef __STDC__
11871 # include <limits.h>
11872 #else
11873 # include <assert.h>
11874 #endif
11875 Syntax error
11876 _ACEOF
11877 if ac_fn_c_try_cpp "$LINENO"; then :
11879 else
11880 # Broken: fails on valid input.
11881 continue
11883 rm -f conftest.err conftest.$ac_ext
11885 # OK, works on sane cases. Now check whether nonexistent headers
11886 # can be detected and how.
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889 #include <ac_nonexistent.h>
11890 _ACEOF
11891 if ac_fn_c_try_cpp "$LINENO"; then :
11892 # Broken: success on invalid input.
11893 continue
11894 else
11895 # Passes both tests.
11896 ac_preproc_ok=:
11897 break
11899 rm -f conftest.err conftest.$ac_ext
11901 done
11902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11903 rm -f conftest.err conftest.$ac_ext
11904 if $ac_preproc_ok; then :
11906 else
11907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11909 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11910 See \`config.log' for more details." "$LINENO" 5; }
11913 ac_ext=c
11914 ac_cpp='$CPP $CPPFLAGS'
11915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11920 # Calculate toolexeclibdir
11921 # Also toolexecdir, though it's only used in toolexeclibdir
11922 case ${version_specific_libs} in
11923 yes)
11924 # Need the gcc compiler version to know where to install libraries
11925 # and header files if --enable-version-specific-runtime-libs option
11926 # is selected.
11927 toolexecdir='$(libdir)/gcc/$(target_alias)'
11928 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11931 if test -n "$with_cross_host" &&
11932 test x"$with_cross_host" != x"no"; then
11933 # Install a library built with a cross compiler in tooldir, not libdir.
11934 toolexecdir='$(exec_prefix)/$(target_alias)'
11935 toolexeclibdir='$(toolexecdir)/lib'
11936 else
11937 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11938 toolexeclibdir='$(libdir)'
11940 multi_os_directory=`$CC -print-multi-os-directory`
11941 case $multi_os_directory in
11942 .) ;; # Avoid trailing /.
11943 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11944 esac
11946 esac
11950 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
11951 do :
11952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11954 eval as_val=\$$as_ac_Header
11955 if test "x$as_val" = x""yes; then :
11956 cat >>confdefs.h <<_ACEOF
11957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11958 _ACEOF
11962 done
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11966 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11967 if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11971 save_CFLAGS="$CFLAGS"
11972 CFLAGS="$CFLAGS -Werror"
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11976 #include <math.h>
11977 void foo(void) { signgam = 1; }
11979 main ()
11983 return 0;
11985 _ACEOF
11986 if ac_fn_c_try_compile "$LINENO"; then :
11987 libgfor_cv_have_math_h_signgam=yes
11988 else
11989 libgfor_cv_have_math_h_signgam=no
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 CFLAGS="$save_CFLAGS"
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11995 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
11996 if test $libgfor_cv_have_math_h_signgam = yes; then
11998 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12002 # If available, sqrtl and cbrtl speed up the calculation -
12003 # but they are not required
12004 if test x$gcc_no_link != xyes; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12006 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12007 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-lm $LIBS"
12012 if test x$gcc_no_link = xyes; then
12013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 char sqrtl ();
12026 main ()
12028 return sqrtl ();
12030 return 0;
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"; then :
12034 ac_cv_lib_m_sqrtl=yes
12035 else
12036 ac_cv_lib_m_sqrtl=no
12038 rm -f core conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12043 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12044 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12046 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12051 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12052 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-lm $LIBS"
12057 if test x$gcc_no_link = xyes; then
12058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char cbrtl ();
12071 main ()
12073 return cbrtl ();
12075 return 0;
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_m_cbrtl=yes
12080 else
12081 ac_cv_lib_m_cbrtl=no
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12088 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12089 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12091 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12096 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12097 if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-lm $LIBS"
12102 if test x$gcc_no_link = xyes; then
12103 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 char feholdexcept ();
12116 main ()
12118 return feholdexcept ();
12120 return 0;
12122 _ACEOF
12123 if ac_fn_c_try_link "$LINENO"; then :
12124 ac_cv_lib_m_feholdexcept=yes
12125 else
12126 ac_cv_lib_m_feholdexcept=no
12128 rm -f core conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130 LIBS=$ac_check_lib_save_LIBS
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12133 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12134 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12136 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12141 $as_echo_n "checking for fesetround in -lm... " >&6; }
12142 if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-lm $LIBS"
12147 if test x$gcc_no_link = xyes; then
12148 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 char fesetround ();
12161 main ()
12163 return fesetround ();
12165 return 0;
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ac_cv_lib_m_fesetround=yes
12170 else
12171 ac_cv_lib_m_fesetround=no
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12178 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12179 if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12181 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12186 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12187 if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lm $LIBS"
12192 if test x$gcc_no_link = xyes; then
12193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char feupdateenv ();
12206 main ()
12208 return feupdateenv ();
12210 return 0;
12212 _ACEOF
12213 if ac_fn_c_try_link "$LINENO"; then :
12214 ac_cv_lib_m_feupdateenv=yes
12215 else
12216 ac_cv_lib_m_feupdateenv=no
12218 rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12223 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12224 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12226 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12231 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12232 if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-lm $LIBS"
12237 if test x$gcc_no_link = xyes; then
12238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char fesetenv ();
12251 main ()
12253 return fesetenv ();
12255 return 0;
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 ac_cv_lib_m_fesetenv=yes
12260 else
12261 ac_cv_lib_m_fesetenv=no
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12268 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12269 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12271 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12276 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12277 if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 ac_check_lib_save_LIBS=$LIBS
12281 LIBS="-lm $LIBS"
12282 if test x$gcc_no_link = xyes; then
12283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12288 /* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291 #ifdef __cplusplus
12292 extern "C"
12293 #endif
12294 char fetestexcept ();
12296 main ()
12298 return fetestexcept ();
12300 return 0;
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_m_fetestexcept=yes
12305 else
12306 ac_cv_lib_m_fetestexcept=no
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12313 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12314 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12316 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12320 for ac_func in strtoull
12321 do :
12322 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12323 if test "x$ac_cv_func_strtoull" = x""yes; then :
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_STRTOULL 1
12326 _ACEOF
12329 done
12331 else
12332 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12334 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12337 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12339 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12342 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12344 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12347 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12349 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12352 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12354 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12357 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12359 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12362 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12364 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12369 # Check for hidden visibility (copied from libssp).
12370 saved_CFLAGS="$CFLAGS"
12371 CFLAGS="$CFLAGS -Werror"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12373 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12377 void __attribute__((visibility ("hidden"))) bar (void) {}
12379 main ()
12383 return 0;
12385 _ACEOF
12386 if ac_fn_c_try_compile "$LINENO"; then :
12387 quadmath_hidden=yes
12388 else
12389 quadmath_hidden=no
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12393 $as_echo "$quadmath_hidden" >&6; }
12394 if test x$quadmath_hidden = xyes; then
12396 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12399 CFLAGS="$saved_CFLAGS"
12401 # Check for symbol versioning (copied from libssp).
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12403 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12404 # Check whether --enable-symvers was given.
12405 if test "${enable_symvers+set}" = set; then :
12406 enableval=$enable_symvers; quadmath_use_symver=$enableval
12407 else
12408 quadmath_use_symver=yes
12411 if test "x$quadmath_use_symver" != xno; then
12412 if test x$gcc_no_link = xyes; then
12413 # If we cannot link, we cannot build shared libraries, so do not use
12414 # symbol versioning.
12415 quadmath_use_symver=no
12416 else
12417 save_LDFLAGS="$LDFLAGS"
12418 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12419 cat > conftest.map <<EOF
12420 FOO_1.0 {
12421 global: *foo*; bar; local: *;
12424 if test x$gcc_no_link = xyes; then
12425 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 int foo;
12431 main ()
12435 return 0;
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 quadmath_use_symver=gnu
12440 else
12441 quadmath_use_symver=no
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 if test x$quadmath_use_symver = xno; then
12446 case "$target_os" in
12447 solaris2*)
12448 LDFLAGS="$save_LDFLAGS"
12449 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12450 # Sun ld cannot handle wildcards and treats all entries as undefined.
12451 cat > conftest.map <<EOF
12452 FOO_1.0 {
12453 global: foo; local: *;
12456 if test x$gcc_no_link = xyes; then
12457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 int foo;
12463 main ()
12467 return 0;
12469 _ACEOF
12470 if ac_fn_c_try_link "$LINENO"; then :
12471 quadmath_use_symver=sun
12472 else
12473 quadmath_use_symver=no
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12478 esac
12480 LDFLAGS="$save_LDFLAGS"
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12484 $as_echo "$quadmath_use_symver" >&6; }
12485 if test "x$quadmath_use_symver" != xno; then
12486 LIBQUAD_USE_SYMVER_TRUE=
12487 LIBQUAD_USE_SYMVER_FALSE='#'
12488 else
12489 LIBQUAD_USE_SYMVER_TRUE='#'
12490 LIBQUAD_USE_SYMVER_FALSE=
12493 if test "x$quadmath_use_symver" = xgnu; then
12494 LIBQUAD_USE_SYMVER_GNU_TRUE=
12495 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12496 else
12497 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12498 LIBQUAD_USE_SYMVER_GNU_FALSE=
12501 if test "x$quadmath_use_symver" = xsun; then
12502 LIBQUAD_USE_SYMVER_SUN_TRUE=
12503 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12504 else
12505 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12506 LIBQUAD_USE_SYMVER_SUN_FALSE=
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12511 $as_echo_n "checking whether __float128 is supported... " >&6; }
12512 if test "${libquad_cv_have_float128+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 if test x$gcc_no_link = xyes; then
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 typedef _Complex float __attribute__((mode(TC))) __complex128;
12521 __float128 foo (__float128 x)
12524 __complex128 z1, z2;
12526 z1 = x;
12527 z2 = x / 7.Q;
12528 z2 /= z1;
12530 return (__float128) z2;
12533 __float128 bar (__float128 x)
12535 return x * __builtin_huge_valq ();
12539 main ()
12542 foo (1.2Q);
12543 bar (1.2Q);
12546 return 0;
12548 _ACEOF
12549 if ac_fn_c_try_compile "$LINENO"; then :
12551 libquad_cv_have_float128=yes
12553 else
12555 libquad_cv_have_float128=no
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 else
12560 if test x$gcc_no_link = xyes; then
12561 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12566 typedef _Complex float __attribute__((mode(TC))) __complex128;
12568 __float128 foo (__float128 x)
12571 __complex128 z1, z2;
12573 z1 = x;
12574 z2 = x / 7.Q;
12575 z2 /= z1;
12577 return (__float128) z2;
12580 __float128 bar (__float128 x)
12582 return x * __builtin_huge_valq ();
12586 main ()
12589 foo (1.2Q);
12590 bar (1.2Q);
12593 return 0;
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12598 libquad_cv_have_float128=yes
12600 else
12602 libquad_cv_have_float128=no
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12610 $as_echo "$libquad_cv_have_float128" >&6; }
12611 if test "x$libquad_cv_have_float128" = xyes; then
12612 BUILD_LIBQUADMATH_TRUE=
12613 BUILD_LIBQUADMATH_FALSE='#'
12614 else
12615 BUILD_LIBQUADMATH_TRUE='#'
12616 BUILD_LIBQUADMATH_FALSE=
12620 # Check for printf hook support.
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12622 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12626 #include <printf.h>
12627 #include <stdarg.h>
12628 #include <stdlib.h>
12629 extern void flt128_va (void *, va_list *);
12630 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12631 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12634 main ()
12637 int pa_flt128 = register_printf_type (flt128_va);
12638 int mod_Q = register_printf_modifier (L"Q");
12639 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12640 struct printf_info info = { .user = -1 };
12643 return 0;
12645 _ACEOF
12646 if ac_fn_c_try_compile "$LINENO"; then :
12647 quadmath_printf_hooks=yes
12648 else
12649 quadmath_printf_hooks=no
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12653 $as_echo "$quadmath_printf_hooks" >&6; }
12654 if test x$quadmath_printf_hooks = xyes; then
12656 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12660 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12661 # should be provided.
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12663 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 #include <langinfo.h>
12668 main ()
12671 const char *s;
12672 s = nl_langinfo (DECIMAL_POINT);
12673 s = nl_langinfo (MON_DECIMAL_POINT);
12674 s = nl_langinfo (GROUPING);
12675 s = nl_langinfo (MON_GROUPING);
12676 s = nl_langinfo (THOUSANDS_SEP);
12677 s = nl_langinfo (MON_THOUSANDS_SEP);
12678 (void) s;
12681 return 0;
12683 _ACEOF
12684 if ac_fn_c_try_compile "$LINENO"; then :
12685 quadmath_use_nl_langinfo=yes
12686 else
12687 quadmath_use_nl_langinfo=no
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12691 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12692 if test x$quadmath_use_nl_langinfo = xyes; then
12694 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12699 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702 #include <langinfo.h>
12704 main ()
12707 const char *s;
12708 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12709 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12710 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12711 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12712 (void) s;
12715 return 0;
12717 _ACEOF
12718 if ac_fn_c_try_compile "$LINENO"; then :
12719 quadmath_use_nl_langinfo_wc=yes
12720 else
12721 quadmath_use_nl_langinfo_wc=no
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12725 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12726 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12728 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12733 $as_echo_n "checking whether localeconv should be used... " >&6; }
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12736 #include <locale.h>
12738 main ()
12741 const struct lconv *l = localeconv ();
12742 const char *s;
12743 s = l->decimal_point;
12744 s = l->mon_decimal_point;
12745 s = l->grouping;
12746 s = l->mon_grouping;
12747 s = l->thousands_sep;
12748 s = l->mon_thousands_sep;
12749 (void) s;
12752 return 0;
12754 _ACEOF
12755 if ac_fn_c_try_compile "$LINENO"; then :
12756 quadmath_use_localeconv=yes
12757 else
12758 quadmath_use_localeconv=no
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12762 $as_echo "$quadmath_use_localeconv" >&6; }
12763 if test x$quadmath_use_localeconv = xyes; then
12765 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12769 # Check for whether i18n number rewriting support for quadmath_snprintf
12770 # or Q printf hooks should be provided.
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12772 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775 #include <langinfo.h>
12776 #include <limits.h>
12777 #include <string.h>
12778 #include <wchar.h>
12779 #include <wctype.h>
12781 main ()
12784 const char *s;
12785 char decimal[MB_LEN_MAX];
12786 wctrans_t map = wctrans ("to_outpunct");
12787 wint_t wdecimal = towctrans (L'.', map);
12788 mbstate_t state;
12789 memset (&state, '\0', sizeof (state));
12790 wcrtomb (decimal, wdecimal, &state);
12791 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12792 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12793 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12794 (void) s;
12797 return 0;
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 quadmath_use_i18n_number_h=yes
12802 else
12803 quadmath_use_i18n_number_h=no
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12807 $as_echo "$quadmath_use_i18n_number_h" >&6; }
12808 if test x$quadmath_use_i18n_number_h = xyes; then
12810 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12814 cat >confcache <<\_ACEOF
12815 # This file is a shell script that caches the results of configure
12816 # tests run on this system so they can be shared between configure
12817 # scripts and configure runs, see configure's option --config-cache.
12818 # It is not useful on other systems. If it contains results you don't
12819 # want to keep, you may remove or edit it.
12821 # config.status only pays attention to the cache file if you give it
12822 # the --recheck option to rerun configure.
12824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12826 # following values.
12828 _ACEOF
12830 # The following way of writing the cache mishandles newlines in values,
12831 # but we know of no workaround that is simple, portable, and efficient.
12832 # So, we kill variables containing newlines.
12833 # Ultrix sh set writes to stderr and can't be redirected directly,
12834 # and sets the high bit in the cache file unless we assign to the vars.
12836 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12837 eval ac_val=\$$ac_var
12838 case $ac_val in #(
12839 *${as_nl}*)
12840 case $ac_var in #(
12841 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12842 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12843 esac
12844 case $ac_var in #(
12845 _ | IFS | as_nl) ;; #(
12846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12847 *) { eval $ac_var=; unset $ac_var;} ;;
12848 esac ;;
12849 esac
12850 done
12852 (set) 2>&1 |
12853 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12854 *${as_nl}ac_space=\ *)
12855 # `set' does not quote correctly, so add quotes: double-quote
12856 # substitution turns \\\\ into \\, and sed turns \\ into \.
12857 sed -n \
12858 "s/'/'\\\\''/g;
12859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12860 ;; #(
12862 # `set' quotes correctly as required by POSIX, so do not add quotes.
12863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12865 esac |
12866 sort
12868 sed '
12869 /^ac_cv_env_/b end
12870 t clear
12871 :clear
12872 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12873 t end
12874 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12875 :end' >>confcache
12876 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12877 if test -w "$cache_file"; then
12878 test "x$cache_file" != "x/dev/null" &&
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12880 $as_echo "$as_me: updating cache $cache_file" >&6;}
12881 cat confcache >$cache_file
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12884 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12887 rm -f confcache
12889 if test ${multilib} = yes; then
12890 multilib_arg="--enable-multilib"
12891 else
12892 multilib_arg=
12896 # We would like our source tree to be readonly. However when releases or
12897 # pre-releases are generated, the flex/bison generated files as well as the
12898 # various formats of manuals need to be included along with the rest of the
12899 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12900 # just that.
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12902 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12903 # Check whether --enable-generated-files-in-srcdir was given.
12904 if test "${enable_generated_files_in_srcdir+set}" = set; then :
12905 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12906 yes) enable_generated_files_in_srcdir=yes ;;
12907 no) enable_generated_files_in_srcdir=no ;;
12908 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12909 esac
12910 else
12911 enable_generated_files_in_srcdir=no
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12915 $as_echo "$enable_generated_files_in_srcdir" >&6; }
12916 if test "$enable_generated_files_in_srcdir" = yes; then
12917 GENINSRC_TRUE=
12918 GENINSRC_FALSE='#'
12919 else
12920 GENINSRC_TRUE='#'
12921 GENINSRC_FALSE=
12925 # Determine what GCC version number to use in filesystem paths.
12927 get_gcc_base_ver="cat"
12929 # Check whether --with-gcc-major-version-only was given.
12930 if test "${with_gcc_major_version_only+set}" = set; then :
12931 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12932 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
12940 ac_config_files="$ac_config_files Makefile"
12942 cat >confcache <<\_ACEOF
12943 # This file is a shell script that caches the results of configure
12944 # tests run on this system so they can be shared between configure
12945 # scripts and configure runs, see configure's option --config-cache.
12946 # It is not useful on other systems. If it contains results you don't
12947 # want to keep, you may remove or edit it.
12949 # config.status only pays attention to the cache file if you give it
12950 # the --recheck option to rerun configure.
12952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12954 # following values.
12956 _ACEOF
12958 # The following way of writing the cache mishandles newlines in values,
12959 # but we know of no workaround that is simple, portable, and efficient.
12960 # So, we kill variables containing newlines.
12961 # Ultrix sh set writes to stderr and can't be redirected directly,
12962 # and sets the high bit in the cache file unless we assign to the vars.
12964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12965 eval ac_val=\$$ac_var
12966 case $ac_val in #(
12967 *${as_nl}*)
12968 case $ac_var in #(
12969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12971 esac
12972 case $ac_var in #(
12973 _ | IFS | as_nl) ;; #(
12974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12975 *) { eval $ac_var=; unset $ac_var;} ;;
12976 esac ;;
12977 esac
12978 done
12980 (set) 2>&1 |
12981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12982 *${as_nl}ac_space=\ *)
12983 # `set' does not quote correctly, so add quotes: double-quote
12984 # substitution turns \\\\ into \\, and sed turns \\ into \.
12985 sed -n \
12986 "s/'/'\\\\''/g;
12987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12988 ;; #(
12990 # `set' quotes correctly as required by POSIX, so do not add quotes.
12991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12993 esac |
12994 sort
12996 sed '
12997 /^ac_cv_env_/b end
12998 t clear
12999 :clear
13000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13001 t end
13002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13003 :end' >>confcache
13004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13005 if test -w "$cache_file"; then
13006 test "x$cache_file" != "x/dev/null" &&
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13008 $as_echo "$as_me: updating cache $cache_file" >&6;}
13009 cat confcache >$cache_file
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13012 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13015 rm -f confcache
13017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13018 # Let make expand exec_prefix.
13019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13021 DEFS=-DHAVE_CONFIG_H
13023 ac_libobjs=
13024 ac_ltlibobjs=
13025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13026 # 1. Remove the extension, and $U if already installed.
13027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13028 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13030 # will be set to the directory where LIBOBJS objects are built.
13031 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13032 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13033 done
13034 LIBOBJS=$ac_libobjs
13036 LTLIBOBJS=$ac_ltlibobjs
13039 if test -n "$EXEEXT"; then
13040 am__EXEEXT_TRUE=
13041 am__EXEEXT_FALSE='#'
13042 else
13043 am__EXEEXT_TRUE='#'
13044 am__EXEEXT_FALSE=
13047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13048 as_fn_error "conditional \"AMDEP\" was never defined.
13049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13051 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13052 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13055 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13056 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13059 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13060 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13064 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13067 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13068 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13071 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13072 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13075 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13076 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13079 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13080 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
13081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13083 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13084 as_fn_error "conditional \"GENINSRC\" was never defined.
13085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13088 : ${CONFIG_STATUS=./config.status}
13089 ac_write_fail=0
13090 ac_clean_files_save=$ac_clean_files
13091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13093 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13094 as_write_fail=0
13095 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13096 #! $SHELL
13097 # Generated by $as_me.
13098 # Run this file to recreate the current configuration.
13099 # Compiler output produced by configure, useful for debugging
13100 # configure, is in config.log if it exists.
13102 debug=false
13103 ac_cs_recheck=false
13104 ac_cs_silent=false
13106 SHELL=\${CONFIG_SHELL-$SHELL}
13107 export SHELL
13108 _ASEOF
13109 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13110 ## -------------------- ##
13111 ## M4sh Initialization. ##
13112 ## -------------------- ##
13114 # Be more Bourne compatible
13115 DUALCASE=1; export DUALCASE # for MKS sh
13116 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13117 emulate sh
13118 NULLCMD=:
13119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13120 # is contrary to our usage. Disable this feature.
13121 alias -g '${1+"$@"}'='"$@"'
13122 setopt NO_GLOB_SUBST
13123 else
13124 case `(set -o) 2>/dev/null` in #(
13125 *posix*) :
13126 set -o posix ;; #(
13127 *) :
13129 esac
13133 as_nl='
13135 export as_nl
13136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13140 # Prefer a ksh shell builtin over an external printf program on Solaris,
13141 # but without wasting forks for bash or zsh.
13142 if test -z "$BASH_VERSION$ZSH_VERSION" \
13143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13144 as_echo='print -r --'
13145 as_echo_n='print -rn --'
13146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13147 as_echo='printf %s\n'
13148 as_echo_n='printf %s'
13149 else
13150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13152 as_echo_n='/usr/ucb/echo -n'
13153 else
13154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13155 as_echo_n_body='eval
13156 arg=$1;
13157 case $arg in #(
13158 *"$as_nl"*)
13159 expr "X$arg" : "X\\(.*\\)$as_nl";
13160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13161 esac;
13162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13164 export as_echo_n_body
13165 as_echo_n='sh -c $as_echo_n_body as_echo'
13167 export as_echo_body
13168 as_echo='sh -c $as_echo_body as_echo'
13171 # The user is always right.
13172 if test "${PATH_SEPARATOR+set}" != set; then
13173 PATH_SEPARATOR=:
13174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13176 PATH_SEPARATOR=';'
13181 # IFS
13182 # We need space, tab and new line, in precisely that order. Quoting is
13183 # there to prevent editors from complaining about space-tab.
13184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13185 # splitting by setting IFS to empty value.)
13186 IFS=" "" $as_nl"
13188 # Find who we are. Look in the path if we contain no directory separator.
13189 case $0 in #((
13190 *[\\/]* ) as_myself=$0 ;;
13191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13194 IFS=$as_save_IFS
13195 test -z "$as_dir" && as_dir=.
13196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13197 done
13198 IFS=$as_save_IFS
13201 esac
13202 # We did not find ourselves, most probably we were run as `sh COMMAND'
13203 # in which case we are not to be found in the path.
13204 if test "x$as_myself" = x; then
13205 as_myself=$0
13207 if test ! -f "$as_myself"; then
13208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13209 exit 1
13212 # Unset variables that we do not need and which cause bugs (e.g. in
13213 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13214 # suppresses any "Segmentation fault" message there. '((' could
13215 # trigger a bug in pdksh 5.2.14.
13216 for as_var in BASH_ENV ENV MAIL MAILPATH
13217 do eval test x\${$as_var+set} = xset \
13218 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13219 done
13220 PS1='$ '
13221 PS2='> '
13222 PS4='+ '
13224 # NLS nuisances.
13225 LC_ALL=C
13226 export LC_ALL
13227 LANGUAGE=C
13228 export LANGUAGE
13230 # CDPATH.
13231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13234 # as_fn_error ERROR [LINENO LOG_FD]
13235 # ---------------------------------
13236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13238 # script with status $?, using 1 if that was 0.
13239 as_fn_error ()
13241 as_status=$?; test $as_status -eq 0 && as_status=1
13242 if test "$3"; then
13243 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13246 $as_echo "$as_me: error: $1" >&2
13247 as_fn_exit $as_status
13248 } # as_fn_error
13251 # as_fn_set_status STATUS
13252 # -----------------------
13253 # Set $? to STATUS, without forking.
13254 as_fn_set_status ()
13256 return $1
13257 } # as_fn_set_status
13259 # as_fn_exit STATUS
13260 # -----------------
13261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13262 as_fn_exit ()
13264 set +e
13265 as_fn_set_status $1
13266 exit $1
13267 } # as_fn_exit
13269 # as_fn_unset VAR
13270 # ---------------
13271 # Portably unset VAR.
13272 as_fn_unset ()
13274 { eval $1=; unset $1;}
13276 as_unset=as_fn_unset
13277 # as_fn_append VAR VALUE
13278 # ----------------------
13279 # Append the text in VALUE to the end of the definition contained in VAR. Take
13280 # advantage of any shell optimizations that allow amortized linear growth over
13281 # repeated appends, instead of the typical quadratic growth present in naive
13282 # implementations.
13283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13284 eval 'as_fn_append ()
13286 eval $1+=\$2
13288 else
13289 as_fn_append ()
13291 eval $1=\$$1\$2
13293 fi # as_fn_append
13295 # as_fn_arith ARG...
13296 # ------------------
13297 # Perform arithmetic evaluation on the ARGs, and store the result in the
13298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13299 # must be portable across $(()) and expr.
13300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13301 eval 'as_fn_arith ()
13303 as_val=$(( $* ))
13305 else
13306 as_fn_arith ()
13308 as_val=`expr "$@" || test $? -eq 1`
13310 fi # as_fn_arith
13313 if expr a : '\(a\)' >/dev/null 2>&1 &&
13314 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13315 as_expr=expr
13316 else
13317 as_expr=false
13320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13321 as_basename=basename
13322 else
13323 as_basename=false
13326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13327 as_dirname=dirname
13328 else
13329 as_dirname=false
13332 as_me=`$as_basename -- "$0" ||
13333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13334 X"$0" : 'X\(//\)$' \| \
13335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13336 $as_echo X/"$0" |
13337 sed '/^.*\/\([^/][^/]*\)\/*$/{
13338 s//\1/
13341 /^X\/\(\/\/\)$/{
13342 s//\1/
13345 /^X\/\(\/\).*/{
13346 s//\1/
13349 s/.*/./; q'`
13351 # Avoid depending upon Character Ranges.
13352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13355 as_cr_digits='0123456789'
13356 as_cr_alnum=$as_cr_Letters$as_cr_digits
13358 ECHO_C= ECHO_N= ECHO_T=
13359 case `echo -n x` in #(((((
13360 -n*)
13361 case `echo 'xy\c'` in
13362 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13363 xy) ECHO_C='\c';;
13364 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13365 ECHO_T=' ';;
13366 esac;;
13368 ECHO_N='-n';;
13369 esac
13371 rm -f conf$$ conf$$.exe conf$$.file
13372 if test -d conf$$.dir; then
13373 rm -f conf$$.dir/conf$$.file
13374 else
13375 rm -f conf$$.dir
13376 mkdir conf$$.dir 2>/dev/null
13378 if (echo >conf$$.file) 2>/dev/null; then
13379 if ln -s conf$$.file conf$$ 2>/dev/null; then
13380 as_ln_s='ln -s'
13381 # ... but there are two gotchas:
13382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13384 # In both cases, we have to default to `cp -p'.
13385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13386 as_ln_s='cp -p'
13387 elif ln conf$$.file conf$$ 2>/dev/null; then
13388 as_ln_s=ln
13389 else
13390 as_ln_s='cp -p'
13392 else
13393 as_ln_s='cp -p'
13395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13396 rmdir conf$$.dir 2>/dev/null
13399 # as_fn_mkdir_p
13400 # -------------
13401 # Create "$as_dir" as a directory, including parents if necessary.
13402 as_fn_mkdir_p ()
13405 case $as_dir in #(
13406 -*) as_dir=./$as_dir;;
13407 esac
13408 test -d "$as_dir" || eval $as_mkdir_p || {
13409 as_dirs=
13410 while :; do
13411 case $as_dir in #(
13412 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13413 *) as_qdir=$as_dir;;
13414 esac
13415 as_dirs="'$as_qdir' $as_dirs"
13416 as_dir=`$as_dirname -- "$as_dir" ||
13417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13418 X"$as_dir" : 'X\(//\)[^/]' \| \
13419 X"$as_dir" : 'X\(//\)$' \| \
13420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13421 $as_echo X"$as_dir" |
13422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13423 s//\1/
13426 /^X\(\/\/\)[^/].*/{
13427 s//\1/
13430 /^X\(\/\/\)$/{
13431 s//\1/
13434 /^X\(\/\).*/{
13435 s//\1/
13438 s/.*/./; q'`
13439 test -d "$as_dir" && break
13440 done
13441 test -z "$as_dirs" || eval "mkdir $as_dirs"
13442 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13445 } # as_fn_mkdir_p
13446 if mkdir -p . 2>/dev/null; then
13447 as_mkdir_p='mkdir -p "$as_dir"'
13448 else
13449 test -d ./-p && rmdir ./-p
13450 as_mkdir_p=false
13453 if test -x / >/dev/null 2>&1; then
13454 as_test_x='test -x'
13455 else
13456 if ls -dL / >/dev/null 2>&1; then
13457 as_ls_L_option=L
13458 else
13459 as_ls_L_option=
13461 as_test_x='
13462 eval sh -c '\''
13463 if test -d "$1"; then
13464 test -d "$1/.";
13465 else
13466 case $1 in #(
13467 -*)set "./$1";;
13468 esac;
13469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13470 ???[sx]*):;;*)false;;esac;fi
13471 '\'' sh
13474 as_executable_p=$as_test_x
13476 # Sed expression to map a string onto a valid CPP name.
13477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13479 # Sed expression to map a string onto a valid variable name.
13480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13483 exec 6>&1
13484 ## ----------------------------------- ##
13485 ## Main body of $CONFIG_STATUS script. ##
13486 ## ----------------------------------- ##
13487 _ASEOF
13488 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13491 # Save the log message, to keep $0 and so on meaningful, and to
13492 # report actual input values of CONFIG_FILES etc. instead of their
13493 # values after options handling.
13494 ac_log="
13495 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13496 generated by GNU Autoconf 2.64. Invocation command line was
13498 CONFIG_FILES = $CONFIG_FILES
13499 CONFIG_HEADERS = $CONFIG_HEADERS
13500 CONFIG_LINKS = $CONFIG_LINKS
13501 CONFIG_COMMANDS = $CONFIG_COMMANDS
13502 $ $0 $@
13504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13507 _ACEOF
13509 case $ac_config_files in *"
13510 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13511 esac
13513 case $ac_config_headers in *"
13514 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13515 esac
13518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13519 # Files that config.status was made for.
13520 config_files="$ac_config_files"
13521 config_headers="$ac_config_headers"
13522 config_commands="$ac_config_commands"
13524 _ACEOF
13526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527 ac_cs_usage="\
13528 \`$as_me' instantiates files and other configuration actions
13529 from templates according to the current configuration. Unless the files
13530 and actions are specified as TAGs, all are instantiated by default.
13532 Usage: $0 [OPTION]... [TAG]...
13534 -h, --help print this help, then exit
13535 -V, --version print version number and configuration settings, then exit
13536 -q, --quiet, --silent
13537 do not print progress messages
13538 -d, --debug don't remove temporary files
13539 --recheck update $as_me by reconfiguring in the same conditions
13540 --file=FILE[:TEMPLATE]
13541 instantiate the configuration file FILE
13542 --header=FILE[:TEMPLATE]
13543 instantiate the configuration header FILE
13545 Configuration files:
13546 $config_files
13548 Configuration headers:
13549 $config_headers
13551 Configuration commands:
13552 $config_commands
13554 Report bugs to the package provider."
13556 _ACEOF
13557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558 ac_cs_version="\\
13559 GCC Quad-precision Math Library config.status 0.1
13560 configured by $0, generated by GNU Autoconf 2.64,
13561 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13563 Copyright (C) 2009 Free Software Foundation, Inc.
13564 This config.status script is free software; the Free Software Foundation
13565 gives unlimited permission to copy, distribute and modify it."
13567 ac_pwd='$ac_pwd'
13568 srcdir='$srcdir'
13569 INSTALL='$INSTALL'
13570 MKDIR_P='$MKDIR_P'
13571 AWK='$AWK'
13572 test -n "\$AWK" || AWK=awk
13573 _ACEOF
13575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13576 # The default lists apply if the user does not specify any file.
13577 ac_need_defaults=:
13578 while test $# != 0
13580 case $1 in
13581 --*=*)
13582 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13583 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13584 ac_shift=:
13587 ac_option=$1
13588 ac_optarg=$2
13589 ac_shift=shift
13591 esac
13593 case $ac_option in
13594 # Handling of the options.
13595 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13596 ac_cs_recheck=: ;;
13597 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13598 $as_echo "$ac_cs_version"; exit ;;
13599 --debug | --debu | --deb | --de | --d | -d )
13600 debug=: ;;
13601 --file | --fil | --fi | --f )
13602 $ac_shift
13603 case $ac_optarg in
13604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13605 esac
13606 as_fn_append CONFIG_FILES " '$ac_optarg'"
13607 ac_need_defaults=false;;
13608 --header | --heade | --head | --hea )
13609 $ac_shift
13610 case $ac_optarg in
13611 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13612 esac
13613 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13614 ac_need_defaults=false;;
13615 --he | --h)
13616 # Conflict between --help and --header
13617 as_fn_error "ambiguous option: \`$1'
13618 Try \`$0 --help' for more information.";;
13619 --help | --hel | -h )
13620 $as_echo "$ac_cs_usage"; exit ;;
13621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13623 ac_cs_silent=: ;;
13625 # This is an error.
13626 -*) as_fn_error "unrecognized option: \`$1'
13627 Try \`$0 --help' for more information." ;;
13629 *) as_fn_append ac_config_targets " $1"
13630 ac_need_defaults=false ;;
13632 esac
13633 shift
13634 done
13636 ac_configure_extra_args=
13638 if $ac_cs_silent; then
13639 exec 6>/dev/null
13640 ac_configure_extra_args="$ac_configure_extra_args --silent"
13643 _ACEOF
13644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13645 if \$ac_cs_recheck; then
13646 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13647 shift
13648 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13649 CONFIG_SHELL='$SHELL'
13650 export CONFIG_SHELL
13651 exec "\$@"
13654 _ACEOF
13655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13656 exec 5>>config.log
13658 echo
13659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13660 ## Running $as_me. ##
13661 _ASBOX
13662 $as_echo "$ac_log"
13663 } >&5
13665 _ACEOF
13666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13668 # INIT-COMMANDS
13671 srcdir="$srcdir"
13672 host="$host"
13673 target="$target"
13674 with_multisubdir="$with_multisubdir"
13675 with_multisrctop="$with_multisrctop"
13676 with_target_subdir="$with_target_subdir"
13677 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13678 multi_basedir="$multi_basedir"
13679 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13680 CC="$CC"
13681 CXX="$CXX"
13682 GFORTRAN="$GFORTRAN"
13683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13686 # The HP-UX ksh and POSIX shell print the target directory to stdout
13687 # if CDPATH is set.
13688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13690 sed_quote_subst='$sed_quote_subst'
13691 double_quote_subst='$double_quote_subst'
13692 delay_variable_subst='$delay_variable_subst'
13693 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13694 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13695 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13696 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13697 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13698 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13699 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13700 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13701 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13702 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13703 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13704 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13705 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13706 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13707 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13708 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13709 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13710 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13711 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13712 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13713 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13714 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13715 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13716 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13717 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13718 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13719 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13720 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13721 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13722 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13723 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13724 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13725 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13726 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13727 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13728 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13729 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13730 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13731 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13732 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13733 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13734 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13735 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13736 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13737 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13738 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13739 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13740 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13741 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"`'
13742 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13743 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13744 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13745 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13746 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13747 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13748 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13749 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13750 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13751 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13752 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13753 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13754 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13755 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13756 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13757 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13758 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13759 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13760 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13761 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13762 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13763 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13764 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13765 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13766 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13767 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13768 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13769 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13770 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13771 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13772 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13773 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13774 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13775 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13776 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13777 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13778 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13779 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13780 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13781 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13782 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13783 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13784 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13785 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13786 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13787 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13788 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13789 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13790 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13791 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13792 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13793 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13794 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13795 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13796 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13797 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13798 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13799 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13800 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13801 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13802 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13803 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13804 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13805 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13806 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13807 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13808 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13809 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13810 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13811 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13812 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13814 LTCC='$LTCC'
13815 LTCFLAGS='$LTCFLAGS'
13816 compiler='$compiler_DEFAULT'
13818 # A function that is used when there is no print builtin or printf.
13819 func_fallback_echo ()
13821 eval 'cat <<_LTECHO_EOF
13823 _LTECHO_EOF'
13826 # Quote evaled strings.
13827 for var in SHELL \
13828 ECHO \
13829 SED \
13830 GREP \
13831 EGREP \
13832 FGREP \
13833 LD \
13834 NM \
13835 LN_S \
13836 lt_SP2NL \
13837 lt_NL2SP \
13838 reload_flag \
13839 OBJDUMP \
13840 deplibs_check_method \
13841 file_magic_cmd \
13842 AR \
13843 AR_FLAGS \
13844 STRIP \
13845 RANLIB \
13846 CC \
13847 CFLAGS \
13848 compiler \
13849 lt_cv_sys_global_symbol_pipe \
13850 lt_cv_sys_global_symbol_to_cdecl \
13851 lt_cv_sys_global_symbol_to_c_name_address \
13852 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13853 lt_prog_compiler_no_builtin_flag \
13854 lt_prog_compiler_wl \
13855 lt_prog_compiler_pic \
13856 lt_prog_compiler_static \
13857 lt_cv_prog_compiler_c_o \
13858 need_locks \
13859 DSYMUTIL \
13860 NMEDIT \
13861 LIPO \
13862 OTOOL \
13863 OTOOL64 \
13864 shrext_cmds \
13865 export_dynamic_flag_spec \
13866 whole_archive_flag_spec \
13867 compiler_needs_object \
13868 with_gnu_ld \
13869 allow_undefined_flag \
13870 no_undefined_flag \
13871 hardcode_libdir_flag_spec \
13872 hardcode_libdir_flag_spec_ld \
13873 hardcode_libdir_separator \
13874 fix_srcfile_path \
13875 exclude_expsyms \
13876 include_expsyms \
13877 file_list_spec \
13878 variables_saved_for_relink \
13879 libname_spec \
13880 library_names_spec \
13881 soname_spec \
13882 install_override_mode \
13883 finish_eval \
13884 old_striplib \
13885 striplib; do
13886 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13887 *[\\\\\\\`\\"\\\$]*)
13888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13893 esac
13894 done
13896 # Double-quote double-evaled strings.
13897 for var in reload_cmds \
13898 old_postinstall_cmds \
13899 old_postuninstall_cmds \
13900 old_archive_cmds \
13901 extract_expsyms_cmds \
13902 old_archive_from_new_cmds \
13903 old_archive_from_expsyms_cmds \
13904 archive_cmds \
13905 archive_expsym_cmds \
13906 module_cmds \
13907 module_expsym_cmds \
13908 export_symbols_cmds \
13909 prelink_cmds \
13910 postinstall_cmds \
13911 postuninstall_cmds \
13912 finish_cmds \
13913 sys_lib_search_path_spec \
13914 sys_lib_dlsearch_path_spec; do
13915 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13916 *[\\\\\\\`\\"\\\$]*)
13917 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13920 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13922 esac
13923 done
13925 ac_aux_dir='$ac_aux_dir'
13926 xsi_shell='$xsi_shell'
13927 lt_shell_append='$lt_shell_append'
13929 # See if we are running on zsh, and set the options which allow our
13930 # commands through without removal of \ escapes INIT.
13931 if test -n "\${ZSH_VERSION+set}" ; then
13932 setopt NO_GLOB_SUBST
13936 PACKAGE='$PACKAGE'
13937 VERSION='$VERSION'
13938 TIMESTAMP='$TIMESTAMP'
13939 RM='$RM'
13940 ofile='$ofile'
13945 _ACEOF
13947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949 # Handling of arguments.
13950 for ac_config_target in $ac_config_targets
13952 case $ac_config_target in
13953 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13954 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13955 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13956 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13959 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13960 esac
13961 done
13964 # If the user did not use the arguments to specify the items to instantiate,
13965 # then the envvar interface is used. Set only those that are not.
13966 # We use the long form for the default assignment because of an extremely
13967 # bizarre bug on SunOS 4.1.3.
13968 if $ac_need_defaults; then
13969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13974 # Have a temporary directory for convenience. Make it in the build tree
13975 # simply because there is no reason against having it here, and in addition,
13976 # creating and moving files from /tmp can sometimes cause problems.
13977 # Hook for its removal unless debugging.
13978 # Note that there is a small window in which the directory will not be cleaned:
13979 # after its creation but before its name has been assigned to `$tmp'.
13980 $debug ||
13982 tmp=
13983 trap 'exit_status=$?
13984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13986 trap 'as_fn_exit 1' 1 2 13 15
13988 # Create a (secure) tmp directory for tmp files.
13991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13992 test -n "$tmp" && test -d "$tmp"
13993 } ||
13995 tmp=./conf$$-$RANDOM
13996 (umask 077 && mkdir "$tmp")
13997 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13999 # Set up the scripts for CONFIG_FILES section.
14000 # No need to generate them if there are no CONFIG_FILES.
14001 # This happens for instance with `./config.status config.h'.
14002 if test -n "$CONFIG_FILES"; then
14005 ac_cr=`echo X | tr X '\015'`
14006 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14007 # But we know of no other shell where ac_cr would be empty at this
14008 # point, so we can use a bashism as a fallback.
14009 if test "x$ac_cr" = x; then
14010 eval ac_cr=\$\'\\r\'
14012 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14013 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14014 ac_cs_awk_cr='\r'
14015 else
14016 ac_cs_awk_cr=$ac_cr
14019 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14020 _ACEOF
14024 echo "cat >conf$$subs.awk <<_ACEOF" &&
14025 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14026 echo "_ACEOF"
14027 } >conf$$subs.sh ||
14028 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14030 ac_delim='%!_!# '
14031 for ac_last_try in false false false false false :; do
14032 . ./conf$$subs.sh ||
14033 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14035 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14036 if test $ac_delim_n = $ac_delim_num; then
14037 break
14038 elif $ac_last_try; then
14039 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14040 else
14041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14043 done
14044 rm -f conf$$subs.sh
14046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14047 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14048 _ACEOF
14049 sed -n '
14051 s/^/S["/; s/!.*/"]=/
14054 s/^[^!]*!//
14055 :repl
14056 t repl
14057 s/'"$ac_delim"'$//
14058 t delim
14061 s/\(.\{148\}\).*/\1/
14062 t more1
14063 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14066 b repl
14067 :more1
14068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14071 s/.\{148\}//
14072 t nl
14073 :delim
14075 s/\(.\{148\}\).*/\1/
14076 t more2
14077 s/["\\]/\\&/g; s/^/"/; s/$/"/
14080 :more2
14081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14084 s/.\{148\}//
14085 t delim
14086 ' <conf$$subs.awk | sed '
14087 /^[^""]/{
14089 s/\n//
14091 ' >>$CONFIG_STATUS || ac_write_fail=1
14092 rm -f conf$$subs.awk
14093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14094 _ACAWK
14095 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14096 for (key in S) S_is_set[key] = 1
14097 FS = "\a"
14101 line = $ 0
14102 nfields = split(line, field, "@")
14103 substed = 0
14104 len = length(field[1])
14105 for (i = 2; i < nfields; i++) {
14106 key = field[i]
14107 keylen = length(key)
14108 if (S_is_set[key]) {
14109 value = S[key]
14110 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14111 len += length(value) + length(field[++i])
14112 substed = 1
14113 } else
14114 len += 1 + keylen
14117 print line
14120 _ACAWK
14121 _ACEOF
14122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14124 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14125 else
14127 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14128 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14129 _ACEOF
14131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14133 # trailing colons and then remove the whole line if VPATH becomes empty
14134 # (actually we leave an empty line to preserve line numbers).
14135 if test "x$srcdir" = x.; then
14136 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14137 s/:*\$(srcdir):*/:/
14138 s/:*\${srcdir}:*/:/
14139 s/:*@srcdir@:*/:/
14140 s/^\([^=]*=[ ]*\):*/\1/
14141 s/:*$//
14142 s/^[^=]*=[ ]*$//
14146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14147 fi # test -n "$CONFIG_FILES"
14149 # Set up the scripts for CONFIG_HEADERS section.
14150 # No need to generate them if there are no CONFIG_HEADERS.
14151 # This happens for instance with `./config.status Makefile'.
14152 if test -n "$CONFIG_HEADERS"; then
14153 cat >"$tmp/defines.awk" <<\_ACAWK ||
14154 BEGIN {
14155 _ACEOF
14157 # Transform confdefs.h into an awk script `defines.awk', embedded as
14158 # here-document in config.status, that substitutes the proper values into
14159 # config.h.in to produce config.h.
14161 # Create a delimiter string that does not exist in confdefs.h, to ease
14162 # handling of long lines.
14163 ac_delim='%!_!# '
14164 for ac_last_try in false false :; do
14165 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14166 if test -z "$ac_t"; then
14167 break
14168 elif $ac_last_try; then
14169 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14170 else
14171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14173 done
14175 # For the awk script, D is an array of macro values keyed by name,
14176 # likewise P contains macro parameters if any. Preserve backslash
14177 # newline sequences.
14179 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14180 sed -n '
14181 s/.\{148\}/&'"$ac_delim"'/g
14182 t rset
14183 :rset
14184 s/^[ ]*#[ ]*define[ ][ ]*/ /
14185 t def
14187 :def
14188 s/\\$//
14189 t bsnl
14190 s/["\\]/\\&/g
14191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14192 D["\1"]=" \3"/p
14193 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14195 :bsnl
14196 s/["\\]/\\&/g
14197 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14198 D["\1"]=" \3\\\\\\n"\\/p
14199 t cont
14200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14201 t cont
14203 :cont
14205 s/.\{148\}/&'"$ac_delim"'/g
14206 t clear
14207 :clear
14208 s/\\$//
14209 t bsnlc
14210 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14212 :bsnlc
14213 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14214 b cont
14215 ' <confdefs.h | sed '
14216 s/'"$ac_delim"'/"\\\
14217 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14220 for (key in D) D_is_set[key] = 1
14221 FS = "\a"
14223 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14224 line = \$ 0
14225 split(line, arg, " ")
14226 if (arg[1] == "#") {
14227 defundef = arg[2]
14228 mac1 = arg[3]
14229 } else {
14230 defundef = substr(arg[1], 2)
14231 mac1 = arg[2]
14233 split(mac1, mac2, "(") #)
14234 macro = mac2[1]
14235 prefix = substr(line, 1, index(line, defundef) - 1)
14236 if (D_is_set[macro]) {
14237 # Preserve the white space surrounding the "#".
14238 print prefix "define", macro P[macro] D[macro]
14239 next
14240 } else {
14241 # Replace #undef with comments. This is necessary, for example,
14242 # in the case of _POSIX_SOURCE, which is predefined and required
14243 # on some systems where configure will not decide to define it.
14244 if (defundef == "undef") {
14245 print "/*", prefix defundef, macro, "*/"
14246 next
14250 { print }
14251 _ACAWK
14252 _ACEOF
14253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14254 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14255 fi # test -n "$CONFIG_HEADERS"
14258 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14259 shift
14260 for ac_tag
14262 case $ac_tag in
14263 :[FHLC]) ac_mode=$ac_tag; continue;;
14264 esac
14265 case $ac_mode$ac_tag in
14266 :[FHL]*:*);;
14267 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14268 :[FH]-) ac_tag=-:-;;
14269 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14270 esac
14271 ac_save_IFS=$IFS
14272 IFS=:
14273 set x $ac_tag
14274 IFS=$ac_save_IFS
14275 shift
14276 ac_file=$1
14277 shift
14279 case $ac_mode in
14280 :L) ac_source=$1;;
14281 :[FH])
14282 ac_file_inputs=
14283 for ac_f
14285 case $ac_f in
14286 -) ac_f="$tmp/stdin";;
14287 *) # Look for the file first in the build tree, then in the source tree
14288 # (if the path is not absolute). The absolute path cannot be DOS-style,
14289 # because $ac_f cannot contain `:'.
14290 test -f "$ac_f" ||
14291 case $ac_f in
14292 [\\/$]*) false;;
14293 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14294 esac ||
14295 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14296 esac
14297 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14298 as_fn_append ac_file_inputs " '$ac_f'"
14299 done
14301 # Let's still pretend it is `configure' which instantiates (i.e., don't
14302 # use $as_me), people would be surprised to read:
14303 # /* config.h. Generated by config.status. */
14304 configure_input='Generated from '`
14305 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14306 `' by configure.'
14307 if test x"$ac_file" != x-; then
14308 configure_input="$ac_file. $configure_input"
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14310 $as_echo "$as_me: creating $ac_file" >&6;}
14312 # Neutralize special characters interpreted by sed in replacement strings.
14313 case $configure_input in #(
14314 *\&* | *\|* | *\\* )
14315 ac_sed_conf_input=`$as_echo "$configure_input" |
14316 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14317 *) ac_sed_conf_input=$configure_input;;
14318 esac
14320 case $ac_tag in
14321 *:-:* | *:-) cat >"$tmp/stdin" \
14322 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14323 esac
14325 esac
14327 ac_dir=`$as_dirname -- "$ac_file" ||
14328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14329 X"$ac_file" : 'X\(//\)[^/]' \| \
14330 X"$ac_file" : 'X\(//\)$' \| \
14331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14332 $as_echo X"$ac_file" |
14333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14334 s//\1/
14337 /^X\(\/\/\)[^/].*/{
14338 s//\1/
14341 /^X\(\/\/\)$/{
14342 s//\1/
14345 /^X\(\/\).*/{
14346 s//\1/
14349 s/.*/./; q'`
14350 as_dir="$ac_dir"; as_fn_mkdir_p
14351 ac_builddir=.
14353 case "$ac_dir" in
14354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14357 # A ".." for each directory in $ac_dir_suffix.
14358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14359 case $ac_top_builddir_sub in
14360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14362 esac ;;
14363 esac
14364 ac_abs_top_builddir=$ac_pwd
14365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14366 # for backward compatibility:
14367 ac_top_builddir=$ac_top_build_prefix
14369 case $srcdir in
14370 .) # We are building in place.
14371 ac_srcdir=.
14372 ac_top_srcdir=$ac_top_builddir_sub
14373 ac_abs_top_srcdir=$ac_pwd ;;
14374 [\\/]* | ?:[\\/]* ) # Absolute name.
14375 ac_srcdir=$srcdir$ac_dir_suffix;
14376 ac_top_srcdir=$srcdir
14377 ac_abs_top_srcdir=$srcdir ;;
14378 *) # Relative name.
14379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14380 ac_top_srcdir=$ac_top_build_prefix$srcdir
14381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14382 esac
14383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14386 case $ac_mode in
14389 # CONFIG_FILE
14392 case $INSTALL in
14393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14394 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14395 esac
14396 ac_MKDIR_P=$MKDIR_P
14397 case $MKDIR_P in
14398 [\\/$]* | ?:[\\/]* ) ;;
14399 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14400 esac
14401 _ACEOF
14403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14404 # If the template does not know about datarootdir, expand it.
14405 # FIXME: This hack should be removed a few years after 2.60.
14406 ac_datarootdir_hack=; ac_datarootdir_seen=
14407 ac_sed_dataroot='
14408 /datarootdir/ {
14412 /@datadir@/p
14413 /@docdir@/p
14414 /@infodir@/p
14415 /@localedir@/p
14416 /@mandir@/p'
14417 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14418 *datarootdir*) ac_datarootdir_seen=yes;;
14419 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14421 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14422 _ACEOF
14423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14424 ac_datarootdir_hack='
14425 s&@datadir@&$datadir&g
14426 s&@docdir@&$docdir&g
14427 s&@infodir@&$infodir&g
14428 s&@localedir@&$localedir&g
14429 s&@mandir@&$mandir&g
14430 s&\\\${datarootdir}&$datarootdir&g' ;;
14431 esac
14432 _ACEOF
14434 # Neutralize VPATH when `$srcdir' = `.'.
14435 # Shell code in configure.ac might set extrasub.
14436 # FIXME: do we really want to maintain this feature?
14437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14438 ac_sed_extra="$ac_vpsub
14439 $extrasub
14440 _ACEOF
14441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14444 s|@configure_input@|$ac_sed_conf_input|;t t
14445 s&@top_builddir@&$ac_top_builddir_sub&;t t
14446 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14447 s&@srcdir@&$ac_srcdir&;t t
14448 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14449 s&@top_srcdir@&$ac_top_srcdir&;t t
14450 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14451 s&@builddir@&$ac_builddir&;t t
14452 s&@abs_builddir@&$ac_abs_builddir&;t t
14453 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14454 s&@INSTALL@&$ac_INSTALL&;t t
14455 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14456 $ac_datarootdir_hack
14458 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14459 || as_fn_error "could not create $ac_file" "$LINENO" 5
14461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14465 which seems to be undefined. Please make sure it is defined." >&5
14466 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14467 which seems to be undefined. Please make sure it is defined." >&2;}
14469 rm -f "$tmp/stdin"
14470 case $ac_file in
14471 -) cat "$tmp/out" && rm -f "$tmp/out";;
14472 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14473 esac \
14474 || as_fn_error "could not create $ac_file" "$LINENO" 5
14478 # CONFIG_HEADER
14480 if test x"$ac_file" != x-; then
14482 $as_echo "/* $configure_input */" \
14483 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14484 } >"$tmp/config.h" \
14485 || as_fn_error "could not create $ac_file" "$LINENO" 5
14486 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14488 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14489 else
14490 rm -f "$ac_file"
14491 mv "$tmp/config.h" "$ac_file" \
14492 || as_fn_error "could not create $ac_file" "$LINENO" 5
14494 else
14495 $as_echo "/* $configure_input */" \
14496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14497 || as_fn_error "could not create -" "$LINENO" 5
14499 # Compute "$ac_file"'s index in $config_headers.
14500 _am_arg="$ac_file"
14501 _am_stamp_count=1
14502 for _am_header in $config_headers :; do
14503 case $_am_header in
14504 $_am_arg | $_am_arg:* )
14505 break ;;
14507 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14508 esac
14509 done
14510 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14511 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14512 X"$_am_arg" : 'X\(//\)[^/]' \| \
14513 X"$_am_arg" : 'X\(//\)$' \| \
14514 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14515 $as_echo X"$_am_arg" |
14516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14517 s//\1/
14520 /^X\(\/\/\)[^/].*/{
14521 s//\1/
14524 /^X\(\/\/\)$/{
14525 s//\1/
14528 /^X\(\/\).*/{
14529 s//\1/
14532 s/.*/./; q'`/stamp-h$_am_stamp_count
14535 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14536 $as_echo "$as_me: executing $ac_file commands" >&6;}
14538 esac
14541 case $ac_file$ac_mode in
14542 "default-1":C)
14543 # Only add multilib support code if we just rebuilt the top-level
14544 # Makefile.
14545 case " $CONFIG_FILES " in
14546 *" Makefile "*)
14547 ac_file=Makefile . ${multi_basedir}/config-ml.in
14549 esac ;;
14550 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14551 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14552 # are listed without --file. Let's play safe and only enable the eval
14553 # if we detect the quoting.
14554 case $CONFIG_FILES in
14555 *\'*) eval set x "$CONFIG_FILES" ;;
14556 *) set x $CONFIG_FILES ;;
14557 esac
14558 shift
14559 for mf
14561 # Strip MF so we end up with the name of the file.
14562 mf=`echo "$mf" | sed -e 's/:.*$//'`
14563 # Check whether this is an Automake generated Makefile or not.
14564 # We used to match only the files named `Makefile.in', but
14565 # some people rename them; so instead we look at the file content.
14566 # Grep'ing the first line is not enough: some people post-process
14567 # each Makefile.in and add a new line on top of each file to say so.
14568 # Grep'ing the whole file is not good either: AIX grep has a line
14569 # limit of 2048, but all sed's we know have understand at least 4000.
14570 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14571 dirpart=`$as_dirname -- "$mf" ||
14572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14573 X"$mf" : 'X\(//\)[^/]' \| \
14574 X"$mf" : 'X\(//\)$' \| \
14575 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14576 $as_echo X"$mf" |
14577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14578 s//\1/
14581 /^X\(\/\/\)[^/].*/{
14582 s//\1/
14585 /^X\(\/\/\)$/{
14586 s//\1/
14589 /^X\(\/\).*/{
14590 s//\1/
14593 s/.*/./; q'`
14594 else
14595 continue
14597 # Extract the definition of DEPDIR, am__include, and am__quote
14598 # from the Makefile without running `make'.
14599 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14600 test -z "$DEPDIR" && continue
14601 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14602 test -z "am__include" && continue
14603 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14604 # When using ansi2knr, U may be empty or an underscore; expand it
14605 U=`sed -n 's/^U = //p' < "$mf"`
14606 # Find all dependency output files, they are included files with
14607 # $(DEPDIR) in their names. We invoke sed twice because it is the
14608 # simplest approach to changing $(DEPDIR) to its actual value in the
14609 # expansion.
14610 for file in `sed -n "
14611 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14612 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14613 # Make sure the directory exists.
14614 test -f "$dirpart/$file" && continue
14615 fdir=`$as_dirname -- "$file" ||
14616 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14617 X"$file" : 'X\(//\)[^/]' \| \
14618 X"$file" : 'X\(//\)$' \| \
14619 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14620 $as_echo X"$file" |
14621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14622 s//\1/
14625 /^X\(\/\/\)[^/].*/{
14626 s//\1/
14629 /^X\(\/\/\)$/{
14630 s//\1/
14633 /^X\(\/\).*/{
14634 s//\1/
14637 s/.*/./; q'`
14638 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14639 # echo "creating $dirpart/$file"
14640 echo '# dummy' > "$dirpart/$file"
14641 done
14642 done
14645 "libtool":C)
14647 # See if we are running on zsh, and set the options which allow our
14648 # commands through without removal of \ escapes.
14649 if test -n "${ZSH_VERSION+set}" ; then
14650 setopt NO_GLOB_SUBST
14653 cfgfile="${ofile}T"
14654 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14655 $RM "$cfgfile"
14657 cat <<_LT_EOF >> "$cfgfile"
14658 #! $SHELL
14660 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14661 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14663 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14665 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14666 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14667 # Written by Gordon Matzigkeit, 1996
14669 # This file is part of GNU Libtool.
14671 # GNU Libtool is free software; you can redistribute it and/or
14672 # modify it under the terms of the GNU General Public License as
14673 # published by the Free Software Foundation; either version 2 of
14674 # the License, or (at your option) any later version.
14676 # As a special exception to the GNU General Public License,
14677 # if you distribute this file as part of a program or library that
14678 # is built using GNU Libtool, you may include this file under the
14679 # same distribution terms that you use for the rest of that program.
14681 # GNU Libtool is distributed in the hope that it will be useful,
14682 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14684 # GNU General Public License for more details.
14686 # You should have received a copy of the GNU General Public License
14687 # along with GNU Libtool; see the file COPYING. If not, a copy
14688 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14689 # obtained by writing to the Free Software Foundation, Inc.,
14690 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14693 # The names of the tagged configurations supported by this script.
14694 available_tags=""
14696 # ### BEGIN LIBTOOL CONFIG
14698 # Which release of libtool.m4 was used?
14699 macro_version=$macro_version
14700 macro_revision=$macro_revision
14702 # Whether or not to build shared libraries.
14703 build_libtool_libs=$enable_shared
14705 # Whether or not to build static libraries.
14706 build_old_libs=$enable_static
14708 # What type of objects to build.
14709 pic_mode=$pic_mode
14711 # Whether or not to optimize for fast installation.
14712 fast_install=$enable_fast_install
14714 # Shell to use when invoking shell scripts.
14715 SHELL=$lt_SHELL
14717 # An echo program that protects backslashes.
14718 ECHO=$lt_ECHO
14720 # The host system.
14721 host_alias=$host_alias
14722 host=$host
14723 host_os=$host_os
14725 # The build system.
14726 build_alias=$build_alias
14727 build=$build
14728 build_os=$build_os
14730 # A sed program that does not truncate output.
14731 SED=$lt_SED
14733 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14734 Xsed="\$SED -e 1s/^X//"
14736 # A grep program that handles long lines.
14737 GREP=$lt_GREP
14739 # An ERE matcher.
14740 EGREP=$lt_EGREP
14742 # A literal string matcher.
14743 FGREP=$lt_FGREP
14745 # A BSD- or MS-compatible name lister.
14746 NM=$lt_NM
14748 # Whether we need soft or hard links.
14749 LN_S=$lt_LN_S
14751 # What is the maximum length of a command?
14752 max_cmd_len=$max_cmd_len
14754 # Object file suffix (normally "o").
14755 objext=$ac_objext
14757 # Executable file suffix (normally "").
14758 exeext=$exeext
14760 # whether the shell understands "unset".
14761 lt_unset=$lt_unset
14763 # turn spaces into newlines.
14764 SP2NL=$lt_lt_SP2NL
14766 # turn newlines into spaces.
14767 NL2SP=$lt_lt_NL2SP
14769 # An object symbol dumper.
14770 OBJDUMP=$lt_OBJDUMP
14772 # Method to check whether dependent libraries are shared objects.
14773 deplibs_check_method=$lt_deplibs_check_method
14775 # Command to use when deplibs_check_method == "file_magic".
14776 file_magic_cmd=$lt_file_magic_cmd
14778 # The archiver.
14779 AR=$lt_AR
14780 AR_FLAGS=$lt_AR_FLAGS
14782 # A symbol stripping program.
14783 STRIP=$lt_STRIP
14785 # Commands used to install an old-style archive.
14786 RANLIB=$lt_RANLIB
14787 old_postinstall_cmds=$lt_old_postinstall_cmds
14788 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14790 # Whether to use a lock for old archive extraction.
14791 lock_old_archive_extraction=$lock_old_archive_extraction
14793 # A C compiler.
14794 LTCC=$lt_CC
14796 # LTCC compiler flags.
14797 LTCFLAGS=$lt_CFLAGS
14799 # Take the output of nm and produce a listing of raw symbols and C names.
14800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14802 # Transform the output of nm in a proper C declaration.
14803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14805 # Transform the output of nm in a C name address pair.
14806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14808 # Transform the output of nm in a C name address pair when lib prefix is needed.
14809 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14811 # The name of the directory that contains temporary libtool files.
14812 objdir=$objdir
14814 # Used to examine libraries when file_magic_cmd begins with "file".
14815 MAGIC_CMD=$MAGIC_CMD
14817 # Must we lock files when doing compilation?
14818 need_locks=$lt_need_locks
14820 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14821 DSYMUTIL=$lt_DSYMUTIL
14823 # Tool to change global to local symbols on Mac OS X.
14824 NMEDIT=$lt_NMEDIT
14826 # Tool to manipulate fat objects and archives on Mac OS X.
14827 LIPO=$lt_LIPO
14829 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14830 OTOOL=$lt_OTOOL
14832 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14833 OTOOL64=$lt_OTOOL64
14835 # Old archive suffix (normally "a").
14836 libext=$libext
14838 # Shared library suffix (normally ".so").
14839 shrext_cmds=$lt_shrext_cmds
14841 # The commands to extract the exported symbol list from a shared archive.
14842 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14844 # Variables whose values should be saved in libtool wrapper scripts and
14845 # restored at link time.
14846 variables_saved_for_relink=$lt_variables_saved_for_relink
14848 # Do we need the "lib" prefix for modules?
14849 need_lib_prefix=$need_lib_prefix
14851 # Do we need a version for libraries?
14852 need_version=$need_version
14854 # Library versioning type.
14855 version_type=$version_type
14857 # Shared library runtime path variable.
14858 runpath_var=$runpath_var
14860 # Shared library path variable.
14861 shlibpath_var=$shlibpath_var
14863 # Is shlibpath searched before the hard-coded library search path?
14864 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14866 # Format of library name prefix.
14867 libname_spec=$lt_libname_spec
14869 # List of archive names. First name is the real one, the rest are links.
14870 # The last name is the one that the linker finds with -lNAME
14871 library_names_spec=$lt_library_names_spec
14873 # The coded name of the library, if different from the real name.
14874 soname_spec=$lt_soname_spec
14876 # Permission mode override for installation of shared libraries.
14877 install_override_mode=$lt_install_override_mode
14879 # Command to use after installation of a shared archive.
14880 postinstall_cmds=$lt_postinstall_cmds
14882 # Command to use after uninstallation of a shared archive.
14883 postuninstall_cmds=$lt_postuninstall_cmds
14885 # Commands used to finish a libtool library installation in a directory.
14886 finish_cmds=$lt_finish_cmds
14888 # As "finish_cmds", except a single script fragment to be evaled but
14889 # not shown.
14890 finish_eval=$lt_finish_eval
14892 # Whether we should hardcode library paths into libraries.
14893 hardcode_into_libs=$hardcode_into_libs
14895 # Compile-time system search path for libraries.
14896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14898 # Run-time system search path for libraries.
14899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14901 # Whether dlopen is supported.
14902 dlopen_support=$enable_dlopen
14904 # Whether dlopen of programs is supported.
14905 dlopen_self=$enable_dlopen_self
14907 # Whether dlopen of statically linked programs is supported.
14908 dlopen_self_static=$enable_dlopen_self_static
14910 # Commands to strip libraries.
14911 old_striplib=$lt_old_striplib
14912 striplib=$lt_striplib
14915 # The linker used to build libraries.
14916 LD=$lt_LD
14918 # How to create reloadable object files.
14919 reload_flag=$lt_reload_flag
14920 reload_cmds=$lt_reload_cmds
14922 # Commands used to build an old-style archive.
14923 old_archive_cmds=$lt_old_archive_cmds
14925 # A language specific compiler.
14926 CC=$lt_compiler
14928 # Is the compiler the GNU compiler?
14929 with_gcc=$GCC
14931 # Compiler flag to turn off builtin functions.
14932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14934 # How to pass a linker flag through the compiler.
14935 wl=$lt_lt_prog_compiler_wl
14937 # Additional compiler flags for building library objects.
14938 pic_flag=$lt_lt_prog_compiler_pic
14940 # Compiler flag to prevent dynamic linking.
14941 link_static_flag=$lt_lt_prog_compiler_static
14943 # Does compiler simultaneously support -c and -o options?
14944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14946 # Whether or not to add -lc for building shared libraries.
14947 build_libtool_need_lc=$archive_cmds_need_lc
14949 # Whether or not to disallow shared libs when runtime libs are static.
14950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14952 # Compiler flag to allow reflexive dlopens.
14953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14955 # Compiler flag to generate shared objects directly from archives.
14956 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14958 # Whether the compiler copes with passing no objects directly.
14959 compiler_needs_object=$lt_compiler_needs_object
14961 # Create an old-style archive from a shared archive.
14962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14964 # Create a temporary old-style archive to link instead of a shared archive.
14965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14967 # Commands used to build a shared archive.
14968 archive_cmds=$lt_archive_cmds
14969 archive_expsym_cmds=$lt_archive_expsym_cmds
14971 # Commands used to build a loadable module if different from building
14972 # a shared archive.
14973 module_cmds=$lt_module_cmds
14974 module_expsym_cmds=$lt_module_expsym_cmds
14976 # Whether we are building with GNU ld or not.
14977 with_gnu_ld=$lt_with_gnu_ld
14979 # Flag that allows shared libraries with undefined symbols to be built.
14980 allow_undefined_flag=$lt_allow_undefined_flag
14982 # Flag that enforces no undefined symbols.
14983 no_undefined_flag=$lt_no_undefined_flag
14985 # Flag to hardcode \$libdir into a binary during linking.
14986 # This must work even if \$libdir does not exist
14987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14989 # If ld is used when linking, flag to hardcode \$libdir into a binary
14990 # during linking. This must work even if \$libdir does not exist.
14991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14993 # Whether we need a single "-rpath" flag with a separated argument.
14994 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14997 # DIR into the resulting binary.
14998 hardcode_direct=$hardcode_direct
15000 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15001 # DIR into the resulting binary and the resulting library dependency is
15002 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15003 # library is relocated.
15004 hardcode_direct_absolute=$hardcode_direct_absolute
15006 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15007 # into the resulting binary.
15008 hardcode_minus_L=$hardcode_minus_L
15010 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15011 # into the resulting binary.
15012 hardcode_shlibpath_var=$hardcode_shlibpath_var
15014 # Set to "yes" if building a shared library automatically hardcodes DIR
15015 # into the library and all subsequent libraries and executables linked
15016 # against it.
15017 hardcode_automatic=$hardcode_automatic
15019 # Set to yes if linker adds runtime paths of dependent libraries
15020 # to runtime path list.
15021 inherit_rpath=$inherit_rpath
15023 # Whether libtool must link a program against all its dependency libraries.
15024 link_all_deplibs=$link_all_deplibs
15026 # Fix the shell variable \$srcfile for the compiler.
15027 fix_srcfile_path=$lt_fix_srcfile_path
15029 # Set to "yes" if exported symbols are required.
15030 always_export_symbols=$always_export_symbols
15032 # The commands to list exported symbols.
15033 export_symbols_cmds=$lt_export_symbols_cmds
15035 # Symbols that should not be listed in the preloaded symbols.
15036 exclude_expsyms=$lt_exclude_expsyms
15038 # Symbols that must always be exported.
15039 include_expsyms=$lt_include_expsyms
15041 # Commands necessary for linking programs (against libraries) with templates.
15042 prelink_cmds=$lt_prelink_cmds
15044 # Specify filename containing input files.
15045 file_list_spec=$lt_file_list_spec
15047 # How to hardcode a shared library path into an executable.
15048 hardcode_action=$hardcode_action
15050 # ### END LIBTOOL CONFIG
15052 _LT_EOF
15054 case $host_os in
15055 aix3*)
15056 cat <<\_LT_EOF >> "$cfgfile"
15057 # AIX sometimes has problems with the GCC collect2 program. For some
15058 # reason, if we set the COLLECT_NAMES environment variable, the problems
15059 # vanish in a puff of smoke.
15060 if test "X${COLLECT_NAMES+set}" != Xset; then
15061 COLLECT_NAMES=
15062 export COLLECT_NAMES
15064 _LT_EOF
15066 esac
15069 ltmain="$ac_aux_dir/ltmain.sh"
15072 # We use sed instead of cat because bash on DJGPP gets confused if
15073 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15074 # text mode, it properly converts lines to CR/LF. This bash problem
15075 # is reportedly fixed, but why not run on old versions too?
15076 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15077 || (rm -f "$cfgfile"; exit 1)
15079 case $xsi_shell in
15080 yes)
15081 cat << \_LT_EOF >> "$cfgfile"
15083 # func_dirname file append nondir_replacement
15084 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15085 # otherwise set result to NONDIR_REPLACEMENT.
15086 func_dirname ()
15088 case ${1} in
15089 */*) func_dirname_result="${1%/*}${2}" ;;
15090 * ) func_dirname_result="${3}" ;;
15091 esac
15094 # func_basename file
15095 func_basename ()
15097 func_basename_result="${1##*/}"
15100 # func_dirname_and_basename file append nondir_replacement
15101 # perform func_basename and func_dirname in a single function
15102 # call:
15103 # dirname: Compute the dirname of FILE. If nonempty,
15104 # add APPEND to the result, otherwise set result
15105 # to NONDIR_REPLACEMENT.
15106 # value returned in "$func_dirname_result"
15107 # basename: Compute filename of FILE.
15108 # value retuned in "$func_basename_result"
15109 # Implementation must be kept synchronized with func_dirname
15110 # and func_basename. For efficiency, we do not delegate to
15111 # those functions but instead duplicate the functionality here.
15112 func_dirname_and_basename ()
15114 case ${1} in
15115 */*) func_dirname_result="${1%/*}${2}" ;;
15116 * ) func_dirname_result="${3}" ;;
15117 esac
15118 func_basename_result="${1##*/}"
15121 # func_stripname prefix suffix name
15122 # strip PREFIX and SUFFIX off of NAME.
15123 # PREFIX and SUFFIX must not contain globbing or regex special
15124 # characters, hashes, percent signs, but SUFFIX may contain a leading
15125 # dot (in which case that matches only a dot).
15126 func_stripname ()
15128 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15129 # positional parameters, so assign one to ordinary parameter first.
15130 func_stripname_result=${3}
15131 func_stripname_result=${func_stripname_result#"${1}"}
15132 func_stripname_result=${func_stripname_result%"${2}"}
15135 # func_opt_split
15136 func_opt_split ()
15138 func_opt_split_opt=${1%%=*}
15139 func_opt_split_arg=${1#*=}
15142 # func_lo2o object
15143 func_lo2o ()
15145 case ${1} in
15146 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15147 *) func_lo2o_result=${1} ;;
15148 esac
15151 # func_xform libobj-or-source
15152 func_xform ()
15154 func_xform_result=${1%.*}.lo
15157 # func_arith arithmetic-term...
15158 func_arith ()
15160 func_arith_result=$(( $* ))
15163 # func_len string
15164 # STRING may not start with a hyphen.
15165 func_len ()
15167 func_len_result=${#1}
15170 _LT_EOF
15172 *) # Bourne compatible functions.
15173 cat << \_LT_EOF >> "$cfgfile"
15175 # func_dirname file append nondir_replacement
15176 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15177 # otherwise set result to NONDIR_REPLACEMENT.
15178 func_dirname ()
15180 # Extract subdirectory from the argument.
15181 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15182 if test "X$func_dirname_result" = "X${1}"; then
15183 func_dirname_result="${3}"
15184 else
15185 func_dirname_result="$func_dirname_result${2}"
15189 # func_basename file
15190 func_basename ()
15192 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15196 # func_stripname prefix suffix name
15197 # strip PREFIX and SUFFIX off of NAME.
15198 # PREFIX and SUFFIX must not contain globbing or regex special
15199 # characters, hashes, percent signs, but SUFFIX may contain a leading
15200 # dot (in which case that matches only a dot).
15201 # func_strip_suffix prefix name
15202 func_stripname ()
15204 case ${2} in
15205 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15206 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15207 esac
15210 # sed scripts:
15211 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15212 my_sed_long_arg='1s/^-[^=]*=//'
15214 # func_opt_split
15215 func_opt_split ()
15217 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15218 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15221 # func_lo2o object
15222 func_lo2o ()
15224 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15227 # func_xform libobj-or-source
15228 func_xform ()
15230 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15233 # func_arith arithmetic-term...
15234 func_arith ()
15236 func_arith_result=`expr "$@"`
15239 # func_len string
15240 # STRING may not start with a hyphen.
15241 func_len ()
15243 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15246 _LT_EOF
15247 esac
15249 case $lt_shell_append in
15250 yes)
15251 cat << \_LT_EOF >> "$cfgfile"
15253 # func_append var value
15254 # Append VALUE to the end of shell variable VAR.
15255 func_append ()
15257 eval "$1+=\$2"
15259 _LT_EOF
15262 cat << \_LT_EOF >> "$cfgfile"
15264 # func_append var value
15265 # Append VALUE to the end of shell variable VAR.
15266 func_append ()
15268 eval "$1=\$$1\$2"
15271 _LT_EOF
15273 esac
15276 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15277 || (rm -f "$cfgfile"; exit 1)
15279 mv -f "$cfgfile" "$ofile" ||
15280 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15281 chmod +x "$ofile"
15285 esac
15286 done # for ac_tag
15289 as_fn_exit 0
15290 _ACEOF
15291 ac_clean_files=$ac_clean_files_save
15293 test $ac_write_fail = 0 ||
15294 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15297 # configure is writing to config.log, and then calls config.status.
15298 # config.status does its own redirection, appending to config.log.
15299 # Unfortunately, on DOS this fails, as config.log is still kept open
15300 # by configure, so config.status won't be able to write to it; its
15301 # output is simply discarded. So we exec the FD to /dev/null,
15302 # effectively closing config.log, so it can be properly (re)opened and
15303 # appended to by config.status. When coming back to configure, we
15304 # need to make the FD available again.
15305 if test "$no_create" != yes; then
15306 ac_cs_success=:
15307 ac_config_status_args=
15308 test "$silent" = yes &&
15309 ac_config_status_args="$ac_config_status_args --quiet"
15310 exec 5>/dev/null
15311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15312 exec 5>>config.log
15313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15314 # would make configure fail if this is the last instruction.
15315 $ac_cs_success || as_fn_exit $?
15317 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15319 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}