[42/46] Add vec_info::replace_stmt
[official-gcc.git] / libobjc / configure
blobd1a032fbf6a82e0980fa1242f7889ff3f031d24f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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='package-unused'
558 PACKAGE_TARNAME='libobjc'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="objc/objc.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 get_gcc_base_ver
604 OBJC_BOEHM_GC_LIBS
605 OBJC_BOEHM_GC_INCLUDES
606 OBJC_BOEHM_GC
607 OBJC_GCFLAGS
608 SET_MAKE
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
616 STRIP
617 LN_S
619 ac_ct_DUMPBIN
620 DUMPBIN
622 FGREP
623 EGREP
624 GREP
626 LIBTOOL
627 OBJDUMP
628 DLLTOOL
629 MAINT
630 MAINTAINER_MODE_FALSE
631 MAINTAINER_MODE_TRUE
632 INSTALL_DATA
633 INSTALL_SCRIPT
634 INSTALL_PROGRAM
635 RANLIB
638 XCFLAGS
639 extra_ldflags_libobjc
640 lt_host_flags
641 OBJEXT
642 EXEEXT
643 ac_ct_CC
644 CPPFLAGS
645 LDFLAGS
646 CFLAGS
648 libsuffix
649 includedirname
650 toolexeclibdir
651 toolexecdir
652 glibcpp_srcdir
653 target_noncanonical
654 target_os
655 target_vendor
656 target_cpu
657 target
658 host_os
659 host_vendor
660 host_cpu
661 host
662 multi_basedir
663 VERSION
664 target_subdir
665 host_subdir
666 build_subdir
667 build_libsubdir
668 build_os
669 build_vendor
670 build_cpu
671 build
672 target_alias
673 host_alias
674 build_alias
675 LIBS
676 ECHO_T
677 ECHO_N
678 ECHO_C
679 DEFS
680 mandir
681 localedir
682 libdir
683 psdir
684 pdfdir
685 dvidir
686 htmldir
687 infodir
688 docdir
689 oldincludedir
690 includedir
691 localstatedir
692 sharedstatedir
693 sysconfdir
694 datadir
695 datarootdir
696 libexecdir
697 sbindir
698 bindir
699 program_transform_name
700 prefix
701 exec_prefix
702 PACKAGE_URL
703 PACKAGE_BUGREPORT
704 PACKAGE_STRING
705 PACKAGE_VERSION
706 PACKAGE_TARNAME
707 PACKAGE_NAME
708 PATH_SEPARATOR
709 SHELL'
710 ac_subst_files=''
711 ac_user_opts='
712 enable_option_checking
713 with_build_libsubdir
714 with_target_subdir
715 with_cross_host
716 enable_version_specific_runtime_libs
717 enable_multilib
718 enable_cet
719 enable_maintainer_mode
720 enable_shared
721 enable_static
722 with_pic
723 enable_fast_install
724 with_gnu_ld
725 enable_libtool_lock
726 enable_tls
727 enable_objc_gc
728 with_target_bdw_gc
729 with_target_bdw_gc_include
730 with_target_bdw_gc_lib
731 with_gcc_major_version_only
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
737 CPPFLAGS'
740 # Initialize some variables set by options.
741 ac_init_help=
742 ac_init_version=false
743 ac_unrecognized_opts=
744 ac_unrecognized_sep=
745 # The variables have the same names as the options, with
746 # dashes changed to underlines.
747 cache_file=/dev/null
748 exec_prefix=NONE
749 no_create=
750 no_recursion=
751 prefix=NONE
752 program_prefix=NONE
753 program_suffix=NONE
754 program_transform_name=s,x,x,
755 silent=
756 site=
757 srcdir=
758 verbose=
759 x_includes=NONE
760 x_libraries=NONE
762 # Installation directory options.
763 # These are left unexpanded so users can "make install exec_prefix=/foo"
764 # and all the variables that are supposed to be based on exec_prefix
765 # by default will actually change.
766 # Use braces instead of parens because sh, perl, etc. also accept them.
767 # (The list follows the same order as the GNU Coding Standards.)
768 bindir='${exec_prefix}/bin'
769 sbindir='${exec_prefix}/sbin'
770 libexecdir='${exec_prefix}/libexec'
771 datarootdir='${prefix}/share'
772 datadir='${datarootdir}'
773 sysconfdir='${prefix}/etc'
774 sharedstatedir='${prefix}/com'
775 localstatedir='${prefix}/var'
776 includedir='${prefix}/include'
777 oldincludedir='/usr/include'
778 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779 infodir='${datarootdir}/info'
780 htmldir='${docdir}'
781 dvidir='${docdir}'
782 pdfdir='${docdir}'
783 psdir='${docdir}'
784 libdir='${exec_prefix}/lib'
785 localedir='${datarootdir}/locale'
786 mandir='${datarootdir}/man'
788 ac_prev=
789 ac_dashdash=
790 for ac_option
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
808 ac_dashdash=yes ;;
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
827 --config-cache | -C)
828 cache_file=config.cache ;;
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
842 -disable-* | --disable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
851 "enable_$ac_useropt"
852 "*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=\$ac_optarg ;;
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 libdir=$ac_optarg ;;
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir=$ac_optarg ;;
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 mandir=$ac_optarg ;;
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
962 no_create=yes ;;
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 prefix=$ac_optarg ;;
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1072 -with-* | --with-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "with_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "with_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1122 -*) as_fn_error "unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information."
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1132 esac
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1144 esac
1145 done
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error "missing argument to $ac_option"
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
1155 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157 esac
1160 # Check all directory arguments for consistency.
1161 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1179 done
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error "working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error "pwd does not report name of working directory"
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1231 /^X\(\/\/\)$/{
1232 s//\1/
1235 /^X\(\/\).*/{
1236 s//\1/
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1244 else
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1254 pwd)`
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1262 case $srcdir in
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 esac
1265 for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 done
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
1279 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1288 Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 [PREFIX]
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1332 _ACEOF
1334 cat <<\_ACEOF
1336 System types:
1337 --build=BUILD configure for building on BUILD [guessed]
1338 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1339 --target=TARGET configure for building compilers for TARGET [HOST]
1340 _ACEOF
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of package-unused version-unused:";;
1346 esac
1347 cat <<\_ACEOF
1349 Optional Features:
1350 --disable-option-checking ignore unrecognized --enable/--with options
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1353 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1354 --enable-multilib build many library versions (default)
1355 --enable-cet enable Intel CET in target libraries [default=no]
1356 --enable-maintainer-mode enable make rules and dependencies not useful
1357 (and sometimes confusing) to the casual installer
1358 --enable-shared[=PKGS] build shared libraries [default=yes]
1359 --enable-static[=PKGS] build static libraries [default=yes]
1360 --enable-fast-install[=PKGS]
1361 optimize for fast installation [default=yes]
1362 --disable-libtool-lock avoid locking (might break parallel builds)
1363 --enable-tls Use thread-local storage [default=yes]
1364 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1365 Objective-C runtime
1367 Optional Packages:
1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370 --with-build-libsubdir=DIR Directory where to find libraries for build system
1371 --with-target-subdir=SUBDIR
1372 configuring in a subdirectory
1373 --with-cross-host=HOST configuring with a cross compiler
1374 --with-pic try to use only PIC/non-PIC objects [default=use
1375 both]
1376 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1377 --with-target-bdw-gc=PATHLIST
1378 specify prefix directory for installed bdw-gc
1379 package. Equivalent to
1380 --with-target-bdw-gc-include=PATH/include plus
1381 --with-target-bdw-gc-lib=PATH/lib
1382 --with-target-bdw-gc-include=PATHLIST
1383 specify directories for installed bdw-gc include
1384 files
1385 --with-target-bdw-gc-lib=PATHLIST
1386 specify directories for installed bdw-gc library
1387 --with-gcc-major-version-only
1388 use only GCC major number in filesystem paths
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CPP C preprocessor
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1403 Report bugs to the package provider.
1404 _ACEOF
1405 ac_status=$?
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
1414 ac_builddir=.
1416 case "$ac_dir" in
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426 esac
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1432 case $srcdir in
1433 .) # We are building in place.
1434 ac_srcdir=.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 esac
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1456 else
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1460 done
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1465 cat <<\_ACEOF
1466 package-unused configure version-unused
1467 generated by GNU Autoconf 2.64
1469 Copyright (C) 2009 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507 else
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1511 ac_retval=1
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 return $ac_retval
1516 } # ac_fn_c_try_compile
1518 # ac_fn_c_try_link LINENO
1519 # -----------------------
1520 # Try to link conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_link ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext conftest$ac_exeext
1525 if { { ac_try="$ac_link"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_link") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest$ac_exeext && {
1544 test "$cross_compiling" = yes ||
1545 $as_test_x conftest$ac_exeext
1546 }; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1552 ac_retval=1
1554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1556 # interfere with the next link command; also delete a directory that is
1557 # left behind by Apple's compiler. We do this before executing the actions.
1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1562 } # ac_fn_c_try_link
1564 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists and can be compiled using the include files in
1567 # INCLUDES, setting the cache variable VAR accordingly.
1568 ac_fn_c_check_header_compile ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572 $as_echo_n "checking for $2... " >&6; }
1573 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 $as_echo_n "(cached) " >&6
1575 else
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 eval "$3=yes"
1583 else
1584 eval "$3=no"
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 } # ac_fn_c_check_header_compile
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } >/dev/null && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1625 ac_retval=1
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 return $ac_retval
1630 } # ac_fn_c_try_cpp
1632 # ac_fn_c_try_run LINENO
1633 # ----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1635 # that executables *can* be run.
1636 ac_fn_c_try_run ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>&5
1647 ac_status=$?
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650 { { case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_try") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; }; }; then :
1660 ac_retval=0
1661 else
1662 $as_echo "$as_me: program exited with status $ac_status" >&5
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=$ac_status
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 return $ac_retval
1672 } # ac_fn_c_try_run
1674 # ac_fn_c_check_func LINENO FUNC VAR
1675 # ----------------------------------
1676 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1677 ac_fn_c_check_func ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 if test x$gcc_no_link = xyes; then
1686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1692 #define $2 innocuous_$2
1694 /* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char $2 (); below.
1696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1697 <limits.h> exists even on freestanding compilers. */
1699 #ifdef __STDC__
1700 # include <limits.h>
1701 #else
1702 # include <assert.h>
1703 #endif
1705 #undef $2
1707 /* Override any GCC internal prototype to avoid an error.
1708 Use char because int might match the return type of a GCC
1709 builtin and then its argument prototype would still apply. */
1710 #ifdef __cplusplus
1711 extern "C"
1712 #endif
1713 char $2 ();
1714 /* The GNU C library defines this for functions which it implements
1715 to always fail with ENOSYS. Some functions are actually named
1716 something starting with __ and the normal name is an alias. */
1717 #if defined __stub_$2 || defined __stub___$2
1718 choke me
1719 #endif
1722 main ()
1724 return $2 ();
1726 return 0;
1728 _ACEOF
1729 if ac_fn_c_try_link "$LINENO"; then :
1730 eval "$3=yes"
1731 else
1732 eval "$3=no"
1734 rm -f core conftest.err conftest.$ac_objext \
1735 conftest$ac_exeext conftest.$ac_ext
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 } # ac_fn_c_check_func
1744 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1747 # the include files in INCLUDES and setting the cache variable VAR
1748 # accordingly.
1749 ac_fn_c_check_header_mongrel ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1758 eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761 else
1762 # Is the header compilable?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1764 $as_echo_n "checking $2 usability... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1768 #include <$2>
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771 ac_header_compiler=yes
1772 else
1773 ac_header_compiler=no
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1777 $as_echo "$ac_header_compiler" >&6; }
1779 # Is the header present?
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1781 $as_echo_n "checking $2 presence... " >&6; }
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_cpp "$LINENO"; then :
1787 ac_header_preproc=yes
1788 else
1789 ac_header_preproc=no
1791 rm -f conftest.err conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1793 $as_echo "$ac_header_preproc" >&6; }
1795 # So? What about this header?
1796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1797 yes:no: )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1799 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 no:yes:* )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1805 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1807 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1809 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1811 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 esac
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 eval "$3=\$ac_header_compiler"
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_check_header_mongrel
1830 cat >config.log <<_ACEOF
1831 This file contains any messages produced by compilers while
1832 running configure, to aid debugging if configure makes a mistake.
1834 It was created by package-unused $as_me version-unused, which was
1835 generated by GNU Autoconf 2.64. Invocation command line was
1837 $ $0 $@
1839 _ACEOF
1840 exec 5>>config.log
1842 cat <<_ASUNAME
1843 ## --------- ##
1844 ## Platform. ##
1845 ## --------- ##
1847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1856 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1857 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1860 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1861 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1862 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1864 _ASUNAME
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 $as_echo "PATH: $as_dir"
1872 done
1873 IFS=$as_save_IFS
1875 } >&5
1877 cat >&5 <<_ACEOF
1880 ## ----------- ##
1881 ## Core tests. ##
1882 ## ----------- ##
1884 _ACEOF
1887 # Keep a trace of the command line.
1888 # Strip out --no-create and --no-recursion so they do not pile up.
1889 # Strip out --silent because we don't want to record it for future runs.
1890 # Also quote any args containing shell meta-characters.
1891 # Make two passes to allow for proper duplicate-argument suppression.
1892 ac_configure_args=
1893 ac_configure_args0=
1894 ac_configure_args1=
1895 ac_must_keep_next=false
1896 for ac_pass in 1 2
1898 for ac_arg
1900 case $ac_arg in
1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903 | -silent | --silent | --silen | --sile | --sil)
1904 continue ;;
1905 *\'*)
1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907 esac
1908 case $ac_pass in
1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911 as_fn_append ac_configure_args1 " '$ac_arg'"
1912 if test $ac_must_keep_next = true; then
1913 ac_must_keep_next=false # Got value, back to normal.
1914 else
1915 case $ac_arg in
1916 *=* | --config-cache | -C | -disable-* | --disable-* \
1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919 | -with-* | --with-* | -without-* | --without-* | --x)
1920 case "$ac_configure_args0 " in
1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922 esac
1924 -* ) ac_must_keep_next=true ;;
1925 esac
1927 as_fn_append ac_configure_args " '$ac_arg'"
1929 esac
1930 done
1931 done
1932 { ac_configure_args0=; unset ac_configure_args0;}
1933 { ac_configure_args1=; unset ac_configure_args1;}
1935 # When interrupted or exit'd, cleanup temporary files, and complete
1936 # config.log. We remove comments because anyway the quotes in there
1937 # would cause problems or look ugly.
1938 # WARNING: Use '\'' to represent an apostrophe within the trap.
1939 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940 trap 'exit_status=$?
1941 # Save into config.log some information that might help in debugging.
1943 echo
1945 cat <<\_ASBOX
1946 ## ---------------- ##
1947 ## Cache variables. ##
1948 ## ---------------- ##
1949 _ASBOX
1950 echo
1951 # The following way of writing the cache mishandles newlines in values,
1953 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1954 eval ac_val=\$$ac_var
1955 case $ac_val in #(
1956 *${as_nl}*)
1957 case $ac_var in #(
1958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1959 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1960 esac
1961 case $ac_var in #(
1962 _ | IFS | as_nl) ;; #(
1963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1964 *) { eval $ac_var=; unset $ac_var;} ;;
1965 esac ;;
1966 esac
1967 done
1968 (set) 2>&1 |
1969 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1970 *${as_nl}ac_space=\ *)
1971 sed -n \
1972 "s/'\''/'\''\\\\'\'''\''/g;
1973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1974 ;; #(
1976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1978 esac |
1979 sort
1981 echo
1983 cat <<\_ASBOX
1984 ## ----------------- ##
1985 ## Output variables. ##
1986 ## ----------------- ##
1987 _ASBOX
1988 echo
1989 for ac_var in $ac_subst_vars
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 $as_echo "$ac_var='\''$ac_val'\''"
1996 done | sort
1997 echo
1999 if test -n "$ac_subst_files"; then
2000 cat <<\_ASBOX
2001 ## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##
2004 _ASBOX
2005 echo
2006 for ac_var in $ac_subst_files
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2017 if test -s confdefs.h; then
2018 cat <<\_ASBOX
2019 ## ----------- ##
2020 ## confdefs.h. ##
2021 ## ----------- ##
2022 _ASBOX
2023 echo
2024 cat confdefs.h
2025 echo
2027 test "$ac_signal" != 0 &&
2028 $as_echo "$as_me: caught signal $ac_signal"
2029 $as_echo "$as_me: exit $exit_status"
2030 } >&5
2031 rm -f core *.core core.conftest.* &&
2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2033 exit $exit_status
2035 for ac_signal in 1 2 13 15; do
2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2037 done
2038 ac_signal=0
2040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2041 rm -f -r conftest* confdefs.h
2043 $as_echo "/* confdefs.h */" > confdefs.h
2045 # Predefined preprocessor variables.
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_NAME "$PACKAGE_NAME"
2049 _ACEOF
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2053 _ACEOF
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2057 _ACEOF
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_STRING "$PACKAGE_STRING"
2061 _ACEOF
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2065 _ACEOF
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_URL "$PACKAGE_URL"
2069 _ACEOF
2072 # Let the site file select an alternate cache file if it wants to.
2073 # Prefer an explicitly selected file to automatically selected ones.
2074 ac_site_file1=NONE
2075 ac_site_file2=NONE
2076 if test -n "$CONFIG_SITE"; then
2077 ac_site_file1=$CONFIG_SITE
2078 elif test "x$prefix" != xNONE; then
2079 ac_site_file1=$prefix/share/config.site
2080 ac_site_file2=$prefix/etc/config.site
2081 else
2082 ac_site_file1=$ac_default_prefix/share/config.site
2083 ac_site_file2=$ac_default_prefix/etc/config.site
2085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 test "x$ac_site_file" = xNONE && continue
2088 if test -r "$ac_site_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2092 . "$ac_site_file"
2094 done
2096 if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special
2098 # files actually), so we avoid doing that.
2099 if test -f "$cache_file"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2101 $as_echo "$as_me: loading cache $cache_file" >&6;}
2102 case $cache_file in
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2105 esac
2107 else
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2109 $as_echo "$as_me: creating cache $cache_file" >&6;}
2110 >$cache_file
2113 # Check that the precious variables saved in the cache have kept the same
2114 # value.
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
2121 case $ac_old_set,$ac_new_set in
2122 set,)
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2126 ,set)
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2128 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2130 ,);;
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
2133 # differences in whitespace do not lead to failure.
2134 ac_old_val_w=`echo x $ac_old_val`
2135 ac_new_val_w=`echo x $ac_new_val`
2136 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2138 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2139 ac_cache_corrupted=:
2140 else
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2142 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2143 eval $ac_var=\$ac_old_val
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2146 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2148 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2149 fi;;
2150 esac
2151 # Pass precious variables to config.status.
2152 if test "$ac_new_set" = set; then
2153 case $ac_new_val in
2154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2155 *) ac_arg=$ac_var=$ac_new_val ;;
2156 esac
2157 case " $ac_configure_args " in
2158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2159 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2160 esac
2162 done
2163 if $ac_cache_corrupted; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2167 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2168 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2170 ## -------------------- ##
2171 ## Main body of script. ##
2172 ## -------------------- ##
2174 ac_ext=c
2175 ac_cpp='$CPP $CPPFLAGS'
2176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185 ac_aux_dir=
2186 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2187 for ac_t in install-sh install.sh shtool; do
2188 if test -f "$ac_dir/$ac_t"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/$ac_t -c"
2191 break 2
2193 done
2194 done
2195 if test -z "$ac_aux_dir"; then
2196 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2199 # These three variables are undocumented and unsupported,
2200 # and are intended to be withdrawn in a future Autoconf release.
2201 # They can cause serious problems if a builder's source tree is in a directory
2202 # whose full name contains unusual characters.
2203 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2204 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2205 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2208 # Make sure we can run config.sub.
2209 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2210 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2213 $as_echo_n "checking build system type... " >&6; }
2214 if test "${ac_cv_build+set}" = set; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 ac_build_alias=$build_alias
2218 test "x$ac_build_alias" = x &&
2219 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2220 test "x$ac_build_alias" = x &&
2221 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2222 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2223 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2227 $as_echo "$ac_cv_build" >&6; }
2228 case $ac_cv_build in
2229 *-*-*) ;;
2230 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2231 esac
2232 build=$ac_cv_build
2233 ac_save_IFS=$IFS; IFS='-'
2234 set x $ac_cv_build
2235 shift
2236 build_cpu=$1
2237 build_vendor=$2
2238 shift; shift
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2241 build_os=$*
2242 IFS=$ac_save_IFS
2243 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2246 case ${build_alias} in
2247 "") build_noncanonical=${build} ;;
2248 *) build_noncanonical=${build_alias} ;;
2249 esac
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
2254 esac
2256 case ${target_alias} in
2257 "") target_noncanonical=${host_noncanonical} ;;
2258 *) target_noncanonical=${target_alias} ;;
2259 esac
2262 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2263 # have matching libraries, they should use host libraries: Makefile.tpl
2264 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2265 # However, they still use the build modules, because the corresponding
2266 # host modules (e.g. bison) are only built for the host when bootstrap
2267 # finishes. So:
2268 # - build_subdir is where we find build modules, and never changes.
2269 # - build_libsubdir is where we find build libraries, and can be overridden.
2271 # Prefix 'build-' so this never conflicts with target_subdir.
2272 build_subdir="build-${build_noncanonical}"
2274 # Check whether --with-build-libsubdir was given.
2275 if test "${with_build_libsubdir+set}" = set; then :
2276 withval=$with_build_libsubdir; build_libsubdir="$withval"
2277 else
2278 build_libsubdir="$build_subdir"
2281 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2282 if ( test $srcdir = . && test -d gcc ) \
2283 || test -d $srcdir/../host-${host_noncanonical}; then
2284 host_subdir="host-${host_noncanonical}"
2285 else
2286 host_subdir=.
2288 # No prefix.
2289 target_subdir=${target_noncanonical}
2292 # We need the following definitions because AC_PROG_LIBTOOL relies on them
2293 PACKAGE=libobjc
2294 # Version is pulled out to make it a bit easier to change using sed.
2295 VERSION=4:0:0
2298 # This works around the fact that libtool configuration may change LD
2299 # for this particular configuration, but some shells, instead of
2300 # keeping the changes in LD private, export them just because LD is
2301 # exported.
2302 ORIGINAL_LD_FOR_MULTILIBS=$LD
2304 # -------
2305 # Options
2306 # -------
2308 # We use these options to decide which functions to include.
2310 # Check whether --with-target-subdir was given.
2311 if test "${with_target_subdir+set}" = set; then :
2312 withval=$with_target_subdir;
2316 # Check whether --with-cross-host was given.
2317 if test "${with_cross_host+set}" = set; then :
2318 withval=$with_cross_host;
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2323 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2324 # Check whether --enable-version-specific-runtime-libs was given.
2325 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2326 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2327 yes) version_specific_libs=yes ;;
2328 no) version_specific_libs=no ;;
2329 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2330 esac
2331 else
2332 version_specific_libs=no
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2336 $as_echo "$version_specific_libs" >&6; }
2338 # -----------
2339 # Directories
2340 # -----------
2342 # Find the rest of the source tree framework.
2343 # Default to --enable-multilib
2344 # Check whether --enable-multilib was given.
2345 if test "${enable_multilib+set}" = set; then :
2346 enableval=$enable_multilib; case "$enableval" in
2347 yes) multilib=yes ;;
2348 no) multilib=no ;;
2349 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2350 esac
2351 else
2352 multilib=yes
2356 # We may get other options which we leave undocumented:
2357 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2358 # See config-ml.in if you want the gory details.
2360 if test "$srcdir" = "."; then
2361 if test "$with_target_subdir" != "."; then
2362 multi_basedir="$srcdir/$with_multisrctop../.."
2363 else
2364 multi_basedir="$srcdir/$with_multisrctop.."
2366 else
2367 multi_basedir="$srcdir/.."
2371 # Even if the default multilib is not a cross compilation,
2372 # it may be that some of the other multilibs are.
2373 if test $cross_compiling = no && test $multilib = yes \
2374 && test "x${with_multisubdir}" != x ; then
2375 cross_compiling=maybe
2378 ac_config_commands="$ac_config_commands default-1"
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388 else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395 $as_echo "$ac_cv_host" >&6; }
2396 case $ac_cv_host in
2397 *-*-*) ;;
2398 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399 esac
2400 host=$ac_cv_host
2401 ac_save_IFS=$IFS; IFS='-'
2402 set x $ac_cv_host
2403 shift
2404 host_cpu=$1
2405 host_vendor=$2
2406 shift; shift
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2409 host_os=$*
2410 IFS=$ac_save_IFS
2411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415 $as_echo_n "checking target system type... " >&6; }
2416 if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421 else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428 $as_echo "$ac_cv_target" >&6; }
2429 case $ac_cv_target in
2430 *-*-*) ;;
2431 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432 esac
2433 target=$ac_cv_target
2434 ac_save_IFS=$IFS; IFS='-'
2435 set x $ac_cv_target
2436 shift
2437 target_cpu=$1
2438 target_vendor=$2
2439 shift; shift
2440 # Remember, the first character of IFS is used to create $*,
2441 # except with old shells:
2442 target_os=$*
2443 IFS=$ac_save_IFS
2444 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2447 # The aliases save the names the user supplied, while $host etc.
2448 # will get canonicalized.
2449 test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
2457 # Export source directory.
2458 # These need to be absolute paths, yet at the same time need to
2459 # canonicalize only relative paths, because then amd will not unmount
2460 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2461 case $srcdir in
2462 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2463 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2464 esac
2467 # Calculate toolexeclibdir
2468 # Also toolexecdir, though it's only used in toolexeclibdir
2469 case ${version_specific_libs} in
2470 yes)
2471 # Need the gcc compiler version to know where to install libraries
2472 # and header files if --enable-version-specific-runtime-libs option
2473 # is selected.
2474 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2475 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2478 if test -n "$with_cross_host" &&
2479 test x"$with_cross_host" != x"no"; then
2480 # Install a library built with a cross compiler in tooldir, not libdir.
2481 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2482 toolexeclibdir='$(toolexecdir)/lib'
2483 else
2484 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2485 toolexeclibdir='$(libdir)'
2487 multi_os_directory=`$CC -print-multi-os-directory`
2488 case $multi_os_directory in
2489 .) ;; # Avoid trailing /.
2490 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2491 esac
2493 esac
2497 # Figure out if we want to name the include directory and the
2498 # library name changes differently.
2499 includedirname=include
2500 libsuffix=
2501 case "${host}" in
2502 *-darwin*)
2503 # Darwin is the only target so far that needs a different include directory.
2504 includedirname=include-gnu-runtime
2505 libsuffix=-gnu
2507 esac
2511 ac_config_headers="$ac_config_headers config.h"
2514 # --------
2515 # Programs
2516 # --------
2520 # We must force CC to /not/ be a precious variable; otherwise
2521 # the wrong, non-multilib-adjusted value will be used in multilibs.
2522 # As a side effect, we have to subst CFLAGS ourselves.
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534 $as_echo_n "checking for $ac_word... " >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2552 done
2553 done
2554 IFS=$as_save_IFS
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561 $as_echo "$CC" >&6; }
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2569 if test -z "$ac_cv_prog_CC"; then
2570 ac_ct_CC=$CC
2571 # Extract the first word of "gcc", so it can be a program name with args.
2572 set dummy gcc; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_CC="gcc"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2592 done
2593 done
2594 IFS=$as_save_IFS
2598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599 if test -n "$ac_ct_CC"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601 $as_echo "$ac_ct_CC" >&6; }
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2607 if test "x$ac_ct_CC" = x; then
2608 CC=""
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611 yes:)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616 CC=$ac_ct_CC
2618 else
2619 CC="$ac_cv_prog_CC"
2622 if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2625 set dummy ${ac_tool_prefix}cc; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_CC="${ac_tool_prefix}cc"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2645 done
2646 done
2647 IFS=$as_save_IFS
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654 $as_echo "$CC" >&6; }
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2663 if test -z "$CC"; then
2664 # Extract the first word of "cc", so it can be a program name with args.
2665 set dummy cc; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_CC+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 else
2674 ac_prog_rejected=no
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2683 ac_prog_rejected=yes
2684 continue
2686 ac_cv_prog_CC="cc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2692 IFS=$as_save_IFS
2694 if test $ac_prog_rejected = yes; then
2695 # We found a bogon in the path, so make sure we never use it.
2696 set dummy $ac_cv_prog_CC
2697 shift
2698 if test $# != 0; then
2699 # We chose a different compiler from the bogus one.
2700 # However, it has the same basename, so the bogon will be chosen
2701 # first if we set CC to just the basename; use the full file name.
2702 shift
2703 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 $as_echo "$CC" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2719 if test -z "$CC"; then
2720 if test -n "$ac_tool_prefix"; then
2721 for ac_prog in cl.exe
2723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if test "${ac_cv_prog_CC+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2744 done
2745 done
2746 IFS=$as_save_IFS
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753 $as_echo "$CC" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2760 test -n "$CC" && break
2761 done
2763 if test -z "$CC"; then
2764 ac_ct_CC=$CC
2765 for ac_prog in cl.exe
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768 set dummy $ac_prog; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_ac_ct_CC="$ac_prog"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2790 IFS=$as_save_IFS
2794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2795 if test -n "$ac_ct_CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2797 $as_echo "$ac_ct_CC" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2804 test -n "$ac_ct_CC" && break
2805 done
2807 if test "x$ac_ct_CC" = x; then
2808 CC=""
2809 else
2810 case $cross_compiling:$ac_tool_warned in
2811 yes:)
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 ac_tool_warned=yes ;;
2815 esac
2816 CC=$ac_ct_CC
2823 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825 as_fn_error "no acceptable C compiler found in \$PATH
2826 See \`config.log' for more details." "$LINENO" 5; }
2828 # Provide some information about the compiler.
2829 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2830 set X $ac_compile
2831 ac_compiler=$2
2832 for ac_option in --version -v -V -qversion; do
2833 { { ac_try="$ac_compiler $ac_option >&5"
2834 case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839 $as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2841 ac_status=$?
2842 if test -s conftest.err; then
2843 sed '10a\
2844 ... rest of stderr output deleted ...
2845 10q' conftest.err >conftest.er1
2846 cat conftest.er1 >&5
2847 rm -f conftest.er1 conftest.err
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }
2851 done
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2857 main ()
2861 return 0;
2863 _ACEOF
2864 # FIXME: Cleanup?
2865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2866 (eval $ac_link) 2>&5
2867 ac_status=$?
2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869 test $ac_status = 0; }; then :
2870 gcc_no_link=no
2871 else
2872 gcc_no_link=yes
2874 if test x$gcc_no_link = xyes; then
2875 # Setting cross_compile will disable run tests; it will
2876 # also disable AC_CHECK_FILE but that's generally
2877 # correct if we can't link.
2878 cross_compiling=yes
2879 EXEEXT=
2880 else
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2885 main ()
2889 return 0;
2891 _ACEOF
2892 ac_clean_files_save=$ac_clean_files
2893 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2894 # Try to create an executable without -o first, disregard a.out.
2895 # It will help us diagnose broken compilers, and finding out an intuition
2896 # of exeext.
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2898 $as_echo_n "checking for C compiler default output file name... " >&6; }
2899 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2901 # The possible output files:
2902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2904 ac_rmfiles=
2905 for ac_file in $ac_files
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910 esac
2911 done
2912 rm -f $ac_rmfiles
2914 if { { ac_try="$ac_link_default"
2915 case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_link_default") 2>&5
2922 ac_status=$?
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
2925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2926 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2927 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2928 # so that the user can short-circuit this test for compilers unknown to
2929 # Autoconf.
2930 for ac_file in $ac_files ''
2932 test -f "$ac_file" || continue
2933 case $ac_file in
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2936 [ab].out )
2937 # We found the default executable, but exeext='' is most
2938 # certainly right.
2939 break;;
2940 *.* )
2941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942 then :; else
2943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 # We set ac_cv_exeext here because the later test for it is not
2946 # safe: cross compilers may not add the suffix if given an `-o'
2947 # argument, so we may need to know it at that point already.
2948 # Even if this section looks crufty: it has the advantage of
2949 # actually working.
2950 break;;
2952 break;;
2953 esac
2954 done
2955 test "$ac_cv_exeext" = no && ac_cv_exeext=
2957 else
2958 ac_file=''
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2961 $as_echo "$ac_file" >&6; }
2962 if test -z "$ac_file"; then :
2963 $as_echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968 { as_fn_set_status 77
2969 as_fn_error "C compiler cannot create executables
2970 See \`config.log' for more details." "$LINENO" 5; }; }
2972 ac_exeext=$ac_cv_exeext
2974 # Check that the compiler produces executables we can run. If not, either
2975 # the compiler is broken, or we cross compile.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2977 $as_echo_n "checking whether the C compiler works... " >&6; }
2978 # If not cross compiling, check that we can run a simple program.
2979 if test "$cross_compiling" != yes; then
2980 if { ac_try='./$ac_file'
2981 { { case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_try") 2>&5
2988 ac_status=$?
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }; }; then
2991 cross_compiling=no
2992 else
2993 if test "$cross_compiling" = maybe; then
2994 cross_compiling=yes
2995 else
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error "cannot run C compiled programs.
2999 If you meant to cross compile, use \`--host'.
3000 See \`config.log' for more details." "$LINENO" 5; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3007 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3008 ac_clean_files=$ac_clean_files_save
3009 # Check that the compiler produces executables we can run. If not, either
3010 # the compiler is broken, or we cross compile.
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3012 $as_echo_n "checking whether we are cross compiling... " >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3014 $as_echo "$cross_compiling" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3017 $as_echo_n "checking for suffix of executables... " >&6; }
3018 if { { ac_try="$ac_link"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_link") 2>&5
3026 ac_status=$?
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3030 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3031 # work properly (i.e., refer to `conftest.exe'), while it won't with
3032 # `rm'.
3033 for ac_file in conftest.exe conftest conftest.*; do
3034 test -f "$ac_file" || continue
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038 break;;
3039 * ) break;;
3040 esac
3041 done
3042 else
3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error "cannot compute suffix of executables: cannot compile and link
3046 See \`config.log' for more details." "$LINENO" 5; }
3048 rm -f conftest$ac_cv_exeext
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3050 $as_echo "$ac_cv_exeext" >&6; }
3052 rm -f conftest.$ac_ext
3053 EXEEXT=$ac_cv_exeext
3054 ac_exeext=$EXEEXT
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3057 $as_echo_n "checking for suffix of object files... " >&6; }
3058 if test "${ac_cv_objext+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 rm -f conftest.o conftest.obj
3073 if { { ac_try="$ac_compile"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_compile") 2>&5
3081 ac_status=$?
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 for ac_file in conftest.o conftest.obj conftest.*; do
3085 test -f "$ac_file" || continue;
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 break;;
3090 esac
3091 done
3092 else
3093 $as_echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error "cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details." "$LINENO" 5; }
3101 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3104 $as_echo "$ac_cv_objext" >&6; }
3105 OBJEXT=$ac_cv_objext
3106 ac_objext=$OBJEXT
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3108 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3109 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3116 main ()
3118 #ifndef __GNUC__
3119 choke me
3120 #endif
3123 return 0;
3125 _ACEOF
3126 if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_compiler_gnu=yes
3128 else
3129 ac_compiler_gnu=no
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3136 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3137 if test $ac_compiler_gnu = yes; then
3138 GCC=yes
3139 else
3140 GCC=
3142 ac_test_CFLAGS=${CFLAGS+set}
3143 ac_save_CFLAGS=$CFLAGS
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3145 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3146 if test "${ac_cv_prog_cc_g+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 ac_save_c_werror_flag=$ac_c_werror_flag
3150 ac_c_werror_flag=yes
3151 ac_cv_prog_cc_g=no
3152 CFLAGS="-g"
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3157 main ()
3161 return 0;
3163 _ACEOF
3164 if ac_fn_c_try_compile "$LINENO"; then :
3165 ac_cv_prog_cc_g=yes
3166 else
3167 CFLAGS=""
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3172 main ()
3176 return 0;
3178 _ACEOF
3179 if ac_fn_c_try_compile "$LINENO"; then :
3181 else
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3188 main ()
3192 return 0;
3194 _ACEOF
3195 if ac_fn_c_try_compile "$LINENO"; then :
3196 ac_cv_prog_cc_g=yes
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3206 $as_echo "$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3211 CFLAGS="-g -O2"
3212 else
3213 CFLAGS="-g"
3215 else
3216 if test "$GCC" = yes; then
3217 CFLAGS="-O2"
3218 else
3219 CFLAGS=
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3223 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 ac_cv_prog_cc_c89=no
3228 ac_save_CC=$CC
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239 char **p;
3240 int i;
3242 return p[i];
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3246 char *s;
3247 va_list v;
3248 va_start (v,p);
3249 s = g (p, va_arg (v,int));
3250 va_end (v);
3251 return s;
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3275 main ()
3277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 return 0;
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 CC="$ac_save_CC $ac_arg"
3286 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_cv_prog_cc_c89=$ac_arg
3289 rm -f core conftest.err conftest.$ac_objext
3290 test "x$ac_cv_prog_cc_c89" != "xno" && break
3291 done
3292 rm -f conftest.$ac_ext
3293 CC=$ac_save_CC
3296 # AC_CACHE_VAL
3297 case "x$ac_cv_prog_cc_c89" in
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3300 $as_echo "none needed" >&6; } ;;
3301 xno)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3303 $as_echo "unsupported" >&6; } ;;
3305 CC="$CC $ac_cv_prog_cc_c89"
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3308 esac
3309 if test "x$ac_cv_prog_cc_c89" != xno; then :
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 # extra LD Flags which are required for targets
3325 case $host in
3326 *-cygwin* | *-mingw*)
3327 # 'host' will be top-level target in the case of a target lib,
3328 # we must compare to with_cross_host to decide if this is a native
3329 # or cross-compiler and select where to install dlls appropriately.
3330 if test -n "$with_cross_host" &&
3331 test x"$with_cross_host" != x"no"; then
3332 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
3333 else
3334 lt_host_flags='-no-undefined -bindir "$(bindir)"';
3338 lt_host_flags=
3340 esac
3344 case "${host}" in
3345 *-darwin*)
3346 # Darwin needs -single_module when linking libobjc
3347 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
3349 *-cygwin*|*-mingw*)
3350 # Tell libtool to build DLLs on Windows
3351 extra_ldflags_libobjc='$(lt_host_flags)'
3353 esac
3356 # Add CET specific flags if CET is enabled
3358 # Check whether --enable-cet was given.
3359 if test "${enable_cet+set}" = set; then :
3360 enableval=$enable_cet;
3361 case "$enableval" in
3362 yes|no|auto) ;;
3363 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
3364 esac
3366 else
3367 enable_cet=no
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
3372 $as_echo_n "checking for CET support... " >&6; }
3374 case "$host" in
3375 i[34567]86-*-linux* | x86_64-*-linux*)
3376 case "$enable_cet" in
3377 auto)
3378 # Check if target supports multi-byte NOPs
3379 # and if assembler supports CET insn.
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3384 main ()
3387 #if !defined(__SSE2__)
3388 #error target does not support multi-byte NOPs
3389 #else
3390 asm ("setssbsy");
3391 #endif
3394 return 0;
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398 enable_cet=yes
3399 else
3400 enable_cet=no
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 yes)
3405 # Check if assembler supports CET.
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3412 asm ("setssbsy");
3414 return 0;
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3419 else
3420 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 esac
3427 enable_cet=no
3429 esac
3430 if test x$enable_cet = xyes; then
3431 CET_FLAGS="-fcf-protection -mshstk"
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433 $as_echo "yes" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3439 XCFLAGS="$XCFLAGS $CET_FLAGS"
3444 if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}as; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if test "${ac_cv_prog_AS+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 if test -n "$AS"; then
3453 ac_cv_prog_AS="$AS" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_AS="${ac_tool_prefix}as"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3468 IFS=$as_save_IFS
3472 AS=$ac_cv_prog_AS
3473 if test -n "$AS"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3475 $as_echo "$AS" >&6; }
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3483 if test -z "$ac_cv_prog_AS"; then
3484 ac_ct_AS=$AS
3485 # Extract the first word of "as", so it can be a program name with args.
3486 set dummy as; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 if test -n "$ac_ct_AS"; then
3493 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3502 ac_cv_prog_ac_ct_AS="as"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3506 done
3507 done
3508 IFS=$as_save_IFS
3512 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3513 if test -n "$ac_ct_AS"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3515 $as_echo "$ac_ct_AS" >&6; }
3516 else
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3521 if test "x$ac_ct_AS" = x; then
3522 AS=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525 yes:)
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528 ac_tool_warned=yes ;;
3529 esac
3530 AS=$ac_ct_AS
3532 else
3533 AS="$ac_cv_prog_AS"
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}ar; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_AR+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$AR"; then
3545 ac_cv_prog_AR="$AR" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_AR="${ac_tool_prefix}ar"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3558 done
3559 done
3560 IFS=$as_save_IFS
3564 AR=$ac_cv_prog_AR
3565 if test -n "$AR"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3567 $as_echo "$AR" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3575 if test -z "$ac_cv_prog_AR"; then
3576 ac_ct_AR=$AR
3577 # Extract the first word of "ar", so it can be a program name with args.
3578 set dummy ar; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -n "$ac_ct_AR"; then
3585 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_ac_ct_AR="ar"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3598 done
3599 done
3600 IFS=$as_save_IFS
3604 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3605 if test -n "$ac_ct_AR"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3607 $as_echo "$ac_ct_AR" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3613 if test "x$ac_ct_AR" = x; then
3614 AR=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned=yes ;;
3621 esac
3622 AR=$ac_ct_AR
3624 else
3625 AR="$ac_cv_prog_AR"
3628 if test -n "$ac_tool_prefix"; then
3629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$RANLIB"; then
3637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3656 RANLIB=$ac_cv_prog_RANLIB
3657 if test -n "$RANLIB"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3659 $as_echo "$RANLIB" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3667 if test -z "$ac_cv_prog_RANLIB"; then
3668 ac_ct_RANLIB=$RANLIB
3669 # Extract the first word of "ranlib", so it can be a program name with args.
3670 set dummy ranlib; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 if test -n "$ac_ct_RANLIB"; then
3677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3678 else
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 ac_cv_prog_ac_ct_RANLIB="ranlib"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 break 2
3690 done
3691 done
3692 IFS=$as_save_IFS
3696 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3697 if test -n "$ac_ct_RANLIB"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3699 $as_echo "$ac_ct_RANLIB" >&6; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3705 if test "x$ac_ct_RANLIB" = x; then
3706 RANLIB=":"
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709 yes:)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3712 ac_tool_warned=yes ;;
3713 esac
3714 RANLIB=$ac_ct_RANLIB
3716 else
3717 RANLIB="$ac_cv_prog_RANLIB"
3720 # Find a good install program. We prefer a C program (faster),
3721 # so one script is as good as another. But avoid the broken or
3722 # incompatible versions:
3723 # SysV /etc/install, /usr/sbin/install
3724 # SunOS /usr/etc/install
3725 # IRIX /sbin/install
3726 # AIX /bin/install
3727 # AmigaOS /C/install, which installs bootblocks on floppy discs
3728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3731 # OS/2's system install, which has a completely different semantic
3732 # ./install, which can be erroneously created by make from ./install.sh.
3733 # Reject install programs that cannot install multiple files.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3735 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3736 if test -z "$INSTALL"; then
3737 if test "${ac_cv_path_install+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 # Account for people who put trailing slashes in PATH elements.
3746 case $as_dir/ in #((
3747 ./ | .// | /[cC]/* | \
3748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3749 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3750 /usr/ucb/* ) ;;
3752 # OSF1 and SCO ODT 3.0 have their own names for install.
3753 # Don't use installbsd from OSF since it installs stuff as root
3754 # by default.
3755 for ac_prog in ginstall scoinst install; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3758 if test $ac_prog = install &&
3759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760 # AIX install. It has an incompatible calling convention.
3762 elif test $ac_prog = install &&
3763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # program-specific install script used by HP pwplus--don't use.
3766 else
3767 rm -rf conftest.one conftest.two conftest.dir
3768 echo one > conftest.one
3769 echo two > conftest.two
3770 mkdir conftest.dir
3771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3772 test -s conftest.one && test -s conftest.two &&
3773 test -s conftest.dir/conftest.one &&
3774 test -s conftest.dir/conftest.two
3775 then
3776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3777 break 3
3781 done
3782 done
3784 esac
3786 done
3787 IFS=$as_save_IFS
3789 rm -rf conftest.one conftest.two conftest.dir
3792 if test "${ac_cv_path_install+set}" = set; then
3793 INSTALL=$ac_cv_path_install
3794 else
3795 # As a last resort, use the slow shell script. Don't cache a
3796 # value for INSTALL within a source directory, because that will
3797 # break other packages using the cache if that directory is
3798 # removed, or if the value is a relative name.
3799 INSTALL=$ac_install_sh
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3803 $as_echo "$INSTALL" >&6; }
3805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806 # It thinks the first close brace ends the variable substitution.
3807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3816 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3817 # Check whether --enable-maintainer-mode was given.
3818 if test "${enable_maintainer_mode+set}" = set; then :
3819 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3820 else
3821 USE_MAINTAINER_MODE=no
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3825 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3826 if test $USE_MAINTAINER_MODE = yes; then
3827 MAINTAINER_MODE_TRUE=
3828 MAINTAINER_MODE_FALSE='#'
3829 else
3830 MAINTAINER_MODE_TRUE='#'
3831 MAINTAINER_MODE_FALSE=
3834 MAINT=$MAINTAINER_MODE_TRUE
3838 # Enable Win32 DLL on MS Windows - FIXME
3839 enable_win32_dll=yes
3841 case $host in
3842 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3845 set dummy ${ac_tool_prefix}as; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if test "${ac_cv_prog_AS+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test -n "$AS"; then
3852 ac_cv_prog_AS="$AS" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_AS="${ac_tool_prefix}as"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3865 done
3866 done
3867 IFS=$as_save_IFS
3871 AS=$ac_cv_prog_AS
3872 if test -n "$AS"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3874 $as_echo "$AS" >&6; }
3875 else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3882 if test -z "$ac_cv_prog_AS"; then
3883 ac_ct_AS=$AS
3884 # Extract the first word of "as", so it can be a program name with args.
3885 set dummy as; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 if test -n "$ac_ct_AS"; then
3892 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_ac_ct_AS="as"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3905 done
3906 done
3907 IFS=$as_save_IFS
3911 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3912 if test -n "$ac_ct_AS"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3914 $as_echo "$ac_ct_AS" >&6; }
3915 else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3920 if test "x$ac_ct_AS" = x; then
3921 AS="false"
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3928 esac
3929 AS=$ac_ct_AS
3931 else
3932 AS="$ac_cv_prog_AS"
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$DLLTOOL"; then
3944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3957 done
3958 done
3959 IFS=$as_save_IFS
3963 DLLTOOL=$ac_cv_prog_DLLTOOL
3964 if test -n "$DLLTOOL"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3966 $as_echo "$DLLTOOL" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3974 if test -z "$ac_cv_prog_DLLTOOL"; then
3975 ac_ct_DLLTOOL=$DLLTOOL
3976 # Extract the first word of "dlltool", so it can be a program name with args.
3977 set dummy dlltool; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$ac_ct_DLLTOOL"; then
3984 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
3999 IFS=$as_save_IFS
4003 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4004 if test -n "$ac_ct_DLLTOOL"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4006 $as_echo "$ac_ct_DLLTOOL" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4012 if test "x$ac_ct_DLLTOOL" = x; then
4013 DLLTOOL="false"
4014 else
4015 case $cross_compiling:$ac_tool_warned in
4016 yes:)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4019 ac_tool_warned=yes ;;
4020 esac
4021 DLLTOOL=$ac_ct_DLLTOOL
4023 else
4024 DLLTOOL="$ac_cv_prog_DLLTOOL"
4027 if test -n "$ac_tool_prefix"; then
4028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4029 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$OBJDUMP"; then
4036 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4049 done
4050 done
4051 IFS=$as_save_IFS
4055 OBJDUMP=$ac_cv_prog_OBJDUMP
4056 if test -n "$OBJDUMP"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4058 $as_echo "$OBJDUMP" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4066 if test -z "$ac_cv_prog_OBJDUMP"; then
4067 ac_ct_OBJDUMP=$OBJDUMP
4068 # Extract the first word of "objdump", so it can be a program name with args.
4069 set dummy objdump; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 if test -n "$ac_ct_OBJDUMP"; then
4076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4089 done
4090 done
4091 IFS=$as_save_IFS
4095 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4096 if test -n "$ac_ct_OBJDUMP"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4098 $as_echo "$ac_ct_OBJDUMP" >&6; }
4099 else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4104 if test "x$ac_ct_OBJDUMP" = x; then
4105 OBJDUMP="false"
4106 else
4107 case $cross_compiling:$ac_tool_warned in
4108 yes:)
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111 ac_tool_warned=yes ;;
4112 esac
4113 OBJDUMP=$ac_ct_OBJDUMP
4115 else
4116 OBJDUMP="$ac_cv_prog_OBJDUMP"
4120 esac
4122 test -z "$AS" && AS=as
4128 test -z "$DLLTOOL" && DLLTOOL=dlltool
4134 test -z "$OBJDUMP" && OBJDUMP=objdump
4143 case `pwd` in
4144 *\ * | *\ *)
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4146 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4147 esac
4151 macro_version='2.2.7a'
4152 macro_revision='1.3134'
4166 ltmain="$ac_aux_dir/ltmain.sh"
4168 # Backslashify metacharacters that are still active within
4169 # double-quoted strings.
4170 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4172 # Same as above, but do not quote variable references.
4173 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4175 # Sed substitution to delay expansion of an escaped shell variable in a
4176 # double_quote_subst'ed string.
4177 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4179 # Sed substitution to delay expansion of an escaped single quote.
4180 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4182 # Sed substitution to avoid accidental globbing in evaled expressions
4183 no_glob_subst='s/\*/\\\*/g'
4185 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4186 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4190 $as_echo_n "checking how to print strings... " >&6; }
4191 # Test print first, because it will be a builtin if present.
4192 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4194 ECHO='print -r --'
4195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4196 ECHO='printf %s\n'
4197 else
4198 # Use this function as a fallback that always works.
4199 func_fallback_echo ()
4201 eval 'cat <<_LTECHO_EOF
4203 _LTECHO_EOF'
4205 ECHO='func_fallback_echo'
4208 # func_echo_all arg...
4209 # Invoke $ECHO with all args, space-separated.
4210 func_echo_all ()
4212 $ECHO ""
4215 case "$ECHO" in
4216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4217 $as_echo "printf" >&6; } ;;
4218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4219 $as_echo "print -r" >&6; } ;;
4220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4221 $as_echo "cat" >&6; } ;;
4222 esac
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4238 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4239 if test "${ac_cv_path_SED+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4243 for ac_i in 1 2 3 4 5 6 7; do
4244 ac_script="$ac_script$as_nl$ac_script"
4245 done
4246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4247 { ac_script=; unset ac_script;}
4248 if test -z "$SED"; then
4249 ac_path_SED_found=false
4250 # Loop through the user's path and test for each of PROGNAME-LIST
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_prog in sed gsed; do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4259 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4260 # Check for GNU ac_path_SED and select it if it is found.
4261 # Check for GNU $ac_path_SED
4262 case `"$ac_path_SED" --version 2>&1` in
4263 *GNU*)
4264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4266 ac_count=0
4267 $as_echo_n 0123456789 >"conftest.in"
4268 while :
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
4273 $as_echo '' >> "conftest.nl"
4274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276 as_fn_arith $ac_count + 1 && ac_count=$as_val
4277 if test $ac_count -gt ${ac_path_SED_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_SED="$ac_path_SED"
4280 ac_path_SED_max=$ac_count
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4284 done
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 esac
4288 $ac_path_SED_found && break 3
4289 done
4290 done
4291 done
4292 IFS=$as_save_IFS
4293 if test -z "$ac_cv_path_SED"; then
4294 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4296 else
4297 ac_cv_path_SED=$SED
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4302 $as_echo "$ac_cv_path_SED" >&6; }
4303 SED="$ac_cv_path_SED"
4304 rm -f conftest.sed
4306 test -z "$SED" && SED=sed
4307 Xsed="$SED -e 1s/^X//"
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4320 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321 if test "${ac_cv_path_GREP+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -z "$GREP"; then
4325 ac_path_GREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in grep ggrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4339 *GNU*)
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4342 ac_count=0
4343 $as_echo_n 0123456789 >"conftest.in"
4344 while :
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 esac
4364 $ac_path_GREP_found && break 3
4365 done
4366 done
4367 done
4368 IFS=$as_save_IFS
4369 if test -z "$ac_cv_path_GREP"; then
4370 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4372 else
4373 ac_cv_path_GREP=$GREP
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4378 $as_echo "$ac_cv_path_GREP" >&6; }
4379 GREP="$ac_cv_path_GREP"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4383 $as_echo_n "checking for egrep... " >&6; }
4384 if test "${ac_cv_path_EGREP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4388 then ac_cv_path_EGREP="$GREP -E"
4389 else
4390 if test -z "$EGREP"; then
4391 ac_path_EGREP_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in egrep; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4402 # Check for GNU ac_path_EGREP and select it if it is found.
4403 # Check for GNU $ac_path_EGREP
4404 case `"$ac_path_EGREP" --version 2>&1` in
4405 *GNU*)
4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4408 ac_count=0
4409 $as_echo_n 0123456789 >"conftest.in"
4410 while :
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo 'EGREP' >> "conftest.nl"
4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_EGREP="$ac_path_EGREP"
4422 ac_path_EGREP_max=$ac_count
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4426 done
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 esac
4430 $ac_path_EGREP_found && break 3
4431 done
4432 done
4433 done
4434 IFS=$as_save_IFS
4435 if test -z "$ac_cv_path_EGREP"; then
4436 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438 else
4439 ac_cv_path_EGREP=$EGREP
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4445 $as_echo "$ac_cv_path_EGREP" >&6; }
4446 EGREP="$ac_cv_path_EGREP"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4450 $as_echo_n "checking for fgrep... " >&6; }
4451 if test "${ac_cv_path_FGREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4455 then ac_cv_path_FGREP="$GREP -F"
4456 else
4457 if test -z "$FGREP"; then
4458 ac_path_FGREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in fgrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4469 # Check for GNU ac_path_FGREP and select it if it is found.
4470 # Check for GNU $ac_path_FGREP
4471 case `"$ac_path_FGREP" --version 2>&1` in
4472 *GNU*)
4473 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'FGREP' >> "conftest.nl"
4483 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_FGREP="$ac_path_FGREP"
4489 ac_path_FGREP_max=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4497 $ac_path_FGREP_found && break 3
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_FGREP"; then
4503 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 else
4506 ac_cv_path_FGREP=$FGREP
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4512 $as_echo "$ac_cv_path_FGREP" >&6; }
4513 FGREP="$ac_cv_path_FGREP"
4516 test -z "$GREP" && GREP=grep
4536 # Check whether --with-gnu-ld was given.
4537 if test "${with_gnu_ld+set}" = set; then :
4538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4539 else
4540 with_gnu_ld=no
4543 ac_prog=ld
4544 if test "$GCC" = yes; then
4545 # Check if gcc -print-prog-name=ld gives a path.
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4547 $as_echo_n "checking for ld used by $CC... " >&6; }
4548 case $host in
4549 *-*-mingw*)
4550 # gcc leaves a trailing carriage return which upsets mingw
4551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4554 esac
4555 case $ac_prog in
4556 # Accept absolute paths.
4557 [\\/]* | ?:[\\/]*)
4558 re_direlt='/[^/][^/]*/\.\./'
4559 # Canonicalize the pathname of ld
4560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4563 done
4564 test -z "$LD" && LD="$ac_prog"
4567 # If it fails, then pretend we aren't using GCC.
4568 ac_prog=ld
4571 # If it is relative, then search for the first ld in PATH.
4572 with_gnu_ld=unknown
4574 esac
4575 elif test "$with_gnu_ld" = yes; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4577 $as_echo_n "checking for GNU ld... " >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4580 $as_echo_n "checking for non-GNU ld... " >&6; }
4582 if test "${lt_cv_path_LD+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -z "$LD"; then
4586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4587 for ac_dir in $PATH; do
4588 IFS="$lt_save_ifs"
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4591 lt_cv_path_LD="$ac_dir/$ac_prog"
4592 # Check to see if the program is GNU ld. I'd rather use --version,
4593 # but apparently some variants of GNU ld only accept -v.
4594 # Break only if it was the GNU/non-GNU ld that we prefer.
4595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4596 *GNU* | *'with BFD'*)
4597 test "$with_gnu_ld" != no && break
4600 test "$with_gnu_ld" != yes && break
4602 esac
4604 done
4605 IFS="$lt_save_ifs"
4606 else
4607 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4611 LD="$lt_cv_path_LD"
4612 if test -n "$LD"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4614 $as_echo "$LD" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4619 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4621 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4622 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4626 case `$LD -v 2>&1 </dev/null` in
4627 *GNU* | *'with BFD'*)
4628 lt_cv_prog_gnu_ld=yes
4631 lt_cv_prog_gnu_ld=no
4633 esac
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4636 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4637 with_gnu_ld=$lt_cv_prog_gnu_ld
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4648 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4649 if test "${lt_cv_path_NM+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$NM"; then
4653 # Let the user override the test.
4654 lt_cv_path_NM="$NM"
4655 else
4656 lt_nm_to_check="${ac_tool_prefix}nm"
4657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4658 lt_nm_to_check="$lt_nm_to_check nm"
4660 for lt_tmp_nm in $lt_nm_to_check; do
4661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4663 IFS="$lt_save_ifs"
4664 test -z "$ac_dir" && ac_dir=.
4665 tmp_nm="$ac_dir/$lt_tmp_nm"
4666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4667 # Check to see if the nm accepts a BSD-compat flag.
4668 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4669 # nm: unknown option "B" ignored
4670 # Tru64's nm complains that /dev/null is an invalid object file
4671 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4672 */dev/null* | *'Invalid file or object type'*)
4673 lt_cv_path_NM="$tmp_nm -B"
4674 break
4677 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4678 */dev/null*)
4679 lt_cv_path_NM="$tmp_nm -p"
4680 break
4683 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4684 continue # so that we can try to find one that supports BSD flags
4686 esac
4688 esac
4690 done
4691 IFS="$lt_save_ifs"
4692 done
4693 : ${lt_cv_path_NM=no}
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4697 $as_echo "$lt_cv_path_NM" >&6; }
4698 if test "$lt_cv_path_NM" != "no"; then
4699 NM="$lt_cv_path_NM"
4700 else
4701 # Didn't find any BSD compatible name lister, look for dumpbin.
4702 if test -n "$DUMPBIN"; then :
4703 # Let the user override the test.
4704 else
4705 if test -n "$ac_tool_prefix"; then
4706 for ac_prog in dumpbin "link -dump"
4708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$DUMPBIN"; then
4716 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4729 done
4730 done
4731 IFS=$as_save_IFS
4735 DUMPBIN=$ac_cv_prog_DUMPBIN
4736 if test -n "$DUMPBIN"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4738 $as_echo "$DUMPBIN" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4745 test -n "$DUMPBIN" && break
4746 done
4748 if test -z "$DUMPBIN"; then
4749 ac_ct_DUMPBIN=$DUMPBIN
4750 for ac_prog in dumpbin "link -dump"
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy $ac_prog; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$ac_ct_DUMPBIN"; then
4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4773 done
4774 done
4775 IFS=$as_save_IFS
4779 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4780 if test -n "$ac_ct_DUMPBIN"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4782 $as_echo "$ac_ct_DUMPBIN" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4789 test -n "$ac_ct_DUMPBIN" && break
4790 done
4792 if test "x$ac_ct_DUMPBIN" = x; then
4793 DUMPBIN=":"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796 yes:)
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4800 esac
4801 DUMPBIN=$ac_ct_DUMPBIN
4805 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4806 *COFF*)
4807 DUMPBIN="$DUMPBIN -symbols"
4810 DUMPBIN=:
4812 esac
4815 if test "$DUMPBIN" != ":"; then
4816 NM="$DUMPBIN"
4819 test -z "$NM" && NM=nm
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4827 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4828 if test "${lt_cv_nm_interface+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 lt_cv_nm_interface="BSD nm"
4832 echo "int some_variable = 0;" > conftest.$ac_ext
4833 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4834 (eval "$ac_compile" 2>conftest.err)
4835 cat conftest.err >&5
4836 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4837 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4838 cat conftest.err >&5
4839 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4840 cat conftest.out >&5
4841 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4842 lt_cv_nm_interface="MS dumpbin"
4844 rm -f conftest*
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4847 $as_echo "$lt_cv_nm_interface" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4850 $as_echo_n "checking whether ln -s works... " >&6; }
4851 LN_S=$as_ln_s
4852 if test "$LN_S" = "ln -s"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 $as_echo "yes" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4857 $as_echo "no, using $LN_S" >&6; }
4860 # find the maximum length of command line arguments
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4862 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4863 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4867 teststring="ABCD"
4869 case $build_os in
4870 msdosdjgpp*)
4871 # On DJGPP, this test can blow up pretty badly due to problems in libc
4872 # (any single argument exceeding 2000 bytes causes a buffer overrun
4873 # during glob expansion). Even if it were fixed, the result of this
4874 # check would be larger than it should be.
4875 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4878 gnu*)
4879 # Under GNU Hurd, this test is not required because there is
4880 # no limit to the length of command line arguments.
4881 # Libtool will interpret -1 as no limit whatsoever
4882 lt_cv_sys_max_cmd_len=-1;
4885 cygwin* | mingw* | cegcc*)
4886 # On Win9x/ME, this test blows up -- it succeeds, but takes
4887 # about 5 minutes as the teststring grows exponentially.
4888 # Worse, since 9x/ME are not pre-emptively multitasking,
4889 # you end up with a "frozen" computer, even though with patience
4890 # the test eventually succeeds (with a max line length of 256k).
4891 # Instead, let's just punt: use the minimum linelength reported by
4892 # all of the supported platforms: 8192 (on NT/2K/XP).
4893 lt_cv_sys_max_cmd_len=8192;
4896 mint*)
4897 # On MiNT this can take a long time and run out of memory.
4898 lt_cv_sys_max_cmd_len=8192;
4901 amigaos*)
4902 # On AmigaOS with pdksh, this test takes hours, literally.
4903 # So we just punt and use a minimum line length of 8192.
4904 lt_cv_sys_max_cmd_len=8192;
4907 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4908 # This has been around since 386BSD, at least. Likely further.
4909 if test -x /sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4911 elif test -x /usr/sbin/sysctl; then
4912 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4913 else
4914 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4916 # And add a safety zone
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4921 interix*)
4922 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4923 lt_cv_sys_max_cmd_len=196608
4926 osf*)
4927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4929 # nice to cause kernel panics so lets avoid the loop below.
4930 # First set a reasonable default.
4931 lt_cv_sys_max_cmd_len=16384
4933 if test -x /sbin/sysconfig; then
4934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4935 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4936 esac
4939 sco3.2v5*)
4940 lt_cv_sys_max_cmd_len=102400
4942 sysv5* | sco5v6* | sysv4.2uw2*)
4943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4944 if test -n "$kargmax"; then
4945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4946 else
4947 lt_cv_sys_max_cmd_len=32768
4951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4952 if test -n "$lt_cv_sys_max_cmd_len"; then
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4955 else
4956 # Make teststring a little bigger before we do anything with it.
4957 # a 1K string should be a reasonable start.
4958 for i in 1 2 3 4 5 6 7 8 ; do
4959 teststring=$teststring$teststring
4960 done
4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4962 # If test is not a shell built-in, we'll probably end up computing a
4963 # maximum length that is only half of the actual maximum length, but
4964 # we can't tell.
4965 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4966 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4967 test $i != 17 # 1/2 MB should be enough
4969 i=`expr $i + 1`
4970 teststring=$teststring$teststring
4971 done
4972 # Only check the string length outside the loop.
4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4974 teststring=
4975 # Add a significant safety factor because C++ compilers can tack on
4976 # massive amounts of additional arguments before passing them to the
4977 # linker. It appears as though 1/2 is a usable value.
4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4981 esac
4985 if test -n $lt_cv_sys_max_cmd_len ; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4987 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4990 $as_echo "none" >&6; }
4992 max_cmd_len=$lt_cv_sys_max_cmd_len
4999 : ${CP="cp -f"}
5000 : ${MV="mv -f"}
5001 : ${RM="rm -f"}
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5004 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5005 # Try some XSI features
5006 xsi_shell=no
5007 ( _lt_dummy="a/b/c"
5008 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5009 = c,a/b,, \
5010 && eval 'test $(( 1 + 1 )) -eq 2 \
5011 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5012 && xsi_shell=yes
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5014 $as_echo "$xsi_shell" >&6; }
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5018 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5019 lt_shell_append=no
5020 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5021 >/dev/null 2>&1 \
5022 && lt_shell_append=yes
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5024 $as_echo "$lt_shell_append" >&6; }
5027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5028 lt_unset=unset
5029 else
5030 lt_unset=false
5037 # test EBCDIC or ASCII
5038 case `echo X|tr X '\101'` in
5039 A) # ASCII based system
5040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5041 lt_SP2NL='tr \040 \012'
5042 lt_NL2SP='tr \015\012 \040\040'
5044 *) # EBCDIC based system
5045 lt_SP2NL='tr \100 \n'
5046 lt_NL2SP='tr \r\n \100\100'
5048 esac
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5059 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5060 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 lt_cv_ld_reload_flag='-r'
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5066 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5067 reload_flag=$lt_cv_ld_reload_flag
5068 case $reload_flag in
5069 "" | " "*) ;;
5070 *) reload_flag=" $reload_flag" ;;
5071 esac
5072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073 case $host_os in
5074 darwin*)
5075 if test "$GCC" = yes; then
5076 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5077 else
5078 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5081 esac
5091 if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5093 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$OBJDUMP"; then
5100 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5113 done
5114 done
5115 IFS=$as_save_IFS
5119 OBJDUMP=$ac_cv_prog_OBJDUMP
5120 if test -n "$OBJDUMP"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5122 $as_echo "$OBJDUMP" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5130 if test -z "$ac_cv_prog_OBJDUMP"; then
5131 ac_ct_OBJDUMP=$OBJDUMP
5132 # Extract the first word of "objdump", so it can be a program name with args.
5133 set dummy objdump; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$ac_ct_OBJDUMP"; then
5140 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5153 done
5154 done
5155 IFS=$as_save_IFS
5159 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5160 if test -n "$ac_ct_OBJDUMP"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5162 $as_echo "$ac_ct_OBJDUMP" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5168 if test "x$ac_ct_OBJDUMP" = x; then
5169 OBJDUMP="false"
5170 else
5171 case $cross_compiling:$ac_tool_warned in
5172 yes:)
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5175 ac_tool_warned=yes ;;
5176 esac
5177 OBJDUMP=$ac_ct_OBJDUMP
5179 else
5180 OBJDUMP="$ac_cv_prog_OBJDUMP"
5183 test -z "$OBJDUMP" && OBJDUMP=objdump
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5191 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5192 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 lt_cv_file_magic_cmd='$MAGIC_CMD'
5196 lt_cv_file_magic_test_file=
5197 lt_cv_deplibs_check_method='unknown'
5198 # Need to set the preceding variable on all platforms that support
5199 # interlibrary dependencies.
5200 # 'none' -- dependencies not supported.
5201 # `unknown' -- same as none, but documents that we really don't know.
5202 # 'pass_all' -- all dependencies passed with no checks.
5203 # 'test_compile' -- check by making test program.
5204 # 'file_magic [[regex]]' -- check by looking for files in library path
5205 # which responds to the $file_magic_cmd with a given extended regex.
5206 # If you have `file' or equivalent on your system and you're not sure
5207 # whether `pass_all' will *always* work, you probably want this one.
5209 case $host_os in
5210 aix[4-9]*)
5211 lt_cv_deplibs_check_method=pass_all
5214 beos*)
5215 lt_cv_deplibs_check_method=pass_all
5218 bsdi[45]*)
5219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5220 lt_cv_file_magic_cmd='/usr/bin/file -L'
5221 lt_cv_file_magic_test_file=/shlib/libc.so
5224 cygwin*)
5225 # func_win32_libid is a shell function defined in ltmain.sh
5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5227 lt_cv_file_magic_cmd='func_win32_libid'
5230 mingw* | pw32*)
5231 # Base MSYS/MinGW do not provide the 'file' command needed by
5232 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5233 # unless we find 'file', for example because we are cross-compiling.
5234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237 lt_cv_file_magic_cmd='func_win32_libid'
5238 else
5239 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5240 lt_cv_file_magic_cmd='$OBJDUMP -f'
5244 cegcc*)
5245 # use the weaker test based on 'objdump'. See mingw*.
5246 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5247 lt_cv_file_magic_cmd='$OBJDUMP -f'
5250 darwin* | rhapsody*)
5251 lt_cv_deplibs_check_method=pass_all
5254 freebsd* | dragonfly*)
5255 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5256 case $host_cpu in
5257 i*86 )
5258 # Not sure whether the presence of OpenBSD here was a mistake.
5259 # Let's accept both of them until this is cleared up.
5260 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5261 lt_cv_file_magic_cmd=/usr/bin/file
5262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5264 esac
5265 else
5266 lt_cv_deplibs_check_method=pass_all
5270 gnu*)
5271 lt_cv_deplibs_check_method=pass_all
5274 haiku*)
5275 lt_cv_deplibs_check_method=pass_all
5278 hpux10.20* | hpux11*)
5279 lt_cv_file_magic_cmd=/usr/bin/file
5280 case $host_cpu in
5281 ia64*)
5282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5285 hppa*64*)
5286 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]'
5287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5293 esac
5296 interix[3-9]*)
5297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5301 irix5* | irix6* | nonstopux*)
5302 case $LD in
5303 *-32|*"-32 ") libmagic=32-bit;;
5304 *-n32|*"-n32 ") libmagic=N32;;
5305 *-64|*"-64 ") libmagic=64-bit;;
5306 *) libmagic=never-match;;
5307 esac
5308 lt_cv_deplibs_check_method=pass_all
5311 # This must be Linux ELF.
5312 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5313 lt_cv_deplibs_check_method=pass_all
5316 netbsd*)
5317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5319 else
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5324 newos6*)
5325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5326 lt_cv_file_magic_cmd=/usr/bin/file
5327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5330 *nto* | *qnx*)
5331 lt_cv_deplibs_check_method=pass_all
5334 openbsd*)
5335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5337 else
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5342 osf3* | osf4* | osf5*)
5343 lt_cv_deplibs_check_method=pass_all
5346 rdos*)
5347 lt_cv_deplibs_check_method=pass_all
5350 solaris*)
5351 lt_cv_deplibs_check_method=pass_all
5354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5355 lt_cv_deplibs_check_method=pass_all
5358 sysv4 | sysv4.3*)
5359 case $host_vendor in
5360 motorola)
5361 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]'
5362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5364 ncr)
5365 lt_cv_deplibs_check_method=pass_all
5367 sequent)
5368 lt_cv_file_magic_cmd='/bin/file'
5369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5371 sni)
5372 lt_cv_file_magic_cmd='/bin/file'
5373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5374 lt_cv_file_magic_test_file=/lib/libc.so
5376 siemens)
5377 lt_cv_deplibs_check_method=pass_all
5380 lt_cv_deplibs_check_method=pass_all
5382 esac
5385 tpf*)
5386 lt_cv_deplibs_check_method=pass_all
5388 esac
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5392 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5393 file_magic_cmd=$lt_cv_file_magic_cmd
5394 deplibs_check_method=$lt_cv_deplibs_check_method
5395 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5408 if test -n "$ac_tool_prefix"; then
5409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5410 set dummy ${ac_tool_prefix}ar; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if test "${ac_cv_prog_AR+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$AR"; then
5417 ac_cv_prog_AR="$AR" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_prog_AR="${ac_tool_prefix}ar"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5436 AR=$ac_cv_prog_AR
5437 if test -n "$AR"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5439 $as_echo "$AR" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5447 if test -z "$ac_cv_prog_AR"; then
5448 ac_ct_AR=$AR
5449 # Extract the first word of "ar", so it can be a program name with args.
5450 set dummy ar; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$ac_ct_AR"; then
5457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466 ac_cv_prog_ac_ct_AR="ar"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5470 done
5471 done
5472 IFS=$as_save_IFS
5476 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5477 if test -n "$ac_ct_AR"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5479 $as_echo "$ac_ct_AR" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5485 if test "x$ac_ct_AR" = x; then
5486 AR="false"
5487 else
5488 case $cross_compiling:$ac_tool_warned in
5489 yes:)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492 ac_tool_warned=yes ;;
5493 esac
5494 AR=$ac_ct_AR
5496 else
5497 AR="$ac_cv_prog_AR"
5500 test -z "$AR" && AR=ar
5501 test -z "$AR_FLAGS" && AR_FLAGS=cru
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}strip; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_prog_STRIP+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -n "$STRIP"; then
5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5535 done
5536 done
5537 IFS=$as_save_IFS
5541 STRIP=$ac_cv_prog_STRIP
5542 if test -n "$STRIP"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5544 $as_echo "$STRIP" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5552 if test -z "$ac_cv_prog_STRIP"; then
5553 ac_ct_STRIP=$STRIP
5554 # Extract the first word of "strip", so it can be a program name with args.
5555 set dummy strip; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$ac_ct_STRIP"; then
5562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_STRIP="strip"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5577 IFS=$as_save_IFS
5581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5582 if test -n "$ac_ct_STRIP"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5584 $as_echo "$ac_ct_STRIP" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5590 if test "x$ac_ct_STRIP" = x; then
5591 STRIP=":"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594 yes:)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599 STRIP=$ac_ct_STRIP
5601 else
5602 STRIP="$ac_cv_prog_STRIP"
5605 test -z "$STRIP" && STRIP=:
5612 if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$RANLIB"; then
5621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5634 done
5635 done
5636 IFS=$as_save_IFS
5640 RANLIB=$ac_cv_prog_RANLIB
5641 if test -n "$RANLIB"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5643 $as_echo "$RANLIB" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5651 if test -z "$ac_cv_prog_RANLIB"; then
5652 ac_ct_RANLIB=$RANLIB
5653 # Extract the first word of "ranlib", so it can be a program name with args.
5654 set dummy ranlib; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$ac_ct_RANLIB"; then
5661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_ac_ct_RANLIB="ranlib"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5681 if test -n "$ac_ct_RANLIB"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5683 $as_echo "$ac_ct_RANLIB" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5689 if test "x$ac_ct_RANLIB" = x; then
5690 RANLIB=":"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693 yes:)
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696 ac_tool_warned=yes ;;
5697 esac
5698 RANLIB=$ac_ct_RANLIB
5700 else
5701 RANLIB="$ac_cv_prog_RANLIB"
5704 test -z "$RANLIB" && RANLIB=:
5711 # Determine commands to create old-style static archives.
5712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5713 old_postinstall_cmds='chmod 644 $oldlib'
5714 old_postuninstall_cmds=
5716 if test -n "$RANLIB"; then
5717 case $host_os in
5718 openbsd*)
5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5724 esac
5725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5728 case $host_os in
5729 darwin*)
5730 lock_old_archive_extraction=yes ;;
5732 lock_old_archive_extraction=no ;;
5733 esac
5755 for ac_prog in gawk mawk nawk awk
5757 # Extract the first word of "$ac_prog", so it can be a program name with args.
5758 set dummy $ac_prog; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_AWK+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$AWK"; then
5765 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_AWK="$ac_prog"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5778 done
5779 done
5780 IFS=$as_save_IFS
5784 AWK=$ac_cv_prog_AWK
5785 if test -n "$AWK"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5787 $as_echo "$AWK" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5794 test -n "$AWK" && break
5795 done
5815 # If no C compiler was specified, use CC.
5816 LTCC=${LTCC-"$CC"}
5818 # If no C compiler flags were specified, use CFLAGS.
5819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5821 # Allow CC to be a program name with arguments.
5822 compiler=$CC
5825 # Check for command to grab the raw symbol name followed by C symbol from nm.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5827 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5828 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5832 # These are sane defaults that work on at least a few old systems.
5833 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5835 # Character class describing NM global symbol codes.
5836 symcode='[BCDEGRST]'
5838 # Regexp to match symbols that can be accessed directly from C.
5839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5841 # Define system-specific variables.
5842 case $host_os in
5843 aix*)
5844 symcode='[BCDT]'
5846 cygwin* | mingw* | pw32* | cegcc*)
5847 symcode='[ABCDGISTW]'
5849 hpux*)
5850 if test "$host_cpu" = ia64; then
5851 symcode='[ABCDEGRST]'
5854 irix* | nonstopux*)
5855 symcode='[BCDEGRST]'
5857 osf*)
5858 symcode='[BCDEGQRST]'
5860 solaris*)
5861 symcode='[BDRT]'
5863 sco3.2v5*)
5864 symcode='[DT]'
5866 sysv4.2uw2*)
5867 symcode='[DT]'
5869 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5870 symcode='[ABDT]'
5872 sysv4)
5873 symcode='[DFNSTU]'
5875 esac
5877 # If we're using GNU nm, then use its standard symbol codes.
5878 case `$NM -V 2>&1` in
5879 *GNU* | *'with BFD'*)
5880 symcode='[ABCDGIRSTW]' ;;
5881 esac
5883 # Transform an extracted symbol line into a proper C declaration.
5884 # Some systems (esp. on ia64) link data and code symbols differently,
5885 # so use this general approach.
5886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5888 # Transform an extracted symbol line into symbol name and symbol address
5889 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5890 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'"
5892 # Handle CRLF in mingw tool chain
5893 opt_cr=
5894 case $build_os in
5895 mingw*)
5896 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5898 esac
5900 # Try without a prefix underscore, then with it.
5901 for ac_symprfx in "" "_"; do
5903 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5904 symxfrm="\\1 $ac_symprfx\\2 \\2"
5906 # Write the raw and C identifiers.
5907 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5908 # Fake it for dumpbin and say T for any non-static function
5909 # and D for any global variable.
5910 # Also find C++ and __fastcall symbols from MSVC++,
5911 # which start with @ or ?.
5912 lt_cv_sys_global_symbol_pipe="$AWK '"\
5913 " {last_section=section; section=\$ 3};"\
5914 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5915 " \$ 0!~/External *\|/{next};"\
5916 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5917 " {if(hide[section]) next};"\
5918 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5919 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5920 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5921 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5922 " ' prfx=^$ac_symprfx"
5923 else
5924 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5927 # Check to see that the pipe works correctly.
5928 pipe_works=no
5930 rm -f conftest*
5931 cat > conftest.$ac_ext <<_LT_EOF
5932 #ifdef __cplusplus
5933 extern "C" {
5934 #endif
5935 char nm_test_var;
5936 void nm_test_func(void);
5937 void nm_test_func(void){}
5938 #ifdef __cplusplus
5940 #endif
5941 int main(){nm_test_var='a';nm_test_func();return(0);}
5942 _LT_EOF
5944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5945 (eval $ac_compile) 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948 test $ac_status = 0; }; then
5949 # Now try to grab the symbols.
5950 nlist=conftest.nm
5951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5952 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5953 ac_status=$?
5954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5955 test $ac_status = 0; } && test -s "$nlist"; then
5956 # Try sorting and uniquifying the output.
5957 if sort "$nlist" | uniq > "$nlist"T; then
5958 mv -f "$nlist"T "$nlist"
5959 else
5960 rm -f "$nlist"T
5963 # Make sure that we snagged all the symbols we need.
5964 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5965 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5966 cat <<_LT_EOF > conftest.$ac_ext
5967 #ifdef __cplusplus
5968 extern "C" {
5969 #endif
5971 _LT_EOF
5972 # Now generate the symbol file.
5973 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5975 cat <<_LT_EOF >> conftest.$ac_ext
5977 /* The mapping between symbol names and symbols. */
5978 const struct {
5979 const char *name;
5980 void *address;
5982 lt__PROGRAM__LTX_preloaded_symbols[] =
5984 { "@PROGRAM@", (void *) 0 },
5985 _LT_EOF
5986 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5987 cat <<\_LT_EOF >> conftest.$ac_ext
5988 {0, (void *) 0}
5991 /* This works around a problem in FreeBSD linker */
5992 #ifdef FREEBSD_WORKAROUND
5993 static const void *lt_preloaded_setup() {
5994 return lt__PROGRAM__LTX_preloaded_symbols;
5996 #endif
5998 #ifdef __cplusplus
6000 #endif
6001 _LT_EOF
6002 # Now try linking the two files.
6003 mv conftest.$ac_objext conftstm.$ac_objext
6004 lt_save_LIBS="$LIBS"
6005 lt_save_CFLAGS="$CFLAGS"
6006 LIBS="conftstm.$ac_objext"
6007 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6009 (eval $ac_link) 2>&5
6010 ac_status=$?
6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6013 pipe_works=yes
6015 LIBS="$lt_save_LIBS"
6016 CFLAGS="$lt_save_CFLAGS"
6017 else
6018 echo "cannot find nm_test_func in $nlist" >&5
6020 else
6021 echo "cannot find nm_test_var in $nlist" >&5
6023 else
6024 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6026 else
6027 echo "$progname: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6030 rm -rf conftest* conftst*
6032 # Do not use the global_symbol_pipe unless it works.
6033 if test "$pipe_works" = yes; then
6034 break
6035 else
6036 lt_cv_sys_global_symbol_pipe=
6038 done
6042 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6043 lt_cv_sys_global_symbol_to_cdecl=
6045 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6047 $as_echo "failed" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6050 $as_echo "ok" >&6; }
6074 # Check whether --enable-libtool-lock was given.
6075 if test "${enable_libtool_lock+set}" = set; then :
6076 enableval=$enable_libtool_lock;
6079 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6081 # Some flags need to be propagated to the compiler or linker for good
6082 # libtool support.
6083 case $host in
6084 ia64-*-hpux*)
6085 # Find out which ABI we are using.
6086 echo 'int i;' > conftest.$ac_ext
6087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6088 (eval $ac_compile) 2>&5
6089 ac_status=$?
6090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091 test $ac_status = 0; }; then
6092 case `/usr/bin/file conftest.$ac_objext` in
6093 *ELF-32*)
6094 HPUX_IA64_MODE="32"
6096 *ELF-64*)
6097 HPUX_IA64_MODE="64"
6099 esac
6101 rm -rf conftest*
6103 *-*-irix6*)
6104 # Find out which ABI we are using.
6105 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107 (eval $ac_compile) 2>&5
6108 ac_status=$?
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
6111 if test "$lt_cv_prog_gnu_ld" = yes; then
6112 case `/usr/bin/file conftest.$ac_objext` in
6113 *32-bit*)
6114 LD="${LD-ld} -melf32bsmip"
6116 *N32*)
6117 LD="${LD-ld} -melf32bmipn32"
6119 *64-bit*)
6120 LD="${LD-ld} -melf64bmip"
6122 esac
6123 else
6124 case `/usr/bin/file conftest.$ac_objext` in
6125 *32-bit*)
6126 LD="${LD-ld} -32"
6128 *N32*)
6129 LD="${LD-ld} -n32"
6131 *64-bit*)
6132 LD="${LD-ld} -64"
6134 esac
6137 rm -rf conftest*
6140 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6141 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6142 # Find out which ABI we are using.
6143 echo 'int i;' > conftest.$ac_ext
6144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6145 (eval $ac_compile) 2>&5
6146 ac_status=$?
6147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148 test $ac_status = 0; }; then
6149 case `/usr/bin/file conftest.o` in
6150 *32-bit*)
6151 case $host in
6152 x86_64-*kfreebsd*-gnu)
6153 LD="${LD-ld} -m elf_i386_fbsd"
6155 x86_64-*linux*)
6156 case `/usr/bin/file conftest.o` in
6157 *x86-64*)
6158 LD="${LD-ld} -m elf32_x86_64"
6161 LD="${LD-ld} -m elf_i386"
6163 esac
6165 powerpc64le-*linux*)
6166 LD="${LD-ld} -m elf32lppclinux"
6168 powerpc64-*linux*)
6169 LD="${LD-ld} -m elf32ppclinux"
6171 s390x-*linux*)
6172 LD="${LD-ld} -m elf_s390"
6174 sparc64-*linux*)
6175 LD="${LD-ld} -m elf32_sparc"
6177 esac
6179 *64-bit*)
6180 case $host in
6181 x86_64-*kfreebsd*-gnu)
6182 LD="${LD-ld} -m elf_x86_64_fbsd"
6184 x86_64-*linux*)
6185 LD="${LD-ld} -m elf_x86_64"
6187 powerpcle-*linux*)
6188 LD="${LD-ld} -m elf64lppc"
6190 powerpc-*linux*)
6191 LD="${LD-ld} -m elf64ppc"
6193 s390*-*linux*|s390*-*tpf*)
6194 LD="${LD-ld} -m elf64_s390"
6196 sparc*-*linux*)
6197 LD="${LD-ld} -m elf64_sparc"
6199 esac
6201 esac
6203 rm -rf conftest*
6206 *-*-sco3.2v5*)
6207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6208 SAVE_CFLAGS="$CFLAGS"
6209 CFLAGS="$CFLAGS -belf"
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6211 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6212 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 ac_ext=c
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221 if test x$gcc_no_link = xyes; then
6222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6228 main ()
6232 return 0;
6234 _ACEOF
6235 if ac_fn_c_try_link "$LINENO"; then :
6236 lt_cv_cc_needs_belf=yes
6237 else
6238 lt_cv_cc_needs_belf=no
6240 rm -f core conftest.err conftest.$ac_objext \
6241 conftest$ac_exeext conftest.$ac_ext
6242 ac_ext=c
6243 ac_cpp='$CPP $CPPFLAGS'
6244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6250 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6253 CFLAGS="$SAVE_CFLAGS"
6256 sparc*-*solaris*)
6257 # Find out which ABI we are using.
6258 echo 'int i;' > conftest.$ac_ext
6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6260 (eval $ac_compile) 2>&5
6261 ac_status=$?
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; }; then
6264 case `/usr/bin/file conftest.o` in
6265 *64-bit*)
6266 case $lt_cv_prog_gnu_ld in
6267 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6270 LD="${LD-ld} -64"
6273 esac
6275 esac
6277 rm -rf conftest*
6279 esac
6281 need_locks="$enable_libtool_lock"
6284 case $host_os in
6285 rhapsody* | darwin*)
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$DSYMUTIL"; then
6295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6308 done
6309 done
6310 IFS=$as_save_IFS
6314 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6315 if test -n "$DSYMUTIL"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6317 $as_echo "$DSYMUTIL" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6325 if test -z "$ac_cv_prog_DSYMUTIL"; then
6326 ac_ct_DSYMUTIL=$DSYMUTIL
6327 # Extract the first word of "dsymutil", so it can be a program name with args.
6328 set dummy dsymutil; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_DSYMUTIL"; then
6335 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6355 if test -n "$ac_ct_DSYMUTIL"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6357 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6363 if test "x$ac_ct_DSYMUTIL" = x; then
6364 DSYMUTIL=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 DSYMUTIL=$ac_ct_DSYMUTIL
6374 else
6375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$NMEDIT"; then
6387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 NMEDIT=$ac_cv_prog_NMEDIT
6407 if test -n "$NMEDIT"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6409 $as_echo "$NMEDIT" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_NMEDIT"; then
6418 ac_ct_NMEDIT=$NMEDIT
6419 # Extract the first word of "nmedit", so it can be a program name with args.
6420 set dummy nmedit; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_NMEDIT"; then
6427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6447 if test -n "$ac_ct_NMEDIT"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6449 $as_echo "$ac_ct_NMEDIT" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_NMEDIT" = x; then
6456 NMEDIT=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 NMEDIT=$ac_ct_NMEDIT
6466 else
6467 NMEDIT="$ac_cv_prog_NMEDIT"
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_LIPO+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$LIPO"; then
6479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6492 done
6493 done
6494 IFS=$as_save_IFS
6498 LIPO=$ac_cv_prog_LIPO
6499 if test -n "$LIPO"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6501 $as_echo "$LIPO" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6509 if test -z "$ac_cv_prog_LIPO"; then
6510 ac_ct_LIPO=$LIPO
6511 # Extract the first word of "lipo", so it can be a program name with args.
6512 set dummy lipo; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$ac_ct_LIPO"; then
6519 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_ac_ct_LIPO="lipo"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6532 done
6533 done
6534 IFS=$as_save_IFS
6538 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6539 if test -n "$ac_ct_LIPO"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6541 $as_echo "$ac_ct_LIPO" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6547 if test "x$ac_ct_LIPO" = x; then
6548 LIPO=":"
6549 else
6550 case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556 LIPO=$ac_ct_LIPO
6558 else
6559 LIPO="$ac_cv_prog_LIPO"
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}otool; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$OTOOL"; then
6571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6584 done
6585 done
6586 IFS=$as_save_IFS
6590 OTOOL=$ac_cv_prog_OTOOL
6591 if test -n "$OTOOL"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6593 $as_echo "$OTOOL" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6601 if test -z "$ac_cv_prog_OTOOL"; then
6602 ac_ct_OTOOL=$OTOOL
6603 # Extract the first word of "otool", so it can be a program name with args.
6604 set dummy otool; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$ac_ct_OTOOL"; then
6611 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_OTOOL="otool"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6624 done
6625 done
6626 IFS=$as_save_IFS
6630 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6631 if test -n "$ac_ct_OTOOL"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6633 $as_echo "$ac_ct_OTOOL" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6639 if test "x$ac_ct_OTOOL" = x; then
6640 OTOOL=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648 OTOOL=$ac_ct_OTOOL
6650 else
6651 OTOOL="$ac_cv_prog_OTOOL"
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 if test -n "$OTOOL64"; then
6663 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6676 done
6677 done
6678 IFS=$as_save_IFS
6682 OTOOL64=$ac_cv_prog_OTOOL64
6683 if test -n "$OTOOL64"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6685 $as_echo "$OTOOL64" >&6; }
6686 else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6693 if test -z "$ac_cv_prog_OTOOL64"; then
6694 ac_ct_OTOOL64=$OTOOL64
6695 # Extract the first word of "otool64", so it can be a program name with args.
6696 set dummy otool64; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$ac_ct_OTOOL64"; then
6703 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_OTOOL64="otool64"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6718 IFS=$as_save_IFS
6722 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6723 if test -n "$ac_ct_OTOOL64"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6725 $as_echo "$ac_ct_OTOOL64" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6731 if test "x$ac_ct_OTOOL64" = x; then
6732 OTOOL64=":"
6733 else
6734 case $cross_compiling:$ac_tool_warned in
6735 yes:)
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740 OTOOL64=$ac_ct_OTOOL64
6742 else
6743 OTOOL64="$ac_cv_prog_OTOOL64"
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6773 $as_echo_n "checking for -single_module linker flag... " >&6; }
6774 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 lt_cv_apple_cc_single_mod=no
6778 if test -z "${LT_MULTI_MODULE}"; then
6779 # By default we will add the -single_module flag. You can override
6780 # by either setting the environment variable LT_MULTI_MODULE
6781 # non-empty at configure time, or by adding -multi_module to the
6782 # link flags.
6783 rm -rf libconftest.dylib*
6784 echo "int foo(void){return 1;}" > conftest.c
6785 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6786 -dynamiclib -Wl,-single_module conftest.c" >&5
6787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6788 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6789 _lt_result=$?
6790 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6791 lt_cv_apple_cc_single_mod=yes
6792 else
6793 cat conftest.err >&5
6795 rm -rf libconftest.dylib*
6796 rm -f conftest.*
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6800 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6802 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6803 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 lt_cv_ld_exported_symbols_list=no
6807 save_LDFLAGS=$LDFLAGS
6808 echo "_main" > conftest.sym
6809 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6810 if test x$gcc_no_link = xyes; then
6811 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6817 main ()
6821 return 0;
6823 _ACEOF
6824 if ac_fn_c_try_link "$LINENO"; then :
6825 lt_cv_ld_exported_symbols_list=yes
6826 else
6827 lt_cv_ld_exported_symbols_list=no
6829 rm -f core conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6831 LDFLAGS="$save_LDFLAGS"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6835 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6837 $as_echo_n "checking for -force_load linker flag... " >&6; }
6838 if test "${lt_cv_ld_force_load+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 lt_cv_ld_force_load=no
6842 cat > conftest.c << _LT_EOF
6843 int forced_loaded() { return 2;}
6844 _LT_EOF
6845 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6846 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6847 echo "$AR cru libconftest.a conftest.o" >&5
6848 $AR cru libconftest.a conftest.o 2>&5
6849 cat > conftest.c << _LT_EOF
6850 int main() { return 0;}
6851 _LT_EOF
6852 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6853 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6854 _lt_result=$?
6855 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6856 lt_cv_ld_force_load=yes
6857 else
6858 cat conftest.err >&5
6860 rm -f conftest.err libconftest.a conftest conftest.c
6861 rm -rf conftest.dSYM
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6865 $as_echo "$lt_cv_ld_force_load" >&6; }
6866 case $host_os in
6867 rhapsody* | darwin1.[012])
6868 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6869 darwin1.*)
6870 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6871 darwin*) # darwin 5.x on
6872 # if running on 10.5 or later, the deployment target defaults
6873 # to the OS version, if on x86, and 10.4, the deployment
6874 # target defaults to 10.4. Don't you love it?
6875 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6876 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6878 10.[012][,.]*)
6879 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6880 10.*)
6881 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6882 esac
6884 esac
6885 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6886 _lt_dar_single_mod='$single_module'
6888 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6889 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6890 else
6891 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6893 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6894 _lt_dsymutil='~$DSYMUTIL $lib || :'
6895 else
6896 _lt_dsymutil=
6899 esac
6901 ac_ext=c
6902 ac_cpp='$CPP $CPPFLAGS'
6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6907 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6908 # On Suns, sometimes $CPP names a directory.
6909 if test -n "$CPP" && test -d "$CPP"; then
6910 CPP=
6912 if test -z "$CPP"; then
6913 if test "${ac_cv_prog_CPP+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 # Double quotes because CPP needs to be expanded
6917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6919 ac_preproc_ok=false
6920 for ac_c_preproc_warn_flag in '' yes
6922 # Use a header file that comes with gcc, so configuring glibc
6923 # with a fresh cross-compiler works.
6924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6925 # <limits.h> exists even on freestanding compilers.
6926 # On the NeXT, cc -E runs the code through the compiler's parser,
6927 # not just through cpp. "Syntax error" is here to catch this case.
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #ifdef __STDC__
6931 # include <limits.h>
6932 #else
6933 # include <assert.h>
6934 #endif
6935 Syntax error
6936 _ACEOF
6937 if ac_fn_c_try_cpp "$LINENO"; then :
6939 else
6940 # Broken: fails on valid input.
6941 continue
6943 rm -f conftest.err conftest.$ac_ext
6945 # OK, works on sane cases. Now check whether nonexistent headers
6946 # can be detected and how.
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 #include <ac_nonexistent.h>
6950 _ACEOF
6951 if ac_fn_c_try_cpp "$LINENO"; then :
6952 # Broken: success on invalid input.
6953 continue
6954 else
6955 # Passes both tests.
6956 ac_preproc_ok=:
6957 break
6959 rm -f conftest.err conftest.$ac_ext
6961 done
6962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6963 rm -f conftest.err conftest.$ac_ext
6964 if $ac_preproc_ok; then :
6965 break
6968 done
6969 ac_cv_prog_CPP=$CPP
6972 CPP=$ac_cv_prog_CPP
6973 else
6974 ac_cv_prog_CPP=$CPP
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6977 $as_echo "$CPP" >&6; }
6978 ac_preproc_ok=false
6979 for ac_c_preproc_warn_flag in '' yes
6981 # Use a header file that comes with gcc, so configuring glibc
6982 # with a fresh cross-compiler works.
6983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6984 # <limits.h> exists even on freestanding compilers.
6985 # On the NeXT, cc -E runs the code through the compiler's parser,
6986 # not just through cpp. "Syntax error" is here to catch this case.
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6989 #ifdef __STDC__
6990 # include <limits.h>
6991 #else
6992 # include <assert.h>
6993 #endif
6994 Syntax error
6995 _ACEOF
6996 if ac_fn_c_try_cpp "$LINENO"; then :
6998 else
6999 # Broken: fails on valid input.
7000 continue
7002 rm -f conftest.err conftest.$ac_ext
7004 # OK, works on sane cases. Now check whether nonexistent headers
7005 # can be detected and how.
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <ac_nonexistent.h>
7009 _ACEOF
7010 if ac_fn_c_try_cpp "$LINENO"; then :
7011 # Broken: success on invalid input.
7012 continue
7013 else
7014 # Passes both tests.
7015 ac_preproc_ok=:
7016 break
7018 rm -f conftest.err conftest.$ac_ext
7020 done
7021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022 rm -f conftest.err conftest.$ac_ext
7023 if $ac_preproc_ok; then :
7025 else
7026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7029 See \`config.log' for more details." "$LINENO" 5; }
7032 ac_ext=c
7033 ac_cpp='$CPP $CPPFLAGS'
7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7040 $as_echo_n "checking for ANSI C header files... " >&6; }
7041 if test "${ac_cv_header_stdc+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 #include <stdlib.h>
7047 #include <stdarg.h>
7048 #include <string.h>
7049 #include <float.h>
7052 main ()
7056 return 0;
7058 _ACEOF
7059 if ac_fn_c_try_compile "$LINENO"; then :
7060 ac_cv_header_stdc=yes
7061 else
7062 ac_cv_header_stdc=no
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 #include <string.h>
7072 _ACEOF
7073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074 $EGREP "memchr" >/dev/null 2>&1; then :
7076 else
7077 ac_cv_header_stdc=no
7079 rm -f conftest*
7083 if test $ac_cv_header_stdc = yes; then
7084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <stdlib.h>
7089 _ACEOF
7090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091 $EGREP "free" >/dev/null 2>&1; then :
7093 else
7094 ac_cv_header_stdc=no
7096 rm -f conftest*
7100 if test $ac_cv_header_stdc = yes; then
7101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7102 if test "$cross_compiling" = yes; then :
7104 else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <ctype.h>
7108 #include <stdlib.h>
7109 #if ((' ' & 0x0FF) == 0x020)
7110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7112 #else
7113 # define ISLOWER(c) \
7114 (('a' <= (c) && (c) <= 'i') \
7115 || ('j' <= (c) && (c) <= 'r') \
7116 || ('s' <= (c) && (c) <= 'z'))
7117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7118 #endif
7120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7122 main ()
7124 int i;
7125 for (i = 0; i < 256; i++)
7126 if (XOR (islower (i), ISLOWER (i))
7127 || toupper (i) != TOUPPER (i))
7128 return 2;
7129 return 0;
7131 _ACEOF
7132 if ac_fn_c_try_run "$LINENO"; then :
7134 else
7135 ac_cv_header_stdc=no
7137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7138 conftest.$ac_objext conftest.beam conftest.$ac_ext
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7144 $as_echo "$ac_cv_header_stdc" >&6; }
7145 if test $ac_cv_header_stdc = yes; then
7147 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7151 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7152 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7153 inttypes.h stdint.h unistd.h
7154 do :
7155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7158 eval as_val=\$$as_ac_Header
7159 if test "x$as_val" = x""yes; then :
7160 cat >>confdefs.h <<_ACEOF
7161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7162 _ACEOF
7166 done
7169 for ac_header in dlfcn.h
7170 do :
7171 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7173 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7174 cat >>confdefs.h <<_ACEOF
7175 #define HAVE_DLFCN_H 1
7176 _ACEOF
7180 done
7186 # Set options
7190 enable_dlopen=no
7194 # Check whether --enable-shared was given.
7195 if test "${enable_shared+set}" = set; then :
7196 enableval=$enable_shared; p=${PACKAGE-default}
7197 case $enableval in
7198 yes) enable_shared=yes ;;
7199 no) enable_shared=no ;;
7201 enable_shared=no
7202 # Look at the argument we got. We use all the common list separators.
7203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7204 for pkg in $enableval; do
7205 IFS="$lt_save_ifs"
7206 if test "X$pkg" = "X$p"; then
7207 enable_shared=yes
7209 done
7210 IFS="$lt_save_ifs"
7212 esac
7213 else
7214 enable_shared=yes
7225 # Check whether --enable-static was given.
7226 if test "${enable_static+set}" = set; then :
7227 enableval=$enable_static; p=${PACKAGE-default}
7228 case $enableval in
7229 yes) enable_static=yes ;;
7230 no) enable_static=no ;;
7232 enable_static=no
7233 # Look at the argument we got. We use all the common list separators.
7234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7235 for pkg in $enableval; do
7236 IFS="$lt_save_ifs"
7237 if test "X$pkg" = "X$p"; then
7238 enable_static=yes
7240 done
7241 IFS="$lt_save_ifs"
7243 esac
7244 else
7245 enable_static=yes
7257 # Check whether --with-pic was given.
7258 if test "${with_pic+set}" = set; then :
7259 withval=$with_pic; pic_mode="$withval"
7260 else
7261 pic_mode=default
7265 test -z "$pic_mode" && pic_mode=default
7273 # Check whether --enable-fast-install was given.
7274 if test "${enable_fast_install+set}" = set; then :
7275 enableval=$enable_fast_install; p=${PACKAGE-default}
7276 case $enableval in
7277 yes) enable_fast_install=yes ;;
7278 no) enable_fast_install=no ;;
7280 enable_fast_install=no
7281 # Look at the argument we got. We use all the common list separators.
7282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7283 for pkg in $enableval; do
7284 IFS="$lt_save_ifs"
7285 if test "X$pkg" = "X$p"; then
7286 enable_fast_install=yes
7288 done
7289 IFS="$lt_save_ifs"
7291 esac
7292 else
7293 enable_fast_install=yes
7306 # This can be used to rebuild libtool when needed
7307 LIBTOOL_DEPS="$ltmain"
7309 # Always use our own libtool.
7310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7337 test -z "$LN_S" && LN_S="ln -s"
7352 if test -n "${ZSH_VERSION+set}" ; then
7353 setopt NO_GLOB_SUBST
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7357 $as_echo_n "checking for objdir... " >&6; }
7358 if test "${lt_cv_objdir+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 rm -f .libs 2>/dev/null
7362 mkdir .libs 2>/dev/null
7363 if test -d .libs; then
7364 lt_cv_objdir=.libs
7365 else
7366 # MS-DOS does not allow filenames that begin with a dot.
7367 lt_cv_objdir=_libs
7369 rmdir .libs 2>/dev/null
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7372 $as_echo "$lt_cv_objdir" >&6; }
7373 objdir=$lt_cv_objdir
7379 cat >>confdefs.h <<_ACEOF
7380 #define LT_OBJDIR "$lt_cv_objdir/"
7381 _ACEOF
7386 case $host_os in
7387 aix3*)
7388 # AIX sometimes has problems with the GCC collect2 program. For some
7389 # reason, if we set the COLLECT_NAMES environment variable, the problems
7390 # vanish in a puff of smoke.
7391 if test "X${COLLECT_NAMES+set}" != Xset; then
7392 COLLECT_NAMES=
7393 export COLLECT_NAMES
7396 esac
7398 # Global variables:
7399 ofile=libtool
7400 can_build_shared=yes
7402 # All known linkers require a `.a' archive for static linking (except MSVC,
7403 # which needs '.lib').
7404 libext=a
7406 with_gnu_ld="$lt_cv_prog_gnu_ld"
7408 old_CC="$CC"
7409 old_CFLAGS="$CFLAGS"
7411 # Set sane defaults for various variables
7412 test -z "$CC" && CC=cc
7413 test -z "$LTCC" && LTCC=$CC
7414 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7415 test -z "$LD" && LD=ld
7416 test -z "$ac_objext" && ac_objext=o
7418 for cc_temp in $compiler""; do
7419 case $cc_temp in
7420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7422 \-*) ;;
7423 *) break;;
7424 esac
7425 done
7426 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7429 # Only perform the check for file, if the check method requires it
7430 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7431 case $deplibs_check_method in
7432 file_magic*)
7433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7435 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7436 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 case $MAGIC_CMD in
7440 [\\/*] | ?:[\\/]*)
7441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7444 lt_save_MAGIC_CMD="$MAGIC_CMD"
7445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7447 for ac_dir in $ac_dummy; do
7448 IFS="$lt_save_ifs"
7449 test -z "$ac_dir" && ac_dir=.
7450 if test -f $ac_dir/${ac_tool_prefix}file; then
7451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7452 if test -n "$file_magic_test_file"; then
7453 case $deplibs_check_method in
7454 "file_magic "*)
7455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7458 $EGREP "$file_magic_regex" > /dev/null; then
7460 else
7461 cat <<_LT_EOF 1>&2
7463 *** Warning: the command libtool uses to detect shared libraries,
7464 *** $file_magic_cmd, produces output that libtool cannot recognize.
7465 *** The result is that libtool may fail to recognize shared libraries
7466 *** as such. This will affect the creation of libtool libraries that
7467 *** depend on shared libraries, but programs linked with such libtool
7468 *** libraries will work regardless of this problem. Nevertheless, you
7469 *** may want to report the problem to your system manager and/or to
7470 *** bug-libtool@gnu.org
7472 _LT_EOF
7473 fi ;;
7474 esac
7476 break
7478 done
7479 IFS="$lt_save_ifs"
7480 MAGIC_CMD="$lt_save_MAGIC_CMD"
7482 esac
7485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7486 if test -n "$MAGIC_CMD"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7488 $as_echo "$MAGIC_CMD" >&6; }
7489 else
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7498 if test -z "$lt_cv_path_MAGIC_CMD"; then
7499 if test -n "$ac_tool_prefix"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7501 $as_echo_n "checking for file... " >&6; }
7502 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 case $MAGIC_CMD in
7506 [\\/*] | ?:[\\/]*)
7507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7510 lt_save_MAGIC_CMD="$MAGIC_CMD"
7511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7513 for ac_dir in $ac_dummy; do
7514 IFS="$lt_save_ifs"
7515 test -z "$ac_dir" && ac_dir=.
7516 if test -f $ac_dir/file; then
7517 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7518 if test -n "$file_magic_test_file"; then
7519 case $deplibs_check_method in
7520 "file_magic "*)
7521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7524 $EGREP "$file_magic_regex" > /dev/null; then
7526 else
7527 cat <<_LT_EOF 1>&2
7529 *** Warning: the command libtool uses to detect shared libraries,
7530 *** $file_magic_cmd, produces output that libtool cannot recognize.
7531 *** The result is that libtool may fail to recognize shared libraries
7532 *** as such. This will affect the creation of libtool libraries that
7533 *** depend on shared libraries, but programs linked with such libtool
7534 *** libraries will work regardless of this problem. Nevertheless, you
7535 *** may want to report the problem to your system manager and/or to
7536 *** bug-libtool@gnu.org
7538 _LT_EOF
7539 fi ;;
7540 esac
7542 break
7544 done
7545 IFS="$lt_save_ifs"
7546 MAGIC_CMD="$lt_save_MAGIC_CMD"
7548 esac
7551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7552 if test -n "$MAGIC_CMD"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7554 $as_echo "$MAGIC_CMD" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7561 else
7562 MAGIC_CMD=:
7568 esac
7570 # Use C for the default configuration in the libtool script
7572 lt_save_CC="$CC"
7573 ac_ext=c
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7580 # Source file extension for C test sources.
7581 ac_ext=c
7583 # Object file extension for compiled C test sources.
7584 objext=o
7585 objext=$objext
7587 # Code to be used in simple compile tests
7588 lt_simple_compile_test_code="int some_variable = 0;"
7590 # Code to be used in simple link tests
7591 lt_simple_link_test_code='int main(){return(0);}'
7599 # If no C compiler was specified, use CC.
7600 LTCC=${LTCC-"$CC"}
7602 # If no C compiler flags were specified, use CFLAGS.
7603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7605 # Allow CC to be a program name with arguments.
7606 compiler=$CC
7608 # Save the default compiler, since it gets overwritten when the other
7609 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7610 compiler_DEFAULT=$CC
7612 # save warnings/boilerplate of simple test code
7613 ac_outfile=conftest.$ac_objext
7614 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7616 _lt_compiler_boilerplate=`cat conftest.err`
7617 $RM conftest*
7619 ac_outfile=conftest.$ac_objext
7620 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7622 _lt_linker_boilerplate=`cat conftest.err`
7623 $RM -r conftest*
7626 ## CAVEAT EMPTOR:
7627 ## There is no encapsulation within the following macros, do not change
7628 ## the running order or otherwise move them around unless you know exactly
7629 ## what you are doing...
7630 if test -n "$compiler"; then
7632 lt_prog_compiler_no_builtin_flag=
7634 if test "$GCC" = yes; then
7635 case $cc_basename in
7636 nvcc*)
7637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7640 esac
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7643 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7644 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 lt_cv_prog_compiler_rtti_exceptions=no
7648 ac_outfile=conftest.$ac_objext
7649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7650 lt_compiler_flag="-fno-rtti -fno-exceptions"
7651 # Insert the option either (1) after the last *FLAGS variable, or
7652 # (2) before a word containing "conftest.", or (3) at the end.
7653 # Note that $ac_compile itself does not contain backslashes and begins
7654 # with a dollar sign (not a hyphen), so the echo should work correctly.
7655 # The option is referenced via a variable to avoid confusing sed.
7656 lt_compile=`echo "$ac_compile" | $SED \
7657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659 -e 's:$: $lt_compiler_flag:'`
7660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7661 (eval "$lt_compile" 2>conftest.err)
7662 ac_status=$?
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 if (exit $ac_status) && test -s "$ac_outfile"; then
7666 # The compiler can only warn and ignore the option if not recognized
7667 # So say no if there are warnings other than the usual output.
7668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7671 lt_cv_prog_compiler_rtti_exceptions=yes
7674 $RM conftest*
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7678 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7680 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7682 else
7693 lt_prog_compiler_wl=
7694 lt_prog_compiler_pic=
7695 lt_prog_compiler_static=
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7698 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7700 if test "$GCC" = yes; then
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_static='-static'
7704 case $host_os in
7705 aix*)
7706 # All AIX code is PIC.
7707 if test "$host_cpu" = ia64; then
7708 # AIX 5 now supports IA64 processor
7709 lt_prog_compiler_static='-Bstatic'
7711 lt_prog_compiler_pic='-fPIC'
7714 amigaos*)
7715 case $host_cpu in
7716 powerpc)
7717 # see comment about AmigaOS4 .so support
7718 lt_prog_compiler_pic='-fPIC'
7720 m68k)
7721 # FIXME: we need at least 68020 code to build shared libraries, but
7722 # adding the `-m68020' flag to GCC prevents building anything better,
7723 # like `-m68040'.
7724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7726 esac
7729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7730 # PIC is the default for these OSes.
7733 mingw* | cygwin* | pw32* | os2* | cegcc*)
7734 # This hack is so that the source file can tell whether it is being
7735 # built for inclusion in a dll (and should export symbols for example).
7736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7737 # (--disable-auto-import) libraries
7738 lt_prog_compiler_pic='-DDLL_EXPORT'
7741 darwin* | rhapsody*)
7742 # PIC is the default on this platform
7743 # Common symbols not allowed in MH_DYLIB files
7744 lt_prog_compiler_pic='-fno-common'
7747 haiku*)
7748 # PIC is the default for Haiku.
7749 # The "-static" flag exists, but is broken.
7750 lt_prog_compiler_static=
7753 hpux*)
7754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7756 # sets the default TLS model and affects inlining.
7757 case $host_cpu in
7758 hppa*64*)
7759 # +Z the default
7762 lt_prog_compiler_pic='-fPIC'
7764 esac
7767 interix[3-9]*)
7768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7769 # Instead, we relocate shared libraries at runtime.
7772 msdosdjgpp*)
7773 # Just because we use GCC doesn't mean we suddenly get shared libraries
7774 # on systems that don't support them.
7775 lt_prog_compiler_can_build_shared=no
7776 enable_shared=no
7779 *nto* | *qnx*)
7780 # QNX uses GNU C++, but need to define -shared option too, otherwise
7781 # it will coredump.
7782 lt_prog_compiler_pic='-fPIC -shared'
7785 sysv4*MP*)
7786 if test -d /usr/nec; then
7787 lt_prog_compiler_pic=-Kconform_pic
7792 lt_prog_compiler_pic='-fPIC'
7794 esac
7796 case $cc_basename in
7797 nvcc*) # Cuda Compiler Driver 2.2
7798 lt_prog_compiler_wl='-Xlinker '
7799 lt_prog_compiler_pic='-Xcompiler -fPIC'
7801 esac
7802 else
7803 # PORTME Check for flag to pass linker flags through the system compiler.
7804 case $host_os in
7805 aix*)
7806 lt_prog_compiler_wl='-Wl,'
7807 if test "$host_cpu" = ia64; then
7808 # AIX 5 now supports IA64 processor
7809 lt_prog_compiler_static='-Bstatic'
7810 else
7811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7815 mingw* | cygwin* | pw32* | os2* | cegcc*)
7816 # This hack is so that the source file can tell whether it is being
7817 # built for inclusion in a dll (and should export symbols for example).
7818 lt_prog_compiler_pic='-DDLL_EXPORT'
7821 hpux9* | hpux10* | hpux11*)
7822 lt_prog_compiler_wl='-Wl,'
7823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7824 # not for PA HP-UX.
7825 case $host_cpu in
7826 hppa*64*|ia64*)
7827 # +Z the default
7830 lt_prog_compiler_pic='+Z'
7832 esac
7833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7834 lt_prog_compiler_static='${wl}-a ${wl}archive'
7837 irix5* | irix6* | nonstopux*)
7838 lt_prog_compiler_wl='-Wl,'
7839 # PIC (with -KPIC) is the default.
7840 lt_prog_compiler_static='-non_shared'
7843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7844 case $cc_basename in
7845 # old Intel for x86_64 which still supported -KPIC.
7846 ecc*)
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-static'
7851 # icc used to be incompatible with GCC.
7852 # ICC 10 doesn't accept -KPIC any more.
7853 icc* | ifort*)
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_pic='-fPIC'
7856 lt_prog_compiler_static='-static'
7858 # Lahey Fortran 8.1.
7859 lf95*)
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_pic='--shared'
7862 lt_prog_compiler_static='--static'
7864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7865 # Portland Group compilers (*not* the Pentium gcc compiler,
7866 # which looks to be a dead project)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-fpic'
7869 lt_prog_compiler_static='-Bstatic'
7871 ccc*)
7872 lt_prog_compiler_wl='-Wl,'
7873 # All Alpha code is PIC.
7874 lt_prog_compiler_static='-non_shared'
7876 xl* | bgxl* | bgf* | mpixl*)
7877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_pic='-qpic'
7880 lt_prog_compiler_static='-qstaticlink'
7883 case `$CC -V 2>&1 | sed 5q` in
7884 *Sun\ F* | *Sun*Fortran*)
7885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7886 lt_prog_compiler_pic='-KPIC'
7887 lt_prog_compiler_static='-Bstatic'
7888 lt_prog_compiler_wl=''
7890 *Sun\ C*)
7891 # Sun C 5.9
7892 lt_prog_compiler_pic='-KPIC'
7893 lt_prog_compiler_static='-Bstatic'
7894 lt_prog_compiler_wl='-Wl,'
7896 esac
7898 esac
7901 newsos6)
7902 lt_prog_compiler_pic='-KPIC'
7903 lt_prog_compiler_static='-Bstatic'
7906 *nto* | *qnx*)
7907 # QNX uses GNU C++, but need to define -shared option too, otherwise
7908 # it will coredump.
7909 lt_prog_compiler_pic='-fPIC -shared'
7912 osf3* | osf4* | osf5*)
7913 lt_prog_compiler_wl='-Wl,'
7914 # All OSF/1 code is PIC.
7915 lt_prog_compiler_static='-non_shared'
7918 rdos*)
7919 lt_prog_compiler_static='-non_shared'
7922 solaris*)
7923 lt_prog_compiler_pic='-KPIC'
7924 lt_prog_compiler_static='-Bstatic'
7925 case $cc_basename in
7926 f77* | f90* | f95*)
7927 lt_prog_compiler_wl='-Qoption ld ';;
7929 lt_prog_compiler_wl='-Wl,';;
7930 esac
7933 sunos4*)
7934 lt_prog_compiler_wl='-Qoption ld '
7935 lt_prog_compiler_pic='-PIC'
7936 lt_prog_compiler_static='-Bstatic'
7939 sysv4 | sysv4.2uw2* | sysv4.3*)
7940 lt_prog_compiler_wl='-Wl,'
7941 lt_prog_compiler_pic='-KPIC'
7942 lt_prog_compiler_static='-Bstatic'
7945 sysv4*MP*)
7946 if test -d /usr/nec ;then
7947 lt_prog_compiler_pic='-Kconform_pic'
7948 lt_prog_compiler_static='-Bstatic'
7952 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-KPIC'
7955 lt_prog_compiler_static='-Bstatic'
7958 unicos*)
7959 lt_prog_compiler_wl='-Wl,'
7960 lt_prog_compiler_can_build_shared=no
7963 uts4*)
7964 lt_prog_compiler_pic='-pic'
7965 lt_prog_compiler_static='-Bstatic'
7969 lt_prog_compiler_can_build_shared=no
7971 esac
7974 case $host_os in
7975 # For platforms which do not support PIC, -DPIC is meaningless:
7976 *djgpp*)
7977 lt_prog_compiler_pic=
7980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7982 esac
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7984 $as_echo "$lt_prog_compiler_pic" >&6; }
7992 # Check to make sure the PIC flag actually works.
7994 if test -n "$lt_prog_compiler_pic"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7996 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7997 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 lt_cv_prog_compiler_pic_works=no
8001 ac_outfile=conftest.$ac_objext
8002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8004 # Insert the option either (1) after the last *FLAGS variable, or
8005 # (2) before a word containing "conftest.", or (3) at the end.
8006 # Note that $ac_compile itself does not contain backslashes and begins
8007 # with a dollar sign (not a hyphen), so the echo should work correctly.
8008 # The option is referenced via a variable to avoid confusing sed.
8009 lt_compile=`echo "$ac_compile" | $SED \
8010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8012 -e 's:$: $lt_compiler_flag:'`
8013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8014 (eval "$lt_compile" 2>conftest.err)
8015 ac_status=$?
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 if (exit $ac_status) && test -s "$ac_outfile"; then
8019 # The compiler can only warn and ignore the option if not recognized
8020 # So say no if there are warnings other than the usual output.
8021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8024 lt_cv_prog_compiler_pic_works=yes
8027 $RM conftest*
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8031 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8033 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8034 case $lt_prog_compiler_pic in
8035 "" | " "*) ;;
8036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8037 esac
8038 else
8039 lt_prog_compiler_pic=
8040 lt_prog_compiler_can_build_shared=no
8051 # Check to make sure the static flag actually works.
8053 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8055 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8056 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 lt_cv_prog_compiler_static_works=no
8060 save_LDFLAGS="$LDFLAGS"
8061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8064 # The linker can only warn and ignore the option if not recognized
8065 # So say no if there are warnings
8066 if test -s conftest.err; then
8067 # Append any errors to the config.log.
8068 cat conftest.err 1>&5
8069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8071 if diff conftest.exp conftest.er2 >/dev/null; then
8072 lt_cv_prog_compiler_static_works=yes
8074 else
8075 lt_cv_prog_compiler_static_works=yes
8078 $RM -r conftest*
8079 LDFLAGS="$save_LDFLAGS"
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8083 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8085 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8087 else
8088 lt_prog_compiler_static=
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8099 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 lt_cv_prog_compiler_c_o=no
8103 $RM -r conftest 2>/dev/null
8104 mkdir conftest
8105 cd conftest
8106 mkdir out
8107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8109 lt_compiler_flag="-o out/conftest2.$ac_objext"
8110 # Insert the option either (1) after the last *FLAGS variable, or
8111 # (2) before a word containing "conftest.", or (3) at the end.
8112 # Note that $ac_compile itself does not contain backslashes and begins
8113 # with a dollar sign (not a hyphen), so the echo should work correctly.
8114 lt_compile=`echo "$ac_compile" | $SED \
8115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8117 -e 's:$: $lt_compiler_flag:'`
8118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8119 (eval "$lt_compile" 2>out/conftest.err)
8120 ac_status=$?
8121 cat out/conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8124 then
8125 # The compiler can only warn and ignore the option if not recognized
8126 # So say no if there are warnings
8127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8130 lt_cv_prog_compiler_c_o=yes
8133 chmod u+w . 2>&5
8134 $RM conftest*
8135 # SGI C++ compiler will create directory out/ii_files/ for
8136 # template instantiation
8137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8138 $RM out/* && rmdir out
8139 cd ..
8140 $RM -r conftest
8141 $RM conftest*
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8145 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8154 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 lt_cv_prog_compiler_c_o=no
8158 $RM -r conftest 2>/dev/null
8159 mkdir conftest
8160 cd conftest
8161 mkdir out
8162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 lt_compiler_flag="-o out/conftest2.$ac_objext"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 lt_compile=`echo "$ac_compile" | $SED \
8170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8172 -e 's:$: $lt_compiler_flag:'`
8173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8174 (eval "$lt_compile" 2>out/conftest.err)
8175 ac_status=$?
8176 cat out/conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8179 then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings
8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_c_o=yes
8188 chmod u+w . 2>&5
8189 $RM conftest*
8190 # SGI C++ compiler will create directory out/ii_files/ for
8191 # template instantiation
8192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8193 $RM out/* && rmdir out
8194 cd ..
8195 $RM -r conftest
8196 $RM conftest*
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8205 hard_links="nottested"
8206 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8207 # do not overwrite the value of need_locks provided by the user
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8209 $as_echo_n "checking if we can lock with hard links... " >&6; }
8210 hard_links=yes
8211 $RM conftest*
8212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8213 touch conftest.a
8214 ln conftest.a conftest.b 2>&5 || hard_links=no
8215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8217 $as_echo "$hard_links" >&6; }
8218 if test "$hard_links" = no; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8220 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8221 need_locks=warn
8223 else
8224 need_locks=no
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8233 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8235 runpath_var=
8236 allow_undefined_flag=
8237 always_export_symbols=no
8238 archive_cmds=
8239 archive_expsym_cmds=
8240 compiler_needs_object=no
8241 enable_shared_with_static_runtimes=no
8242 export_dynamic_flag_spec=
8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8244 hardcode_automatic=no
8245 hardcode_direct=no
8246 hardcode_direct_absolute=no
8247 hardcode_libdir_flag_spec=
8248 hardcode_libdir_flag_spec_ld=
8249 hardcode_libdir_separator=
8250 hardcode_minus_L=no
8251 hardcode_shlibpath_var=unsupported
8252 inherit_rpath=no
8253 link_all_deplibs=unknown
8254 module_cmds=
8255 module_expsym_cmds=
8256 old_archive_from_new_cmds=
8257 old_archive_from_expsyms_cmds=
8258 thread_safe_flag_spec=
8259 whole_archive_flag_spec=
8260 # include_expsyms should be a list of space-separated symbols to be *always*
8261 # included in the symbol list
8262 include_expsyms=
8263 # exclude_expsyms can be an extended regexp of symbols to exclude
8264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8266 # as well as any symbol that contains `d'.
8267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8269 # platforms (ab)use it in PIC code, but their linkers get confused if
8270 # the symbol is explicitly referenced. Since portable code cannot
8271 # rely on this symbol name, it's probably fine to never include it in
8272 # preloaded symbol tables.
8273 # Exclude shared library initialization/finalization symbols.
8274 extract_expsyms_cmds=
8276 case $host_os in
8277 cygwin* | mingw* | pw32* | cegcc*)
8278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8279 # When not using gcc, we currently assume that we are using
8280 # Microsoft Visual C++.
8281 if test "$GCC" != yes; then
8282 with_gnu_ld=no
8285 interix*)
8286 # we just hope/assume this is gcc and not c89 (= MSVC++)
8287 with_gnu_ld=yes
8289 openbsd*)
8290 with_gnu_ld=no
8292 esac
8294 ld_shlibs=yes
8296 # On some targets, GNU ld is compatible enough with the native linker
8297 # that we're better off using the native interface for both.
8298 lt_use_gnu_ld_interface=no
8299 if test "$with_gnu_ld" = yes; then
8300 case $host_os in
8301 aix*)
8302 # The AIX port of GNU ld has always aspired to compatibility
8303 # with the native linker. However, as the warning in the GNU ld
8304 # block says, versions before 2.19.5* couldn't really create working
8305 # shared libraries, regardless of the interface used.
8306 case `$LD -v 2>&1` in
8307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8309 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8311 lt_use_gnu_ld_interface=yes
8313 esac
8316 lt_use_gnu_ld_interface=yes
8318 esac
8321 if test "$lt_use_gnu_ld_interface" = yes; then
8322 # If archive_cmds runs LD, not CC, wlarc should be empty
8323 wlarc='${wl}'
8325 # Set some defaults for GNU ld with shared library support. These
8326 # are reset later if shared libraries are not supported. Putting them
8327 # here allows them to be overridden if necessary.
8328 runpath_var=LD_RUN_PATH
8329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8330 export_dynamic_flag_spec='${wl}--export-dynamic'
8331 # ancient GNU ld didn't support --whole-archive et. al.
8332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8333 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8334 else
8335 whole_archive_flag_spec=
8337 supports_anon_versioning=no
8338 case `$LD -v 2>&1` in
8339 *GNU\ gold*) supports_anon_versioning=yes ;;
8340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8343 *\ 2.11.*) ;; # other 2.11 versions
8344 *) supports_anon_versioning=yes ;;
8345 esac
8347 # See if GNU ld supports shared libraries.
8348 case $host_os in
8349 aix[3-9]*)
8350 # On AIX/PPC, the GNU linker is very broken
8351 if test "$host_cpu" != ia64; then
8352 ld_shlibs=no
8353 cat <<_LT_EOF 1>&2
8355 *** Warning: the GNU linker, at least up to release 2.19, is reported
8356 *** to be unable to reliably create shared libraries on AIX.
8357 *** Therefore, libtool is disabling shared libraries support. If you
8358 *** really care for shared libraries, you may want to install binutils
8359 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8360 *** You will then need to restart the configuration process.
8362 _LT_EOF
8366 amigaos*)
8367 case $host_cpu in
8368 powerpc)
8369 # see comment about AmigaOS4 .so support
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds=''
8373 m68k)
8374 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)'
8375 hardcode_libdir_flag_spec='-L$libdir'
8376 hardcode_minus_L=yes
8378 esac
8381 beos*)
8382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8383 allow_undefined_flag=unsupported
8384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8385 # support --undefined. This deserves some investigation. FIXME
8386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387 else
8388 ld_shlibs=no
8392 cygwin* | mingw* | pw32* | cegcc*)
8393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8394 # as there is no search path for DLLs.
8395 hardcode_libdir_flag_spec='-L$libdir'
8396 export_dynamic_flag_spec='${wl}--export-all-symbols'
8397 allow_undefined_flag=unsupported
8398 always_export_symbols=no
8399 enable_shared_with_static_runtimes=yes
8400 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8404 # If the export-symbols file already is a .def file (1st line
8405 # is EXPORTS), use it as is; otherwise, prepend...
8406 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8407 cp $export_symbols $output_objdir/$soname.def;
8408 else
8409 echo EXPORTS > $output_objdir/$soname.def;
8410 cat $export_symbols >> $output_objdir/$soname.def;
8412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8413 else
8414 ld_shlibs=no
8418 haiku*)
8419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420 link_all_deplibs=yes
8423 interix[3-9]*)
8424 hardcode_direct=no
8425 hardcode_shlibpath_var=no
8426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8427 export_dynamic_flag_spec='${wl}-E'
8428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8429 # Instead, shared libraries are loaded at an image base (0x10000000 by
8430 # default) and relocated if they conflict, which is a slow very memory
8431 # consuming and fragmenting process. To avoid this, we pick a random,
8432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8435 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'
8438 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8439 tmp_diet=no
8440 if test "$host_os" = linux-dietlibc; then
8441 case $cc_basename in
8442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8443 esac
8445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8446 && test "$tmp_diet" = no
8447 then
8448 tmp_addflag=' $pic_flag'
8449 tmp_sharedflag='-shared'
8450 case $cc_basename,$host_cpu in
8451 pgcc*) # Portland Group C compiler
8452 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'
8453 tmp_addflag=' $pic_flag'
8455 pgf77* | pgf90* | pgf95* | pgfortran*)
8456 # Portland Group f77 and f90 compilers
8457 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'
8458 tmp_addflag=' $pic_flag -Mnomain' ;;
8459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8460 tmp_addflag=' -i_dynamic' ;;
8461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8462 tmp_addflag=' -i_dynamic -nofor_main' ;;
8463 ifc* | ifort*) # Intel Fortran compiler
8464 tmp_addflag=' -nofor_main' ;;
8465 lf95*) # Lahey Fortran 8.1
8466 whole_archive_flag_spec=
8467 tmp_sharedflag='--shared' ;;
8468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8469 tmp_sharedflag='-qmkshrobj'
8470 tmp_addflag= ;;
8471 nvcc*) # Cuda Compiler Driver 2.2
8472 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'
8473 compiler_needs_object=yes
8475 esac
8476 case `$CC -V 2>&1 | sed 5q` in
8477 *Sun\ C*) # Sun C 5.9
8478 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'
8479 compiler_needs_object=yes
8480 tmp_sharedflag='-G' ;;
8481 *Sun\ F*) # Sun Fortran 8.3
8482 tmp_sharedflag='-G' ;;
8483 esac
8484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8486 if test "x$supports_anon_versioning" = xyes; then
8487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8489 echo "local: *; };" >> $output_objdir/$libname.ver~
8490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8493 case $cc_basename in
8494 xlf* | bgf* | bgxlf* | mpixlf*)
8495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8497 hardcode_libdir_flag_spec=
8498 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8499 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8500 if test "x$supports_anon_versioning" = xyes; then
8501 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8503 echo "local: *; };" >> $output_objdir/$libname.ver~
8504 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8507 esac
8508 else
8509 ld_shlibs=no
8513 netbsd*)
8514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8515 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8516 wlarc=
8517 else
8518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8523 solaris*)
8524 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8525 ld_shlibs=no
8526 cat <<_LT_EOF 1>&2
8528 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8529 *** create shared libraries on Solaris systems. Therefore, libtool
8530 *** is disabling shared libraries support. We urge you to upgrade GNU
8531 *** binutils to release 2.9.1 or newer. Another option is to modify
8532 *** your PATH or compiler configuration so that the native linker is
8533 *** used, and then restart.
8535 _LT_EOF
8536 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8539 else
8540 ld_shlibs=no
8544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8545 case `$LD -v 2>&1` in
8546 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8547 ld_shlibs=no
8548 cat <<_LT_EOF 1>&2
8550 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8551 *** reliably create shared libraries on SCO systems. Therefore, libtool
8552 *** is disabling shared libraries support. We urge you to upgrade GNU
8553 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8554 *** your PATH or compiler configuration so that the native linker is
8555 *** used, and then restart.
8557 _LT_EOF
8560 # For security reasons, it is highly recommended that you always
8561 # use absolute paths for naming shared libraries, and exclude the
8562 # DT_RUNPATH tag from executables and libraries. But doing so
8563 # requires that you compile everything twice, which is a pain.
8564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8568 else
8569 ld_shlibs=no
8572 esac
8575 sunos4*)
8576 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8577 wlarc=
8578 hardcode_direct=yes
8579 hardcode_shlibpath_var=no
8583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586 else
8587 ld_shlibs=no
8590 esac
8592 if test "$ld_shlibs" = no; then
8593 runpath_var=
8594 hardcode_libdir_flag_spec=
8595 export_dynamic_flag_spec=
8596 whole_archive_flag_spec=
8598 else
8599 # PORTME fill in a description of your system's linker (not GNU ld)
8600 case $host_os in
8601 aix3*)
8602 allow_undefined_flag=unsupported
8603 always_export_symbols=yes
8604 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'
8605 # Note: this linker hardcodes the directories in LIBPATH if there
8606 # are no directories specified by -L.
8607 hardcode_minus_L=yes
8608 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8609 # Neither direct hardcoding nor static linking is supported with a
8610 # broken collect2.
8611 hardcode_direct=unsupported
8615 aix[4-9]*)
8616 if test "$host_cpu" = ia64; then
8617 # On IA64, the linker does run time linking by default, so we don't
8618 # have to do anything special.
8619 aix_use_runtimelinking=no
8620 exp_sym_flag='-Bexport'
8621 no_entry_flag=""
8622 else
8623 # If we're using GNU nm, then we don't want the "-C" option.
8624 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8625 # Also, AIX nm treats weak defined symbols like other global
8626 # defined symbols, whereas GNU nm marks them as "W".
8627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8628 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'
8629 else
8630 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'
8632 aix_use_runtimelinking=no
8634 # Test if we are trying to use run time linking or normal
8635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8636 # need to do runtime linking.
8637 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8638 for ld_flag in $LDFLAGS; do
8639 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8640 aix_use_runtimelinking=yes
8641 break
8643 done
8645 esac
8647 exp_sym_flag='-bexport'
8648 no_entry_flag='-bnoentry'
8651 # When large executables or shared objects are built, AIX ld can
8652 # have problems creating the table of contents. If linking a library
8653 # or program results in "error TOC overflow" add -mminimal-toc to
8654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8657 archive_cmds=''
8658 hardcode_direct=yes
8659 hardcode_direct_absolute=yes
8660 hardcode_libdir_separator=':'
8661 link_all_deplibs=yes
8662 file_list_spec='${wl}-f,'
8664 if test "$GCC" = yes; then
8665 case $host_os in aix4.[012]|aix4.[012].*)
8666 # We only want to do this on AIX 4.2 and lower, the check
8667 # below for broken collect2 doesn't work under 4.3+
8668 collect2name=`${CC} -print-prog-name=collect2`
8669 if test -f "$collect2name" &&
8670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8671 then
8672 # We have reworked collect2
8674 else
8675 # We have old collect2
8676 hardcode_direct=unsupported
8677 # It fails to find uninstalled libraries when the uninstalled
8678 # path is not listed in the libpath. Setting hardcode_minus_L
8679 # to unsupported forces relinking
8680 hardcode_minus_L=yes
8681 hardcode_libdir_flag_spec='-L$libdir'
8682 hardcode_libdir_separator=
8685 esac
8686 shared_flag='-shared'
8687 if test "$aix_use_runtimelinking" = yes; then
8688 shared_flag="$shared_flag "'${wl}-G'
8690 else
8691 # not using gcc
8692 if test "$host_cpu" = ia64; then
8693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8694 # chokes on -Wl,-G. The following line is correct:
8695 shared_flag='-G'
8696 else
8697 if test "$aix_use_runtimelinking" = yes; then
8698 shared_flag='${wl}-G'
8699 else
8700 shared_flag='${wl}-bM:SRE'
8705 export_dynamic_flag_spec='${wl}-bexpall'
8706 # It seems that -bexpall does not export symbols beginning with
8707 # underscore (_), so it is better to generate a list of symbols to export.
8708 always_export_symbols=yes
8709 if test "$aix_use_runtimelinking" = yes; then
8710 # Warning - without using the other runtime loading flags (-brtl),
8711 # -berok will link without error, but may produce a broken library.
8712 allow_undefined_flag='-berok'
8713 # Determine the default libpath from the value encoded in an
8714 # empty executable.
8715 if test x$gcc_no_link = xyes; then
8716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8722 main ()
8726 return 0;
8728 _ACEOF
8729 if ac_fn_c_try_link "$LINENO"; then :
8731 lt_aix_libpath_sed='
8732 /Import File Strings/,/^$/ {
8733 /^0/ {
8734 s/^0 *\(.*\)$/\1/
8738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8739 # Check for a 64-bit object if we didn't find anything.
8740 if test -z "$aix_libpath"; then
8741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8744 rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8749 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"
8750 else
8751 if test "$host_cpu" = ia64; then
8752 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8753 allow_undefined_flag="-z nodefs"
8754 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"
8755 else
8756 # Determine the default libpath from the value encoded in an
8757 # empty executable.
8758 if test x$gcc_no_link = xyes; then
8759 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8765 main ()
8769 return 0;
8771 _ACEOF
8772 if ac_fn_c_try_link "$LINENO"; then :
8774 lt_aix_libpath_sed='
8775 /Import File Strings/,/^$/ {
8776 /^0/ {
8777 s/^0 *\(.*\)$/\1/
8781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8782 # Check for a 64-bit object if we didn't find anything.
8783 if test -z "$aix_libpath"; then
8784 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8787 rm -f core conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792 # Warning - without using the other run time loading flags,
8793 # -berok will link without error, but may produce a broken library.
8794 no_undefined_flag=' ${wl}-bernotok'
8795 allow_undefined_flag=' ${wl}-berok'
8796 if test "$with_gnu_ld" = yes; then
8797 # We only use this code for GNU lds that support --whole-archive.
8798 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8799 else
8800 # Exported symbols can be pulled into shared objects from archives
8801 whole_archive_flag_spec='$convenience'
8803 archive_cmds_need_lc=yes
8804 # This is similar to how AIX traditionally builds its shared libraries.
8805 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'
8810 amigaos*)
8811 case $host_cpu in
8812 powerpc)
8813 # see comment about AmigaOS4 .so support
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds=''
8817 m68k)
8818 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)'
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_minus_L=yes
8822 esac
8825 bsdi[45]*)
8826 export_dynamic_flag_spec=-rdynamic
8829 cygwin* | mingw* | pw32* | cegcc*)
8830 # When not using gcc, we currently assume that we are using
8831 # Microsoft Visual C++.
8832 # hardcode_libdir_flag_spec is actually meaningless, as there is
8833 # no search path for DLLs.
8834 hardcode_libdir_flag_spec=' '
8835 allow_undefined_flag=unsupported
8836 # Tell ltmain to make .lib files, not .a files.
8837 libext=lib
8838 # Tell ltmain to make .dll files, not .so files.
8839 shrext_cmds=".dll"
8840 # FIXME: Setting linknames here is a bad hack.
8841 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8842 # The linker will automatically build a .lib file if we build a DLL.
8843 old_archive_from_new_cmds='true'
8844 # FIXME: Should let the user specify the lib program.
8845 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8846 fix_srcfile_path='`cygpath -w "$srcfile"`'
8847 enable_shared_with_static_runtimes=yes
8850 darwin* | rhapsody*)
8853 archive_cmds_need_lc=no
8854 hardcode_direct=no
8855 hardcode_automatic=yes
8856 hardcode_shlibpath_var=unsupported
8857 if test "$lt_cv_ld_force_load" = "yes"; then
8858 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\"`'
8859 else
8860 whole_archive_flag_spec=''
8862 link_all_deplibs=yes
8863 allow_undefined_flag="$_lt_dar_allow_undefined"
8864 case $cc_basename in
8865 ifort*) _lt_dar_can_shared=yes ;;
8866 *) _lt_dar_can_shared=$GCC ;;
8867 esac
8868 if test "$_lt_dar_can_shared" = "yes"; then
8869 output_verbose_link_cmd=func_echo_all
8870 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8871 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8872 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}"
8873 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}"
8875 else
8876 ld_shlibs=no
8881 dgux*)
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_libdir_flag_spec='-L$libdir'
8884 hardcode_shlibpath_var=no
8887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8888 # support. Future versions do this automatically, but an explicit c++rt0.o
8889 # does not break anything, and helps significantly (at the cost of a little
8890 # extra space).
8891 freebsd2.2*)
8892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8893 hardcode_libdir_flag_spec='-R$libdir'
8894 hardcode_direct=yes
8895 hardcode_shlibpath_var=no
8898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8899 freebsd2.*)
8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_direct=yes
8902 hardcode_minus_L=yes
8903 hardcode_shlibpath_var=no
8906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8907 freebsd* | dragonfly*)
8908 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8909 hardcode_libdir_flag_spec='-R$libdir'
8910 hardcode_direct=yes
8911 hardcode_shlibpath_var=no
8914 hpux9*)
8915 if test "$GCC" = yes; then
8916 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'
8917 else
8918 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'
8920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8921 hardcode_libdir_separator=:
8922 hardcode_direct=yes
8924 # hardcode_minus_L: Not really in the search PATH,
8925 # but as the default location of the library.
8926 hardcode_minus_L=yes
8927 export_dynamic_flag_spec='${wl}-E'
8930 hpux10*)
8931 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8932 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8933 else
8934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8936 if test "$with_gnu_ld" = no; then
8937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8938 hardcode_libdir_flag_spec_ld='+b $libdir'
8939 hardcode_libdir_separator=:
8940 hardcode_direct=yes
8941 hardcode_direct_absolute=yes
8942 export_dynamic_flag_spec='${wl}-E'
8943 # hardcode_minus_L: Not really in the search PATH,
8944 # but as the default location of the library.
8945 hardcode_minus_L=yes
8949 hpux11*)
8950 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8951 case $host_cpu in
8952 hppa*64*)
8953 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 ia64*)
8956 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8961 esac
8962 else
8963 case $host_cpu in
8964 hppa*64*)
8965 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8967 ia64*)
8968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8972 # Older versions of the 11.00 compiler do not understand -b yet
8973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8975 $as_echo_n "checking if $CC understands -b... " >&6; }
8976 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 lt_cv_prog_compiler__b=no
8980 save_LDFLAGS="$LDFLAGS"
8981 LDFLAGS="$LDFLAGS -b"
8982 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8984 # The linker can only warn and ignore the option if not recognized
8985 # So say no if there are warnings
8986 if test -s conftest.err; then
8987 # Append any errors to the config.log.
8988 cat conftest.err 1>&5
8989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991 if diff conftest.exp conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler__b=yes
8994 else
8995 lt_cv_prog_compiler__b=yes
8998 $RM -r conftest*
8999 LDFLAGS="$save_LDFLAGS"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9003 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9005 if test x"$lt_cv_prog_compiler__b" = xyes; then
9006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9007 else
9008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9012 esac
9014 if test "$with_gnu_ld" = no; then
9015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016 hardcode_libdir_separator=:
9018 case $host_cpu in
9019 hppa*64*|ia64*)
9020 hardcode_direct=no
9021 hardcode_shlibpath_var=no
9024 hardcode_direct=yes
9025 hardcode_direct_absolute=yes
9026 export_dynamic_flag_spec='${wl}-E'
9028 # hardcode_minus_L: Not really in the search PATH,
9029 # but as the default location of the library.
9030 hardcode_minus_L=yes
9032 esac
9036 irix5* | irix6* | nonstopux*)
9037 if test "$GCC" = yes; then
9038 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'
9039 # Try to use the -exported_symbol ld option, if it does not
9040 # work, assume that -exports_file does not work either and
9041 # implicitly export all symbols.
9042 save_LDFLAGS="$LDFLAGS"
9043 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9044 if test x$gcc_no_link = xyes; then
9045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 int foo(void) {}
9050 _ACEOF
9051 if ac_fn_c_try_link "$LINENO"; then :
9052 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'
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 LDFLAGS="$save_LDFLAGS"
9058 else
9059 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'
9060 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'
9062 archive_cmds_need_lc='no'
9063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9064 hardcode_libdir_separator=:
9065 inherit_rpath=yes
9066 link_all_deplibs=yes
9069 netbsd*)
9070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9072 else
9073 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9075 hardcode_libdir_flag_spec='-R$libdir'
9076 hardcode_direct=yes
9077 hardcode_shlibpath_var=no
9080 newsos6)
9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_direct=yes
9083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084 hardcode_libdir_separator=:
9085 hardcode_shlibpath_var=no
9088 *nto* | *qnx*)
9091 openbsd*)
9092 if test -f /usr/libexec/ld.so; then
9093 hardcode_direct=yes
9094 hardcode_shlibpath_var=no
9095 hardcode_direct_absolute=yes
9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9098 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9100 export_dynamic_flag_spec='${wl}-E'
9101 else
9102 case $host_os in
9103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105 hardcode_libdir_flag_spec='-R$libdir'
9108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9111 esac
9113 else
9114 ld_shlibs=no
9118 os2*)
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_minus_L=yes
9121 allow_undefined_flag=unsupported
9122 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'
9123 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9126 osf3*)
9127 if test "$GCC" = yes; then
9128 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9129 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'
9130 else
9131 allow_undefined_flag=' -expect_unresolved \*'
9132 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'
9134 archive_cmds_need_lc='no'
9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136 hardcode_libdir_separator=:
9139 osf4* | osf5*) # as osf3* with the addition of -msym flag
9140 if test "$GCC" = yes; then
9141 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9142 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'
9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144 else
9145 allow_undefined_flag=' -expect_unresolved \*'
9146 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'
9147 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~
9148 $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'
9150 # Both c and cxx compiler support -rpath directly
9151 hardcode_libdir_flag_spec='-rpath $libdir'
9153 archive_cmds_need_lc='no'
9154 hardcode_libdir_separator=:
9157 solaris*)
9158 no_undefined_flag=' -z defs'
9159 if test "$GCC" = yes; then
9160 wlarc='${wl}'
9161 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9164 else
9165 case `$CC -V 2>&1` in
9166 *"Compilers 5.0"*)
9167 wlarc=''
9168 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9173 wlarc='${wl}'
9174 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9176 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9178 esac
9180 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_shlibpath_var=no
9182 case $host_os in
9183 solaris2.[0-5] | solaris2.[0-5].*) ;;
9185 # The compiler driver will combine and reorder linker options,
9186 # but understands `-z linker_flag'. GCC discards it without `$wl',
9187 # but is careful enough not to reorder.
9188 # Supported since Solaris 2.6 (maybe 2.5.1?)
9189 if test "$GCC" = yes; then
9190 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9191 else
9192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9195 esac
9196 link_all_deplibs=yes
9199 sunos4*)
9200 if test "x$host_vendor" = xsequent; then
9201 # Use $CC to link under sequent, because it throws in some extra .o
9202 # files that make .init and .fini sections work.
9203 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9204 else
9205 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9207 hardcode_libdir_flag_spec='-L$libdir'
9208 hardcode_direct=yes
9209 hardcode_minus_L=yes
9210 hardcode_shlibpath_var=no
9213 sysv4)
9214 case $host_vendor in
9215 sni)
9216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217 hardcode_direct=yes # is this really true???
9219 siemens)
9220 ## LD is ld it makes a PLAMLIB
9221 ## CC just makes a GrossModule.
9222 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9223 reload_cmds='$CC -r -o $output$reload_objs'
9224 hardcode_direct=no
9226 motorola)
9227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9230 esac
9231 runpath_var='LD_RUN_PATH'
9232 hardcode_shlibpath_var=no
9235 sysv4.3*)
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_shlibpath_var=no
9238 export_dynamic_flag_spec='-Bexport'
9241 sysv4*MP*)
9242 if test -d /usr/nec; then
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244 hardcode_shlibpath_var=no
9245 runpath_var=LD_RUN_PATH
9246 hardcode_runpath_var=yes
9247 ld_shlibs=yes
9251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9252 no_undefined_flag='${wl}-z,text'
9253 archive_cmds_need_lc=no
9254 hardcode_shlibpath_var=no
9255 runpath_var='LD_RUN_PATH'
9257 if test "$GCC" = yes; then
9258 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 else
9261 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9266 sysv5* | sco3.2v5* | sco5v6*)
9267 # Note: We can NOT use -z defs as we might desire, because we do not
9268 # link with -lc, and that would cause any symbols used from libc to
9269 # always be unresolved, which means just about no library would
9270 # ever link correctly. If we're not using GNU ld we use -z text
9271 # though, which does catch some bad symbols but isn't as heavy-handed
9272 # as -z defs.
9273 no_undefined_flag='${wl}-z,text'
9274 allow_undefined_flag='${wl}-z,nodefs'
9275 archive_cmds_need_lc=no
9276 hardcode_shlibpath_var=no
9277 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9278 hardcode_libdir_separator=':'
9279 link_all_deplibs=yes
9280 export_dynamic_flag_spec='${wl}-Bexport'
9281 runpath_var='LD_RUN_PATH'
9283 if test "$GCC" = yes; then
9284 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 else
9287 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9292 uts4*)
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_shlibpath_var=no
9299 ld_shlibs=no
9301 esac
9303 if test x$host_vendor = xsni; then
9304 case $host in
9305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9306 export_dynamic_flag_spec='${wl}-Blargedynsym'
9308 esac
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9313 $as_echo "$ld_shlibs" >&6; }
9314 test "$ld_shlibs" = no && can_build_shared=no
9316 with_gnu_ld=$with_gnu_ld
9333 # Do we need to explicitly link libc?
9335 case "x$archive_cmds_need_lc" in
9336 x|xyes)
9337 # Assume -lc should be added
9338 archive_cmds_need_lc=yes
9340 if test "$enable_shared" = yes && test "$GCC" = yes; then
9341 case $archive_cmds in
9342 *'~'*)
9343 # FIXME: we may have to deal with multi-command sequences.
9345 '$CC '*)
9346 # Test whether the compiler implicitly links with -lc since on some
9347 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9348 # to ld, don't add -lc before -lgcc.
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9350 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9351 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 $RM conftest*
9355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9358 (eval $ac_compile) 2>&5
9359 ac_status=$?
9360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9361 test $ac_status = 0; } 2>conftest.err; then
9362 soname=conftest
9363 lib=conftest
9364 libobjs=conftest.$ac_objext
9365 deplibs=
9366 wl=$lt_prog_compiler_wl
9367 pic_flag=$lt_prog_compiler_pic
9368 compiler_flags=-v
9369 linker_flags=-v
9370 verstring=
9371 output_objdir=.
9372 libname=conftest
9373 lt_save_allow_undefined_flag=$allow_undefined_flag
9374 allow_undefined_flag=
9375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9376 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9377 ac_status=$?
9378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9379 test $ac_status = 0; }
9380 then
9381 lt_cv_archive_cmds_need_lc=no
9382 else
9383 lt_cv_archive_cmds_need_lc=yes
9385 allow_undefined_flag=$lt_save_allow_undefined_flag
9386 else
9387 cat conftest.err 1>&5
9389 $RM conftest*
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9393 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9394 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9396 esac
9399 esac
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9558 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9560 if test "$GCC" = yes; then
9561 case $host_os in
9562 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9563 *) lt_awk_arg="/^libraries:/" ;;
9564 esac
9565 case $host_os in
9566 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9567 *) lt_sed_strip_eq="s,=/,/,g" ;;
9568 esac
9569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9570 case $lt_search_path_spec in
9571 *\;*)
9572 # if the path contains ";" then we assume it to be the separator
9573 # otherwise default to the standard path separator (i.e. ":") - it is
9574 # assumed that no part of a normal pathname contains ";" but that should
9575 # okay in the real world where ";" in dirpaths is itself problematic.
9576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9581 esac
9582 # Ok, now we have the path, separated by spaces, we can step through it
9583 # and add multilib dir if necessary.
9584 lt_tmp_lt_search_path_spec=
9585 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9586 for lt_sys_path in $lt_search_path_spec; do
9587 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9589 else
9590 test -d "$lt_sys_path" && \
9591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9593 done
9594 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9595 BEGIN {RS=" "; FS="/|\n";} {
9596 lt_foo="";
9597 lt_count=0;
9598 for (lt_i = NF; lt_i > 0; lt_i--) {
9599 if ($lt_i != "" && $lt_i != ".") {
9600 if ($lt_i == "..") {
9601 lt_count++;
9602 } else {
9603 if (lt_count == 0) {
9604 lt_foo="/" $lt_i lt_foo;
9605 } else {
9606 lt_count--;
9611 if (lt_foo != "") { lt_freq[lt_foo]++; }
9612 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9614 # AWK program above erroneously prepends '/' to C:/dos/paths
9615 # for these hosts.
9616 case $host_os in
9617 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9618 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9619 esac
9620 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9621 else
9622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9624 library_names_spec=
9625 libname_spec='lib$name'
9626 soname_spec=
9627 shrext_cmds=".so"
9628 postinstall_cmds=
9629 postuninstall_cmds=
9630 finish_cmds=
9631 finish_eval=
9632 shlibpath_var=
9633 shlibpath_overrides_runpath=unknown
9634 version_type=none
9635 dynamic_linker="$host_os ld.so"
9636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9637 need_lib_prefix=unknown
9638 hardcode_into_libs=no
9640 # when you set need_version to no, make sure it does not cause -set_version
9641 # flags to be left without arguments
9642 need_version=unknown
9644 case $host_os in
9645 aix3*)
9646 version_type=linux
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9648 shlibpath_var=LIBPATH
9650 # AIX 3 has no versioning support, so we append a major version to the name.
9651 soname_spec='${libname}${release}${shared_ext}$major'
9654 aix[4-9]*)
9655 version_type=linux
9656 need_lib_prefix=no
9657 need_version=no
9658 hardcode_into_libs=yes
9659 if test "$host_cpu" = ia64; then
9660 # AIX 5 supports IA64
9661 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 else
9664 # With GCC up to 2.95.x, collect2 would create an import file
9665 # for dependence libraries. The import file would start with
9666 # the line `#! .'. This would cause the generated library to
9667 # depend on `.', always an invalid library. This was fixed in
9668 # development snapshots of GCC prior to 3.0.
9669 case $host_os in
9670 aix4 | aix4.[01] | aix4.[01].*)
9671 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9672 echo ' yes '
9673 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9675 else
9676 can_build_shared=no
9679 esac
9680 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9681 # soname into executable. Probably we can add versioning support to
9682 # collect2, so additional links can be useful in future.
9683 if test "$aix_use_runtimelinking" = yes; then
9684 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9685 # instead of lib<name>.a to let people know that these are not
9686 # typical AIX shared libraries.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 else
9689 # We preserve .a as extension for shared libraries through AIX4.2
9690 # and later when we are not doing run time linking.
9691 library_names_spec='${libname}${release}.a $libname.a'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9694 shlibpath_var=LIBPATH
9698 amigaos*)
9699 case $host_cpu in
9700 powerpc)
9701 # Since July 2007 AmigaOS4 officially supports .so libraries.
9702 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 m68k)
9706 library_names_spec='$libname.ixlibrary $libname.a'
9707 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9708 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'
9710 esac
9713 beos*)
9714 library_names_spec='${libname}${shared_ext}'
9715 dynamic_linker="$host_os ld.so"
9716 shlibpath_var=LIBRARY_PATH
9719 bsdi[45]*)
9720 version_type=linux
9721 need_version=no
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9727 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9728 # the default ld.so.conf also contains /usr/contrib/lib and
9729 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9730 # libtool to hard-code these into programs
9733 cygwin* | mingw* | pw32* | cegcc*)
9734 version_type=windows
9735 shrext_cmds=".dll"
9736 need_version=no
9737 need_lib_prefix=no
9739 case $GCC,$host_os in
9740 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9741 library_names_spec='$libname.dll.a'
9742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9743 postinstall_cmds='base_file=`basename \${file}`~
9744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9745 dldir=$destdir/`dirname \$dlpath`~
9746 test -d \$dldir || mkdir -p \$dldir~
9747 $install_prog $dir/$dlname \$dldir/$dlname~
9748 chmod a+x \$dldir/$dlname~
9749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9753 dlpath=$dir/\$dldll~
9754 $RM \$dlpath'
9755 shlibpath_overrides_runpath=yes
9757 case $host_os in
9758 cygwin*)
9759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9764 mingw* | cegcc*)
9765 # MinGW DLLs use traditional 'lib' prefix
9766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9768 pw32*)
9769 # pw32 DLLs use 'pw' prefix rather than 'lib'
9770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9772 esac
9776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9778 esac
9779 dynamic_linker='Win32 ld.exe'
9780 # FIXME: first we should search . and the directory the executable is in
9781 shlibpath_var=PATH
9784 darwin* | rhapsody*)
9785 dynamic_linker="$host_os dyld"
9786 version_type=darwin
9787 need_lib_prefix=no
9788 need_version=no
9789 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9790 soname_spec='${libname}${release}${major}$shared_ext'
9791 shlibpath_overrides_runpath=yes
9792 shlibpath_var=DYLD_LIBRARY_PATH
9793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9799 dgux*)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
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'
9805 shlibpath_var=LD_LIBRARY_PATH
9808 freebsd* | dragonfly*)
9809 # DragonFly does not have aout. When/if they implement a new
9810 # versioning mechanism, adjust this.
9811 if test -x /usr/bin/objformat; then
9812 objformat=`/usr/bin/objformat`
9813 else
9814 case $host_os in
9815 freebsd[23].*) objformat=aout ;;
9816 *) objformat=elf ;;
9817 esac
9819 version_type=freebsd-$objformat
9820 case $version_type in
9821 freebsd-elf*)
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9823 need_version=no
9824 need_lib_prefix=no
9826 freebsd-*)
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9828 need_version=yes
9830 esac
9831 shlibpath_var=LD_LIBRARY_PATH
9832 case $host_os in
9833 freebsd2.*)
9834 shlibpath_overrides_runpath=yes
9836 freebsd3.[01]* | freebsdelf3.[01]*)
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9842 shlibpath_overrides_runpath=no
9843 hardcode_into_libs=yes
9845 *) # from 4.6 on, and DragonFly
9846 shlibpath_overrides_runpath=yes
9847 hardcode_into_libs=yes
9849 esac
9852 gnu*)
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 shlibpath_var=LD_LIBRARY_PATH
9859 hardcode_into_libs=yes
9862 haiku*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 dynamic_linker="$host_os runtime_loader"
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9868 soname_spec='${libname}${release}${shared_ext}$major'
9869 shlibpath_var=LIBRARY_PATH
9870 shlibpath_overrides_runpath=yes
9871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9872 hardcode_into_libs=yes
9875 hpux9* | hpux10* | hpux11*)
9876 # Give a soname corresponding to the major version so that dld.sl refuses to
9877 # link against other versions.
9878 version_type=sunos
9879 need_lib_prefix=no
9880 need_version=no
9881 case $host_cpu in
9882 ia64*)
9883 shrext_cmds='.so'
9884 hardcode_into_libs=yes
9885 dynamic_linker="$host_os dld.so"
9886 shlibpath_var=LD_LIBRARY_PATH
9887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 if test "X$HPUX_IA64_MODE" = X32; then
9891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9892 else
9893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9897 hppa*64*)
9898 shrext_cmds='.sl'
9899 hardcode_into_libs=yes
9900 dynamic_linker="$host_os dld.sl"
9901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9909 shrext_cmds='.sl'
9910 dynamic_linker="$host_os dld.sl"
9911 shlibpath_var=SHLIB_PATH
9912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9916 esac
9917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9918 postinstall_cmds='chmod 555 $lib'
9919 # or fails outright, so override atomically:
9920 install_override_mode=555
9923 interix[3-9]*)
9924 version_type=linux
9925 need_lib_prefix=no
9926 need_version=no
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=no
9932 hardcode_into_libs=yes
9935 irix5* | irix6* | nonstopux*)
9936 case $host_os in
9937 nonstopux*) version_type=nonstopux ;;
9939 if test "$lt_cv_prog_gnu_ld" = yes; then
9940 version_type=linux
9941 else
9942 version_type=irix
9943 fi ;;
9944 esac
9945 need_lib_prefix=no
9946 need_version=no
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9949 case $host_os in
9950 irix5* | nonstopux*)
9951 libsuff= shlibsuff=
9954 case $LD in # libtool.m4 will add one of these switches to LD
9955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9956 libsuff= shlibsuff= libmagic=32-bit;;
9957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9958 libsuff=32 shlibsuff=N32 libmagic=N32;;
9959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9961 *) libsuff= shlibsuff= libmagic=never-match;;
9962 esac
9964 esac
9965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9966 shlibpath_overrides_runpath=no
9967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9969 hardcode_into_libs=yes
9972 # No shared lib support for Linux oldld, aout, or coff.
9973 linux*oldld* | linux*aout* | linux*coff*)
9974 dynamic_linker=no
9977 # This must be Linux ELF.
9978 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9979 version_type=linux
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=no
9988 # Some binutils ld are patched to set DT_RUNPATH
9989 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 lt_cv_shlibpath_overrides_runpath=no
9993 save_LDFLAGS=$LDFLAGS
9994 save_libdir=$libdir
9995 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9996 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9997 if test x$gcc_no_link = xyes; then
9998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10004 main ()
10008 return 0;
10010 _ACEOF
10011 if ac_fn_c_try_link "$LINENO"; then :
10012 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10013 lt_cv_shlibpath_overrides_runpath=yes
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LDFLAGS=$save_LDFLAGS
10019 libdir=$save_libdir
10023 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10025 # This implies no fast_install, which is unacceptable.
10026 # Some rework will be needed to allow for fast_install
10027 # before this can be enabled.
10028 hardcode_into_libs=yes
10030 # Append ld.so.conf contents to the search path
10031 if test -f /etc/ld.so.conf; then
10032 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' ' '`
10033 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10036 # We used to test for /lib/ld.so.1 and disable shared libraries on
10037 # powerpc, because MkLinux only supported shared libraries with the
10038 # GNU dynamic linker. Since this was broken with cross compilers,
10039 # most powerpc-linux boxes support dynamic linking these days and
10040 # people can always --disable-shared, the test was removed, and we
10041 # assume the GNU/Linux dynamic linker is in use.
10042 dynamic_linker='GNU/Linux ld.so'
10045 netbsd*)
10046 version_type=sunos
10047 need_lib_prefix=no
10048 need_version=no
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10052 dynamic_linker='NetBSD (a.out) ld.so'
10053 else
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 dynamic_linker='NetBSD ld.elf_so'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10063 newsos6)
10064 version_type=linux
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 shlibpath_overrides_runpath=yes
10070 *nto* | *qnx*)
10071 version_type=qnx
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 dynamic_linker='ldqnx.so'
10082 openbsd*)
10083 version_type=sunos
10084 sys_lib_dlsearch_path_spec="/usr/lib"
10085 need_lib_prefix=no
10086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10087 case $host_os in
10088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10089 *) need_version=no ;;
10090 esac
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10095 case $host_os in
10096 openbsd2.[89] | openbsd2.[89].*)
10097 shlibpath_overrides_runpath=no
10100 shlibpath_overrides_runpath=yes
10102 esac
10103 else
10104 shlibpath_overrides_runpath=yes
10108 os2*)
10109 libname_spec='$name'
10110 shrext_cmds=".dll"
10111 need_lib_prefix=no
10112 library_names_spec='$libname${shared_ext} $libname.a'
10113 dynamic_linker='OS/2 ld.exe'
10114 shlibpath_var=LIBPATH
10117 osf3* | osf4* | osf5*)
10118 version_type=osf
10119 need_lib_prefix=no
10120 need_version=no
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10128 rdos*)
10129 dynamic_linker=no
10132 solaris*)
10133 version_type=linux
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 # ldd complains unless libraries are executable
10142 postinstall_cmds='chmod +x $lib'
10145 sunos4*)
10146 version_type=sunos
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
10151 if test "$with_gnu_ld" = yes; then
10152 need_lib_prefix=no
10154 need_version=yes
10157 sysv4 | sysv4.3*)
10158 version_type=linux
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 case $host_vendor in
10163 sni)
10164 shlibpath_overrides_runpath=no
10165 need_lib_prefix=no
10166 runpath_var=LD_RUN_PATH
10168 siemens)
10169 need_lib_prefix=no
10171 motorola)
10172 need_lib_prefix=no
10173 need_version=no
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10177 esac
10180 sysv4*MP*)
10181 if test -d /usr/nec ;then
10182 version_type=linux
10183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10184 soname_spec='$libname${shared_ext}.$major'
10185 shlibpath_var=LD_LIBRARY_PATH
10189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10190 version_type=freebsd-elf
10191 need_lib_prefix=no
10192 need_version=no
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10197 hardcode_into_libs=yes
10198 if test "$with_gnu_ld" = yes; then
10199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10200 else
10201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10202 case $host_os in
10203 sco3.2v5*)
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10206 esac
10208 sys_lib_dlsearch_path_spec='/usr/lib'
10211 tpf*)
10212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10213 version_type=linux
10214 need_lib_prefix=no
10215 need_version=no
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=no
10219 hardcode_into_libs=yes
10222 uts4*)
10223 version_type=linux
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10230 dynamic_linker=no
10232 esac
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10234 $as_echo "$dynamic_linker" >&6; }
10235 test "$dynamic_linker" = no && can_build_shared=no
10237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10238 if test "$GCC" = yes; then
10239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10242 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10243 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10245 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10246 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10341 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10342 hardcode_action=
10343 if test -n "$hardcode_libdir_flag_spec" ||
10344 test -n "$runpath_var" ||
10345 test "X$hardcode_automatic" = "Xyes" ; then
10347 # We can hardcode non-existent directories.
10348 if test "$hardcode_direct" != no &&
10349 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10350 # have to relink, otherwise we might link with an installed library
10351 # when we should be linking with a yet-to-be-installed one
10352 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10353 test "$hardcode_minus_L" != no; then
10354 # Linking always hardcodes the temporary library directory.
10355 hardcode_action=relink
10356 else
10357 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10358 hardcode_action=immediate
10360 else
10361 # We cannot hardcode anything, or else we can only hardcode existing
10362 # directories.
10363 hardcode_action=unsupported
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10366 $as_echo "$hardcode_action" >&6; }
10368 if test "$hardcode_action" = relink ||
10369 test "$inherit_rpath" = yes; then
10370 # Fast installation is not supported
10371 enable_fast_install=no
10372 elif test "$shlibpath_overrides_runpath" = yes ||
10373 test "$enable_shared" = no; then
10374 # Fast installation is not necessary
10375 enable_fast_install=needless
10383 if test "x$enable_dlopen" != xyes; then
10384 enable_dlopen=unknown
10385 enable_dlopen_self=unknown
10386 enable_dlopen_self_static=unknown
10387 else
10388 lt_cv_dlopen=no
10389 lt_cv_dlopen_libs=
10391 case $host_os in
10392 beos*)
10393 lt_cv_dlopen="load_add_on"
10394 lt_cv_dlopen_libs=
10395 lt_cv_dlopen_self=yes
10398 mingw* | pw32* | cegcc*)
10399 lt_cv_dlopen="LoadLibrary"
10400 lt_cv_dlopen_libs=
10403 cygwin*)
10404 lt_cv_dlopen="dlopen"
10405 lt_cv_dlopen_libs=
10408 darwin*)
10409 # if libdl is installed we need to link against it
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10411 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-ldl $LIBS"
10417 if test x$gcc_no_link = xyes; then
10418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char dlopen ();
10431 main ()
10433 return dlopen ();
10435 return 0;
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 ac_cv_lib_dl_dlopen=yes
10440 else
10441 ac_cv_lib_dl_dlopen=no
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10448 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10449 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10451 else
10453 lt_cv_dlopen="dyld"
10454 lt_cv_dlopen_libs=
10455 lt_cv_dlopen_self=yes
10462 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10463 if test "x$ac_cv_func_shl_load" = x""yes; then :
10464 lt_cv_dlopen="shl_load"
10465 else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10467 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10468 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 ac_check_lib_save_LIBS=$LIBS
10472 LIBS="-ldld $LIBS"
10473 if test x$gcc_no_link = xyes; then
10474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10479 /* Override any GCC internal prototype to avoid an error.
10480 Use char because int might match the return type of a GCC
10481 builtin and then its argument prototype would still apply. */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 char shl_load ();
10487 main ()
10489 return shl_load ();
10491 return 0;
10493 _ACEOF
10494 if ac_fn_c_try_link "$LINENO"; then :
10495 ac_cv_lib_dld_shl_load=yes
10496 else
10497 ac_cv_lib_dld_shl_load=no
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LIBS=$ac_check_lib_save_LIBS
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10504 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10505 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10506 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10507 else
10508 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10509 if test "x$ac_cv_func_dlopen" = x""yes; then :
10510 lt_cv_dlopen="dlopen"
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10513 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-ldl $LIBS"
10519 if test x$gcc_no_link = xyes; then
10520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10525 /* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 char dlopen ();
10533 main ()
10535 return dlopen ();
10537 return 0;
10539 _ACEOF
10540 if ac_fn_c_try_link "$LINENO"; then :
10541 ac_cv_lib_dl_dlopen=yes
10542 else
10543 ac_cv_lib_dl_dlopen=no
10545 rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547 LIBS=$ac_check_lib_save_LIBS
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10550 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10551 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10553 else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10555 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10556 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-lsvld $LIBS"
10561 if test x$gcc_no_link = xyes; then
10562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10567 /* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
10570 #ifdef __cplusplus
10571 extern "C"
10572 #endif
10573 char dlopen ();
10575 main ()
10577 return dlopen ();
10579 return 0;
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 ac_cv_lib_svld_dlopen=yes
10584 else
10585 ac_cv_lib_svld_dlopen=no
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LIBS=$ac_check_lib_save_LIBS
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10592 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10593 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10597 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10598 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 ac_check_lib_save_LIBS=$LIBS
10602 LIBS="-ldld $LIBS"
10603 if test x$gcc_no_link = xyes; then
10604 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char dld_link ();
10617 main ()
10619 return dld_link ();
10621 return 0;
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_dld_dld_link=yes
10626 else
10627 ac_cv_lib_dld_dld_link=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10634 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10635 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10636 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10655 esac
10657 if test "x$lt_cv_dlopen" != xno; then
10658 enable_dlopen=yes
10659 else
10660 enable_dlopen=no
10663 case $lt_cv_dlopen in
10664 dlopen)
10665 save_CPPFLAGS="$CPPFLAGS"
10666 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10668 save_LDFLAGS="$LDFLAGS"
10669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10671 save_LIBS="$LIBS"
10672 LIBS="$lt_cv_dlopen_libs $LIBS"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10675 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10676 if test "${lt_cv_dlopen_self+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 if test "$cross_compiling" = yes; then :
10680 lt_cv_dlopen_self=cross
10681 else
10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10683 lt_status=$lt_dlunknown
10684 cat > conftest.$ac_ext <<_LT_EOF
10685 #line 10685 "configure"
10686 #include "confdefs.h"
10688 #if HAVE_DLFCN_H
10689 #include <dlfcn.h>
10690 #endif
10692 #include <stdio.h>
10694 #ifdef RTLD_GLOBAL
10695 # define LT_DLGLOBAL RTLD_GLOBAL
10696 #else
10697 # ifdef DL_GLOBAL
10698 # define LT_DLGLOBAL DL_GLOBAL
10699 # else
10700 # define LT_DLGLOBAL 0
10701 # endif
10702 #endif
10704 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10705 find out it does not work in some platform. */
10706 #ifndef LT_DLLAZY_OR_NOW
10707 # ifdef RTLD_LAZY
10708 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10709 # else
10710 # ifdef DL_LAZY
10711 # define LT_DLLAZY_OR_NOW DL_LAZY
10712 # else
10713 # ifdef RTLD_NOW
10714 # define LT_DLLAZY_OR_NOW RTLD_NOW
10715 # else
10716 # ifdef DL_NOW
10717 # define LT_DLLAZY_OR_NOW DL_NOW
10718 # else
10719 # define LT_DLLAZY_OR_NOW 0
10720 # endif
10721 # endif
10722 # endif
10723 # endif
10724 #endif
10726 /* When -fvisbility=hidden is used, assume the code has been annotated
10727 correspondingly for the symbols needed. */
10728 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10729 void fnord () __attribute__((visibility("default")));
10730 #endif
10732 void fnord () { int i=42; }
10733 int main ()
10735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10736 int status = $lt_dlunknown;
10738 if (self)
10740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10741 else
10743 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10744 else puts (dlerror ());
10746 /* dlclose (self); */
10748 else
10749 puts (dlerror ());
10751 return status;
10753 _LT_EOF
10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10755 (eval $ac_link) 2>&5
10756 ac_status=$?
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10759 (./conftest; exit; ) >&5 2>/dev/null
10760 lt_status=$?
10761 case x$lt_status in
10762 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10763 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10764 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10765 esac
10766 else :
10767 # compilation failed
10768 lt_cv_dlopen_self=no
10771 rm -fr conftest*
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10776 $as_echo "$lt_cv_dlopen_self" >&6; }
10778 if test "x$lt_cv_dlopen_self" = xyes; then
10779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10781 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10782 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10784 else
10785 if test "$cross_compiling" = yes; then :
10786 lt_cv_dlopen_self_static=cross
10787 else
10788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10789 lt_status=$lt_dlunknown
10790 cat > conftest.$ac_ext <<_LT_EOF
10791 #line 10791 "configure"
10792 #include "confdefs.h"
10794 #if HAVE_DLFCN_H
10795 #include <dlfcn.h>
10796 #endif
10798 #include <stdio.h>
10800 #ifdef RTLD_GLOBAL
10801 # define LT_DLGLOBAL RTLD_GLOBAL
10802 #else
10803 # ifdef DL_GLOBAL
10804 # define LT_DLGLOBAL DL_GLOBAL
10805 # else
10806 # define LT_DLGLOBAL 0
10807 # endif
10808 #endif
10810 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10811 find out it does not work in some platform. */
10812 #ifndef LT_DLLAZY_OR_NOW
10813 # ifdef RTLD_LAZY
10814 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10815 # else
10816 # ifdef DL_LAZY
10817 # define LT_DLLAZY_OR_NOW DL_LAZY
10818 # else
10819 # ifdef RTLD_NOW
10820 # define LT_DLLAZY_OR_NOW RTLD_NOW
10821 # else
10822 # ifdef DL_NOW
10823 # define LT_DLLAZY_OR_NOW DL_NOW
10824 # else
10825 # define LT_DLLAZY_OR_NOW 0
10826 # endif
10827 # endif
10828 # endif
10829 # endif
10830 #endif
10832 /* When -fvisbility=hidden is used, assume the code has been annotated
10833 correspondingly for the symbols needed. */
10834 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10835 void fnord () __attribute__((visibility("default")));
10836 #endif
10838 void fnord () { int i=42; }
10839 int main ()
10841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10842 int status = $lt_dlunknown;
10844 if (self)
10846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10847 else
10849 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10850 else puts (dlerror ());
10852 /* dlclose (self); */
10854 else
10855 puts (dlerror ());
10857 return status;
10859 _LT_EOF
10860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10861 (eval $ac_link) 2>&5
10862 ac_status=$?
10863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10865 (./conftest; exit; ) >&5 2>/dev/null
10866 lt_status=$?
10867 case x$lt_status in
10868 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10869 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10870 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10871 esac
10872 else :
10873 # compilation failed
10874 lt_cv_dlopen_self_static=no
10877 rm -fr conftest*
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10882 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10885 CPPFLAGS="$save_CPPFLAGS"
10886 LDFLAGS="$save_LDFLAGS"
10887 LIBS="$save_LIBS"
10889 esac
10891 case $lt_cv_dlopen_self in
10892 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10893 *) enable_dlopen_self=unknown ;;
10894 esac
10896 case $lt_cv_dlopen_self_static in
10897 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10898 *) enable_dlopen_self_static=unknown ;;
10899 esac
10918 striplib=
10919 old_striplib=
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10921 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10922 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10923 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10924 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926 $as_echo "yes" >&6; }
10927 else
10928 # FIXME - insert some real tests, host_os isn't really good enough
10929 case $host_os in
10930 darwin*)
10931 if test -n "$STRIP" ; then
10932 striplib="$STRIP -x"
10933 old_striplib="$STRIP -S"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10935 $as_echo "yes" >&6; }
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938 $as_echo "no" >&6; }
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10945 esac
10959 # Report which library types will actually be built
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10961 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10963 $as_echo "$can_build_shared" >&6; }
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10966 $as_echo_n "checking whether to build shared libraries... " >&6; }
10967 test "$can_build_shared" = "no" && enable_shared=no
10969 # On AIX, shared libraries and static libraries use the same namespace, and
10970 # are all built from PIC.
10971 case $host_os in
10972 aix3*)
10973 test "$enable_shared" = yes && enable_static=no
10974 if test -n "$RANLIB"; then
10975 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10976 postinstall_cmds='$RANLIB $lib'
10980 aix[4-9]*)
10981 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10982 test "$enable_shared" = yes && enable_static=no
10985 esac
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10987 $as_echo "$enable_shared" >&6; }
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10990 $as_echo_n "checking whether to build static libraries... " >&6; }
10991 # Make sure either enable_shared or enable_static is yes.
10992 test "$enable_shared" = yes || enable_static=yes
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10994 $as_echo "$enable_static" >&6; }
11000 ac_ext=c
11001 ac_cpp='$CPP $CPPFLAGS'
11002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006 CC="$lt_save_CC"
11020 ac_config_commands="$ac_config_commands libtool"
11025 # Only expand once:
11029 if test "x$CC" != xcc; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11031 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11034 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11036 set dummy $CC; ac_cc=`$as_echo "$2" |
11037 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11038 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11045 main ()
11049 return 0;
11051 _ACEOF
11052 # Make sure it works both with $CC and with simple cc.
11053 # We do the test twice because some compilers refuse to overwrite an
11054 # existing .o file with -o, though they will create one.
11055 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11056 rm -f conftest2.*
11057 if { { case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060 esac
11061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11062 $as_echo "$ac_try_echo"; } >&5
11063 (eval "$ac_try") 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; } &&
11067 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070 esac
11071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11072 $as_echo "$ac_try_echo"; } >&5
11073 (eval "$ac_try") 2>&5
11074 ac_status=$?
11075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11076 test $ac_status = 0; };
11077 then
11078 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11079 if test "x$CC" != xcc; then
11080 # Test first that cc exists at all.
11081 if { ac_try='cc -c conftest.$ac_ext >&5'
11082 { { case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085 esac
11086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11087 $as_echo "$ac_try_echo"; } >&5
11088 (eval "$ac_try") 2>&5
11089 ac_status=$?
11090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11091 test $ac_status = 0; }; }; then
11092 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11093 rm -f conftest2.*
11094 if { { case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097 esac
11098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11099 $as_echo "$ac_try_echo"; } >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11103 test $ac_status = 0; } &&
11104 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107 esac
11108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11109 $as_echo "$ac_try_echo"; } >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113 test $ac_status = 0; };
11114 then
11115 # cc works too.
11117 else
11118 # cc exists but doesn't like -o.
11119 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11123 else
11124 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11126 rm -f core conftest*
11129 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131 $as_echo "yes" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11136 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11140 # expand $ac_aux_dir to an absolute path
11141 am_aux_dir=`cd $ac_aux_dir && pwd`
11143 # FIXME: we rely on the cache variable name because
11144 # there is no other way.
11145 set dummy $CC
11146 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11147 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11148 if test "$am_t" != yes; then
11149 # Losing compiler, so override with the script.
11150 # FIXME: It is wrong to rewrite CC.
11151 # But if we don't then we get into trouble of one sort or another.
11152 # A longer-term fix would be to have automake use am__CC in this case,
11153 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11154 CC="$am_aux_dir/compile $CC"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11160 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11161 set x ${MAKE-make}
11162 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11163 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 cat >conftest.make <<\_ACEOF
11167 SHELL = /bin/sh
11168 all:
11169 @echo '@@@%%%=$(MAKE)=@@@%%%'
11170 _ACEOF
11171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11172 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11173 *@@@%%%=?*=@@@%%%*)
11174 eval ac_cv_prog_make_${ac_make}_set=yes;;
11176 eval ac_cv_prog_make_${ac_make}_set=no;;
11177 esac
11178 rm -f conftest.make
11180 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11182 $as_echo "yes" >&6; }
11183 SET_MAKE=
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11187 SET_MAKE="MAKE=${MAKE-make}"
11191 # -------
11192 # Headers
11193 # -------
11195 # Sanity check for the cross-compilation case:
11196 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11197 if test "x$ac_cv_header_stdio_h" = x""yes; then :
11199 else
11200 as_fn_error "Can't find stdio.h.
11201 You must have a usable C system for the target already installed, at least
11202 including headers and, preferably, the library, before you can configure
11203 the Objective C runtime system. If necessary, install gcc now with
11204 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11210 $as_echo_n "checking for ANSI C header files... " >&6; }
11211 if test "${ac_cv_header_stdc+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216 #include <stdlib.h>
11217 #include <stdarg.h>
11218 #include <string.h>
11219 #include <float.h>
11222 main ()
11226 return 0;
11228 _ACEOF
11229 if ac_fn_c_try_compile "$LINENO"; then :
11230 ac_cv_header_stdc=yes
11231 else
11232 ac_cv_header_stdc=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 if test $ac_cv_header_stdc = yes; then
11237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240 #include <string.h>
11242 _ACEOF
11243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11244 $EGREP "memchr" >/dev/null 2>&1; then :
11246 else
11247 ac_cv_header_stdc=no
11249 rm -f conftest*
11253 if test $ac_cv_header_stdc = yes; then
11254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11257 #include <stdlib.h>
11259 _ACEOF
11260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11261 $EGREP "free" >/dev/null 2>&1; then :
11263 else
11264 ac_cv_header_stdc=no
11266 rm -f conftest*
11270 if test $ac_cv_header_stdc = yes; then
11271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11272 if test "$cross_compiling" = yes; then :
11274 else
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277 #include <ctype.h>
11278 #include <stdlib.h>
11279 #if ((' ' & 0x0FF) == 0x020)
11280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11282 #else
11283 # define ISLOWER(c) \
11284 (('a' <= (c) && (c) <= 'i') \
11285 || ('j' <= (c) && (c) <= 'r') \
11286 || ('s' <= (c) && (c) <= 'z'))
11287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11288 #endif
11290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11292 main ()
11294 int i;
11295 for (i = 0; i < 256; i++)
11296 if (XOR (islower (i), ISLOWER (i))
11297 || toupper (i) != TOUPPER (i))
11298 return 2;
11299 return 0;
11301 _ACEOF
11302 if ac_fn_c_try_run "$LINENO"; then :
11304 else
11305 ac_cv_header_stdc=no
11307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11308 conftest.$ac_objext conftest.beam conftest.$ac_ext
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11314 $as_echo "$ac_cv_header_stdc" >&6; }
11315 if test $ac_cv_header_stdc = yes; then
11317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11322 for ac_header in sched.h
11323 do :
11324 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11325 if test "x$ac_cv_header_sched_h" = x""yes; then :
11326 cat >>confdefs.h <<_ACEOF
11327 #define HAVE_SCHED_H 1
11328 _ACEOF
11332 done
11335 # -----------
11336 # Miscellanea
11337 # -----------
11339 # Check if we have thread-local storage
11342 # Check whether --enable-tls was given.
11343 if test "${enable_tls+set}" = set; then :
11344 enableval=$enable_tls;
11345 case "$enableval" in
11346 yes|no) ;;
11347 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11348 esac
11350 else
11351 enable_tls=yes
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11356 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11357 if test "${gcc_cv_have_tls+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11361 if test "$cross_compiling" = yes; then :
11362 if test x$gcc_no_link = xyes; then
11363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367 __thread int a; int b; int main() { return a = b; }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 chktls_save_LDFLAGS="$LDFLAGS"
11371 case $host in
11372 *-*-linux*)
11373 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11375 esac
11376 chktls_save_CFLAGS="$CFLAGS"
11377 CFLAGS="-fPIC $CFLAGS"
11378 if test x$gcc_no_link = xyes; then
11379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11383 int f() { return 0; }
11384 _ACEOF
11385 if ac_fn_c_try_link "$LINENO"; then :
11386 if test x$gcc_no_link = xyes; then
11387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391 __thread int a; int b; int f() { return a = b; }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 gcc_cv_have_tls=yes
11395 else
11396 gcc_cv_have_tls=no
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 else
11401 gcc_cv_have_tls=yes
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 CFLAGS="$chktls_save_CFLAGS"
11406 LDFLAGS="$chktls_save_LDFLAGS"
11407 else
11408 gcc_cv_have_tls=no
11410 rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11414 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 __thread int a; int b; int main() { return a = b; }
11418 _ACEOF
11419 if ac_fn_c_try_run "$LINENO"; then :
11420 chktls_save_LDFLAGS="$LDFLAGS"
11421 LDFLAGS="-static $LDFLAGS"
11422 if test x$gcc_no_link = xyes; then
11423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 int main() { return 0; }
11428 _ACEOF
11429 if ac_fn_c_try_link "$LINENO"; then :
11430 if test "$cross_compiling" = yes; then :
11431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11433 as_fn_error "cannot run test program while cross compiling
11434 See \`config.log' for more details." "$LINENO" 5; }
11435 else
11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438 __thread int a; int b; int main() { return a = b; }
11439 _ACEOF
11440 if ac_fn_c_try_run "$LINENO"; then :
11441 gcc_cv_have_tls=yes
11442 else
11443 gcc_cv_have_tls=no
11445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11446 conftest.$ac_objext conftest.beam conftest.$ac_ext
11449 else
11450 gcc_cv_have_tls=yes
11452 rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LDFLAGS="$chktls_save_LDFLAGS"
11455 if test $gcc_cv_have_tls = yes; then
11456 chktls_save_CFLAGS="$CFLAGS"
11457 thread_CFLAGS=failed
11458 for flag in '' '-pthread' '-lpthread'; do
11459 CFLAGS="$flag $chktls_save_CFLAGS"
11460 if test x$gcc_no_link = xyes; then
11461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465 #include <pthread.h>
11466 void *g(void *d) { return NULL; }
11468 main ()
11470 pthread_t t; pthread_create(&t,NULL,g,NULL);
11472 return 0;
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 thread_CFLAGS="$flag"
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 if test "X$thread_CFLAGS" != Xfailed; then
11481 break
11483 done
11484 CFLAGS="$chktls_save_CFLAGS"
11485 if test "X$thread_CFLAGS" != Xfailed; then
11486 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11487 if test "$cross_compiling" = yes; then :
11488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11490 as_fn_error "cannot run test program while cross compiling
11491 See \`config.log' for more details." "$LINENO" 5; }
11492 else
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495 #include <pthread.h>
11496 __thread int a;
11497 static int *volatile a_in_other_thread;
11498 static void *
11499 thread_func (void *arg)
11501 a_in_other_thread = &a;
11502 return (void *)0;
11505 main ()
11507 pthread_t thread;
11508 void *thread_retval;
11509 int *volatile a_in_main_thread;
11510 a_in_main_thread = &a;
11511 if (pthread_create (&thread, (pthread_attr_t *)0,
11512 thread_func, (void *)0))
11513 return 0;
11514 if (pthread_join (thread, &thread_retval))
11515 return 0;
11516 return (a_in_other_thread == a_in_main_thread);
11518 return 0;
11520 _ACEOF
11521 if ac_fn_c_try_run "$LINENO"; then :
11522 gcc_cv_have_tls=yes
11523 else
11524 gcc_cv_have_tls=no
11526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11527 conftest.$ac_objext conftest.beam conftest.$ac_ext
11530 CFLAGS="$chktls_save_CFLAGS"
11533 else
11534 gcc_cv_have_tls=no
11536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11537 conftest.$ac_objext conftest.beam conftest.$ac_ext
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11542 $as_echo "$gcc_cv_have_tls" >&6; }
11543 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11545 $as_echo "#define HAVE_TLS 1" >>confdefs.h
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
11551 $as_echo_n "checking if the type of bitfields matters... " >&6; }
11552 if test "${gt_cv_bitfield_type_matters+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 struct foo1 { char x; char y:1; char z; };
11559 struct foo2 { char x; long long int y:1; char z; };
11560 int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
11562 main ()
11566 return 0;
11568 _ACEOF
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570 gt_cv_bitfield_type_matters=yes
11571 else
11572 gt_cv_bitfield_type_matters=no
11574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
11578 $as_echo "$gt_cv_bitfield_type_matters" >&6; }
11579 if test $gt_cv_bitfield_type_matters = yes; then
11581 $as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
11586 # -----------
11587 # boehm-gc
11588 # -----------
11590 # Check whether --enable-objc-gc was given.
11591 if test "${enable_objc_gc+set}" = set; then :
11592 enableval=$enable_objc_gc;
11593 else
11594 enable_objc_gc=no
11598 # Check whether --with-target-bdw-gc was given.
11599 if test "${with_target_bdw_gc+set}" = set; then :
11600 withval=$with_target_bdw_gc;
11604 # Check whether --with-target-bdw-gc-include was given.
11605 if test "${with_target_bdw_gc_include+set}" = set; then :
11606 withval=$with_target_bdw_gc_include;
11610 # Check whether --with-target-bdw-gc-lib was given.
11611 if test "${with_target_bdw_gc_lib+set}" = set; then :
11612 withval=$with_target_bdw_gc_lib;
11616 case "$enable_objc_gc" in
11618 use_bdw_gc=no
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
11622 $as_echo_n "checking for bdw garbage collector... " >&6; }
11623 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
11624 BDW_GC_CFLAGS=
11625 BDW_GC_LIBS="-lgc"
11626 else
11627 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
11628 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
11629 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
11630 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
11633 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
11635 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null`
11636 bdw_val=
11637 if test "x$with_target_bdw_gc" != x; then
11638 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do
11639 case "$i" in
11640 *=*) sd=${i%%=*}; d=${i#*=} ;;
11641 *) sd=.; d=$i ;;
11642 esac
11643 if test "$mldir" = "$sd"; then
11644 bdw_val=$d
11646 done
11647 if test "x$bdw_val" = x; then
11648 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5
11650 bdw_inc_dir="$bdw_val/include"
11651 bdw_lib_dir="$bdw_val/lib"
11653 bdw_val=
11654 if test "x$with_target_bdw_gc_include" != x; then
11655 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do
11656 case "$i" in
11657 *=*) sd=${i%%=*}; d=${i#*=} ;;
11658 *) sd=.; d=$i; fallback=$i ;;
11659 esac
11660 if test "$mldir" = "$sd"; then
11661 bdw_val=$d
11663 done
11664 if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then
11665 bdw_inc_dir="$fallback"
11666 elif test "x$bdw_val" = x; then
11667 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11668 else
11669 bdw_inc_dir="$bdw_val"
11672 bdw_val=
11673 if test "x$with_target_bdw_gc_lib" != x; then
11674 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do
11675 case "$i" in
11676 *=*) sd=${i%%=*}; d=${i#*=} ;;
11677 *) sd=.; d=$i ;;
11678 esac
11679 if test "$mldir" = "$sd"; then
11680 bdw_val=$d
11682 done
11683 if test "x$bdw_val" = x; then
11684 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11686 bdw_lib_dir="$bdw_val"
11688 if test "x$bdw_inc_dir" = x; then
11689 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11691 if test "x$bdw_lib_dir" = x; then
11692 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11694 BDW_GC_CFLAGS="-I$bdw_inc_dir"
11695 if test -f $bdw_lib_dir/libgc.la; then
11696 BDW_GC_LIBS="$bdw_lib_dir/libgc.la"
11697 else
11698 BDW_GC_LIBS="-L$bdw_lib_dir -lgc"
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11701 $as_echo "found" >&6; }
11704 case "$BDW_GC_LIBS" in
11705 *libgc.la)
11706 use_bdw_gc=yes
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5
11710 $as_echo_n "checking for system boehm-gc... " >&6; }
11711 save_CFLAGS=$CFLAGS
11712 save_LIBS=$LIBS
11713 CFLAGS="$CFLAGS $BDW_GC_CFLAGS"
11714 LIBS="$LIBS $BDW_GC_LIBS"
11715 if test x$gcc_no_link = xyes; then
11716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720 #include <gc/gc.h>
11722 main ()
11724 GC_init()
11726 return 0;
11728 _ACEOF
11729 if ac_fn_c_try_link "$LINENO"; then :
11731 if test "$cross_compiling" = yes; then :
11732 system_bdw_gc_found=no
11734 else
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 #include <gc/gc.h>
11739 int main() {
11740 GC_init();
11741 return 0;
11744 _ACEOF
11745 if ac_fn_c_try_run "$LINENO"; then :
11746 system_bdw_gc_found=yes
11747 else
11748 system_bdw_gc_found=no
11750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11751 conftest.$ac_objext conftest.beam conftest.$ac_ext
11755 else
11756 system_bdw_gc_found=no
11758 rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 CFLAGS=$save_CFLAGS
11761 LIBS=$save_LIBS
11762 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5
11764 $as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;}
11765 use_bdw_gc=no
11766 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then
11767 as_fn_error "system bdw-gc required but not found" "$LINENO" 5
11768 else
11769 use_bdw_gc=yes
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11771 $as_echo "found" >&6; }
11773 esac
11774 esac
11776 if test "$use_bdw_gc" = no; then
11777 OBJC_GCFLAGS=''
11778 OBJC_BOEHM_GC=''
11779 OBJC_BOEHM_GC_INCLUDES=''
11780 OBJC_BOEHM_GC_LIBS=''
11781 else
11782 OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
11783 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
11784 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS
11785 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS
11792 # Determine what GCC version number to use in filesystem paths.
11794 get_gcc_base_ver="cat"
11796 # Check whether --with-gcc-major-version-only was given.
11797 if test "${with_gcc_major_version_only+set}" = set; then :
11798 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11799 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11807 # ------
11808 # Output
11809 # ------
11811 if test ${multilib} = yes; then
11812 multilib_arg="--enable-multilib"
11813 else
11814 multilib_arg=
11817 ac_config_files="$ac_config_files Makefile"
11819 cat >confcache <<\_ACEOF
11820 # This file is a shell script that caches the results of configure
11821 # tests run on this system so they can be shared between configure
11822 # scripts and configure runs, see configure's option --config-cache.
11823 # It is not useful on other systems. If it contains results you don't
11824 # want to keep, you may remove or edit it.
11826 # config.status only pays attention to the cache file if you give it
11827 # the --recheck option to rerun configure.
11829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11831 # following values.
11833 _ACEOF
11835 # The following way of writing the cache mishandles newlines in values,
11836 # but we know of no workaround that is simple, portable, and efficient.
11837 # So, we kill variables containing newlines.
11838 # Ultrix sh set writes to stderr and can't be redirected directly,
11839 # and sets the high bit in the cache file unless we assign to the vars.
11841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11842 eval ac_val=\$$ac_var
11843 case $ac_val in #(
11844 *${as_nl}*)
11845 case $ac_var in #(
11846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11848 esac
11849 case $ac_var in #(
11850 _ | IFS | as_nl) ;; #(
11851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11852 *) { eval $ac_var=; unset $ac_var;} ;;
11853 esac ;;
11854 esac
11855 done
11857 (set) 2>&1 |
11858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11859 *${as_nl}ac_space=\ *)
11860 # `set' does not quote correctly, so add quotes: double-quote
11861 # substitution turns \\\\ into \\, and sed turns \\ into \.
11862 sed -n \
11863 "s/'/'\\\\''/g;
11864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11865 ;; #(
11867 # `set' quotes correctly as required by POSIX, so do not add quotes.
11868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11870 esac |
11871 sort
11873 sed '
11874 /^ac_cv_env_/b end
11875 t clear
11876 :clear
11877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11878 t end
11879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11880 :end' >>confcache
11881 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11882 if test -w "$cache_file"; then
11883 test "x$cache_file" != "x/dev/null" &&
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11885 $as_echo "$as_me: updating cache $cache_file" >&6;}
11886 cat confcache >$cache_file
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11889 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11892 rm -f confcache
11894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11895 # Let make expand exec_prefix.
11896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11898 DEFS=-DHAVE_CONFIG_H
11900 ac_libobjs=
11901 ac_ltlibobjs=
11902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11903 # 1. Remove the extension, and $U if already installed.
11904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11907 # will be set to the directory where LIBOBJS objects are built.
11908 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11909 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11910 done
11911 LIBOBJS=$ac_libobjs
11913 LTLIBOBJS=$ac_ltlibobjs
11916 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11917 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11921 : ${CONFIG_STATUS=./config.status}
11922 ac_write_fail=0
11923 ac_clean_files_save=$ac_clean_files
11924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11927 as_write_fail=0
11928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11929 #! $SHELL
11930 # Generated by $as_me.
11931 # Run this file to recreate the current configuration.
11932 # Compiler output produced by configure, useful for debugging
11933 # configure, is in config.log if it exists.
11935 debug=false
11936 ac_cs_recheck=false
11937 ac_cs_silent=false
11939 SHELL=\${CONFIG_SHELL-$SHELL}
11940 export SHELL
11941 _ASEOF
11942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11943 ## -------------------- ##
11944 ## M4sh Initialization. ##
11945 ## -------------------- ##
11947 # Be more Bourne compatible
11948 DUALCASE=1; export DUALCASE # for MKS sh
11949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11950 emulate sh
11951 NULLCMD=:
11952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11953 # is contrary to our usage. Disable this feature.
11954 alias -g '${1+"$@"}'='"$@"'
11955 setopt NO_GLOB_SUBST
11956 else
11957 case `(set -o) 2>/dev/null` in #(
11958 *posix*) :
11959 set -o posix ;; #(
11960 *) :
11962 esac
11966 as_nl='
11968 export as_nl
11969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11973 # Prefer a ksh shell builtin over an external printf program on Solaris,
11974 # but without wasting forks for bash or zsh.
11975 if test -z "$BASH_VERSION$ZSH_VERSION" \
11976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11977 as_echo='print -r --'
11978 as_echo_n='print -rn --'
11979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11980 as_echo='printf %s\n'
11981 as_echo_n='printf %s'
11982 else
11983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11985 as_echo_n='/usr/ucb/echo -n'
11986 else
11987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11988 as_echo_n_body='eval
11989 arg=$1;
11990 case $arg in #(
11991 *"$as_nl"*)
11992 expr "X$arg" : "X\\(.*\\)$as_nl";
11993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11994 esac;
11995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11997 export as_echo_n_body
11998 as_echo_n='sh -c $as_echo_n_body as_echo'
12000 export as_echo_body
12001 as_echo='sh -c $as_echo_body as_echo'
12004 # The user is always right.
12005 if test "${PATH_SEPARATOR+set}" != set; then
12006 PATH_SEPARATOR=:
12007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12009 PATH_SEPARATOR=';'
12014 # IFS
12015 # We need space, tab and new line, in precisely that order. Quoting is
12016 # there to prevent editors from complaining about space-tab.
12017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12018 # splitting by setting IFS to empty value.)
12019 IFS=" "" $as_nl"
12021 # Find who we are. Look in the path if we contain no directory separator.
12022 case $0 in #((
12023 *[\\/]* ) as_myself=$0 ;;
12024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12030 done
12031 IFS=$as_save_IFS
12034 esac
12035 # We did not find ourselves, most probably we were run as `sh COMMAND'
12036 # in which case we are not to be found in the path.
12037 if test "x$as_myself" = x; then
12038 as_myself=$0
12040 if test ! -f "$as_myself"; then
12041 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12042 exit 1
12045 # Unset variables that we do not need and which cause bugs (e.g. in
12046 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12047 # suppresses any "Segmentation fault" message there. '((' could
12048 # trigger a bug in pdksh 5.2.14.
12049 for as_var in BASH_ENV ENV MAIL MAILPATH
12050 do eval test x\${$as_var+set} = xset \
12051 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12052 done
12053 PS1='$ '
12054 PS2='> '
12055 PS4='+ '
12057 # NLS nuisances.
12058 LC_ALL=C
12059 export LC_ALL
12060 LANGUAGE=C
12061 export LANGUAGE
12063 # CDPATH.
12064 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12067 # as_fn_error ERROR [LINENO LOG_FD]
12068 # ---------------------------------
12069 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12070 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12071 # script with status $?, using 1 if that was 0.
12072 as_fn_error ()
12074 as_status=$?; test $as_status -eq 0 && as_status=1
12075 if test "$3"; then
12076 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12077 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12079 $as_echo "$as_me: error: $1" >&2
12080 as_fn_exit $as_status
12081 } # as_fn_error
12084 # as_fn_set_status STATUS
12085 # -----------------------
12086 # Set $? to STATUS, without forking.
12087 as_fn_set_status ()
12089 return $1
12090 } # as_fn_set_status
12092 # as_fn_exit STATUS
12093 # -----------------
12094 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12095 as_fn_exit ()
12097 set +e
12098 as_fn_set_status $1
12099 exit $1
12100 } # as_fn_exit
12102 # as_fn_unset VAR
12103 # ---------------
12104 # Portably unset VAR.
12105 as_fn_unset ()
12107 { eval $1=; unset $1;}
12109 as_unset=as_fn_unset
12110 # as_fn_append VAR VALUE
12111 # ----------------------
12112 # Append the text in VALUE to the end of the definition contained in VAR. Take
12113 # advantage of any shell optimizations that allow amortized linear growth over
12114 # repeated appends, instead of the typical quadratic growth present in naive
12115 # implementations.
12116 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12117 eval 'as_fn_append ()
12119 eval $1+=\$2
12121 else
12122 as_fn_append ()
12124 eval $1=\$$1\$2
12126 fi # as_fn_append
12128 # as_fn_arith ARG...
12129 # ------------------
12130 # Perform arithmetic evaluation on the ARGs, and store the result in the
12131 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12132 # must be portable across $(()) and expr.
12133 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12134 eval 'as_fn_arith ()
12136 as_val=$(( $* ))
12138 else
12139 as_fn_arith ()
12141 as_val=`expr "$@" || test $? -eq 1`
12143 fi # as_fn_arith
12146 if expr a : '\(a\)' >/dev/null 2>&1 &&
12147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12148 as_expr=expr
12149 else
12150 as_expr=false
12153 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12154 as_basename=basename
12155 else
12156 as_basename=false
12159 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12160 as_dirname=dirname
12161 else
12162 as_dirname=false
12165 as_me=`$as_basename -- "$0" ||
12166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12167 X"$0" : 'X\(//\)$' \| \
12168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12169 $as_echo X/"$0" |
12170 sed '/^.*\/\([^/][^/]*\)\/*$/{
12171 s//\1/
12174 /^X\/\(\/\/\)$/{
12175 s//\1/
12178 /^X\/\(\/\).*/{
12179 s//\1/
12182 s/.*/./; q'`
12184 # Avoid depending upon Character Ranges.
12185 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12186 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12187 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12188 as_cr_digits='0123456789'
12189 as_cr_alnum=$as_cr_Letters$as_cr_digits
12191 ECHO_C= ECHO_N= ECHO_T=
12192 case `echo -n x` in #(((((
12193 -n*)
12194 case `echo 'xy\c'` in
12195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12196 xy) ECHO_C='\c';;
12197 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12198 ECHO_T=' ';;
12199 esac;;
12201 ECHO_N='-n';;
12202 esac
12204 rm -f conf$$ conf$$.exe conf$$.file
12205 if test -d conf$$.dir; then
12206 rm -f conf$$.dir/conf$$.file
12207 else
12208 rm -f conf$$.dir
12209 mkdir conf$$.dir 2>/dev/null
12211 if (echo >conf$$.file) 2>/dev/null; then
12212 if ln -s conf$$.file conf$$ 2>/dev/null; then
12213 as_ln_s='ln -s'
12214 # ... but there are two gotchas:
12215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12217 # In both cases, we have to default to `cp -p'.
12218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12219 as_ln_s='cp -p'
12220 elif ln conf$$.file conf$$ 2>/dev/null; then
12221 as_ln_s=ln
12222 else
12223 as_ln_s='cp -p'
12225 else
12226 as_ln_s='cp -p'
12228 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12229 rmdir conf$$.dir 2>/dev/null
12232 # as_fn_mkdir_p
12233 # -------------
12234 # Create "$as_dir" as a directory, including parents if necessary.
12235 as_fn_mkdir_p ()
12238 case $as_dir in #(
12239 -*) as_dir=./$as_dir;;
12240 esac
12241 test -d "$as_dir" || eval $as_mkdir_p || {
12242 as_dirs=
12243 while :; do
12244 case $as_dir in #(
12245 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12246 *) as_qdir=$as_dir;;
12247 esac
12248 as_dirs="'$as_qdir' $as_dirs"
12249 as_dir=`$as_dirname -- "$as_dir" ||
12250 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12251 X"$as_dir" : 'X\(//\)[^/]' \| \
12252 X"$as_dir" : 'X\(//\)$' \| \
12253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12254 $as_echo X"$as_dir" |
12255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12256 s//\1/
12259 /^X\(\/\/\)[^/].*/{
12260 s//\1/
12263 /^X\(\/\/\)$/{
12264 s//\1/
12267 /^X\(\/\).*/{
12268 s//\1/
12271 s/.*/./; q'`
12272 test -d "$as_dir" && break
12273 done
12274 test -z "$as_dirs" || eval "mkdir $as_dirs"
12275 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12278 } # as_fn_mkdir_p
12279 if mkdir -p . 2>/dev/null; then
12280 as_mkdir_p='mkdir -p "$as_dir"'
12281 else
12282 test -d ./-p && rmdir ./-p
12283 as_mkdir_p=false
12286 if test -x / >/dev/null 2>&1; then
12287 as_test_x='test -x'
12288 else
12289 if ls -dL / >/dev/null 2>&1; then
12290 as_ls_L_option=L
12291 else
12292 as_ls_L_option=
12294 as_test_x='
12295 eval sh -c '\''
12296 if test -d "$1"; then
12297 test -d "$1/.";
12298 else
12299 case $1 in #(
12300 -*)set "./$1";;
12301 esac;
12302 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12303 ???[sx]*):;;*)false;;esac;fi
12304 '\'' sh
12307 as_executable_p=$as_test_x
12309 # Sed expression to map a string onto a valid CPP name.
12310 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12312 # Sed expression to map a string onto a valid variable name.
12313 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12316 exec 6>&1
12317 ## ----------------------------------- ##
12318 ## Main body of $CONFIG_STATUS script. ##
12319 ## ----------------------------------- ##
12320 _ASEOF
12321 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12324 # Save the log message, to keep $0 and so on meaningful, and to
12325 # report actual input values of CONFIG_FILES etc. instead of their
12326 # values after options handling.
12327 ac_log="
12328 This file was extended by package-unused $as_me version-unused, which was
12329 generated by GNU Autoconf 2.64. Invocation command line was
12331 CONFIG_FILES = $CONFIG_FILES
12332 CONFIG_HEADERS = $CONFIG_HEADERS
12333 CONFIG_LINKS = $CONFIG_LINKS
12334 CONFIG_COMMANDS = $CONFIG_COMMANDS
12335 $ $0 $@
12337 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12340 _ACEOF
12342 case $ac_config_files in *"
12343 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12344 esac
12346 case $ac_config_headers in *"
12347 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12348 esac
12351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12352 # Files that config.status was made for.
12353 config_files="$ac_config_files"
12354 config_headers="$ac_config_headers"
12355 config_commands="$ac_config_commands"
12357 _ACEOF
12359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12360 ac_cs_usage="\
12361 \`$as_me' instantiates files and other configuration actions
12362 from templates according to the current configuration. Unless the files
12363 and actions are specified as TAGs, all are instantiated by default.
12365 Usage: $0 [OPTION]... [TAG]...
12367 -h, --help print this help, then exit
12368 -V, --version print version number and configuration settings, then exit
12369 -q, --quiet, --silent
12370 do not print progress messages
12371 -d, --debug don't remove temporary files
12372 --recheck update $as_me by reconfiguring in the same conditions
12373 --file=FILE[:TEMPLATE]
12374 instantiate the configuration file FILE
12375 --header=FILE[:TEMPLATE]
12376 instantiate the configuration header FILE
12378 Configuration files:
12379 $config_files
12381 Configuration headers:
12382 $config_headers
12384 Configuration commands:
12385 $config_commands
12387 Report bugs to the package provider."
12389 _ACEOF
12390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12391 ac_cs_version="\\
12392 package-unused config.status version-unused
12393 configured by $0, generated by GNU Autoconf 2.64,
12394 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12396 Copyright (C) 2009 Free Software Foundation, Inc.
12397 This config.status script is free software; the Free Software Foundation
12398 gives unlimited permission to copy, distribute and modify it."
12400 ac_pwd='$ac_pwd'
12401 srcdir='$srcdir'
12402 INSTALL='$INSTALL'
12403 AWK='$AWK'
12404 test -n "\$AWK" || AWK=awk
12405 _ACEOF
12407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408 # The default lists apply if the user does not specify any file.
12409 ac_need_defaults=:
12410 while test $# != 0
12412 case $1 in
12413 --*=*)
12414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12416 ac_shift=:
12419 ac_option=$1
12420 ac_optarg=$2
12421 ac_shift=shift
12423 esac
12425 case $ac_option in
12426 # Handling of the options.
12427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12428 ac_cs_recheck=: ;;
12429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12430 $as_echo "$ac_cs_version"; exit ;;
12431 --debug | --debu | --deb | --de | --d | -d )
12432 debug=: ;;
12433 --file | --fil | --fi | --f )
12434 $ac_shift
12435 case $ac_optarg in
12436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12437 esac
12438 as_fn_append CONFIG_FILES " '$ac_optarg'"
12439 ac_need_defaults=false;;
12440 --header | --heade | --head | --hea )
12441 $ac_shift
12442 case $ac_optarg in
12443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12444 esac
12445 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12446 ac_need_defaults=false;;
12447 --he | --h)
12448 # Conflict between --help and --header
12449 as_fn_error "ambiguous option: \`$1'
12450 Try \`$0 --help' for more information.";;
12451 --help | --hel | -h )
12452 $as_echo "$ac_cs_usage"; exit ;;
12453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12454 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12455 ac_cs_silent=: ;;
12457 # This is an error.
12458 -*) as_fn_error "unrecognized option: \`$1'
12459 Try \`$0 --help' for more information." ;;
12461 *) as_fn_append ac_config_targets " $1"
12462 ac_need_defaults=false ;;
12464 esac
12465 shift
12466 done
12468 ac_configure_extra_args=
12470 if $ac_cs_silent; then
12471 exec 6>/dev/null
12472 ac_configure_extra_args="$ac_configure_extra_args --silent"
12475 _ACEOF
12476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12477 if \$ac_cs_recheck; then
12478 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12479 shift
12480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12481 CONFIG_SHELL='$SHELL'
12482 export CONFIG_SHELL
12483 exec "\$@"
12486 _ACEOF
12487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12488 exec 5>>config.log
12490 echo
12491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12492 ## Running $as_me. ##
12493 _ASBOX
12494 $as_echo "$ac_log"
12495 } >&5
12497 _ACEOF
12498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12500 # INIT-COMMANDS
12503 srcdir="$srcdir"
12504 host="$host"
12505 target="$target"
12506 with_multisubdir="$with_multisubdir"
12507 with_multisrctop="$with_multisrctop"
12508 with_target_subdir="$with_target_subdir"
12509 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12510 multi_basedir="$multi_basedir"
12511 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12512 CC="$CC"
12513 CXX="$CXX"
12514 GFORTRAN="$GFORTRAN"
12517 # The HP-UX ksh and POSIX shell print the target directory to stdout
12518 # if CDPATH is set.
12519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12521 sed_quote_subst='$sed_quote_subst'
12522 double_quote_subst='$double_quote_subst'
12523 delay_variable_subst='$delay_variable_subst'
12524 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12525 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12526 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12527 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12528 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12529 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12530 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12531 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12532 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12533 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12534 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12535 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12536 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12537 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12538 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12539 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12540 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12541 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12542 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12543 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12544 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12545 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12546 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12547 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12548 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12549 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12550 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12551 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12552 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12553 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12554 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12555 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12556 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12557 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12558 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12559 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12560 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12561 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12562 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12563 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12564 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12565 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12566 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12567 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12568 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12569 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12570 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12571 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12572 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12573 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12574 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"`'
12575 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12576 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12577 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12578 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12579 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12580 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12581 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12582 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12583 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12584 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12585 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12586 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12587 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12588 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12589 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12590 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12591 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12592 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12593 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12594 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12595 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12596 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12597 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12598 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12599 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12600 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12601 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12602 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12603 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12604 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12605 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12606 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12607 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12608 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12609 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12610 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12611 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12612 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12613 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12614 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12615 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12616 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12617 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12618 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12619 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12620 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12621 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12622 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12623 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12624 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12625 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12626 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12627 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12628 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12629 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12630 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12631 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12632 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12633 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12634 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12635 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12636 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12637 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12638 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12639 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12640 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12641 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12642 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12643 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12644 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12645 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12647 LTCC='$LTCC'
12648 LTCFLAGS='$LTCFLAGS'
12649 compiler='$compiler_DEFAULT'
12651 # A function that is used when there is no print builtin or printf.
12652 func_fallback_echo ()
12654 eval 'cat <<_LTECHO_EOF
12656 _LTECHO_EOF'
12659 # Quote evaled strings.
12660 for var in AS \
12661 DLLTOOL \
12662 OBJDUMP \
12663 SHELL \
12664 ECHO \
12665 SED \
12666 GREP \
12667 EGREP \
12668 FGREP \
12669 LD \
12670 NM \
12671 LN_S \
12672 lt_SP2NL \
12673 lt_NL2SP \
12674 reload_flag \
12675 deplibs_check_method \
12676 file_magic_cmd \
12677 AR \
12678 AR_FLAGS \
12679 STRIP \
12680 RANLIB \
12681 CC \
12682 CFLAGS \
12683 compiler \
12684 lt_cv_sys_global_symbol_pipe \
12685 lt_cv_sys_global_symbol_to_cdecl \
12686 lt_cv_sys_global_symbol_to_c_name_address \
12687 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12688 lt_prog_compiler_no_builtin_flag \
12689 lt_prog_compiler_wl \
12690 lt_prog_compiler_pic \
12691 lt_prog_compiler_static \
12692 lt_cv_prog_compiler_c_o \
12693 need_locks \
12694 DSYMUTIL \
12695 NMEDIT \
12696 LIPO \
12697 OTOOL \
12698 OTOOL64 \
12699 shrext_cmds \
12700 export_dynamic_flag_spec \
12701 whole_archive_flag_spec \
12702 compiler_needs_object \
12703 with_gnu_ld \
12704 allow_undefined_flag \
12705 no_undefined_flag \
12706 hardcode_libdir_flag_spec \
12707 hardcode_libdir_flag_spec_ld \
12708 hardcode_libdir_separator \
12709 fix_srcfile_path \
12710 exclude_expsyms \
12711 include_expsyms \
12712 file_list_spec \
12713 variables_saved_for_relink \
12714 libname_spec \
12715 library_names_spec \
12716 soname_spec \
12717 install_override_mode \
12718 finish_eval \
12719 old_striplib \
12720 striplib; do
12721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12722 *[\\\\\\\`\\"\\\$]*)
12723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12728 esac
12729 done
12731 # Double-quote double-evaled strings.
12732 for var in reload_cmds \
12733 old_postinstall_cmds \
12734 old_postuninstall_cmds \
12735 old_archive_cmds \
12736 extract_expsyms_cmds \
12737 old_archive_from_new_cmds \
12738 old_archive_from_expsyms_cmds \
12739 archive_cmds \
12740 archive_expsym_cmds \
12741 module_cmds \
12742 module_expsym_cmds \
12743 export_symbols_cmds \
12744 prelink_cmds \
12745 postinstall_cmds \
12746 postuninstall_cmds \
12747 finish_cmds \
12748 sys_lib_search_path_spec \
12749 sys_lib_dlsearch_path_spec; do
12750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12751 *[\\\\\\\`\\"\\\$]*)
12752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12757 esac
12758 done
12760 ac_aux_dir='$ac_aux_dir'
12761 xsi_shell='$xsi_shell'
12762 lt_shell_append='$lt_shell_append'
12764 # See if we are running on zsh, and set the options which allow our
12765 # commands through without removal of \ escapes INIT.
12766 if test -n "\${ZSH_VERSION+set}" ; then
12767 setopt NO_GLOB_SUBST
12771 PACKAGE='$PACKAGE'
12772 VERSION='$VERSION'
12773 TIMESTAMP='$TIMESTAMP'
12774 RM='$RM'
12775 ofile='$ofile'
12780 _ACEOF
12782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784 # Handling of arguments.
12785 for ac_config_target in $ac_config_targets
12787 case $ac_config_target in
12788 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12789 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12790 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12791 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12793 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12794 esac
12795 done
12798 # If the user did not use the arguments to specify the items to instantiate,
12799 # then the envvar interface is used. Set only those that are not.
12800 # We use the long form for the default assignment because of an extremely
12801 # bizarre bug on SunOS 4.1.3.
12802 if $ac_need_defaults; then
12803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12808 # Have a temporary directory for convenience. Make it in the build tree
12809 # simply because there is no reason against having it here, and in addition,
12810 # creating and moving files from /tmp can sometimes cause problems.
12811 # Hook for its removal unless debugging.
12812 # Note that there is a small window in which the directory will not be cleaned:
12813 # after its creation but before its name has been assigned to `$tmp'.
12814 $debug ||
12816 tmp=
12817 trap 'exit_status=$?
12818 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12820 trap 'as_fn_exit 1' 1 2 13 15
12822 # Create a (secure) tmp directory for tmp files.
12825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12826 test -n "$tmp" && test -d "$tmp"
12827 } ||
12829 tmp=./conf$$-$RANDOM
12830 (umask 077 && mkdir "$tmp")
12831 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12833 # Set up the scripts for CONFIG_FILES section.
12834 # No need to generate them if there are no CONFIG_FILES.
12835 # This happens for instance with `./config.status config.h'.
12836 if test -n "$CONFIG_FILES"; then
12839 ac_cr=`echo X | tr X '\015'`
12840 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12841 # But we know of no other shell where ac_cr would be empty at this
12842 # point, so we can use a bashism as a fallback.
12843 if test "x$ac_cr" = x; then
12844 eval ac_cr=\$\'\\r\'
12846 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12847 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12848 ac_cs_awk_cr='\r'
12849 else
12850 ac_cs_awk_cr=$ac_cr
12853 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12854 _ACEOF
12858 echo "cat >conf$$subs.awk <<_ACEOF" &&
12859 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12860 echo "_ACEOF"
12861 } >conf$$subs.sh ||
12862 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12863 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12864 ac_delim='%!_!# '
12865 for ac_last_try in false false false false false :; do
12866 . ./conf$$subs.sh ||
12867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12869 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12870 if test $ac_delim_n = $ac_delim_num; then
12871 break
12872 elif $ac_last_try; then
12873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12874 else
12875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12877 done
12878 rm -f conf$$subs.sh
12880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12882 _ACEOF
12883 sed -n '
12885 s/^/S["/; s/!.*/"]=/
12888 s/^[^!]*!//
12889 :repl
12890 t repl
12891 s/'"$ac_delim"'$//
12892 t delim
12895 s/\(.\{148\}\).*/\1/
12896 t more1
12897 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12900 b repl
12901 :more1
12902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12905 s/.\{148\}//
12906 t nl
12907 :delim
12909 s/\(.\{148\}\).*/\1/
12910 t more2
12911 s/["\\]/\\&/g; s/^/"/; s/$/"/
12914 :more2
12915 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12918 s/.\{148\}//
12919 t delim
12920 ' <conf$$subs.awk | sed '
12921 /^[^""]/{
12923 s/\n//
12925 ' >>$CONFIG_STATUS || ac_write_fail=1
12926 rm -f conf$$subs.awk
12927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12928 _ACAWK
12929 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12930 for (key in S) S_is_set[key] = 1
12931 FS = "\a"
12935 line = $ 0
12936 nfields = split(line, field, "@")
12937 substed = 0
12938 len = length(field[1])
12939 for (i = 2; i < nfields; i++) {
12940 key = field[i]
12941 keylen = length(key)
12942 if (S_is_set[key]) {
12943 value = S[key]
12944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12945 len += length(value) + length(field[++i])
12946 substed = 1
12947 } else
12948 len += 1 + keylen
12951 print line
12954 _ACAWK
12955 _ACEOF
12956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12957 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12958 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12959 else
12961 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12962 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12963 _ACEOF
12965 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12966 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12967 # trailing colons and then remove the whole line if VPATH becomes empty
12968 # (actually we leave an empty line to preserve line numbers).
12969 if test "x$srcdir" = x.; then
12970 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12971 s/:*\$(srcdir):*/:/
12972 s/:*\${srcdir}:*/:/
12973 s/:*@srcdir@:*/:/
12974 s/^\([^=]*=[ ]*\):*/\1/
12975 s/:*$//
12976 s/^[^=]*=[ ]*$//
12980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12981 fi # test -n "$CONFIG_FILES"
12983 # Set up the scripts for CONFIG_HEADERS section.
12984 # No need to generate them if there are no CONFIG_HEADERS.
12985 # This happens for instance with `./config.status Makefile'.
12986 if test -n "$CONFIG_HEADERS"; then
12987 cat >"$tmp/defines.awk" <<\_ACAWK ||
12988 BEGIN {
12989 _ACEOF
12991 # Transform confdefs.h into an awk script `defines.awk', embedded as
12992 # here-document in config.status, that substitutes the proper values into
12993 # config.h.in to produce config.h.
12995 # Create a delimiter string that does not exist in confdefs.h, to ease
12996 # handling of long lines.
12997 ac_delim='%!_!# '
12998 for ac_last_try in false false :; do
12999 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13000 if test -z "$ac_t"; then
13001 break
13002 elif $ac_last_try; then
13003 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13004 else
13005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13007 done
13009 # For the awk script, D is an array of macro values keyed by name,
13010 # likewise P contains macro parameters if any. Preserve backslash
13011 # newline sequences.
13013 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13014 sed -n '
13015 s/.\{148\}/&'"$ac_delim"'/g
13016 t rset
13017 :rset
13018 s/^[ ]*#[ ]*define[ ][ ]*/ /
13019 t def
13021 :def
13022 s/\\$//
13023 t bsnl
13024 s/["\\]/\\&/g
13025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13026 D["\1"]=" \3"/p
13027 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13029 :bsnl
13030 s/["\\]/\\&/g
13031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13032 D["\1"]=" \3\\\\\\n"\\/p
13033 t cont
13034 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13035 t cont
13037 :cont
13039 s/.\{148\}/&'"$ac_delim"'/g
13040 t clear
13041 :clear
13042 s/\\$//
13043 t bsnlc
13044 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13046 :bsnlc
13047 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13048 b cont
13049 ' <confdefs.h | sed '
13050 s/'"$ac_delim"'/"\\\
13051 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13054 for (key in D) D_is_set[key] = 1
13055 FS = "\a"
13057 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13058 line = \$ 0
13059 split(line, arg, " ")
13060 if (arg[1] == "#") {
13061 defundef = arg[2]
13062 mac1 = arg[3]
13063 } else {
13064 defundef = substr(arg[1], 2)
13065 mac1 = arg[2]
13067 split(mac1, mac2, "(") #)
13068 macro = mac2[1]
13069 prefix = substr(line, 1, index(line, defundef) - 1)
13070 if (D_is_set[macro]) {
13071 # Preserve the white space surrounding the "#".
13072 print prefix "define", macro P[macro] D[macro]
13073 next
13074 } else {
13075 # Replace #undef with comments. This is necessary, for example,
13076 # in the case of _POSIX_SOURCE, which is predefined and required
13077 # on some systems where configure will not decide to define it.
13078 if (defundef == "undef") {
13079 print "/*", prefix defundef, macro, "*/"
13080 next
13084 { print }
13085 _ACAWK
13086 _ACEOF
13087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13089 fi # test -n "$CONFIG_HEADERS"
13092 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13093 shift
13094 for ac_tag
13096 case $ac_tag in
13097 :[FHLC]) ac_mode=$ac_tag; continue;;
13098 esac
13099 case $ac_mode$ac_tag in
13100 :[FHL]*:*);;
13101 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13102 :[FH]-) ac_tag=-:-;;
13103 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13104 esac
13105 ac_save_IFS=$IFS
13106 IFS=:
13107 set x $ac_tag
13108 IFS=$ac_save_IFS
13109 shift
13110 ac_file=$1
13111 shift
13113 case $ac_mode in
13114 :L) ac_source=$1;;
13115 :[FH])
13116 ac_file_inputs=
13117 for ac_f
13119 case $ac_f in
13120 -) ac_f="$tmp/stdin";;
13121 *) # Look for the file first in the build tree, then in the source tree
13122 # (if the path is not absolute). The absolute path cannot be DOS-style,
13123 # because $ac_f cannot contain `:'.
13124 test -f "$ac_f" ||
13125 case $ac_f in
13126 [\\/$]*) false;;
13127 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13128 esac ||
13129 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13130 esac
13131 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13132 as_fn_append ac_file_inputs " '$ac_f'"
13133 done
13135 # Let's still pretend it is `configure' which instantiates (i.e., don't
13136 # use $as_me), people would be surprised to read:
13137 # /* config.h. Generated by config.status. */
13138 configure_input='Generated from '`
13139 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13140 `' by configure.'
13141 if test x"$ac_file" != x-; then
13142 configure_input="$ac_file. $configure_input"
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13144 $as_echo "$as_me: creating $ac_file" >&6;}
13146 # Neutralize special characters interpreted by sed in replacement strings.
13147 case $configure_input in #(
13148 *\&* | *\|* | *\\* )
13149 ac_sed_conf_input=`$as_echo "$configure_input" |
13150 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13151 *) ac_sed_conf_input=$configure_input;;
13152 esac
13154 case $ac_tag in
13155 *:-:* | *:-) cat >"$tmp/stdin" \
13156 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13157 esac
13159 esac
13161 ac_dir=`$as_dirname -- "$ac_file" ||
13162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13163 X"$ac_file" : 'X\(//\)[^/]' \| \
13164 X"$ac_file" : 'X\(//\)$' \| \
13165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13166 $as_echo X"$ac_file" |
13167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13168 s//\1/
13171 /^X\(\/\/\)[^/].*/{
13172 s//\1/
13175 /^X\(\/\/\)$/{
13176 s//\1/
13179 /^X\(\/\).*/{
13180 s//\1/
13183 s/.*/./; q'`
13184 as_dir="$ac_dir"; as_fn_mkdir_p
13185 ac_builddir=.
13187 case "$ac_dir" in
13188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13190 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13191 # A ".." for each directory in $ac_dir_suffix.
13192 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13193 case $ac_top_builddir_sub in
13194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13196 esac ;;
13197 esac
13198 ac_abs_top_builddir=$ac_pwd
13199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13200 # for backward compatibility:
13201 ac_top_builddir=$ac_top_build_prefix
13203 case $srcdir in
13204 .) # We are building in place.
13205 ac_srcdir=.
13206 ac_top_srcdir=$ac_top_builddir_sub
13207 ac_abs_top_srcdir=$ac_pwd ;;
13208 [\\/]* | ?:[\\/]* ) # Absolute name.
13209 ac_srcdir=$srcdir$ac_dir_suffix;
13210 ac_top_srcdir=$srcdir
13211 ac_abs_top_srcdir=$srcdir ;;
13212 *) # Relative name.
13213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13214 ac_top_srcdir=$ac_top_build_prefix$srcdir
13215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13216 esac
13217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13220 case $ac_mode in
13223 # CONFIG_FILE
13226 case $INSTALL in
13227 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13228 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13229 esac
13230 _ACEOF
13232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13233 # If the template does not know about datarootdir, expand it.
13234 # FIXME: This hack should be removed a few years after 2.60.
13235 ac_datarootdir_hack=; ac_datarootdir_seen=
13236 ac_sed_dataroot='
13237 /datarootdir/ {
13241 /@datadir@/p
13242 /@docdir@/p
13243 /@infodir@/p
13244 /@localedir@/p
13245 /@mandir@/p'
13246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13247 *datarootdir*) ac_datarootdir_seen=yes;;
13248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13250 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13251 _ACEOF
13252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13253 ac_datarootdir_hack='
13254 s&@datadir@&$datadir&g
13255 s&@docdir@&$docdir&g
13256 s&@infodir@&$infodir&g
13257 s&@localedir@&$localedir&g
13258 s&@mandir@&$mandir&g
13259 s&\\\${datarootdir}&$datarootdir&g' ;;
13260 esac
13261 _ACEOF
13263 # Neutralize VPATH when `$srcdir' = `.'.
13264 # Shell code in configure.ac might set extrasub.
13265 # FIXME: do we really want to maintain this feature?
13266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13267 ac_sed_extra="$ac_vpsub
13268 $extrasub
13269 _ACEOF
13270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13273 s|@configure_input@|$ac_sed_conf_input|;t t
13274 s&@top_builddir@&$ac_top_builddir_sub&;t t
13275 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13276 s&@srcdir@&$ac_srcdir&;t t
13277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13278 s&@top_srcdir@&$ac_top_srcdir&;t t
13279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13280 s&@builddir@&$ac_builddir&;t t
13281 s&@abs_builddir@&$ac_abs_builddir&;t t
13282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13283 s&@INSTALL@&$ac_INSTALL&;t t
13284 $ac_datarootdir_hack
13286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13287 || as_fn_error "could not create $ac_file" "$LINENO" 5
13289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13293 which seems to be undefined. Please make sure it is defined." >&5
13294 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13295 which seems to be undefined. Please make sure it is defined." >&2;}
13297 rm -f "$tmp/stdin"
13298 case $ac_file in
13299 -) cat "$tmp/out" && rm -f "$tmp/out";;
13300 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13301 esac \
13302 || as_fn_error "could not create $ac_file" "$LINENO" 5
13306 # CONFIG_HEADER
13308 if test x"$ac_file" != x-; then
13310 $as_echo "/* $configure_input */" \
13311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13312 } >"$tmp/config.h" \
13313 || as_fn_error "could not create $ac_file" "$LINENO" 5
13314 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13316 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13317 else
13318 rm -f "$ac_file"
13319 mv "$tmp/config.h" "$ac_file" \
13320 || as_fn_error "could not create $ac_file" "$LINENO" 5
13322 else
13323 $as_echo "/* $configure_input */" \
13324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13325 || as_fn_error "could not create -" "$LINENO" 5
13329 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13330 $as_echo "$as_me: executing $ac_file commands" >&6;}
13332 esac
13335 case $ac_file$ac_mode in
13336 "default-1":C)
13337 # Only add multilib support code if we just rebuilt the top-level
13338 # Makefile.
13339 case " $CONFIG_FILES " in
13340 *" Makefile "*)
13341 ac_file=Makefile . ${multi_basedir}/config-ml.in
13343 esac ;;
13344 "libtool":C)
13346 # See if we are running on zsh, and set the options which allow our
13347 # commands through without removal of \ escapes.
13348 if test -n "${ZSH_VERSION+set}" ; then
13349 setopt NO_GLOB_SUBST
13352 cfgfile="${ofile}T"
13353 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13354 $RM "$cfgfile"
13356 cat <<_LT_EOF >> "$cfgfile"
13357 #! $SHELL
13359 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13360 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13362 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13364 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13365 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13366 # Written by Gordon Matzigkeit, 1996
13368 # This file is part of GNU Libtool.
13370 # GNU Libtool is free software; you can redistribute it and/or
13371 # modify it under the terms of the GNU General Public License as
13372 # published by the Free Software Foundation; either version 2 of
13373 # the License, or (at your option) any later version.
13375 # As a special exception to the GNU General Public License,
13376 # if you distribute this file as part of a program or library that
13377 # is built using GNU Libtool, you may include this file under the
13378 # same distribution terms that you use for the rest of that program.
13380 # GNU Libtool is distributed in the hope that it will be useful,
13381 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13383 # GNU General Public License for more details.
13385 # You should have received a copy of the GNU General Public License
13386 # along with GNU Libtool; see the file COPYING. If not, a copy
13387 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13388 # obtained by writing to the Free Software Foundation, Inc.,
13389 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13392 # The names of the tagged configurations supported by this script.
13393 available_tags=""
13395 # ### BEGIN LIBTOOL CONFIG
13397 # Assembler program.
13398 AS=$lt_AS
13400 # DLL creation program.
13401 DLLTOOL=$lt_DLLTOOL
13403 # Object dumper program.
13404 OBJDUMP=$lt_OBJDUMP
13406 # Which release of libtool.m4 was used?
13407 macro_version=$macro_version
13408 macro_revision=$macro_revision
13410 # Whether or not to build shared libraries.
13411 build_libtool_libs=$enable_shared
13413 # Whether or not to build static libraries.
13414 build_old_libs=$enable_static
13416 # What type of objects to build.
13417 pic_mode=$pic_mode
13419 # Whether or not to optimize for fast installation.
13420 fast_install=$enable_fast_install
13422 # Shell to use when invoking shell scripts.
13423 SHELL=$lt_SHELL
13425 # An echo program that protects backslashes.
13426 ECHO=$lt_ECHO
13428 # The host system.
13429 host_alias=$host_alias
13430 host=$host
13431 host_os=$host_os
13433 # The build system.
13434 build_alias=$build_alias
13435 build=$build
13436 build_os=$build_os
13438 # A sed program that does not truncate output.
13439 SED=$lt_SED
13441 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13442 Xsed="\$SED -e 1s/^X//"
13444 # A grep program that handles long lines.
13445 GREP=$lt_GREP
13447 # An ERE matcher.
13448 EGREP=$lt_EGREP
13450 # A literal string matcher.
13451 FGREP=$lt_FGREP
13453 # A BSD- or MS-compatible name lister.
13454 NM=$lt_NM
13456 # Whether we need soft or hard links.
13457 LN_S=$lt_LN_S
13459 # What is the maximum length of a command?
13460 max_cmd_len=$max_cmd_len
13462 # Object file suffix (normally "o").
13463 objext=$ac_objext
13465 # Executable file suffix (normally "").
13466 exeext=$exeext
13468 # whether the shell understands "unset".
13469 lt_unset=$lt_unset
13471 # turn spaces into newlines.
13472 SP2NL=$lt_lt_SP2NL
13474 # turn newlines into spaces.
13475 NL2SP=$lt_lt_NL2SP
13477 # Method to check whether dependent libraries are shared objects.
13478 deplibs_check_method=$lt_deplibs_check_method
13480 # Command to use when deplibs_check_method == "file_magic".
13481 file_magic_cmd=$lt_file_magic_cmd
13483 # The archiver.
13484 AR=$lt_AR
13485 AR_FLAGS=$lt_AR_FLAGS
13487 # A symbol stripping program.
13488 STRIP=$lt_STRIP
13490 # Commands used to install an old-style archive.
13491 RANLIB=$lt_RANLIB
13492 old_postinstall_cmds=$lt_old_postinstall_cmds
13493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13495 # Whether to use a lock for old archive extraction.
13496 lock_old_archive_extraction=$lock_old_archive_extraction
13498 # A C compiler.
13499 LTCC=$lt_CC
13501 # LTCC compiler flags.
13502 LTCFLAGS=$lt_CFLAGS
13504 # Take the output of nm and produce a listing of raw symbols and C names.
13505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13507 # Transform the output of nm in a proper C declaration.
13508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13510 # Transform the output of nm in a C name address pair.
13511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13513 # Transform the output of nm in a C name address pair when lib prefix is needed.
13514 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13516 # The name of the directory that contains temporary libtool files.
13517 objdir=$objdir
13519 # Used to examine libraries when file_magic_cmd begins with "file".
13520 MAGIC_CMD=$MAGIC_CMD
13522 # Must we lock files when doing compilation?
13523 need_locks=$lt_need_locks
13525 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13526 DSYMUTIL=$lt_DSYMUTIL
13528 # Tool to change global to local symbols on Mac OS X.
13529 NMEDIT=$lt_NMEDIT
13531 # Tool to manipulate fat objects and archives on Mac OS X.
13532 LIPO=$lt_LIPO
13534 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13535 OTOOL=$lt_OTOOL
13537 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13538 OTOOL64=$lt_OTOOL64
13540 # Old archive suffix (normally "a").
13541 libext=$libext
13543 # Shared library suffix (normally ".so").
13544 shrext_cmds=$lt_shrext_cmds
13546 # The commands to extract the exported symbol list from a shared archive.
13547 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13549 # Variables whose values should be saved in libtool wrapper scripts and
13550 # restored at link time.
13551 variables_saved_for_relink=$lt_variables_saved_for_relink
13553 # Do we need the "lib" prefix for modules?
13554 need_lib_prefix=$need_lib_prefix
13556 # Do we need a version for libraries?
13557 need_version=$need_version
13559 # Library versioning type.
13560 version_type=$version_type
13562 # Shared library runtime path variable.
13563 runpath_var=$runpath_var
13565 # Shared library path variable.
13566 shlibpath_var=$shlibpath_var
13568 # Is shlibpath searched before the hard-coded library search path?
13569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13571 # Format of library name prefix.
13572 libname_spec=$lt_libname_spec
13574 # List of archive names. First name is the real one, the rest are links.
13575 # The last name is the one that the linker finds with -lNAME
13576 library_names_spec=$lt_library_names_spec
13578 # The coded name of the library, if different from the real name.
13579 soname_spec=$lt_soname_spec
13581 # Permission mode override for installation of shared libraries.
13582 install_override_mode=$lt_install_override_mode
13584 # Command to use after installation of a shared archive.
13585 postinstall_cmds=$lt_postinstall_cmds
13587 # Command to use after uninstallation of a shared archive.
13588 postuninstall_cmds=$lt_postuninstall_cmds
13590 # Commands used to finish a libtool library installation in a directory.
13591 finish_cmds=$lt_finish_cmds
13593 # As "finish_cmds", except a single script fragment to be evaled but
13594 # not shown.
13595 finish_eval=$lt_finish_eval
13597 # Whether we should hardcode library paths into libraries.
13598 hardcode_into_libs=$hardcode_into_libs
13600 # Compile-time system search path for libraries.
13601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13603 # Run-time system search path for libraries.
13604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13606 # Whether dlopen is supported.
13607 dlopen_support=$enable_dlopen
13609 # Whether dlopen of programs is supported.
13610 dlopen_self=$enable_dlopen_self
13612 # Whether dlopen of statically linked programs is supported.
13613 dlopen_self_static=$enable_dlopen_self_static
13615 # Commands to strip libraries.
13616 old_striplib=$lt_old_striplib
13617 striplib=$lt_striplib
13620 # The linker used to build libraries.
13621 LD=$lt_LD
13623 # How to create reloadable object files.
13624 reload_flag=$lt_reload_flag
13625 reload_cmds=$lt_reload_cmds
13627 # Commands used to build an old-style archive.
13628 old_archive_cmds=$lt_old_archive_cmds
13630 # A language specific compiler.
13631 CC=$lt_compiler
13633 # Is the compiler the GNU compiler?
13634 with_gcc=$GCC
13636 # Compiler flag to turn off builtin functions.
13637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13639 # How to pass a linker flag through the compiler.
13640 wl=$lt_lt_prog_compiler_wl
13642 # Additional compiler flags for building library objects.
13643 pic_flag=$lt_lt_prog_compiler_pic
13645 # Compiler flag to prevent dynamic linking.
13646 link_static_flag=$lt_lt_prog_compiler_static
13648 # Does compiler simultaneously support -c and -o options?
13649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13651 # Whether or not to add -lc for building shared libraries.
13652 build_libtool_need_lc=$archive_cmds_need_lc
13654 # Whether or not to disallow shared libs when runtime libs are static.
13655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13657 # Compiler flag to allow reflexive dlopens.
13658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13660 # Compiler flag to generate shared objects directly from archives.
13661 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13663 # Whether the compiler copes with passing no objects directly.
13664 compiler_needs_object=$lt_compiler_needs_object
13666 # Create an old-style archive from a shared archive.
13667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13669 # Create a temporary old-style archive to link instead of a shared archive.
13670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13672 # Commands used to build a shared archive.
13673 archive_cmds=$lt_archive_cmds
13674 archive_expsym_cmds=$lt_archive_expsym_cmds
13676 # Commands used to build a loadable module if different from building
13677 # a shared archive.
13678 module_cmds=$lt_module_cmds
13679 module_expsym_cmds=$lt_module_expsym_cmds
13681 # Whether we are building with GNU ld or not.
13682 with_gnu_ld=$lt_with_gnu_ld
13684 # Flag that allows shared libraries with undefined symbols to be built.
13685 allow_undefined_flag=$lt_allow_undefined_flag
13687 # Flag that enforces no undefined symbols.
13688 no_undefined_flag=$lt_no_undefined_flag
13690 # Flag to hardcode \$libdir into a binary during linking.
13691 # This must work even if \$libdir does not exist
13692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13694 # If ld is used when linking, flag to hardcode \$libdir into a binary
13695 # during linking. This must work even if \$libdir does not exist.
13696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13698 # Whether we need a single "-rpath" flag with a separated argument.
13699 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13701 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13702 # DIR into the resulting binary.
13703 hardcode_direct=$hardcode_direct
13705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13706 # DIR into the resulting binary and the resulting library dependency is
13707 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13708 # library is relocated.
13709 hardcode_direct_absolute=$hardcode_direct_absolute
13711 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13712 # into the resulting binary.
13713 hardcode_minus_L=$hardcode_minus_L
13715 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13716 # into the resulting binary.
13717 hardcode_shlibpath_var=$hardcode_shlibpath_var
13719 # Set to "yes" if building a shared library automatically hardcodes DIR
13720 # into the library and all subsequent libraries and executables linked
13721 # against it.
13722 hardcode_automatic=$hardcode_automatic
13724 # Set to yes if linker adds runtime paths of dependent libraries
13725 # to runtime path list.
13726 inherit_rpath=$inherit_rpath
13728 # Whether libtool must link a program against all its dependency libraries.
13729 link_all_deplibs=$link_all_deplibs
13731 # Fix the shell variable \$srcfile for the compiler.
13732 fix_srcfile_path=$lt_fix_srcfile_path
13734 # Set to "yes" if exported symbols are required.
13735 always_export_symbols=$always_export_symbols
13737 # The commands to list exported symbols.
13738 export_symbols_cmds=$lt_export_symbols_cmds
13740 # Symbols that should not be listed in the preloaded symbols.
13741 exclude_expsyms=$lt_exclude_expsyms
13743 # Symbols that must always be exported.
13744 include_expsyms=$lt_include_expsyms
13746 # Commands necessary for linking programs (against libraries) with templates.
13747 prelink_cmds=$lt_prelink_cmds
13749 # Specify filename containing input files.
13750 file_list_spec=$lt_file_list_spec
13752 # How to hardcode a shared library path into an executable.
13753 hardcode_action=$hardcode_action
13755 # ### END LIBTOOL CONFIG
13757 _LT_EOF
13759 case $host_os in
13760 aix3*)
13761 cat <<\_LT_EOF >> "$cfgfile"
13762 # AIX sometimes has problems with the GCC collect2 program. For some
13763 # reason, if we set the COLLECT_NAMES environment variable, the problems
13764 # vanish in a puff of smoke.
13765 if test "X${COLLECT_NAMES+set}" != Xset; then
13766 COLLECT_NAMES=
13767 export COLLECT_NAMES
13769 _LT_EOF
13771 esac
13774 ltmain="$ac_aux_dir/ltmain.sh"
13777 # We use sed instead of cat because bash on DJGPP gets confused if
13778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13779 # text mode, it properly converts lines to CR/LF. This bash problem
13780 # is reportedly fixed, but why not run on old versions too?
13781 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13782 || (rm -f "$cfgfile"; exit 1)
13784 case $xsi_shell in
13785 yes)
13786 cat << \_LT_EOF >> "$cfgfile"
13788 # func_dirname file append nondir_replacement
13789 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13790 # otherwise set result to NONDIR_REPLACEMENT.
13791 func_dirname ()
13793 case ${1} in
13794 */*) func_dirname_result="${1%/*}${2}" ;;
13795 * ) func_dirname_result="${3}" ;;
13796 esac
13799 # func_basename file
13800 func_basename ()
13802 func_basename_result="${1##*/}"
13805 # func_dirname_and_basename file append nondir_replacement
13806 # perform func_basename and func_dirname in a single function
13807 # call:
13808 # dirname: Compute the dirname of FILE. If nonempty,
13809 # add APPEND to the result, otherwise set result
13810 # to NONDIR_REPLACEMENT.
13811 # value returned in "$func_dirname_result"
13812 # basename: Compute filename of FILE.
13813 # value retuned in "$func_basename_result"
13814 # Implementation must be kept synchronized with func_dirname
13815 # and func_basename. For efficiency, we do not delegate to
13816 # those functions but instead duplicate the functionality here.
13817 func_dirname_and_basename ()
13819 case ${1} in
13820 */*) func_dirname_result="${1%/*}${2}" ;;
13821 * ) func_dirname_result="${3}" ;;
13822 esac
13823 func_basename_result="${1##*/}"
13826 # func_stripname prefix suffix name
13827 # strip PREFIX and SUFFIX off of NAME.
13828 # PREFIX and SUFFIX must not contain globbing or regex special
13829 # characters, hashes, percent signs, but SUFFIX may contain a leading
13830 # dot (in which case that matches only a dot).
13831 func_stripname ()
13833 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13834 # positional parameters, so assign one to ordinary parameter first.
13835 func_stripname_result=${3}
13836 func_stripname_result=${func_stripname_result#"${1}"}
13837 func_stripname_result=${func_stripname_result%"${2}"}
13840 # func_opt_split
13841 func_opt_split ()
13843 func_opt_split_opt=${1%%=*}
13844 func_opt_split_arg=${1#*=}
13847 # func_lo2o object
13848 func_lo2o ()
13850 case ${1} in
13851 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13852 *) func_lo2o_result=${1} ;;
13853 esac
13856 # func_xform libobj-or-source
13857 func_xform ()
13859 func_xform_result=${1%.*}.lo
13862 # func_arith arithmetic-term...
13863 func_arith ()
13865 func_arith_result=$(( $* ))
13868 # func_len string
13869 # STRING may not start with a hyphen.
13870 func_len ()
13872 func_len_result=${#1}
13875 _LT_EOF
13877 *) # Bourne compatible functions.
13878 cat << \_LT_EOF >> "$cfgfile"
13880 # func_dirname file append nondir_replacement
13881 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13882 # otherwise set result to NONDIR_REPLACEMENT.
13883 func_dirname ()
13885 # Extract subdirectory from the argument.
13886 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13887 if test "X$func_dirname_result" = "X${1}"; then
13888 func_dirname_result="${3}"
13889 else
13890 func_dirname_result="$func_dirname_result${2}"
13894 # func_basename file
13895 func_basename ()
13897 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13901 # func_stripname prefix suffix name
13902 # strip PREFIX and SUFFIX off of NAME.
13903 # PREFIX and SUFFIX must not contain globbing or regex special
13904 # characters, hashes, percent signs, but SUFFIX may contain a leading
13905 # dot (in which case that matches only a dot).
13906 # func_strip_suffix prefix name
13907 func_stripname ()
13909 case ${2} in
13910 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13911 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13912 esac
13915 # sed scripts:
13916 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13917 my_sed_long_arg='1s/^-[^=]*=//'
13919 # func_opt_split
13920 func_opt_split ()
13922 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13923 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13926 # func_lo2o object
13927 func_lo2o ()
13929 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13932 # func_xform libobj-or-source
13933 func_xform ()
13935 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13938 # func_arith arithmetic-term...
13939 func_arith ()
13941 func_arith_result=`expr "$@"`
13944 # func_len string
13945 # STRING may not start with a hyphen.
13946 func_len ()
13948 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13951 _LT_EOF
13952 esac
13954 case $lt_shell_append in
13955 yes)
13956 cat << \_LT_EOF >> "$cfgfile"
13958 # func_append var value
13959 # Append VALUE to the end of shell variable VAR.
13960 func_append ()
13962 eval "$1+=\$2"
13964 _LT_EOF
13967 cat << \_LT_EOF >> "$cfgfile"
13969 # func_append var value
13970 # Append VALUE to the end of shell variable VAR.
13971 func_append ()
13973 eval "$1=\$$1\$2"
13976 _LT_EOF
13978 esac
13981 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13982 || (rm -f "$cfgfile"; exit 1)
13984 mv -f "$cfgfile" "$ofile" ||
13985 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13986 chmod +x "$ofile"
13990 esac
13991 done # for ac_tag
13994 as_fn_exit 0
13995 _ACEOF
13996 ac_clean_files=$ac_clean_files_save
13998 test $ac_write_fail = 0 ||
13999 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14002 # configure is writing to config.log, and then calls config.status.
14003 # config.status does its own redirection, appending to config.log.
14004 # Unfortunately, on DOS this fails, as config.log is still kept open
14005 # by configure, so config.status won't be able to write to it; its
14006 # output is simply discarded. So we exec the FD to /dev/null,
14007 # effectively closing config.log, so it can be properly (re)opened and
14008 # appended to by config.status. When coming back to configure, we
14009 # need to make the FD available again.
14010 if test "$no_create" != yes; then
14011 ac_cs_success=:
14012 ac_config_status_args=
14013 test "$silent" = yes &&
14014 ac_config_status_args="$ac_config_status_args --quiet"
14015 exec 5>/dev/null
14016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14017 exec 5>>config.log
14018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14019 # would make configure fail if this is the last instruction.
14020 $ac_cs_success || as_fn_exit $?
14022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14024 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}