Remove assert in get_def_bb_for_const
[official-gcc.git] / libobjc / configure
blob55fcc33dbe2dddd7fc768ccb43859fbb2b31c4fa
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 SET_MAKE
605 OTOOL64
606 OTOOL
607 LIPO
608 NMEDIT
609 DSYMUTIL
611 STRIP
612 LN_S
614 ac_ct_DUMPBIN
615 DUMPBIN
617 FGREP
618 EGREP
619 GREP
621 LIBTOOL
622 OBJDUMP
623 DLLTOOL
624 MAINT
625 MAINTAINER_MODE_FALSE
626 MAINTAINER_MODE_TRUE
627 INSTALL_DATA
628 INSTALL_SCRIPT
629 INSTALL_PROGRAM
630 RANLIB
633 extra_ldflags_libobjc
634 lt_host_flags
635 OBJEXT
636 EXEEXT
637 ac_ct_CC
638 CPPFLAGS
639 LDFLAGS
640 CFLAGS
642 libsuffix
643 includedirname
644 toolexeclibdir
645 toolexecdir
646 glibcpp_srcdir
647 target_noncanonical
648 target_os
649 target_vendor
650 target_cpu
651 target
652 host_os
653 host_vendor
654 host_cpu
655 host
656 multi_basedir
657 OBJC_BOEHM_GC_INCLUDES
658 OBJC_BOEHM_GC
659 OBJC_GCFLAGS
660 VERSION
661 target_subdir
662 host_subdir
663 build_subdir
664 build_libsubdir
665 build_os
666 build_vendor
667 build_cpu
668 build
669 target_alias
670 host_alias
671 build_alias
672 LIBS
673 ECHO_T
674 ECHO_N
675 ECHO_C
676 DEFS
677 mandir
678 localedir
679 libdir
680 psdir
681 pdfdir
682 dvidir
683 htmldir
684 infodir
685 docdir
686 oldincludedir
687 includedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 with_build_libsubdir
711 with_target_subdir
712 with_cross_host
713 enable_version_specific_runtime_libs
714 enable_objc_gc
715 enable_multilib
716 enable_maintainer_mode
717 enable_shared
718 enable_static
719 with_pic
720 enable_fast_install
721 with_gnu_ld
722 enable_libtool_lock
723 enable_tls
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
729 CPPFLAGS'
732 # Initialize some variables set by options.
733 ac_init_help=
734 ac_init_version=false
735 ac_unrecognized_opts=
736 ac_unrecognized_sep=
737 # The variables have the same names as the options, with
738 # dashes changed to underlines.
739 cache_file=/dev/null
740 exec_prefix=NONE
741 no_create=
742 no_recursion=
743 prefix=NONE
744 program_prefix=NONE
745 program_suffix=NONE
746 program_transform_name=s,x,x,
747 silent=
748 site=
749 srcdir=
750 verbose=
751 x_includes=NONE
752 x_libraries=NONE
754 # Installation directory options.
755 # These are left unexpanded so users can "make install exec_prefix=/foo"
756 # and all the variables that are supposed to be based on exec_prefix
757 # by default will actually change.
758 # Use braces instead of parens because sh, perl, etc. also accept them.
759 # (The list follows the same order as the GNU Coding Standards.)
760 bindir='${exec_prefix}/bin'
761 sbindir='${exec_prefix}/sbin'
762 libexecdir='${exec_prefix}/libexec'
763 datarootdir='${prefix}/share'
764 datadir='${datarootdir}'
765 sysconfdir='${prefix}/etc'
766 sharedstatedir='${prefix}/com'
767 localstatedir='${prefix}/var'
768 includedir='${prefix}/include'
769 oldincludedir='/usr/include'
770 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
771 infodir='${datarootdir}/info'
772 htmldir='${docdir}'
773 dvidir='${docdir}'
774 pdfdir='${docdir}'
775 psdir='${docdir}'
776 libdir='${exec_prefix}/lib'
777 localedir='${datarootdir}/locale'
778 mandir='${datarootdir}/man'
780 ac_prev=
781 ac_dashdash=
782 for ac_option
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
786 eval $ac_prev=\$ac_option
787 ac_prev=
788 continue
791 case $ac_option in
792 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 *) ac_optarg=yes ;;
794 esac
796 # Accept the important Cygnus configure options, so we can diagnose typos.
798 case $ac_dashdash$ac_option in
800 ac_dashdash=yes ;;
802 -bindir | --bindir | --bindi | --bind | --bin | --bi)
803 ac_prev=bindir ;;
804 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805 bindir=$ac_optarg ;;
807 -build | --build | --buil | --bui | --bu)
808 ac_prev=build_alias ;;
809 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810 build_alias=$ac_optarg ;;
812 -cache-file | --cache-file | --cache-fil | --cache-fi \
813 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
814 ac_prev=cache_file ;;
815 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
816 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
817 cache_file=$ac_optarg ;;
819 --config-cache | -C)
820 cache_file=config.cache ;;
822 -datadir | --datadir | --datadi | --datad)
823 ac_prev=datadir ;;
824 -datadir=* | --datadir=* | --datadi=* | --datad=*)
825 datadir=$ac_optarg ;;
827 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
828 | --dataroo | --dataro | --datar)
829 ac_prev=datarootdir ;;
830 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
831 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
832 datarootdir=$ac_optarg ;;
834 -disable-* | --disable-*)
835 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
836 # Reject names that are not valid shell variable names.
837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838 as_fn_error "invalid feature name: $ac_useropt"
839 ac_useropt_orig=$ac_useropt
840 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841 case $ac_user_opts in
843 "enable_$ac_useropt"
844 "*) ;;
845 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
846 ac_unrecognized_sep=', ';;
847 esac
848 eval enable_$ac_useropt=no ;;
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
860 -enable-* | --enable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=\$ac_optarg ;;
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
887 with_gas=yes ;;
889 -help | --help | --hel | --he | -h)
890 ac_init_help=long ;;
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902 ac_prev=htmldir ;;
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904 | --ht=*)
905 htmldir=$ac_optarg ;;
907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
915 ac_prev=infodir ;;
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
919 -libdir | --libdir | --libdi | --libd)
920 ac_prev=libdir ;;
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
922 libdir=$ac_optarg ;;
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
931 -localedir | --localedir | --localedi | --localed | --locale)
932 ac_prev=localedir ;;
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
936 -localstatedir | --localstatedir | --localstatedi | --localstated \
937 | --localstate | --localstat | --localsta | --localst | --locals)
938 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941 localstatedir=$ac_optarg ;;
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944 ac_prev=mandir ;;
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946 mandir=$ac_optarg ;;
948 -nfp | --nfp | --nf)
949 # Obsolete; use --without-fp.
950 with_fp=no ;;
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c | -n)
954 no_create=yes ;;
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
958 no_recursion=yes ;;
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970 ac_prev=prefix ;;
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
972 prefix=$ac_optarg ;;
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
988 -program-transform-name | --program-transform-name \
989 | --program-transform-nam | --program-transform-na \
990 | --program-transform-n | --program-transform- \
991 | --program-transform | --program-transfor \
992 | --program-transfo | --program-transf \
993 | --program-trans | --program-tran \
994 | --progr-tra | --program-tr | --program-t)
995 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006 ac_prev=pdfdir ;;
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1010 -psdir | --psdir | --psdi | --psd | --ps)
1011 ac_prev=psdir ;;
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1013 psdir=$ac_optarg ;;
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1017 silent=yes ;;
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020 ac_prev=sbindir ;;
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022 | --sbi=* | --sb=*)
1023 sbindir=$ac_optarg ;;
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1028 | --sha | --sh)
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033 | --sha=* | --sh=*)
1034 sharedstatedir=$ac_optarg ;;
1036 -site | --site | --sit)
1037 ac_prev=site ;;
1038 -site=* | --site=* | --sit=*)
1039 site=$ac_optarg ;;
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042 ac_prev=srcdir ;;
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1059 verbose=yes ;;
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1064 -with-* | --with-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error "invalid package name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "with_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval with_$ac_useropt=\$ac_optarg ;;
1080 -without-* | --without-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid package name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "with_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval with_$ac_useropt=no ;;
1096 --x)
1097 # Obsolete; use --with-x.
1098 with_x=yes ;;
1100 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1101 | --x-incl | --x-inc | --x-in | --x-i)
1102 ac_prev=x_includes ;;
1103 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1104 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1105 x_includes=$ac_optarg ;;
1107 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1108 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1109 ac_prev=x_libraries ;;
1110 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1111 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1112 x_libraries=$ac_optarg ;;
1114 -*) as_fn_error "unrecognized option: \`$ac_option'
1115 Try \`$0 --help' for more information."
1118 *=*)
1119 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1120 # Reject names that are not valid shell variable names.
1121 case $ac_envvar in #(
1122 '' | [0-9]* | *[!_$as_cr_alnum]* )
1123 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1124 esac
1125 eval $ac_envvar=\$ac_optarg
1126 export $ac_envvar ;;
1129 # FIXME: should be removed in autoconf 3.0.
1130 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1131 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1132 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1133 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 esac
1137 done
1139 if test -n "$ac_prev"; then
1140 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1141 as_fn_error "missing argument to $ac_option"
1144 if test -n "$ac_unrecognized_opts"; then
1145 case $enable_option_checking in
1146 no) ;;
1147 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1148 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1149 esac
1152 # Check all directory arguments for consistency.
1153 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1158 eval ac_val=\$$ac_var
1159 # Remove trailing slashes.
1160 case $ac_val in
1161 */ )
1162 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163 eval $ac_var=\$ac_val;;
1164 esac
1165 # Be sure to have absolute directory names.
1166 case $ac_val in
1167 [\\/$]* | ?:[\\/]* ) continue;;
1168 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1169 esac
1170 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1171 done
1173 # There might be people who depend on the old broken behavior: `$host'
1174 # used to hold the argument of --host etc.
1175 # FIXME: To remove some day.
1176 build=$build_alias
1177 host=$host_alias
1178 target=$target_alias
1180 # FIXME: To remove some day.
1181 if test "x$host_alias" != x; then
1182 if test "x$build_alias" = x; then
1183 cross_compiling=maybe
1184 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1185 If a cross compiler is detected then cross compile mode will be used." >&2
1186 elif test "x$build_alias" != "x$host_alias"; then
1187 cross_compiling=yes
1191 ac_tool_prefix=
1192 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194 test "$silent" = yes && exec 6>/dev/null
1197 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1198 ac_ls_di=`ls -di .` &&
1199 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1200 as_fn_error "working directory cannot be determined"
1201 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202 as_fn_error "pwd does not report name of working directory"
1205 # Find the source files, if location was not specified.
1206 if test -z "$srcdir"; then
1207 ac_srcdir_defaulted=yes
1208 # Try the directory containing this script, then the parent directory.
1209 ac_confdir=`$as_dirname -- "$as_myself" ||
1210 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1211 X"$as_myself" : 'X\(//\)[^/]' \| \
1212 X"$as_myself" : 'X\(//\)$' \| \
1213 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1214 $as_echo X"$as_myself" |
1215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1216 s//\1/
1219 /^X\(\/\/\)[^/].*/{
1220 s//\1/
1223 /^X\(\/\/\)$/{
1224 s//\1/
1227 /^X\(\/\).*/{
1228 s//\1/
1231 s/.*/./; q'`
1232 srcdir=$ac_confdir
1233 if test ! -r "$srcdir/$ac_unique_file"; then
1234 srcdir=..
1236 else
1237 ac_srcdir_defaulted=no
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1240 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1241 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1243 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1244 ac_abs_confdir=`(
1245 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1246 pwd)`
1247 # When building in place, set srcdir=.
1248 if test "$ac_abs_confdir" = "$ac_pwd"; then
1249 srcdir=.
1251 # Remove unnecessary trailing slashes from srcdir.
1252 # Double slashes in file names in object file debugging info
1253 # mess up M-x gdb in Emacs.
1254 case $srcdir in
1255 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256 esac
1257 for ac_var in $ac_precious_vars; do
1258 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_env_${ac_var}_value=\$${ac_var}
1260 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1261 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1262 done
1265 # Report the --help message.
1267 if test "$ac_init_help" = "long"; then
1268 # Omit some internal or obsolete options to make the list less imposing.
1269 # This message is too long to be a string in the A/UX 3.1 sh.
1270 cat <<_ACEOF
1271 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1273 Usage: $0 [OPTION]... [VAR=VALUE]...
1275 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1276 VAR=VALUE. See below for descriptions of some of the useful variables.
1278 Defaults for the options are specified in brackets.
1280 Configuration:
1281 -h, --help display this help and exit
1282 --help=short display options specific to this package
1283 --help=recursive display the short help of all the included packages
1284 -V, --version display version information and exit
1285 -q, --quiet, --silent do not print \`checking...' messages
1286 --cache-file=FILE cache test results in FILE [disabled]
1287 -C, --config-cache alias for \`--cache-file=config.cache'
1288 -n, --no-create do not create output files
1289 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1291 Installation directories:
1292 --prefix=PREFIX install architecture-independent files in PREFIX
1293 [$ac_default_prefix]
1294 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1295 [PREFIX]
1297 By default, \`make install' will install all the files in
1298 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1299 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1300 for instance \`--prefix=\$HOME'.
1302 For better control, use the options below.
1304 Fine tuning of the installation directories:
1305 --bindir=DIR user executables [EPREFIX/bin]
1306 --sbindir=DIR system admin executables [EPREFIX/sbin]
1307 --libexecdir=DIR program executables [EPREFIX/libexec]
1308 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1309 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1310 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1311 --libdir=DIR object code libraries [EPREFIX/lib]
1312 --includedir=DIR C header files [PREFIX/include]
1313 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1314 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1315 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1316 --infodir=DIR info documentation [DATAROOTDIR/info]
1317 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1318 --mandir=DIR man documentation [DATAROOTDIR/man]
1319 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
1320 --htmldir=DIR html documentation [DOCDIR]
1321 --dvidir=DIR dvi documentation [DOCDIR]
1322 --pdfdir=DIR pdf documentation [DOCDIR]
1323 --psdir=DIR ps documentation [DOCDIR]
1324 _ACEOF
1326 cat <<\_ACEOF
1328 System types:
1329 --build=BUILD configure for building on BUILD [guessed]
1330 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1331 --target=TARGET configure for building compilers for TARGET [HOST]
1332 _ACEOF
1335 if test -n "$ac_init_help"; then
1336 case $ac_init_help in
1337 short | recursive ) echo "Configuration of package-unused version-unused:";;
1338 esac
1339 cat <<\_ACEOF
1341 Optional Features:
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1346 --enable-objc-gc enable the use of Boehm's garbage collector with
1347 the GNU Objective-C runtime.
1348 --enable-multilib build many library versions (default)
1349 --enable-maintainer-mode enable make rules and dependencies not useful
1350 (and sometimes confusing) to the casual installer
1351 --enable-shared[=PKGS] build shared libraries [default=yes]
1352 --enable-static[=PKGS] build static libraries [default=yes]
1353 --enable-fast-install[=PKGS]
1354 optimize for fast installation [default=yes]
1355 --disable-libtool-lock avoid locking (might break parallel builds)
1356 --enable-tls Use thread-local storage [default=yes]
1358 Optional Packages:
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --with-build-libsubdir=DIR Directory where to find libraries for build system
1362 --with-target-subdir=SUBDIR
1363 configuring in a subdirectory
1364 --with-cross-host=HOST configuring with a cross compiler
1365 --with-pic try to use only PIC/non-PIC objects [default=use
1366 both]
1367 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1379 Use these variables to override the choices made by `configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to the package provider.
1383 _ACEOF
1384 ac_status=$?
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392 continue
1393 ac_builddir=.
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 package-unused configure version-unused
1446 generated by GNU Autoconf 2.64
1448 Copyright (C) 2009 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1455 ## ------------------------ ##
1456 ## Autoconf initialization. ##
1457 ## ------------------------ ##
1459 # ac_fn_c_try_compile LINENO
1460 # --------------------------
1461 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1462 ac_fn_c_try_compile ()
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 rm -f conftest.$ac_objext
1466 if { { ac_try="$ac_compile"
1467 case "(($ac_try" in
1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469 *) ac_try_echo=$ac_try;;
1470 esac
1471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472 $as_echo "$ac_try_echo"; } >&5
1473 (eval "$ac_compile") 2>conftest.err
1474 ac_status=$?
1475 if test -s conftest.err; then
1476 grep -v '^ *+' conftest.err >conftest.er1
1477 cat conftest.er1 >&5
1478 mv -f conftest.er1 conftest.err
1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481 test $ac_status = 0; } && {
1482 test -z "$ac_c_werror_flag" ||
1483 test ! -s conftest.err
1484 } && test -s conftest.$ac_objext; then :
1485 ac_retval=0
1486 else
1487 $as_echo "$as_me: failed program was:" >&5
1488 sed 's/^/| /' conftest.$ac_ext >&5
1490 ac_retval=1
1492 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1493 return $ac_retval
1495 } # ac_fn_c_try_compile
1497 # ac_fn_c_try_link LINENO
1498 # -----------------------
1499 # Try to link conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_link ()
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext conftest$ac_exeext
1504 if { { ac_try="$ac_link"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_link") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest$ac_exeext && {
1523 test "$cross_compiling" = yes ||
1524 $as_test_x conftest$ac_exeext
1525 }; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1531 ac_retval=1
1533 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1534 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1535 # interfere with the next link command; also delete a directory that is
1536 # left behind by Apple's compiler. We do this before executing the actions.
1537 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1541 } # ac_fn_c_try_link
1543 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1544 # -------------------------------------------------------
1545 # Tests whether HEADER exists and can be compiled using the include files in
1546 # INCLUDES, setting the cache variable VAR accordingly.
1547 ac_fn_c_check_header_compile ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551 $as_echo_n "checking for $2... " >&6; }
1552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1553 $as_echo_n "(cached) " >&6
1554 else
1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556 /* end confdefs.h. */
1558 #include <$2>
1559 _ACEOF
1560 if ac_fn_c_try_compile "$LINENO"; then :
1561 eval "$3=yes"
1562 else
1563 eval "$3=no"
1565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567 eval ac_res=\$$3
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569 $as_echo "$ac_res" >&6; }
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 } # ac_fn_c_check_header_compile
1574 # ac_fn_c_try_cpp LINENO
1575 # ----------------------
1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_cpp ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_cpp conftest.$ac_ext"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } >/dev/null && {
1596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 return $ac_retval
1609 } # ac_fn_c_try_cpp
1611 # ac_fn_c_try_run LINENO
1612 # ----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614 # that executables *can* be run.
1615 ac_fn_c_try_run ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>&5
1626 ac_status=$?
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629 { { case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_try") 2>&5
1636 ac_status=$?
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; }; }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: program exited with status $ac_status" >&5
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=$ac_status
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 return $ac_retval
1651 } # ac_fn_c_try_run
1653 # ac_fn_c_check_func LINENO FUNC VAR
1654 # ----------------------------------
1655 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1656 ac_fn_c_check_func ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 if test x$gcc_no_link = xyes; then
1665 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1671 #define $2 innocuous_$2
1673 /* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char $2 (); below.
1675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1676 <limits.h> exists even on freestanding compilers. */
1678 #ifdef __STDC__
1679 # include <limits.h>
1680 #else
1681 # include <assert.h>
1682 #endif
1684 #undef $2
1686 /* Override any GCC internal prototype to avoid an error.
1687 Use char because int might match the return type of a GCC
1688 builtin and then its argument prototype would still apply. */
1689 #ifdef __cplusplus
1690 extern "C"
1691 #endif
1692 char $2 ();
1693 /* The GNU C library defines this for functions which it implements
1694 to always fail with ENOSYS. Some functions are actually named
1695 something starting with __ and the normal name is an alias. */
1696 #if defined __stub_$2 || defined __stub___$2
1697 choke me
1698 #endif
1701 main ()
1703 return $2 ();
1705 return 0;
1707 _ACEOF
1708 if ac_fn_c_try_link "$LINENO"; then :
1709 eval "$3=yes"
1710 else
1711 eval "$3=no"
1713 rm -f core conftest.err conftest.$ac_objext \
1714 conftest$ac_exeext conftest.$ac_ext
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 } # ac_fn_c_check_func
1723 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726 # the include files in INCLUDES and setting the cache variable VAR
1727 # accordingly.
1728 ac_fn_c_check_header_mongrel ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1735 $as_echo_n "(cached) " >&6
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 else
1741 # Is the header compilable?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743 $as_echo_n "checking $2 usability... " >&6; }
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 ac_header_compiler=yes
1751 else
1752 ac_header_compiler=no
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756 $as_echo "$ac_header_compiler" >&6; }
1758 # Is the header present?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760 $as_echo_n "checking $2 presence... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_cpp "$LINENO"; then :
1766 ac_header_preproc=yes
1767 else
1768 ac_header_preproc=no
1770 rm -f conftest.err conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772 $as_echo "$ac_header_preproc" >&6; }
1774 # So? What about this header?
1775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776 yes:no: )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 no:yes:* )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1786 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1790 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 esac
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 eval "$3=\$ac_header_compiler"
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 } # ac_fn_c_check_header_mongrel
1809 cat >config.log <<_ACEOF
1810 This file contains any messages produced by compilers while
1811 running configure, to aid debugging if configure makes a mistake.
1813 It was created by package-unused $as_me version-unused, which was
1814 generated by GNU Autoconf 2.64. Invocation command line was
1816 $ $0 $@
1818 _ACEOF
1819 exec 5>>config.log
1821 cat <<_ASUNAME
1822 ## --------- ##
1823 ## Platform. ##
1824 ## --------- ##
1826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1838 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1843 _ASUNAME
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 $as_echo "PATH: $as_dir"
1851 done
1852 IFS=$as_save_IFS
1854 } >&5
1856 cat >&5 <<_ACEOF
1859 ## ----------- ##
1860 ## Core tests. ##
1861 ## ----------- ##
1863 _ACEOF
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1871 ac_configure_args=
1872 ac_configure_args0=
1873 ac_configure_args1=
1874 ac_must_keep_next=false
1875 for ac_pass in 1 2
1877 for ac_arg
1879 case $ac_arg in
1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882 | -silent | --silent | --silen | --sile | --sil)
1883 continue ;;
1884 *\'*)
1885 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 esac
1887 case $ac_pass in
1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1890 as_fn_append ac_configure_args1 " '$ac_arg'"
1891 if test $ac_must_keep_next = true; then
1892 ac_must_keep_next=false # Got value, back to normal.
1893 else
1894 case $ac_arg in
1895 *=* | --config-cache | -C | -disable-* | --disable-* \
1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898 | -with-* | --with-* | -without-* | --without-* | --x)
1899 case "$ac_configure_args0 " in
1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901 esac
1903 -* ) ac_must_keep_next=true ;;
1904 esac
1906 as_fn_append ac_configure_args " '$ac_arg'"
1908 esac
1909 done
1910 done
1911 { ac_configure_args0=; unset ac_configure_args0;}
1912 { ac_configure_args1=; unset ac_configure_args1;}
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log. We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920 # Save into config.log some information that might help in debugging.
1922 echo
1924 cat <<\_ASBOX
1925 ## ---------------- ##
1926 ## Cache variables. ##
1927 ## ---------------- ##
1928 _ASBOX
1929 echo
1930 # The following way of writing the cache mishandles newlines in values,
1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in #(
1935 *${as_nl}*)
1936 case $ac_var in #(
1937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939 esac
1940 case $ac_var in #(
1941 _ | IFS | as_nl) ;; #(
1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943 *) { eval $ac_var=; unset $ac_var;} ;;
1944 esac ;;
1945 esac
1946 done
1947 (set) 2>&1 |
1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949 *${as_nl}ac_space=\ *)
1950 sed -n \
1951 "s/'\''/'\''\\\\'\'''\''/g;
1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953 ;; #(
1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1957 esac |
1958 sort
1960 echo
1962 cat <<\_ASBOX
1963 ## ----------------- ##
1964 ## Output variables. ##
1965 ## ----------------- ##
1966 _ASBOX
1967 echo
1968 for ac_var in $ac_subst_vars
1970 eval ac_val=\$$ac_var
1971 case $ac_val in
1972 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973 esac
1974 $as_echo "$ac_var='\''$ac_val'\''"
1975 done | sort
1976 echo
1978 if test -n "$ac_subst_files"; then
1979 cat <<\_ASBOX
1980 ## ------------------- ##
1981 ## File substitutions. ##
1982 ## ------------------- ##
1983 _ASBOX
1984 echo
1985 for ac_var in $ac_subst_files
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 $as_echo "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1996 if test -s confdefs.h; then
1997 cat <<\_ASBOX
1998 ## ----------- ##
1999 ## confdefs.h. ##
2000 ## ----------- ##
2001 _ASBOX
2002 echo
2003 cat confdefs.h
2004 echo
2006 test "$ac_signal" != 0 &&
2007 $as_echo "$as_me: caught signal $ac_signal"
2008 $as_echo "$as_me: exit $exit_status"
2009 } >&5
2010 rm -f core *.core core.conftest.* &&
2011 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2012 exit $exit_status
2014 for ac_signal in 1 2 13 15; do
2015 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2016 done
2017 ac_signal=0
2019 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2020 rm -f -r conftest* confdefs.h
2022 $as_echo "/* confdefs.h */" > confdefs.h
2024 # Predefined preprocessor variables.
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_NAME "$PACKAGE_NAME"
2028 _ACEOF
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2032 _ACEOF
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2036 _ACEOF
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_STRING "$PACKAGE_STRING"
2040 _ACEOF
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2044 _ACEOF
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_URL "$PACKAGE_URL"
2048 _ACEOF
2051 # Let the site file select an alternate cache file if it wants to.
2052 # Prefer an explicitly selected file to automatically selected ones.
2053 ac_site_file1=NONE
2054 ac_site_file2=NONE
2055 if test -n "$CONFIG_SITE"; then
2056 ac_site_file1=$CONFIG_SITE
2057 elif test "x$prefix" != xNONE; then
2058 ac_site_file1=$prefix/share/config.site
2059 ac_site_file2=$prefix/etc/config.site
2060 else
2061 ac_site_file1=$ac_default_prefix/share/config.site
2062 ac_site_file2=$ac_default_prefix/etc/config.site
2064 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2066 test "x$ac_site_file" = xNONE && continue
2067 if test -r "$ac_site_file"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2069 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2070 sed 's/^/| /' "$ac_site_file" >&5
2071 . "$ac_site_file"
2073 done
2075 if test -r "$cache_file"; then
2076 # Some versions of bash will fail to source /dev/null (special
2077 # files actually), so we avoid doing that.
2078 if test -f "$cache_file"; then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2080 $as_echo "$as_me: loading cache $cache_file" >&6;}
2081 case $cache_file in
2082 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2083 *) . "./$cache_file";;
2084 esac
2086 else
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2088 $as_echo "$as_me: creating cache $cache_file" >&6;}
2089 >$cache_file
2092 # Check that the precious variables saved in the cache have kept the same
2093 # value.
2094 ac_cache_corrupted=false
2095 for ac_var in $ac_precious_vars; do
2096 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2097 eval ac_new_set=\$ac_env_${ac_var}_set
2098 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2099 eval ac_new_val=\$ac_env_${ac_var}_value
2100 case $ac_old_set,$ac_new_set in
2101 set,)
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2104 ac_cache_corrupted=: ;;
2105 ,set)
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2107 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2108 ac_cache_corrupted=: ;;
2109 ,);;
2111 if test "x$ac_old_val" != "x$ac_new_val"; then
2112 # differences in whitespace do not lead to failure.
2113 ac_old_val_w=`echo x $ac_old_val`
2114 ac_new_val_w=`echo x $ac_new_val`
2115 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2117 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2118 ac_cache_corrupted=:
2119 else
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2121 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2122 eval $ac_var=\$ac_old_val
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2125 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2127 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2128 fi;;
2129 esac
2130 # Pass precious variables to config.status.
2131 if test "$ac_new_set" = set; then
2132 case $ac_new_val in
2133 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2134 *) ac_arg=$ac_var=$ac_new_val ;;
2135 esac
2136 case " $ac_configure_args " in
2137 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2138 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2139 esac
2141 done
2142 if $ac_cache_corrupted; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2146 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2147 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2149 ## -------------------- ##
2150 ## Main body of script. ##
2151 ## -------------------- ##
2153 ac_ext=c
2154 ac_cpp='$CPP $CPPFLAGS'
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164 ac_aux_dir=
2165 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2166 for ac_t in install-sh install.sh shtool; do
2167 if test -f "$ac_dir/$ac_t"; then
2168 ac_aux_dir=$ac_dir
2169 ac_install_sh="$ac_aux_dir/$ac_t -c"
2170 break 2
2172 done
2173 done
2174 if test -z "$ac_aux_dir"; then
2175 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2178 # These three variables are undocumented and unsupported,
2179 # and are intended to be withdrawn in a future Autoconf release.
2180 # They can cause serious problems if a builder's source tree is in a directory
2181 # whose full name contains unusual characters.
2182 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2183 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2184 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2187 # Make sure we can run config.sub.
2188 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2189 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2192 $as_echo_n "checking build system type... " >&6; }
2193 if test "${ac_cv_build+set}" = set; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 ac_build_alias=$build_alias
2197 test "x$ac_build_alias" = x &&
2198 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2199 test "x$ac_build_alias" = x &&
2200 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2201 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2202 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2206 $as_echo "$ac_cv_build" >&6; }
2207 case $ac_cv_build in
2208 *-*-*) ;;
2209 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2210 esac
2211 build=$ac_cv_build
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_build
2214 shift
2215 build_cpu=$1
2216 build_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 build_os=$*
2221 IFS=$ac_save_IFS
2222 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2225 case ${build_alias} in
2226 "") build_noncanonical=${build} ;;
2227 *) build_noncanonical=${build_alias} ;;
2228 esac
2230 case ${host_alias} in
2231 "") host_noncanonical=${build_noncanonical} ;;
2232 *) host_noncanonical=${host_alias} ;;
2233 esac
2235 case ${target_alias} in
2236 "") target_noncanonical=${host_noncanonical} ;;
2237 *) target_noncanonical=${target_alias} ;;
2238 esac
2241 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2242 # have matching libraries, they should use host libraries: Makefile.tpl
2243 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2244 # However, they still use the build modules, because the corresponding
2245 # host modules (e.g. bison) are only built for the host when bootstrap
2246 # finishes. So:
2247 # - build_subdir is where we find build modules, and never changes.
2248 # - build_libsubdir is where we find build libraries, and can be overridden.
2250 # Prefix 'build-' so this never conflicts with target_subdir.
2251 build_subdir="build-${build_noncanonical}"
2253 # Check whether --with-build-libsubdir was given.
2254 if test "${with_build_libsubdir+set}" = set; then :
2255 withval=$with_build_libsubdir; build_libsubdir="$withval"
2256 else
2257 build_libsubdir="$build_subdir"
2260 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2261 if ( test $srcdir = . && test -d gcc ) \
2262 || test -d $srcdir/../host-${host_noncanonical}; then
2263 host_subdir="host-${host_noncanonical}"
2264 else
2265 host_subdir=.
2267 # No prefix.
2268 target_subdir=${target_noncanonical}
2271 # We need the following definitions because AC_PROG_LIBTOOL relies on them
2272 PACKAGE=libobjc
2273 # Version is pulled out to make it a bit easier to change using sed.
2274 VERSION=4:0:0
2277 # This works around the fact that libtool configuration may change LD
2278 # for this particular configuration, but some shells, instead of
2279 # keeping the changes in LD private, export them just because LD is
2280 # exported.
2281 ORIGINAL_LD_FOR_MULTILIBS=$LD
2283 # -------
2284 # Options
2285 # -------
2287 # We use these options to decide which functions to include.
2289 # Check whether --with-target-subdir was given.
2290 if test "${with_target_subdir+set}" = set; then :
2291 withval=$with_target_subdir;
2295 # Check whether --with-cross-host was given.
2296 if test "${with_cross_host+set}" = set; then :
2297 withval=$with_cross_host;
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2302 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2303 # Check whether --enable-version-specific-runtime-libs was given.
2304 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2305 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2306 yes) version_specific_libs=yes ;;
2307 no) version_specific_libs=no ;;
2308 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2309 esac
2310 else
2311 version_specific_libs=no
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2315 $as_echo "$version_specific_libs" >&6; }
2317 # Check whether --enable-objc-gc was given.
2318 if test "${enable_objc_gc+set}" = set; then :
2319 enableval=$enable_objc_gc; case $enable_objc_gc in
2321 OBJC_GCFLAGS=''
2322 OBJC_BOEHM_GC=''
2323 OBJC_BOEHM_GC_INCLUDES=''
2326 OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
2327 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
2328 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
2330 esac
2331 else
2332 OBJC_GCFLAGS=''; OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
2339 # -----------
2340 # Directories
2341 # -----------
2343 # Find the rest of the source tree framework.
2344 # Default to --enable-multilib
2345 # Check whether --enable-multilib was given.
2346 if test "${enable_multilib+set}" = set; then :
2347 enableval=$enable_multilib; case "$enableval" in
2348 yes) multilib=yes ;;
2349 no) multilib=no ;;
2350 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2351 esac
2352 else
2353 multilib=yes
2357 # We may get other options which we leave undocumented:
2358 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2359 # See config-ml.in if you want the gory details.
2361 if test "$srcdir" = "."; then
2362 if test "$with_target_subdir" != "."; then
2363 multi_basedir="$srcdir/$with_multisrctop../.."
2364 else
2365 multi_basedir="$srcdir/$with_multisrctop.."
2367 else
2368 multi_basedir="$srcdir/.."
2372 # Even if the default multilib is not a cross compilation,
2373 # it may be that some of the other multilibs are.
2374 if test $cross_compiling = no && test $multilib = yes \
2375 && test "x${with_multisubdir}" != x ; then
2376 cross_compiling=maybe
2379 ac_config_commands="$ac_config_commands default-1"
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2383 $as_echo_n "checking host system type... " >&6; }
2384 if test "${ac_cv_host+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$host_alias" = x; then
2388 ac_cv_host=$ac_cv_build
2389 else
2390 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2396 $as_echo "$ac_cv_host" >&6; }
2397 case $ac_cv_host in
2398 *-*-*) ;;
2399 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2400 esac
2401 host=$ac_cv_host
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_host
2404 shift
2405 host_cpu=$1
2406 host_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 host_os=$*
2411 IFS=$ac_save_IFS
2412 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2416 $as_echo_n "checking target system type... " >&6; }
2417 if test "${ac_cv_target+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test "x$target_alias" = x; then
2421 ac_cv_target=$ac_cv_host
2422 else
2423 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2424 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2429 $as_echo "$ac_cv_target" >&6; }
2430 case $ac_cv_target in
2431 *-*-*) ;;
2432 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2433 esac
2434 target=$ac_cv_target
2435 ac_save_IFS=$IFS; IFS='-'
2436 set x $ac_cv_target
2437 shift
2438 target_cpu=$1
2439 target_vendor=$2
2440 shift; shift
2441 # Remember, the first character of IFS is used to create $*,
2442 # except with old shells:
2443 target_os=$*
2444 IFS=$ac_save_IFS
2445 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2448 # The aliases save the names the user supplied, while $host etc.
2449 # will get canonicalized.
2450 test -n "$target_alias" &&
2451 test "$program_prefix$program_suffix$program_transform_name" = \
2452 NONENONEs,x,x, &&
2453 program_prefix=${target_alias}-
2458 # Export source directory.
2459 # These need to be absolute paths, yet at the same time need to
2460 # canonicalize only relative paths, because then amd will not unmount
2461 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2462 case $srcdir in
2463 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2464 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2465 esac
2468 # Calculate toolexeclibdir
2469 # Also toolexecdir, though it's only used in toolexeclibdir
2470 case ${version_specific_libs} in
2471 yes)
2472 # Need the gcc compiler version to know where to install libraries
2473 # and header files if --enable-version-specific-runtime-libs option
2474 # is selected.
2475 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2476 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2479 if test -n "$with_cross_host" &&
2480 test x"$with_cross_host" != x"no"; then
2481 # Install a library built with a cross compiler in tooldir, not libdir.
2482 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2483 toolexeclibdir='$(toolexecdir)/lib'
2484 else
2485 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2486 toolexeclibdir='$(libdir)'
2488 multi_os_directory=`$CC -print-multi-os-directory`
2489 case $multi_os_directory in
2490 .) ;; # Avoid trailing /.
2491 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2492 esac
2494 esac
2498 # Figure out if we want to name the include directory and the
2499 # library name changes differently.
2500 includedirname=include
2501 libsuffix=
2502 case "${host}" in
2503 *-darwin*)
2504 # Darwin is the only target so far that needs a different include directory.
2505 includedirname=include-gnu-runtime
2506 libsuffix=-gnu
2508 esac
2512 ac_config_headers="$ac_config_headers config.h"
2515 # --------
2516 # Programs
2517 # --------
2521 # We must force CC to /not/ be a precious variable; otherwise
2522 # the wrong, non-multilib-adjusted value will be used in multilibs.
2523 # As a side effect, we have to subst CFLAGS ourselves.
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2553 done
2554 done
2555 IFS=$as_save_IFS
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562 $as_echo "$CC" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2570 if test -z "$ac_cv_prog_CC"; then
2571 ac_ct_CC=$CC
2572 # Extract the first word of "gcc", so it can be a program name with args.
2573 set dummy gcc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$ac_ct_CC"; then
2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_ac_ct_CC="gcc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600 if test -n "$ac_ct_CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602 $as_echo "$ac_ct_CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2608 if test "x$ac_ct_CC" = x; then
2609 CC=""
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612 yes:)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2615 ac_tool_warned=yes ;;
2616 esac
2617 CC=$ac_ct_CC
2619 else
2620 CC="$ac_cv_prog_CC"
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 ac_prog_rejected=no
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2685 continue
2687 ac_cv_prog_CC="cc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2695 if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2698 shift
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2703 shift
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754 $as_echo "$CC" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$CC" && break
2762 done
2764 if test -z "$CC"; then
2765 ac_ct_CC=$CC
2766 for ac_prog in cl.exe
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798 $as_echo "$ac_ct_CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$ac_ct_CC" && break
2806 done
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2824 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error "no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details." "$LINENO" 5; }
2829 # Provide some information about the compiler.
2830 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2831 set X $ac_compile
2832 ac_compiler=$2
2833 for ac_option in --version -v -V -qversion; do
2834 { { ac_try="$ac_compiler $ac_option >&5"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2842 ac_status=$?
2843 if test -s conftest.err; then
2844 sed '10a\
2845 ... rest of stderr output deleted ...
2846 10q' conftest.err >conftest.er1
2847 cat conftest.er1 >&5
2848 rm -f conftest.er1 conftest.err
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }
2852 done
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2858 main ()
2862 return 0;
2864 _ACEOF
2865 # FIXME: Cleanup?
2866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2867 (eval $ac_link) 2>&5
2868 ac_status=$?
2869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2870 test $ac_status = 0; }; then :
2871 gcc_no_link=no
2872 else
2873 gcc_no_link=yes
2875 if test x$gcc_no_link = xyes; then
2876 # Setting cross_compile will disable run tests; it will
2877 # also disable AC_CHECK_FILE but that's generally
2878 # correct if we can't link.
2879 cross_compiling=yes
2880 EXEEXT=
2881 else
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883 /* end confdefs.h. */
2886 main ()
2890 return 0;
2892 _ACEOF
2893 ac_clean_files_save=$ac_clean_files
2894 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2895 # Try to create an executable without -o first, disregard a.out.
2896 # It will help us diagnose broken compilers, and finding out an intuition
2897 # of exeext.
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2899 $as_echo_n "checking for C compiler default output file name... " >&6; }
2900 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2902 # The possible output files:
2903 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2905 ac_rmfiles=
2906 for ac_file in $ac_files
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2910 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2911 esac
2912 done
2913 rm -f $ac_rmfiles
2915 if { { ac_try="$ac_link_default"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921 $as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_link_default") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; then :
2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2929 # so that the user can short-circuit this test for compilers unknown to
2930 # Autoconf.
2931 for ac_file in $ac_files ''
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2937 [ab].out )
2938 # We found the default executable, but exeext='' is most
2939 # certainly right.
2940 break;;
2941 *.* )
2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2943 then :; else
2944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 # We set ac_cv_exeext here because the later test for it is not
2947 # safe: cross compilers may not add the suffix if given an `-o'
2948 # argument, so we may need to know it at that point already.
2949 # Even if this section looks crufty: it has the advantage of
2950 # actually working.
2951 break;;
2953 break;;
2954 esac
2955 done
2956 test "$ac_cv_exeext" = no && ac_cv_exeext=
2958 else
2959 ac_file=''
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2962 $as_echo "$ac_file" >&6; }
2963 if test -z "$ac_file"; then :
2964 $as_echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 { as_fn_set_status 77
2970 as_fn_error "C compiler cannot create executables
2971 See \`config.log' for more details." "$LINENO" 5; }; }
2973 ac_exeext=$ac_cv_exeext
2975 # Check that the compiler produces executables we can run. If not, either
2976 # the compiler is broken, or we cross compile.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2978 $as_echo_n "checking whether the C compiler works... " >&6; }
2979 # If not cross compiling, check that we can run a simple program.
2980 if test "$cross_compiling" != yes; then
2981 if { ac_try='./$ac_file'
2982 { { case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987 $as_echo "$ac_try_echo"; } >&5
2988 (eval "$ac_try") 2>&5
2989 ac_status=$?
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }; }; then
2992 cross_compiling=no
2993 else
2994 if test "$cross_compiling" = maybe; then
2995 cross_compiling=yes
2996 else
2997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error "cannot run C compiled programs.
3000 If you meant to cross compile, use \`--host'.
3001 See \`config.log' for more details." "$LINENO" 5; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3008 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3009 ac_clean_files=$ac_clean_files_save
3010 # Check that the compiler produces executables we can run. If not, either
3011 # the compiler is broken, or we cross compile.
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3013 $as_echo_n "checking whether we are cross compiling... " >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3015 $as_echo "$cross_compiling" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3018 $as_echo_n "checking for suffix of executables... " >&6; }
3019 if { { ac_try="$ac_link"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }; then :
3030 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3031 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3032 # work properly (i.e., refer to `conftest.exe'), while it won't with
3033 # `rm'.
3034 for ac_file in conftest.exe conftest conftest.*; do
3035 test -f "$ac_file" || continue
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039 break;;
3040 * ) break;;
3041 esac
3042 done
3043 else
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error "cannot compute suffix of executables: cannot compile and link
3047 See \`config.log' for more details." "$LINENO" 5; }
3049 rm -f conftest$ac_cv_exeext
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3051 $as_echo "$ac_cv_exeext" >&6; }
3053 rm -f conftest.$ac_ext
3054 EXEEXT=$ac_cv_exeext
3055 ac_exeext=$EXEEXT
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3058 $as_echo_n "checking for suffix of object files... " >&6; }
3059 if test "${ac_cv_objext+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3066 main ()
3070 return 0;
3072 _ACEOF
3073 rm -f conftest.o conftest.obj
3074 if { { ac_try="$ac_compile"
3075 case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_compile") 2>&5
3082 ac_status=$?
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; then :
3085 for ac_file in conftest.o conftest.obj conftest.*; do
3086 test -f "$ac_file" || continue;
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3090 break;;
3091 esac
3092 done
3093 else
3094 $as_echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 as_fn_error "cannot compute suffix of object files: cannot compile
3100 See \`config.log' for more details." "$LINENO" 5; }
3102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3105 $as_echo "$ac_cv_objext" >&6; }
3106 OBJEXT=$ac_cv_objext
3107 ac_objext=$OBJEXT
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3110 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3117 main ()
3119 #ifndef __GNUC__
3120 choke me
3121 #endif
3124 return 0;
3126 _ACEOF
3127 if ac_fn_c_try_compile "$LINENO"; then :
3128 ac_compiler_gnu=yes
3129 else
3130 ac_compiler_gnu=no
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3138 if test $ac_compiler_gnu = yes; then
3139 GCC=yes
3140 else
3141 GCC=
3143 ac_test_CFLAGS=${CFLAGS+set}
3144 ac_save_CFLAGS=$CFLAGS
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3147 if test "${ac_cv_prog_cc_g+set}" = set; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 ac_save_c_werror_flag=$ac_c_werror_flag
3151 ac_c_werror_flag=yes
3152 ac_cv_prog_cc_g=no
3153 CFLAGS="-g"
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3158 main ()
3162 return 0;
3164 _ACEOF
3165 if ac_fn_c_try_compile "$LINENO"; then :
3166 ac_cv_prog_cc_g=yes
3167 else
3168 CFLAGS=""
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 if ac_fn_c_try_compile "$LINENO"; then :
3182 else
3183 ac_c_werror_flag=$ac_save_c_werror_flag
3184 CFLAGS="-g"
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3189 main ()
3193 return 0;
3195 _ACEOF
3196 if ac_fn_c_try_compile "$LINENO"; then :
3197 ac_cv_prog_cc_g=yes
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3207 $as_echo "$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3212 CFLAGS="-g -O2"
3213 else
3214 CFLAGS="-g"
3216 else
3217 if test "$GCC" = yes; then
3218 CFLAGS="-O2"
3219 else
3220 CFLAGS=
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3225 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 ac_cv_prog_cc_c89=no
3229 ac_save_CC=$CC
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3232 #include <stdarg.h>
3233 #include <stdio.h>
3234 #include <sys/types.h>
3235 #include <sys/stat.h>
3236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237 struct buf { int x; };
3238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239 static char *e (p, i)
3240 char **p;
3241 int i;
3243 return p[i];
3245 static char *f (char * (*g) (char **, int), char **p, ...)
3247 char *s;
3248 va_list v;
3249 va_start (v,p);
3250 s = g (p, va_arg (v,int));
3251 va_end (v);
3252 return s;
3255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
3258 as 'x'. The following induces an error, until -std is added to get
3259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
3261 that's true only with -std. */
3262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265 inside strings and character constants. */
3266 #define FOO(x) 'x'
3267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3269 int test (int i, double x);
3270 struct s1 {int (*f) (int a);};
3271 struct s2 {int (*f) (double a);};
3272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 int argc;
3274 char **argv;
3276 main ()
3278 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 return 0;
3282 _ACEOF
3283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 CC="$ac_save_CC $ac_arg"
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_cv_prog_cc_c89=$ac_arg
3290 rm -f core conftest.err conftest.$ac_objext
3291 test "x$ac_cv_prog_cc_c89" != "xno" && break
3292 done
3293 rm -f conftest.$ac_ext
3294 CC=$ac_save_CC
3297 # AC_CACHE_VAL
3298 case "x$ac_cv_prog_cc_c89" in
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3301 $as_echo "none needed" >&6; } ;;
3302 xno)
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3304 $as_echo "unsupported" >&6; } ;;
3306 CC="$CC $ac_cv_prog_cc_c89"
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3308 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3309 esac
3310 if test "x$ac_cv_prog_cc_c89" != xno; then :
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 # extra LD Flags which are required for targets
3326 case $host in
3327 *-cygwin* | *-mingw*)
3328 # 'host' will be top-level target in the case of a target lib,
3329 # we must compare to with_cross_host to decide if this is a native
3330 # or cross-compiler and select where to install dlls appropriately.
3331 if test -n "$with_cross_host" &&
3332 test x"$with_cross_host" != x"no"; then
3333 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
3334 else
3335 lt_host_flags='-no-undefined -bindir "$(bindir)"';
3339 lt_host_flags=
3341 esac
3345 case "${host}" in
3346 *-darwin*)
3347 # Darwin needs -single_module when linking libobjc
3348 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
3350 *-cygwin*|*-mingw*)
3351 # Tell libtool to build DLLs on Windows
3352 extra_ldflags_libobjc='$(lt_host_flags)'
3354 esac
3359 if test -n "$ac_tool_prefix"; then
3360 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}as; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_AS+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$AS"; then
3368 ac_cv_prog_AS="$AS" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_AS="${ac_tool_prefix}as"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3381 done
3382 done
3383 IFS=$as_save_IFS
3387 AS=$ac_cv_prog_AS
3388 if test -n "$AS"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3390 $as_echo "$AS" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3398 if test -z "$ac_cv_prog_AS"; then
3399 ac_ct_AS=$AS
3400 # Extract the first word of "as", so it can be a program name with args.
3401 set dummy as; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -n "$ac_ct_AS"; then
3408 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_ac_ct_AS="as"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3421 done
3422 done
3423 IFS=$as_save_IFS
3427 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3428 if test -n "$ac_ct_AS"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3430 $as_echo "$ac_ct_AS" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3436 if test "x$ac_ct_AS" = x; then
3437 AS=""
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 AS=$ac_ct_AS
3447 else
3448 AS="$ac_cv_prog_AS"
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}ar; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_AR+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$AR"; then
3460 ac_cv_prog_AR="$AR" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_AR="${ac_tool_prefix}ar"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3473 done
3474 done
3475 IFS=$as_save_IFS
3479 AR=$ac_cv_prog_AR
3480 if test -n "$AR"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3482 $as_echo "$AR" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3490 if test -z "$ac_cv_prog_AR"; then
3491 ac_ct_AR=$AR
3492 # Extract the first word of "ar", so it can be a program name with args.
3493 set dummy ar; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$ac_ct_AR"; then
3500 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_AR="ar"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3513 done
3514 done
3515 IFS=$as_save_IFS
3519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3520 if test -n "$ac_ct_AR"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3522 $as_echo "$ac_ct_AR" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3528 if test "x$ac_ct_AR" = x; then
3529 AR=""
3530 else
3531 case $cross_compiling:$ac_tool_warned in
3532 yes:)
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537 AR=$ac_ct_AR
3539 else
3540 AR="$ac_cv_prog_AR"
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$RANLIB"; then
3552 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3567 IFS=$as_save_IFS
3571 RANLIB=$ac_cv_prog_RANLIB
3572 if test -n "$RANLIB"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3574 $as_echo "$RANLIB" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3582 if test -z "$ac_cv_prog_RANLIB"; then
3583 ac_ct_RANLIB=$RANLIB
3584 # Extract the first word of "ranlib", so it can be a program name with args.
3585 set dummy ranlib; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$ac_ct_RANLIB"; then
3592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_ac_ct_RANLIB="ranlib"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3612 if test -n "$ac_ct_RANLIB"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3614 $as_echo "$ac_ct_RANLIB" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3620 if test "x$ac_ct_RANLIB" = x; then
3621 RANLIB=":"
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 RANLIB=$ac_ct_RANLIB
3631 else
3632 RANLIB="$ac_cv_prog_RANLIB"
3635 # Find a good install program. We prefer a C program (faster),
3636 # so one script is as good as another. But avoid the broken or
3637 # incompatible versions:
3638 # SysV /etc/install, /usr/sbin/install
3639 # SunOS /usr/etc/install
3640 # IRIX /sbin/install
3641 # AIX /bin/install
3642 # AmigaOS /C/install, which installs bootblocks on floppy discs
3643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3646 # OS/2's system install, which has a completely different semantic
3647 # ./install, which can be erroneously created by make from ./install.sh.
3648 # Reject install programs that cannot install multiple files.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3650 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3651 if test -z "$INSTALL"; then
3652 if test "${ac_cv_path_install+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 # Account for people who put trailing slashes in PATH elements.
3661 case $as_dir/ in #((
3662 ./ | .// | /[cC]/* | \
3663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3664 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3665 /usr/ucb/* ) ;;
3667 # OSF1 and SCO ODT 3.0 have their own names for install.
3668 # Don't use installbsd from OSF since it installs stuff as root
3669 # by default.
3670 for ac_prog in ginstall scoinst install; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3673 if test $ac_prog = install &&
3674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675 # AIX install. It has an incompatible calling convention.
3677 elif test $ac_prog = install &&
3678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # program-specific install script used by HP pwplus--don't use.
3681 else
3682 rm -rf conftest.one conftest.two conftest.dir
3683 echo one > conftest.one
3684 echo two > conftest.two
3685 mkdir conftest.dir
3686 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3687 test -s conftest.one && test -s conftest.two &&
3688 test -s conftest.dir/conftest.one &&
3689 test -s conftest.dir/conftest.two
3690 then
3691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3692 break 3
3696 done
3697 done
3699 esac
3701 done
3702 IFS=$as_save_IFS
3704 rm -rf conftest.one conftest.two conftest.dir
3707 if test "${ac_cv_path_install+set}" = set; then
3708 INSTALL=$ac_cv_path_install
3709 else
3710 # As a last resort, use the slow shell script. Don't cache a
3711 # value for INSTALL within a source directory, because that will
3712 # break other packages using the cache if that directory is
3713 # removed, or if the value is a relative name.
3714 INSTALL=$ac_install_sh
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3718 $as_echo "$INSTALL" >&6; }
3720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3721 # It thinks the first close brace ends the variable substitution.
3722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3731 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3732 # Check whether --enable-maintainer-mode was given.
3733 if test "${enable_maintainer_mode+set}" = set; then :
3734 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3735 else
3736 USE_MAINTAINER_MODE=no
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3740 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3741 if test $USE_MAINTAINER_MODE = yes; then
3742 MAINTAINER_MODE_TRUE=
3743 MAINTAINER_MODE_FALSE='#'
3744 else
3745 MAINTAINER_MODE_TRUE='#'
3746 MAINTAINER_MODE_FALSE=
3749 MAINT=$MAINTAINER_MODE_TRUE
3753 # Enable Win32 DLL on MS Windows - FIXME
3754 enable_win32_dll=yes
3756 case $host in
3757 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}as; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_AS+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$AS"; then
3767 ac_cv_prog_AS="$AS" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_AS="${ac_tool_prefix}as"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3780 done
3781 done
3782 IFS=$as_save_IFS
3786 AS=$ac_cv_prog_AS
3787 if test -n "$AS"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3789 $as_echo "$AS" >&6; }
3790 else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3797 if test -z "$ac_cv_prog_AS"; then
3798 ac_ct_AS=$AS
3799 # Extract the first word of "as", so it can be a program name with args.
3800 set dummy as; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$ac_ct_AS"; then
3807 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_AS="as"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3820 done
3821 done
3822 IFS=$as_save_IFS
3826 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3827 if test -n "$ac_ct_AS"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3829 $as_echo "$ac_ct_AS" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3835 if test "x$ac_ct_AS" = x; then
3836 AS="false"
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844 AS=$ac_ct_AS
3846 else
3847 AS="$ac_cv_prog_AS"
3850 if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3852 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if test -n "$DLLTOOL"; then
3859 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3872 done
3873 done
3874 IFS=$as_save_IFS
3878 DLLTOOL=$ac_cv_prog_DLLTOOL
3879 if test -n "$DLLTOOL"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3881 $as_echo "$DLLTOOL" >&6; }
3882 else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3889 if test -z "$ac_cv_prog_DLLTOOL"; then
3890 ac_ct_DLLTOOL=$DLLTOOL
3891 # Extract the first word of "dlltool", so it can be a program name with args.
3892 set dummy dlltool; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$ac_ct_DLLTOOL"; then
3899 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3914 IFS=$as_save_IFS
3918 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3919 if test -n "$ac_ct_DLLTOOL"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3921 $as_echo "$ac_ct_DLLTOOL" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3927 if test "x$ac_ct_DLLTOOL" = x; then
3928 DLLTOOL="false"
3929 else
3930 case $cross_compiling:$ac_tool_warned in
3931 yes:)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3934 ac_tool_warned=yes ;;
3935 esac
3936 DLLTOOL=$ac_ct_DLLTOOL
3938 else
3939 DLLTOOL="$ac_cv_prog_DLLTOOL"
3942 if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3944 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -n "$OBJDUMP"; then
3951 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3964 done
3965 done
3966 IFS=$as_save_IFS
3970 OBJDUMP=$ac_cv_prog_OBJDUMP
3971 if test -n "$OBJDUMP"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3973 $as_echo "$OBJDUMP" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3981 if test -z "$ac_cv_prog_OBJDUMP"; then
3982 ac_ct_OBJDUMP=$OBJDUMP
3983 # Extract the first word of "objdump", so it can be a program name with args.
3984 set dummy objdump; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_OBJDUMP"; then
3991 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4010 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4011 if test -n "$ac_ct_OBJDUMP"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4013 $as_echo "$ac_ct_OBJDUMP" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4019 if test "x$ac_ct_OBJDUMP" = x; then
4020 OBJDUMP="false"
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028 OBJDUMP=$ac_ct_OBJDUMP
4030 else
4031 OBJDUMP="$ac_cv_prog_OBJDUMP"
4035 esac
4037 test -z "$AS" && AS=as
4043 test -z "$DLLTOOL" && DLLTOOL=dlltool
4049 test -z "$OBJDUMP" && OBJDUMP=objdump
4058 case `pwd` in
4059 *\ * | *\ *)
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4061 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4062 esac
4066 macro_version='2.2.7a'
4067 macro_revision='1.3134'
4081 ltmain="$ac_aux_dir/ltmain.sh"
4083 # Backslashify metacharacters that are still active within
4084 # double-quoted strings.
4085 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4087 # Same as above, but do not quote variable references.
4088 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4090 # Sed substitution to delay expansion of an escaped shell variable in a
4091 # double_quote_subst'ed string.
4092 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4094 # Sed substitution to delay expansion of an escaped single quote.
4095 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4097 # Sed substitution to avoid accidental globbing in evaled expressions
4098 no_glob_subst='s/\*/\\\*/g'
4100 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4101 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4102 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4105 $as_echo_n "checking how to print strings... " >&6; }
4106 # Test print first, because it will be a builtin if present.
4107 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4108 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4109 ECHO='print -r --'
4110 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4111 ECHO='printf %s\n'
4112 else
4113 # Use this function as a fallback that always works.
4114 func_fallback_echo ()
4116 eval 'cat <<_LTECHO_EOF
4118 _LTECHO_EOF'
4120 ECHO='func_fallback_echo'
4123 # func_echo_all arg...
4124 # Invoke $ECHO with all args, space-separated.
4125 func_echo_all ()
4127 $ECHO ""
4130 case "$ECHO" in
4131 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4132 $as_echo "printf" >&6; } ;;
4133 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4134 $as_echo "print -r" >&6; } ;;
4135 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4136 $as_echo "cat" >&6; } ;;
4137 esac
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4153 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4154 if test "${ac_cv_path_SED+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4158 for ac_i in 1 2 3 4 5 6 7; do
4159 ac_script="$ac_script$as_nl$ac_script"
4160 done
4161 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4162 { ac_script=; unset ac_script;}
4163 if test -z "$SED"; then
4164 ac_path_SED_found=false
4165 # Loop through the user's path and test for each of PROGNAME-LIST
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_prog in sed gsed; do
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4174 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4175 # Check for GNU ac_path_SED and select it if it is found.
4176 # Check for GNU $ac_path_SED
4177 case `"$ac_path_SED" --version 2>&1` in
4178 *GNU*)
4179 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4181 ac_count=0
4182 $as_echo_n 0123456789 >"conftest.in"
4183 while :
4185 cat "conftest.in" "conftest.in" >"conftest.tmp"
4186 mv "conftest.tmp" "conftest.in"
4187 cp "conftest.in" "conftest.nl"
4188 $as_echo '' >> "conftest.nl"
4189 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4191 as_fn_arith $ac_count + 1 && ac_count=$as_val
4192 if test $ac_count -gt ${ac_path_SED_max-0}; then
4193 # Best one so far, save it but keep looking for a better one
4194 ac_cv_path_SED="$ac_path_SED"
4195 ac_path_SED_max=$ac_count
4197 # 10*(2^10) chars as input seems more than enough
4198 test $ac_count -gt 10 && break
4199 done
4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201 esac
4203 $ac_path_SED_found && break 3
4204 done
4205 done
4206 done
4207 IFS=$as_save_IFS
4208 if test -z "$ac_cv_path_SED"; then
4209 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4211 else
4212 ac_cv_path_SED=$SED
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4217 $as_echo "$ac_cv_path_SED" >&6; }
4218 SED="$ac_cv_path_SED"
4219 rm -f conftest.sed
4221 test -z "$SED" && SED=sed
4222 Xsed="$SED -e 1s/^X//"
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4236 if test "${ac_cv_path_GREP+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -z "$GREP"; then
4240 ac_path_GREP_found=false
4241 # Loop through the user's path and test for each of PROGNAME-LIST
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_prog in grep ggrep; do
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251 # Check for GNU ac_path_GREP and select it if it is found.
4252 # Check for GNU $ac_path_GREP
4253 case `"$ac_path_GREP" --version 2>&1` in
4254 *GNU*)
4255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4257 ac_count=0
4258 $as_echo_n 0123456789 >"conftest.in"
4259 while :
4261 cat "conftest.in" "conftest.in" >"conftest.tmp"
4262 mv "conftest.tmp" "conftest.in"
4263 cp "conftest.in" "conftest.nl"
4264 $as_echo 'GREP' >> "conftest.nl"
4265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267 as_fn_arith $ac_count + 1 && ac_count=$as_val
4268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269 # Best one so far, save it but keep looking for a better one
4270 ac_cv_path_GREP="$ac_path_GREP"
4271 ac_path_GREP_max=$ac_count
4273 # 10*(2^10) chars as input seems more than enough
4274 test $ac_count -gt 10 && break
4275 done
4276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 esac
4279 $ac_path_GREP_found && break 3
4280 done
4281 done
4282 done
4283 IFS=$as_save_IFS
4284 if test -z "$ac_cv_path_GREP"; then
4285 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4287 else
4288 ac_cv_path_GREP=$GREP
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294 GREP="$ac_cv_path_GREP"
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if test "${ac_cv_path_EGREP+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303 then ac_cv_path_EGREP="$GREP -E"
4304 else
4305 if test -z "$EGREP"; then
4306 ac_path_EGREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in egrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318 # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4320 *GNU*)
4321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4323 ac_count=0
4324 $as_echo_n 0123456789 >"conftest.in"
4325 while :
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'EGREP' >> "conftest.nl"
4331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_EGREP="$ac_path_EGREP"
4337 ac_path_EGREP_max=$ac_count
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4341 done
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4345 $ac_path_EGREP_found && break 3
4346 done
4347 done
4348 done
4349 IFS=$as_save_IFS
4350 if test -z "$ac_cv_path_EGREP"; then
4351 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353 else
4354 ac_cv_path_EGREP=$EGREP
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4360 $as_echo "$ac_cv_path_EGREP" >&6; }
4361 EGREP="$ac_cv_path_EGREP"
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4365 $as_echo_n "checking for fgrep... " >&6; }
4366 if test "${ac_cv_path_FGREP+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4370 then ac_cv_path_FGREP="$GREP -F"
4371 else
4372 if test -z "$FGREP"; then
4373 ac_path_FGREP_found=false
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_prog in fgrep; do
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4383 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4384 # Check for GNU ac_path_FGREP and select it if it is found.
4385 # Check for GNU $ac_path_FGREP
4386 case `"$ac_path_FGREP" --version 2>&1` in
4387 *GNU*)
4388 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4390 ac_count=0
4391 $as_echo_n 0123456789 >"conftest.in"
4392 while :
4394 cat "conftest.in" "conftest.in" >"conftest.tmp"
4395 mv "conftest.tmp" "conftest.in"
4396 cp "conftest.in" "conftest.nl"
4397 $as_echo 'FGREP' >> "conftest.nl"
4398 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400 as_fn_arith $ac_count + 1 && ac_count=$as_val
4401 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4402 # Best one so far, save it but keep looking for a better one
4403 ac_cv_path_FGREP="$ac_path_FGREP"
4404 ac_path_FGREP_max=$ac_count
4406 # 10*(2^10) chars as input seems more than enough
4407 test $ac_count -gt 10 && break
4408 done
4409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410 esac
4412 $ac_path_FGREP_found && break 3
4413 done
4414 done
4415 done
4416 IFS=$as_save_IFS
4417 if test -z "$ac_cv_path_FGREP"; then
4418 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4420 else
4421 ac_cv_path_FGREP=$FGREP
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4427 $as_echo "$ac_cv_path_FGREP" >&6; }
4428 FGREP="$ac_cv_path_FGREP"
4431 test -z "$GREP" && GREP=grep
4451 # Check whether --with-gnu-ld was given.
4452 if test "${with_gnu_ld+set}" = set; then :
4453 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4454 else
4455 with_gnu_ld=no
4458 ac_prog=ld
4459 if test "$GCC" = yes; then
4460 # Check if gcc -print-prog-name=ld gives a path.
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4462 $as_echo_n "checking for ld used by $CC... " >&6; }
4463 case $host in
4464 *-*-mingw*)
4465 # gcc leaves a trailing carriage return which upsets mingw
4466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4469 esac
4470 case $ac_prog in
4471 # Accept absolute paths.
4472 [\\/]* | ?:[\\/]*)
4473 re_direlt='/[^/][^/]*/\.\./'
4474 # Canonicalize the pathname of ld
4475 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4476 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4477 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4478 done
4479 test -z "$LD" && LD="$ac_prog"
4482 # If it fails, then pretend we aren't using GCC.
4483 ac_prog=ld
4486 # If it is relative, then search for the first ld in PATH.
4487 with_gnu_ld=unknown
4489 esac
4490 elif test "$with_gnu_ld" = yes; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4492 $as_echo_n "checking for GNU ld... " >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4495 $as_echo_n "checking for non-GNU ld... " >&6; }
4497 if test "${lt_cv_path_LD+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -z "$LD"; then
4501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4502 for ac_dir in $PATH; do
4503 IFS="$lt_save_ifs"
4504 test -z "$ac_dir" && ac_dir=.
4505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4506 lt_cv_path_LD="$ac_dir/$ac_prog"
4507 # Check to see if the program is GNU ld. I'd rather use --version,
4508 # but apparently some variants of GNU ld only accept -v.
4509 # Break only if it was the GNU/non-GNU ld that we prefer.
4510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4511 *GNU* | *'with BFD'*)
4512 test "$with_gnu_ld" != no && break
4515 test "$with_gnu_ld" != yes && break
4517 esac
4519 done
4520 IFS="$lt_save_ifs"
4521 else
4522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4526 LD="$lt_cv_path_LD"
4527 if test -n "$LD"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4529 $as_echo "$LD" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4534 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4536 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4537 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4541 case `$LD -v 2>&1 </dev/null` in
4542 *GNU* | *'with BFD'*)
4543 lt_cv_prog_gnu_ld=yes
4546 lt_cv_prog_gnu_ld=no
4548 esac
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4551 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4552 with_gnu_ld=$lt_cv_prog_gnu_ld
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4563 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4564 if test "${lt_cv_path_NM+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$NM"; then
4568 # Let the user override the test.
4569 lt_cv_path_NM="$NM"
4570 else
4571 lt_nm_to_check="${ac_tool_prefix}nm"
4572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4573 lt_nm_to_check="$lt_nm_to_check nm"
4575 for lt_tmp_nm in $lt_nm_to_check; do
4576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4578 IFS="$lt_save_ifs"
4579 test -z "$ac_dir" && ac_dir=.
4580 tmp_nm="$ac_dir/$lt_tmp_nm"
4581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4582 # Check to see if the nm accepts a BSD-compat flag.
4583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4584 # nm: unknown option "B" ignored
4585 # Tru64's nm complains that /dev/null is an invalid object file
4586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4587 */dev/null* | *'Invalid file or object type'*)
4588 lt_cv_path_NM="$tmp_nm -B"
4589 break
4592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4593 */dev/null*)
4594 lt_cv_path_NM="$tmp_nm -p"
4595 break
4598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4599 continue # so that we can try to find one that supports BSD flags
4601 esac
4603 esac
4605 done
4606 IFS="$lt_save_ifs"
4607 done
4608 : ${lt_cv_path_NM=no}
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4612 $as_echo "$lt_cv_path_NM" >&6; }
4613 if test "$lt_cv_path_NM" != "no"; then
4614 NM="$lt_cv_path_NM"
4615 else
4616 # Didn't find any BSD compatible name lister, look for dumpbin.
4617 if test -n "$DUMPBIN"; then :
4618 # Let the user override the test.
4619 else
4620 if test -n "$ac_tool_prefix"; then
4621 for ac_prog in dumpbin "link -dump"
4623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -n "$DUMPBIN"; then
4631 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4650 DUMPBIN=$ac_cv_prog_DUMPBIN
4651 if test -n "$DUMPBIN"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4653 $as_echo "$DUMPBIN" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4660 test -n "$DUMPBIN" && break
4661 done
4663 if test -z "$DUMPBIN"; then
4664 ac_ct_DUMPBIN=$DUMPBIN
4665 for ac_prog in dumpbin "link -dump"
4667 # Extract the first word of "$ac_prog", so it can be a program name with args.
4668 set dummy $ac_prog; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$ac_ct_DUMPBIN"; then
4675 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4688 done
4689 done
4690 IFS=$as_save_IFS
4694 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4695 if test -n "$ac_ct_DUMPBIN"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4697 $as_echo "$ac_ct_DUMPBIN" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4704 test -n "$ac_ct_DUMPBIN" && break
4705 done
4707 if test "x$ac_ct_DUMPBIN" = x; then
4708 DUMPBIN=":"
4709 else
4710 case $cross_compiling:$ac_tool_warned in
4711 yes:)
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4714 ac_tool_warned=yes ;;
4715 esac
4716 DUMPBIN=$ac_ct_DUMPBIN
4720 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4721 *COFF*)
4722 DUMPBIN="$DUMPBIN -symbols"
4725 DUMPBIN=:
4727 esac
4730 if test "$DUMPBIN" != ":"; then
4731 NM="$DUMPBIN"
4734 test -z "$NM" && NM=nm
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4742 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4743 if test "${lt_cv_nm_interface+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 lt_cv_nm_interface="BSD nm"
4747 echo "int some_variable = 0;" > conftest.$ac_ext
4748 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4749 (eval "$ac_compile" 2>conftest.err)
4750 cat conftest.err >&5
4751 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4752 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4753 cat conftest.err >&5
4754 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4755 cat conftest.out >&5
4756 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4757 lt_cv_nm_interface="MS dumpbin"
4759 rm -f conftest*
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4762 $as_echo "$lt_cv_nm_interface" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4765 $as_echo_n "checking whether ln -s works... " >&6; }
4766 LN_S=$as_ln_s
4767 if test "$LN_S" = "ln -s"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769 $as_echo "yes" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4772 $as_echo "no, using $LN_S" >&6; }
4775 # find the maximum length of command line arguments
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4777 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4778 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4782 teststring="ABCD"
4784 case $build_os in
4785 msdosdjgpp*)
4786 # On DJGPP, this test can blow up pretty badly due to problems in libc
4787 # (any single argument exceeding 2000 bytes causes a buffer overrun
4788 # during glob expansion). Even if it were fixed, the result of this
4789 # check would be larger than it should be.
4790 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4793 gnu*)
4794 # Under GNU Hurd, this test is not required because there is
4795 # no limit to the length of command line arguments.
4796 # Libtool will interpret -1 as no limit whatsoever
4797 lt_cv_sys_max_cmd_len=-1;
4800 cygwin* | mingw* | cegcc*)
4801 # On Win9x/ME, this test blows up -- it succeeds, but takes
4802 # about 5 minutes as the teststring grows exponentially.
4803 # Worse, since 9x/ME are not pre-emptively multitasking,
4804 # you end up with a "frozen" computer, even though with patience
4805 # the test eventually succeeds (with a max line length of 256k).
4806 # Instead, let's just punt: use the minimum linelength reported by
4807 # all of the supported platforms: 8192 (on NT/2K/XP).
4808 lt_cv_sys_max_cmd_len=8192;
4811 mint*)
4812 # On MiNT this can take a long time and run out of memory.
4813 lt_cv_sys_max_cmd_len=8192;
4816 amigaos*)
4817 # On AmigaOS with pdksh, this test takes hours, literally.
4818 # So we just punt and use a minimum line length of 8192.
4819 lt_cv_sys_max_cmd_len=8192;
4822 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4823 # This has been around since 386BSD, at least. Likely further.
4824 if test -x /sbin/sysctl; then
4825 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4826 elif test -x /usr/sbin/sysctl; then
4827 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4828 else
4829 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4831 # And add a safety zone
4832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4836 interix*)
4837 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4838 lt_cv_sys_max_cmd_len=196608
4841 osf*)
4842 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4843 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4844 # nice to cause kernel panics so lets avoid the loop below.
4845 # First set a reasonable default.
4846 lt_cv_sys_max_cmd_len=16384
4848 if test -x /sbin/sysconfig; then
4849 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4850 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4851 esac
4854 sco3.2v5*)
4855 lt_cv_sys_max_cmd_len=102400
4857 sysv5* | sco5v6* | sysv4.2uw2*)
4858 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4859 if test -n "$kargmax"; then
4860 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4861 else
4862 lt_cv_sys_max_cmd_len=32768
4866 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4867 if test -n "$lt_cv_sys_max_cmd_len"; then
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870 else
4871 # Make teststring a little bigger before we do anything with it.
4872 # a 1K string should be a reasonable start.
4873 for i in 1 2 3 4 5 6 7 8 ; do
4874 teststring=$teststring$teststring
4875 done
4876 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4877 # If test is not a shell built-in, we'll probably end up computing a
4878 # maximum length that is only half of the actual maximum length, but
4879 # we can't tell.
4880 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4881 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4882 test $i != 17 # 1/2 MB should be enough
4884 i=`expr $i + 1`
4885 teststring=$teststring$teststring
4886 done
4887 # Only check the string length outside the loop.
4888 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4889 teststring=
4890 # Add a significant safety factor because C++ compilers can tack on
4891 # massive amounts of additional arguments before passing them to the
4892 # linker. It appears as though 1/2 is a usable value.
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4896 esac
4900 if test -n $lt_cv_sys_max_cmd_len ; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4902 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4905 $as_echo "none" >&6; }
4907 max_cmd_len=$lt_cv_sys_max_cmd_len
4914 : ${CP="cp -f"}
4915 : ${MV="mv -f"}
4916 : ${RM="rm -f"}
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4919 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4920 # Try some XSI features
4921 xsi_shell=no
4922 ( _lt_dummy="a/b/c"
4923 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4924 = c,a/b,, \
4925 && eval 'test $(( 1 + 1 )) -eq 2 \
4926 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4927 && xsi_shell=yes
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4929 $as_echo "$xsi_shell" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4933 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4934 lt_shell_append=no
4935 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4936 >/dev/null 2>&1 \
4937 && lt_shell_append=yes
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4939 $as_echo "$lt_shell_append" >&6; }
4942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4943 lt_unset=unset
4944 else
4945 lt_unset=false
4952 # test EBCDIC or ASCII
4953 case `echo X|tr X '\101'` in
4954 A) # ASCII based system
4955 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4956 lt_SP2NL='tr \040 \012'
4957 lt_NL2SP='tr \015\012 \040\040'
4959 *) # EBCDIC based system
4960 lt_SP2NL='tr \100 \n'
4961 lt_NL2SP='tr \r\n \100\100'
4963 esac
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4974 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4975 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 lt_cv_ld_reload_flag='-r'
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4981 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4982 reload_flag=$lt_cv_ld_reload_flag
4983 case $reload_flag in
4984 "" | " "*) ;;
4985 *) reload_flag=" $reload_flag" ;;
4986 esac
4987 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4988 case $host_os in
4989 darwin*)
4990 if test "$GCC" = yes; then
4991 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4992 else
4993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4996 esac
5006 if test -n "$ac_tool_prefix"; then
5007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$OBJDUMP"; then
5015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5030 IFS=$as_save_IFS
5034 OBJDUMP=$ac_cv_prog_OBJDUMP
5035 if test -n "$OBJDUMP"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5037 $as_echo "$OBJDUMP" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5045 if test -z "$ac_cv_prog_OBJDUMP"; then
5046 ac_ct_OBJDUMP=$OBJDUMP
5047 # Extract the first word of "objdump", so it can be a program name with args.
5048 set dummy objdump; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$ac_ct_OBJDUMP"; then
5055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5070 IFS=$as_save_IFS
5074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5075 if test -n "$ac_ct_OBJDUMP"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5077 $as_echo "$ac_ct_OBJDUMP" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5083 if test "x$ac_ct_OBJDUMP" = x; then
5084 OBJDUMP="false"
5085 else
5086 case $cross_compiling:$ac_tool_warned in
5087 yes:)
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090 ac_tool_warned=yes ;;
5091 esac
5092 OBJDUMP=$ac_ct_OBJDUMP
5094 else
5095 OBJDUMP="$ac_cv_prog_OBJDUMP"
5098 test -z "$OBJDUMP" && OBJDUMP=objdump
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5106 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5107 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 lt_cv_file_magic_cmd='$MAGIC_CMD'
5111 lt_cv_file_magic_test_file=
5112 lt_cv_deplibs_check_method='unknown'
5113 # Need to set the preceding variable on all platforms that support
5114 # interlibrary dependencies.
5115 # 'none' -- dependencies not supported.
5116 # `unknown' -- same as none, but documents that we really don't know.
5117 # 'pass_all' -- all dependencies passed with no checks.
5118 # 'test_compile' -- check by making test program.
5119 # 'file_magic [[regex]]' -- check by looking for files in library path
5120 # which responds to the $file_magic_cmd with a given extended regex.
5121 # If you have `file' or equivalent on your system and you're not sure
5122 # whether `pass_all' will *always* work, you probably want this one.
5124 case $host_os in
5125 aix[4-9]*)
5126 lt_cv_deplibs_check_method=pass_all
5129 beos*)
5130 lt_cv_deplibs_check_method=pass_all
5133 bsdi[45]*)
5134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5135 lt_cv_file_magic_cmd='/usr/bin/file -L'
5136 lt_cv_file_magic_test_file=/shlib/libc.so
5139 cygwin*)
5140 # func_win32_libid is a shell function defined in ltmain.sh
5141 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5142 lt_cv_file_magic_cmd='func_win32_libid'
5145 mingw* | pw32*)
5146 # Base MSYS/MinGW do not provide the 'file' command needed by
5147 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5148 # unless we find 'file', for example because we are cross-compiling.
5149 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5150 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5151 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5152 lt_cv_file_magic_cmd='func_win32_libid'
5153 else
5154 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5155 lt_cv_file_magic_cmd='$OBJDUMP -f'
5159 cegcc*)
5160 # use the weaker test based on 'objdump'. See mingw*.
5161 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5162 lt_cv_file_magic_cmd='$OBJDUMP -f'
5165 darwin* | rhapsody*)
5166 lt_cv_deplibs_check_method=pass_all
5169 freebsd* | dragonfly*)
5170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5171 case $host_cpu in
5172 i*86 )
5173 # Not sure whether the presence of OpenBSD here was a mistake.
5174 # Let's accept both of them until this is cleared up.
5175 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5176 lt_cv_file_magic_cmd=/usr/bin/file
5177 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5179 esac
5180 else
5181 lt_cv_deplibs_check_method=pass_all
5185 gnu*)
5186 lt_cv_deplibs_check_method=pass_all
5189 haiku*)
5190 lt_cv_deplibs_check_method=pass_all
5193 hpux10.20* | hpux11*)
5194 lt_cv_file_magic_cmd=/usr/bin/file
5195 case $host_cpu in
5196 ia64*)
5197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5198 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5200 hppa*64*)
5201 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]'
5202 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5206 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5208 esac
5211 interix[3-9]*)
5212 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5216 irix5* | irix6* | nonstopux*)
5217 case $LD in
5218 *-32|*"-32 ") libmagic=32-bit;;
5219 *-n32|*"-n32 ") libmagic=N32;;
5220 *-64|*"-64 ") libmagic=64-bit;;
5221 *) libmagic=never-match;;
5222 esac
5223 lt_cv_deplibs_check_method=pass_all
5226 # This must be Linux ELF.
5227 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5228 lt_cv_deplibs_check_method=pass_all
5231 netbsd*)
5232 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5234 else
5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5239 newos6*)
5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5241 lt_cv_file_magic_cmd=/usr/bin/file
5242 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5245 *nto* | *qnx*)
5246 lt_cv_deplibs_check_method=pass_all
5249 openbsd*)
5250 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5252 else
5253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5257 osf3* | osf4* | osf5*)
5258 lt_cv_deplibs_check_method=pass_all
5261 rdos*)
5262 lt_cv_deplibs_check_method=pass_all
5265 solaris*)
5266 lt_cv_deplibs_check_method=pass_all
5269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5270 lt_cv_deplibs_check_method=pass_all
5273 sysv4 | sysv4.3*)
5274 case $host_vendor in
5275 motorola)
5276 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]'
5277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5279 ncr)
5280 lt_cv_deplibs_check_method=pass_all
5282 sequent)
5283 lt_cv_file_magic_cmd='/bin/file'
5284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5286 sni)
5287 lt_cv_file_magic_cmd='/bin/file'
5288 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5289 lt_cv_file_magic_test_file=/lib/libc.so
5291 siemens)
5292 lt_cv_deplibs_check_method=pass_all
5295 lt_cv_deplibs_check_method=pass_all
5297 esac
5300 tpf*)
5301 lt_cv_deplibs_check_method=pass_all
5303 esac
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5307 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5308 file_magic_cmd=$lt_cv_file_magic_cmd
5309 deplibs_check_method=$lt_cv_deplibs_check_method
5310 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5325 set dummy ${ac_tool_prefix}ar; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_AR+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$AR"; then
5332 ac_cv_prog_AR="$AR" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_AR="${ac_tool_prefix}ar"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5351 AR=$ac_cv_prog_AR
5352 if test -n "$AR"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5354 $as_echo "$AR" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5362 if test -z "$ac_cv_prog_AR"; then
5363 ac_ct_AR=$AR
5364 # Extract the first word of "ar", so it can be a program name with args.
5365 set dummy ar; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$ac_ct_AR"; then
5372 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_ac_ct_AR="ar"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5391 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5392 if test -n "$ac_ct_AR"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5394 $as_echo "$ac_ct_AR" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5400 if test "x$ac_ct_AR" = x; then
5401 AR="false"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 AR=$ac_ct_AR
5411 else
5412 AR="$ac_cv_prog_AR"
5415 test -z "$AR" && AR=ar
5416 test -z "$AR_FLAGS" && AR_FLAGS=cru
5428 if test -n "$ac_tool_prefix"; then
5429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5430 set dummy ${ac_tool_prefix}strip; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_prog_STRIP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$STRIP"; then
5437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5450 done
5451 done
5452 IFS=$as_save_IFS
5456 STRIP=$ac_cv_prog_STRIP
5457 if test -n "$STRIP"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5459 $as_echo "$STRIP" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5467 if test -z "$ac_cv_prog_STRIP"; then
5468 ac_ct_STRIP=$STRIP
5469 # Extract the first word of "strip", so it can be a program name with args.
5470 set dummy strip; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$ac_ct_STRIP"; then
5477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_ac_ct_STRIP="strip"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5497 if test -n "$ac_ct_STRIP"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5499 $as_echo "$ac_ct_STRIP" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5505 if test "x$ac_ct_STRIP" = x; then
5506 STRIP=":"
5507 else
5508 case $cross_compiling:$ac_tool_warned in
5509 yes:)
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512 ac_tool_warned=yes ;;
5513 esac
5514 STRIP=$ac_ct_STRIP
5516 else
5517 STRIP="$ac_cv_prog_STRIP"
5520 test -z "$STRIP" && STRIP=:
5527 if test -n "$ac_tool_prefix"; then
5528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5529 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$RANLIB"; then
5536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 RANLIB=$ac_cv_prog_RANLIB
5556 if test -n "$RANLIB"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5558 $as_echo "$RANLIB" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5566 if test -z "$ac_cv_prog_RANLIB"; then
5567 ac_ct_RANLIB=$RANLIB
5568 # Extract the first word of "ranlib", so it can be a program name with args.
5569 set dummy ranlib; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$ac_ct_RANLIB"; then
5576 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_ac_ct_RANLIB="ranlib"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5589 done
5590 done
5591 IFS=$as_save_IFS
5595 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5596 if test -n "$ac_ct_RANLIB"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5598 $as_echo "$ac_ct_RANLIB" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5604 if test "x$ac_ct_RANLIB" = x; then
5605 RANLIB=":"
5606 else
5607 case $cross_compiling:$ac_tool_warned in
5608 yes:)
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5611 ac_tool_warned=yes ;;
5612 esac
5613 RANLIB=$ac_ct_RANLIB
5615 else
5616 RANLIB="$ac_cv_prog_RANLIB"
5619 test -z "$RANLIB" && RANLIB=:
5626 # Determine commands to create old-style static archives.
5627 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5628 old_postinstall_cmds='chmod 644 $oldlib'
5629 old_postuninstall_cmds=
5631 if test -n "$RANLIB"; then
5632 case $host_os in
5633 openbsd*)
5634 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5637 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5639 esac
5640 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5643 case $host_os in
5644 darwin*)
5645 lock_old_archive_extraction=yes ;;
5647 lock_old_archive_extraction=no ;;
5648 esac
5670 for ac_prog in gawk mawk nawk awk
5672 # Extract the first word of "$ac_prog", so it can be a program name with args.
5673 set dummy $ac_prog; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_prog_AWK+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$AWK"; then
5680 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_AWK="$ac_prog"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5693 done
5694 done
5695 IFS=$as_save_IFS
5699 AWK=$ac_cv_prog_AWK
5700 if test -n "$AWK"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5702 $as_echo "$AWK" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5709 test -n "$AWK" && break
5710 done
5730 # If no C compiler was specified, use CC.
5731 LTCC=${LTCC-"$CC"}
5733 # If no C compiler flags were specified, use CFLAGS.
5734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5736 # Allow CC to be a program name with arguments.
5737 compiler=$CC
5740 # Check for command to grab the raw symbol name followed by C symbol from nm.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5742 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5743 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5747 # These are sane defaults that work on at least a few old systems.
5748 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5750 # Character class describing NM global symbol codes.
5751 symcode='[BCDEGRST]'
5753 # Regexp to match symbols that can be accessed directly from C.
5754 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5756 # Define system-specific variables.
5757 case $host_os in
5758 aix*)
5759 symcode='[BCDT]'
5761 cygwin* | mingw* | pw32* | cegcc*)
5762 symcode='[ABCDGISTW]'
5764 hpux*)
5765 if test "$host_cpu" = ia64; then
5766 symcode='[ABCDEGRST]'
5769 irix* | nonstopux*)
5770 symcode='[BCDEGRST]'
5772 osf*)
5773 symcode='[BCDEGQRST]'
5775 solaris*)
5776 symcode='[BDRT]'
5778 sco3.2v5*)
5779 symcode='[DT]'
5781 sysv4.2uw2*)
5782 symcode='[DT]'
5784 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5785 symcode='[ABDT]'
5787 sysv4)
5788 symcode='[DFNSTU]'
5790 esac
5792 # If we're using GNU nm, then use its standard symbol codes.
5793 case `$NM -V 2>&1` in
5794 *GNU* | *'with BFD'*)
5795 symcode='[ABCDGIRSTW]' ;;
5796 esac
5798 # Transform an extracted symbol line into a proper C declaration.
5799 # Some systems (esp. on ia64) link data and code symbols differently,
5800 # so use this general approach.
5801 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5803 # Transform an extracted symbol line into symbol name and symbol address
5804 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5805 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'"
5807 # Handle CRLF in mingw tool chain
5808 opt_cr=
5809 case $build_os in
5810 mingw*)
5811 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5813 esac
5815 # Try without a prefix underscore, then with it.
5816 for ac_symprfx in "" "_"; do
5818 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5819 symxfrm="\\1 $ac_symprfx\\2 \\2"
5821 # Write the raw and C identifiers.
5822 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5823 # Fake it for dumpbin and say T for any non-static function
5824 # and D for any global variable.
5825 # Also find C++ and __fastcall symbols from MSVC++,
5826 # which start with @ or ?.
5827 lt_cv_sys_global_symbol_pipe="$AWK '"\
5828 " {last_section=section; section=\$ 3};"\
5829 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5830 " \$ 0!~/External *\|/{next};"\
5831 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5832 " {if(hide[section]) next};"\
5833 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5834 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5835 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5836 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5837 " ' prfx=^$ac_symprfx"
5838 else
5839 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5842 # Check to see that the pipe works correctly.
5843 pipe_works=no
5845 rm -f conftest*
5846 cat > conftest.$ac_ext <<_LT_EOF
5847 #ifdef __cplusplus
5848 extern "C" {
5849 #endif
5850 char nm_test_var;
5851 void nm_test_func(void);
5852 void nm_test_func(void){}
5853 #ifdef __cplusplus
5855 #endif
5856 int main(){nm_test_var='a';nm_test_func();return(0);}
5857 _LT_EOF
5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860 (eval $ac_compile) 2>&5
5861 ac_status=$?
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863 test $ac_status = 0; }; then
5864 # Now try to grab the symbols.
5865 nlist=conftest.nm
5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5867 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5868 ac_status=$?
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; } && test -s "$nlist"; then
5871 # Try sorting and uniquifying the output.
5872 if sort "$nlist" | uniq > "$nlist"T; then
5873 mv -f "$nlist"T "$nlist"
5874 else
5875 rm -f "$nlist"T
5878 # Make sure that we snagged all the symbols we need.
5879 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5880 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5881 cat <<_LT_EOF > conftest.$ac_ext
5882 #ifdef __cplusplus
5883 extern "C" {
5884 #endif
5886 _LT_EOF
5887 # Now generate the symbol file.
5888 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5890 cat <<_LT_EOF >> conftest.$ac_ext
5892 /* The mapping between symbol names and symbols. */
5893 const struct {
5894 const char *name;
5895 void *address;
5897 lt__PROGRAM__LTX_preloaded_symbols[] =
5899 { "@PROGRAM@", (void *) 0 },
5900 _LT_EOF
5901 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5902 cat <<\_LT_EOF >> conftest.$ac_ext
5903 {0, (void *) 0}
5906 /* This works around a problem in FreeBSD linker */
5907 #ifdef FREEBSD_WORKAROUND
5908 static const void *lt_preloaded_setup() {
5909 return lt__PROGRAM__LTX_preloaded_symbols;
5911 #endif
5913 #ifdef __cplusplus
5915 #endif
5916 _LT_EOF
5917 # Now try linking the two files.
5918 mv conftest.$ac_objext conftstm.$ac_objext
5919 lt_save_LIBS="$LIBS"
5920 lt_save_CFLAGS="$CFLAGS"
5921 LIBS="conftstm.$ac_objext"
5922 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5924 (eval $ac_link) 2>&5
5925 ac_status=$?
5926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5928 pipe_works=yes
5930 LIBS="$lt_save_LIBS"
5931 CFLAGS="$lt_save_CFLAGS"
5932 else
5933 echo "cannot find nm_test_func in $nlist" >&5
5935 else
5936 echo "cannot find nm_test_var in $nlist" >&5
5938 else
5939 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5941 else
5942 echo "$progname: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 rm -rf conftest* conftst*
5947 # Do not use the global_symbol_pipe unless it works.
5948 if test "$pipe_works" = yes; then
5949 break
5950 else
5951 lt_cv_sys_global_symbol_pipe=
5953 done
5957 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5958 lt_cv_sys_global_symbol_to_cdecl=
5960 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5962 $as_echo "failed" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5965 $as_echo "ok" >&6; }
5990 # Check whether --enable-libtool-lock was given.
5991 if test "${enable_libtool_lock+set}" = set; then :
5992 enableval=$enable_libtool_lock;
5995 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5997 # Some flags need to be propagated to the compiler or linker for good
5998 # libtool support.
5999 case $host in
6000 ia64-*-hpux*)
6001 # Find out which ABI we are using.
6002 echo 'int i;' > conftest.$ac_ext
6003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6004 (eval $ac_compile) 2>&5
6005 ac_status=$?
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }; then
6008 case `/usr/bin/file conftest.$ac_objext` in
6009 *ELF-32*)
6010 HPUX_IA64_MODE="32"
6012 *ELF-64*)
6013 HPUX_IA64_MODE="64"
6015 esac
6017 rm -rf conftest*
6019 *-*-irix6*)
6020 # Find out which ABI we are using.
6021 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6023 (eval $ac_compile) 2>&5
6024 ac_status=$?
6025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026 test $ac_status = 0; }; then
6027 if test "$lt_cv_prog_gnu_ld" = yes; then
6028 case `/usr/bin/file conftest.$ac_objext` in
6029 *32-bit*)
6030 LD="${LD-ld} -melf32bsmip"
6032 *N32*)
6033 LD="${LD-ld} -melf32bmipn32"
6035 *64-bit*)
6036 LD="${LD-ld} -melf64bmip"
6038 esac
6039 else
6040 case `/usr/bin/file conftest.$ac_objext` in
6041 *32-bit*)
6042 LD="${LD-ld} -32"
6044 *N32*)
6045 LD="${LD-ld} -n32"
6047 *64-bit*)
6048 LD="${LD-ld} -64"
6050 esac
6053 rm -rf conftest*
6056 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6057 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6058 # Find out which ABI we are using.
6059 echo 'int i;' > conftest.$ac_ext
6060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6061 (eval $ac_compile) 2>&5
6062 ac_status=$?
6063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064 test $ac_status = 0; }; then
6065 case `/usr/bin/file conftest.o` in
6066 *32-bit*)
6067 case $host in
6068 x86_64-*kfreebsd*-gnu)
6069 LD="${LD-ld} -m elf_i386_fbsd"
6071 x86_64-*linux*)
6072 case `/usr/bin/file conftest.o` in
6073 *x86-64*)
6074 LD="${LD-ld} -m elf32_x86_64"
6077 LD="${LD-ld} -m elf_i386"
6079 esac
6081 powerpc64le-*linux*)
6082 LD="${LD-ld} -m elf32lppclinux"
6084 powerpc64-*linux*)
6085 LD="${LD-ld} -m elf32ppclinux"
6087 s390x-*linux*)
6088 LD="${LD-ld} -m elf_s390"
6090 sparc64-*linux*)
6091 LD="${LD-ld} -m elf32_sparc"
6093 esac
6095 *64-bit*)
6096 case $host in
6097 x86_64-*kfreebsd*-gnu)
6098 LD="${LD-ld} -m elf_x86_64_fbsd"
6100 x86_64-*linux*)
6101 LD="${LD-ld} -m elf_x86_64"
6103 powerpcle-*linux*)
6104 LD="${LD-ld} -m elf64lppc"
6106 powerpc-*linux*)
6107 LD="${LD-ld} -m elf64ppc"
6109 s390*-*linux*|s390*-*tpf*)
6110 LD="${LD-ld} -m elf64_s390"
6112 sparc*-*linux*)
6113 LD="${LD-ld} -m elf64_sparc"
6115 esac
6117 esac
6119 rm -rf conftest*
6122 *-*-sco3.2v5*)
6123 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6124 SAVE_CFLAGS="$CFLAGS"
6125 CFLAGS="$CFLAGS -belf"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6127 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6128 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 ac_ext=c
6132 ac_cpp='$CPP $CPPFLAGS'
6133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137 if test x$gcc_no_link = xyes; then
6138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6144 main ()
6148 return 0;
6150 _ACEOF
6151 if ac_fn_c_try_link "$LINENO"; then :
6152 lt_cv_cc_needs_belf=yes
6153 else
6154 lt_cv_cc_needs_belf=no
6156 rm -f core conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6158 ac_ext=c
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6166 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6167 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6168 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6169 CFLAGS="$SAVE_CFLAGS"
6172 sparc*-*solaris*)
6173 # Find out which ABI we are using.
6174 echo 'int i;' > conftest.$ac_ext
6175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 (eval $ac_compile) 2>&5
6177 ac_status=$?
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; then
6180 case `/usr/bin/file conftest.o` in
6181 *64-bit*)
6182 case $lt_cv_prog_gnu_ld in
6183 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6185 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6186 LD="${LD-ld} -64"
6189 esac
6191 esac
6193 rm -rf conftest*
6195 esac
6197 need_locks="$enable_libtool_lock"
6200 case $host_os in
6201 rhapsody* | darwin*)
6202 if test -n "$ac_tool_prefix"; then
6203 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6204 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 if test -n "$DSYMUTIL"; then
6211 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6224 done
6225 done
6226 IFS=$as_save_IFS
6230 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6231 if test -n "$DSYMUTIL"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6233 $as_echo "$DSYMUTIL" >&6; }
6234 else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6241 if test -z "$ac_cv_prog_DSYMUTIL"; then
6242 ac_ct_DSYMUTIL=$DSYMUTIL
6243 # Extract the first word of "dsymutil", so it can be a program name with args.
6244 set dummy dsymutil; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 if test -n "$ac_ct_DSYMUTIL"; then
6251 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6264 done
6265 done
6266 IFS=$as_save_IFS
6270 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6271 if test -n "$ac_ct_DSYMUTIL"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6273 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6279 if test "x$ac_ct_DSYMUTIL" = x; then
6280 DSYMUTIL=":"
6281 else
6282 case $cross_compiling:$ac_tool_warned in
6283 yes:)
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286 ac_tool_warned=yes ;;
6287 esac
6288 DSYMUTIL=$ac_ct_DSYMUTIL
6290 else
6291 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6294 if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 if test -n "$NMEDIT"; then
6303 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6316 done
6317 done
6318 IFS=$as_save_IFS
6322 NMEDIT=$ac_cv_prog_NMEDIT
6323 if test -n "$NMEDIT"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6325 $as_echo "$NMEDIT" >&6; }
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6333 if test -z "$ac_cv_prog_NMEDIT"; then
6334 ac_ct_NMEDIT=$NMEDIT
6335 # Extract the first word of "nmedit", so it can be a program name with args.
6336 set dummy nmedit; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$ac_ct_NMEDIT"; then
6343 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6356 done
6357 done
6358 IFS=$as_save_IFS
6362 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6363 if test -n "$ac_ct_NMEDIT"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6365 $as_echo "$ac_ct_NMEDIT" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6371 if test "x$ac_ct_NMEDIT" = x; then
6372 NMEDIT=":"
6373 else
6374 case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380 NMEDIT=$ac_ct_NMEDIT
6382 else
6383 NMEDIT="$ac_cv_prog_NMEDIT"
6386 if test -n "$ac_tool_prefix"; then
6387 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6388 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_LIPO+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$LIPO"; then
6395 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6408 done
6409 done
6410 IFS=$as_save_IFS
6414 LIPO=$ac_cv_prog_LIPO
6415 if test -n "$LIPO"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6417 $as_echo "$LIPO" >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6425 if test -z "$ac_cv_prog_LIPO"; then
6426 ac_ct_LIPO=$LIPO
6427 # Extract the first word of "lipo", so it can be a program name with args.
6428 set dummy lipo; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 if test -n "$ac_ct_LIPO"; then
6435 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444 ac_cv_prog_ac_ct_LIPO="lipo"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6448 done
6449 done
6450 IFS=$as_save_IFS
6454 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6455 if test -n "$ac_ct_LIPO"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6457 $as_echo "$ac_ct_LIPO" >&6; }
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6463 if test "x$ac_ct_LIPO" = x; then
6464 LIPO=":"
6465 else
6466 case $cross_compiling:$ac_tool_warned in
6467 yes:)
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470 ac_tool_warned=yes ;;
6471 esac
6472 LIPO=$ac_ct_LIPO
6474 else
6475 LIPO="$ac_cv_prog_LIPO"
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}otool; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test -n "$OTOOL"; then
6487 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6502 IFS=$as_save_IFS
6506 OTOOL=$ac_cv_prog_OTOOL
6507 if test -n "$OTOOL"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6509 $as_echo "$OTOOL" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test -z "$ac_cv_prog_OTOOL"; then
6518 ac_ct_OTOOL=$OTOOL
6519 # Extract the first word of "otool", so it can be a program name with args.
6520 set dummy otool; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 if test -n "$ac_ct_OTOOL"; then
6527 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_prog_ac_ct_OTOOL="otool"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6540 done
6541 done
6542 IFS=$as_save_IFS
6546 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6547 if test -n "$ac_ct_OTOOL"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6549 $as_echo "$ac_ct_OTOOL" >&6; }
6550 else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6555 if test "x$ac_ct_OTOOL" = x; then
6556 OTOOL=":"
6557 else
6558 case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564 OTOOL=$ac_ct_OTOOL
6566 else
6567 OTOOL="$ac_cv_prog_OTOOL"
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$OTOOL64"; then
6579 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6598 OTOOL64=$ac_cv_prog_OTOOL64
6599 if test -n "$OTOOL64"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6601 $as_echo "$OTOOL64" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6609 if test -z "$ac_cv_prog_OTOOL64"; then
6610 ac_ct_OTOOL64=$OTOOL64
6611 # Extract the first word of "otool64", so it can be a program name with args.
6612 set dummy otool64; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 if test -n "$ac_ct_OTOOL64"; then
6619 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_prog_ac_ct_OTOOL64="otool64"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6632 done
6633 done
6634 IFS=$as_save_IFS
6638 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6639 if test -n "$ac_ct_OTOOL64"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6641 $as_echo "$ac_ct_OTOOL64" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6647 if test "x$ac_ct_OTOOL64" = x; then
6648 OTOOL64=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656 OTOOL64=$ac_ct_OTOOL64
6658 else
6659 OTOOL64="$ac_cv_prog_OTOOL64"
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6689 $as_echo_n "checking for -single_module linker flag... " >&6; }
6690 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 lt_cv_apple_cc_single_mod=no
6694 if test -z "${LT_MULTI_MODULE}"; then
6695 # By default we will add the -single_module flag. You can override
6696 # by either setting the environment variable LT_MULTI_MODULE
6697 # non-empty at configure time, or by adding -multi_module to the
6698 # link flags.
6699 rm -rf libconftest.dylib*
6700 echo "int foo(void){return 1;}" > conftest.c
6701 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6702 -dynamiclib -Wl,-single_module conftest.c" >&5
6703 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6704 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6705 _lt_result=$?
6706 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6707 lt_cv_apple_cc_single_mod=yes
6708 else
6709 cat conftest.err >&5
6711 rm -rf libconftest.dylib*
6712 rm -f conftest.*
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6716 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6718 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6719 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 lt_cv_ld_exported_symbols_list=no
6723 save_LDFLAGS=$LDFLAGS
6724 echo "_main" > conftest.sym
6725 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6726 if test x$gcc_no_link = xyes; then
6727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6733 main ()
6737 return 0;
6739 _ACEOF
6740 if ac_fn_c_try_link "$LINENO"; then :
6741 lt_cv_ld_exported_symbols_list=yes
6742 else
6743 lt_cv_ld_exported_symbols_list=no
6745 rm -f core conftest.err conftest.$ac_objext \
6746 conftest$ac_exeext conftest.$ac_ext
6747 LDFLAGS="$save_LDFLAGS"
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6751 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6753 $as_echo_n "checking for -force_load linker flag... " >&6; }
6754 if test "${lt_cv_ld_force_load+set}" = set; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 lt_cv_ld_force_load=no
6758 cat > conftest.c << _LT_EOF
6759 int forced_loaded() { return 2;}
6760 _LT_EOF
6761 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6762 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6763 echo "$AR cru libconftest.a conftest.o" >&5
6764 $AR cru libconftest.a conftest.o 2>&5
6765 cat > conftest.c << _LT_EOF
6766 int main() { return 0;}
6767 _LT_EOF
6768 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6769 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6770 _lt_result=$?
6771 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6772 lt_cv_ld_force_load=yes
6773 else
6774 cat conftest.err >&5
6776 rm -f conftest.err libconftest.a conftest conftest.c
6777 rm -rf conftest.dSYM
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6781 $as_echo "$lt_cv_ld_force_load" >&6; }
6782 case $host_os in
6783 rhapsody* | darwin1.[012])
6784 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6785 darwin1.*)
6786 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6787 darwin*) # darwin 5.x on
6788 # if running on 10.5 or later, the deployment target defaults
6789 # to the OS version, if on x86, and 10.4, the deployment
6790 # target defaults to 10.4. Don't you love it?
6791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6792 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6793 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6794 10.[012][,.]*)
6795 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6796 10.*)
6797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6798 esac
6800 esac
6801 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6802 _lt_dar_single_mod='$single_module'
6804 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6805 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6806 else
6807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6809 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6810 _lt_dsymutil='~$DSYMUTIL $lib || :'
6811 else
6812 _lt_dsymutil=
6815 esac
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6823 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6824 # On Suns, sometimes $CPP names a directory.
6825 if test -n "$CPP" && test -d "$CPP"; then
6826 CPP=
6828 if test -z "$CPP"; then
6829 if test "${ac_cv_prog_CPP+set}" = set; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 # Double quotes because CPP needs to be expanded
6833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6835 ac_preproc_ok=false
6836 for ac_c_preproc_warn_flag in '' yes
6838 # Use a header file that comes with gcc, so configuring glibc
6839 # with a fresh cross-compiler works.
6840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6841 # <limits.h> exists even on freestanding compilers.
6842 # On the NeXT, cc -E runs the code through the compiler's parser,
6843 # not just through cpp. "Syntax error" is here to catch this case.
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 #ifdef __STDC__
6847 # include <limits.h>
6848 #else
6849 # include <assert.h>
6850 #endif
6851 Syntax error
6852 _ACEOF
6853 if ac_fn_c_try_cpp "$LINENO"; then :
6855 else
6856 # Broken: fails on valid input.
6857 continue
6859 rm -f conftest.err conftest.$ac_ext
6861 # OK, works on sane cases. Now check whether nonexistent headers
6862 # can be detected and how.
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <ac_nonexistent.h>
6866 _ACEOF
6867 if ac_fn_c_try_cpp "$LINENO"; then :
6868 # Broken: success on invalid input.
6869 continue
6870 else
6871 # Passes both tests.
6872 ac_preproc_ok=:
6873 break
6875 rm -f conftest.err conftest.$ac_ext
6877 done
6878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6879 rm -f conftest.err conftest.$ac_ext
6880 if $ac_preproc_ok; then :
6881 break
6884 done
6885 ac_cv_prog_CPP=$CPP
6888 CPP=$ac_cv_prog_CPP
6889 else
6890 ac_cv_prog_CPP=$CPP
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6893 $as_echo "$CPP" >&6; }
6894 ac_preproc_ok=false
6895 for ac_c_preproc_warn_flag in '' yes
6897 # Use a header file that comes with gcc, so configuring glibc
6898 # with a fresh cross-compiler works.
6899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6900 # <limits.h> exists even on freestanding compilers.
6901 # On the NeXT, cc -E runs the code through the compiler's parser,
6902 # not just through cpp. "Syntax error" is here to catch this case.
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 #ifdef __STDC__
6906 # include <limits.h>
6907 #else
6908 # include <assert.h>
6909 #endif
6910 Syntax error
6911 _ACEOF
6912 if ac_fn_c_try_cpp "$LINENO"; then :
6914 else
6915 # Broken: fails on valid input.
6916 continue
6918 rm -f conftest.err conftest.$ac_ext
6920 # OK, works on sane cases. Now check whether nonexistent headers
6921 # can be detected and how.
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 #include <ac_nonexistent.h>
6925 _ACEOF
6926 if ac_fn_c_try_cpp "$LINENO"; then :
6927 # Broken: success on invalid input.
6928 continue
6929 else
6930 # Passes both tests.
6931 ac_preproc_ok=:
6932 break
6934 rm -f conftest.err conftest.$ac_ext
6936 done
6937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6938 rm -f conftest.err conftest.$ac_ext
6939 if $ac_preproc_ok; then :
6941 else
6942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6944 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6945 See \`config.log' for more details." "$LINENO" 5; }
6948 ac_ext=c
6949 ac_cpp='$CPP $CPPFLAGS'
6950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6956 $as_echo_n "checking for ANSI C header files... " >&6; }
6957 if test "${ac_cv_header_stdc+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 #include <stdlib.h>
6963 #include <stdarg.h>
6964 #include <string.h>
6965 #include <float.h>
6968 main ()
6972 return 0;
6974 _ACEOF
6975 if ac_fn_c_try_compile "$LINENO"; then :
6976 ac_cv_header_stdc=yes
6977 else
6978 ac_cv_header_stdc=no
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 if test $ac_cv_header_stdc = yes; then
6983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 #include <string.h>
6988 _ACEOF
6989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990 $EGREP "memchr" >/dev/null 2>&1; then :
6992 else
6993 ac_cv_header_stdc=no
6995 rm -f conftest*
6999 if test $ac_cv_header_stdc = yes; then
7000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 #include <stdlib.h>
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "free" >/dev/null 2>&1; then :
7009 else
7010 ac_cv_header_stdc=no
7012 rm -f conftest*
7016 if test $ac_cv_header_stdc = yes; then
7017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7018 if test "$cross_compiling" = yes; then :
7020 else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <ctype.h>
7024 #include <stdlib.h>
7025 #if ((' ' & 0x0FF) == 0x020)
7026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7028 #else
7029 # define ISLOWER(c) \
7030 (('a' <= (c) && (c) <= 'i') \
7031 || ('j' <= (c) && (c) <= 'r') \
7032 || ('s' <= (c) && (c) <= 'z'))
7033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7034 #endif
7036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7038 main ()
7040 int i;
7041 for (i = 0; i < 256; i++)
7042 if (XOR (islower (i), ISLOWER (i))
7043 || toupper (i) != TOUPPER (i))
7044 return 2;
7045 return 0;
7047 _ACEOF
7048 if ac_fn_c_try_run "$LINENO"; then :
7050 else
7051 ac_cv_header_stdc=no
7053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7054 conftest.$ac_objext conftest.beam conftest.$ac_ext
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7060 $as_echo "$ac_cv_header_stdc" >&6; }
7061 if test $ac_cv_header_stdc = yes; then
7063 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7068 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7069 inttypes.h stdint.h unistd.h
7070 do :
7071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7072 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7074 eval as_val=\$$as_ac_Header
7075 if test "x$as_val" = x""yes; then :
7076 cat >>confdefs.h <<_ACEOF
7077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7078 _ACEOF
7082 done
7085 for ac_header in dlfcn.h
7086 do :
7087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7089 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7090 cat >>confdefs.h <<_ACEOF
7091 #define HAVE_DLFCN_H 1
7092 _ACEOF
7096 done
7102 # Set options
7106 enable_dlopen=no
7110 # Check whether --enable-shared was given.
7111 if test "${enable_shared+set}" = set; then :
7112 enableval=$enable_shared; p=${PACKAGE-default}
7113 case $enableval in
7114 yes) enable_shared=yes ;;
7115 no) enable_shared=no ;;
7117 enable_shared=no
7118 # Look at the argument we got. We use all the common list separators.
7119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7120 for pkg in $enableval; do
7121 IFS="$lt_save_ifs"
7122 if test "X$pkg" = "X$p"; then
7123 enable_shared=yes
7125 done
7126 IFS="$lt_save_ifs"
7128 esac
7129 else
7130 enable_shared=yes
7141 # Check whether --enable-static was given.
7142 if test "${enable_static+set}" = set; then :
7143 enableval=$enable_static; p=${PACKAGE-default}
7144 case $enableval in
7145 yes) enable_static=yes ;;
7146 no) enable_static=no ;;
7148 enable_static=no
7149 # Look at the argument we got. We use all the common list separators.
7150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7151 for pkg in $enableval; do
7152 IFS="$lt_save_ifs"
7153 if test "X$pkg" = "X$p"; then
7154 enable_static=yes
7156 done
7157 IFS="$lt_save_ifs"
7159 esac
7160 else
7161 enable_static=yes
7173 # Check whether --with-pic was given.
7174 if test "${with_pic+set}" = set; then :
7175 withval=$with_pic; pic_mode="$withval"
7176 else
7177 pic_mode=default
7181 test -z "$pic_mode" && pic_mode=default
7189 # Check whether --enable-fast-install was given.
7190 if test "${enable_fast_install+set}" = set; then :
7191 enableval=$enable_fast_install; p=${PACKAGE-default}
7192 case $enableval in
7193 yes) enable_fast_install=yes ;;
7194 no) enable_fast_install=no ;;
7196 enable_fast_install=no
7197 # Look at the argument we got. We use all the common list separators.
7198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7199 for pkg in $enableval; do
7200 IFS="$lt_save_ifs"
7201 if test "X$pkg" = "X$p"; then
7202 enable_fast_install=yes
7204 done
7205 IFS="$lt_save_ifs"
7207 esac
7208 else
7209 enable_fast_install=yes
7222 # This can be used to rebuild libtool when needed
7223 LIBTOOL_DEPS="$ltmain"
7225 # Always use our own libtool.
7226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7253 test -z "$LN_S" && LN_S="ln -s"
7268 if test -n "${ZSH_VERSION+set}" ; then
7269 setopt NO_GLOB_SUBST
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7273 $as_echo_n "checking for objdir... " >&6; }
7274 if test "${lt_cv_objdir+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 rm -f .libs 2>/dev/null
7278 mkdir .libs 2>/dev/null
7279 if test -d .libs; then
7280 lt_cv_objdir=.libs
7281 else
7282 # MS-DOS does not allow filenames that begin with a dot.
7283 lt_cv_objdir=_libs
7285 rmdir .libs 2>/dev/null
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7288 $as_echo "$lt_cv_objdir" >&6; }
7289 objdir=$lt_cv_objdir
7295 cat >>confdefs.h <<_ACEOF
7296 #define LT_OBJDIR "$lt_cv_objdir/"
7297 _ACEOF
7302 case $host_os in
7303 aix3*)
7304 # AIX sometimes has problems with the GCC collect2 program. For some
7305 # reason, if we set the COLLECT_NAMES environment variable, the problems
7306 # vanish in a puff of smoke.
7307 if test "X${COLLECT_NAMES+set}" != Xset; then
7308 COLLECT_NAMES=
7309 export COLLECT_NAMES
7312 esac
7314 # Global variables:
7315 ofile=libtool
7316 can_build_shared=yes
7318 # All known linkers require a `.a' archive for static linking (except MSVC,
7319 # which needs '.lib').
7320 libext=a
7322 with_gnu_ld="$lt_cv_prog_gnu_ld"
7324 old_CC="$CC"
7325 old_CFLAGS="$CFLAGS"
7327 # Set sane defaults for various variables
7328 test -z "$CC" && CC=cc
7329 test -z "$LTCC" && LTCC=$CC
7330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7331 test -z "$LD" && LD=ld
7332 test -z "$ac_objext" && ac_objext=o
7334 for cc_temp in $compiler""; do
7335 case $cc_temp in
7336 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7337 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7338 \-*) ;;
7339 *) break;;
7340 esac
7341 done
7342 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7345 # Only perform the check for file, if the check method requires it
7346 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7347 case $deplibs_check_method in
7348 file_magic*)
7349 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7351 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7352 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 case $MAGIC_CMD in
7356 [\\/*] | ?:[\\/]*)
7357 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7360 lt_save_MAGIC_CMD="$MAGIC_CMD"
7361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7362 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7363 for ac_dir in $ac_dummy; do
7364 IFS="$lt_save_ifs"
7365 test -z "$ac_dir" && ac_dir=.
7366 if test -f $ac_dir/${ac_tool_prefix}file; then
7367 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7368 if test -n "$file_magic_test_file"; then
7369 case $deplibs_check_method in
7370 "file_magic "*)
7371 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7374 $EGREP "$file_magic_regex" > /dev/null; then
7376 else
7377 cat <<_LT_EOF 1>&2
7379 *** Warning: the command libtool uses to detect shared libraries,
7380 *** $file_magic_cmd, produces output that libtool cannot recognize.
7381 *** The result is that libtool may fail to recognize shared libraries
7382 *** as such. This will affect the creation of libtool libraries that
7383 *** depend on shared libraries, but programs linked with such libtool
7384 *** libraries will work regardless of this problem. Nevertheless, you
7385 *** may want to report the problem to your system manager and/or to
7386 *** bug-libtool@gnu.org
7388 _LT_EOF
7389 fi ;;
7390 esac
7392 break
7394 done
7395 IFS="$lt_save_ifs"
7396 MAGIC_CMD="$lt_save_MAGIC_CMD"
7398 esac
7401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7402 if test -n "$MAGIC_CMD"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7404 $as_echo "$MAGIC_CMD" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7414 if test -z "$lt_cv_path_MAGIC_CMD"; then
7415 if test -n "$ac_tool_prefix"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7417 $as_echo_n "checking for file... " >&6; }
7418 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 case $MAGIC_CMD in
7422 [\\/*] | ?:[\\/]*)
7423 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7426 lt_save_MAGIC_CMD="$MAGIC_CMD"
7427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7429 for ac_dir in $ac_dummy; do
7430 IFS="$lt_save_ifs"
7431 test -z "$ac_dir" && ac_dir=.
7432 if test -f $ac_dir/file; then
7433 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7434 if test -n "$file_magic_test_file"; then
7435 case $deplibs_check_method in
7436 "file_magic "*)
7437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7440 $EGREP "$file_magic_regex" > /dev/null; then
7442 else
7443 cat <<_LT_EOF 1>&2
7445 *** Warning: the command libtool uses to detect shared libraries,
7446 *** $file_magic_cmd, produces output that libtool cannot recognize.
7447 *** The result is that libtool may fail to recognize shared libraries
7448 *** as such. This will affect the creation of libtool libraries that
7449 *** depend on shared libraries, but programs linked with such libtool
7450 *** libraries will work regardless of this problem. Nevertheless, you
7451 *** may want to report the problem to your system manager and/or to
7452 *** bug-libtool@gnu.org
7454 _LT_EOF
7455 fi ;;
7456 esac
7458 break
7460 done
7461 IFS="$lt_save_ifs"
7462 MAGIC_CMD="$lt_save_MAGIC_CMD"
7464 esac
7467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468 if test -n "$MAGIC_CMD"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7470 $as_echo "$MAGIC_CMD" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7477 else
7478 MAGIC_CMD=:
7484 esac
7486 # Use C for the default configuration in the libtool script
7488 lt_save_CC="$CC"
7489 ac_ext=c
7490 ac_cpp='$CPP $CPPFLAGS'
7491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496 # Source file extension for C test sources.
7497 ac_ext=c
7499 # Object file extension for compiled C test sources.
7500 objext=o
7501 objext=$objext
7503 # Code to be used in simple compile tests
7504 lt_simple_compile_test_code="int some_variable = 0;"
7506 # Code to be used in simple link tests
7507 lt_simple_link_test_code='int main(){return(0);}'
7515 # If no C compiler was specified, use CC.
7516 LTCC=${LTCC-"$CC"}
7518 # If no C compiler flags were specified, use CFLAGS.
7519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7521 # Allow CC to be a program name with arguments.
7522 compiler=$CC
7524 # Save the default compiler, since it gets overwritten when the other
7525 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7526 compiler_DEFAULT=$CC
7528 # save warnings/boilerplate of simple test code
7529 ac_outfile=conftest.$ac_objext
7530 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7531 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7532 _lt_compiler_boilerplate=`cat conftest.err`
7533 $RM conftest*
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7537 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538 _lt_linker_boilerplate=`cat conftest.err`
7539 $RM -r conftest*
7542 ## CAVEAT EMPTOR:
7543 ## There is no encapsulation within the following macros, do not change
7544 ## the running order or otherwise move them around unless you know exactly
7545 ## what you are doing...
7546 if test -n "$compiler"; then
7548 lt_prog_compiler_no_builtin_flag=
7550 if test "$GCC" = yes; then
7551 case $cc_basename in
7552 nvcc*)
7553 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7555 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7556 esac
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7559 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7560 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 lt_cv_prog_compiler_rtti_exceptions=no
7564 ac_outfile=conftest.$ac_objext
7565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7566 lt_compiler_flag="-fno-rtti -fno-exceptions"
7567 # Insert the option either (1) after the last *FLAGS variable, or
7568 # (2) before a word containing "conftest.", or (3) at the end.
7569 # Note that $ac_compile itself does not contain backslashes and begins
7570 # with a dollar sign (not a hyphen), so the echo should work correctly.
7571 # The option is referenced via a variable to avoid confusing sed.
7572 lt_compile=`echo "$ac_compile" | $SED \
7573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7575 -e 's:$: $lt_compiler_flag:'`
7576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7577 (eval "$lt_compile" 2>conftest.err)
7578 ac_status=$?
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 if (exit $ac_status) && test -s "$ac_outfile"; then
7582 # The compiler can only warn and ignore the option if not recognized
7583 # So say no if there are warnings other than the usual output.
7584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7586 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7587 lt_cv_prog_compiler_rtti_exceptions=yes
7590 $RM conftest*
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7594 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7596 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7597 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7598 else
7609 lt_prog_compiler_wl=
7610 lt_prog_compiler_pic=
7611 lt_prog_compiler_static=
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7614 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7616 if test "$GCC" = yes; then
7617 lt_prog_compiler_wl='-Wl,'
7618 lt_prog_compiler_static='-static'
7620 case $host_os in
7621 aix*)
7622 # All AIX code is PIC.
7623 if test "$host_cpu" = ia64; then
7624 # AIX 5 now supports IA64 processor
7625 lt_prog_compiler_static='-Bstatic'
7627 lt_prog_compiler_pic='-fPIC'
7630 amigaos*)
7631 case $host_cpu in
7632 powerpc)
7633 # see comment about AmigaOS4 .so support
7634 lt_prog_compiler_pic='-fPIC'
7636 m68k)
7637 # FIXME: we need at least 68020 code to build shared libraries, but
7638 # adding the `-m68020' flag to GCC prevents building anything better,
7639 # like `-m68040'.
7640 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7642 esac
7645 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7646 # PIC is the default for these OSes.
7649 mingw* | cygwin* | pw32* | os2* | cegcc*)
7650 # This hack is so that the source file can tell whether it is being
7651 # built for inclusion in a dll (and should export symbols for example).
7652 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7653 # (--disable-auto-import) libraries
7654 lt_prog_compiler_pic='-DDLL_EXPORT'
7657 darwin* | rhapsody*)
7658 # PIC is the default on this platform
7659 # Common symbols not allowed in MH_DYLIB files
7660 lt_prog_compiler_pic='-fno-common'
7663 haiku*)
7664 # PIC is the default for Haiku.
7665 # The "-static" flag exists, but is broken.
7666 lt_prog_compiler_static=
7669 hpux*)
7670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7672 # sets the default TLS model and affects inlining.
7673 case $host_cpu in
7674 hppa*64*)
7675 # +Z the default
7678 lt_prog_compiler_pic='-fPIC'
7680 esac
7683 interix[3-9]*)
7684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7685 # Instead, we relocate shared libraries at runtime.
7688 msdosdjgpp*)
7689 # Just because we use GCC doesn't mean we suddenly get shared libraries
7690 # on systems that don't support them.
7691 lt_prog_compiler_can_build_shared=no
7692 enable_shared=no
7695 *nto* | *qnx*)
7696 # QNX uses GNU C++, but need to define -shared option too, otherwise
7697 # it will coredump.
7698 lt_prog_compiler_pic='-fPIC -shared'
7701 sysv4*MP*)
7702 if test -d /usr/nec; then
7703 lt_prog_compiler_pic=-Kconform_pic
7708 lt_prog_compiler_pic='-fPIC'
7710 esac
7712 case $cc_basename in
7713 nvcc*) # Cuda Compiler Driver 2.2
7714 lt_prog_compiler_wl='-Xlinker '
7715 lt_prog_compiler_pic='-Xcompiler -fPIC'
7717 esac
7718 else
7719 # PORTME Check for flag to pass linker flags through the system compiler.
7720 case $host_os in
7721 aix*)
7722 lt_prog_compiler_wl='-Wl,'
7723 if test "$host_cpu" = ia64; then
7724 # AIX 5 now supports IA64 processor
7725 lt_prog_compiler_static='-Bstatic'
7726 else
7727 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7731 mingw* | cygwin* | pw32* | os2* | cegcc*)
7732 # This hack is so that the source file can tell whether it is being
7733 # built for inclusion in a dll (and should export symbols for example).
7734 lt_prog_compiler_pic='-DDLL_EXPORT'
7737 hpux9* | hpux10* | hpux11*)
7738 lt_prog_compiler_wl='-Wl,'
7739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7740 # not for PA HP-UX.
7741 case $host_cpu in
7742 hppa*64*|ia64*)
7743 # +Z the default
7746 lt_prog_compiler_pic='+Z'
7748 esac
7749 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7750 lt_prog_compiler_static='${wl}-a ${wl}archive'
7753 irix5* | irix6* | nonstopux*)
7754 lt_prog_compiler_wl='-Wl,'
7755 # PIC (with -KPIC) is the default.
7756 lt_prog_compiler_static='-non_shared'
7759 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7760 case $cc_basename in
7761 # old Intel for x86_64 which still supported -KPIC.
7762 ecc*)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-static'
7767 # icc used to be incompatible with GCC.
7768 # ICC 10 doesn't accept -KPIC any more.
7769 icc* | ifort*)
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_pic='-fPIC'
7772 lt_prog_compiler_static='-static'
7774 # Lahey Fortran 8.1.
7775 lf95*)
7776 lt_prog_compiler_wl='-Wl,'
7777 lt_prog_compiler_pic='--shared'
7778 lt_prog_compiler_static='--static'
7780 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7781 # Portland Group compilers (*not* the Pentium gcc compiler,
7782 # which looks to be a dead project)
7783 lt_prog_compiler_wl='-Wl,'
7784 lt_prog_compiler_pic='-fpic'
7785 lt_prog_compiler_static='-Bstatic'
7787 ccc*)
7788 lt_prog_compiler_wl='-Wl,'
7789 # All Alpha code is PIC.
7790 lt_prog_compiler_static='-non_shared'
7792 xl* | bgxl* | bgf* | mpixl*)
7793 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_pic='-qpic'
7796 lt_prog_compiler_static='-qstaticlink'
7799 case `$CC -V 2>&1 | sed 5q` in
7800 *Sun\ F* | *Sun*Fortran*)
7801 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7802 lt_prog_compiler_pic='-KPIC'
7803 lt_prog_compiler_static='-Bstatic'
7804 lt_prog_compiler_wl=''
7806 *Sun\ C*)
7807 # Sun C 5.9
7808 lt_prog_compiler_pic='-KPIC'
7809 lt_prog_compiler_static='-Bstatic'
7810 lt_prog_compiler_wl='-Wl,'
7812 esac
7814 esac
7817 newsos6)
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7822 *nto* | *qnx*)
7823 # QNX uses GNU C++, but need to define -shared option too, otherwise
7824 # it will coredump.
7825 lt_prog_compiler_pic='-fPIC -shared'
7828 osf3* | osf4* | osf5*)
7829 lt_prog_compiler_wl='-Wl,'
7830 # All OSF/1 code is PIC.
7831 lt_prog_compiler_static='-non_shared'
7834 rdos*)
7835 lt_prog_compiler_static='-non_shared'
7838 solaris*)
7839 lt_prog_compiler_pic='-KPIC'
7840 lt_prog_compiler_static='-Bstatic'
7841 case $cc_basename in
7842 f77* | f90* | f95*)
7843 lt_prog_compiler_wl='-Qoption ld ';;
7845 lt_prog_compiler_wl='-Wl,';;
7846 esac
7849 sunos4*)
7850 lt_prog_compiler_wl='-Qoption ld '
7851 lt_prog_compiler_pic='-PIC'
7852 lt_prog_compiler_static='-Bstatic'
7855 sysv4 | sysv4.2uw2* | sysv4.3*)
7856 lt_prog_compiler_wl='-Wl,'
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-Bstatic'
7861 sysv4*MP*)
7862 if test -d /usr/nec ;then
7863 lt_prog_compiler_pic='-Kconform_pic'
7864 lt_prog_compiler_static='-Bstatic'
7868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7869 lt_prog_compiler_wl='-Wl,'
7870 lt_prog_compiler_pic='-KPIC'
7871 lt_prog_compiler_static='-Bstatic'
7874 unicos*)
7875 lt_prog_compiler_wl='-Wl,'
7876 lt_prog_compiler_can_build_shared=no
7879 uts4*)
7880 lt_prog_compiler_pic='-pic'
7881 lt_prog_compiler_static='-Bstatic'
7885 lt_prog_compiler_can_build_shared=no
7887 esac
7890 case $host_os in
7891 # For platforms which do not support PIC, -DPIC is meaningless:
7892 *djgpp*)
7893 lt_prog_compiler_pic=
7896 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7898 esac
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7900 $as_echo "$lt_prog_compiler_pic" >&6; }
7908 # Check to make sure the PIC flag actually works.
7910 if test -n "$lt_prog_compiler_pic"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7912 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7913 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 lt_cv_prog_compiler_pic_works=no
7917 ac_outfile=conftest.$ac_objext
7918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7919 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7920 # Insert the option either (1) after the last *FLAGS variable, or
7921 # (2) before a word containing "conftest.", or (3) at the end.
7922 # Note that $ac_compile itself does not contain backslashes and begins
7923 # with a dollar sign (not a hyphen), so the echo should work correctly.
7924 # The option is referenced via a variable to avoid confusing sed.
7925 lt_compile=`echo "$ac_compile" | $SED \
7926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7928 -e 's:$: $lt_compiler_flag:'`
7929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7930 (eval "$lt_compile" 2>conftest.err)
7931 ac_status=$?
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 if (exit $ac_status) && test -s "$ac_outfile"; then
7935 # The compiler can only warn and ignore the option if not recognized
7936 # So say no if there are warnings other than the usual output.
7937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7940 lt_cv_prog_compiler_pic_works=yes
7943 $RM conftest*
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7947 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7949 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7950 case $lt_prog_compiler_pic in
7951 "" | " "*) ;;
7952 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7953 esac
7954 else
7955 lt_prog_compiler_pic=
7956 lt_prog_compiler_can_build_shared=no
7967 # Check to make sure the static flag actually works.
7969 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7971 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7972 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 lt_cv_prog_compiler_static_works=no
7976 save_LDFLAGS="$LDFLAGS"
7977 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7978 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7979 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7980 # The linker can only warn and ignore the option if not recognized
7981 # So say no if there are warnings
7982 if test -s conftest.err; then
7983 # Append any errors to the config.log.
7984 cat conftest.err 1>&5
7985 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7987 if diff conftest.exp conftest.er2 >/dev/null; then
7988 lt_cv_prog_compiler_static_works=yes
7990 else
7991 lt_cv_prog_compiler_static_works=yes
7994 $RM -r conftest*
7995 LDFLAGS="$save_LDFLAGS"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7999 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8001 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8003 else
8004 lt_prog_compiler_static=
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8014 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8015 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 lt_cv_prog_compiler_c_o=no
8019 $RM -r conftest 2>/dev/null
8020 mkdir conftest
8021 cd conftest
8022 mkdir out
8023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025 lt_compiler_flag="-o out/conftest2.$ac_objext"
8026 # Insert the option either (1) after the last *FLAGS variable, or
8027 # (2) before a word containing "conftest.", or (3) at the end.
8028 # Note that $ac_compile itself does not contain backslashes and begins
8029 # with a dollar sign (not a hyphen), so the echo should work correctly.
8030 lt_compile=`echo "$ac_compile" | $SED \
8031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8033 -e 's:$: $lt_compiler_flag:'`
8034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8035 (eval "$lt_compile" 2>out/conftest.err)
8036 ac_status=$?
8037 cat out/conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8040 then
8041 # The compiler can only warn and ignore the option if not recognized
8042 # So say no if there are warnings
8043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8046 lt_cv_prog_compiler_c_o=yes
8049 chmod u+w . 2>&5
8050 $RM conftest*
8051 # SGI C++ compiler will create directory out/ii_files/ for
8052 # template instantiation
8053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8054 $RM out/* && rmdir out
8055 cd ..
8056 $RM -r conftest
8057 $RM conftest*
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8061 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8069 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8070 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 lt_cv_prog_compiler_c_o=no
8074 $RM -r conftest 2>/dev/null
8075 mkdir conftest
8076 cd conftest
8077 mkdir out
8078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080 lt_compiler_flag="-o out/conftest2.$ac_objext"
8081 # Insert the option either (1) after the last *FLAGS variable, or
8082 # (2) before a word containing "conftest.", or (3) at the end.
8083 # Note that $ac_compile itself does not contain backslashes and begins
8084 # with a dollar sign (not a hyphen), so the echo should work correctly.
8085 lt_compile=`echo "$ac_compile" | $SED \
8086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8088 -e 's:$: $lt_compiler_flag:'`
8089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8090 (eval "$lt_compile" 2>out/conftest.err)
8091 ac_status=$?
8092 cat out/conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8095 then
8096 # The compiler can only warn and ignore the option if not recognized
8097 # So say no if there are warnings
8098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8101 lt_cv_prog_compiler_c_o=yes
8104 chmod u+w . 2>&5
8105 $RM conftest*
8106 # SGI C++ compiler will create directory out/ii_files/ for
8107 # template instantiation
8108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8109 $RM out/* && rmdir out
8110 cd ..
8111 $RM -r conftest
8112 $RM conftest*
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8116 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8121 hard_links="nottested"
8122 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8123 # do not overwrite the value of need_locks provided by the user
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8125 $as_echo_n "checking if we can lock with hard links... " >&6; }
8126 hard_links=yes
8127 $RM conftest*
8128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8129 touch conftest.a
8130 ln conftest.a conftest.b 2>&5 || hard_links=no
8131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8133 $as_echo "$hard_links" >&6; }
8134 if test "$hard_links" = no; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8136 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8137 need_locks=warn
8139 else
8140 need_locks=no
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8149 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8151 runpath_var=
8152 allow_undefined_flag=
8153 always_export_symbols=no
8154 archive_cmds=
8155 archive_expsym_cmds=
8156 compiler_needs_object=no
8157 enable_shared_with_static_runtimes=no
8158 export_dynamic_flag_spec=
8159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8160 hardcode_automatic=no
8161 hardcode_direct=no
8162 hardcode_direct_absolute=no
8163 hardcode_libdir_flag_spec=
8164 hardcode_libdir_flag_spec_ld=
8165 hardcode_libdir_separator=
8166 hardcode_minus_L=no
8167 hardcode_shlibpath_var=unsupported
8168 inherit_rpath=no
8169 link_all_deplibs=unknown
8170 module_cmds=
8171 module_expsym_cmds=
8172 old_archive_from_new_cmds=
8173 old_archive_from_expsyms_cmds=
8174 thread_safe_flag_spec=
8175 whole_archive_flag_spec=
8176 # include_expsyms should be a list of space-separated symbols to be *always*
8177 # included in the symbol list
8178 include_expsyms=
8179 # exclude_expsyms can be an extended regexp of symbols to exclude
8180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8182 # as well as any symbol that contains `d'.
8183 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8185 # platforms (ab)use it in PIC code, but their linkers get confused if
8186 # the symbol is explicitly referenced. Since portable code cannot
8187 # rely on this symbol name, it's probably fine to never include it in
8188 # preloaded symbol tables.
8189 # Exclude shared library initialization/finalization symbols.
8190 extract_expsyms_cmds=
8192 case $host_os in
8193 cygwin* | mingw* | pw32* | cegcc*)
8194 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8195 # When not using gcc, we currently assume that we are using
8196 # Microsoft Visual C++.
8197 if test "$GCC" != yes; then
8198 with_gnu_ld=no
8201 interix*)
8202 # we just hope/assume this is gcc and not c89 (= MSVC++)
8203 with_gnu_ld=yes
8205 openbsd*)
8206 with_gnu_ld=no
8208 esac
8210 ld_shlibs=yes
8212 # On some targets, GNU ld is compatible enough with the native linker
8213 # that we're better off using the native interface for both.
8214 lt_use_gnu_ld_interface=no
8215 if test "$with_gnu_ld" = yes; then
8216 case $host_os in
8217 aix*)
8218 # The AIX port of GNU ld has always aspired to compatibility
8219 # with the native linker. However, as the warning in the GNU ld
8220 # block says, versions before 2.19.5* couldn't really create working
8221 # shared libraries, regardless of the interface used.
8222 case `$LD -v 2>&1` in
8223 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8224 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8225 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8227 lt_use_gnu_ld_interface=yes
8229 esac
8232 lt_use_gnu_ld_interface=yes
8234 esac
8237 if test "$lt_use_gnu_ld_interface" = yes; then
8238 # If archive_cmds runs LD, not CC, wlarc should be empty
8239 wlarc='${wl}'
8241 # Set some defaults for GNU ld with shared library support. These
8242 # are reset later if shared libraries are not supported. Putting them
8243 # here allows them to be overridden if necessary.
8244 runpath_var=LD_RUN_PATH
8245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8246 export_dynamic_flag_spec='${wl}--export-dynamic'
8247 # ancient GNU ld didn't support --whole-archive et. al.
8248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8249 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8250 else
8251 whole_archive_flag_spec=
8253 supports_anon_versioning=no
8254 case `$LD -v 2>&1` in
8255 *GNU\ gold*) supports_anon_versioning=yes ;;
8256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8259 *\ 2.11.*) ;; # other 2.11 versions
8260 *) supports_anon_versioning=yes ;;
8261 esac
8263 # See if GNU ld supports shared libraries.
8264 case $host_os in
8265 aix[3-9]*)
8266 # On AIX/PPC, the GNU linker is very broken
8267 if test "$host_cpu" != ia64; then
8268 ld_shlibs=no
8269 cat <<_LT_EOF 1>&2
8271 *** Warning: the GNU linker, at least up to release 2.19, is reported
8272 *** to be unable to reliably create shared libraries on AIX.
8273 *** Therefore, libtool is disabling shared libraries support. If you
8274 *** really care for shared libraries, you may want to install binutils
8275 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8276 *** You will then need to restart the configuration process.
8278 _LT_EOF
8282 amigaos*)
8283 case $host_cpu in
8284 powerpc)
8285 # see comment about AmigaOS4 .so support
8286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287 archive_expsym_cmds=''
8289 m68k)
8290 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)'
8291 hardcode_libdir_flag_spec='-L$libdir'
8292 hardcode_minus_L=yes
8294 esac
8297 beos*)
8298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8299 allow_undefined_flag=unsupported
8300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8301 # support --undefined. This deserves some investigation. FIXME
8302 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303 else
8304 ld_shlibs=no
8308 cygwin* | mingw* | pw32* | cegcc*)
8309 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8310 # as there is no search path for DLLs.
8311 hardcode_libdir_flag_spec='-L$libdir'
8312 export_dynamic_flag_spec='${wl}--export-all-symbols'
8313 allow_undefined_flag=unsupported
8314 always_export_symbols=no
8315 enable_shared_with_static_runtimes=yes
8316 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8318 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8320 # If the export-symbols file already is a .def file (1st line
8321 # is EXPORTS), use it as is; otherwise, prepend...
8322 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8323 cp $export_symbols $output_objdir/$soname.def;
8324 else
8325 echo EXPORTS > $output_objdir/$soname.def;
8326 cat $export_symbols >> $output_objdir/$soname.def;
8328 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8329 else
8330 ld_shlibs=no
8334 haiku*)
8335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336 link_all_deplibs=yes
8339 interix[3-9]*)
8340 hardcode_direct=no
8341 hardcode_shlibpath_var=no
8342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8343 export_dynamic_flag_spec='${wl}-E'
8344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8345 # Instead, shared libraries are loaded at an image base (0x10000000 by
8346 # default) and relocated if they conflict, which is a slow very memory
8347 # consuming and fragmenting process. To avoid this, we pick a random,
8348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8349 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8350 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8351 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'
8354 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8355 tmp_diet=no
8356 if test "$host_os" = linux-dietlibc; then
8357 case $cc_basename in
8358 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8359 esac
8361 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8362 && test "$tmp_diet" = no
8363 then
8364 tmp_addflag=' $pic_flag'
8365 tmp_sharedflag='-shared'
8366 case $cc_basename,$host_cpu in
8367 pgcc*) # Portland Group C compiler
8368 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'
8369 tmp_addflag=' $pic_flag'
8371 pgf77* | pgf90* | pgf95* | pgfortran*)
8372 # Portland Group f77 and f90 compilers
8373 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'
8374 tmp_addflag=' $pic_flag -Mnomain' ;;
8375 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8376 tmp_addflag=' -i_dynamic' ;;
8377 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8378 tmp_addflag=' -i_dynamic -nofor_main' ;;
8379 ifc* | ifort*) # Intel Fortran compiler
8380 tmp_addflag=' -nofor_main' ;;
8381 lf95*) # Lahey Fortran 8.1
8382 whole_archive_flag_spec=
8383 tmp_sharedflag='--shared' ;;
8384 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8385 tmp_sharedflag='-qmkshrobj'
8386 tmp_addflag= ;;
8387 nvcc*) # Cuda Compiler Driver 2.2
8388 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'
8389 compiler_needs_object=yes
8391 esac
8392 case `$CC -V 2>&1 | sed 5q` in
8393 *Sun\ C*) # Sun C 5.9
8394 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'
8395 compiler_needs_object=yes
8396 tmp_sharedflag='-G' ;;
8397 *Sun\ F*) # Sun Fortran 8.3
8398 tmp_sharedflag='-G' ;;
8399 esac
8400 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402 if test "x$supports_anon_versioning" = xyes; then
8403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8405 echo "local: *; };" >> $output_objdir/$libname.ver~
8406 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8409 case $cc_basename in
8410 xlf* | bgf* | bgxlf* | mpixlf*)
8411 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8412 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8413 hardcode_libdir_flag_spec=
8414 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8415 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8416 if test "x$supports_anon_versioning" = xyes; then
8417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8419 echo "local: *; };" >> $output_objdir/$libname.ver~
8420 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8423 esac
8424 else
8425 ld_shlibs=no
8429 netbsd*)
8430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8431 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8432 wlarc=
8433 else
8434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439 solaris*)
8440 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8441 ld_shlibs=no
8442 cat <<_LT_EOF 1>&2
8444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8445 *** create shared libraries on Solaris systems. Therefore, libtool
8446 *** is disabling shared libraries support. We urge you to upgrade GNU
8447 *** binutils to release 2.9.1 or newer. Another option is to modify
8448 *** your PATH or compiler configuration so that the native linker is
8449 *** used, and then restart.
8451 _LT_EOF
8452 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8455 else
8456 ld_shlibs=no
8460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8461 case `$LD -v 2>&1` in
8462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8463 ld_shlibs=no
8464 cat <<_LT_EOF 1>&2
8466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8467 *** reliably create shared libraries on SCO systems. Therefore, libtool
8468 *** is disabling shared libraries support. We urge you to upgrade GNU
8469 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8470 *** your PATH or compiler configuration so that the native linker is
8471 *** used, and then restart.
8473 _LT_EOF
8476 # For security reasons, it is highly recommended that you always
8477 # use absolute paths for naming shared libraries, and exclude the
8478 # DT_RUNPATH tag from executables and libraries. But doing so
8479 # requires that you compile everything twice, which is a pain.
8480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484 else
8485 ld_shlibs=no
8488 esac
8491 sunos4*)
8492 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8493 wlarc=
8494 hardcode_direct=yes
8495 hardcode_shlibpath_var=no
8499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8502 else
8503 ld_shlibs=no
8506 esac
8508 if test "$ld_shlibs" = no; then
8509 runpath_var=
8510 hardcode_libdir_flag_spec=
8511 export_dynamic_flag_spec=
8512 whole_archive_flag_spec=
8514 else
8515 # PORTME fill in a description of your system's linker (not GNU ld)
8516 case $host_os in
8517 aix3*)
8518 allow_undefined_flag=unsupported
8519 always_export_symbols=yes
8520 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'
8521 # Note: this linker hardcodes the directories in LIBPATH if there
8522 # are no directories specified by -L.
8523 hardcode_minus_L=yes
8524 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8525 # Neither direct hardcoding nor static linking is supported with a
8526 # broken collect2.
8527 hardcode_direct=unsupported
8531 aix[4-9]*)
8532 if test "$host_cpu" = ia64; then
8533 # On IA64, the linker does run time linking by default, so we don't
8534 # have to do anything special.
8535 aix_use_runtimelinking=no
8536 exp_sym_flag='-Bexport'
8537 no_entry_flag=""
8538 else
8539 # If we're using GNU nm, then we don't want the "-C" option.
8540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8541 # Also, AIX nm treats weak defined symbols like other global
8542 # defined symbols, whereas GNU nm marks them as "W".
8543 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8544 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'
8545 else
8546 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8548 aix_use_runtimelinking=no
8550 # Test if we are trying to use run time linking or normal
8551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8552 # need to do runtime linking.
8553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8554 for ld_flag in $LDFLAGS; do
8555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8556 aix_use_runtimelinking=yes
8557 break
8559 done
8561 esac
8563 exp_sym_flag='-bexport'
8564 no_entry_flag='-bnoentry'
8567 # When large executables or shared objects are built, AIX ld can
8568 # have problems creating the table of contents. If linking a library
8569 # or program results in "error TOC overflow" add -mminimal-toc to
8570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8573 archive_cmds=''
8574 hardcode_direct=yes
8575 hardcode_direct_absolute=yes
8576 hardcode_libdir_separator=':'
8577 link_all_deplibs=yes
8578 file_list_spec='${wl}-f,'
8580 if test "$GCC" = yes; then
8581 case $host_os in aix4.[012]|aix4.[012].*)
8582 # We only want to do this on AIX 4.2 and lower, the check
8583 # below for broken collect2 doesn't work under 4.3+
8584 collect2name=`${CC} -print-prog-name=collect2`
8585 if test -f "$collect2name" &&
8586 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8587 then
8588 # We have reworked collect2
8590 else
8591 # We have old collect2
8592 hardcode_direct=unsupported
8593 # It fails to find uninstalled libraries when the uninstalled
8594 # path is not listed in the libpath. Setting hardcode_minus_L
8595 # to unsupported forces relinking
8596 hardcode_minus_L=yes
8597 hardcode_libdir_flag_spec='-L$libdir'
8598 hardcode_libdir_separator=
8601 esac
8602 shared_flag='-shared'
8603 if test "$aix_use_runtimelinking" = yes; then
8604 shared_flag="$shared_flag "'${wl}-G'
8606 else
8607 # not using gcc
8608 if test "$host_cpu" = ia64; then
8609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8610 # chokes on -Wl,-G. The following line is correct:
8611 shared_flag='-G'
8612 else
8613 if test "$aix_use_runtimelinking" = yes; then
8614 shared_flag='${wl}-G'
8615 else
8616 shared_flag='${wl}-bM:SRE'
8621 export_dynamic_flag_spec='${wl}-bexpall'
8622 # It seems that -bexpall does not export symbols beginning with
8623 # underscore (_), so it is better to generate a list of symbols to export.
8624 always_export_symbols=yes
8625 if test "$aix_use_runtimelinking" = yes; then
8626 # Warning - without using the other runtime loading flags (-brtl),
8627 # -berok will link without error, but may produce a broken library.
8628 allow_undefined_flag='-berok'
8629 # Determine the default libpath from the value encoded in an
8630 # empty executable.
8631 if test x$gcc_no_link = xyes; then
8632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8638 main ()
8642 return 0;
8644 _ACEOF
8645 if ac_fn_c_try_link "$LINENO"; then :
8647 lt_aix_libpath_sed='
8648 /Import File Strings/,/^$/ {
8649 /^0/ {
8650 s/^0 *\(.*\)$/\1/
8654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8655 # Check for a 64-bit object if we didn't find anything.
8656 if test -z "$aix_libpath"; then
8657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8664 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8665 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"
8666 else
8667 if test "$host_cpu" = ia64; then
8668 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8669 allow_undefined_flag="-z nodefs"
8670 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"
8671 else
8672 # Determine the default libpath from the value encoded in an
8673 # empty executable.
8674 if test x$gcc_no_link = xyes; then
8675 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8681 main ()
8685 return 0;
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"; then :
8690 lt_aix_libpath_sed='
8691 /Import File Strings/,/^$/ {
8692 /^0/ {
8693 s/^0 *\(.*\)$/\1/
8697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8698 # Check for a 64-bit object if we didn't find anything.
8699 if test -z "$aix_libpath"; then
8700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8707 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8708 # Warning - without using the other run time loading flags,
8709 # -berok will link without error, but may produce a broken library.
8710 no_undefined_flag=' ${wl}-bernotok'
8711 allow_undefined_flag=' ${wl}-berok'
8712 if test "$with_gnu_ld" = yes; then
8713 # We only use this code for GNU lds that support --whole-archive.
8714 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8715 else
8716 # Exported symbols can be pulled into shared objects from archives
8717 whole_archive_flag_spec='$convenience'
8719 archive_cmds_need_lc=yes
8720 # This is similar to how AIX traditionally builds its shared libraries.
8721 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'
8726 amigaos*)
8727 case $host_cpu in
8728 powerpc)
8729 # see comment about AmigaOS4 .so support
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds=''
8733 m68k)
8734 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)'
8735 hardcode_libdir_flag_spec='-L$libdir'
8736 hardcode_minus_L=yes
8738 esac
8741 bsdi[45]*)
8742 export_dynamic_flag_spec=-rdynamic
8745 cygwin* | mingw* | pw32* | cegcc*)
8746 # When not using gcc, we currently assume that we are using
8747 # Microsoft Visual C++.
8748 # hardcode_libdir_flag_spec is actually meaningless, as there is
8749 # no search path for DLLs.
8750 hardcode_libdir_flag_spec=' '
8751 allow_undefined_flag=unsupported
8752 # Tell ltmain to make .lib files, not .a files.
8753 libext=lib
8754 # Tell ltmain to make .dll files, not .so files.
8755 shrext_cmds=".dll"
8756 # FIXME: Setting linknames here is a bad hack.
8757 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8758 # The linker will automatically build a .lib file if we build a DLL.
8759 old_archive_from_new_cmds='true'
8760 # FIXME: Should let the user specify the lib program.
8761 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8762 fix_srcfile_path='`cygpath -w "$srcfile"`'
8763 enable_shared_with_static_runtimes=yes
8766 darwin* | rhapsody*)
8769 archive_cmds_need_lc=no
8770 hardcode_direct=no
8771 hardcode_automatic=yes
8772 hardcode_shlibpath_var=unsupported
8773 if test "$lt_cv_ld_force_load" = "yes"; then
8774 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\"`'
8775 else
8776 whole_archive_flag_spec=''
8778 link_all_deplibs=yes
8779 allow_undefined_flag="$_lt_dar_allow_undefined"
8780 case $cc_basename in
8781 ifort*) _lt_dar_can_shared=yes ;;
8782 *) _lt_dar_can_shared=$GCC ;;
8783 esac
8784 if test "$_lt_dar_can_shared" = "yes"; then
8785 output_verbose_link_cmd=func_echo_all
8786 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8787 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8788 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}"
8789 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}"
8791 else
8792 ld_shlibs=no
8797 dgux*)
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_libdir_flag_spec='-L$libdir'
8800 hardcode_shlibpath_var=no
8803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8804 # support. Future versions do this automatically, but an explicit c++rt0.o
8805 # does not break anything, and helps significantly (at the cost of a little
8806 # extra space).
8807 freebsd2.2*)
8808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8809 hardcode_libdir_flag_spec='-R$libdir'
8810 hardcode_direct=yes
8811 hardcode_shlibpath_var=no
8814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8815 freebsd2.*)
8816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_direct=yes
8818 hardcode_minus_L=yes
8819 hardcode_shlibpath_var=no
8822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8823 freebsd* | dragonfly*)
8824 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8825 hardcode_libdir_flag_spec='-R$libdir'
8826 hardcode_direct=yes
8827 hardcode_shlibpath_var=no
8830 hpux9*)
8831 if test "$GCC" = yes; then
8832 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'
8833 else
8834 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'
8836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8837 hardcode_libdir_separator=:
8838 hardcode_direct=yes
8840 # hardcode_minus_L: Not really in the search PATH,
8841 # but as the default location of the library.
8842 hardcode_minus_L=yes
8843 export_dynamic_flag_spec='${wl}-E'
8846 hpux10*)
8847 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8849 else
8850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8852 if test "$with_gnu_ld" = no; then
8853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854 hardcode_libdir_flag_spec_ld='+b $libdir'
8855 hardcode_libdir_separator=:
8856 hardcode_direct=yes
8857 hardcode_direct_absolute=yes
8858 export_dynamic_flag_spec='${wl}-E'
8859 # hardcode_minus_L: Not really in the search PATH,
8860 # but as the default location of the library.
8861 hardcode_minus_L=yes
8865 hpux11*)
8866 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8867 case $host_cpu in
8868 hppa*64*)
8869 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 ia64*)
8872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8877 esac
8878 else
8879 case $host_cpu in
8880 hppa*64*)
8881 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8883 ia64*)
8884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8888 # Older versions of the 11.00 compiler do not understand -b yet
8889 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8891 $as_echo_n "checking if $CC understands -b... " >&6; }
8892 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 lt_cv_prog_compiler__b=no
8896 save_LDFLAGS="$LDFLAGS"
8897 LDFLAGS="$LDFLAGS -b"
8898 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8899 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8900 # The linker can only warn and ignore the option if not recognized
8901 # So say no if there are warnings
8902 if test -s conftest.err; then
8903 # Append any errors to the config.log.
8904 cat conftest.err 1>&5
8905 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8907 if diff conftest.exp conftest.er2 >/dev/null; then
8908 lt_cv_prog_compiler__b=yes
8910 else
8911 lt_cv_prog_compiler__b=yes
8914 $RM -r conftest*
8915 LDFLAGS="$save_LDFLAGS"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8919 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8921 if test x"$lt_cv_prog_compiler__b" = xyes; then
8922 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8923 else
8924 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8928 esac
8930 if test "$with_gnu_ld" = no; then
8931 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8932 hardcode_libdir_separator=:
8934 case $host_cpu in
8935 hppa*64*|ia64*)
8936 hardcode_direct=no
8937 hardcode_shlibpath_var=no
8940 hardcode_direct=yes
8941 hardcode_direct_absolute=yes
8942 export_dynamic_flag_spec='${wl}-E'
8944 # hardcode_minus_L: Not really in the search PATH,
8945 # but as the default location of the library.
8946 hardcode_minus_L=yes
8948 esac
8952 irix5* | irix6* | nonstopux*)
8953 if test "$GCC" = yes; then
8954 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'
8955 # Try to use the -exported_symbol ld option, if it does not
8956 # work, assume that -exports_file does not work either and
8957 # implicitly export all symbols.
8958 save_LDFLAGS="$LDFLAGS"
8959 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8960 if test x$gcc_no_link = xyes; then
8961 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int foo(void) {}
8966 _ACEOF
8967 if ac_fn_c_try_link "$LINENO"; then :
8968 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'
8971 rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973 LDFLAGS="$save_LDFLAGS"
8974 else
8975 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'
8976 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'
8978 archive_cmds_need_lc='no'
8979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980 hardcode_libdir_separator=:
8981 inherit_rpath=yes
8982 link_all_deplibs=yes
8985 netbsd*)
8986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8988 else
8989 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8991 hardcode_libdir_flag_spec='-R$libdir'
8992 hardcode_direct=yes
8993 hardcode_shlibpath_var=no
8996 newsos6)
8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_direct=yes
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 hardcode_libdir_separator=:
9001 hardcode_shlibpath_var=no
9004 *nto* | *qnx*)
9007 openbsd*)
9008 if test -f /usr/libexec/ld.so; then
9009 hardcode_direct=yes
9010 hardcode_shlibpath_var=no
9011 hardcode_direct_absolute=yes
9012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9016 export_dynamic_flag_spec='${wl}-E'
9017 else
9018 case $host_os in
9019 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9021 hardcode_libdir_flag_spec='-R$libdir'
9024 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9025 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9027 esac
9029 else
9030 ld_shlibs=no
9034 os2*)
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_minus_L=yes
9037 allow_undefined_flag=unsupported
9038 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'
9039 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9042 osf3*)
9043 if test "$GCC" = yes; then
9044 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9045 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'
9046 else
9047 allow_undefined_flag=' -expect_unresolved \*'
9048 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'
9050 archive_cmds_need_lc='no'
9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052 hardcode_libdir_separator=:
9055 osf4* | osf5*) # as osf3* with the addition of -msym flag
9056 if test "$GCC" = yes; then
9057 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9058 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'
9059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9060 else
9061 allow_undefined_flag=' -expect_unresolved \*'
9062 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'
9063 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~
9064 $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'
9066 # Both c and cxx compiler support -rpath directly
9067 hardcode_libdir_flag_spec='-rpath $libdir'
9069 archive_cmds_need_lc='no'
9070 hardcode_libdir_separator=:
9073 solaris*)
9074 no_undefined_flag=' -z defs'
9075 if test "$GCC" = yes; then
9076 wlarc='${wl}'
9077 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9079 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9080 else
9081 case `$CC -V 2>&1` in
9082 *"Compilers 5.0"*)
9083 wlarc=''
9084 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9086 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9089 wlarc='${wl}'
9090 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9092 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9094 esac
9096 hardcode_libdir_flag_spec='-R$libdir'
9097 hardcode_shlibpath_var=no
9098 case $host_os in
9099 solaris2.[0-5] | solaris2.[0-5].*) ;;
9101 # The compiler driver will combine and reorder linker options,
9102 # but understands `-z linker_flag'. GCC discards it without `$wl',
9103 # but is careful enough not to reorder.
9104 # Supported since Solaris 2.6 (maybe 2.5.1?)
9105 if test "$GCC" = yes; then
9106 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9107 else
9108 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9111 esac
9112 link_all_deplibs=yes
9115 sunos4*)
9116 if test "x$host_vendor" = xsequent; then
9117 # Use $CC to link under sequent, because it throws in some extra .o
9118 # files that make .init and .fini sections work.
9119 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9120 else
9121 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_direct=yes
9125 hardcode_minus_L=yes
9126 hardcode_shlibpath_var=no
9129 sysv4)
9130 case $host_vendor in
9131 sni)
9132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133 hardcode_direct=yes # is this really true???
9135 siemens)
9136 ## LD is ld it makes a PLAMLIB
9137 ## CC just makes a GrossModule.
9138 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9139 reload_cmds='$CC -r -o $output$reload_objs'
9140 hardcode_direct=no
9142 motorola)
9143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9146 esac
9147 runpath_var='LD_RUN_PATH'
9148 hardcode_shlibpath_var=no
9151 sysv4.3*)
9152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9153 hardcode_shlibpath_var=no
9154 export_dynamic_flag_spec='-Bexport'
9157 sysv4*MP*)
9158 if test -d /usr/nec; then
9159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160 hardcode_shlibpath_var=no
9161 runpath_var=LD_RUN_PATH
9162 hardcode_runpath_var=yes
9163 ld_shlibs=yes
9167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9168 no_undefined_flag='${wl}-z,text'
9169 archive_cmds_need_lc=no
9170 hardcode_shlibpath_var=no
9171 runpath_var='LD_RUN_PATH'
9173 if test "$GCC" = yes; then
9174 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 else
9177 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 sysv5* | sco3.2v5* | sco5v6*)
9183 # Note: We can NOT use -z defs as we might desire, because we do not
9184 # link with -lc, and that would cause any symbols used from libc to
9185 # always be unresolved, which means just about no library would
9186 # ever link correctly. If we're not using GNU ld we use -z text
9187 # though, which does catch some bad symbols but isn't as heavy-handed
9188 # as -z defs.
9189 no_undefined_flag='${wl}-z,text'
9190 allow_undefined_flag='${wl}-z,nodefs'
9191 archive_cmds_need_lc=no
9192 hardcode_shlibpath_var=no
9193 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9194 hardcode_libdir_separator=':'
9195 link_all_deplibs=yes
9196 export_dynamic_flag_spec='${wl}-Bexport'
9197 runpath_var='LD_RUN_PATH'
9199 if test "$GCC" = yes; then
9200 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9201 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9202 else
9203 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9208 uts4*)
9209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_shlibpath_var=no
9215 ld_shlibs=no
9217 esac
9219 if test x$host_vendor = xsni; then
9220 case $host in
9221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9222 export_dynamic_flag_spec='${wl}-Blargedynsym'
9224 esac
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9229 $as_echo "$ld_shlibs" >&6; }
9230 test "$ld_shlibs" = no && can_build_shared=no
9232 with_gnu_ld=$with_gnu_ld
9249 # Do we need to explicitly link libc?
9251 case "x$archive_cmds_need_lc" in
9252 x|xyes)
9253 # Assume -lc should be added
9254 archive_cmds_need_lc=yes
9256 if test "$enable_shared" = yes && test "$GCC" = yes; then
9257 case $archive_cmds in
9258 *'~'*)
9259 # FIXME: we may have to deal with multi-command sequences.
9261 '$CC '*)
9262 # Test whether the compiler implicitly links with -lc since on some
9263 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9264 # to ld, don't add -lc before -lgcc.
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9266 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9267 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 $RM conftest*
9271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9274 (eval $ac_compile) 2>&5
9275 ac_status=$?
9276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9277 test $ac_status = 0; } 2>conftest.err; then
9278 soname=conftest
9279 lib=conftest
9280 libobjs=conftest.$ac_objext
9281 deplibs=
9282 wl=$lt_prog_compiler_wl
9283 pic_flag=$lt_prog_compiler_pic
9284 compiler_flags=-v
9285 linker_flags=-v
9286 verstring=
9287 output_objdir=.
9288 libname=conftest
9289 lt_save_allow_undefined_flag=$allow_undefined_flag
9290 allow_undefined_flag=
9291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9292 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9293 ac_status=$?
9294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9295 test $ac_status = 0; }
9296 then
9297 lt_cv_archive_cmds_need_lc=no
9298 else
9299 lt_cv_archive_cmds_need_lc=yes
9301 allow_undefined_flag=$lt_save_allow_undefined_flag
9302 else
9303 cat conftest.err 1>&5
9305 $RM conftest*
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9309 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9310 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9312 esac
9315 esac
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9474 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9476 if test "$GCC" = yes; then
9477 case $host_os in
9478 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9479 *) lt_awk_arg="/^libraries:/" ;;
9480 esac
9481 case $host_os in
9482 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9483 *) lt_sed_strip_eq="s,=/,/,g" ;;
9484 esac
9485 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9486 case $lt_search_path_spec in
9487 *\;*)
9488 # if the path contains ";" then we assume it to be the separator
9489 # otherwise default to the standard path separator (i.e. ":") - it is
9490 # assumed that no part of a normal pathname contains ";" but that should
9491 # okay in the real world where ";" in dirpaths is itself problematic.
9492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9497 esac
9498 # Ok, now we have the path, separated by spaces, we can step through it
9499 # and add multilib dir if necessary.
9500 lt_tmp_lt_search_path_spec=
9501 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9502 for lt_sys_path in $lt_search_path_spec; do
9503 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9504 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9505 else
9506 test -d "$lt_sys_path" && \
9507 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9509 done
9510 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9511 BEGIN {RS=" "; FS="/|\n";} {
9512 lt_foo="";
9513 lt_count=0;
9514 for (lt_i = NF; lt_i > 0; lt_i--) {
9515 if ($lt_i != "" && $lt_i != ".") {
9516 if ($lt_i == "..") {
9517 lt_count++;
9518 } else {
9519 if (lt_count == 0) {
9520 lt_foo="/" $lt_i lt_foo;
9521 } else {
9522 lt_count--;
9527 if (lt_foo != "") { lt_freq[lt_foo]++; }
9528 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9530 # AWK program above erroneously prepends '/' to C:/dos/paths
9531 # for these hosts.
9532 case $host_os in
9533 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9534 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9535 esac
9536 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9537 else
9538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9540 library_names_spec=
9541 libname_spec='lib$name'
9542 soname_spec=
9543 shrext_cmds=".so"
9544 postinstall_cmds=
9545 postuninstall_cmds=
9546 finish_cmds=
9547 finish_eval=
9548 shlibpath_var=
9549 shlibpath_overrides_runpath=unknown
9550 version_type=none
9551 dynamic_linker="$host_os ld.so"
9552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9553 need_lib_prefix=unknown
9554 hardcode_into_libs=no
9556 # when you set need_version to no, make sure it does not cause -set_version
9557 # flags to be left without arguments
9558 need_version=unknown
9560 case $host_os in
9561 aix3*)
9562 version_type=linux
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9564 shlibpath_var=LIBPATH
9566 # AIX 3 has no versioning support, so we append a major version to the name.
9567 soname_spec='${libname}${release}${shared_ext}$major'
9570 aix[4-9]*)
9571 version_type=linux
9572 need_lib_prefix=no
9573 need_version=no
9574 hardcode_into_libs=yes
9575 if test "$host_cpu" = ia64; then
9576 # AIX 5 supports IA64
9577 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 else
9580 # With GCC up to 2.95.x, collect2 would create an import file
9581 # for dependence libraries. The import file would start with
9582 # the line `#! .'. This would cause the generated library to
9583 # depend on `.', always an invalid library. This was fixed in
9584 # development snapshots of GCC prior to 3.0.
9585 case $host_os in
9586 aix4 | aix4.[01] | aix4.[01].*)
9587 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9588 echo ' yes '
9589 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9591 else
9592 can_build_shared=no
9595 esac
9596 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9597 # soname into executable. Probably we can add versioning support to
9598 # collect2, so additional links can be useful in future.
9599 if test "$aix_use_runtimelinking" = yes; then
9600 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9601 # instead of lib<name>.a to let people know that these are not
9602 # typical AIX shared libraries.
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604 else
9605 # We preserve .a as extension for shared libraries through AIX4.2
9606 # and later when we are not doing run time linking.
9607 library_names_spec='${libname}${release}.a $libname.a'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9610 shlibpath_var=LIBPATH
9614 amigaos*)
9615 case $host_cpu in
9616 powerpc)
9617 # Since July 2007 AmigaOS4 officially supports .so libraries.
9618 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621 m68k)
9622 library_names_spec='$libname.ixlibrary $libname.a'
9623 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9624 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'
9626 esac
9629 beos*)
9630 library_names_spec='${libname}${shared_ext}'
9631 dynamic_linker="$host_os ld.so"
9632 shlibpath_var=LIBRARY_PATH
9635 bsdi[45]*)
9636 version_type=linux
9637 need_version=no
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639 soname_spec='${libname}${release}${shared_ext}$major'
9640 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9641 shlibpath_var=LD_LIBRARY_PATH
9642 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9643 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9644 # the default ld.so.conf also contains /usr/contrib/lib and
9645 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9646 # libtool to hard-code these into programs
9649 cygwin* | mingw* | pw32* | cegcc*)
9650 version_type=windows
9651 shrext_cmds=".dll"
9652 need_version=no
9653 need_lib_prefix=no
9655 case $GCC,$host_os in
9656 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9657 library_names_spec='$libname.dll.a'
9658 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9659 postinstall_cmds='base_file=`basename \${file}`~
9660 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9661 dldir=$destdir/`dirname \$dlpath`~
9662 test -d \$dldir || mkdir -p \$dldir~
9663 $install_prog $dir/$dlname \$dldir/$dlname~
9664 chmod a+x \$dldir/$dlname~
9665 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9666 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9669 dlpath=$dir/\$dldll~
9670 $RM \$dlpath'
9671 shlibpath_overrides_runpath=yes
9673 case $host_os in
9674 cygwin*)
9675 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9676 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9678 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9680 mingw* | cegcc*)
9681 # MinGW DLLs use traditional 'lib' prefix
9682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9684 pw32*)
9685 # pw32 DLLs use 'pw' prefix rather than 'lib'
9686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9688 esac
9692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9694 esac
9695 dynamic_linker='Win32 ld.exe'
9696 # FIXME: first we should search . and the directory the executable is in
9697 shlibpath_var=PATH
9700 darwin* | rhapsody*)
9701 dynamic_linker="$host_os dyld"
9702 version_type=darwin
9703 need_lib_prefix=no
9704 need_version=no
9705 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9706 soname_spec='${libname}${release}${major}$shared_ext'
9707 shlibpath_overrides_runpath=yes
9708 shlibpath_var=DYLD_LIBRARY_PATH
9709 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9711 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9715 dgux*)
9716 version_type=linux
9717 need_lib_prefix=no
9718 need_version=no
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 shlibpath_var=LD_LIBRARY_PATH
9724 freebsd* | dragonfly*)
9725 # DragonFly does not have aout. When/if they implement a new
9726 # versioning mechanism, adjust this.
9727 if test -x /usr/bin/objformat; then
9728 objformat=`/usr/bin/objformat`
9729 else
9730 case $host_os in
9731 freebsd[23].*) objformat=aout ;;
9732 *) objformat=elf ;;
9733 esac
9735 version_type=freebsd-$objformat
9736 case $version_type in
9737 freebsd-elf*)
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9739 need_version=no
9740 need_lib_prefix=no
9742 freebsd-*)
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9744 need_version=yes
9746 esac
9747 shlibpath_var=LD_LIBRARY_PATH
9748 case $host_os in
9749 freebsd2.*)
9750 shlibpath_overrides_runpath=yes
9752 freebsd3.[01]* | freebsdelf3.[01]*)
9753 shlibpath_overrides_runpath=yes
9754 hardcode_into_libs=yes
9756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9758 shlibpath_overrides_runpath=no
9759 hardcode_into_libs=yes
9761 *) # from 4.6 on, and DragonFly
9762 shlibpath_overrides_runpath=yes
9763 hardcode_into_libs=yes
9765 esac
9768 gnu*)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 hardcode_into_libs=yes
9778 haiku*)
9779 version_type=linux
9780 need_lib_prefix=no
9781 need_version=no
9782 dynamic_linker="$host_os runtime_loader"
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 shlibpath_var=LIBRARY_PATH
9786 shlibpath_overrides_runpath=yes
9787 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9788 hardcode_into_libs=yes
9791 hpux9* | hpux10* | hpux11*)
9792 # Give a soname corresponding to the major version so that dld.sl refuses to
9793 # link against other versions.
9794 version_type=sunos
9795 need_lib_prefix=no
9796 need_version=no
9797 case $host_cpu in
9798 ia64*)
9799 shrext_cmds='.so'
9800 hardcode_into_libs=yes
9801 dynamic_linker="$host_os dld.so"
9802 shlibpath_var=LD_LIBRARY_PATH
9803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 if test "X$HPUX_IA64_MODE" = X32; then
9807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9808 else
9809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9813 hppa*64*)
9814 shrext_cmds='.sl'
9815 hardcode_into_libs=yes
9816 dynamic_linker="$host_os dld.sl"
9817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9825 shrext_cmds='.sl'
9826 dynamic_linker="$host_os dld.sl"
9827 shlibpath_var=SHLIB_PATH
9828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9832 esac
9833 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9834 postinstall_cmds='chmod 555 $lib'
9835 # or fails outright, so override atomically:
9836 install_override_mode=555
9839 interix[3-9]*)
9840 version_type=linux
9841 need_lib_prefix=no
9842 need_version=no
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=no
9848 hardcode_into_libs=yes
9851 irix5* | irix6* | nonstopux*)
9852 case $host_os in
9853 nonstopux*) version_type=nonstopux ;;
9855 if test "$lt_cv_prog_gnu_ld" = yes; then
9856 version_type=linux
9857 else
9858 version_type=irix
9859 fi ;;
9860 esac
9861 need_lib_prefix=no
9862 need_version=no
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9865 case $host_os in
9866 irix5* | nonstopux*)
9867 libsuff= shlibsuff=
9870 case $LD in # libtool.m4 will add one of these switches to LD
9871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9872 libsuff= shlibsuff= libmagic=32-bit;;
9873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9874 libsuff=32 shlibsuff=N32 libmagic=N32;;
9875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9877 *) libsuff= shlibsuff= libmagic=never-match;;
9878 esac
9880 esac
9881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9882 shlibpath_overrides_runpath=no
9883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9885 hardcode_into_libs=yes
9888 # No shared lib support for Linux oldld, aout, or coff.
9889 linux*oldld* | linux*aout* | linux*coff*)
9890 dynamic_linker=no
9893 # This must be Linux ELF.
9894 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9895 version_type=linux
9896 need_lib_prefix=no
9897 need_version=no
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 shlibpath_overrides_runpath=no
9904 # Some binutils ld are patched to set DT_RUNPATH
9905 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 lt_cv_shlibpath_overrides_runpath=no
9909 save_LDFLAGS=$LDFLAGS
9910 save_libdir=$libdir
9911 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9912 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9913 if test x$gcc_no_link = xyes; then
9914 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9920 main ()
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9929 lt_cv_shlibpath_overrides_runpath=yes
9932 rm -f core conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LDFLAGS=$save_LDFLAGS
9935 libdir=$save_libdir
9939 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9941 # This implies no fast_install, which is unacceptable.
9942 # Some rework will be needed to allow for fast_install
9943 # before this can be enabled.
9944 hardcode_into_libs=yes
9946 # Append ld.so.conf contents to the search path
9947 if test -f /etc/ld.so.conf; then
9948 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' ' '`
9949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9952 # We used to test for /lib/ld.so.1 and disable shared libraries on
9953 # powerpc, because MkLinux only supported shared libraries with the
9954 # GNU dynamic linker. Since this was broken with cross compilers,
9955 # most powerpc-linux boxes support dynamic linking these days and
9956 # people can always --disable-shared, the test was removed, and we
9957 # assume the GNU/Linux dynamic linker is in use.
9958 dynamic_linker='GNU/Linux ld.so'
9961 netbsd*)
9962 version_type=sunos
9963 need_lib_prefix=no
9964 need_version=no
9965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9968 dynamic_linker='NetBSD (a.out) ld.so'
9969 else
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 dynamic_linker='NetBSD ld.elf_so'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath=yes
9976 hardcode_into_libs=yes
9979 newsos6)
9980 version_type=linux
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 shlibpath_var=LD_LIBRARY_PATH
9983 shlibpath_overrides_runpath=yes
9986 *nto* | *qnx*)
9987 version_type=qnx
9988 need_lib_prefix=no
9989 need_version=no
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 shlibpath_var=LD_LIBRARY_PATH
9993 shlibpath_overrides_runpath=no
9994 hardcode_into_libs=yes
9995 dynamic_linker='ldqnx.so'
9998 openbsd*)
9999 version_type=sunos
10000 sys_lib_dlsearch_path_spec="/usr/lib"
10001 need_lib_prefix=no
10002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10003 case $host_os in
10004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10005 *) need_version=no ;;
10006 esac
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10009 shlibpath_var=LD_LIBRARY_PATH
10010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10011 case $host_os in
10012 openbsd2.[89] | openbsd2.[89].*)
10013 shlibpath_overrides_runpath=no
10016 shlibpath_overrides_runpath=yes
10018 esac
10019 else
10020 shlibpath_overrides_runpath=yes
10024 os2*)
10025 libname_spec='$name'
10026 shrext_cmds=".dll"
10027 need_lib_prefix=no
10028 library_names_spec='$libname${shared_ext} $libname.a'
10029 dynamic_linker='OS/2 ld.exe'
10030 shlibpath_var=LIBPATH
10033 osf3* | osf4* | osf5*)
10034 version_type=osf
10035 need_lib_prefix=no
10036 need_version=no
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10044 rdos*)
10045 dynamic_linker=no
10048 solaris*)
10049 version_type=linux
10050 need_lib_prefix=no
10051 need_version=no
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=yes
10056 hardcode_into_libs=yes
10057 # ldd complains unless libraries are executable
10058 postinstall_cmds='chmod +x $lib'
10061 sunos4*)
10062 version_type=sunos
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=yes
10067 if test "$with_gnu_ld" = yes; then
10068 need_lib_prefix=no
10070 need_version=yes
10073 sysv4 | sysv4.3*)
10074 version_type=linux
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 case $host_vendor in
10079 sni)
10080 shlibpath_overrides_runpath=no
10081 need_lib_prefix=no
10082 runpath_var=LD_RUN_PATH
10084 siemens)
10085 need_lib_prefix=no
10087 motorola)
10088 need_lib_prefix=no
10089 need_version=no
10090 shlibpath_overrides_runpath=no
10091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10093 esac
10096 sysv4*MP*)
10097 if test -d /usr/nec ;then
10098 version_type=linux
10099 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10100 soname_spec='$libname${shared_ext}.$major'
10101 shlibpath_var=LD_LIBRARY_PATH
10105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10106 version_type=freebsd-elf
10107 need_lib_prefix=no
10108 need_version=no
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10113 hardcode_into_libs=yes
10114 if test "$with_gnu_ld" = yes; then
10115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10116 else
10117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10118 case $host_os in
10119 sco3.2v5*)
10120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10122 esac
10124 sys_lib_dlsearch_path_spec='/usr/lib'
10127 tpf*)
10128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10129 version_type=linux
10130 need_lib_prefix=no
10131 need_version=no
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 shlibpath_var=LD_LIBRARY_PATH
10134 shlibpath_overrides_runpath=no
10135 hardcode_into_libs=yes
10138 uts4*)
10139 version_type=linux
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10146 dynamic_linker=no
10148 esac
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10150 $as_echo "$dynamic_linker" >&6; }
10151 test "$dynamic_linker" = no && can_build_shared=no
10153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10154 if test "$GCC" = yes; then
10155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10158 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10159 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10161 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10162 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10257 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10258 hardcode_action=
10259 if test -n "$hardcode_libdir_flag_spec" ||
10260 test -n "$runpath_var" ||
10261 test "X$hardcode_automatic" = "Xyes" ; then
10263 # We can hardcode non-existent directories.
10264 if test "$hardcode_direct" != no &&
10265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10266 # have to relink, otherwise we might link with an installed library
10267 # when we should be linking with a yet-to-be-installed one
10268 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10269 test "$hardcode_minus_L" != no; then
10270 # Linking always hardcodes the temporary library directory.
10271 hardcode_action=relink
10272 else
10273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10274 hardcode_action=immediate
10276 else
10277 # We cannot hardcode anything, or else we can only hardcode existing
10278 # directories.
10279 hardcode_action=unsupported
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10282 $as_echo "$hardcode_action" >&6; }
10284 if test "$hardcode_action" = relink ||
10285 test "$inherit_rpath" = yes; then
10286 # Fast installation is not supported
10287 enable_fast_install=no
10288 elif test "$shlibpath_overrides_runpath" = yes ||
10289 test "$enable_shared" = no; then
10290 # Fast installation is not necessary
10291 enable_fast_install=needless
10299 if test "x$enable_dlopen" != xyes; then
10300 enable_dlopen=unknown
10301 enable_dlopen_self=unknown
10302 enable_dlopen_self_static=unknown
10303 else
10304 lt_cv_dlopen=no
10305 lt_cv_dlopen_libs=
10307 case $host_os in
10308 beos*)
10309 lt_cv_dlopen="load_add_on"
10310 lt_cv_dlopen_libs=
10311 lt_cv_dlopen_self=yes
10314 mingw* | pw32* | cegcc*)
10315 lt_cv_dlopen="LoadLibrary"
10316 lt_cv_dlopen_libs=
10319 cygwin*)
10320 lt_cv_dlopen="dlopen"
10321 lt_cv_dlopen_libs=
10324 darwin*)
10325 # if libdl is installed we need to link against it
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10327 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-ldl $LIBS"
10333 if test x$gcc_no_link = xyes; then
10334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char dlopen ();
10347 main ()
10349 return dlopen ();
10351 return 0;
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355 ac_cv_lib_dl_dlopen=yes
10356 else
10357 ac_cv_lib_dl_dlopen=no
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 LIBS=$ac_check_lib_save_LIBS
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10364 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10365 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10367 else
10369 lt_cv_dlopen="dyld"
10370 lt_cv_dlopen_libs=
10371 lt_cv_dlopen_self=yes
10378 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10379 if test "x$ac_cv_func_shl_load" = x""yes; then :
10380 lt_cv_dlopen="shl_load"
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10383 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10384 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-ldld $LIBS"
10389 if test x$gcc_no_link = xyes; then
10390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10395 /* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 char shl_load ();
10403 main ()
10405 return shl_load ();
10407 return 0;
10409 _ACEOF
10410 if ac_fn_c_try_link "$LINENO"; then :
10411 ac_cv_lib_dld_shl_load=yes
10412 else
10413 ac_cv_lib_dld_shl_load=no
10415 rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417 LIBS=$ac_check_lib_save_LIBS
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10420 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10421 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10422 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10423 else
10424 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10425 if test "x$ac_cv_func_dlopen" = x""yes; then :
10426 lt_cv_dlopen="dlopen"
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10429 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10430 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-ldl $LIBS"
10435 if test x$gcc_no_link = xyes; then
10436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10444 #ifdef __cplusplus
10445 extern "C"
10446 #endif
10447 char dlopen ();
10449 main ()
10451 return dlopen ();
10453 return 0;
10455 _ACEOF
10456 if ac_fn_c_try_link "$LINENO"; then :
10457 ac_cv_lib_dl_dlopen=yes
10458 else
10459 ac_cv_lib_dl_dlopen=no
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463 LIBS=$ac_check_lib_save_LIBS
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10466 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10467 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10471 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10472 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 ac_check_lib_save_LIBS=$LIBS
10476 LIBS="-lsvld $LIBS"
10477 if test x$gcc_no_link = xyes; then
10478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10483 /* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 char dlopen ();
10491 main ()
10493 return dlopen ();
10495 return 0;
10497 _ACEOF
10498 if ac_fn_c_try_link "$LINENO"; then :
10499 ac_cv_lib_svld_dlopen=yes
10500 else
10501 ac_cv_lib_svld_dlopen=no
10503 rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10508 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10509 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10513 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10514 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-ldld $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 dld_link ();
10533 main ()
10535 return dld_link ();
10537 return 0;
10539 _ACEOF
10540 if ac_fn_c_try_link "$LINENO"; then :
10541 ac_cv_lib_dld_dld_link=yes
10542 else
10543 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
10550 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10551 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10552 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10571 esac
10573 if test "x$lt_cv_dlopen" != xno; then
10574 enable_dlopen=yes
10575 else
10576 enable_dlopen=no
10579 case $lt_cv_dlopen in
10580 dlopen)
10581 save_CPPFLAGS="$CPPFLAGS"
10582 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10584 save_LDFLAGS="$LDFLAGS"
10585 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10587 save_LIBS="$LIBS"
10588 LIBS="$lt_cv_dlopen_libs $LIBS"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10591 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10592 if test "${lt_cv_dlopen_self+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 if test "$cross_compiling" = yes; then :
10596 lt_cv_dlopen_self=cross
10597 else
10598 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10599 lt_status=$lt_dlunknown
10600 cat > conftest.$ac_ext <<_LT_EOF
10601 #line 10601 "configure"
10602 #include "confdefs.h"
10604 #if HAVE_DLFCN_H
10605 #include <dlfcn.h>
10606 #endif
10608 #include <stdio.h>
10610 #ifdef RTLD_GLOBAL
10611 # define LT_DLGLOBAL RTLD_GLOBAL
10612 #else
10613 # ifdef DL_GLOBAL
10614 # define LT_DLGLOBAL DL_GLOBAL
10615 # else
10616 # define LT_DLGLOBAL 0
10617 # endif
10618 #endif
10620 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10621 find out it does not work in some platform. */
10622 #ifndef LT_DLLAZY_OR_NOW
10623 # ifdef RTLD_LAZY
10624 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10625 # else
10626 # ifdef DL_LAZY
10627 # define LT_DLLAZY_OR_NOW DL_LAZY
10628 # else
10629 # ifdef RTLD_NOW
10630 # define LT_DLLAZY_OR_NOW RTLD_NOW
10631 # else
10632 # ifdef DL_NOW
10633 # define LT_DLLAZY_OR_NOW DL_NOW
10634 # else
10635 # define LT_DLLAZY_OR_NOW 0
10636 # endif
10637 # endif
10638 # endif
10639 # endif
10640 #endif
10642 /* When -fvisbility=hidden is used, assume the code has been annotated
10643 correspondingly for the symbols needed. */
10644 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10645 void fnord () __attribute__((visibility("default")));
10646 #endif
10648 void fnord () { int i=42; }
10649 int main ()
10651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10652 int status = $lt_dlunknown;
10654 if (self)
10656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10657 else
10659 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10660 else puts (dlerror ());
10662 /* dlclose (self); */
10664 else
10665 puts (dlerror ());
10667 return status;
10669 _LT_EOF
10670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10671 (eval $ac_link) 2>&5
10672 ac_status=$?
10673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10674 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10675 (./conftest; exit; ) >&5 2>/dev/null
10676 lt_status=$?
10677 case x$lt_status in
10678 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10679 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10680 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10681 esac
10682 else :
10683 # compilation failed
10684 lt_cv_dlopen_self=no
10687 rm -fr conftest*
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10692 $as_echo "$lt_cv_dlopen_self" >&6; }
10694 if test "x$lt_cv_dlopen_self" = xyes; then
10695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10697 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10698 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 if test "$cross_compiling" = yes; then :
10702 lt_cv_dlopen_self_static=cross
10703 else
10704 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10705 lt_status=$lt_dlunknown
10706 cat > conftest.$ac_ext <<_LT_EOF
10707 #line 10707 "configure"
10708 #include "confdefs.h"
10710 #if HAVE_DLFCN_H
10711 #include <dlfcn.h>
10712 #endif
10714 #include <stdio.h>
10716 #ifdef RTLD_GLOBAL
10717 # define LT_DLGLOBAL RTLD_GLOBAL
10718 #else
10719 # ifdef DL_GLOBAL
10720 # define LT_DLGLOBAL DL_GLOBAL
10721 # else
10722 # define LT_DLGLOBAL 0
10723 # endif
10724 #endif
10726 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10727 find out it does not work in some platform. */
10728 #ifndef LT_DLLAZY_OR_NOW
10729 # ifdef RTLD_LAZY
10730 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10731 # else
10732 # ifdef DL_LAZY
10733 # define LT_DLLAZY_OR_NOW DL_LAZY
10734 # else
10735 # ifdef RTLD_NOW
10736 # define LT_DLLAZY_OR_NOW RTLD_NOW
10737 # else
10738 # ifdef DL_NOW
10739 # define LT_DLLAZY_OR_NOW DL_NOW
10740 # else
10741 # define LT_DLLAZY_OR_NOW 0
10742 # endif
10743 # endif
10744 # endif
10745 # endif
10746 #endif
10748 /* When -fvisbility=hidden is used, assume the code has been annotated
10749 correspondingly for the symbols needed. */
10750 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10751 void fnord () __attribute__((visibility("default")));
10752 #endif
10754 void fnord () { int i=42; }
10755 int main ()
10757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10758 int status = $lt_dlunknown;
10760 if (self)
10762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10763 else
10765 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10766 else puts (dlerror ());
10768 /* dlclose (self); */
10770 else
10771 puts (dlerror ());
10773 return status;
10775 _LT_EOF
10776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10777 (eval $ac_link) 2>&5
10778 ac_status=$?
10779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10780 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10781 (./conftest; exit; ) >&5 2>/dev/null
10782 lt_status=$?
10783 case x$lt_status in
10784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10786 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10787 esac
10788 else :
10789 # compilation failed
10790 lt_cv_dlopen_self_static=no
10793 rm -fr conftest*
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10798 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10801 CPPFLAGS="$save_CPPFLAGS"
10802 LDFLAGS="$save_LDFLAGS"
10803 LIBS="$save_LIBS"
10805 esac
10807 case $lt_cv_dlopen_self in
10808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10809 *) enable_dlopen_self=unknown ;;
10810 esac
10812 case $lt_cv_dlopen_self_static in
10813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10814 *) enable_dlopen_self_static=unknown ;;
10815 esac
10834 striplib=
10835 old_striplib=
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10837 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10838 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10840 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; }
10843 else
10844 # FIXME - insert some real tests, host_os isn't really good enough
10845 case $host_os in
10846 darwin*)
10847 if test -n "$STRIP" ; then
10848 striplib="$STRIP -x"
10849 old_striplib="$STRIP -S"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851 $as_echo "yes" >&6; }
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10861 esac
10875 # Report which library types will actually be built
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10877 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10879 $as_echo "$can_build_shared" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10882 $as_echo_n "checking whether to build shared libraries... " >&6; }
10883 test "$can_build_shared" = "no" && enable_shared=no
10885 # On AIX, shared libraries and static libraries use the same namespace, and
10886 # are all built from PIC.
10887 case $host_os in
10888 aix3*)
10889 test "$enable_shared" = yes && enable_static=no
10890 if test -n "$RANLIB"; then
10891 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10892 postinstall_cmds='$RANLIB $lib'
10896 aix[4-9]*)
10897 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10898 test "$enable_shared" = yes && enable_static=no
10901 esac
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10903 $as_echo "$enable_shared" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10906 $as_echo_n "checking whether to build static libraries... " >&6; }
10907 # Make sure either enable_shared or enable_static is yes.
10908 test "$enable_shared" = yes || enable_static=yes
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10910 $as_echo "$enable_static" >&6; }
10916 ac_ext=c
10917 ac_cpp='$CPP $CPPFLAGS'
10918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10922 CC="$lt_save_CC"
10936 ac_config_commands="$ac_config_commands libtool"
10941 # Only expand once:
10945 if test "x$CC" != xcc; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10947 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10950 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10952 set dummy $CC; ac_cc=`$as_echo "$2" |
10953 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10954 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10961 main ()
10965 return 0;
10967 _ACEOF
10968 # Make sure it works both with $CC and with simple cc.
10969 # We do the test twice because some compilers refuse to overwrite an
10970 # existing .o file with -o, though they will create one.
10971 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10972 rm -f conftest2.*
10973 if { { case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976 esac
10977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10978 $as_echo "$ac_try_echo"; } >&5
10979 (eval "$ac_try") 2>&5
10980 ac_status=$?
10981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982 test $ac_status = 0; } &&
10983 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986 esac
10987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10988 $as_echo "$ac_try_echo"; } >&5
10989 (eval "$ac_try") 2>&5
10990 ac_status=$?
10991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10992 test $ac_status = 0; };
10993 then
10994 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10995 if test "x$CC" != xcc; then
10996 # Test first that cc exists at all.
10997 if { ac_try='cc -c conftest.$ac_ext >&5'
10998 { { case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001 esac
11002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11003 $as_echo "$ac_try_echo"; } >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007 test $ac_status = 0; }; }; then
11008 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11009 rm -f conftest2.*
11010 if { { case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11015 $as_echo "$ac_try_echo"; } >&5
11016 (eval "$ac_try") 2>&5
11017 ac_status=$?
11018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019 test $ac_status = 0; } &&
11020 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023 esac
11024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11025 $as_echo "$ac_try_echo"; } >&5
11026 (eval "$ac_try") 2>&5
11027 ac_status=$?
11028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029 test $ac_status = 0; };
11030 then
11031 # cc works too.
11033 else
11034 # cc exists but doesn't like -o.
11035 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11039 else
11040 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11042 rm -f core conftest*
11045 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11047 $as_echo "yes" >&6; }
11048 else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11052 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11056 # expand $ac_aux_dir to an absolute path
11057 am_aux_dir=`cd $ac_aux_dir && pwd`
11059 # FIXME: we rely on the cache variable name because
11060 # there is no other way.
11061 set dummy $CC
11062 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11063 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11064 if test "$am_t" != yes; then
11065 # Losing compiler, so override with the script.
11066 # FIXME: It is wrong to rewrite CC.
11067 # But if we don't then we get into trouble of one sort or another.
11068 # A longer-term fix would be to have automake use am__CC in this case,
11069 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11070 CC="$am_aux_dir/compile $CC"
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11076 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11077 set x ${MAKE-make}
11078 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11079 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 cat >conftest.make <<\_ACEOF
11083 SHELL = /bin/sh
11084 all:
11085 @echo '@@@%%%=$(MAKE)=@@@%%%'
11086 _ACEOF
11087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11088 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11089 *@@@%%%=?*=@@@%%%*)
11090 eval ac_cv_prog_make_${ac_make}_set=yes;;
11092 eval ac_cv_prog_make_${ac_make}_set=no;;
11093 esac
11094 rm -f conftest.make
11096 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11098 $as_echo "yes" >&6; }
11099 SET_MAKE=
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11103 SET_MAKE="MAKE=${MAKE-make}"
11107 # -------
11108 # Headers
11109 # -------
11111 # Sanity check for the cross-compilation case:
11112 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11113 if test "x$ac_cv_header_stdio_h" = x""yes; then :
11115 else
11116 as_fn_error "Can't find stdio.h.
11117 You must have a usable C system for the target already installed, at least
11118 including headers and, preferably, the library, before you can configure
11119 the Objective C runtime system. If necessary, install gcc now with
11120 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11126 $as_echo_n "checking for ANSI C header files... " >&6; }
11127 if test "${ac_cv_header_stdc+set}" = set; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132 #include <stdlib.h>
11133 #include <stdarg.h>
11134 #include <string.h>
11135 #include <float.h>
11138 main ()
11142 return 0;
11144 _ACEOF
11145 if ac_fn_c_try_compile "$LINENO"; then :
11146 ac_cv_header_stdc=yes
11147 else
11148 ac_cv_header_stdc=no
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 if test $ac_cv_header_stdc = yes; then
11153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11156 #include <string.h>
11158 _ACEOF
11159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11160 $EGREP "memchr" >/dev/null 2>&1; then :
11162 else
11163 ac_cv_header_stdc=no
11165 rm -f conftest*
11169 if test $ac_cv_header_stdc = yes; then
11170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #include <stdlib.h>
11175 _ACEOF
11176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11177 $EGREP "free" >/dev/null 2>&1; then :
11179 else
11180 ac_cv_header_stdc=no
11182 rm -f conftest*
11186 if test $ac_cv_header_stdc = yes; then
11187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11188 if test "$cross_compiling" = yes; then :
11190 else
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 #include <ctype.h>
11194 #include <stdlib.h>
11195 #if ((' ' & 0x0FF) == 0x020)
11196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11198 #else
11199 # define ISLOWER(c) \
11200 (('a' <= (c) && (c) <= 'i') \
11201 || ('j' <= (c) && (c) <= 'r') \
11202 || ('s' <= (c) && (c) <= 'z'))
11203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11204 #endif
11206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11208 main ()
11210 int i;
11211 for (i = 0; i < 256; i++)
11212 if (XOR (islower (i), ISLOWER (i))
11213 || toupper (i) != TOUPPER (i))
11214 return 2;
11215 return 0;
11217 _ACEOF
11218 if ac_fn_c_try_run "$LINENO"; then :
11220 else
11221 ac_cv_header_stdc=no
11223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11224 conftest.$ac_objext conftest.beam conftest.$ac_ext
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11230 $as_echo "$ac_cv_header_stdc" >&6; }
11231 if test $ac_cv_header_stdc = yes; then
11233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11238 for ac_header in sched.h
11239 do :
11240 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11241 if test "x$ac_cv_header_sched_h" = x""yes; then :
11242 cat >>confdefs.h <<_ACEOF
11243 #define HAVE_SCHED_H 1
11244 _ACEOF
11248 done
11251 # -----------
11252 # Miscellanea
11253 # -----------
11255 # Check if we have thread-local storage
11258 # Check whether --enable-tls was given.
11259 if test "${enable_tls+set}" = set; then :
11260 enableval=$enable_tls;
11261 case "$enableval" in
11262 yes|no) ;;
11263 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11264 esac
11266 else
11267 enable_tls=yes
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11272 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11273 if test "${gcc_cv_have_tls+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11277 if test "$cross_compiling" = yes; then :
11278 if test x$gcc_no_link = xyes; then
11279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283 __thread int a; int b; int main() { return a = b; }
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286 chktls_save_LDFLAGS="$LDFLAGS"
11287 case $host in
11288 *-*-linux*)
11289 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11291 esac
11292 chktls_save_CFLAGS="$CFLAGS"
11293 CFLAGS="-fPIC $CFLAGS"
11294 if test x$gcc_no_link = xyes; then
11295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11299 int f() { return 0; }
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 if test x$gcc_no_link = xyes; then
11303 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307 __thread int a; int b; int f() { return a = b; }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310 gcc_cv_have_tls=yes
11311 else
11312 gcc_cv_have_tls=no
11314 rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 else
11317 gcc_cv_have_tls=yes
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 CFLAGS="$chktls_save_CFLAGS"
11322 LDFLAGS="$chktls_save_LDFLAGS"
11323 else
11324 gcc_cv_have_tls=no
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11330 else
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333 __thread int a; int b; int main() { return a = b; }
11334 _ACEOF
11335 if ac_fn_c_try_run "$LINENO"; then :
11336 chktls_save_LDFLAGS="$LDFLAGS"
11337 LDFLAGS="-static $LDFLAGS"
11338 if test x$gcc_no_link = xyes; then
11339 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 int main() { return 0; }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346 if test "$cross_compiling" = yes; then :
11347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11349 as_fn_error "cannot run test program while cross compiling
11350 See \`config.log' for more details." "$LINENO" 5; }
11351 else
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 __thread int a; int b; int main() { return a = b; }
11355 _ACEOF
11356 if ac_fn_c_try_run "$LINENO"; then :
11357 gcc_cv_have_tls=yes
11358 else
11359 gcc_cv_have_tls=no
11361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11362 conftest.$ac_objext conftest.beam conftest.$ac_ext
11365 else
11366 gcc_cv_have_tls=yes
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LDFLAGS="$chktls_save_LDFLAGS"
11371 if test $gcc_cv_have_tls = yes; then
11372 chktls_save_CFLAGS="$CFLAGS"
11373 thread_CFLAGS=failed
11374 for flag in '' '-pthread' '-lpthread'; do
11375 CFLAGS="$flag $chktls_save_CFLAGS"
11376 if test x$gcc_no_link = xyes; then
11377 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381 #include <pthread.h>
11382 void *g(void *d) { return NULL; }
11384 main ()
11386 pthread_t t; pthread_create(&t,NULL,g,NULL);
11388 return 0;
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 thread_CFLAGS="$flag"
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11396 if test "X$thread_CFLAGS" != Xfailed; then
11397 break
11399 done
11400 CFLAGS="$chktls_save_CFLAGS"
11401 if test "X$thread_CFLAGS" != Xfailed; then
11402 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11403 if test "$cross_compiling" = yes; then :
11404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11406 as_fn_error "cannot run test program while cross compiling
11407 See \`config.log' for more details." "$LINENO" 5; }
11408 else
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411 #include <pthread.h>
11412 __thread int a;
11413 static int *volatile a_in_other_thread;
11414 static void *
11415 thread_func (void *arg)
11417 a_in_other_thread = &a;
11418 return (void *)0;
11421 main ()
11423 pthread_t thread;
11424 void *thread_retval;
11425 int *volatile a_in_main_thread;
11426 a_in_main_thread = &a;
11427 if (pthread_create (&thread, (pthread_attr_t *)0,
11428 thread_func, (void *)0))
11429 return 0;
11430 if (pthread_join (thread, &thread_retval))
11431 return 0;
11432 return (a_in_other_thread == a_in_main_thread);
11434 return 0;
11436 _ACEOF
11437 if ac_fn_c_try_run "$LINENO"; then :
11438 gcc_cv_have_tls=yes
11439 else
11440 gcc_cv_have_tls=no
11442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11443 conftest.$ac_objext conftest.beam conftest.$ac_ext
11446 CFLAGS="$chktls_save_CFLAGS"
11449 else
11450 gcc_cv_have_tls=no
11452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11453 conftest.$ac_objext conftest.beam conftest.$ac_ext
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11458 $as_echo "$gcc_cv_have_tls" >&6; }
11459 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11461 $as_echo "#define HAVE_TLS 1" >>confdefs.h
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
11467 $as_echo_n "checking if the type of bitfields matters... " >&6; }
11468 if test "${gt_cv_bitfield_type_matters+set}" = set; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 struct foo1 { char x; char y:1; char z; };
11475 struct foo2 { char x; long long int y:1; char z; };
11476 int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
11478 main ()
11482 return 0;
11484 _ACEOF
11485 if ac_fn_c_try_compile "$LINENO"; then :
11486 gt_cv_bitfield_type_matters=yes
11487 else
11488 gt_cv_bitfield_type_matters=no
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
11494 $as_echo "$gt_cv_bitfield_type_matters" >&6; }
11495 if test $gt_cv_bitfield_type_matters = yes; then
11497 $as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
11502 # ------
11503 # Output
11504 # ------
11506 if test ${multilib} = yes; then
11507 multilib_arg="--enable-multilib"
11508 else
11509 multilib_arg=
11512 ac_config_files="$ac_config_files Makefile"
11514 cat >confcache <<\_ACEOF
11515 # This file is a shell script that caches the results of configure
11516 # tests run on this system so they can be shared between configure
11517 # scripts and configure runs, see configure's option --config-cache.
11518 # It is not useful on other systems. If it contains results you don't
11519 # want to keep, you may remove or edit it.
11521 # config.status only pays attention to the cache file if you give it
11522 # the --recheck option to rerun configure.
11524 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11526 # following values.
11528 _ACEOF
11530 # The following way of writing the cache mishandles newlines in values,
11531 # but we know of no workaround that is simple, portable, and efficient.
11532 # So, we kill variables containing newlines.
11533 # Ultrix sh set writes to stderr and can't be redirected directly,
11534 # and sets the high bit in the cache file unless we assign to the vars.
11536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11537 eval ac_val=\$$ac_var
11538 case $ac_val in #(
11539 *${as_nl}*)
11540 case $ac_var in #(
11541 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11543 esac
11544 case $ac_var in #(
11545 _ | IFS | as_nl) ;; #(
11546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11547 *) { eval $ac_var=; unset $ac_var;} ;;
11548 esac ;;
11549 esac
11550 done
11552 (set) 2>&1 |
11553 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11554 *${as_nl}ac_space=\ *)
11555 # `set' does not quote correctly, so add quotes: double-quote
11556 # substitution turns \\\\ into \\, and sed turns \\ into \.
11557 sed -n \
11558 "s/'/'\\\\''/g;
11559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11560 ;; #(
11562 # `set' quotes correctly as required by POSIX, so do not add quotes.
11563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11565 esac |
11566 sort
11568 sed '
11569 /^ac_cv_env_/b end
11570 t clear
11571 :clear
11572 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11573 t end
11574 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11575 :end' >>confcache
11576 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11577 if test -w "$cache_file"; then
11578 test "x$cache_file" != "x/dev/null" &&
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11580 $as_echo "$as_me: updating cache $cache_file" >&6;}
11581 cat confcache >$cache_file
11582 else
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11584 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11587 rm -f confcache
11589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11590 # Let make expand exec_prefix.
11591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11593 DEFS=-DHAVE_CONFIG_H
11595 ac_libobjs=
11596 ac_ltlibobjs=
11597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11598 # 1. Remove the extension, and $U if already installed.
11599 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11600 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11602 # will be set to the directory where LIBOBJS objects are built.
11603 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11604 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11605 done
11606 LIBOBJS=$ac_libobjs
11608 LTLIBOBJS=$ac_ltlibobjs
11611 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11612 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11616 : ${CONFIG_STATUS=./config.status}
11617 ac_write_fail=0
11618 ac_clean_files_save=$ac_clean_files
11619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11622 as_write_fail=0
11623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11624 #! $SHELL
11625 # Generated by $as_me.
11626 # Run this file to recreate the current configuration.
11627 # Compiler output produced by configure, useful for debugging
11628 # configure, is in config.log if it exists.
11630 debug=false
11631 ac_cs_recheck=false
11632 ac_cs_silent=false
11634 SHELL=\${CONFIG_SHELL-$SHELL}
11635 export SHELL
11636 _ASEOF
11637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11638 ## -------------------- ##
11639 ## M4sh Initialization. ##
11640 ## -------------------- ##
11642 # Be more Bourne compatible
11643 DUALCASE=1; export DUALCASE # for MKS sh
11644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11645 emulate sh
11646 NULLCMD=:
11647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11648 # is contrary to our usage. Disable this feature.
11649 alias -g '${1+"$@"}'='"$@"'
11650 setopt NO_GLOB_SUBST
11651 else
11652 case `(set -o) 2>/dev/null` in #(
11653 *posix*) :
11654 set -o posix ;; #(
11655 *) :
11657 esac
11661 as_nl='
11663 export as_nl
11664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11668 # Prefer a ksh shell builtin over an external printf program on Solaris,
11669 # but without wasting forks for bash or zsh.
11670 if test -z "$BASH_VERSION$ZSH_VERSION" \
11671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11672 as_echo='print -r --'
11673 as_echo_n='print -rn --'
11674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11675 as_echo='printf %s\n'
11676 as_echo_n='printf %s'
11677 else
11678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11680 as_echo_n='/usr/ucb/echo -n'
11681 else
11682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11683 as_echo_n_body='eval
11684 arg=$1;
11685 case $arg in #(
11686 *"$as_nl"*)
11687 expr "X$arg" : "X\\(.*\\)$as_nl";
11688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11689 esac;
11690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11692 export as_echo_n_body
11693 as_echo_n='sh -c $as_echo_n_body as_echo'
11695 export as_echo_body
11696 as_echo='sh -c $as_echo_body as_echo'
11699 # The user is always right.
11700 if test "${PATH_SEPARATOR+set}" != set; then
11701 PATH_SEPARATOR=:
11702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11704 PATH_SEPARATOR=';'
11709 # IFS
11710 # We need space, tab and new line, in precisely that order. Quoting is
11711 # there to prevent editors from complaining about space-tab.
11712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11713 # splitting by setting IFS to empty value.)
11714 IFS=" "" $as_nl"
11716 # Find who we are. Look in the path if we contain no directory separator.
11717 case $0 in #((
11718 *[\\/]* ) as_myself=$0 ;;
11719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11725 done
11726 IFS=$as_save_IFS
11729 esac
11730 # We did not find ourselves, most probably we were run as `sh COMMAND'
11731 # in which case we are not to be found in the path.
11732 if test "x$as_myself" = x; then
11733 as_myself=$0
11735 if test ! -f "$as_myself"; then
11736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11737 exit 1
11740 # Unset variables that we do not need and which cause bugs (e.g. in
11741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11742 # suppresses any "Segmentation fault" message there. '((' could
11743 # trigger a bug in pdksh 5.2.14.
11744 for as_var in BASH_ENV ENV MAIL MAILPATH
11745 do eval test x\${$as_var+set} = xset \
11746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11747 done
11748 PS1='$ '
11749 PS2='> '
11750 PS4='+ '
11752 # NLS nuisances.
11753 LC_ALL=C
11754 export LC_ALL
11755 LANGUAGE=C
11756 export LANGUAGE
11758 # CDPATH.
11759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11762 # as_fn_error ERROR [LINENO LOG_FD]
11763 # ---------------------------------
11764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11766 # script with status $?, using 1 if that was 0.
11767 as_fn_error ()
11769 as_status=$?; test $as_status -eq 0 && as_status=1
11770 if test "$3"; then
11771 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11774 $as_echo "$as_me: error: $1" >&2
11775 as_fn_exit $as_status
11776 } # as_fn_error
11779 # as_fn_set_status STATUS
11780 # -----------------------
11781 # Set $? to STATUS, without forking.
11782 as_fn_set_status ()
11784 return $1
11785 } # as_fn_set_status
11787 # as_fn_exit STATUS
11788 # -----------------
11789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11790 as_fn_exit ()
11792 set +e
11793 as_fn_set_status $1
11794 exit $1
11795 } # as_fn_exit
11797 # as_fn_unset VAR
11798 # ---------------
11799 # Portably unset VAR.
11800 as_fn_unset ()
11802 { eval $1=; unset $1;}
11804 as_unset=as_fn_unset
11805 # as_fn_append VAR VALUE
11806 # ----------------------
11807 # Append the text in VALUE to the end of the definition contained in VAR. Take
11808 # advantage of any shell optimizations that allow amortized linear growth over
11809 # repeated appends, instead of the typical quadratic growth present in naive
11810 # implementations.
11811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11812 eval 'as_fn_append ()
11814 eval $1+=\$2
11816 else
11817 as_fn_append ()
11819 eval $1=\$$1\$2
11821 fi # as_fn_append
11823 # as_fn_arith ARG...
11824 # ------------------
11825 # Perform arithmetic evaluation on the ARGs, and store the result in the
11826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11827 # must be portable across $(()) and expr.
11828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11829 eval 'as_fn_arith ()
11831 as_val=$(( $* ))
11833 else
11834 as_fn_arith ()
11836 as_val=`expr "$@" || test $? -eq 1`
11838 fi # as_fn_arith
11841 if expr a : '\(a\)' >/dev/null 2>&1 &&
11842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11843 as_expr=expr
11844 else
11845 as_expr=false
11848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11849 as_basename=basename
11850 else
11851 as_basename=false
11854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11855 as_dirname=dirname
11856 else
11857 as_dirname=false
11860 as_me=`$as_basename -- "$0" ||
11861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11862 X"$0" : 'X\(//\)$' \| \
11863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11864 $as_echo X/"$0" |
11865 sed '/^.*\/\([^/][^/]*\)\/*$/{
11866 s//\1/
11869 /^X\/\(\/\/\)$/{
11870 s//\1/
11873 /^X\/\(\/\).*/{
11874 s//\1/
11877 s/.*/./; q'`
11879 # Avoid depending upon Character Ranges.
11880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11883 as_cr_digits='0123456789'
11884 as_cr_alnum=$as_cr_Letters$as_cr_digits
11886 ECHO_C= ECHO_N= ECHO_T=
11887 case `echo -n x` in #(((((
11888 -n*)
11889 case `echo 'xy\c'` in
11890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11891 xy) ECHO_C='\c';;
11892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11893 ECHO_T=' ';;
11894 esac;;
11896 ECHO_N='-n';;
11897 esac
11899 rm -f conf$$ conf$$.exe conf$$.file
11900 if test -d conf$$.dir; then
11901 rm -f conf$$.dir/conf$$.file
11902 else
11903 rm -f conf$$.dir
11904 mkdir conf$$.dir 2>/dev/null
11906 if (echo >conf$$.file) 2>/dev/null; then
11907 if ln -s conf$$.file conf$$ 2>/dev/null; then
11908 as_ln_s='ln -s'
11909 # ... but there are two gotchas:
11910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11912 # In both cases, we have to default to `cp -p'.
11913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11914 as_ln_s='cp -p'
11915 elif ln conf$$.file conf$$ 2>/dev/null; then
11916 as_ln_s=ln
11917 else
11918 as_ln_s='cp -p'
11920 else
11921 as_ln_s='cp -p'
11923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11924 rmdir conf$$.dir 2>/dev/null
11927 # as_fn_mkdir_p
11928 # -------------
11929 # Create "$as_dir" as a directory, including parents if necessary.
11930 as_fn_mkdir_p ()
11933 case $as_dir in #(
11934 -*) as_dir=./$as_dir;;
11935 esac
11936 test -d "$as_dir" || eval $as_mkdir_p || {
11937 as_dirs=
11938 while :; do
11939 case $as_dir in #(
11940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11941 *) as_qdir=$as_dir;;
11942 esac
11943 as_dirs="'$as_qdir' $as_dirs"
11944 as_dir=`$as_dirname -- "$as_dir" ||
11945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11946 X"$as_dir" : 'X\(//\)[^/]' \| \
11947 X"$as_dir" : 'X\(//\)$' \| \
11948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11949 $as_echo X"$as_dir" |
11950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11951 s//\1/
11954 /^X\(\/\/\)[^/].*/{
11955 s//\1/
11958 /^X\(\/\/\)$/{
11959 s//\1/
11962 /^X\(\/\).*/{
11963 s//\1/
11966 s/.*/./; q'`
11967 test -d "$as_dir" && break
11968 done
11969 test -z "$as_dirs" || eval "mkdir $as_dirs"
11970 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11973 } # as_fn_mkdir_p
11974 if mkdir -p . 2>/dev/null; then
11975 as_mkdir_p='mkdir -p "$as_dir"'
11976 else
11977 test -d ./-p && rmdir ./-p
11978 as_mkdir_p=false
11981 if test -x / >/dev/null 2>&1; then
11982 as_test_x='test -x'
11983 else
11984 if ls -dL / >/dev/null 2>&1; then
11985 as_ls_L_option=L
11986 else
11987 as_ls_L_option=
11989 as_test_x='
11990 eval sh -c '\''
11991 if test -d "$1"; then
11992 test -d "$1/.";
11993 else
11994 case $1 in #(
11995 -*)set "./$1";;
11996 esac;
11997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11998 ???[sx]*):;;*)false;;esac;fi
11999 '\'' sh
12002 as_executable_p=$as_test_x
12004 # Sed expression to map a string onto a valid CPP name.
12005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12007 # Sed expression to map a string onto a valid variable name.
12008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12011 exec 6>&1
12012 ## ----------------------------------- ##
12013 ## Main body of $CONFIG_STATUS script. ##
12014 ## ----------------------------------- ##
12015 _ASEOF
12016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12019 # Save the log message, to keep $0 and so on meaningful, and to
12020 # report actual input values of CONFIG_FILES etc. instead of their
12021 # values after options handling.
12022 ac_log="
12023 This file was extended by package-unused $as_me version-unused, which was
12024 generated by GNU Autoconf 2.64. Invocation command line was
12026 CONFIG_FILES = $CONFIG_FILES
12027 CONFIG_HEADERS = $CONFIG_HEADERS
12028 CONFIG_LINKS = $CONFIG_LINKS
12029 CONFIG_COMMANDS = $CONFIG_COMMANDS
12030 $ $0 $@
12032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12035 _ACEOF
12037 case $ac_config_files in *"
12038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12039 esac
12041 case $ac_config_headers in *"
12042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12043 esac
12046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12047 # Files that config.status was made for.
12048 config_files="$ac_config_files"
12049 config_headers="$ac_config_headers"
12050 config_commands="$ac_config_commands"
12052 _ACEOF
12054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12055 ac_cs_usage="\
12056 \`$as_me' instantiates files and other configuration actions
12057 from templates according to the current configuration. Unless the files
12058 and actions are specified as TAGs, all are instantiated by default.
12060 Usage: $0 [OPTION]... [TAG]...
12062 -h, --help print this help, then exit
12063 -V, --version print version number and configuration settings, then exit
12064 -q, --quiet, --silent
12065 do not print progress messages
12066 -d, --debug don't remove temporary files
12067 --recheck update $as_me by reconfiguring in the same conditions
12068 --file=FILE[:TEMPLATE]
12069 instantiate the configuration file FILE
12070 --header=FILE[:TEMPLATE]
12071 instantiate the configuration header FILE
12073 Configuration files:
12074 $config_files
12076 Configuration headers:
12077 $config_headers
12079 Configuration commands:
12080 $config_commands
12082 Report bugs to the package provider."
12084 _ACEOF
12085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12086 ac_cs_version="\\
12087 package-unused config.status version-unused
12088 configured by $0, generated by GNU Autoconf 2.64,
12089 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12091 Copyright (C) 2009 Free Software Foundation, Inc.
12092 This config.status script is free software; the Free Software Foundation
12093 gives unlimited permission to copy, distribute and modify it."
12095 ac_pwd='$ac_pwd'
12096 srcdir='$srcdir'
12097 INSTALL='$INSTALL'
12098 AWK='$AWK'
12099 test -n "\$AWK" || AWK=awk
12100 _ACEOF
12102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103 # The default lists apply if the user does not specify any file.
12104 ac_need_defaults=:
12105 while test $# != 0
12107 case $1 in
12108 --*=*)
12109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12110 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12111 ac_shift=:
12114 ac_option=$1
12115 ac_optarg=$2
12116 ac_shift=shift
12118 esac
12120 case $ac_option in
12121 # Handling of the options.
12122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12123 ac_cs_recheck=: ;;
12124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12125 $as_echo "$ac_cs_version"; exit ;;
12126 --debug | --debu | --deb | --de | --d | -d )
12127 debug=: ;;
12128 --file | --fil | --fi | --f )
12129 $ac_shift
12130 case $ac_optarg in
12131 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12132 esac
12133 as_fn_append CONFIG_FILES " '$ac_optarg'"
12134 ac_need_defaults=false;;
12135 --header | --heade | --head | --hea )
12136 $ac_shift
12137 case $ac_optarg in
12138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12139 esac
12140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12141 ac_need_defaults=false;;
12142 --he | --h)
12143 # Conflict between --help and --header
12144 as_fn_error "ambiguous option: \`$1'
12145 Try \`$0 --help' for more information.";;
12146 --help | --hel | -h )
12147 $as_echo "$ac_cs_usage"; exit ;;
12148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12150 ac_cs_silent=: ;;
12152 # This is an error.
12153 -*) as_fn_error "unrecognized option: \`$1'
12154 Try \`$0 --help' for more information." ;;
12156 *) as_fn_append ac_config_targets " $1"
12157 ac_need_defaults=false ;;
12159 esac
12160 shift
12161 done
12163 ac_configure_extra_args=
12165 if $ac_cs_silent; then
12166 exec 6>/dev/null
12167 ac_configure_extra_args="$ac_configure_extra_args --silent"
12170 _ACEOF
12171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12172 if \$ac_cs_recheck; then
12173 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12174 shift
12175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12176 CONFIG_SHELL='$SHELL'
12177 export CONFIG_SHELL
12178 exec "\$@"
12181 _ACEOF
12182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183 exec 5>>config.log
12185 echo
12186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12187 ## Running $as_me. ##
12188 _ASBOX
12189 $as_echo "$ac_log"
12190 } >&5
12192 _ACEOF
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12195 # INIT-COMMANDS
12198 srcdir="$srcdir"
12199 host="$host"
12200 target="$target"
12201 with_multisubdir="$with_multisubdir"
12202 with_multisrctop="$with_multisrctop"
12203 with_target_subdir="$with_target_subdir"
12204 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12205 multi_basedir="$multi_basedir"
12206 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12207 CC="$CC"
12208 CXX="$CXX"
12209 GFORTRAN="$GFORTRAN"
12210 GCJ="$GCJ"
12213 # The HP-UX ksh and POSIX shell print the target directory to stdout
12214 # if CDPATH is set.
12215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12217 sed_quote_subst='$sed_quote_subst'
12218 double_quote_subst='$double_quote_subst'
12219 delay_variable_subst='$delay_variable_subst'
12220 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12221 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12222 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12223 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12224 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12225 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12226 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12227 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12228 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12229 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12230 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12231 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12232 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12233 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12234 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12235 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12236 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12237 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12238 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12239 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12240 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12241 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12242 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12243 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12244 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12245 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12246 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12247 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12248 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12249 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12250 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12251 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12252 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12253 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12254 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12255 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12256 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12257 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12258 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12259 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12260 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12261 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12262 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12263 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12264 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12265 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12266 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12267 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12268 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12269 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12270 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"`'
12271 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12272 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12273 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12274 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12275 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12276 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12277 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12278 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12279 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12280 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12281 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12282 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12283 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12284 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12285 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12286 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12287 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12288 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12289 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12290 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12291 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12292 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12293 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12294 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12295 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12296 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12297 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12298 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12299 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12300 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12301 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12302 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12303 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12304 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12305 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12306 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12307 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12308 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12309 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12310 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12311 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12312 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12313 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12314 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12315 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12316 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12317 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12318 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12319 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12320 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12321 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12322 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12323 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12324 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12325 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12326 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12327 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12328 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12329 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12330 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12331 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12332 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12333 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12334 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12335 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12336 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12337 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12338 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12339 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12340 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12341 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12343 LTCC='$LTCC'
12344 LTCFLAGS='$LTCFLAGS'
12345 compiler='$compiler_DEFAULT'
12347 # A function that is used when there is no print builtin or printf.
12348 func_fallback_echo ()
12350 eval 'cat <<_LTECHO_EOF
12352 _LTECHO_EOF'
12355 # Quote evaled strings.
12356 for var in AS \
12357 DLLTOOL \
12358 OBJDUMP \
12359 SHELL \
12360 ECHO \
12361 SED \
12362 GREP \
12363 EGREP \
12364 FGREP \
12365 LD \
12366 NM \
12367 LN_S \
12368 lt_SP2NL \
12369 lt_NL2SP \
12370 reload_flag \
12371 deplibs_check_method \
12372 file_magic_cmd \
12373 AR \
12374 AR_FLAGS \
12375 STRIP \
12376 RANLIB \
12377 CC \
12378 CFLAGS \
12379 compiler \
12380 lt_cv_sys_global_symbol_pipe \
12381 lt_cv_sys_global_symbol_to_cdecl \
12382 lt_cv_sys_global_symbol_to_c_name_address \
12383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12384 lt_prog_compiler_no_builtin_flag \
12385 lt_prog_compiler_wl \
12386 lt_prog_compiler_pic \
12387 lt_prog_compiler_static \
12388 lt_cv_prog_compiler_c_o \
12389 need_locks \
12390 DSYMUTIL \
12391 NMEDIT \
12392 LIPO \
12393 OTOOL \
12394 OTOOL64 \
12395 shrext_cmds \
12396 export_dynamic_flag_spec \
12397 whole_archive_flag_spec \
12398 compiler_needs_object \
12399 with_gnu_ld \
12400 allow_undefined_flag \
12401 no_undefined_flag \
12402 hardcode_libdir_flag_spec \
12403 hardcode_libdir_flag_spec_ld \
12404 hardcode_libdir_separator \
12405 fix_srcfile_path \
12406 exclude_expsyms \
12407 include_expsyms \
12408 file_list_spec \
12409 variables_saved_for_relink \
12410 libname_spec \
12411 library_names_spec \
12412 soname_spec \
12413 install_override_mode \
12414 finish_eval \
12415 old_striplib \
12416 striplib; do
12417 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12418 *[\\\\\\\`\\"\\\$]*)
12419 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12422 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12424 esac
12425 done
12427 # Double-quote double-evaled strings.
12428 for var in reload_cmds \
12429 old_postinstall_cmds \
12430 old_postuninstall_cmds \
12431 old_archive_cmds \
12432 extract_expsyms_cmds \
12433 old_archive_from_new_cmds \
12434 old_archive_from_expsyms_cmds \
12435 archive_cmds \
12436 archive_expsym_cmds \
12437 module_cmds \
12438 module_expsym_cmds \
12439 export_symbols_cmds \
12440 prelink_cmds \
12441 postinstall_cmds \
12442 postuninstall_cmds \
12443 finish_cmds \
12444 sys_lib_search_path_spec \
12445 sys_lib_dlsearch_path_spec; do
12446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12447 *[\\\\\\\`\\"\\\$]*)
12448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12453 esac
12454 done
12456 ac_aux_dir='$ac_aux_dir'
12457 xsi_shell='$xsi_shell'
12458 lt_shell_append='$lt_shell_append'
12460 # See if we are running on zsh, and set the options which allow our
12461 # commands through without removal of \ escapes INIT.
12462 if test -n "\${ZSH_VERSION+set}" ; then
12463 setopt NO_GLOB_SUBST
12467 PACKAGE='$PACKAGE'
12468 VERSION='$VERSION'
12469 TIMESTAMP='$TIMESTAMP'
12470 RM='$RM'
12471 ofile='$ofile'
12476 _ACEOF
12478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12480 # Handling of arguments.
12481 for ac_config_target in $ac_config_targets
12483 case $ac_config_target in
12484 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12485 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12486 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12489 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12490 esac
12491 done
12494 # If the user did not use the arguments to specify the items to instantiate,
12495 # then the envvar interface is used. Set only those that are not.
12496 # We use the long form for the default assignment because of an extremely
12497 # bizarre bug on SunOS 4.1.3.
12498 if $ac_need_defaults; then
12499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12504 # Have a temporary directory for convenience. Make it in the build tree
12505 # simply because there is no reason against having it here, and in addition,
12506 # creating and moving files from /tmp can sometimes cause problems.
12507 # Hook for its removal unless debugging.
12508 # Note that there is a small window in which the directory will not be cleaned:
12509 # after its creation but before its name has been assigned to `$tmp'.
12510 $debug ||
12512 tmp=
12513 trap 'exit_status=$?
12514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12516 trap 'as_fn_exit 1' 1 2 13 15
12518 # Create a (secure) tmp directory for tmp files.
12521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12522 test -n "$tmp" && test -d "$tmp"
12523 } ||
12525 tmp=./conf$$-$RANDOM
12526 (umask 077 && mkdir "$tmp")
12527 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12529 # Set up the scripts for CONFIG_FILES section.
12530 # No need to generate them if there are no CONFIG_FILES.
12531 # This happens for instance with `./config.status config.h'.
12532 if test -n "$CONFIG_FILES"; then
12535 ac_cr=`echo X | tr X '\015'`
12536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12537 # But we know of no other shell where ac_cr would be empty at this
12538 # point, so we can use a bashism as a fallback.
12539 if test "x$ac_cr" = x; then
12540 eval ac_cr=\$\'\\r\'
12542 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12544 ac_cs_awk_cr='\r'
12545 else
12546 ac_cs_awk_cr=$ac_cr
12549 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12550 _ACEOF
12554 echo "cat >conf$$subs.awk <<_ACEOF" &&
12555 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12556 echo "_ACEOF"
12557 } >conf$$subs.sh ||
12558 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12560 ac_delim='%!_!# '
12561 for ac_last_try in false false false false false :; do
12562 . ./conf$$subs.sh ||
12563 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12565 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12566 if test $ac_delim_n = $ac_delim_num; then
12567 break
12568 elif $ac_last_try; then
12569 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12570 else
12571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12573 done
12574 rm -f conf$$subs.sh
12576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12577 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12578 _ACEOF
12579 sed -n '
12581 s/^/S["/; s/!.*/"]=/
12584 s/^[^!]*!//
12585 :repl
12586 t repl
12587 s/'"$ac_delim"'$//
12588 t delim
12591 s/\(.\{148\}\).*/\1/
12592 t more1
12593 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12596 b repl
12597 :more1
12598 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12601 s/.\{148\}//
12602 t nl
12603 :delim
12605 s/\(.\{148\}\).*/\1/
12606 t more2
12607 s/["\\]/\\&/g; s/^/"/; s/$/"/
12610 :more2
12611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12614 s/.\{148\}//
12615 t delim
12616 ' <conf$$subs.awk | sed '
12617 /^[^""]/{
12619 s/\n//
12621 ' >>$CONFIG_STATUS || ac_write_fail=1
12622 rm -f conf$$subs.awk
12623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12624 _ACAWK
12625 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12626 for (key in S) S_is_set[key] = 1
12627 FS = "\a"
12631 line = $ 0
12632 nfields = split(line, field, "@")
12633 substed = 0
12634 len = length(field[1])
12635 for (i = 2; i < nfields; i++) {
12636 key = field[i]
12637 keylen = length(key)
12638 if (S_is_set[key]) {
12639 value = S[key]
12640 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12641 len += length(value) + length(field[++i])
12642 substed = 1
12643 } else
12644 len += 1 + keylen
12647 print line
12650 _ACAWK
12651 _ACEOF
12652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12653 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12654 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12655 else
12657 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12658 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12659 _ACEOF
12661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12663 # trailing colons and then remove the whole line if VPATH becomes empty
12664 # (actually we leave an empty line to preserve line numbers).
12665 if test "x$srcdir" = x.; then
12666 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12667 s/:*\$(srcdir):*/:/
12668 s/:*\${srcdir}:*/:/
12669 s/:*@srcdir@:*/:/
12670 s/^\([^=]*=[ ]*\):*/\1/
12671 s/:*$//
12672 s/^[^=]*=[ ]*$//
12676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12677 fi # test -n "$CONFIG_FILES"
12679 # Set up the scripts for CONFIG_HEADERS section.
12680 # No need to generate them if there are no CONFIG_HEADERS.
12681 # This happens for instance with `./config.status Makefile'.
12682 if test -n "$CONFIG_HEADERS"; then
12683 cat >"$tmp/defines.awk" <<\_ACAWK ||
12684 BEGIN {
12685 _ACEOF
12687 # Transform confdefs.h into an awk script `defines.awk', embedded as
12688 # here-document in config.status, that substitutes the proper values into
12689 # config.h.in to produce config.h.
12691 # Create a delimiter string that does not exist in confdefs.h, to ease
12692 # handling of long lines.
12693 ac_delim='%!_!# '
12694 for ac_last_try in false false :; do
12695 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12696 if test -z "$ac_t"; then
12697 break
12698 elif $ac_last_try; then
12699 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12700 else
12701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12703 done
12705 # For the awk script, D is an array of macro values keyed by name,
12706 # likewise P contains macro parameters if any. Preserve backslash
12707 # newline sequences.
12709 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12710 sed -n '
12711 s/.\{148\}/&'"$ac_delim"'/g
12712 t rset
12713 :rset
12714 s/^[ ]*#[ ]*define[ ][ ]*/ /
12715 t def
12717 :def
12718 s/\\$//
12719 t bsnl
12720 s/["\\]/\\&/g
12721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12722 D["\1"]=" \3"/p
12723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12725 :bsnl
12726 s/["\\]/\\&/g
12727 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12728 D["\1"]=" \3\\\\\\n"\\/p
12729 t cont
12730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12731 t cont
12733 :cont
12735 s/.\{148\}/&'"$ac_delim"'/g
12736 t clear
12737 :clear
12738 s/\\$//
12739 t bsnlc
12740 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12742 :bsnlc
12743 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12744 b cont
12745 ' <confdefs.h | sed '
12746 s/'"$ac_delim"'/"\\\
12747 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12750 for (key in D) D_is_set[key] = 1
12751 FS = "\a"
12753 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12754 line = \$ 0
12755 split(line, arg, " ")
12756 if (arg[1] == "#") {
12757 defundef = arg[2]
12758 mac1 = arg[3]
12759 } else {
12760 defundef = substr(arg[1], 2)
12761 mac1 = arg[2]
12763 split(mac1, mac2, "(") #)
12764 macro = mac2[1]
12765 prefix = substr(line, 1, index(line, defundef) - 1)
12766 if (D_is_set[macro]) {
12767 # Preserve the white space surrounding the "#".
12768 print prefix "define", macro P[macro] D[macro]
12769 next
12770 } else {
12771 # Replace #undef with comments. This is necessary, for example,
12772 # in the case of _POSIX_SOURCE, which is predefined and required
12773 # on some systems where configure will not decide to define it.
12774 if (defundef == "undef") {
12775 print "/*", prefix defundef, macro, "*/"
12776 next
12780 { print }
12781 _ACAWK
12782 _ACEOF
12783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12785 fi # test -n "$CONFIG_HEADERS"
12788 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12789 shift
12790 for ac_tag
12792 case $ac_tag in
12793 :[FHLC]) ac_mode=$ac_tag; continue;;
12794 esac
12795 case $ac_mode$ac_tag in
12796 :[FHL]*:*);;
12797 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12798 :[FH]-) ac_tag=-:-;;
12799 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12800 esac
12801 ac_save_IFS=$IFS
12802 IFS=:
12803 set x $ac_tag
12804 IFS=$ac_save_IFS
12805 shift
12806 ac_file=$1
12807 shift
12809 case $ac_mode in
12810 :L) ac_source=$1;;
12811 :[FH])
12812 ac_file_inputs=
12813 for ac_f
12815 case $ac_f in
12816 -) ac_f="$tmp/stdin";;
12817 *) # Look for the file first in the build tree, then in the source tree
12818 # (if the path is not absolute). The absolute path cannot be DOS-style,
12819 # because $ac_f cannot contain `:'.
12820 test -f "$ac_f" ||
12821 case $ac_f in
12822 [\\/$]*) false;;
12823 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12824 esac ||
12825 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12826 esac
12827 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12828 as_fn_append ac_file_inputs " '$ac_f'"
12829 done
12831 # Let's still pretend it is `configure' which instantiates (i.e., don't
12832 # use $as_me), people would be surprised to read:
12833 # /* config.h. Generated by config.status. */
12834 configure_input='Generated from '`
12835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12836 `' by configure.'
12837 if test x"$ac_file" != x-; then
12838 configure_input="$ac_file. $configure_input"
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12840 $as_echo "$as_me: creating $ac_file" >&6;}
12842 # Neutralize special characters interpreted by sed in replacement strings.
12843 case $configure_input in #(
12844 *\&* | *\|* | *\\* )
12845 ac_sed_conf_input=`$as_echo "$configure_input" |
12846 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12847 *) ac_sed_conf_input=$configure_input;;
12848 esac
12850 case $ac_tag in
12851 *:-:* | *:-) cat >"$tmp/stdin" \
12852 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12853 esac
12855 esac
12857 ac_dir=`$as_dirname -- "$ac_file" ||
12858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12859 X"$ac_file" : 'X\(//\)[^/]' \| \
12860 X"$ac_file" : 'X\(//\)$' \| \
12861 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12862 $as_echo X"$ac_file" |
12863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12864 s//\1/
12867 /^X\(\/\/\)[^/].*/{
12868 s//\1/
12871 /^X\(\/\/\)$/{
12872 s//\1/
12875 /^X\(\/\).*/{
12876 s//\1/
12879 s/.*/./; q'`
12880 as_dir="$ac_dir"; as_fn_mkdir_p
12881 ac_builddir=.
12883 case "$ac_dir" in
12884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12887 # A ".." for each directory in $ac_dir_suffix.
12888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12889 case $ac_top_builddir_sub in
12890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12892 esac ;;
12893 esac
12894 ac_abs_top_builddir=$ac_pwd
12895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12896 # for backward compatibility:
12897 ac_top_builddir=$ac_top_build_prefix
12899 case $srcdir in
12900 .) # We are building in place.
12901 ac_srcdir=.
12902 ac_top_srcdir=$ac_top_builddir_sub
12903 ac_abs_top_srcdir=$ac_pwd ;;
12904 [\\/]* | ?:[\\/]* ) # Absolute name.
12905 ac_srcdir=$srcdir$ac_dir_suffix;
12906 ac_top_srcdir=$srcdir
12907 ac_abs_top_srcdir=$srcdir ;;
12908 *) # Relative name.
12909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12910 ac_top_srcdir=$ac_top_build_prefix$srcdir
12911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12912 esac
12913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12916 case $ac_mode in
12919 # CONFIG_FILE
12922 case $INSTALL in
12923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12924 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12925 esac
12926 _ACEOF
12928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12929 # If the template does not know about datarootdir, expand it.
12930 # FIXME: This hack should be removed a few years after 2.60.
12931 ac_datarootdir_hack=; ac_datarootdir_seen=
12932 ac_sed_dataroot='
12933 /datarootdir/ {
12937 /@datadir@/p
12938 /@docdir@/p
12939 /@infodir@/p
12940 /@localedir@/p
12941 /@mandir@/p'
12942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12943 *datarootdir*) ac_datarootdir_seen=yes;;
12944 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12947 _ACEOF
12948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12949 ac_datarootdir_hack='
12950 s&@datadir@&$datadir&g
12951 s&@docdir@&$docdir&g
12952 s&@infodir@&$infodir&g
12953 s&@localedir@&$localedir&g
12954 s&@mandir@&$mandir&g
12955 s&\\\${datarootdir}&$datarootdir&g' ;;
12956 esac
12957 _ACEOF
12959 # Neutralize VPATH when `$srcdir' = `.'.
12960 # Shell code in configure.ac might set extrasub.
12961 # FIXME: do we really want to maintain this feature?
12962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12963 ac_sed_extra="$ac_vpsub
12964 $extrasub
12965 _ACEOF
12966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12969 s|@configure_input@|$ac_sed_conf_input|;t t
12970 s&@top_builddir@&$ac_top_builddir_sub&;t t
12971 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12972 s&@srcdir@&$ac_srcdir&;t t
12973 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12974 s&@top_srcdir@&$ac_top_srcdir&;t t
12975 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12976 s&@builddir@&$ac_builddir&;t t
12977 s&@abs_builddir@&$ac_abs_builddir&;t t
12978 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12979 s&@INSTALL@&$ac_INSTALL&;t t
12980 $ac_datarootdir_hack
12982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12983 || as_fn_error "could not create $ac_file" "$LINENO" 5
12985 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12986 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12987 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12989 which seems to be undefined. Please make sure it is defined." >&5
12990 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12991 which seems to be undefined. Please make sure it is defined." >&2;}
12993 rm -f "$tmp/stdin"
12994 case $ac_file in
12995 -) cat "$tmp/out" && rm -f "$tmp/out";;
12996 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12997 esac \
12998 || as_fn_error "could not create $ac_file" "$LINENO" 5
13002 # CONFIG_HEADER
13004 if test x"$ac_file" != x-; then
13006 $as_echo "/* $configure_input */" \
13007 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13008 } >"$tmp/config.h" \
13009 || as_fn_error "could not create $ac_file" "$LINENO" 5
13010 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13012 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13013 else
13014 rm -f "$ac_file"
13015 mv "$tmp/config.h" "$ac_file" \
13016 || as_fn_error "could not create $ac_file" "$LINENO" 5
13018 else
13019 $as_echo "/* $configure_input */" \
13020 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13021 || as_fn_error "could not create -" "$LINENO" 5
13025 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13026 $as_echo "$as_me: executing $ac_file commands" >&6;}
13028 esac
13031 case $ac_file$ac_mode in
13032 "default-1":C)
13033 # Only add multilib support code if we just rebuilt the top-level
13034 # Makefile.
13035 case " $CONFIG_FILES " in
13036 *" Makefile "*)
13037 ac_file=Makefile . ${multi_basedir}/config-ml.in
13039 esac ;;
13040 "libtool":C)
13042 # See if we are running on zsh, and set the options which allow our
13043 # commands through without removal of \ escapes.
13044 if test -n "${ZSH_VERSION+set}" ; then
13045 setopt NO_GLOB_SUBST
13048 cfgfile="${ofile}T"
13049 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13050 $RM "$cfgfile"
13052 cat <<_LT_EOF >> "$cfgfile"
13053 #! $SHELL
13055 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13056 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13057 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13058 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13060 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13061 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13062 # Written by Gordon Matzigkeit, 1996
13064 # This file is part of GNU Libtool.
13066 # GNU Libtool is free software; you can redistribute it and/or
13067 # modify it under the terms of the GNU General Public License as
13068 # published by the Free Software Foundation; either version 2 of
13069 # the License, or (at your option) any later version.
13071 # As a special exception to the GNU General Public License,
13072 # if you distribute this file as part of a program or library that
13073 # is built using GNU Libtool, you may include this file under the
13074 # same distribution terms that you use for the rest of that program.
13076 # GNU Libtool is distributed in the hope that it will be useful,
13077 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13078 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13079 # GNU General Public License for more details.
13081 # You should have received a copy of the GNU General Public License
13082 # along with GNU Libtool; see the file COPYING. If not, a copy
13083 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13084 # obtained by writing to the Free Software Foundation, Inc.,
13085 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13088 # The names of the tagged configurations supported by this script.
13089 available_tags=""
13091 # ### BEGIN LIBTOOL CONFIG
13093 # Assembler program.
13094 AS=$lt_AS
13096 # DLL creation program.
13097 DLLTOOL=$lt_DLLTOOL
13099 # Object dumper program.
13100 OBJDUMP=$lt_OBJDUMP
13102 # Which release of libtool.m4 was used?
13103 macro_version=$macro_version
13104 macro_revision=$macro_revision
13106 # Whether or not to build shared libraries.
13107 build_libtool_libs=$enable_shared
13109 # Whether or not to build static libraries.
13110 build_old_libs=$enable_static
13112 # What type of objects to build.
13113 pic_mode=$pic_mode
13115 # Whether or not to optimize for fast installation.
13116 fast_install=$enable_fast_install
13118 # Shell to use when invoking shell scripts.
13119 SHELL=$lt_SHELL
13121 # An echo program that protects backslashes.
13122 ECHO=$lt_ECHO
13124 # The host system.
13125 host_alias=$host_alias
13126 host=$host
13127 host_os=$host_os
13129 # The build system.
13130 build_alias=$build_alias
13131 build=$build
13132 build_os=$build_os
13134 # A sed program that does not truncate output.
13135 SED=$lt_SED
13137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13138 Xsed="\$SED -e 1s/^X//"
13140 # A grep program that handles long lines.
13141 GREP=$lt_GREP
13143 # An ERE matcher.
13144 EGREP=$lt_EGREP
13146 # A literal string matcher.
13147 FGREP=$lt_FGREP
13149 # A BSD- or MS-compatible name lister.
13150 NM=$lt_NM
13152 # Whether we need soft or hard links.
13153 LN_S=$lt_LN_S
13155 # What is the maximum length of a command?
13156 max_cmd_len=$max_cmd_len
13158 # Object file suffix (normally "o").
13159 objext=$ac_objext
13161 # Executable file suffix (normally "").
13162 exeext=$exeext
13164 # whether the shell understands "unset".
13165 lt_unset=$lt_unset
13167 # turn spaces into newlines.
13168 SP2NL=$lt_lt_SP2NL
13170 # turn newlines into spaces.
13171 NL2SP=$lt_lt_NL2SP
13173 # Method to check whether dependent libraries are shared objects.
13174 deplibs_check_method=$lt_deplibs_check_method
13176 # Command to use when deplibs_check_method == "file_magic".
13177 file_magic_cmd=$lt_file_magic_cmd
13179 # The archiver.
13180 AR=$lt_AR
13181 AR_FLAGS=$lt_AR_FLAGS
13183 # A symbol stripping program.
13184 STRIP=$lt_STRIP
13186 # Commands used to install an old-style archive.
13187 RANLIB=$lt_RANLIB
13188 old_postinstall_cmds=$lt_old_postinstall_cmds
13189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13191 # Whether to use a lock for old archive extraction.
13192 lock_old_archive_extraction=$lock_old_archive_extraction
13194 # A C compiler.
13195 LTCC=$lt_CC
13197 # LTCC compiler flags.
13198 LTCFLAGS=$lt_CFLAGS
13200 # Take the output of nm and produce a listing of raw symbols and C names.
13201 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13203 # Transform the output of nm in a proper C declaration.
13204 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13206 # Transform the output of nm in a C name address pair.
13207 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13209 # Transform the output of nm in a C name address pair when lib prefix is needed.
13210 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13212 # The name of the directory that contains temporary libtool files.
13213 objdir=$objdir
13215 # Used to examine libraries when file_magic_cmd begins with "file".
13216 MAGIC_CMD=$MAGIC_CMD
13218 # Must we lock files when doing compilation?
13219 need_locks=$lt_need_locks
13221 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13222 DSYMUTIL=$lt_DSYMUTIL
13224 # Tool to change global to local symbols on Mac OS X.
13225 NMEDIT=$lt_NMEDIT
13227 # Tool to manipulate fat objects and archives on Mac OS X.
13228 LIPO=$lt_LIPO
13230 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13231 OTOOL=$lt_OTOOL
13233 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13234 OTOOL64=$lt_OTOOL64
13236 # Old archive suffix (normally "a").
13237 libext=$libext
13239 # Shared library suffix (normally ".so").
13240 shrext_cmds=$lt_shrext_cmds
13242 # The commands to extract the exported symbol list from a shared archive.
13243 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13245 # Variables whose values should be saved in libtool wrapper scripts and
13246 # restored at link time.
13247 variables_saved_for_relink=$lt_variables_saved_for_relink
13249 # Do we need the "lib" prefix for modules?
13250 need_lib_prefix=$need_lib_prefix
13252 # Do we need a version for libraries?
13253 need_version=$need_version
13255 # Library versioning type.
13256 version_type=$version_type
13258 # Shared library runtime path variable.
13259 runpath_var=$runpath_var
13261 # Shared library path variable.
13262 shlibpath_var=$shlibpath_var
13264 # Is shlibpath searched before the hard-coded library search path?
13265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13267 # Format of library name prefix.
13268 libname_spec=$lt_libname_spec
13270 # List of archive names. First name is the real one, the rest are links.
13271 # The last name is the one that the linker finds with -lNAME
13272 library_names_spec=$lt_library_names_spec
13274 # The coded name of the library, if different from the real name.
13275 soname_spec=$lt_soname_spec
13277 # Permission mode override for installation of shared libraries.
13278 install_override_mode=$lt_install_override_mode
13280 # Command to use after installation of a shared archive.
13281 postinstall_cmds=$lt_postinstall_cmds
13283 # Command to use after uninstallation of a shared archive.
13284 postuninstall_cmds=$lt_postuninstall_cmds
13286 # Commands used to finish a libtool library installation in a directory.
13287 finish_cmds=$lt_finish_cmds
13289 # As "finish_cmds", except a single script fragment to be evaled but
13290 # not shown.
13291 finish_eval=$lt_finish_eval
13293 # Whether we should hardcode library paths into libraries.
13294 hardcode_into_libs=$hardcode_into_libs
13296 # Compile-time system search path for libraries.
13297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13299 # Run-time system search path for libraries.
13300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13302 # Whether dlopen is supported.
13303 dlopen_support=$enable_dlopen
13305 # Whether dlopen of programs is supported.
13306 dlopen_self=$enable_dlopen_self
13308 # Whether dlopen of statically linked programs is supported.
13309 dlopen_self_static=$enable_dlopen_self_static
13311 # Commands to strip libraries.
13312 old_striplib=$lt_old_striplib
13313 striplib=$lt_striplib
13316 # The linker used to build libraries.
13317 LD=$lt_LD
13319 # How to create reloadable object files.
13320 reload_flag=$lt_reload_flag
13321 reload_cmds=$lt_reload_cmds
13323 # Commands used to build an old-style archive.
13324 old_archive_cmds=$lt_old_archive_cmds
13326 # A language specific compiler.
13327 CC=$lt_compiler
13329 # Is the compiler the GNU compiler?
13330 with_gcc=$GCC
13332 # Compiler flag to turn off builtin functions.
13333 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13335 # How to pass a linker flag through the compiler.
13336 wl=$lt_lt_prog_compiler_wl
13338 # Additional compiler flags for building library objects.
13339 pic_flag=$lt_lt_prog_compiler_pic
13341 # Compiler flag to prevent dynamic linking.
13342 link_static_flag=$lt_lt_prog_compiler_static
13344 # Does compiler simultaneously support -c and -o options?
13345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13347 # Whether or not to add -lc for building shared libraries.
13348 build_libtool_need_lc=$archive_cmds_need_lc
13350 # Whether or not to disallow shared libs when runtime libs are static.
13351 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13353 # Compiler flag to allow reflexive dlopens.
13354 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13356 # Compiler flag to generate shared objects directly from archives.
13357 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13359 # Whether the compiler copes with passing no objects directly.
13360 compiler_needs_object=$lt_compiler_needs_object
13362 # Create an old-style archive from a shared archive.
13363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13365 # Create a temporary old-style archive to link instead of a shared archive.
13366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13368 # Commands used to build a shared archive.
13369 archive_cmds=$lt_archive_cmds
13370 archive_expsym_cmds=$lt_archive_expsym_cmds
13372 # Commands used to build a loadable module if different from building
13373 # a shared archive.
13374 module_cmds=$lt_module_cmds
13375 module_expsym_cmds=$lt_module_expsym_cmds
13377 # Whether we are building with GNU ld or not.
13378 with_gnu_ld=$lt_with_gnu_ld
13380 # Flag that allows shared libraries with undefined symbols to be built.
13381 allow_undefined_flag=$lt_allow_undefined_flag
13383 # Flag that enforces no undefined symbols.
13384 no_undefined_flag=$lt_no_undefined_flag
13386 # Flag to hardcode \$libdir into a binary during linking.
13387 # This must work even if \$libdir does not exist
13388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13390 # If ld is used when linking, flag to hardcode \$libdir into a binary
13391 # during linking. This must work even if \$libdir does not exist.
13392 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13394 # Whether we need a single "-rpath" flag with a separated argument.
13395 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13398 # DIR into the resulting binary.
13399 hardcode_direct=$hardcode_direct
13401 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13402 # DIR into the resulting binary and the resulting library dependency is
13403 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13404 # library is relocated.
13405 hardcode_direct_absolute=$hardcode_direct_absolute
13407 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13408 # into the resulting binary.
13409 hardcode_minus_L=$hardcode_minus_L
13411 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13412 # into the resulting binary.
13413 hardcode_shlibpath_var=$hardcode_shlibpath_var
13415 # Set to "yes" if building a shared library automatically hardcodes DIR
13416 # into the library and all subsequent libraries and executables linked
13417 # against it.
13418 hardcode_automatic=$hardcode_automatic
13420 # Set to yes if linker adds runtime paths of dependent libraries
13421 # to runtime path list.
13422 inherit_rpath=$inherit_rpath
13424 # Whether libtool must link a program against all its dependency libraries.
13425 link_all_deplibs=$link_all_deplibs
13427 # Fix the shell variable \$srcfile for the compiler.
13428 fix_srcfile_path=$lt_fix_srcfile_path
13430 # Set to "yes" if exported symbols are required.
13431 always_export_symbols=$always_export_symbols
13433 # The commands to list exported symbols.
13434 export_symbols_cmds=$lt_export_symbols_cmds
13436 # Symbols that should not be listed in the preloaded symbols.
13437 exclude_expsyms=$lt_exclude_expsyms
13439 # Symbols that must always be exported.
13440 include_expsyms=$lt_include_expsyms
13442 # Commands necessary for linking programs (against libraries) with templates.
13443 prelink_cmds=$lt_prelink_cmds
13445 # Specify filename containing input files.
13446 file_list_spec=$lt_file_list_spec
13448 # How to hardcode a shared library path into an executable.
13449 hardcode_action=$hardcode_action
13451 # ### END LIBTOOL CONFIG
13453 _LT_EOF
13455 case $host_os in
13456 aix3*)
13457 cat <<\_LT_EOF >> "$cfgfile"
13458 # AIX sometimes has problems with the GCC collect2 program. For some
13459 # reason, if we set the COLLECT_NAMES environment variable, the problems
13460 # vanish in a puff of smoke.
13461 if test "X${COLLECT_NAMES+set}" != Xset; then
13462 COLLECT_NAMES=
13463 export COLLECT_NAMES
13465 _LT_EOF
13467 esac
13470 ltmain="$ac_aux_dir/ltmain.sh"
13473 # We use sed instead of cat because bash on DJGPP gets confused if
13474 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13475 # text mode, it properly converts lines to CR/LF. This bash problem
13476 # is reportedly fixed, but why not run on old versions too?
13477 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13478 || (rm -f "$cfgfile"; exit 1)
13480 case $xsi_shell in
13481 yes)
13482 cat << \_LT_EOF >> "$cfgfile"
13484 # func_dirname file append nondir_replacement
13485 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13486 # otherwise set result to NONDIR_REPLACEMENT.
13487 func_dirname ()
13489 case ${1} in
13490 */*) func_dirname_result="${1%/*}${2}" ;;
13491 * ) func_dirname_result="${3}" ;;
13492 esac
13495 # func_basename file
13496 func_basename ()
13498 func_basename_result="${1##*/}"
13501 # func_dirname_and_basename file append nondir_replacement
13502 # perform func_basename and func_dirname in a single function
13503 # call:
13504 # dirname: Compute the dirname of FILE. If nonempty,
13505 # add APPEND to the result, otherwise set result
13506 # to NONDIR_REPLACEMENT.
13507 # value returned in "$func_dirname_result"
13508 # basename: Compute filename of FILE.
13509 # value retuned in "$func_basename_result"
13510 # Implementation must be kept synchronized with func_dirname
13511 # and func_basename. For efficiency, we do not delegate to
13512 # those functions but instead duplicate the functionality here.
13513 func_dirname_and_basename ()
13515 case ${1} in
13516 */*) func_dirname_result="${1%/*}${2}" ;;
13517 * ) func_dirname_result="${3}" ;;
13518 esac
13519 func_basename_result="${1##*/}"
13522 # func_stripname prefix suffix name
13523 # strip PREFIX and SUFFIX off of NAME.
13524 # PREFIX and SUFFIX must not contain globbing or regex special
13525 # characters, hashes, percent signs, but SUFFIX may contain a leading
13526 # dot (in which case that matches only a dot).
13527 func_stripname ()
13529 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13530 # positional parameters, so assign one to ordinary parameter first.
13531 func_stripname_result=${3}
13532 func_stripname_result=${func_stripname_result#"${1}"}
13533 func_stripname_result=${func_stripname_result%"${2}"}
13536 # func_opt_split
13537 func_opt_split ()
13539 func_opt_split_opt=${1%%=*}
13540 func_opt_split_arg=${1#*=}
13543 # func_lo2o object
13544 func_lo2o ()
13546 case ${1} in
13547 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13548 *) func_lo2o_result=${1} ;;
13549 esac
13552 # func_xform libobj-or-source
13553 func_xform ()
13555 func_xform_result=${1%.*}.lo
13558 # func_arith arithmetic-term...
13559 func_arith ()
13561 func_arith_result=$(( $* ))
13564 # func_len string
13565 # STRING may not start with a hyphen.
13566 func_len ()
13568 func_len_result=${#1}
13571 _LT_EOF
13573 *) # Bourne compatible functions.
13574 cat << \_LT_EOF >> "$cfgfile"
13576 # func_dirname file append nondir_replacement
13577 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13578 # otherwise set result to NONDIR_REPLACEMENT.
13579 func_dirname ()
13581 # Extract subdirectory from the argument.
13582 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13583 if test "X$func_dirname_result" = "X${1}"; then
13584 func_dirname_result="${3}"
13585 else
13586 func_dirname_result="$func_dirname_result${2}"
13590 # func_basename file
13591 func_basename ()
13593 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13597 # func_stripname prefix suffix name
13598 # strip PREFIX and SUFFIX off of NAME.
13599 # PREFIX and SUFFIX must not contain globbing or regex special
13600 # characters, hashes, percent signs, but SUFFIX may contain a leading
13601 # dot (in which case that matches only a dot).
13602 # func_strip_suffix prefix name
13603 func_stripname ()
13605 case ${2} in
13606 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13607 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13608 esac
13611 # sed scripts:
13612 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13613 my_sed_long_arg='1s/^-[^=]*=//'
13615 # func_opt_split
13616 func_opt_split ()
13618 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13619 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13622 # func_lo2o object
13623 func_lo2o ()
13625 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13628 # func_xform libobj-or-source
13629 func_xform ()
13631 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13634 # func_arith arithmetic-term...
13635 func_arith ()
13637 func_arith_result=`expr "$@"`
13640 # func_len string
13641 # STRING may not start with a hyphen.
13642 func_len ()
13644 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13647 _LT_EOF
13648 esac
13650 case $lt_shell_append in
13651 yes)
13652 cat << \_LT_EOF >> "$cfgfile"
13654 # func_append var value
13655 # Append VALUE to the end of shell variable VAR.
13656 func_append ()
13658 eval "$1+=\$2"
13660 _LT_EOF
13663 cat << \_LT_EOF >> "$cfgfile"
13665 # func_append var value
13666 # Append VALUE to the end of shell variable VAR.
13667 func_append ()
13669 eval "$1=\$$1\$2"
13672 _LT_EOF
13674 esac
13677 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13678 || (rm -f "$cfgfile"; exit 1)
13680 mv -f "$cfgfile" "$ofile" ||
13681 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13682 chmod +x "$ofile"
13686 esac
13687 done # for ac_tag
13690 as_fn_exit 0
13691 _ACEOF
13692 ac_clean_files=$ac_clean_files_save
13694 test $ac_write_fail = 0 ||
13695 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13698 # configure is writing to config.log, and then calls config.status.
13699 # config.status does its own redirection, appending to config.log.
13700 # Unfortunately, on DOS this fails, as config.log is still kept open
13701 # by configure, so config.status won't be able to write to it; its
13702 # output is simply discarded. So we exec the FD to /dev/null,
13703 # effectively closing config.log, so it can be properly (re)opened and
13704 # appended to by config.status. When coming back to configure, we
13705 # need to make the FD available again.
13706 if test "$no_create" != yes; then
13707 ac_cs_success=:
13708 ac_config_status_args=
13709 test "$silent" = yes &&
13710 ac_config_status_args="$ac_config_status_args --quiet"
13711 exec 5>/dev/null
13712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13713 exec 5>>config.log
13714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13715 # would make configure fail if this is the last instruction.
13716 $ac_cs_success || as_fn_exit $?
13718 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13720 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}