Add support for DragonFlyBSD target.
[binutils.git] / ld / configure
blob9e4cb57802a22c348e47c6003b5758e49f13c75b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="ldmain.c"
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='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 TESTBFDLIB
606 EMULATION_LIBPATH
607 LIB_PATH
608 EMUL_EXTRA_OFILES
609 EMULATION_OFILES
610 EMUL
611 STRINGIFY
612 enable_initfini_array
613 ENABLE_PLUGINS_FALSE
614 ENABLE_PLUGINS_TRUE
615 NATIVE_LIB_DIRS
616 HOSTING_LIBS
617 HOSTING_CRT0
618 HDEFINES
619 do_compare
620 GENINSRC_NEVER_FALSE
621 GENINSRC_NEVER_TRUE
622 LEXLIB
623 LEX_OUTPUT_ROOT
625 YFLAGS
626 YACC
627 MSGMERGE
628 MSGFMT
629 MKINSTALLDIRS
630 CATOBJEXT
631 GENCAT
632 INSTOBJEXT
633 DATADIRNAME
634 CATALOGS
635 POSUB
636 GMSGFMT
637 XGETTEXT
638 INCINTL
639 LIBINTL_DEP
640 LIBINTL
641 USE_NLS
642 CXXCPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
650 OBJDUMP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
658 LIBTOOL
659 am__fastdepCXX_FALSE
660 am__fastdepCXX_TRUE
661 CXXDEPMODE
662 ac_ct_CXX
663 CXXFLAGS
665 NO_WERROR
666 WARN_CFLAGS
667 EGREP
668 GREP
670 installed_linker
671 install_as_default
672 TARGET_SYSTEM_ROOT_DEFINE
673 TARGET_SYSTEM_ROOT
674 use_sysroot
675 MAINT
676 MAINTAINER_MODE_FALSE
677 MAINTAINER_MODE_TRUE
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
717 target_os
718 target_vendor
719 target_cpu
720 target
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files='TDIRS'
768 ac_user_opts='
769 enable_option_checking
770 enable_dependency_tracking
771 enable_maintainer_mode
772 with_lib_path
773 enable_targets
774 enable_64_bit_bfd
775 with_sysroot
776 enable_gold
777 enable_got
778 enable_werror
779 enable_build_warnings
780 enable_plugins
781 enable_largefile
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 enable_nls
789 enable_initfini_array
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
801 CXXFLAGS
803 CXXCPP
804 YACC
805 YFLAGS'
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
856 ac_prev=
857 ac_dashdash=
858 for ac_option
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
867 case $ac_option in
868 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *) ac_optarg=yes ;;
870 esac
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
876 ac_dashdash=yes ;;
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
895 --config-cache | -C)
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) as_fn_error "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information."
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 esac
1213 done
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error "missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1261 If a cross compiler is detected then cross compile mode will be used." >&2
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error "pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1299 /^X\(\/\/\)$/{
1300 s//\1/
1303 /^X\(\/\).*/{
1304 s//\1/
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1312 else
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures this package to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1402 cat <<\_ACEOF
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413 _ACEOF
1416 if test -n "$ac_init_help"; then
1418 cat <<\_ACEOF
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --disable-dependency-tracking speeds up one-time build
1425 --enable-dependency-tracking do not reject slow dependency extractors
1426 --enable-maintainer-mode enable make rules and dependencies not useful
1427 (and sometimes confusing) to the casual installer
1428 --enable-targets alternative target configurations
1429 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1430 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1431 --enable-got=<type> GOT handling scheme (target, single, negative,
1432 multigot)
1433 --enable-werror treat compile warnings as errors
1434 --enable-build-warnings enable build-time compiler warnings
1435 --enable-plugins Enable support for plugins (defaults no)
1436 --disable-largefile omit support for large files
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --disable-nls do not use Native Language Support
1443 --enable-initfini-array use .init_array/.fini_array sections
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-lib-path=dir1:dir2... set default LIB_PATH
1449 --with-sysroot=DIR Search for usr/lib et al within DIR.
1450 --with-pic try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1465 CXXCPP C++ preprocessor
1466 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1467 the first program found out of: `bison -y', `byacc', `yacc'.
1468 YFLAGS The list of arguments that will be passed by default to $YACC.
1469 This script will default YFLAGS to the empty string to avoid a
1470 default value of `-d' given by some make applications.
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to the package provider.
1476 _ACEOF
1477 ac_status=$?
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 configure
1539 generated by GNU Autoconf 2.64
1541 Copyright (C) 2009 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=1
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1588 } # ac_fn_c_try_compile
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 $as_test_x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 return $ac_retval
1634 } # ac_fn_c_try_link
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } >/dev/null && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1671 } # ac_fn_c_try_cpp
1673 # ac_fn_cxx_try_compile LINENO
1674 # ----------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_cxx_try_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_cxx_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_cxx_try_compile
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1758 rm -f conftest.err conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_c_try_run
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1899 #undef $2
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1916 main ()
1918 return $2 ();
1920 return 0;
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 } # ac_fn_c_check_func
1938 # ac_fn_cxx_try_cpp LINENO
1939 # ------------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_cpp ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } >/dev/null && {
1960 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1961 test ! -s conftest.err
1962 }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=1
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 return $ac_retval
1973 } # ac_fn_cxx_try_cpp
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 $as_test_x conftest$ac_exeext
2003 }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=1
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 return $ac_retval
2019 } # ac_fn_cxx_try_link
2021 # ac_fn_c_check_decl LINENO SYMBOL VAR
2022 # ------------------------------------
2023 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2024 ac_fn_c_check_decl ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 as_decl_name=`echo $2|sed 's/ *(.*//'`
2028 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2030 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 #ifndef $as_decl_name
2041 #ifdef __cplusplus
2042 (void) $as_decl_use;
2043 #else
2044 (void) $as_decl_name;
2045 #endif
2046 #endif
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_c_check_decl
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2070 # computed
2071 ac_fn_c_compute_int ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2083 test_array [0] = 0
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2107 else
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2110 ac_lo= ac_hi=
2111 break
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static int test_array [1 - 2 * !(($2) < 0)];
2125 test_array [0] = 0
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2149 else
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2152 ac_lo= ac_hi=
2153 break
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 ac_lo= ac_hi=
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 # Binary search between lo and hi bounds.
2166 while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid
2183 else
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 done
2188 case $ac_lo in #((
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 '') ac_retval=1 ;;
2191 esac
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2198 #include <stdio.h>
2199 #include <stdlib.h>
2201 main ()
2204 FILE *f = fopen ("conftest.val", "w");
2205 if (! f)
2206 return 1;
2207 if (($2) < 0)
2209 long int i = longval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%ld", i);
2214 else
2216 unsigned long int i = ulongval ();
2217 if (i != ($2))
2218 return 1;
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2226 return 0;
2228 _ACEOF
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 else
2232 ac_retval=1
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 rm -f conftest.val
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2242 } # ac_fn_c_compute_int
2243 cat >config.log <<_ACEOF
2244 This file contains any messages produced by compilers while
2245 running configure, to aid debugging if configure makes a mistake.
2247 It was created by $as_me, which was
2248 generated by GNU Autoconf 2.64. Invocation command line was
2250 $ $0 $@
2252 _ACEOF
2253 exec 5>>config.log
2255 cat <<_ASUNAME
2256 ## --------- ##
2257 ## Platform. ##
2258 ## --------- ##
2260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2269 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2273 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2274 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2275 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2277 _ASUNAME
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 $as_echo "PATH: $as_dir"
2285 done
2286 IFS=$as_save_IFS
2288 } >&5
2290 cat >&5 <<_ACEOF
2293 ## ----------- ##
2294 ## Core tests. ##
2295 ## ----------- ##
2297 _ACEOF
2300 # Keep a trace of the command line.
2301 # Strip out --no-create and --no-recursion so they do not pile up.
2302 # Strip out --silent because we don't want to record it for future runs.
2303 # Also quote any args containing shell meta-characters.
2304 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_configure_args=
2306 ac_configure_args0=
2307 ac_configure_args1=
2308 ac_must_keep_next=false
2309 for ac_pass in 1 2
2311 for ac_arg
2313 case $ac_arg in
2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316 | -silent | --silent | --silen | --sile | --sil)
2317 continue ;;
2318 *\'*)
2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 esac
2321 case $ac_pass in
2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2324 as_fn_append ac_configure_args1 " '$ac_arg'"
2325 if test $ac_must_keep_next = true; then
2326 ac_must_keep_next=false # Got value, back to normal.
2327 else
2328 case $ac_arg in
2329 *=* | --config-cache | -C | -disable-* | --disable-* \
2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332 | -with-* | --with-* | -without-* | --without-* | --x)
2333 case "$ac_configure_args0 " in
2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335 esac
2337 -* ) ac_must_keep_next=true ;;
2338 esac
2340 as_fn_append ac_configure_args " '$ac_arg'"
2342 esac
2343 done
2344 done
2345 { ac_configure_args0=; unset ac_configure_args0;}
2346 { ac_configure_args1=; unset ac_configure_args1;}
2348 # When interrupted or exit'd, cleanup temporary files, and complete
2349 # config.log. We remove comments because anyway the quotes in there
2350 # would cause problems or look ugly.
2351 # WARNING: Use '\'' to represent an apostrophe within the trap.
2352 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2353 trap 'exit_status=$?
2354 # Save into config.log some information that might help in debugging.
2356 echo
2358 cat <<\_ASBOX
2359 ## ---------------- ##
2360 ## Cache variables. ##
2361 ## ---------------- ##
2362 _ASBOX
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
2381 (set) 2>&1 |
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
2384 sed -n \
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 esac |
2392 sort
2394 echo
2396 cat <<\_ASBOX
2397 ## ----------------- ##
2398 ## Output variables. ##
2399 ## ----------------- ##
2400 _ASBOX
2401 echo
2402 for ac_var in $ac_subst_vars
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2412 if test -n "$ac_subst_files"; then
2413 cat <<\_ASBOX
2414 ## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##
2417 _ASBOX
2418 echo
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2430 if test -s confdefs.h; then
2431 cat <<\_ASBOX
2432 ## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##
2435 _ASBOX
2436 echo
2437 cat confdefs.h
2438 echo
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2443 } >&5
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 exit $exit_status
2448 for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 done
2451 ac_signal=0
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest* confdefs.h
2456 $as_echo "/* confdefs.h */" > confdefs.h
2458 # Predefined preprocessor variables.
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2482 _ACEOF
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2487 ac_site_file1=NONE
2488 ac_site_file2=NONE
2489 if test -n "$CONFIG_SITE"; then
2490 ac_site_file1=$CONFIG_SITE
2491 elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2494 else
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2498 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500 test "x$ac_site_file" = xNONE && continue
2501 if test -r "$ac_site_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file"
2507 done
2509 if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special
2511 # files actually), so we avoid doing that.
2512 if test -f "$cache_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514 $as_echo "$as_me: loading cache $cache_file" >&6;}
2515 case $cache_file in
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";;
2518 esac
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522 $as_echo "$as_me: creating cache $cache_file" >&6;}
2523 >$cache_file
2526 # Check that the precious variables saved in the cache have kept the same
2527 # value.
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2575 done
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 ac_aux_dir=
2600 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2601 for ac_t in install-sh install.sh shtool; do
2602 if test -f "$ac_dir/$ac_t"; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/$ac_t -c"
2605 break 2
2607 done
2608 done
2609 if test -z "$ac_aux_dir"; then
2610 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622 # Make sure we can run config.sub.
2623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2624 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2627 $as_echo_n "checking build system type... " >&6; }
2628 if test "${ac_cv_build+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 ac_build_alias=$build_alias
2632 test "x$ac_build_alias" = x &&
2633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2634 test "x$ac_build_alias" = x &&
2635 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2641 $as_echo "$ac_cv_build" >&6; }
2642 case $ac_cv_build in
2643 *-*-*) ;;
2644 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2645 esac
2646 build=$ac_cv_build
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_build
2649 shift
2650 build_cpu=$1
2651 build_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 build_os=$*
2656 IFS=$ac_save_IFS
2657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2661 $as_echo_n "checking host system type... " >&6; }
2662 if test "${ac_cv_host+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test "x$host_alias" = x; then
2666 ac_cv_host=$ac_cv_build
2667 else
2668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2669 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2674 $as_echo "$ac_cv_host" >&6; }
2675 case $ac_cv_host in
2676 *-*-*) ;;
2677 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2678 esac
2679 host=$ac_cv_host
2680 ac_save_IFS=$IFS; IFS='-'
2681 set x $ac_cv_host
2682 shift
2683 host_cpu=$1
2684 host_vendor=$2
2685 shift; shift
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2688 host_os=$*
2689 IFS=$ac_save_IFS
2690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2694 $as_echo_n "checking target system type... " >&6; }
2695 if test "${ac_cv_target+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test "x$target_alias" = x; then
2699 ac_cv_target=$ac_cv_host
2700 else
2701 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2702 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2707 $as_echo "$ac_cv_target" >&6; }
2708 case $ac_cv_target in
2709 *-*-*) ;;
2710 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2711 esac
2712 target=$ac_cv_target
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_target
2715 shift
2716 target_cpu=$1
2717 target_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 target_os=$*
2722 IFS=$ac_save_IFS
2723 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2726 # The aliases save the names the user supplied, while $host etc.
2727 # will get canonicalized.
2728 test -n "$target_alias" &&
2729 test "$program_prefix$program_suffix$program_transform_name" = \
2730 NONENONEs,x,x, &&
2731 program_prefix=${target_alias}-
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2762 IFS=$as_save_IFS
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2777 if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_ac_ct_CC="gcc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2802 IFS=$as_save_IFS
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2809 $as_echo "$ac_ct_CC" >&6; }
2810 else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824 CC=$ac_ct_CC
2826 else
2827 CC="$ac_cv_prog_CC"
2830 if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}cc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_CC="${ac_tool_prefix}cc"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2871 if test -z "$CC"; then
2872 # Extract the first word of "cc", so it can be a program name with args.
2873 set dummy cc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 ac_prog_rejected=no
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2891 ac_prog_rejected=yes
2892 continue
2894 ac_cv_prog_CC="cc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2900 IFS=$as_save_IFS
2902 if test $ac_prog_rejected = yes; then
2903 # We found a bogon in the path, so make sure we never use it.
2904 set dummy $ac_cv_prog_CC
2905 shift
2906 if test $# != 0; then
2907 # We chose a different compiler from the bogus one.
2908 # However, it has the same basename, so the bogon will be chosen
2909 # first if we set CC to just the basename; use the full file name.
2910 shift
2911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2927 if test -z "$CC"; then
2928 if test -n "$ac_tool_prefix"; then
2929 for ac_prog in cl.exe
2931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2952 done
2953 done
2954 IFS=$as_save_IFS
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2968 test -n "$CC" && break
2969 done
2971 if test -z "$CC"; then
2972 ac_ct_CC=$CC
2973 for ac_prog in cl.exe
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$ac_ct_CC"; then
2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_ac_ct_CC="$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003 if test -n "$ac_ct_CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005 $as_echo "$ac_ct_CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$ac_ct_CC" && break
3013 done
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error "no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." "$LINENO" 5; }
3036 # Provide some information about the compiler.
3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3038 set X $ac_compile
3039 ac_compiler=$2
3040 for ac_option in --version -v -V -qversion; do
3041 { { ac_try="$ac_compiler $ac_option >&5"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3049 ac_status=$?
3050 if test -s conftest.err; then
3051 sed '10a\
3052 ... rest of stderr output deleted ...
3053 10q' conftest.err >conftest.er1
3054 cat conftest.er1 >&5
3055 rm -f conftest.er1 conftest.err
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 done
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3078 $as_echo_n "checking for C compiler default output file name... " >&6; }
3079 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 # The possible output files:
3082 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3084 ac_rmfiles=
3085 for ac_file in $ac_files
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3090 esac
3091 done
3092 rm -f $ac_rmfiles
3094 if { { ac_try="$ac_link_default"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_link_default") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3109 # Autoconf.
3110 for ac_file in $ac_files ''
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3116 [ab].out )
3117 # We found the default executable, but exeext='' is most
3118 # certainly right.
3119 break;;
3120 *.* )
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 then :; else
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3129 # actually working.
3130 break;;
3132 break;;
3133 esac
3134 done
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3137 else
3138 ac_file=''
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3141 $as_echo "$ac_file" >&6; }
3142 if test -z "$ac_file"; then :
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 { as_fn_set_status 77
3149 as_fn_error "C compiler cannot create executables
3150 See \`config.log' for more details." "$LINENO" 5; }; }
3152 ac_exeext=$ac_cv_exeext
3154 # Check that the compiler produces executables we can run. If not, either
3155 # the compiler is broken, or we cross compile.
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3157 $as_echo_n "checking whether the C compiler works... " >&6; }
3158 # If not cross compiling, check that we can run a simple program.
3159 if test "$cross_compiling" != yes; then
3160 if { ac_try='./$ac_file'
3161 { { case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; }; then
3171 cross_compiling=no
3172 else
3173 if test "$cross_compiling" = maybe; then
3174 cross_compiling=yes
3175 else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error "cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details." "$LINENO" 5; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192 $as_echo_n "checking whether we are cross compiling... " >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194 $as_echo "$cross_compiling" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3197 $as_echo_n "checking for suffix of executables... " >&6; }
3198 if { { ac_try="$ac_link"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204 $as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_link") 2>&5
3206 ac_status=$?
3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }; then :
3209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3211 # work properly (i.e., refer to `conftest.exe'), while it won't with
3212 # `rm'.
3213 for ac_file in conftest.exe conftest conftest.*; do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 break;;
3219 * ) break;;
3220 esac
3221 done
3222 else
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error "cannot compute suffix of executables: cannot compile and link
3226 See \`config.log' for more details." "$LINENO" 5; }
3228 rm -f conftest$ac_cv_exeext
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230 $as_echo "$ac_cv_exeext" >&6; }
3232 rm -f conftest.$ac_ext
3233 EXEEXT=$ac_cv_exeext
3234 ac_exeext=$EXEEXT
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236 $as_echo_n "checking for suffix of object files... " >&6; }
3237 if test "${ac_cv_objext+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 main ()
3248 return 0;
3250 _ACEOF
3251 rm -f conftest.o conftest.obj
3252 if { { ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 break;;
3269 esac
3270 done
3271 else
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error "cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details." "$LINENO" 5; }
3280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283 $as_echo "$ac_cv_objext" >&6; }
3284 OBJEXT=$ac_cv_objext
3285 ac_objext=$OBJEXT
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3287 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3288 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3295 main ()
3297 #ifndef __GNUC__
3298 choke me
3299 #endif
3302 return 0;
3304 _ACEOF
3305 if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_compiler_gnu=yes
3307 else
3308 ac_compiler_gnu=no
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3315 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3316 if test $ac_compiler_gnu = yes; then
3317 GCC=yes
3318 else
3319 GCC=
3321 ac_test_CFLAGS=${CFLAGS+set}
3322 ac_save_CFLAGS=$CFLAGS
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3324 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3325 if test "${ac_cv_prog_cc_g+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_save_c_werror_flag=$ac_c_werror_flag
3329 ac_c_werror_flag=yes
3330 ac_cv_prog_cc_g=no
3331 CFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_cv_prog_cc_g=yes
3345 else
3346 CFLAGS=""
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3351 main ()
3355 return 0;
3357 _ACEOF
3358 if ac_fn_c_try_compile "$LINENO"; then :
3360 else
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3362 CFLAGS="-g"
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3371 return 0;
3373 _ACEOF
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_cv_prog_cc_g=yes
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3385 $as_echo "$ac_cv_prog_cc_g" >&6; }
3386 if test "$ac_test_CFLAGS" = set; then
3387 CFLAGS=$ac_save_CFLAGS
3388 elif test $ac_cv_prog_cc_g = yes; then
3389 if test "$GCC" = yes; then
3390 CFLAGS="-g -O2"
3391 else
3392 CFLAGS="-g"
3394 else
3395 if test "$GCC" = yes; then
3396 CFLAGS="-O2"
3397 else
3398 CFLAGS=
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3402 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3403 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 ac_cv_prog_cc_c89=no
3407 ac_save_CC=$CC
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 #include <stdarg.h>
3411 #include <stdio.h>
3412 #include <sys/types.h>
3413 #include <sys/stat.h>
3414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3415 struct buf { int x; };
3416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3417 static char *e (p, i)
3418 char **p;
3419 int i;
3421 return p[i];
3423 static char *f (char * (*g) (char **, int), char **p, ...)
3425 char *s;
3426 va_list v;
3427 va_start (v,p);
3428 s = g (p, va_arg (v,int));
3429 va_end (v);
3430 return s;
3433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3434 function prototypes and stuff, but not '\xHH' hex character constants.
3435 These don't provoke an error unfortunately, instead are silently treated
3436 as 'x'. The following induces an error, until -std is added to get
3437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3438 array size at least. It's necessary to write '\x00'==0 to get something
3439 that's true only with -std. */
3440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3442 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3443 inside strings and character constants. */
3444 #define FOO(x) 'x'
3445 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3447 int test (int i, double x);
3448 struct s1 {int (*f) (int a);};
3449 struct s2 {int (*f) (double a);};
3450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3451 int argc;
3452 char **argv;
3454 main ()
3456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3458 return 0;
3460 _ACEOF
3461 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3464 CC="$ac_save_CC $ac_arg"
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466 ac_cv_prog_cc_c89=$ac_arg
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 done
3471 rm -f conftest.$ac_ext
3472 CC=$ac_save_CC
3475 # AC_CACHE_VAL
3476 case "x$ac_cv_prog_cc_c89" in
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3479 $as_echo "none needed" >&6; } ;;
3480 xno)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3482 $as_echo "unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3486 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3487 esac
3488 if test "x$ac_cv_prog_cc_c89" != xno; then :
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3500 $as_echo_n "checking for library containing strerror... " >&6; }
3501 if test "${ac_cv_search_strerror+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 ac_func_search_save_LIBS=$LIBS
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3508 /* Override any GCC internal prototype to avoid an error.
3509 Use char because int might match the return type of a GCC
3510 builtin and then its argument prototype would still apply. */
3511 #ifdef __cplusplus
3512 extern "C"
3513 #endif
3514 char strerror ();
3516 main ()
3518 return strerror ();
3520 return 0;
3522 _ACEOF
3523 for ac_lib in '' cposix; do
3524 if test -z "$ac_lib"; then
3525 ac_res="none required"
3526 else
3527 ac_res=-l$ac_lib
3528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3530 if ac_fn_c_try_link "$LINENO"; then :
3531 ac_cv_search_strerror=$ac_res
3533 rm -f core conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext
3535 if test "${ac_cv_search_strerror+set}" = set; then :
3536 break
3538 done
3539 if test "${ac_cv_search_strerror+set}" = set; then :
3541 else
3542 ac_cv_search_strerror=no
3544 rm conftest.$ac_ext
3545 LIBS=$ac_func_search_save_LIBS
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3548 $as_echo "$ac_cv_search_strerror" >&6; }
3549 ac_res=$ac_cv_search_strerror
3550 if test "$ac_res" != no; then :
3551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3556 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3557 am__api_version='1.11'
3559 # Find a good install program. We prefer a C program (faster),
3560 # so one script is as good as another. But avoid the broken or
3561 # incompatible versions:
3562 # SysV /etc/install, /usr/sbin/install
3563 # SunOS /usr/etc/install
3564 # IRIX /sbin/install
3565 # AIX /bin/install
3566 # AmigaOS /C/install, which installs bootblocks on floppy discs
3567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3570 # OS/2's system install, which has a completely different semantic
3571 # ./install, which can be erroneously created by make from ./install.sh.
3572 # Reject install programs that cannot install multiple files.
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3575 if test -z "$INSTALL"; then
3576 if test "${ac_cv_path_install+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 # Account for people who put trailing slashes in PATH elements.
3585 case $as_dir/ in #((
3586 ./ | .// | /[cC]/* | \
3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3589 /usr/ucb/* ) ;;
3591 # OSF1 and SCO ODT 3.0 have their own names for install.
3592 # Don't use installbsd from OSF since it installs stuff as root
3593 # by default.
3594 for ac_prog in ginstall scoinst install; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3597 if test $ac_prog = install &&
3598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3599 # AIX install. It has an incompatible calling convention.
3601 elif test $ac_prog = install &&
3602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3603 # program-specific install script used by HP pwplus--don't use.
3605 else
3606 rm -rf conftest.one conftest.two conftest.dir
3607 echo one > conftest.one
3608 echo two > conftest.two
3609 mkdir conftest.dir
3610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3611 test -s conftest.one && test -s conftest.two &&
3612 test -s conftest.dir/conftest.one &&
3613 test -s conftest.dir/conftest.two
3614 then
3615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3616 break 3
3620 done
3621 done
3623 esac
3625 done
3626 IFS=$as_save_IFS
3628 rm -rf conftest.one conftest.two conftest.dir
3631 if test "${ac_cv_path_install+set}" = set; then
3632 INSTALL=$ac_cv_path_install
3633 else
3634 # As a last resort, use the slow shell script. Don't cache a
3635 # value for INSTALL within a source directory, because that will
3636 # break other packages using the cache if that directory is
3637 # removed, or if the value is a relative name.
3638 INSTALL=$ac_install_sh
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3642 $as_echo "$INSTALL" >&6; }
3644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3645 # It thinks the first close brace ends the variable substitution.
3646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3653 $as_echo_n "checking whether build environment is sane... " >&6; }
3654 # Just in case
3655 sleep 1
3656 echo timestamp > conftest.file
3657 # Reject unsafe characters in $srcdir or the absolute working directory
3658 # name. Accept space and tab only in the latter.
3659 am_lf='
3661 case `pwd` in
3662 *[\\\"\#\$\&\'\`$am_lf]*)
3663 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3664 esac
3665 case $srcdir in
3666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3667 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3668 esac
3670 # Do `set' in a subshell so we don't clobber the current shell's
3671 # arguments. Must try -L first in case configure is actually a
3672 # symlink; some systems play weird games with the mod time of symlinks
3673 # (eg FreeBSD returns the mod time of the symlink's containing
3674 # directory).
3675 if (
3676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3677 if test "$*" = "X"; then
3678 # -L didn't work.
3679 set X `ls -t "$srcdir/configure" conftest.file`
3681 rm -f conftest.file
3682 if test "$*" != "X $srcdir/configure conftest.file" \
3683 && test "$*" != "X conftest.file $srcdir/configure"; then
3685 # If neither matched, then we have a broken ls. This can happen
3686 # if, for instance, CONFIG_SHELL is bash and it inherits a
3687 # broken ls alias from the environment. This has actually
3688 # happened. Such a system could not be considered "sane".
3689 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3690 alias in your environment" "$LINENO" 5
3693 test "$2" = conftest.file
3695 then
3696 # Ok.
3698 else
3699 as_fn_error "newly created file is older than distributed files!
3700 Check your system clock" "$LINENO" 5
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3704 test "$program_prefix" != NONE &&
3705 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3706 # Use a double $ so make ignores it.
3707 test "$program_suffix" != NONE &&
3708 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3709 # Double any \ or $.
3710 # By default was `s,x,x', remove it if useless.
3711 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3712 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3714 # expand $ac_aux_dir to an absolute path
3715 am_aux_dir=`cd $ac_aux_dir && pwd`
3717 if test x"${MISSING+set}" != xset; then
3718 case $am_aux_dir in
3719 *\ * | *\ *)
3720 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3722 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3723 esac
3725 # Use eval to expand $SHELL
3726 if eval "$MISSING --run true"; then
3727 am_missing_run="$MISSING --run "
3728 else
3729 am_missing_run=
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3731 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3734 if test x"${install_sh}" != xset; then
3735 case $am_aux_dir in
3736 *\ * | *\ *)
3737 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3739 install_sh="\${SHELL} $am_aux_dir/install-sh"
3740 esac
3743 # Installed binaries are usually stripped using `strip' when the user
3744 # run `make install-strip'. However `strip' might not be the right
3745 # tool to use in cross-compilation environments, therefore Automake
3746 # will honor the `STRIP' environment variable to overrule this program.
3747 if test "$cross_compiling" != no; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}strip; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if test "${ac_cv_prog_STRIP+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$STRIP"; then
3757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3770 done
3771 done
3772 IFS=$as_save_IFS
3776 STRIP=$ac_cv_prog_STRIP
3777 if test -n "$STRIP"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3779 $as_echo "$STRIP" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3787 if test -z "$ac_cv_prog_STRIP"; then
3788 ac_ct_STRIP=$STRIP
3789 # Extract the first word of "strip", so it can be a program name with args.
3790 set dummy strip; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$ac_ct_STRIP"; then
3797 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_STRIP="strip"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3816 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3817 if test -n "$ac_ct_STRIP"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3819 $as_echo "$ac_ct_STRIP" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3825 if test "x$ac_ct_STRIP" = x; then
3826 STRIP=":"
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829 yes:)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3833 esac
3834 STRIP=$ac_ct_STRIP
3836 else
3837 STRIP="$ac_cv_prog_STRIP"
3841 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3844 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3845 if test -z "$MKDIR_P"; then
3846 if test "${ac_cv_path_mkdir+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in mkdir gmkdir; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3857 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3858 'mkdir (GNU coreutils) '* | \
3859 'mkdir (coreutils) '* | \
3860 'mkdir (fileutils) '4.1*)
3861 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3862 break 3;;
3863 esac
3864 done
3865 done
3866 done
3867 IFS=$as_save_IFS
3871 if test "${ac_cv_path_mkdir+set}" = set; then
3872 MKDIR_P="$ac_cv_path_mkdir -p"
3873 else
3874 # As a last resort, use the slow shell script. Don't cache a
3875 # value for MKDIR_P within a source directory, because that will
3876 # break other packages using the cache if that directory is
3877 # removed, or if the value is a relative name.
3878 test -d ./--version && rmdir ./--version
3879 MKDIR_P="$ac_install_sh -d"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3883 $as_echo "$MKDIR_P" >&6; }
3885 mkdir_p="$MKDIR_P"
3886 case $mkdir_p in
3887 [\\/$]* | ?:[\\/]*) ;;
3888 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3889 esac
3891 for ac_prog in gawk mawk nawk awk
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if test "${ac_cv_prog_AWK+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$AWK"; then
3901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_AWK="$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3920 AWK=$ac_cv_prog_AWK
3921 if test -n "$AWK"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3923 $as_echo "$AWK" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3930 test -n "$AWK" && break
3931 done
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3934 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3935 set x ${MAKE-make}
3936 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3937 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 cat >conftest.make <<\_ACEOF
3941 SHELL = /bin/sh
3942 all:
3943 @echo '@@@%%%=$(MAKE)=@@@%%%'
3944 _ACEOF
3945 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3946 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3947 *@@@%%%=?*=@@@%%%*)
3948 eval ac_cv_prog_make_${ac_make}_set=yes;;
3950 eval ac_cv_prog_make_${ac_make}_set=no;;
3951 esac
3952 rm -f conftest.make
3954 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3957 SET_MAKE=
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 SET_MAKE="MAKE=${MAKE-make}"
3964 rm -rf .tst 2>/dev/null
3965 mkdir .tst 2>/dev/null
3966 if test -d .tst; then
3967 am__leading_dot=.
3968 else
3969 am__leading_dot=_
3971 rmdir .tst 2>/dev/null
3973 DEPDIR="${am__leading_dot}deps"
3975 ac_config_commands="$ac_config_commands depfiles"
3978 am_make=${MAKE-make}
3979 cat > confinc << 'END'
3980 am__doit:
3981 @echo this is the am__doit target
3982 .PHONY: am__doit
3984 # If we don't find an include directive, just comment out the code.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3986 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3987 am__include="#"
3988 am__quote=
3989 _am_result=none
3990 # First try GNU make style include.
3991 echo "include confinc" > confmf
3992 # Ignore all kinds of additional output from `make'.
3993 case `$am_make -s -f confmf 2> /dev/null` in #(
3994 *the\ am__doit\ target*)
3995 am__include=include
3996 am__quote=
3997 _am_result=GNU
3999 esac
4000 # Now try BSD make style include.
4001 if test "$am__include" = "#"; then
4002 echo '.include "confinc"' > confmf
4003 case `$am_make -s -f confmf 2> /dev/null` in #(
4004 *the\ am__doit\ target*)
4005 am__include=.include
4006 am__quote="\""
4007 _am_result=BSD
4009 esac
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4014 $as_echo "$_am_result" >&6; }
4015 rm -f confinc confmf
4017 # Check whether --enable-dependency-tracking was given.
4018 if test "${enable_dependency_tracking+set}" = set; then :
4019 enableval=$enable_dependency_tracking;
4022 if test "x$enable_dependency_tracking" != xno; then
4023 am_depcomp="$ac_aux_dir/depcomp"
4024 AMDEPBACKSLASH='\'
4026 if test "x$enable_dependency_tracking" != xno; then
4027 AMDEP_TRUE=
4028 AMDEP_FALSE='#'
4029 else
4030 AMDEP_TRUE='#'
4031 AMDEP_FALSE=
4035 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4036 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4037 # is not polluted with repeated "-I."
4038 am__isrc=' -I$(srcdir)'
4039 # test to see if srcdir already configured
4040 if test -f $srcdir/config.status; then
4041 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4045 # test whether we have cygpath
4046 if test -z "$CYGPATH_W"; then
4047 if (cygpath --version) >/dev/null 2>/dev/null; then
4048 CYGPATH_W='cygpath -w'
4049 else
4050 CYGPATH_W=echo
4055 # Define the identity of the package.
4056 PACKAGE=ld
4057 VERSION=${BFD_VERSION}
4060 cat >>confdefs.h <<_ACEOF
4061 #define PACKAGE "$PACKAGE"
4062 _ACEOF
4065 cat >>confdefs.h <<_ACEOF
4066 #define VERSION "$VERSION"
4067 _ACEOF
4069 # Some tools Automake needs.
4071 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4074 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4077 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4080 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4083 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4085 # We need awk for the "check" target. The system "awk" is bad on
4086 # some platforms.
4087 # Always define AMTAR for backward compatibility.
4089 AMTAR=${AMTAR-"${am_missing_run}tar"}
4091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4096 depcc="$CC" am_compiler_list=
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4099 $as_echo_n "checking dependency style of $depcc... " >&6; }
4100 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named `D' -- because `-MD' means `put the output
4108 # in D'.
4109 mkdir conftest.dir
4110 # Copy depcomp to subdir because otherwise we won't find it if we're
4111 # using a relative directory.
4112 cp "$am_depcomp" conftest.dir
4113 cd conftest.dir
4114 # We will build objects and dependencies in a subdirectory because
4115 # it helps to detect inapplicable dependency modes. For instance
4116 # both Tru64's cc and ICC support -MD to output dependencies as a
4117 # side effect of compilation, but ICC will put the dependencies in
4118 # the current directory while Tru64 will put them in the object
4119 # directory.
4120 mkdir sub
4122 am_cv_CC_dependencies_compiler_type=none
4123 if test "$am_compiler_list" = ""; then
4124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4126 am__universal=false
4127 case " $depcc " in #(
4128 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4129 esac
4131 for depmode in $am_compiler_list; do
4132 # Setup a source with many dependencies, because some compilers
4133 # like to wrap large dependency lists on column 80 (with \), and
4134 # we should not choose a depcomp mode which is confused by this.
4136 # We need to recreate these files for each test, as the compiler may
4137 # overwrite some of them when testing with obscure command lines.
4138 # This happens at least with the AIX C compiler.
4139 : > sub/conftest.c
4140 for i in 1 2 3 4 5 6; do
4141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4143 # Solaris 8's {/usr,}/bin/sh.
4144 touch sub/conftst$i.h
4145 done
4146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149 # mode. It turns out that the SunPro C++ compiler does not properly
4150 # handle `-M -o', and we need to detect this. Also, some Intel
4151 # versions had trouble with output in subdirs
4152 am__obj=sub/conftest.${OBJEXT-o}
4153 am__minus_obj="-o $am__obj"
4154 case $depmode in
4155 gcc)
4156 # This depmode causes a compiler race in universal mode.
4157 test "$am__universal" = false || continue
4159 nosideeffect)
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes; then
4163 continue
4164 else
4165 break
4168 msvisualcpp | msvcmsys)
4169 # This compiler won't grok `-c -o', but also, the minuso test has
4170 # not run yet. These depmodes are late enough in the game, and
4171 # so weak that their functioning should not be impacted.
4172 am__obj=conftest.${OBJEXT-o}
4173 am__minus_obj=
4175 none) break ;;
4176 esac
4177 if depmode=$depmode \
4178 source=sub/conftest.c object=$am__obj \
4179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4181 >/dev/null 2>conftest.err &&
4182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4186 # icc doesn't choke on unknown options, it will just issue warnings
4187 # or remarks (even with -Werror). So we grep stderr for any message
4188 # that says an option was ignored or not supported.
4189 # When given -MP, icc 7.0 and 7.1 complain thusly:
4190 # icc: Command line warning: ignoring option '-M'; no argument required
4191 # The diagnosis changed in icc 8.0:
4192 # icc: Command line remark: option '-MP' not supported
4193 if (grep 'ignoring option' conftest.err ||
4194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4195 am_cv_CC_dependencies_compiler_type=$depmode
4196 break
4199 done
4201 cd ..
4202 rm -rf conftest.dir
4203 else
4204 am_cv_CC_dependencies_compiler_type=none
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4209 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4213 test "x$enable_dependency_tracking" != xno \
4214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4215 am__fastdepCC_TRUE=
4216 am__fastdepCC_FALSE='#'
4217 else
4218 am__fastdepCC_TRUE='#'
4219 am__fastdepCC_FALSE=
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4226 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4227 # Check whether --enable-maintainer-mode was given.
4228 if test "${enable_maintainer_mode+set}" = set; then :
4229 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4230 else
4231 USE_MAINTAINER_MODE=no
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4235 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4236 if test $USE_MAINTAINER_MODE = yes; then
4237 MAINTAINER_MODE_TRUE=
4238 MAINTAINER_MODE_FALSE='#'
4239 else
4240 MAINTAINER_MODE_TRUE='#'
4241 MAINTAINER_MODE_FALSE=
4244 MAINT=$MAINTAINER_MODE_TRUE
4249 # Check whether --with-lib-path was given.
4250 if test "${with_lib_path+set}" = set; then :
4251 withval=$with_lib_path; LIB_PATH=$withval
4254 # Check whether --enable-targets was given.
4255 if test "${enable_targets+set}" = set; then :
4256 enableval=$enable_targets; case "${enableval}" in
4257 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4259 no) enable_targets= ;;
4260 *) enable_targets=$enableval ;;
4261 esac
4263 # Check whether --enable-64-bit-bfd was given.
4264 if test "${enable_64_bit_bfd+set}" = set; then :
4265 enableval=$enable_64_bit_bfd; case "${enableval}" in
4266 yes) want64=true ;;
4267 no) want64=false ;;
4268 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4269 esac
4270 else
4271 want64=false
4275 # Check whether --with-sysroot was given.
4276 if test "${with_sysroot+set}" = set; then :
4277 withval=$with_sysroot;
4278 case ${with_sysroot} in
4279 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4280 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4281 esac
4283 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4284 use_sysroot=yes
4286 if test "x$prefix" = xNONE; then
4287 test_prefix=/usr/local
4288 else
4289 test_prefix=$prefix
4291 if test "x$exec_prefix" = xNONE; then
4292 test_exec_prefix=$test_prefix
4293 else
4294 test_exec_prefix=$exec_prefix
4296 case ${TARGET_SYSTEM_ROOT} in
4297 "${test_prefix}"|"${test_prefix}/"*|\
4298 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4299 '${prefix}'|'${prefix}/'*|\
4300 '${exec_prefix}'|'${exec_prefix}/'*)
4301 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4302 TARGET_SYSTEM_ROOT_DEFINE="$t"
4304 esac
4306 else
4308 use_sysroot=no
4309 TARGET_SYSTEM_ROOT=
4310 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4318 # Check whether --enable-gold was given.
4319 if test "${enable_gold+set}" = set; then :
4320 enableval=$enable_gold; case "${enableval}" in
4321 default)
4322 install_as_default=no
4323 installed_linker=ld.bfd
4325 yes|no)
4326 install_as_default=yes
4327 installed_linker=ld.bfd
4330 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4332 esac
4333 else
4334 install_as_default=yes
4335 installed_linker=ld.bfd
4341 # Check whether --enable-got was given.
4342 if test "${enable_got+set}" = set; then :
4343 enableval=$enable_got; case "${enableval}" in
4344 target | single | negative | multigot) got_handling=$enableval ;;
4345 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4346 esac
4347 else
4348 got_handling=target
4352 case "${got_handling}" in
4353 target)
4355 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4357 single)
4359 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4361 negative)
4363 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4365 multigot)
4367 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4369 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4370 esac
4372 ac_ext=c
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4378 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4379 # On Suns, sometimes $CPP names a directory.
4380 if test -n "$CPP" && test -d "$CPP"; then
4381 CPP=
4383 if test -z "$CPP"; then
4384 if test "${ac_cv_prog_CPP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 # Double quotes because CPP needs to be expanded
4388 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4390 ac_preproc_ok=false
4391 for ac_c_preproc_warn_flag in '' yes
4393 # Use a header file that comes with gcc, so configuring glibc
4394 # with a fresh cross-compiler works.
4395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 # <limits.h> exists even on freestanding compilers.
4397 # On the NeXT, cc -E runs the code through the compiler's parser,
4398 # not just through cpp. "Syntax error" is here to catch this case.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #ifdef __STDC__
4402 # include <limits.h>
4403 #else
4404 # include <assert.h>
4405 #endif
4406 Syntax error
4407 _ACEOF
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4410 else
4411 # Broken: fails on valid input.
4412 continue
4414 rm -f conftest.err conftest.$ac_ext
4416 # OK, works on sane cases. Now check whether nonexistent headers
4417 # can be detected and how.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <ac_nonexistent.h>
4421 _ACEOF
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4423 # Broken: success on invalid input.
4424 continue
4425 else
4426 # Passes both tests.
4427 ac_preproc_ok=:
4428 break
4430 rm -f conftest.err conftest.$ac_ext
4432 done
4433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4434 rm -f conftest.err conftest.$ac_ext
4435 if $ac_preproc_ok; then :
4436 break
4439 done
4440 ac_cv_prog_CPP=$CPP
4443 CPP=$ac_cv_prog_CPP
4444 else
4445 ac_cv_prog_CPP=$CPP
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4448 $as_echo "$CPP" >&6; }
4449 ac_preproc_ok=false
4450 for ac_c_preproc_warn_flag in '' yes
4452 # Use a header file that comes with gcc, so configuring glibc
4453 # with a fresh cross-compiler works.
4454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4455 # <limits.h> exists even on freestanding compilers.
4456 # On the NeXT, cc -E runs the code through the compiler's parser,
4457 # not just through cpp. "Syntax error" is here to catch this case.
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460 #ifdef __STDC__
4461 # include <limits.h>
4462 #else
4463 # include <assert.h>
4464 #endif
4465 Syntax error
4466 _ACEOF
4467 if ac_fn_c_try_cpp "$LINENO"; then :
4469 else
4470 # Broken: fails on valid input.
4471 continue
4473 rm -f conftest.err conftest.$ac_ext
4475 # OK, works on sane cases. Now check whether nonexistent headers
4476 # can be detected and how.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <ac_nonexistent.h>
4480 _ACEOF
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4482 # Broken: success on invalid input.
4483 continue
4484 else
4485 # Passes both tests.
4486 ac_preproc_ok=:
4487 break
4489 rm -f conftest.err conftest.$ac_ext
4491 done
4492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4493 rm -f conftest.err conftest.$ac_ext
4494 if $ac_preproc_ok; then :
4496 else
4497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4499 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4500 See \`config.log' for more details." "$LINENO" 5; }
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512 if test "${ac_cv_path_GREP+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -z "$GREP"; then
4516 ac_path_GREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in grep ggrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4527 # Check for GNU ac_path_GREP and select it if it is found.
4528 # Check for GNU $ac_path_GREP
4529 case `"$ac_path_GREP" --version 2>&1` in
4530 *GNU*)
4531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4533 ac_count=0
4534 $as_echo_n 0123456789 >"conftest.in"
4535 while :
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'GREP' >> "conftest.nl"
4541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_GREP="$ac_path_GREP"
4547 ac_path_GREP_max=$ac_count
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4551 done
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 esac
4555 $ac_path_GREP_found && break 3
4556 done
4557 done
4558 done
4559 IFS=$as_save_IFS
4560 if test -z "$ac_cv_path_GREP"; then
4561 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 else
4564 ac_cv_path_GREP=$GREP
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569 $as_echo "$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574 $as_echo_n "checking for egrep... " >&6; }
4575 if test "${ac_cv_path_EGREP+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579 then ac_cv_path_EGREP="$GREP -E"
4580 else
4581 if test -z "$EGREP"; then
4582 ac_path_EGREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in egrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4593 # Check for GNU ac_path_EGREP and select it if it is found.
4594 # Check for GNU $ac_path_EGREP
4595 case `"$ac_path_EGREP" --version 2>&1` in
4596 *GNU*)
4597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'EGREP' >> "conftest.nl"
4607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_EGREP="$ac_path_EGREP"
4613 ac_path_EGREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4621 $ac_path_EGREP_found && break 3
4622 done
4623 done
4624 done
4625 IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_EGREP"; then
4627 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 else
4630 ac_cv_path_EGREP=$EGREP
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636 $as_echo "$ac_cv_path_EGREP" >&6; }
4637 EGREP="$ac_cv_path_EGREP"
4641 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 __GNUC__
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4649 else
4650 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4652 rm -f conftest*
4655 # Check whether --enable-werror was given.
4656 if test "${enable_werror+set}" = set; then :
4657 enableval=$enable_werror; case "${enableval}" in
4658 yes | y) ERROR_ON_WARNING="yes" ;;
4659 no | n) ERROR_ON_WARNING="no" ;;
4660 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4661 esac
4665 # Disable -Wformat by default when using gcc on mingw
4666 case "${host}" in
4667 *-*-mingw32*)
4668 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4669 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4672 *) ;;
4673 esac
4675 # Enable -Werror by default when using gcc
4676 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4677 ERROR_ON_WARNING=yes
4680 NO_WERROR=
4681 if test "${ERROR_ON_WARNING}" = yes ; then
4682 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4683 NO_WERROR="-Wno-error"
4686 if test "${GCC}" = yes ; then
4687 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4690 # Check whether --enable-build-warnings was given.
4691 if test "${enable_build_warnings+set}" = set; then :
4692 enableval=$enable_build_warnings; case "${enableval}" in
4693 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4694 no) if test "${GCC}" = yes ; then
4695 WARN_CFLAGS="-w"
4696 fi;;
4697 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4698 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4699 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4700 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4701 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4702 esac
4706 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4707 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4714 ac_config_headers="$ac_config_headers config.h:config.in"
4717 if test -z "$target" ; then
4718 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4720 if test -z "$host" ; then
4721 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4724 # host-specific stuff:
4726 ac_ext=c
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if test "${ac_cv_prog_CC+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$CC"; then
4740 ac_cv_prog_CC="$CC" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4753 done
4754 done
4755 IFS=$as_save_IFS
4759 CC=$ac_cv_prog_CC
4760 if test -n "$CC"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4762 $as_echo "$CC" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4770 if test -z "$ac_cv_prog_CC"; then
4771 ac_ct_CC=$CC
4772 # Extract the first word of "gcc", so it can be a program name with args.
4773 set dummy gcc; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$ac_ct_CC"; then
4780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_ac_ct_CC="gcc"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4793 done
4794 done
4795 IFS=$as_save_IFS
4799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4800 if test -n "$ac_ct_CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4802 $as_echo "$ac_ct_CC" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4808 if test "x$ac_ct_CC" = x; then
4809 CC=""
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812 yes:)
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815 ac_tool_warned=yes ;;
4816 esac
4817 CC=$ac_ct_CC
4819 else
4820 CC="$ac_cv_prog_CC"
4823 if test -z "$CC"; then
4824 if test -n "$ac_tool_prefix"; then
4825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4826 set dummy ${ac_tool_prefix}cc; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_CC+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$CC"; then
4833 ac_cv_prog_CC="$CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_CC="${ac_tool_prefix}cc"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4848 IFS=$as_save_IFS
4852 CC=$ac_cv_prog_CC
4853 if test -n "$CC"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4855 $as_echo "$CC" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4864 if test -z "$CC"; then
4865 # Extract the first word of "cc", so it can be a program name with args.
4866 set dummy cc; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_CC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$CC"; then
4873 ac_cv_prog_CC="$CC" # Let the user override the test.
4874 else
4875 ac_prog_rejected=no
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4884 ac_prog_rejected=yes
4885 continue
4887 ac_cv_prog_CC="cc"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4895 if test $ac_prog_rejected = yes; then
4896 # We found a bogon in the path, so make sure we never use it.
4897 set dummy $ac_cv_prog_CC
4898 shift
4899 if test $# != 0; then
4900 # We chose a different compiler from the bogus one.
4901 # However, it has the same basename, so the bogon will be chosen
4902 # first if we set CC to just the basename; use the full file name.
4903 shift
4904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4909 CC=$ac_cv_prog_CC
4910 if test -n "$CC"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4912 $as_echo "$CC" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4920 if test -z "$CC"; then
4921 if test -n "$ac_tool_prefix"; then
4922 for ac_prog in cl.exe
4924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_CC+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$CC"; then
4932 ac_cv_prog_CC="$CC" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 CC=$ac_cv_prog_CC
4952 if test -n "$CC"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954 $as_echo "$CC" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$CC" && break
4962 done
4964 if test -z "$CC"; then
4965 ac_ct_CC=$CC
4966 for ac_prog in cl.exe
4968 # Extract the first word of "$ac_prog", so it can be a program name with args.
4969 set dummy $ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$ac_ct_CC"; then
4976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_ac_ct_CC="$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4989 done
4990 done
4991 IFS=$as_save_IFS
4995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4996 if test -n "$ac_ct_CC"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4998 $as_echo "$ac_ct_CC" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5005 test -n "$ac_ct_CC" && break
5006 done
5008 if test "x$ac_ct_CC" = x; then
5009 CC=""
5010 else
5011 case $cross_compiling:$ac_tool_warned in
5012 yes:)
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5015 ac_tool_warned=yes ;;
5016 esac
5017 CC=$ac_ct_CC
5024 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5026 as_fn_error "no acceptable C compiler found in \$PATH
5027 See \`config.log' for more details." "$LINENO" 5; }
5029 # Provide some information about the compiler.
5030 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5031 set X $ac_compile
5032 ac_compiler=$2
5033 for ac_option in --version -v -V -qversion; do
5034 { { ac_try="$ac_compiler $ac_option >&5"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 $as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5042 ac_status=$?
5043 if test -s conftest.err; then
5044 sed '10a\
5045 ... rest of stderr output deleted ...
5046 10q' conftest.err >conftest.er1
5047 cat conftest.er1 >&5
5048 rm -f conftest.er1 conftest.err
5050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5051 test $ac_status = 0; }
5052 done
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5056 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 main ()
5065 #ifndef __GNUC__
5066 choke me
5067 #endif
5070 return 0;
5072 _ACEOF
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 ac_compiler_gnu=yes
5075 else
5076 ac_compiler_gnu=no
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5084 if test $ac_compiler_gnu = yes; then
5085 GCC=yes
5086 else
5087 GCC=
5089 ac_test_CFLAGS=${CFLAGS+set}
5090 ac_save_CFLAGS=$CFLAGS
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5093 if test "${ac_cv_prog_cc_g+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 ac_save_c_werror_flag=$ac_c_werror_flag
5097 ac_c_werror_flag=yes
5098 ac_cv_prog_cc_g=no
5099 CFLAGS="-g"
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5104 main ()
5108 return 0;
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_prog_cc_g=yes
5113 else
5114 CFLAGS=""
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5119 main ()
5123 return 0;
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5128 else
5129 ac_c_werror_flag=$ac_save_c_werror_flag
5130 CFLAGS="-g"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5135 main ()
5139 return 0;
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_prog_cc_g=yes
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_c_werror_flag=$ac_save_c_werror_flag
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5153 $as_echo "$ac_cv_prog_cc_g" >&6; }
5154 if test "$ac_test_CFLAGS" = set; then
5155 CFLAGS=$ac_save_CFLAGS
5156 elif test $ac_cv_prog_cc_g = yes; then
5157 if test "$GCC" = yes; then
5158 CFLAGS="-g -O2"
5159 else
5160 CFLAGS="-g"
5162 else
5163 if test "$GCC" = yes; then
5164 CFLAGS="-O2"
5165 else
5166 CFLAGS=
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5170 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5171 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 ac_cv_prog_cc_c89=no
5175 ac_save_CC=$CC
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <stdarg.h>
5179 #include <stdio.h>
5180 #include <sys/types.h>
5181 #include <sys/stat.h>
5182 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5183 struct buf { int x; };
5184 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5185 static char *e (p, i)
5186 char **p;
5187 int i;
5189 return p[i];
5191 static char *f (char * (*g) (char **, int), char **p, ...)
5193 char *s;
5194 va_list v;
5195 va_start (v,p);
5196 s = g (p, va_arg (v,int));
5197 va_end (v);
5198 return s;
5201 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5202 function prototypes and stuff, but not '\xHH' hex character constants.
5203 These don't provoke an error unfortunately, instead are silently treated
5204 as 'x'. The following induces an error, until -std is added to get
5205 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5206 array size at least. It's necessary to write '\x00'==0 to get something
5207 that's true only with -std. */
5208 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5210 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5211 inside strings and character constants. */
5212 #define FOO(x) 'x'
5213 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5215 int test (int i, double x);
5216 struct s1 {int (*f) (int a);};
5217 struct s2 {int (*f) (double a);};
5218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5219 int argc;
5220 char **argv;
5222 main ()
5224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5226 return 0;
5228 _ACEOF
5229 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5230 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5232 CC="$ac_save_CC $ac_arg"
5233 if ac_fn_c_try_compile "$LINENO"; then :
5234 ac_cv_prog_cc_c89=$ac_arg
5236 rm -f core conftest.err conftest.$ac_objext
5237 test "x$ac_cv_prog_cc_c89" != "xno" && break
5238 done
5239 rm -f conftest.$ac_ext
5240 CC=$ac_save_CC
5243 # AC_CACHE_VAL
5244 case "x$ac_cv_prog_cc_c89" in
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5247 $as_echo "none needed" >&6; } ;;
5248 xno)
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5250 $as_echo "unsupported" >&6; } ;;
5252 CC="$CC $ac_cv_prog_cc_c89"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5254 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5255 esac
5256 if test "x$ac_cv_prog_cc_c89" != xno; then :
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 ac_ext=cpp
5267 ac_cpp='$CXXCPP $CPPFLAGS'
5268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5271 if test -z "$CXX"; then
5272 if test -n "$CCC"; then
5273 CXX=$CCC
5274 else
5275 if test -n "$ac_tool_prefix"; then
5276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_prog_CXX+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$CXX"; then
5286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5305 CXX=$ac_cv_prog_CXX
5306 if test -n "$CXX"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5308 $as_echo "$CXX" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5315 test -n "$CXX" && break
5316 done
5318 if test -z "$CXX"; then
5319 ac_ct_CXX=$CXX
5320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5322 # Extract the first word of "$ac_prog", so it can be a program name with args.
5323 set dummy $ac_prog; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 if test -n "$ac_ct_CXX"; then
5330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_prog_ac_ct_CXX="$ac_prog"
5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5343 done
5344 done
5345 IFS=$as_save_IFS
5349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5350 if test -n "$ac_ct_CXX"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5352 $as_echo "$ac_ct_CXX" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5359 test -n "$ac_ct_CXX" && break
5360 done
5362 if test "x$ac_ct_CXX" = x; then
5363 CXX="g++"
5364 else
5365 case $cross_compiling:$ac_tool_warned in
5366 yes:)
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369 ac_tool_warned=yes ;;
5370 esac
5371 CXX=$ac_ct_CXX
5377 # Provide some information about the compiler.
5378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5379 set X $ac_compile
5380 ac_compiler=$2
5381 for ac_option in --version -v -V -qversion; do
5382 { { ac_try="$ac_compiler $ac_option >&5"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388 $as_echo "$ac_try_echo"; } >&5
5389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5390 ac_status=$?
5391 if test -s conftest.err; then
5392 sed '10a\
5393 ... rest of stderr output deleted ...
5394 10q' conftest.err >conftest.er1
5395 cat conftest.er1 >&5
5396 rm -f conftest.er1 conftest.err
5398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5399 test $ac_status = 0; }
5400 done
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5403 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 main ()
5413 #ifndef __GNUC__
5414 choke me
5415 #endif
5418 return 0;
5420 _ACEOF
5421 if ac_fn_cxx_try_compile "$LINENO"; then :
5422 ac_compiler_gnu=yes
5423 else
5424 ac_compiler_gnu=no
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5431 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5432 if test $ac_compiler_gnu = yes; then
5433 GXX=yes
5434 else
5435 GXX=
5437 ac_test_CXXFLAGS=${CXXFLAGS+set}
5438 ac_save_CXXFLAGS=$CXXFLAGS
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5440 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5441 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5445 ac_cxx_werror_flag=yes
5446 ac_cv_prog_cxx_g=no
5447 CXXFLAGS="-g"
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5452 main ()
5456 return 0;
5458 _ACEOF
5459 if ac_fn_cxx_try_compile "$LINENO"; then :
5460 ac_cv_prog_cxx_g=yes
5461 else
5462 CXXFLAGS=""
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5467 main ()
5471 return 0;
5473 _ACEOF
5474 if ac_fn_cxx_try_compile "$LINENO"; then :
5476 else
5477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5478 CXXFLAGS="-g"
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5483 main ()
5487 return 0;
5489 _ACEOF
5490 if ac_fn_cxx_try_compile "$LINENO"; then :
5491 ac_cv_prog_cxx_g=yes
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5501 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5502 if test "$ac_test_CXXFLAGS" = set; then
5503 CXXFLAGS=$ac_save_CXXFLAGS
5504 elif test $ac_cv_prog_cxx_g = yes; then
5505 if test "$GXX" = yes; then
5506 CXXFLAGS="-g -O2"
5507 else
5508 CXXFLAGS="-g"
5510 else
5511 if test "$GXX" = yes; then
5512 CXXFLAGS="-O2"
5513 else
5514 CXXFLAGS=
5517 ac_ext=c
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523 depcc="$CXX" am_compiler_list=
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5526 $as_echo_n "checking dependency style of $depcc... " >&6; }
5527 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531 # We make a subdir and do the tests there. Otherwise we can end up
5532 # making bogus files that we don't know about and never remove. For
5533 # instance it was reported that on HP-UX the gcc test will end up
5534 # making a dummy file named `D' -- because `-MD' means `put the output
5535 # in D'.
5536 mkdir conftest.dir
5537 # Copy depcomp to subdir because otherwise we won't find it if we're
5538 # using a relative directory.
5539 cp "$am_depcomp" conftest.dir
5540 cd conftest.dir
5541 # We will build objects and dependencies in a subdirectory because
5542 # it helps to detect inapplicable dependency modes. For instance
5543 # both Tru64's cc and ICC support -MD to output dependencies as a
5544 # side effect of compilation, but ICC will put the dependencies in
5545 # the current directory while Tru64 will put them in the object
5546 # directory.
5547 mkdir sub
5549 am_cv_CXX_dependencies_compiler_type=none
5550 if test "$am_compiler_list" = ""; then
5551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553 am__universal=false
5554 case " $depcc " in #(
5555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5556 esac
5558 for depmode in $am_compiler_list; do
5559 # Setup a source with many dependencies, because some compilers
5560 # like to wrap large dependency lists on column 80 (with \), and
5561 # we should not choose a depcomp mode which is confused by this.
5563 # We need to recreate these files for each test, as the compiler may
5564 # overwrite some of them when testing with obscure command lines.
5565 # This happens at least with the AIX C compiler.
5566 : > sub/conftest.c
5567 for i in 1 2 3 4 5 6; do
5568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5570 # Solaris 8's {/usr,}/bin/sh.
5571 touch sub/conftst$i.h
5572 done
5573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576 # mode. It turns out that the SunPro C++ compiler does not properly
5577 # handle `-M -o', and we need to detect this. Also, some Intel
5578 # versions had trouble with output in subdirs
5579 am__obj=sub/conftest.${OBJEXT-o}
5580 am__minus_obj="-o $am__obj"
5581 case $depmode in
5582 gcc)
5583 # This depmode causes a compiler race in universal mode.
5584 test "$am__universal" = false || continue
5586 nosideeffect)
5587 # after this tag, mechanisms are not by side-effect, so they'll
5588 # only be used when explicitly requested
5589 if test "x$enable_dependency_tracking" = xyes; then
5590 continue
5591 else
5592 break
5595 msvisualcpp | msvcmsys)
5596 # This compiler won't grok `-c -o', but also, the minuso test has
5597 # not run yet. These depmodes are late enough in the game, and
5598 # so weak that their functioning should not be impacted.
5599 am__obj=conftest.${OBJEXT-o}
5600 am__minus_obj=
5602 none) break ;;
5603 esac
5604 if depmode=$depmode \
5605 source=sub/conftest.c object=$am__obj \
5606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5608 >/dev/null 2>conftest.err &&
5609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5613 # icc doesn't choke on unknown options, it will just issue warnings
5614 # or remarks (even with -Werror). So we grep stderr for any message
5615 # that says an option was ignored or not supported.
5616 # When given -MP, icc 7.0 and 7.1 complain thusly:
5617 # icc: Command line warning: ignoring option '-M'; no argument required
5618 # The diagnosis changed in icc 8.0:
5619 # icc: Command line remark: option '-MP' not supported
5620 if (grep 'ignoring option' conftest.err ||
5621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5622 am_cv_CXX_dependencies_compiler_type=$depmode
5623 break
5626 done
5628 cd ..
5629 rm -rf conftest.dir
5630 else
5631 am_cv_CXX_dependencies_compiler_type=none
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5636 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5637 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5640 test "x$enable_dependency_tracking" != xno \
5641 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5642 am__fastdepCXX_TRUE=
5643 am__fastdepCXX_FALSE='#'
5644 else
5645 am__fastdepCXX_TRUE='#'
5646 am__fastdepCXX_FALSE=
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5651 $as_echo_n "checking for ANSI C header files... " >&6; }
5652 if test "${ac_cv_header_stdc+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #include <stdlib.h>
5658 #include <stdarg.h>
5659 #include <string.h>
5660 #include <float.h>
5663 main ()
5667 return 0;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 ac_cv_header_stdc=yes
5672 else
5673 ac_cv_header_stdc=no
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 if test $ac_cv_header_stdc = yes; then
5678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <string.h>
5683 _ACEOF
5684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685 $EGREP "memchr" >/dev/null 2>&1; then :
5687 else
5688 ac_cv_header_stdc=no
5690 rm -f conftest*
5694 if test $ac_cv_header_stdc = yes; then
5695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <stdlib.h>
5700 _ACEOF
5701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702 $EGREP "free" >/dev/null 2>&1; then :
5704 else
5705 ac_cv_header_stdc=no
5707 rm -f conftest*
5711 if test $ac_cv_header_stdc = yes; then
5712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5713 if test "$cross_compiling" = yes; then :
5715 else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 #include <ctype.h>
5719 #include <stdlib.h>
5720 #if ((' ' & 0x0FF) == 0x020)
5721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5723 #else
5724 # define ISLOWER(c) \
5725 (('a' <= (c) && (c) <= 'i') \
5726 || ('j' <= (c) && (c) <= 'r') \
5727 || ('s' <= (c) && (c) <= 'z'))
5728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5729 #endif
5731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733 main ()
5735 int i;
5736 for (i = 0; i < 256; i++)
5737 if (XOR (islower (i), ISLOWER (i))
5738 || toupper (i) != TOUPPER (i))
5739 return 2;
5740 return 0;
5742 _ACEOF
5743 if ac_fn_c_try_run "$LINENO"; then :
5745 else
5746 ac_cv_header_stdc=no
5748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5749 conftest.$ac_objext conftest.beam conftest.$ac_ext
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5755 $as_echo "$ac_cv_header_stdc" >&6; }
5756 if test $ac_cv_header_stdc = yes; then
5758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5764 inttypes.h stdint.h unistd.h
5765 do :
5766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5769 eval as_val=\$$as_ac_Header
5770 if test "x$as_val" = x""yes; then :
5771 cat >>confdefs.h <<_ACEOF
5772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5773 _ACEOF
5777 done
5781 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5782 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5783 MINIX=yes
5784 else
5785 MINIX=
5789 if test "$MINIX" = yes; then
5791 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5794 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5797 $as_echo "#define _MINIX 1" >>confdefs.h
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5803 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5804 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5810 # define __EXTENSIONS__ 1
5811 $ac_includes_default
5813 main ()
5817 return 0;
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"; then :
5821 ac_cv_safe_to_define___extensions__=yes
5822 else
5823 ac_cv_safe_to_define___extensions__=no
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5828 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5829 test $ac_cv_safe_to_define___extensions__ = yes &&
5830 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5832 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5834 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5836 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5838 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5844 # The tests for host and target for $enable_largefile require
5845 # canonical names.
5849 # As the $enable_largefile decision depends on --enable-plugins we must set it
5850 # even in directories otherwise not depending on the $plugins option.
5853 # Check whether --enable-plugins was given.
5854 if test "${enable_plugins+set}" = set; then :
5855 enableval=$enable_plugins; case "${enableval}" in
5856 yes | "") plugins=yes ;;
5857 no) plugins=no ;;
5858 *) plugins=yes ;;
5859 esac
5860 else
5861 plugins=no
5866 case "${host}" in
5867 sparc-*-solaris*|i[3-7]86-*-solaris*)
5868 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5869 # are mutually exclusive; and without procfs support, the bfd/ elf module
5870 # cannot provide certain routines such as elfcore_write_prpsinfo
5871 # or elfcore_write_prstatus. So unless the user explicitly requested
5872 # large-file support through the --enable-largefile switch, disable
5873 # large-file support in favor of procfs support.
5874 test "${target}" = "${host}" -a "x$plugins" = xno \
5875 && : ${enable_largefile="no"}
5877 esac
5879 # Check whether --enable-largefile was given.
5880 if test "${enable_largefile+set}" = set; then :
5881 enableval=$enable_largefile;
5884 if test "$enable_largefile" != no; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5887 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5888 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 ac_cv_sys_largefile_CC=no
5892 if test "$GCC" != yes; then
5893 ac_save_CC=$CC
5894 while :; do
5895 # IRIX 6.2 and later do not support large files by default,
5896 # so use the C compiler's -n32 option if that helps.
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include <sys/types.h>
5900 /* Check that off_t can represent 2**63 - 1 correctly.
5901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5902 since some C++ compilers masquerading as C compilers
5903 incorrectly reject 9223372036854775807. */
5904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5906 && LARGE_OFF_T % 2147483647 == 1)
5907 ? 1 : -1];
5909 main ()
5913 return 0;
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917 break
5919 rm -f core conftest.err conftest.$ac_objext
5920 CC="$CC -n32"
5921 if ac_fn_c_try_compile "$LINENO"; then :
5922 ac_cv_sys_largefile_CC=' -n32'; break
5924 rm -f core conftest.err conftest.$ac_objext
5925 break
5926 done
5927 CC=$ac_save_CC
5928 rm -f conftest.$ac_ext
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5932 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5933 if test "$ac_cv_sys_largefile_CC" != no; then
5934 CC=$CC$ac_cv_sys_largefile_CC
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5938 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5939 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 while :; do
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include <sys/types.h>
5946 /* Check that off_t can represent 2**63 - 1 correctly.
5947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5948 since some C++ compilers masquerading as C compilers
5949 incorrectly reject 9223372036854775807. */
5950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5952 && LARGE_OFF_T % 2147483647 == 1)
5953 ? 1 : -1];
5955 main ()
5959 return 0;
5961 _ACEOF
5962 if ac_fn_c_try_compile "$LINENO"; then :
5963 ac_cv_sys_file_offset_bits=no; break
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 #define _FILE_OFFSET_BITS 64
5969 #include <sys/types.h>
5970 /* Check that off_t can represent 2**63 - 1 correctly.
5971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5972 since some C++ compilers masquerading as C compilers
5973 incorrectly reject 9223372036854775807. */
5974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5976 && LARGE_OFF_T % 2147483647 == 1)
5977 ? 1 : -1];
5979 main ()
5983 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 ac_cv_sys_file_offset_bits=64; break
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 ac_cv_sys_file_offset_bits=unknown
5991 break
5992 done
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5995 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5996 case $ac_cv_sys_file_offset_bits in #(
5997 no | unknown) ;;
5999 cat >>confdefs.h <<_ACEOF
6000 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6001 _ACEOF
6003 esac
6004 rm -rf conftest*
6005 if test $ac_cv_sys_file_offset_bits = unknown; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6007 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6008 if test "${ac_cv_sys_large_files+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 while :; do
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <sys/types.h>
6015 /* Check that off_t can represent 2**63 - 1 correctly.
6016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6017 since some C++ compilers masquerading as C compilers
6018 incorrectly reject 9223372036854775807. */
6019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6021 && LARGE_OFF_T % 2147483647 == 1)
6022 ? 1 : -1];
6024 main ()
6028 return 0;
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_sys_large_files=no; break
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #define _LARGE_FILES 1
6038 #include <sys/types.h>
6039 /* Check that off_t can represent 2**63 - 1 correctly.
6040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6041 since some C++ compilers masquerading as C compilers
6042 incorrectly reject 9223372036854775807. */
6043 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6045 && LARGE_OFF_T % 2147483647 == 1)
6046 ? 1 : -1];
6048 main ()
6052 return 0;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056 ac_cv_sys_large_files=1; break
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_cv_sys_large_files=unknown
6060 break
6061 done
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6064 $as_echo "$ac_cv_sys_large_files" >&6; }
6065 case $ac_cv_sys_large_files in #(
6066 no | unknown) ;;
6068 cat >>confdefs.h <<_ACEOF
6069 #define _LARGE_FILES $ac_cv_sys_large_files
6070 _ACEOF
6072 esac
6073 rm -rf conftest*
6080 case `pwd` in
6081 *\ * | *\ *)
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6083 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6084 esac
6088 macro_version='2.2.7a'
6089 macro_revision='1.3134'
6103 ltmain="$ac_aux_dir/ltmain.sh"
6105 # Backslashify metacharacters that are still active within
6106 # double-quoted strings.
6107 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6109 # Same as above, but do not quote variable references.
6110 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6112 # Sed substitution to delay expansion of an escaped shell variable in a
6113 # double_quote_subst'ed string.
6114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6116 # Sed substitution to delay expansion of an escaped single quote.
6117 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6119 # Sed substitution to avoid accidental globbing in evaled expressions
6120 no_glob_subst='s/\*/\\\*/g'
6122 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6123 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6127 $as_echo_n "checking how to print strings... " >&6; }
6128 # Test print first, because it will be a builtin if present.
6129 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6130 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6131 ECHO='print -r --'
6132 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6133 ECHO='printf %s\n'
6134 else
6135 # Use this function as a fallback that always works.
6136 func_fallback_echo ()
6138 eval 'cat <<_LTECHO_EOF
6140 _LTECHO_EOF'
6142 ECHO='func_fallback_echo'
6145 # func_echo_all arg...
6146 # Invoke $ECHO with all args, space-separated.
6147 func_echo_all ()
6149 $ECHO ""
6152 case "$ECHO" in
6153 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6154 $as_echo "printf" >&6; } ;;
6155 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6156 $as_echo "print -r" >&6; } ;;
6157 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6158 $as_echo "cat" >&6; } ;;
6159 esac
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6175 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6176 if test "${ac_cv_path_SED+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6180 for ac_i in 1 2 3 4 5 6 7; do
6181 ac_script="$ac_script$as_nl$ac_script"
6182 done
6183 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6184 { ac_script=; unset ac_script;}
6185 if test -z "$SED"; then
6186 ac_path_SED_found=false
6187 # Loop through the user's path and test for each of PROGNAME-LIST
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_prog in sed gsed; do
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6196 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6197 # Check for GNU ac_path_SED and select it if it is found.
6198 # Check for GNU $ac_path_SED
6199 case `"$ac_path_SED" --version 2>&1` in
6200 *GNU*)
6201 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6203 ac_count=0
6204 $as_echo_n 0123456789 >"conftest.in"
6205 while :
6207 cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 mv "conftest.tmp" "conftest.in"
6209 cp "conftest.in" "conftest.nl"
6210 $as_echo '' >> "conftest.nl"
6211 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 if test $ac_count -gt ${ac_path_SED_max-0}; then
6215 # Best one so far, save it but keep looking for a better one
6216 ac_cv_path_SED="$ac_path_SED"
6217 ac_path_SED_max=$ac_count
6219 # 10*(2^10) chars as input seems more than enough
6220 test $ac_count -gt 10 && break
6221 done
6222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223 esac
6225 $ac_path_SED_found && break 3
6226 done
6227 done
6228 done
6229 IFS=$as_save_IFS
6230 if test -z "$ac_cv_path_SED"; then
6231 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6233 else
6234 ac_cv_path_SED=$SED
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6239 $as_echo "$ac_cv_path_SED" >&6; }
6240 SED="$ac_cv_path_SED"
6241 rm -f conftest.sed
6243 test -z "$SED" && SED=sed
6244 Xsed="$SED -e 1s/^X//"
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6257 $as_echo_n "checking for fgrep... " >&6; }
6258 if test "${ac_cv_path_FGREP+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6262 then ac_cv_path_FGREP="$GREP -F"
6263 else
6264 if test -z "$FGREP"; then
6265 ac_path_FGREP_found=false
6266 # Loop through the user's path and test for each of PROGNAME-LIST
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_prog in fgrep; do
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6275 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6276 # Check for GNU ac_path_FGREP and select it if it is found.
6277 # Check for GNU $ac_path_FGREP
6278 case `"$ac_path_FGREP" --version 2>&1` in
6279 *GNU*)
6280 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6282 ac_count=0
6283 $as_echo_n 0123456789 >"conftest.in"
6284 while :
6286 cat "conftest.in" "conftest.in" >"conftest.tmp"
6287 mv "conftest.tmp" "conftest.in"
6288 cp "conftest.in" "conftest.nl"
6289 $as_echo 'FGREP' >> "conftest.nl"
6290 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6292 as_fn_arith $ac_count + 1 && ac_count=$as_val
6293 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6294 # Best one so far, save it but keep looking for a better one
6295 ac_cv_path_FGREP="$ac_path_FGREP"
6296 ac_path_FGREP_max=$ac_count
6298 # 10*(2^10) chars as input seems more than enough
6299 test $ac_count -gt 10 && break
6300 done
6301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6302 esac
6304 $ac_path_FGREP_found && break 3
6305 done
6306 done
6307 done
6308 IFS=$as_save_IFS
6309 if test -z "$ac_cv_path_FGREP"; then
6310 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6312 else
6313 ac_cv_path_FGREP=$FGREP
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6319 $as_echo "$ac_cv_path_FGREP" >&6; }
6320 FGREP="$ac_cv_path_FGREP"
6323 test -z "$GREP" && GREP=grep
6343 # Check whether --with-gnu-ld was given.
6344 if test "${with_gnu_ld+set}" = set; then :
6345 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6346 else
6347 with_gnu_ld=no
6350 ac_prog=ld
6351 if test "$GCC" = yes; then
6352 # Check if gcc -print-prog-name=ld gives a path.
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6354 $as_echo_n "checking for ld used by $CC... " >&6; }
6355 case $host in
6356 *-*-mingw*)
6357 # gcc leaves a trailing carriage return which upsets mingw
6358 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6360 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6361 esac
6362 case $ac_prog in
6363 # Accept absolute paths.
6364 [\\/]* | ?:[\\/]*)
6365 re_direlt='/[^/][^/]*/\.\./'
6366 # Canonicalize the pathname of ld
6367 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6368 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6369 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6370 done
6371 test -z "$LD" && LD="$ac_prog"
6374 # If it fails, then pretend we aren't using GCC.
6375 ac_prog=ld
6378 # If it is relative, then search for the first ld in PATH.
6379 with_gnu_ld=unknown
6381 esac
6382 elif test "$with_gnu_ld" = yes; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6384 $as_echo_n "checking for GNU ld... " >&6; }
6385 else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6387 $as_echo_n "checking for non-GNU ld... " >&6; }
6389 if test "${lt_cv_path_LD+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -z "$LD"; then
6393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6394 for ac_dir in $PATH; do
6395 IFS="$lt_save_ifs"
6396 test -z "$ac_dir" && ac_dir=.
6397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6398 lt_cv_path_LD="$ac_dir/$ac_prog"
6399 # Check to see if the program is GNU ld. I'd rather use --version,
6400 # but apparently some variants of GNU ld only accept -v.
6401 # Break only if it was the GNU/non-GNU ld that we prefer.
6402 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6403 *GNU* | *'with BFD'*)
6404 test "$with_gnu_ld" != no && break
6407 test "$with_gnu_ld" != yes && break
6409 esac
6411 done
6412 IFS="$lt_save_ifs"
6413 else
6414 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6418 LD="$lt_cv_path_LD"
6419 if test -n "$LD"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6421 $as_echo "$LD" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6426 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6428 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6429 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6433 case `$LD -v 2>&1 </dev/null` in
6434 *GNU* | *'with BFD'*)
6435 lt_cv_prog_gnu_ld=yes
6438 lt_cv_prog_gnu_ld=no
6440 esac
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6443 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6444 with_gnu_ld=$lt_cv_prog_gnu_ld
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6455 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6456 if test "${lt_cv_path_NM+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$NM"; then
6460 # Let the user override the test.
6461 lt_cv_path_NM="$NM"
6462 else
6463 lt_nm_to_check="${ac_tool_prefix}nm"
6464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6465 lt_nm_to_check="$lt_nm_to_check nm"
6467 for lt_tmp_nm in $lt_nm_to_check; do
6468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6470 IFS="$lt_save_ifs"
6471 test -z "$ac_dir" && ac_dir=.
6472 tmp_nm="$ac_dir/$lt_tmp_nm"
6473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6474 # Check to see if the nm accepts a BSD-compat flag.
6475 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6476 # nm: unknown option "B" ignored
6477 # Tru64's nm complains that /dev/null is an invalid object file
6478 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6479 */dev/null* | *'Invalid file or object type'*)
6480 lt_cv_path_NM="$tmp_nm -B"
6481 break
6484 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6485 */dev/null*)
6486 lt_cv_path_NM="$tmp_nm -p"
6487 break
6490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6491 continue # so that we can try to find one that supports BSD flags
6493 esac
6495 esac
6497 done
6498 IFS="$lt_save_ifs"
6499 done
6500 : ${lt_cv_path_NM=no}
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6504 $as_echo "$lt_cv_path_NM" >&6; }
6505 if test "$lt_cv_path_NM" != "no"; then
6506 NM="$lt_cv_path_NM"
6507 else
6508 # Didn't find any BSD compatible name lister, look for dumpbin.
6509 if test -n "$DUMPBIN"; then :
6510 # Let the user override the test.
6511 else
6512 if test -n "$ac_tool_prefix"; then
6513 for ac_prog in dumpbin "link -dump"
6515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 if test -n "$DUMPBIN"; then
6523 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6536 done
6537 done
6538 IFS=$as_save_IFS
6542 DUMPBIN=$ac_cv_prog_DUMPBIN
6543 if test -n "$DUMPBIN"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6545 $as_echo "$DUMPBIN" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6552 test -n "$DUMPBIN" && break
6553 done
6555 if test -z "$DUMPBIN"; then
6556 ac_ct_DUMPBIN=$DUMPBIN
6557 for ac_prog in dumpbin "link -dump"
6559 # Extract the first word of "$ac_prog", so it can be a program name with args.
6560 set dummy $ac_prog; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$ac_ct_DUMPBIN"; then
6567 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6580 done
6581 done
6582 IFS=$as_save_IFS
6586 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6587 if test -n "$ac_ct_DUMPBIN"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6589 $as_echo "$ac_ct_DUMPBIN" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6596 test -n "$ac_ct_DUMPBIN" && break
6597 done
6599 if test "x$ac_ct_DUMPBIN" = x; then
6600 DUMPBIN=":"
6601 else
6602 case $cross_compiling:$ac_tool_warned in
6603 yes:)
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606 ac_tool_warned=yes ;;
6607 esac
6608 DUMPBIN=$ac_ct_DUMPBIN
6612 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6613 *COFF*)
6614 DUMPBIN="$DUMPBIN -symbols"
6617 DUMPBIN=:
6619 esac
6622 if test "$DUMPBIN" != ":"; then
6623 NM="$DUMPBIN"
6626 test -z "$NM" && NM=nm
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6634 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6635 if test "${lt_cv_nm_interface+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 lt_cv_nm_interface="BSD nm"
6639 echo "int some_variable = 0;" > conftest.$ac_ext
6640 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6641 (eval "$ac_compile" 2>conftest.err)
6642 cat conftest.err >&5
6643 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6644 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6645 cat conftest.err >&5
6646 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6647 cat conftest.out >&5
6648 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6649 lt_cv_nm_interface="MS dumpbin"
6651 rm -f conftest*
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6654 $as_echo "$lt_cv_nm_interface" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6657 $as_echo_n "checking whether ln -s works... " >&6; }
6658 LN_S=$as_ln_s
6659 if test "$LN_S" = "ln -s"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661 $as_echo "yes" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6664 $as_echo "no, using $LN_S" >&6; }
6667 # find the maximum length of command line arguments
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6669 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6670 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6674 teststring="ABCD"
6676 case $build_os in
6677 msdosdjgpp*)
6678 # On DJGPP, this test can blow up pretty badly due to problems in libc
6679 # (any single argument exceeding 2000 bytes causes a buffer overrun
6680 # during glob expansion). Even if it were fixed, the result of this
6681 # check would be larger than it should be.
6682 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6685 gnu*)
6686 # Under GNU Hurd, this test is not required because there is
6687 # no limit to the length of command line arguments.
6688 # Libtool will interpret -1 as no limit whatsoever
6689 lt_cv_sys_max_cmd_len=-1;
6692 cygwin* | mingw* | cegcc*)
6693 # On Win9x/ME, this test blows up -- it succeeds, but takes
6694 # about 5 minutes as the teststring grows exponentially.
6695 # Worse, since 9x/ME are not pre-emptively multitasking,
6696 # you end up with a "frozen" computer, even though with patience
6697 # the test eventually succeeds (with a max line length of 256k).
6698 # Instead, let's just punt: use the minimum linelength reported by
6699 # all of the supported platforms: 8192 (on NT/2K/XP).
6700 lt_cv_sys_max_cmd_len=8192;
6703 mint*)
6704 # On MiNT this can take a long time and run out of memory.
6705 lt_cv_sys_max_cmd_len=8192;
6708 amigaos*)
6709 # On AmigaOS with pdksh, this test takes hours, literally.
6710 # So we just punt and use a minimum line length of 8192.
6711 lt_cv_sys_max_cmd_len=8192;
6714 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6715 # This has been around since 386BSD, at least. Likely further.
6716 if test -x /sbin/sysctl; then
6717 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6718 elif test -x /usr/sbin/sysctl; then
6719 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6720 else
6721 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6723 # And add a safety zone
6724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6728 interix*)
6729 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6730 lt_cv_sys_max_cmd_len=196608
6733 osf*)
6734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6736 # nice to cause kernel panics so lets avoid the loop below.
6737 # First set a reasonable default.
6738 lt_cv_sys_max_cmd_len=16384
6740 if test -x /sbin/sysconfig; then
6741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6742 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6743 esac
6746 sco3.2v5*)
6747 lt_cv_sys_max_cmd_len=102400
6749 sysv5* | sco5v6* | sysv4.2uw2*)
6750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6751 if test -n "$kargmax"; then
6752 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6753 else
6754 lt_cv_sys_max_cmd_len=32768
6758 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6759 if test -n "$lt_cv_sys_max_cmd_len"; then
6760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6762 else
6763 # Make teststring a little bigger before we do anything with it.
6764 # a 1K string should be a reasonable start.
6765 for i in 1 2 3 4 5 6 7 8 ; do
6766 teststring=$teststring$teststring
6767 done
6768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6769 # If test is not a shell built-in, we'll probably end up computing a
6770 # maximum length that is only half of the actual maximum length, but
6771 # we can't tell.
6772 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6773 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6774 test $i != 17 # 1/2 MB should be enough
6776 i=`expr $i + 1`
6777 teststring=$teststring$teststring
6778 done
6779 # Only check the string length outside the loop.
6780 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6781 teststring=
6782 # Add a significant safety factor because C++ compilers can tack on
6783 # massive amounts of additional arguments before passing them to the
6784 # linker. It appears as though 1/2 is a usable value.
6785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6788 esac
6792 if test -n $lt_cv_sys_max_cmd_len ; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6794 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6797 $as_echo "none" >&6; }
6799 max_cmd_len=$lt_cv_sys_max_cmd_len
6806 : ${CP="cp -f"}
6807 : ${MV="mv -f"}
6808 : ${RM="rm -f"}
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6811 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6812 # Try some XSI features
6813 xsi_shell=no
6814 ( _lt_dummy="a/b/c"
6815 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6816 = c,a/b,, \
6817 && eval 'test $(( 1 + 1 )) -eq 2 \
6818 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6819 && xsi_shell=yes
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6821 $as_echo "$xsi_shell" >&6; }
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6825 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6826 lt_shell_append=no
6827 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6828 >/dev/null 2>&1 \
6829 && lt_shell_append=yes
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6831 $as_echo "$lt_shell_append" >&6; }
6834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6835 lt_unset=unset
6836 else
6837 lt_unset=false
6844 # test EBCDIC or ASCII
6845 case `echo X|tr X '\101'` in
6846 A) # ASCII based system
6847 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6848 lt_SP2NL='tr \040 \012'
6849 lt_NL2SP='tr \015\012 \040\040'
6851 *) # EBCDIC based system
6852 lt_SP2NL='tr \100 \n'
6853 lt_NL2SP='tr \r\n \100\100'
6855 esac
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6866 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6867 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 lt_cv_ld_reload_flag='-r'
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6873 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6874 reload_flag=$lt_cv_ld_reload_flag
6875 case $reload_flag in
6876 "" | " "*) ;;
6877 *) reload_flag=" $reload_flag" ;;
6878 esac
6879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6880 case $host_os in
6881 darwin*)
6882 if test "$GCC" = yes; then
6883 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6884 else
6885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6888 esac
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$OBJDUMP"; then
6907 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6920 done
6921 done
6922 IFS=$as_save_IFS
6926 OBJDUMP=$ac_cv_prog_OBJDUMP
6927 if test -n "$OBJDUMP"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6929 $as_echo "$OBJDUMP" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6937 if test -z "$ac_cv_prog_OBJDUMP"; then
6938 ac_ct_OBJDUMP=$OBJDUMP
6939 # Extract the first word of "objdump", so it can be a program name with args.
6940 set dummy objdump; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$ac_ct_OBJDUMP"; then
6947 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6967 if test -n "$ac_ct_OBJDUMP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6969 $as_echo "$ac_ct_OBJDUMP" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6975 if test "x$ac_ct_OBJDUMP" = x; then
6976 OBJDUMP="false"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 OBJDUMP=$ac_ct_OBJDUMP
6986 else
6987 OBJDUMP="$ac_cv_prog_OBJDUMP"
6990 test -z "$OBJDUMP" && OBJDUMP=objdump
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7001 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7002 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 lt_cv_file_magic_cmd='$MAGIC_CMD'
7006 lt_cv_file_magic_test_file=
7007 lt_cv_deplibs_check_method='unknown'
7008 # Need to set the preceding variable on all platforms that support
7009 # interlibrary dependencies.
7010 # 'none' -- dependencies not supported.
7011 # `unknown' -- same as none, but documents that we really don't know.
7012 # 'pass_all' -- all dependencies passed with no checks.
7013 # 'test_compile' -- check by making test program.
7014 # 'file_magic [[regex]]' -- check by looking for files in library path
7015 # which responds to the $file_magic_cmd with a given extended regex.
7016 # If you have `file' or equivalent on your system and you're not sure
7017 # whether `pass_all' will *always* work, you probably want this one.
7019 case $host_os in
7020 aix[4-9]*)
7021 lt_cv_deplibs_check_method=pass_all
7024 beos*)
7025 lt_cv_deplibs_check_method=pass_all
7028 bsdi[45]*)
7029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7030 lt_cv_file_magic_cmd='/usr/bin/file -L'
7031 lt_cv_file_magic_test_file=/shlib/libc.so
7034 cygwin*)
7035 # func_win32_libid is a shell function defined in ltmain.sh
7036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7037 lt_cv_file_magic_cmd='func_win32_libid'
7040 mingw* | pw32*)
7041 # Base MSYS/MinGW do not provide the 'file' command needed by
7042 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7043 # unless we find 'file', for example because we are cross-compiling.
7044 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7045 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7047 lt_cv_file_magic_cmd='func_win32_libid'
7048 else
7049 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7050 lt_cv_file_magic_cmd='$OBJDUMP -f'
7054 cegcc*)
7055 # use the weaker test based on 'objdump'. See mingw*.
7056 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7057 lt_cv_file_magic_cmd='$OBJDUMP -f'
7060 darwin* | rhapsody*)
7061 lt_cv_deplibs_check_method=pass_all
7064 freebsd* | dragonfly*)
7065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7066 case $host_cpu in
7067 i*86 )
7068 # Not sure whether the presence of OpenBSD here was a mistake.
7069 # Let's accept both of them until this is cleared up.
7070 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7071 lt_cv_file_magic_cmd=/usr/bin/file
7072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7074 esac
7075 else
7076 lt_cv_deplibs_check_method=pass_all
7080 gnu*)
7081 lt_cv_deplibs_check_method=pass_all
7084 haiku*)
7085 lt_cv_deplibs_check_method=pass_all
7088 hpux10.20* | hpux11*)
7089 lt_cv_file_magic_cmd=/usr/bin/file
7090 case $host_cpu in
7091 ia64*)
7092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7093 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7095 hppa*64*)
7096 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]'
7097 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7101 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7103 esac
7106 interix[3-9]*)
7107 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7111 irix5* | irix6* | nonstopux*)
7112 case $LD in
7113 *-32|*"-32 ") libmagic=32-bit;;
7114 *-n32|*"-n32 ") libmagic=N32;;
7115 *-64|*"-64 ") libmagic=64-bit;;
7116 *) libmagic=never-match;;
7117 esac
7118 lt_cv_deplibs_check_method=pass_all
7121 # This must be Linux ELF.
7122 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7123 lt_cv_deplibs_check_method=pass_all
7126 netbsd*)
7127 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7129 else
7130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7134 newos6*)
7135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7136 lt_cv_file_magic_cmd=/usr/bin/file
7137 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7140 *nto* | *qnx*)
7141 lt_cv_deplibs_check_method=pass_all
7144 openbsd*)
7145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7147 else
7148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7152 osf3* | osf4* | osf5*)
7153 lt_cv_deplibs_check_method=pass_all
7156 rdos*)
7157 lt_cv_deplibs_check_method=pass_all
7160 solaris*)
7161 lt_cv_deplibs_check_method=pass_all
7164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7165 lt_cv_deplibs_check_method=pass_all
7168 sysv4 | sysv4.3*)
7169 case $host_vendor in
7170 motorola)
7171 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]'
7172 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7174 ncr)
7175 lt_cv_deplibs_check_method=pass_all
7177 sequent)
7178 lt_cv_file_magic_cmd='/bin/file'
7179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7181 sni)
7182 lt_cv_file_magic_cmd='/bin/file'
7183 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7184 lt_cv_file_magic_test_file=/lib/libc.so
7186 siemens)
7187 lt_cv_deplibs_check_method=pass_all
7190 lt_cv_deplibs_check_method=pass_all
7192 esac
7195 tpf*)
7196 lt_cv_deplibs_check_method=pass_all
7198 esac
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7202 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7203 file_magic_cmd=$lt_cv_file_magic_cmd
7204 deplibs_check_method=$lt_cv_deplibs_check_method
7205 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}ar; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_prog_AR+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$AR"; then
7227 ac_cv_prog_AR="$AR" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_prog_AR="${ac_tool_prefix}ar"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7240 done
7241 done
7242 IFS=$as_save_IFS
7246 AR=$ac_cv_prog_AR
7247 if test -n "$AR"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7249 $as_echo "$AR" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7257 if test -z "$ac_cv_prog_AR"; then
7258 ac_ct_AR=$AR
7259 # Extract the first word of "ar", so it can be a program name with args.
7260 set dummy ar; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$ac_ct_AR"; then
7267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_prog_ac_ct_AR="ar"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7280 done
7281 done
7282 IFS=$as_save_IFS
7286 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7287 if test -n "$ac_ct_AR"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7289 $as_echo "$ac_ct_AR" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7295 if test "x$ac_ct_AR" = x; then
7296 AR="false"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304 AR=$ac_ct_AR
7306 else
7307 AR="$ac_cv_prog_AR"
7310 test -z "$AR" && AR=ar
7311 test -z "$AR_FLAGS" && AR_FLAGS=cru
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}strip; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_STRIP+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$STRIP"; then
7332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7345 done
7346 done
7347 IFS=$as_save_IFS
7351 STRIP=$ac_cv_prog_STRIP
7352 if test -n "$STRIP"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7354 $as_echo "$STRIP" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_STRIP"; then
7363 ac_ct_STRIP=$STRIP
7364 # Extract the first word of "strip", so it can be a program name with args.
7365 set dummy strip; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$ac_ct_STRIP"; then
7372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_ac_ct_STRIP="strip"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7385 done
7386 done
7387 IFS=$as_save_IFS
7391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7392 if test -n "$ac_ct_STRIP"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7394 $as_echo "$ac_ct_STRIP" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_STRIP" = x; then
7401 STRIP=":"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 STRIP=$ac_ct_STRIP
7411 else
7412 STRIP="$ac_cv_prog_STRIP"
7415 test -z "$STRIP" && STRIP=:
7422 if test -n "$ac_tool_prefix"; then
7423 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 if test -n "$RANLIB"; then
7431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7446 IFS=$as_save_IFS
7450 RANLIB=$ac_cv_prog_RANLIB
7451 if test -n "$RANLIB"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7453 $as_echo "$RANLIB" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7461 if test -z "$ac_cv_prog_RANLIB"; then
7462 ac_ct_RANLIB=$RANLIB
7463 # Extract the first word of "ranlib", so it can be a program name with args.
7464 set dummy ranlib; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$ac_ct_RANLIB"; then
7471 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_ac_ct_RANLIB="ranlib"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7484 done
7485 done
7486 IFS=$as_save_IFS
7490 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7491 if test -n "$ac_ct_RANLIB"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7493 $as_echo "$ac_ct_RANLIB" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7499 if test "x$ac_ct_RANLIB" = x; then
7500 RANLIB=":"
7501 else
7502 case $cross_compiling:$ac_tool_warned in
7503 yes:)
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506 ac_tool_warned=yes ;;
7507 esac
7508 RANLIB=$ac_ct_RANLIB
7510 else
7511 RANLIB="$ac_cv_prog_RANLIB"
7514 test -z "$RANLIB" && RANLIB=:
7521 # Determine commands to create old-style static archives.
7522 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7523 old_postinstall_cmds='chmod 644 $oldlib'
7524 old_postuninstall_cmds=
7526 if test -n "$RANLIB"; then
7527 case $host_os in
7528 openbsd*)
7529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7532 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7534 esac
7535 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7538 case $host_os in
7539 darwin*)
7540 lock_old_archive_extraction=yes ;;
7542 lock_old_archive_extraction=no ;;
7543 esac
7583 # If no C compiler was specified, use CC.
7584 LTCC=${LTCC-"$CC"}
7586 # If no C compiler flags were specified, use CFLAGS.
7587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7589 # Allow CC to be a program name with arguments.
7590 compiler=$CC
7593 # Check for command to grab the raw symbol name followed by C symbol from nm.
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7595 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7596 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7600 # These are sane defaults that work on at least a few old systems.
7601 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7603 # Character class describing NM global symbol codes.
7604 symcode='[BCDEGRST]'
7606 # Regexp to match symbols that can be accessed directly from C.
7607 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7609 # Define system-specific variables.
7610 case $host_os in
7611 aix*)
7612 symcode='[BCDT]'
7614 cygwin* | mingw* | pw32* | cegcc*)
7615 symcode='[ABCDGISTW]'
7617 hpux*)
7618 if test "$host_cpu" = ia64; then
7619 symcode='[ABCDEGRST]'
7622 irix* | nonstopux*)
7623 symcode='[BCDEGRST]'
7625 osf*)
7626 symcode='[BCDEGQRST]'
7628 solaris*)
7629 symcode='[BDRT]'
7631 sco3.2v5*)
7632 symcode='[DT]'
7634 sysv4.2uw2*)
7635 symcode='[DT]'
7637 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7638 symcode='[ABDT]'
7640 sysv4)
7641 symcode='[DFNSTU]'
7643 esac
7645 # If we're using GNU nm, then use its standard symbol codes.
7646 case `$NM -V 2>&1` in
7647 *GNU* | *'with BFD'*)
7648 symcode='[ABCDGIRSTW]' ;;
7649 esac
7651 # Transform an extracted symbol line into a proper C declaration.
7652 # Some systems (esp. on ia64) link data and code symbols differently,
7653 # so use this general approach.
7654 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7656 # Transform an extracted symbol line into symbol name and symbol address
7657 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7658 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'"
7660 # Handle CRLF in mingw tool chain
7661 opt_cr=
7662 case $build_os in
7663 mingw*)
7664 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7666 esac
7668 # Try without a prefix underscore, then with it.
7669 for ac_symprfx in "" "_"; do
7671 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7672 symxfrm="\\1 $ac_symprfx\\2 \\2"
7674 # Write the raw and C identifiers.
7675 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7676 # Fake it for dumpbin and say T for any non-static function
7677 # and D for any global variable.
7678 # Also find C++ and __fastcall symbols from MSVC++,
7679 # which start with @ or ?.
7680 lt_cv_sys_global_symbol_pipe="$AWK '"\
7681 " {last_section=section; section=\$ 3};"\
7682 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7683 " \$ 0!~/External *\|/{next};"\
7684 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7685 " {if(hide[section]) next};"\
7686 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7687 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7688 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7689 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7690 " ' prfx=^$ac_symprfx"
7691 else
7692 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7695 # Check to see that the pipe works correctly.
7696 pipe_works=no
7698 rm -f conftest*
7699 cat > conftest.$ac_ext <<_LT_EOF
7700 #ifdef __cplusplus
7701 extern "C" {
7702 #endif
7703 char nm_test_var;
7704 void nm_test_func(void);
7705 void nm_test_func(void){}
7706 #ifdef __cplusplus
7708 #endif
7709 int main(){nm_test_var='a';nm_test_func();return(0);}
7710 _LT_EOF
7712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7713 (eval $ac_compile) 2>&5
7714 ac_status=$?
7715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 test $ac_status = 0; }; then
7717 # Now try to grab the symbols.
7718 nlist=conftest.nm
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7720 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; } && test -s "$nlist"; then
7724 # Try sorting and uniquifying the output.
7725 if sort "$nlist" | uniq > "$nlist"T; then
7726 mv -f "$nlist"T "$nlist"
7727 else
7728 rm -f "$nlist"T
7731 # Make sure that we snagged all the symbols we need.
7732 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7733 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7734 cat <<_LT_EOF > conftest.$ac_ext
7735 #ifdef __cplusplus
7736 extern "C" {
7737 #endif
7739 _LT_EOF
7740 # Now generate the symbol file.
7741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7743 cat <<_LT_EOF >> conftest.$ac_ext
7745 /* The mapping between symbol names and symbols. */
7746 const struct {
7747 const char *name;
7748 void *address;
7750 lt__PROGRAM__LTX_preloaded_symbols[] =
7752 { "@PROGRAM@", (void *) 0 },
7753 _LT_EOF
7754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7755 cat <<\_LT_EOF >> conftest.$ac_ext
7756 {0, (void *) 0}
7759 /* This works around a problem in FreeBSD linker */
7760 #ifdef FREEBSD_WORKAROUND
7761 static const void *lt_preloaded_setup() {
7762 return lt__PROGRAM__LTX_preloaded_symbols;
7764 #endif
7766 #ifdef __cplusplus
7768 #endif
7769 _LT_EOF
7770 # Now try linking the two files.
7771 mv conftest.$ac_objext conftstm.$ac_objext
7772 lt_save_LIBS="$LIBS"
7773 lt_save_CFLAGS="$CFLAGS"
7774 LIBS="conftstm.$ac_objext"
7775 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7781 pipe_works=yes
7783 LIBS="$lt_save_LIBS"
7784 CFLAGS="$lt_save_CFLAGS"
7785 else
7786 echo "cannot find nm_test_func in $nlist" >&5
7788 else
7789 echo "cannot find nm_test_var in $nlist" >&5
7791 else
7792 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7794 else
7795 echo "$progname: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7798 rm -rf conftest* conftst*
7800 # Do not use the global_symbol_pipe unless it works.
7801 if test "$pipe_works" = yes; then
7802 break
7803 else
7804 lt_cv_sys_global_symbol_pipe=
7806 done
7810 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7811 lt_cv_sys_global_symbol_to_cdecl=
7813 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7815 $as_echo "failed" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7818 $as_echo "ok" >&6; }
7842 # Check whether --enable-libtool-lock was given.
7843 if test "${enable_libtool_lock+set}" = set; then :
7844 enableval=$enable_libtool_lock;
7847 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7849 # Some flags need to be propagated to the compiler or linker for good
7850 # libtool support.
7851 case $host in
7852 ia64-*-hpux*)
7853 # Find out which ABI we are using.
7854 echo 'int i;' > conftest.$ac_ext
7855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7856 (eval $ac_compile) 2>&5
7857 ac_status=$?
7858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7859 test $ac_status = 0; }; then
7860 case `/usr/bin/file conftest.$ac_objext` in
7861 *ELF-32*)
7862 HPUX_IA64_MODE="32"
7864 *ELF-64*)
7865 HPUX_IA64_MODE="64"
7867 esac
7869 rm -rf conftest*
7871 *-*-irix6*)
7872 # Find out which ABI we are using.
7873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7875 (eval $ac_compile) 2>&5
7876 ac_status=$?
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; }; then
7879 if test "$lt_cv_prog_gnu_ld" = yes; then
7880 case `/usr/bin/file conftest.$ac_objext` in
7881 *32-bit*)
7882 LD="${LD-ld} -melf32bsmip"
7884 *N32*)
7885 LD="${LD-ld} -melf32bmipn32"
7887 *64-bit*)
7888 LD="${LD-ld} -melf64bmip"
7890 esac
7891 else
7892 case `/usr/bin/file conftest.$ac_objext` in
7893 *32-bit*)
7894 LD="${LD-ld} -32"
7896 *N32*)
7897 LD="${LD-ld} -n32"
7899 *64-bit*)
7900 LD="${LD-ld} -64"
7902 esac
7905 rm -rf conftest*
7908 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7909 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7910 # Find out which ABI we are using.
7911 echo 'int i;' > conftest.$ac_ext
7912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7913 (eval $ac_compile) 2>&5
7914 ac_status=$?
7915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7916 test $ac_status = 0; }; then
7917 case `/usr/bin/file conftest.o` in
7918 *32-bit*)
7919 case $host in
7920 x86_64-*kfreebsd*-gnu)
7921 LD="${LD-ld} -m elf_i386_fbsd"
7923 x86_64-*linux*)
7924 LD="${LD-ld} -m elf_i386"
7926 ppc64-*linux*|powerpc64-*linux*)
7927 LD="${LD-ld} -m elf32ppclinux"
7929 s390x-*linux*)
7930 LD="${LD-ld} -m elf_s390"
7932 sparc64-*linux*)
7933 LD="${LD-ld} -m elf32_sparc"
7935 esac
7937 *64-bit*)
7938 case $host in
7939 x86_64-*kfreebsd*-gnu)
7940 LD="${LD-ld} -m elf_x86_64_fbsd"
7942 x86_64-*linux*)
7943 LD="${LD-ld} -m elf_x86_64"
7945 ppc*-*linux*|powerpc*-*linux*)
7946 LD="${LD-ld} -m elf64ppc"
7948 s390*-*linux*|s390*-*tpf*)
7949 LD="${LD-ld} -m elf64_s390"
7951 sparc*-*linux*)
7952 LD="${LD-ld} -m elf64_sparc"
7954 esac
7956 esac
7958 rm -rf conftest*
7961 *-*-sco3.2v5*)
7962 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7963 SAVE_CFLAGS="$CFLAGS"
7964 CFLAGS="$CFLAGS -belf"
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7966 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7967 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 ac_ext=c
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7980 main ()
7984 return 0;
7986 _ACEOF
7987 if ac_fn_c_try_link "$LINENO"; then :
7988 lt_cv_cc_needs_belf=yes
7989 else
7990 lt_cv_cc_needs_belf=no
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 ac_ext=c
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8002 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8003 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8004 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8005 CFLAGS="$SAVE_CFLAGS"
8008 sparc*-*solaris*)
8009 # Find out which ABI we are using.
8010 echo 'int i;' > conftest.$ac_ext
8011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8012 (eval $ac_compile) 2>&5
8013 ac_status=$?
8014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; }; then
8016 case `/usr/bin/file conftest.o` in
8017 *64-bit*)
8018 case $lt_cv_prog_gnu_ld in
8019 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8021 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8022 LD="${LD-ld} -64"
8025 esac
8027 esac
8029 rm -rf conftest*
8031 esac
8033 need_locks="$enable_libtool_lock"
8036 case $host_os in
8037 rhapsody* | darwin*)
8038 if test -n "$ac_tool_prefix"; then
8039 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8040 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 if test -n "$DSYMUTIL"; then
8047 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8060 done
8061 done
8062 IFS=$as_save_IFS
8066 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8067 if test -n "$DSYMUTIL"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8069 $as_echo "$DSYMUTIL" >&6; }
8070 else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8077 if test -z "$ac_cv_prog_DSYMUTIL"; then
8078 ac_ct_DSYMUTIL=$DSYMUTIL
8079 # Extract the first word of "dsymutil", so it can be a program name with args.
8080 set dummy dsymutil; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$ac_ct_DSYMUTIL"; then
8087 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8102 IFS=$as_save_IFS
8106 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8107 if test -n "$ac_ct_DSYMUTIL"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8109 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8115 if test "x$ac_ct_DSYMUTIL" = x; then
8116 DSYMUTIL=":"
8117 else
8118 case $cross_compiling:$ac_tool_warned in
8119 yes:)
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124 DSYMUTIL=$ac_ct_DSYMUTIL
8126 else
8127 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$NMEDIT"; then
8139 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8152 done
8153 done
8154 IFS=$as_save_IFS
8158 NMEDIT=$ac_cv_prog_NMEDIT
8159 if test -n "$NMEDIT"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8161 $as_echo "$NMEDIT" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8169 if test -z "$ac_cv_prog_NMEDIT"; then
8170 ac_ct_NMEDIT=$NMEDIT
8171 # Extract the first word of "nmedit", so it can be a program name with args.
8172 set dummy nmedit; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$ac_ct_NMEDIT"; then
8179 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8198 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8199 if test -n "$ac_ct_NMEDIT"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8201 $as_echo "$ac_ct_NMEDIT" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8207 if test "x$ac_ct_NMEDIT" = x; then
8208 NMEDIT=":"
8209 else
8210 case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8215 esac
8216 NMEDIT=$ac_ct_NMEDIT
8218 else
8219 NMEDIT="$ac_cv_prog_NMEDIT"
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_prog_LIPO+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 if test -n "$LIPO"; then
8231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8244 done
8245 done
8246 IFS=$as_save_IFS
8250 LIPO=$ac_cv_prog_LIPO
8251 if test -n "$LIPO"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8253 $as_echo "$LIPO" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8261 if test -z "$ac_cv_prog_LIPO"; then
8262 ac_ct_LIPO=$LIPO
8263 # Extract the first word of "lipo", so it can be a program name with args.
8264 set dummy lipo; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$ac_ct_LIPO"; then
8271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_ac_ct_LIPO="lipo"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8284 done
8285 done
8286 IFS=$as_save_IFS
8290 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8291 if test -n "$ac_ct_LIPO"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8293 $as_echo "$ac_ct_LIPO" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8299 if test "x$ac_ct_LIPO" = x; then
8300 LIPO=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 LIPO=$ac_ct_LIPO
8310 else
8311 LIPO="$ac_cv_prog_LIPO"
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}otool; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$OTOOL"; then
8323 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8336 done
8337 done
8338 IFS=$as_save_IFS
8342 OTOOL=$ac_cv_prog_OTOOL
8343 if test -n "$OTOOL"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8345 $as_echo "$OTOOL" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 if test -z "$ac_cv_prog_OTOOL"; then
8354 ac_ct_OTOOL=$OTOOL
8355 # Extract the first word of "otool", so it can be a program name with args.
8356 set dummy otool; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$ac_ct_OTOOL"; then
8363 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ac_ct_OTOOL="otool"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8382 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8383 if test -n "$ac_ct_OTOOL"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8385 $as_echo "$ac_ct_OTOOL" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8391 if test "x$ac_ct_OTOOL" = x; then
8392 OTOOL=":"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400 OTOOL=$ac_ct_OTOOL
8402 else
8403 OTOOL="$ac_cv_prog_OTOOL"
8406 if test -n "$ac_tool_prefix"; then
8407 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8408 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 if test -n "$OTOOL64"; then
8415 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8428 done
8429 done
8430 IFS=$as_save_IFS
8434 OTOOL64=$ac_cv_prog_OTOOL64
8435 if test -n "$OTOOL64"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8437 $as_echo "$OTOOL64" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8445 if test -z "$ac_cv_prog_OTOOL64"; then
8446 ac_ct_OTOOL64=$OTOOL64
8447 # Extract the first word of "otool64", so it can be a program name with args.
8448 set dummy otool64; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 if test -n "$ac_ct_OTOOL64"; then
8455 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_prog_ac_ct_OTOOL64="otool64"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8468 done
8469 done
8470 IFS=$as_save_IFS
8474 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8475 if test -n "$ac_ct_OTOOL64"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8477 $as_echo "$ac_ct_OTOOL64" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8483 if test "x$ac_ct_OTOOL64" = x; then
8484 OTOOL64=":"
8485 else
8486 case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492 OTOOL64=$ac_ct_OTOOL64
8494 else
8495 OTOOL64="$ac_cv_prog_OTOOL64"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8525 $as_echo_n "checking for -single_module linker flag... " >&6; }
8526 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 lt_cv_apple_cc_single_mod=no
8530 if test -z "${LT_MULTI_MODULE}"; then
8531 # By default we will add the -single_module flag. You can override
8532 # by either setting the environment variable LT_MULTI_MODULE
8533 # non-empty at configure time, or by adding -multi_module to the
8534 # link flags.
8535 rm -rf libconftest.dylib*
8536 echo "int foo(void){return 1;}" > conftest.c
8537 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8538 -dynamiclib -Wl,-single_module conftest.c" >&5
8539 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8540 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8541 _lt_result=$?
8542 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8543 lt_cv_apple_cc_single_mod=yes
8544 else
8545 cat conftest.err >&5
8547 rm -rf libconftest.dylib*
8548 rm -f conftest.*
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8552 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8554 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8555 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 lt_cv_ld_exported_symbols_list=no
8559 save_LDFLAGS=$LDFLAGS
8560 echo "_main" > conftest.sym
8561 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8566 main ()
8570 return 0;
8572 _ACEOF
8573 if ac_fn_c_try_link "$LINENO"; then :
8574 lt_cv_ld_exported_symbols_list=yes
8575 else
8576 lt_cv_ld_exported_symbols_list=no
8578 rm -f core conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
8580 LDFLAGS="$save_LDFLAGS"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8584 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8586 $as_echo_n "checking for -force_load linker flag... " >&6; }
8587 if test "${lt_cv_ld_force_load+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 lt_cv_ld_force_load=no
8591 cat > conftest.c << _LT_EOF
8592 int forced_loaded() { return 2;}
8593 _LT_EOF
8594 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8595 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8596 echo "$AR cru libconftest.a conftest.o" >&5
8597 $AR cru libconftest.a conftest.o 2>&5
8598 cat > conftest.c << _LT_EOF
8599 int main() { return 0;}
8600 _LT_EOF
8601 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8602 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8603 _lt_result=$?
8604 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8605 lt_cv_ld_force_load=yes
8606 else
8607 cat conftest.err >&5
8609 rm -f conftest.err libconftest.a conftest conftest.c
8610 rm -rf conftest.dSYM
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8614 $as_echo "$lt_cv_ld_force_load" >&6; }
8615 case $host_os in
8616 rhapsody* | darwin1.[012])
8617 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8618 darwin1.*)
8619 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8620 darwin*) # darwin 5.x on
8621 # if running on 10.5 or later, the deployment target defaults
8622 # to the OS version, if on x86, and 10.4, the deployment
8623 # target defaults to 10.4. Don't you love it?
8624 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8625 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8626 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8627 10.[012]*)
8628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8629 10.*)
8630 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8631 esac
8633 esac
8634 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8635 _lt_dar_single_mod='$single_module'
8637 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8638 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8639 else
8640 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8642 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8643 _lt_dsymutil='~$DSYMUTIL $lib || :'
8644 else
8645 _lt_dsymutil=
8648 esac
8650 for ac_header in dlfcn.h
8651 do :
8652 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8654 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8655 cat >>confdefs.h <<_ACEOF
8656 #define HAVE_DLFCN_H 1
8657 _ACEOF
8661 done
8668 # Set options
8672 enable_dlopen=no
8675 enable_win32_dll=no
8678 # Check whether --enable-shared was given.
8679 if test "${enable_shared+set}" = set; then :
8680 enableval=$enable_shared; p=${PACKAGE-default}
8681 case $enableval in
8682 yes) enable_shared=yes ;;
8683 no) enable_shared=no ;;
8685 enable_shared=no
8686 # Look at the argument we got. We use all the common list separators.
8687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8688 for pkg in $enableval; do
8689 IFS="$lt_save_ifs"
8690 if test "X$pkg" = "X$p"; then
8691 enable_shared=yes
8693 done
8694 IFS="$lt_save_ifs"
8696 esac
8697 else
8698 enable_shared=yes
8709 # Check whether --enable-static was given.
8710 if test "${enable_static+set}" = set; then :
8711 enableval=$enable_static; p=${PACKAGE-default}
8712 case $enableval in
8713 yes) enable_static=yes ;;
8714 no) enable_static=no ;;
8716 enable_static=no
8717 # Look at the argument we got. We use all the common list separators.
8718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8719 for pkg in $enableval; do
8720 IFS="$lt_save_ifs"
8721 if test "X$pkg" = "X$p"; then
8722 enable_static=yes
8724 done
8725 IFS="$lt_save_ifs"
8727 esac
8728 else
8729 enable_static=yes
8741 # Check whether --with-pic was given.
8742 if test "${with_pic+set}" = set; then :
8743 withval=$with_pic; pic_mode="$withval"
8744 else
8745 pic_mode=default
8749 test -z "$pic_mode" && pic_mode=default
8757 # Check whether --enable-fast-install was given.
8758 if test "${enable_fast_install+set}" = set; then :
8759 enableval=$enable_fast_install; p=${PACKAGE-default}
8760 case $enableval in
8761 yes) enable_fast_install=yes ;;
8762 no) enable_fast_install=no ;;
8764 enable_fast_install=no
8765 # Look at the argument we got. We use all the common list separators.
8766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8767 for pkg in $enableval; do
8768 IFS="$lt_save_ifs"
8769 if test "X$pkg" = "X$p"; then
8770 enable_fast_install=yes
8772 done
8773 IFS="$lt_save_ifs"
8775 esac
8776 else
8777 enable_fast_install=yes
8790 # This can be used to rebuild libtool when needed
8791 LIBTOOL_DEPS="$ltmain"
8793 # Always use our own libtool.
8794 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8821 test -z "$LN_S" && LN_S="ln -s"
8836 if test -n "${ZSH_VERSION+set}" ; then
8837 setopt NO_GLOB_SUBST
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8841 $as_echo_n "checking for objdir... " >&6; }
8842 if test "${lt_cv_objdir+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 rm -f .libs 2>/dev/null
8846 mkdir .libs 2>/dev/null
8847 if test -d .libs; then
8848 lt_cv_objdir=.libs
8849 else
8850 # MS-DOS does not allow filenames that begin with a dot.
8851 lt_cv_objdir=_libs
8853 rmdir .libs 2>/dev/null
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8856 $as_echo "$lt_cv_objdir" >&6; }
8857 objdir=$lt_cv_objdir
8863 cat >>confdefs.h <<_ACEOF
8864 #define LT_OBJDIR "$lt_cv_objdir/"
8865 _ACEOF
8870 case $host_os in
8871 aix3*)
8872 # AIX sometimes has problems with the GCC collect2 program. For some
8873 # reason, if we set the COLLECT_NAMES environment variable, the problems
8874 # vanish in a puff of smoke.
8875 if test "X${COLLECT_NAMES+set}" != Xset; then
8876 COLLECT_NAMES=
8877 export COLLECT_NAMES
8880 esac
8882 # Global variables:
8883 ofile=libtool
8884 can_build_shared=yes
8886 # All known linkers require a `.a' archive for static linking (except MSVC,
8887 # which needs '.lib').
8888 libext=a
8890 with_gnu_ld="$lt_cv_prog_gnu_ld"
8892 old_CC="$CC"
8893 old_CFLAGS="$CFLAGS"
8895 # Set sane defaults for various variables
8896 test -z "$CC" && CC=cc
8897 test -z "$LTCC" && LTCC=$CC
8898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8899 test -z "$LD" && LD=ld
8900 test -z "$ac_objext" && ac_objext=o
8902 for cc_temp in $compiler""; do
8903 case $cc_temp in
8904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8906 \-*) ;;
8907 *) break;;
8908 esac
8909 done
8910 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8913 # Only perform the check for file, if the check method requires it
8914 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8915 case $deplibs_check_method in
8916 file_magic*)
8917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8919 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 case $MAGIC_CMD in
8924 [\\/*] | ?:[\\/]*)
8925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8928 lt_save_MAGIC_CMD="$MAGIC_CMD"
8929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8931 for ac_dir in $ac_dummy; do
8932 IFS="$lt_save_ifs"
8933 test -z "$ac_dir" && ac_dir=.
8934 if test -f $ac_dir/${ac_tool_prefix}file; then
8935 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8936 if test -n "$file_magic_test_file"; then
8937 case $deplibs_check_method in
8938 "file_magic "*)
8939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8942 $EGREP "$file_magic_regex" > /dev/null; then
8944 else
8945 cat <<_LT_EOF 1>&2
8947 *** Warning: the command libtool uses to detect shared libraries,
8948 *** $file_magic_cmd, produces output that libtool cannot recognize.
8949 *** The result is that libtool may fail to recognize shared libraries
8950 *** as such. This will affect the creation of libtool libraries that
8951 *** depend on shared libraries, but programs linked with such libtool
8952 *** libraries will work regardless of this problem. Nevertheless, you
8953 *** may want to report the problem to your system manager and/or to
8954 *** bug-libtool@gnu.org
8956 _LT_EOF
8957 fi ;;
8958 esac
8960 break
8962 done
8963 IFS="$lt_save_ifs"
8964 MAGIC_CMD="$lt_save_MAGIC_CMD"
8966 esac
8969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8970 if test -n "$MAGIC_CMD"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8972 $as_echo "$MAGIC_CMD" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8982 if test -z "$lt_cv_path_MAGIC_CMD"; then
8983 if test -n "$ac_tool_prefix"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8985 $as_echo_n "checking for file... " >&6; }
8986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 case $MAGIC_CMD in
8990 [\\/*] | ?:[\\/]*)
8991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8994 lt_save_MAGIC_CMD="$MAGIC_CMD"
8995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8997 for ac_dir in $ac_dummy; do
8998 IFS="$lt_save_ifs"
8999 test -z "$ac_dir" && ac_dir=.
9000 if test -f $ac_dir/file; then
9001 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9002 if test -n "$file_magic_test_file"; then
9003 case $deplibs_check_method in
9004 "file_magic "*)
9005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9008 $EGREP "$file_magic_regex" > /dev/null; then
9010 else
9011 cat <<_LT_EOF 1>&2
9013 *** Warning: the command libtool uses to detect shared libraries,
9014 *** $file_magic_cmd, produces output that libtool cannot recognize.
9015 *** The result is that libtool may fail to recognize shared libraries
9016 *** as such. This will affect the creation of libtool libraries that
9017 *** depend on shared libraries, but programs linked with such libtool
9018 *** libraries will work regardless of this problem. Nevertheless, you
9019 *** may want to report the problem to your system manager and/or to
9020 *** bug-libtool@gnu.org
9022 _LT_EOF
9023 fi ;;
9024 esac
9026 break
9028 done
9029 IFS="$lt_save_ifs"
9030 MAGIC_CMD="$lt_save_MAGIC_CMD"
9032 esac
9035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9036 if test -n "$MAGIC_CMD"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9038 $as_echo "$MAGIC_CMD" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9045 else
9046 MAGIC_CMD=:
9052 esac
9054 # Use C for the default configuration in the libtool script
9056 lt_save_CC="$CC"
9057 ac_ext=c
9058 ac_cpp='$CPP $CPPFLAGS'
9059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9064 # Source file extension for C test sources.
9065 ac_ext=c
9067 # Object file extension for compiled C test sources.
9068 objext=o
9069 objext=$objext
9071 # Code to be used in simple compile tests
9072 lt_simple_compile_test_code="int some_variable = 0;"
9074 # Code to be used in simple link tests
9075 lt_simple_link_test_code='int main(){return(0);}'
9083 # If no C compiler was specified, use CC.
9084 LTCC=${LTCC-"$CC"}
9086 # If no C compiler flags were specified, use CFLAGS.
9087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9089 # Allow CC to be a program name with arguments.
9090 compiler=$CC
9092 # Save the default compiler, since it gets overwritten when the other
9093 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9094 compiler_DEFAULT=$CC
9096 # save warnings/boilerplate of simple test code
9097 ac_outfile=conftest.$ac_objext
9098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9100 _lt_compiler_boilerplate=`cat conftest.err`
9101 $RM conftest*
9103 ac_outfile=conftest.$ac_objext
9104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9106 _lt_linker_boilerplate=`cat conftest.err`
9107 $RM -r conftest*
9110 ## CAVEAT EMPTOR:
9111 ## There is no encapsulation within the following macros, do not change
9112 ## the running order or otherwise move them around unless you know exactly
9113 ## what you are doing...
9114 if test -n "$compiler"; then
9116 lt_prog_compiler_no_builtin_flag=
9118 if test "$GCC" = yes; then
9119 case $cc_basename in
9120 nvcc*)
9121 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9123 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9124 esac
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9127 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9128 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 lt_cv_prog_compiler_rtti_exceptions=no
9132 ac_outfile=conftest.$ac_objext
9133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134 lt_compiler_flag="-fno-rtti -fno-exceptions"
9135 # Insert the option either (1) after the last *FLAGS variable, or
9136 # (2) before a word containing "conftest.", or (3) at the end.
9137 # Note that $ac_compile itself does not contain backslashes and begins
9138 # with a dollar sign (not a hyphen), so the echo should work correctly.
9139 # The option is referenced via a variable to avoid confusing sed.
9140 lt_compile=`echo "$ac_compile" | $SED \
9141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9143 -e 's:$: $lt_compiler_flag:'`
9144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9145 (eval "$lt_compile" 2>conftest.err)
9146 ac_status=$?
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 if (exit $ac_status) && test -s "$ac_outfile"; then
9150 # The compiler can only warn and ignore the option if not recognized
9151 # So say no if there are warnings other than the usual output.
9152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9155 lt_cv_prog_compiler_rtti_exceptions=yes
9158 $RM conftest*
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9162 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9165 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9166 else
9177 lt_prog_compiler_wl=
9178 lt_prog_compiler_pic=
9179 lt_prog_compiler_static=
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9184 if test "$GCC" = yes; then
9185 lt_prog_compiler_wl='-Wl,'
9186 lt_prog_compiler_static='-static'
9188 case $host_os in
9189 aix*)
9190 # All AIX code is PIC.
9191 if test "$host_cpu" = ia64; then
9192 # AIX 5 now supports IA64 processor
9193 lt_prog_compiler_static='-Bstatic'
9197 amigaos*)
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 lt_prog_compiler_pic='-fPIC'
9203 m68k)
9204 # FIXME: we need at least 68020 code to build shared libraries, but
9205 # adding the `-m68020' flag to GCC prevents building anything better,
9206 # like `-m68040'.
9207 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9209 esac
9212 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9213 # PIC is the default for these OSes.
9216 mingw* | cygwin* | pw32* | os2* | cegcc*)
9217 # This hack is so that the source file can tell whether it is being
9218 # built for inclusion in a dll (and should export symbols for example).
9219 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9220 # (--disable-auto-import) libraries
9221 lt_prog_compiler_pic='-DDLL_EXPORT'
9224 darwin* | rhapsody*)
9225 # PIC is the default on this platform
9226 # Common symbols not allowed in MH_DYLIB files
9227 lt_prog_compiler_pic='-fno-common'
9230 haiku*)
9231 # PIC is the default for Haiku.
9232 # The "-static" flag exists, but is broken.
9233 lt_prog_compiler_static=
9236 hpux*)
9237 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9238 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9239 # sets the default TLS model and affects inlining.
9240 case $host_cpu in
9241 hppa*64*)
9242 # +Z the default
9245 lt_prog_compiler_pic='-fPIC'
9247 esac
9250 interix[3-9]*)
9251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9252 # Instead, we relocate shared libraries at runtime.
9255 msdosdjgpp*)
9256 # Just because we use GCC doesn't mean we suddenly get shared libraries
9257 # on systems that don't support them.
9258 lt_prog_compiler_can_build_shared=no
9259 enable_shared=no
9262 *nto* | *qnx*)
9263 # QNX uses GNU C++, but need to define -shared option too, otherwise
9264 # it will coredump.
9265 lt_prog_compiler_pic='-fPIC -shared'
9268 sysv4*MP*)
9269 if test -d /usr/nec; then
9270 lt_prog_compiler_pic=-Kconform_pic
9275 lt_prog_compiler_pic='-fPIC'
9277 esac
9279 case $cc_basename in
9280 nvcc*) # Cuda Compiler Driver 2.2
9281 lt_prog_compiler_wl='-Xlinker '
9282 lt_prog_compiler_pic='-Xcompiler -fPIC'
9284 esac
9285 else
9286 # PORTME Check for flag to pass linker flags through the system compiler.
9287 case $host_os in
9288 aix*)
9289 lt_prog_compiler_wl='-Wl,'
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 now supports IA64 processor
9292 lt_prog_compiler_static='-Bstatic'
9293 else
9294 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9298 mingw* | cygwin* | pw32* | os2* | cegcc*)
9299 # This hack is so that the source file can tell whether it is being
9300 # built for inclusion in a dll (and should export symbols for example).
9301 lt_prog_compiler_pic='-DDLL_EXPORT'
9304 hpux9* | hpux10* | hpux11*)
9305 lt_prog_compiler_wl='-Wl,'
9306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9307 # not for PA HP-UX.
9308 case $host_cpu in
9309 hppa*64*|ia64*)
9310 # +Z the default
9313 lt_prog_compiler_pic='+Z'
9315 esac
9316 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9317 lt_prog_compiler_static='${wl}-a ${wl}archive'
9320 irix5* | irix6* | nonstopux*)
9321 lt_prog_compiler_wl='-Wl,'
9322 # PIC (with -KPIC) is the default.
9323 lt_prog_compiler_static='-non_shared'
9326 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9327 case $cc_basename in
9328 # old Intel for x86_64 which still supported -KPIC.
9329 ecc*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-static'
9334 # icc used to be incompatible with GCC.
9335 # ICC 10 doesn't accept -KPIC any more.
9336 icc* | ifort*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-fPIC'
9339 lt_prog_compiler_static='-static'
9341 # Lahey Fortran 8.1.
9342 lf95*)
9343 lt_prog_compiler_wl='-Wl,'
9344 lt_prog_compiler_pic='--shared'
9345 lt_prog_compiler_static='--static'
9347 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9348 # Portland Group compilers (*not* the Pentium gcc compiler,
9349 # which looks to be a dead project)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-fpic'
9352 lt_prog_compiler_static='-Bstatic'
9354 ccc*)
9355 lt_prog_compiler_wl='-Wl,'
9356 # All Alpha code is PIC.
9357 lt_prog_compiler_static='-non_shared'
9359 xl* | bgxl* | bgf* | mpixl*)
9360 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-qpic'
9363 lt_prog_compiler_static='-qstaticlink'
9366 case `$CC -V 2>&1 | sed 5q` in
9367 *Sun\ F* | *Sun*Fortran*)
9368 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9369 lt_prog_compiler_pic='-KPIC'
9370 lt_prog_compiler_static='-Bstatic'
9371 lt_prog_compiler_wl=''
9373 *Sun\ C*)
9374 # Sun C 5.9
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 lt_prog_compiler_wl='-Wl,'
9379 esac
9381 esac
9384 newsos6)
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-Bstatic'
9389 *nto* | *qnx*)
9390 # QNX uses GNU C++, but need to define -shared option too, otherwise
9391 # it will coredump.
9392 lt_prog_compiler_pic='-fPIC -shared'
9395 osf3* | osf4* | osf5*)
9396 lt_prog_compiler_wl='-Wl,'
9397 # All OSF/1 code is PIC.
9398 lt_prog_compiler_static='-non_shared'
9401 rdos*)
9402 lt_prog_compiler_static='-non_shared'
9405 solaris*)
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9408 case $cc_basename in
9409 f77* | f90* | f95*)
9410 lt_prog_compiler_wl='-Qoption ld ';;
9412 lt_prog_compiler_wl='-Wl,';;
9413 esac
9416 sunos4*)
9417 lt_prog_compiler_wl='-Qoption ld '
9418 lt_prog_compiler_pic='-PIC'
9419 lt_prog_compiler_static='-Bstatic'
9422 sysv4 | sysv4.2uw2* | sysv4.3*)
9423 lt_prog_compiler_wl='-Wl,'
9424 lt_prog_compiler_pic='-KPIC'
9425 lt_prog_compiler_static='-Bstatic'
9428 sysv4*MP*)
9429 if test -d /usr/nec ;then
9430 lt_prog_compiler_pic='-Kconform_pic'
9431 lt_prog_compiler_static='-Bstatic'
9435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_pic='-KPIC'
9438 lt_prog_compiler_static='-Bstatic'
9441 unicos*)
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_can_build_shared=no
9446 uts4*)
9447 lt_prog_compiler_pic='-pic'
9448 lt_prog_compiler_static='-Bstatic'
9452 lt_prog_compiler_can_build_shared=no
9454 esac
9457 case $host_os in
9458 # For platforms which do not support PIC, -DPIC is meaningless:
9459 *djgpp*)
9460 lt_prog_compiler_pic=
9463 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9465 esac
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9467 $as_echo "$lt_prog_compiler_pic" >&6; }
9475 # Check to make sure the PIC flag actually works.
9477 if test -n "$lt_prog_compiler_pic"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9479 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9480 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 lt_cv_prog_compiler_pic_works=no
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 # The option is referenced via a variable to avoid confusing sed.
9492 lt_compile=`echo "$ac_compile" | $SED \
9493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495 -e 's:$: $lt_compiler_flag:'`
9496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9497 (eval "$lt_compile" 2>conftest.err)
9498 ac_status=$?
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 if (exit $ac_status) && test -s "$ac_outfile"; then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings other than the usual output.
9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler_pic_works=yes
9510 $RM conftest*
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9514 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9516 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9517 case $lt_prog_compiler_pic in
9518 "" | " "*) ;;
9519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9520 esac
9521 else
9522 lt_prog_compiler_pic=
9523 lt_prog_compiler_can_build_shared=no
9534 # Check to make sure the static flag actually works.
9536 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9538 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9539 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 lt_cv_prog_compiler_static_works=no
9543 save_LDFLAGS="$LDFLAGS"
9544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9547 # The linker can only warn and ignore the option if not recognized
9548 # So say no if there are warnings
9549 if test -s conftest.err; then
9550 # Append any errors to the config.log.
9551 cat conftest.err 1>&5
9552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554 if diff conftest.exp conftest.er2 >/dev/null; then
9555 lt_cv_prog_compiler_static_works=yes
9557 else
9558 lt_cv_prog_compiler_static_works=yes
9561 $RM -r conftest*
9562 LDFLAGS="$save_LDFLAGS"
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9566 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9568 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9570 else
9571 lt_prog_compiler_static=
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9582 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 lt_cv_prog_compiler_c_o=no
9586 $RM -r conftest 2>/dev/null
9587 mkdir conftest
9588 cd conftest
9589 mkdir out
9590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592 lt_compiler_flag="-o out/conftest2.$ac_objext"
9593 # Insert the option either (1) after the last *FLAGS variable, or
9594 # (2) before a word containing "conftest.", or (3) at the end.
9595 # Note that $ac_compile itself does not contain backslashes and begins
9596 # with a dollar sign (not a hyphen), so the echo should work correctly.
9597 lt_compile=`echo "$ac_compile" | $SED \
9598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600 -e 's:$: $lt_compiler_flag:'`
9601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9602 (eval "$lt_compile" 2>out/conftest.err)
9603 ac_status=$?
9604 cat out/conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9607 then
9608 # The compiler can only warn and ignore the option if not recognized
9609 # So say no if there are warnings
9610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9613 lt_cv_prog_compiler_c_o=yes
9616 chmod u+w . 2>&5
9617 $RM conftest*
9618 # SGI C++ compiler will create directory out/ii_files/ for
9619 # template instantiation
9620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9621 $RM out/* && rmdir out
9622 cd ..
9623 $RM -r conftest
9624 $RM conftest*
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9628 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9637 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 lt_cv_prog_compiler_c_o=no
9641 $RM -r conftest 2>/dev/null
9642 mkdir conftest
9643 cd conftest
9644 mkdir out
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9647 lt_compiler_flag="-o out/conftest2.$ac_objext"
9648 # Insert the option either (1) after the last *FLAGS variable, or
9649 # (2) before a word containing "conftest.", or (3) at the end.
9650 # Note that $ac_compile itself does not contain backslashes and begins
9651 # with a dollar sign (not a hyphen), so the echo should work correctly.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657 (eval "$lt_compile" 2>out/conftest.err)
9658 ac_status=$?
9659 cat out/conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9662 then
9663 # The compiler can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
9665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_c_o=yes
9671 chmod u+w . 2>&5
9672 $RM conftest*
9673 # SGI C++ compiler will create directory out/ii_files/ for
9674 # template instantiation
9675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9676 $RM out/* && rmdir out
9677 cd ..
9678 $RM -r conftest
9679 $RM conftest*
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9683 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9688 hard_links="nottested"
9689 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9690 # do not overwrite the value of need_locks provided by the user
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9692 $as_echo_n "checking if we can lock with hard links... " >&6; }
9693 hard_links=yes
9694 $RM conftest*
9695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696 touch conftest.a
9697 ln conftest.a conftest.b 2>&5 || hard_links=no
9698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9700 $as_echo "$hard_links" >&6; }
9701 if test "$hard_links" = no; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9704 need_locks=warn
9706 else
9707 need_locks=no
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9718 runpath_var=
9719 allow_undefined_flag=
9720 always_export_symbols=no
9721 archive_cmds=
9722 archive_expsym_cmds=
9723 compiler_needs_object=no
9724 enable_shared_with_static_runtimes=no
9725 export_dynamic_flag_spec=
9726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9727 hardcode_automatic=no
9728 hardcode_direct=no
9729 hardcode_direct_absolute=no
9730 hardcode_libdir_flag_spec=
9731 hardcode_libdir_flag_spec_ld=
9732 hardcode_libdir_separator=
9733 hardcode_minus_L=no
9734 hardcode_shlibpath_var=unsupported
9735 inherit_rpath=no
9736 link_all_deplibs=unknown
9737 module_cmds=
9738 module_expsym_cmds=
9739 old_archive_from_new_cmds=
9740 old_archive_from_expsyms_cmds=
9741 thread_safe_flag_spec=
9742 whole_archive_flag_spec=
9743 # include_expsyms should be a list of space-separated symbols to be *always*
9744 # included in the symbol list
9745 include_expsyms=
9746 # exclude_expsyms can be an extended regexp of symbols to exclude
9747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9749 # as well as any symbol that contains `d'.
9750 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9752 # platforms (ab)use it in PIC code, but their linkers get confused if
9753 # the symbol is explicitly referenced. Since portable code cannot
9754 # rely on this symbol name, it's probably fine to never include it in
9755 # preloaded symbol tables.
9756 # Exclude shared library initialization/finalization symbols.
9757 extract_expsyms_cmds=
9759 case $host_os in
9760 cygwin* | mingw* | pw32* | cegcc*)
9761 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9762 # When not using gcc, we currently assume that we are using
9763 # Microsoft Visual C++.
9764 if test "$GCC" != yes; then
9765 with_gnu_ld=no
9768 interix*)
9769 # we just hope/assume this is gcc and not c89 (= MSVC++)
9770 with_gnu_ld=yes
9772 openbsd*)
9773 with_gnu_ld=no
9775 esac
9777 ld_shlibs=yes
9779 # On some targets, GNU ld is compatible enough with the native linker
9780 # that we're better off using the native interface for both.
9781 lt_use_gnu_ld_interface=no
9782 if test "$with_gnu_ld" = yes; then
9783 case $host_os in
9784 aix*)
9785 # The AIX port of GNU ld has always aspired to compatibility
9786 # with the native linker. However, as the warning in the GNU ld
9787 # block says, versions before 2.19.5* couldn't really create working
9788 # shared libraries, regardless of the interface used.
9789 case `$LD -v 2>&1` in
9790 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9791 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9792 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9794 lt_use_gnu_ld_interface=yes
9796 esac
9799 lt_use_gnu_ld_interface=yes
9801 esac
9804 if test "$lt_use_gnu_ld_interface" = yes; then
9805 # If archive_cmds runs LD, not CC, wlarc should be empty
9806 wlarc='${wl}'
9808 # Set some defaults for GNU ld with shared library support. These
9809 # are reset later if shared libraries are not supported. Putting them
9810 # here allows them to be overridden if necessary.
9811 runpath_var=LD_RUN_PATH
9812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813 export_dynamic_flag_spec='${wl}--export-dynamic'
9814 # ancient GNU ld didn't support --whole-archive et. al.
9815 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9816 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9817 else
9818 whole_archive_flag_spec=
9820 supports_anon_versioning=no
9821 case `$LD -v 2>&1` in
9822 *GNU\ gold*) supports_anon_versioning=yes ;;
9823 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9824 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9825 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9826 *\ 2.11.*) ;; # other 2.11 versions
9827 *) supports_anon_versioning=yes ;;
9828 esac
9830 # See if GNU ld supports shared libraries.
9831 case $host_os in
9832 aix[3-9]*)
9833 # On AIX/PPC, the GNU linker is very broken
9834 if test "$host_cpu" != ia64; then
9835 ld_shlibs=no
9836 cat <<_LT_EOF 1>&2
9838 *** Warning: the GNU linker, at least up to release 2.19, is reported
9839 *** to be unable to reliably create shared libraries on AIX.
9840 *** Therefore, libtool is disabling shared libraries support. If you
9841 *** really care for shared libraries, you may want to install binutils
9842 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9843 *** You will then need to restart the configuration process.
9845 _LT_EOF
9849 amigaos*)
9850 case $host_cpu in
9851 powerpc)
9852 # see comment about AmigaOS4 .so support
9853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9854 archive_expsym_cmds=''
9856 m68k)
9857 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)'
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_minus_L=yes
9861 esac
9864 beos*)
9865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866 allow_undefined_flag=unsupported
9867 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9868 # support --undefined. This deserves some investigation. FIXME
9869 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 else
9871 ld_shlibs=no
9875 cygwin* | mingw* | pw32* | cegcc*)
9876 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9877 # as there is no search path for DLLs.
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 export_dynamic_flag_spec='${wl}--export-all-symbols'
9880 allow_undefined_flag=unsupported
9881 always_export_symbols=no
9882 enable_shared_with_static_runtimes=yes
9883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9885 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9887 # If the export-symbols file already is a .def file (1st line
9888 # is EXPORTS), use it as is; otherwise, prepend...
9889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9890 cp $export_symbols $output_objdir/$soname.def;
9891 else
9892 echo EXPORTS > $output_objdir/$soname.def;
9893 cat $export_symbols >> $output_objdir/$soname.def;
9895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9896 else
9897 ld_shlibs=no
9901 haiku*)
9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903 link_all_deplibs=yes
9906 interix[3-9]*)
9907 hardcode_direct=no
9908 hardcode_shlibpath_var=no
9909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9910 export_dynamic_flag_spec='${wl}-E'
9911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9912 # Instead, shared libraries are loaded at an image base (0x10000000 by
9913 # default) and relocated if they conflict, which is a slow very memory
9914 # consuming and fragmenting process. To avoid this, we pick a random,
9915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9918 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'
9921 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9922 tmp_diet=no
9923 if test "$host_os" = linux-dietlibc; then
9924 case $cc_basename in
9925 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9926 esac
9928 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9929 && test "$tmp_diet" = no
9930 then
9931 tmp_addflag=
9932 tmp_sharedflag='-shared'
9933 case $cc_basename,$host_cpu in
9934 pgcc*) # Portland Group C compiler
9935 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'
9936 tmp_addflag=' $pic_flag'
9938 pgf77* | pgf90* | pgf95* | pgfortran*)
9939 # Portland Group f77 and f90 compilers
9940 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'
9941 tmp_addflag=' $pic_flag -Mnomain' ;;
9942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9943 tmp_addflag=' -i_dynamic' ;;
9944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9945 tmp_addflag=' -i_dynamic -nofor_main' ;;
9946 ifc* | ifort*) # Intel Fortran compiler
9947 tmp_addflag=' -nofor_main' ;;
9948 lf95*) # Lahey Fortran 8.1
9949 whole_archive_flag_spec=
9950 tmp_sharedflag='--shared' ;;
9951 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9952 tmp_sharedflag='-qmkshrobj'
9953 tmp_addflag= ;;
9954 nvcc*) # Cuda Compiler Driver 2.2
9955 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'
9956 compiler_needs_object=yes
9958 esac
9959 case `$CC -V 2>&1 | sed 5q` in
9960 *Sun\ C*) # Sun C 5.9
9961 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'
9962 compiler_needs_object=yes
9963 tmp_sharedflag='-G' ;;
9964 *Sun\ F*) # Sun Fortran 8.3
9965 tmp_sharedflag='-G' ;;
9966 esac
9967 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9969 if test "x$supports_anon_versioning" = xyes; then
9970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9972 echo "local: *; };" >> $output_objdir/$libname.ver~
9973 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9976 case $cc_basename in
9977 xlf* | bgf* | bgxlf* | mpixlf*)
9978 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9979 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9980 hardcode_libdir_flag_spec=
9981 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9982 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9983 if test "x$supports_anon_versioning" = xyes; then
9984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9986 echo "local: *; };" >> $output_objdir/$libname.ver~
9987 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9990 esac
9991 else
9992 ld_shlibs=no
9996 netbsd*)
9997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9999 wlarc=
10000 else
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10006 solaris*)
10007 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10008 ld_shlibs=no
10009 cat <<_LT_EOF 1>&2
10011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10012 *** create shared libraries on Solaris systems. Therefore, libtool
10013 *** is disabling shared libraries support. We urge you to upgrade GNU
10014 *** binutils to release 2.9.1 or newer. Another option is to modify
10015 *** your PATH or compiler configuration so that the native linker is
10016 *** used, and then restart.
10018 _LT_EOF
10019 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10022 else
10023 ld_shlibs=no
10027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10028 case `$LD -v 2>&1` in
10029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10030 ld_shlibs=no
10031 cat <<_LT_EOF 1>&2
10033 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10034 *** reliably create shared libraries on SCO systems. Therefore, libtool
10035 *** is disabling shared libraries support. We urge you to upgrade GNU
10036 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10037 *** your PATH or compiler configuration so that the native linker is
10038 *** used, and then restart.
10040 _LT_EOF
10043 # For security reasons, it is highly recommended that you always
10044 # use absolute paths for naming shared libraries, and exclude the
10045 # DT_RUNPATH tag from executables and libraries. But doing so
10046 # requires that you compile everything twice, which is a pain.
10047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10051 else
10052 ld_shlibs=no
10055 esac
10058 sunos4*)
10059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10060 wlarc=
10061 hardcode_direct=yes
10062 hardcode_shlibpath_var=no
10066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10069 else
10070 ld_shlibs=no
10073 esac
10075 if test "$ld_shlibs" = no; then
10076 runpath_var=
10077 hardcode_libdir_flag_spec=
10078 export_dynamic_flag_spec=
10079 whole_archive_flag_spec=
10081 else
10082 # PORTME fill in a description of your system's linker (not GNU ld)
10083 case $host_os in
10084 aix3*)
10085 allow_undefined_flag=unsupported
10086 always_export_symbols=yes
10087 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'
10088 # Note: this linker hardcodes the directories in LIBPATH if there
10089 # are no directories specified by -L.
10090 hardcode_minus_L=yes
10091 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10092 # Neither direct hardcoding nor static linking is supported with a
10093 # broken collect2.
10094 hardcode_direct=unsupported
10098 aix[4-9]*)
10099 if test "$host_cpu" = ia64; then
10100 # On IA64, the linker does run time linking by default, so we don't
10101 # have to do anything special.
10102 aix_use_runtimelinking=no
10103 exp_sym_flag='-Bexport'
10104 no_entry_flag=""
10105 else
10106 # If we're using GNU nm, then we don't want the "-C" option.
10107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10108 # Also, AIX nm treats weak defined symbols like other global
10109 # defined symbols, whereas GNU nm marks them as "W".
10110 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10111 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'
10112 else
10113 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'
10115 aix_use_runtimelinking=no
10117 # Test if we are trying to use run time linking or normal
10118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10119 # need to do runtime linking.
10120 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10121 for ld_flag in $LDFLAGS; do
10122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10123 aix_use_runtimelinking=yes
10124 break
10126 done
10128 esac
10130 exp_sym_flag='-bexport'
10131 no_entry_flag='-bnoentry'
10134 # When large executables or shared objects are built, AIX ld can
10135 # have problems creating the table of contents. If linking a library
10136 # or program results in "error TOC overflow" add -mminimal-toc to
10137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10140 archive_cmds=''
10141 hardcode_direct=yes
10142 hardcode_direct_absolute=yes
10143 hardcode_libdir_separator=':'
10144 link_all_deplibs=yes
10145 file_list_spec='${wl}-f,'
10147 if test "$GCC" = yes; then
10148 case $host_os in aix4.[012]|aix4.[012].*)
10149 # We only want to do this on AIX 4.2 and lower, the check
10150 # below for broken collect2 doesn't work under 4.3+
10151 collect2name=`${CC} -print-prog-name=collect2`
10152 if test -f "$collect2name" &&
10153 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10154 then
10155 # We have reworked collect2
10157 else
10158 # We have old collect2
10159 hardcode_direct=unsupported
10160 # It fails to find uninstalled libraries when the uninstalled
10161 # path is not listed in the libpath. Setting hardcode_minus_L
10162 # to unsupported forces relinking
10163 hardcode_minus_L=yes
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_libdir_separator=
10168 esac
10169 shared_flag='-shared'
10170 if test "$aix_use_runtimelinking" = yes; then
10171 shared_flag="$shared_flag "'${wl}-G'
10173 else
10174 # not using gcc
10175 if test "$host_cpu" = ia64; then
10176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10177 # chokes on -Wl,-G. The following line is correct:
10178 shared_flag='-G'
10179 else
10180 if test "$aix_use_runtimelinking" = yes; then
10181 shared_flag='${wl}-G'
10182 else
10183 shared_flag='${wl}-bM:SRE'
10188 export_dynamic_flag_spec='${wl}-bexpall'
10189 # It seems that -bexpall does not export symbols beginning with
10190 # underscore (_), so it is better to generate a list of symbols to export.
10191 always_export_symbols=yes
10192 if test "$aix_use_runtimelinking" = yes; then
10193 # Warning - without using the other runtime loading flags (-brtl),
10194 # -berok will link without error, but may produce a broken library.
10195 allow_undefined_flag='-berok'
10196 # Determine the default libpath from the value encoded in an
10197 # empty executable.
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10202 main ()
10206 return 0;
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10211 lt_aix_libpath_sed='
10212 /Import File Strings/,/^$/ {
10213 /^0/ {
10214 s/^0 *\(.*\)$/\1/
10218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219 # Check for a 64-bit object if we didn't find anything.
10220 if test -z "$aix_libpath"; then
10221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10229 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"
10230 else
10231 if test "$host_cpu" = ia64; then
10232 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10233 allow_undefined_flag="-z nodefs"
10234 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"
10235 else
10236 # Determine the default libpath from the value encoded in an
10237 # empty executable.
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10242 main ()
10246 return 0;
10248 _ACEOF
10249 if ac_fn_c_try_link "$LINENO"; then :
10251 lt_aix_libpath_sed='
10252 /Import File Strings/,/^$/ {
10253 /^0/ {
10254 s/^0 *\(.*\)$/\1/
10258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10259 # Check for a 64-bit object if we didn't find anything.
10260 if test -z "$aix_libpath"; then
10261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10269 # Warning - without using the other run time loading flags,
10270 # -berok will link without error, but may produce a broken library.
10271 no_undefined_flag=' ${wl}-bernotok'
10272 allow_undefined_flag=' ${wl}-berok'
10273 if test "$with_gnu_ld" = yes; then
10274 # We only use this code for GNU lds that support --whole-archive.
10275 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10276 else
10277 # Exported symbols can be pulled into shared objects from archives
10278 whole_archive_flag_spec='$convenience'
10280 archive_cmds_need_lc=yes
10281 # This is similar to how AIX traditionally builds its shared libraries.
10282 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'
10287 amigaos*)
10288 case $host_cpu in
10289 powerpc)
10290 # see comment about AmigaOS4 .so support
10291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292 archive_expsym_cmds=''
10294 m68k)
10295 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)'
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_minus_L=yes
10299 esac
10302 bsdi[45]*)
10303 export_dynamic_flag_spec=-rdynamic
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 # When not using gcc, we currently assume that we are using
10308 # Microsoft Visual C++.
10309 # hardcode_libdir_flag_spec is actually meaningless, as there is
10310 # no search path for DLLs.
10311 hardcode_libdir_flag_spec=' '
10312 allow_undefined_flag=unsupported
10313 # Tell ltmain to make .lib files, not .a files.
10314 libext=lib
10315 # Tell ltmain to make .dll files, not .so files.
10316 shrext_cmds=".dll"
10317 # FIXME: Setting linknames here is a bad hack.
10318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10319 # The linker will automatically build a .lib file if we build a DLL.
10320 old_archive_from_new_cmds='true'
10321 # FIXME: Should let the user specify the lib program.
10322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10323 fix_srcfile_path='`cygpath -w "$srcfile"`'
10324 enable_shared_with_static_runtimes=yes
10327 darwin* | rhapsody*)
10330 archive_cmds_need_lc=no
10331 hardcode_direct=no
10332 hardcode_automatic=yes
10333 hardcode_shlibpath_var=unsupported
10334 if test "$lt_cv_ld_force_load" = "yes"; then
10335 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\"`'
10336 else
10337 whole_archive_flag_spec=''
10339 link_all_deplibs=yes
10340 allow_undefined_flag="$_lt_dar_allow_undefined"
10341 case $cc_basename in
10342 ifort*) _lt_dar_can_shared=yes ;;
10343 *) _lt_dar_can_shared=$GCC ;;
10344 esac
10345 if test "$_lt_dar_can_shared" = "yes"; then
10346 output_verbose_link_cmd=func_echo_all
10347 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10348 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10349 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}"
10350 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}"
10352 else
10353 ld_shlibs=no
10358 dgux*)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_shlibpath_var=no
10364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10365 # support. Future versions do this automatically, but an explicit c++rt0.o
10366 # does not break anything, and helps significantly (at the cost of a little
10367 # extra space).
10368 freebsd2.2*)
10369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10370 hardcode_libdir_flag_spec='-R$libdir'
10371 hardcode_direct=yes
10372 hardcode_shlibpath_var=no
10375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10376 freebsd2*)
10377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_direct=yes
10379 hardcode_minus_L=yes
10380 hardcode_shlibpath_var=no
10383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10384 freebsd* | dragonfly*)
10385 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10386 hardcode_libdir_flag_spec='-R$libdir'
10387 hardcode_direct=yes
10388 hardcode_shlibpath_var=no
10391 hpux9*)
10392 if test "$GCC" = yes; then
10393 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'
10394 else
10395 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'
10397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10398 hardcode_libdir_separator=:
10399 hardcode_direct=yes
10401 # hardcode_minus_L: Not really in the search PATH,
10402 # but as the default location of the library.
10403 hardcode_minus_L=yes
10404 export_dynamic_flag_spec='${wl}-E'
10407 hpux10*)
10408 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10410 else
10411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10413 if test "$with_gnu_ld" = no; then
10414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10415 hardcode_libdir_flag_spec_ld='+b $libdir'
10416 hardcode_libdir_separator=:
10417 hardcode_direct=yes
10418 hardcode_direct_absolute=yes
10419 export_dynamic_flag_spec='${wl}-E'
10420 # hardcode_minus_L: Not really in the search PATH,
10421 # but as the default location of the library.
10422 hardcode_minus_L=yes
10426 hpux11*)
10427 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10428 case $host_cpu in
10429 hppa*64*)
10430 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 ia64*)
10433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10436 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10438 esac
10439 else
10440 case $host_cpu in
10441 hppa*64*)
10442 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10444 ia64*)
10445 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10449 # Older versions of the 11.00 compiler do not understand -b yet
10450 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10452 $as_echo_n "checking if $CC understands -b... " >&6; }
10453 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 lt_cv_prog_compiler__b=no
10457 save_LDFLAGS="$LDFLAGS"
10458 LDFLAGS="$LDFLAGS -b"
10459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10461 # The linker can only warn and ignore the option if not recognized
10462 # So say no if there are warnings
10463 if test -s conftest.err; then
10464 # Append any errors to the config.log.
10465 cat conftest.err 1>&5
10466 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10468 if diff conftest.exp conftest.er2 >/dev/null; then
10469 lt_cv_prog_compiler__b=yes
10471 else
10472 lt_cv_prog_compiler__b=yes
10475 $RM -r conftest*
10476 LDFLAGS="$save_LDFLAGS"
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10480 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10482 if test x"$lt_cv_prog_compiler__b" = xyes; then
10483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10484 else
10485 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10489 esac
10491 if test "$with_gnu_ld" = no; then
10492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10493 hardcode_libdir_separator=:
10495 case $host_cpu in
10496 hppa*64*|ia64*)
10497 hardcode_direct=no
10498 hardcode_shlibpath_var=no
10501 hardcode_direct=yes
10502 hardcode_direct_absolute=yes
10503 export_dynamic_flag_spec='${wl}-E'
10505 # hardcode_minus_L: Not really in the search PATH,
10506 # but as the default location of the library.
10507 hardcode_minus_L=yes
10509 esac
10513 irix5* | irix6* | nonstopux*)
10514 if test "$GCC" = yes; then
10515 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'
10516 # Try to use the -exported_symbol ld option, if it does not
10517 # work, assume that -exports_file does not work either and
10518 # implicitly export all symbols.
10519 save_LDFLAGS="$LDFLAGS"
10520 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 int foo(void) {}
10524 _ACEOF
10525 if ac_fn_c_try_link "$LINENO"; then :
10526 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'
10529 rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LDFLAGS="$save_LDFLAGS"
10532 else
10533 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'
10534 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'
10536 archive_cmds_need_lc='no'
10537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538 hardcode_libdir_separator=:
10539 inherit_rpath=yes
10540 link_all_deplibs=yes
10543 netbsd*)
10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10546 else
10547 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10549 hardcode_libdir_flag_spec='-R$libdir'
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10554 newsos6)
10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_direct=yes
10557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558 hardcode_libdir_separator=:
10559 hardcode_shlibpath_var=no
10562 *nto* | *qnx*)
10565 openbsd*)
10566 if test -f /usr/libexec/ld.so; then
10567 hardcode_direct=yes
10568 hardcode_shlibpath_var=no
10569 hardcode_direct_absolute=yes
10570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10572 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10574 export_dynamic_flag_spec='${wl}-E'
10575 else
10576 case $host_os in
10577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_libdir_flag_spec='-R$libdir'
10582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10585 esac
10587 else
10588 ld_shlibs=no
10592 os2*)
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_minus_L=yes
10595 allow_undefined_flag=unsupported
10596 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'
10597 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10600 osf3*)
10601 if test "$GCC" = yes; then
10602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10603 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'
10604 else
10605 allow_undefined_flag=' -expect_unresolved \*'
10606 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'
10608 archive_cmds_need_lc='no'
10609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610 hardcode_libdir_separator=:
10613 osf4* | osf5*) # as osf3* with the addition of -msym flag
10614 if test "$GCC" = yes; then
10615 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10616 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'
10617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10618 else
10619 allow_undefined_flag=' -expect_unresolved \*'
10620 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'
10621 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~
10622 $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'
10624 # Both c and cxx compiler support -rpath directly
10625 hardcode_libdir_flag_spec='-rpath $libdir'
10627 archive_cmds_need_lc='no'
10628 hardcode_libdir_separator=:
10631 solaris*)
10632 no_undefined_flag=' -z defs'
10633 if test "$GCC" = yes; then
10634 wlarc='${wl}'
10635 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10637 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10638 else
10639 case `$CC -V 2>&1` in
10640 *"Compilers 5.0"*)
10641 wlarc=''
10642 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10647 wlarc='${wl}'
10648 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10650 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10652 esac
10654 hardcode_libdir_flag_spec='-R$libdir'
10655 hardcode_shlibpath_var=no
10656 case $host_os in
10657 solaris2.[0-5] | solaris2.[0-5].*) ;;
10659 # The compiler driver will combine and reorder linker options,
10660 # but understands `-z linker_flag'. GCC discards it without `$wl',
10661 # but is careful enough not to reorder.
10662 # Supported since Solaris 2.6 (maybe 2.5.1?)
10663 if test "$GCC" = yes; then
10664 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10665 else
10666 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10669 esac
10670 link_all_deplibs=yes
10673 sunos4*)
10674 if test "x$host_vendor" = xsequent; then
10675 # Use $CC to link under sequent, because it throws in some extra .o
10676 # files that make .init and .fini sections work.
10677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678 else
10679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_direct=yes
10683 hardcode_minus_L=yes
10684 hardcode_shlibpath_var=no
10687 sysv4)
10688 case $host_vendor in
10689 sni)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_direct=yes # is this really true???
10693 siemens)
10694 ## LD is ld it makes a PLAMLIB
10695 ## CC just makes a GrossModule.
10696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10697 reload_cmds='$CC -r -o $output$reload_objs'
10698 hardcode_direct=no
10700 motorola)
10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10704 esac
10705 runpath_var='LD_RUN_PATH'
10706 hardcode_shlibpath_var=no
10709 sysv4.3*)
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_shlibpath_var=no
10712 export_dynamic_flag_spec='-Bexport'
10715 sysv4*MP*)
10716 if test -d /usr/nec; then
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_shlibpath_var=no
10719 runpath_var=LD_RUN_PATH
10720 hardcode_runpath_var=yes
10721 ld_shlibs=yes
10725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10726 no_undefined_flag='${wl}-z,text'
10727 archive_cmds_need_lc=no
10728 hardcode_shlibpath_var=no
10729 runpath_var='LD_RUN_PATH'
10731 if test "$GCC" = yes; then
10732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 else
10735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10740 sysv5* | sco3.2v5* | sco5v6*)
10741 # Note: We can NOT use -z defs as we might desire, because we do not
10742 # link with -lc, and that would cause any symbols used from libc to
10743 # always be unresolved, which means just about no library would
10744 # ever link correctly. If we're not using GNU ld we use -z text
10745 # though, which does catch some bad symbols but isn't as heavy-handed
10746 # as -z defs.
10747 no_undefined_flag='${wl}-z,text'
10748 allow_undefined_flag='${wl}-z,nodefs'
10749 archive_cmds_need_lc=no
10750 hardcode_shlibpath_var=no
10751 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10752 hardcode_libdir_separator=':'
10753 link_all_deplibs=yes
10754 export_dynamic_flag_spec='${wl}-Bexport'
10755 runpath_var='LD_RUN_PATH'
10757 if test "$GCC" = yes; then
10758 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 else
10761 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 uts4*)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_libdir_flag_spec='-L$libdir'
10769 hardcode_shlibpath_var=no
10773 ld_shlibs=no
10775 esac
10777 if test x$host_vendor = xsni; then
10778 case $host in
10779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10780 export_dynamic_flag_spec='${wl}-Blargedynsym'
10782 esac
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10787 $as_echo "$ld_shlibs" >&6; }
10788 test "$ld_shlibs" = no && can_build_shared=no
10790 with_gnu_ld=$with_gnu_ld
10807 # Do we need to explicitly link libc?
10809 case "x$archive_cmds_need_lc" in
10810 x|xyes)
10811 # Assume -lc should be added
10812 archive_cmds_need_lc=yes
10814 if test "$enable_shared" = yes && test "$GCC" = yes; then
10815 case $archive_cmds in
10816 *'~'*)
10817 # FIXME: we may have to deal with multi-command sequences.
10819 '$CC '*)
10820 # Test whether the compiler implicitly links with -lc since on some
10821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10822 # to ld, don't add -lc before -lgcc.
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10824 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10825 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 $RM conftest*
10829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10832 (eval $ac_compile) 2>&5
10833 ac_status=$?
10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835 test $ac_status = 0; } 2>conftest.err; then
10836 soname=conftest
10837 lib=conftest
10838 libobjs=conftest.$ac_objext
10839 deplibs=
10840 wl=$lt_prog_compiler_wl
10841 pic_flag=$lt_prog_compiler_pic
10842 compiler_flags=-v
10843 linker_flags=-v
10844 verstring=
10845 output_objdir=.
10846 libname=conftest
10847 lt_save_allow_undefined_flag=$allow_undefined_flag
10848 allow_undefined_flag=
10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10850 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10851 ac_status=$?
10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; }
10854 then
10855 lt_cv_archive_cmds_need_lc=no
10856 else
10857 lt_cv_archive_cmds_need_lc=yes
10859 allow_undefined_flag=$lt_save_allow_undefined_flag
10860 else
10861 cat conftest.err 1>&5
10863 $RM conftest*
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10867 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10868 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10870 esac
10873 esac
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11032 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11034 if test "$GCC" = yes; then
11035 case $host_os in
11036 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11037 *) lt_awk_arg="/^libraries:/" ;;
11038 esac
11039 case $host_os in
11040 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11041 *) lt_sed_strip_eq="s,=/,/,g" ;;
11042 esac
11043 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11044 case $lt_search_path_spec in
11045 *\;*)
11046 # if the path contains ";" then we assume it to be the separator
11047 # otherwise default to the standard path separator (i.e. ":") - it is
11048 # assumed that no part of a normal pathname contains ";" but that should
11049 # okay in the real world where ";" in dirpaths is itself problematic.
11050 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11055 esac
11056 # Ok, now we have the path, separated by spaces, we can step through it
11057 # and add multilib dir if necessary.
11058 lt_tmp_lt_search_path_spec=
11059 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11060 for lt_sys_path in $lt_search_path_spec; do
11061 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11063 else
11064 test -d "$lt_sys_path" && \
11065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11067 done
11068 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11069 BEGIN {RS=" "; FS="/|\n";} {
11070 lt_foo="";
11071 lt_count=0;
11072 for (lt_i = NF; lt_i > 0; lt_i--) {
11073 if ($lt_i != "" && $lt_i != ".") {
11074 if ($lt_i == "..") {
11075 lt_count++;
11076 } else {
11077 if (lt_count == 0) {
11078 lt_foo="/" $lt_i lt_foo;
11079 } else {
11080 lt_count--;
11085 if (lt_foo != "") { lt_freq[lt_foo]++; }
11086 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11088 # AWK program above erroneously prepends '/' to C:/dos/paths
11089 # for these hosts.
11090 case $host_os in
11091 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11092 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11093 esac
11094 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11095 else
11096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11098 library_names_spec=
11099 libname_spec='lib$name'
11100 soname_spec=
11101 shrext_cmds=".so"
11102 postinstall_cmds=
11103 postuninstall_cmds=
11104 finish_cmds=
11105 finish_eval=
11106 shlibpath_var=
11107 shlibpath_overrides_runpath=unknown
11108 version_type=none
11109 dynamic_linker="$host_os ld.so"
11110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11111 need_lib_prefix=unknown
11112 hardcode_into_libs=no
11114 # when you set need_version to no, make sure it does not cause -set_version
11115 # flags to be left without arguments
11116 need_version=unknown
11118 case $host_os in
11119 aix3*)
11120 version_type=linux
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11122 shlibpath_var=LIBPATH
11124 # AIX 3 has no versioning support, so we append a major version to the name.
11125 soname_spec='${libname}${release}${shared_ext}$major'
11128 aix[4-9]*)
11129 version_type=linux
11130 need_lib_prefix=no
11131 need_version=no
11132 hardcode_into_libs=yes
11133 if test "$host_cpu" = ia64; then
11134 # AIX 5 supports IA64
11135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 else
11138 # With GCC up to 2.95.x, collect2 would create an import file
11139 # for dependence libraries. The import file would start with
11140 # the line `#! .'. This would cause the generated library to
11141 # depend on `.', always an invalid library. This was fixed in
11142 # development snapshots of GCC prior to 3.0.
11143 case $host_os in
11144 aix4 | aix4.[01] | aix4.[01].*)
11145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146 echo ' yes '
11147 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11149 else
11150 can_build_shared=no
11153 esac
11154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11155 # soname into executable. Probably we can add versioning support to
11156 # collect2, so additional links can be useful in future.
11157 if test "$aix_use_runtimelinking" = yes; then
11158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159 # instead of lib<name>.a to let people know that these are not
11160 # typical AIX shared libraries.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 else
11163 # We preserve .a as extension for shared libraries through AIX4.2
11164 # and later when we are not doing run time linking.
11165 library_names_spec='${libname}${release}.a $libname.a'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11168 shlibpath_var=LIBPATH
11172 amigaos*)
11173 case $host_cpu in
11174 powerpc)
11175 # Since July 2007 AmigaOS4 officially supports .so libraries.
11176 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 m68k)
11180 library_names_spec='$libname.ixlibrary $libname.a'
11181 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11182 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'
11184 esac
11187 beos*)
11188 library_names_spec='${libname}${shared_ext}'
11189 dynamic_linker="$host_os ld.so"
11190 shlibpath_var=LIBRARY_PATH
11193 bsdi[45]*)
11194 version_type=linux
11195 need_version=no
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11202 # the default ld.so.conf also contains /usr/contrib/lib and
11203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11204 # libtool to hard-code these into programs
11207 cygwin* | mingw* | pw32* | cegcc*)
11208 version_type=windows
11209 shrext_cmds=".dll"
11210 need_version=no
11211 need_lib_prefix=no
11213 case $GCC,$host_os in
11214 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11215 library_names_spec='$libname.dll.a'
11216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11217 postinstall_cmds='base_file=`basename \${file}`~
11218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11219 dldir=$destdir/`dirname \$dlpath`~
11220 test -d \$dldir || mkdir -p \$dldir~
11221 $install_prog $dir/$dlname \$dldir/$dlname~
11222 chmod a+x \$dldir/$dlname~
11223 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11224 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11227 dlpath=$dir/\$dldll~
11228 $RM \$dlpath'
11229 shlibpath_overrides_runpath=yes
11231 case $host_os in
11232 cygwin*)
11233 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11234 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11238 mingw* | cegcc*)
11239 # MinGW DLLs use traditional 'lib' prefix
11240 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242 pw32*)
11243 # pw32 DLLs use 'pw' prefix rather than 'lib'
11244 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11246 esac
11250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11252 esac
11253 dynamic_linker='Win32 ld.exe'
11254 # FIXME: first we should search . and the directory the executable is in
11255 shlibpath_var=PATH
11258 darwin* | rhapsody*)
11259 dynamic_linker="$host_os dyld"
11260 version_type=darwin
11261 need_lib_prefix=no
11262 need_version=no
11263 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11264 soname_spec='${libname}${release}${major}$shared_ext'
11265 shlibpath_overrides_runpath=yes
11266 shlibpath_var=DYLD_LIBRARY_PATH
11267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11273 dgux*)
11274 version_type=linux
11275 need_lib_prefix=no
11276 need_version=no
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11282 freebsd* | dragonfly*)
11283 # DragonFly does not have aout. When/if they implement a new
11284 # versioning mechanism, adjust this.
11285 if test -x /usr/bin/objformat; then
11286 objformat=`/usr/bin/objformat`
11287 else
11288 case $host_os in
11289 freebsd[123]*) objformat=aout ;;
11290 *) objformat=elf ;;
11291 esac
11293 version_type=freebsd-$objformat
11294 case $version_type in
11295 freebsd-elf*)
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11297 need_version=no
11298 need_lib_prefix=no
11300 freebsd-*)
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11302 need_version=yes
11304 esac
11305 shlibpath_var=LD_LIBRARY_PATH
11306 case $host_os in
11307 freebsd2*)
11308 shlibpath_overrides_runpath=yes
11310 freebsd3.[01]* | freebsdelf3.[01]*)
11311 shlibpath_overrides_runpath=yes
11312 hardcode_into_libs=yes
11314 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11315 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11316 shlibpath_overrides_runpath=no
11317 hardcode_into_libs=yes
11319 *) # from 4.6 on, and DragonFly
11320 shlibpath_overrides_runpath=yes
11321 hardcode_into_libs=yes
11323 esac
11326 gnu*)
11327 version_type=linux
11328 need_lib_prefix=no
11329 need_version=no
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11331 soname_spec='${libname}${release}${shared_ext}$major'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 hardcode_into_libs=yes
11336 haiku*)
11337 version_type=linux
11338 need_lib_prefix=no
11339 need_version=no
11340 dynamic_linker="$host_os runtime_loader"
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11345 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11346 hardcode_into_libs=yes
11349 hpux9* | hpux10* | hpux11*)
11350 # Give a soname corresponding to the major version so that dld.sl refuses to
11351 # link against other versions.
11352 version_type=sunos
11353 need_lib_prefix=no
11354 need_version=no
11355 case $host_cpu in
11356 ia64*)
11357 shrext_cmds='.so'
11358 hardcode_into_libs=yes
11359 dynamic_linker="$host_os dld.so"
11360 shlibpath_var=LD_LIBRARY_PATH
11361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 if test "X$HPUX_IA64_MODE" = X32; then
11365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11366 else
11367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371 hppa*64*)
11372 shrext_cmds='.sl'
11373 hardcode_into_libs=yes
11374 dynamic_linker="$host_os dld.sl"
11375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11383 shrext_cmds='.sl'
11384 dynamic_linker="$host_os dld.sl"
11385 shlibpath_var=SHLIB_PATH
11386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11390 esac
11391 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11392 postinstall_cmds='chmod 555 $lib'
11393 # or fails outright, so override atomically:
11394 install_override_mode=555
11397 interix[3-9]*)
11398 version_type=linux
11399 need_lib_prefix=no
11400 need_version=no
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=no
11406 hardcode_into_libs=yes
11409 irix5* | irix6* | nonstopux*)
11410 case $host_os in
11411 nonstopux*) version_type=nonstopux ;;
11413 if test "$lt_cv_prog_gnu_ld" = yes; then
11414 version_type=linux
11415 else
11416 version_type=irix
11417 fi ;;
11418 esac
11419 need_lib_prefix=no
11420 need_version=no
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11423 case $host_os in
11424 irix5* | nonstopux*)
11425 libsuff= shlibsuff=
11428 case $LD in # libtool.m4 will add one of these switches to LD
11429 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11430 libsuff= shlibsuff= libmagic=32-bit;;
11431 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11432 libsuff=32 shlibsuff=N32 libmagic=N32;;
11433 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11434 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11435 *) libsuff= shlibsuff= libmagic=never-match;;
11436 esac
11438 esac
11439 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11440 shlibpath_overrides_runpath=no
11441 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11442 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11443 hardcode_into_libs=yes
11446 # No shared lib support for Linux oldld, aout, or coff.
11447 linux*oldld* | linux*aout* | linux*coff*)
11448 dynamic_linker=no
11451 # This must be Linux ELF.
11452 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11453 version_type=linux
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=no
11462 # Some binutils ld are patched to set DT_RUNPATH
11463 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 lt_cv_shlibpath_overrides_runpath=no
11467 save_LDFLAGS=$LDFLAGS
11468 save_libdir=$libdir
11469 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11470 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11475 main ()
11479 return 0;
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11484 lt_cv_shlibpath_overrides_runpath=yes
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LDFLAGS=$save_LDFLAGS
11490 libdir=$save_libdir
11494 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11496 # This implies no fast_install, which is unacceptable.
11497 # Some rework will be needed to allow for fast_install
11498 # before this can be enabled.
11499 hardcode_into_libs=yes
11501 # Append ld.so.conf contents to the search path
11502 if test -f /etc/ld.so.conf; then
11503 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' ' '`
11504 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11507 # We used to test for /lib/ld.so.1 and disable shared libraries on
11508 # powerpc, because MkLinux only supported shared libraries with the
11509 # GNU dynamic linker. Since this was broken with cross compilers,
11510 # most powerpc-linux boxes support dynamic linking these days and
11511 # people can always --disable-shared, the test was removed, and we
11512 # assume the GNU/Linux dynamic linker is in use.
11513 dynamic_linker='GNU/Linux ld.so'
11516 netbsd*)
11517 version_type=sunos
11518 need_lib_prefix=no
11519 need_version=no
11520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11523 dynamic_linker='NetBSD (a.out) ld.so'
11524 else
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 dynamic_linker='NetBSD ld.elf_so'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11531 hardcode_into_libs=yes
11534 newsos6)
11535 version_type=linux
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11541 *nto* | *qnx*)
11542 version_type=qnx
11543 need_lib_prefix=no
11544 need_version=no
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 soname_spec='${libname}${release}${shared_ext}$major'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=no
11549 hardcode_into_libs=yes
11550 dynamic_linker='ldqnx.so'
11553 openbsd*)
11554 version_type=sunos
11555 sys_lib_dlsearch_path_spec="/usr/lib"
11556 need_lib_prefix=no
11557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11558 case $host_os in
11559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11560 *) need_version=no ;;
11561 esac
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11566 case $host_os in
11567 openbsd2.[89] | openbsd2.[89].*)
11568 shlibpath_overrides_runpath=no
11571 shlibpath_overrides_runpath=yes
11573 esac
11574 else
11575 shlibpath_overrides_runpath=yes
11579 os2*)
11580 libname_spec='$name'
11581 shrext_cmds=".dll"
11582 need_lib_prefix=no
11583 library_names_spec='$libname${shared_ext} $libname.a'
11584 dynamic_linker='OS/2 ld.exe'
11585 shlibpath_var=LIBPATH
11588 osf3* | osf4* | osf5*)
11589 version_type=osf
11590 need_lib_prefix=no
11591 need_version=no
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11599 rdos*)
11600 dynamic_linker=no
11603 solaris*)
11604 version_type=linux
11605 need_lib_prefix=no
11606 need_version=no
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes
11611 hardcode_into_libs=yes
11612 # ldd complains unless libraries are executable
11613 postinstall_cmds='chmod +x $lib'
11616 sunos4*)
11617 version_type=sunos
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11620 shlibpath_var=LD_LIBRARY_PATH
11621 shlibpath_overrides_runpath=yes
11622 if test "$with_gnu_ld" = yes; then
11623 need_lib_prefix=no
11625 need_version=yes
11628 sysv4 | sysv4.3*)
11629 version_type=linux
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 case $host_vendor in
11634 sni)
11635 shlibpath_overrides_runpath=no
11636 need_lib_prefix=no
11637 runpath_var=LD_RUN_PATH
11639 siemens)
11640 need_lib_prefix=no
11642 motorola)
11643 need_lib_prefix=no
11644 need_version=no
11645 shlibpath_overrides_runpath=no
11646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11648 esac
11651 sysv4*MP*)
11652 if test -d /usr/nec ;then
11653 version_type=linux
11654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11655 soname_spec='$libname${shared_ext}.$major'
11656 shlibpath_var=LD_LIBRARY_PATH
11660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11661 version_type=freebsd-elf
11662 need_lib_prefix=no
11663 need_version=no
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=yes
11668 hardcode_into_libs=yes
11669 if test "$with_gnu_ld" = yes; then
11670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11671 else
11672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11673 case $host_os in
11674 sco3.2v5*)
11675 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11677 esac
11679 sys_lib_dlsearch_path_spec='/usr/lib'
11682 tpf*)
11683 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11684 version_type=linux
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 shlibpath_overrides_runpath=no
11690 hardcode_into_libs=yes
11693 uts4*)
11694 version_type=linux
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11701 dynamic_linker=no
11703 esac
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11705 $as_echo "$dynamic_linker" >&6; }
11706 test "$dynamic_linker" = no && can_build_shared=no
11708 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11709 if test "$GCC" = yes; then
11710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11713 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11714 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11716 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11717 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11812 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11813 hardcode_action=
11814 if test -n "$hardcode_libdir_flag_spec" ||
11815 test -n "$runpath_var" ||
11816 test "X$hardcode_automatic" = "Xyes" ; then
11818 # We can hardcode non-existent directories.
11819 if test "$hardcode_direct" != no &&
11820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11821 # have to relink, otherwise we might link with an installed library
11822 # when we should be linking with a yet-to-be-installed one
11823 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11824 test "$hardcode_minus_L" != no; then
11825 # Linking always hardcodes the temporary library directory.
11826 hardcode_action=relink
11827 else
11828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11829 hardcode_action=immediate
11831 else
11832 # We cannot hardcode anything, or else we can only hardcode existing
11833 # directories.
11834 hardcode_action=unsupported
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11837 $as_echo "$hardcode_action" >&6; }
11839 if test "$hardcode_action" = relink ||
11840 test "$inherit_rpath" = yes; then
11841 # Fast installation is not supported
11842 enable_fast_install=no
11843 elif test "$shlibpath_overrides_runpath" = yes ||
11844 test "$enable_shared" = no; then
11845 # Fast installation is not necessary
11846 enable_fast_install=needless
11854 if test "x$enable_dlopen" != xyes; then
11855 enable_dlopen=unknown
11856 enable_dlopen_self=unknown
11857 enable_dlopen_self_static=unknown
11858 else
11859 lt_cv_dlopen=no
11860 lt_cv_dlopen_libs=
11862 case $host_os in
11863 beos*)
11864 lt_cv_dlopen="load_add_on"
11865 lt_cv_dlopen_libs=
11866 lt_cv_dlopen_self=yes
11869 mingw* | pw32* | cegcc*)
11870 lt_cv_dlopen="LoadLibrary"
11871 lt_cv_dlopen_libs=
11874 cygwin*)
11875 lt_cv_dlopen="dlopen"
11876 lt_cv_dlopen_libs=
11879 darwin*)
11880 # if libdl is installed we need to link against it
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-ldl $LIBS"
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 char dlopen ();
11899 main ()
11901 return dlopen ();
11903 return 0;
11905 _ACEOF
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_lib_dl_dlopen=yes
11908 else
11909 ac_cv_lib_dl_dlopen=no
11911 rm -f core conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11913 LIBS=$ac_check_lib_save_LIBS
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11916 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11917 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11919 else
11921 lt_cv_dlopen="dyld"
11922 lt_cv_dlopen_libs=
11923 lt_cv_dlopen_self=yes
11930 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11931 if test "x$ac_cv_func_shl_load" = x""yes; then :
11932 lt_cv_dlopen="shl_load"
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11935 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-ldld $LIBS"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char shl_load ();
11952 main ()
11954 return shl_load ();
11956 return 0;
11958 _ACEOF
11959 if ac_fn_c_try_link "$LINENO"; then :
11960 ac_cv_lib_dld_shl_load=yes
11961 else
11962 ac_cv_lib_dld_shl_load=no
11964 rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11969 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11970 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11972 else
11973 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11974 if test "x$ac_cv_func_dlopen" = x""yes; then :
11975 lt_cv_dlopen="dlopen"
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11978 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-ldl $LIBS"
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char dlopen ();
11995 main ()
11997 return dlopen ();
11999 return 0;
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_lib_dl_dlopen=yes
12004 else
12005 ac_cv_lib_dl_dlopen=no
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12013 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12015 else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12017 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-lsvld $LIBS"
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12026 /* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
12029 #ifdef __cplusplus
12030 extern "C"
12031 #endif
12032 char dlopen ();
12034 main ()
12036 return dlopen ();
12038 return 0;
12040 _ACEOF
12041 if ac_fn_c_try_link "$LINENO"; then :
12042 ac_cv_lib_svld_dlopen=yes
12043 else
12044 ac_cv_lib_svld_dlopen=no
12046 rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12051 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12052 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12053 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12054 else
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12056 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 ac_check_lib_save_LIBS=$LIBS
12061 LIBS="-ldld $LIBS"
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char dld_link ();
12073 main ()
12075 return dld_link ();
12077 return 0;
12079 _ACEOF
12080 if ac_fn_c_try_link "$LINENO"; then :
12081 ac_cv_lib_dld_dld_link=yes
12082 else
12083 ac_cv_lib_dld_dld_link=no
12085 rm -f core conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12090 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12091 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12111 esac
12113 if test "x$lt_cv_dlopen" != xno; then
12114 enable_dlopen=yes
12115 else
12116 enable_dlopen=no
12119 case $lt_cv_dlopen in
12120 dlopen)
12121 save_CPPFLAGS="$CPPFLAGS"
12122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12124 save_LDFLAGS="$LDFLAGS"
12125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12127 save_LIBS="$LIBS"
12128 LIBS="$lt_cv_dlopen_libs $LIBS"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12131 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12132 if test "${lt_cv_dlopen_self+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self=cross
12137 else
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<_LT_EOF
12141 #line 12141 "configure"
12142 #include "confdefs.h"
12144 #if HAVE_DLFCN_H
12145 #include <dlfcn.h>
12146 #endif
12148 #include <stdio.h>
12150 #ifdef RTLD_GLOBAL
12151 # define LT_DLGLOBAL RTLD_GLOBAL
12152 #else
12153 # ifdef DL_GLOBAL
12154 # define LT_DLGLOBAL DL_GLOBAL
12155 # else
12156 # define LT_DLGLOBAL 0
12157 # endif
12158 #endif
12160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162 #ifndef LT_DLLAZY_OR_NOW
12163 # ifdef RTLD_LAZY
12164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12165 # else
12166 # ifdef DL_LAZY
12167 # define LT_DLLAZY_OR_NOW DL_LAZY
12168 # else
12169 # ifdef RTLD_NOW
12170 # define LT_DLLAZY_OR_NOW RTLD_NOW
12171 # else
12172 # ifdef DL_NOW
12173 # define LT_DLLAZY_OR_NOW DL_NOW
12174 # else
12175 # define LT_DLLAZY_OR_NOW 0
12176 # endif
12177 # endif
12178 # endif
12179 # endif
12180 #endif
12182 /* When -fvisbility=hidden is used, assume the code has been annotated
12183 correspondingly for the symbols needed. */
12184 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185 void fnord () __attribute__((visibility("default")));
12186 #endif
12188 void fnord () { int i=42; }
12189 int main ()
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12194 if (self)
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 else
12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12200 else puts (dlerror ());
12202 /* dlclose (self); */
12204 else
12205 puts (dlerror ());
12207 return status;
12209 _LT_EOF
12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12211 (eval $ac_link) 2>&5
12212 ac_status=$?
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12215 (./conftest; exit; ) >&5 2>/dev/null
12216 lt_status=$?
12217 case x$lt_status in
12218 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12219 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12220 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12221 esac
12222 else :
12223 # compilation failed
12224 lt_cv_dlopen_self=no
12227 rm -fr conftest*
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12232 $as_echo "$lt_cv_dlopen_self" >&6; }
12234 if test "x$lt_cv_dlopen_self" = xyes; then
12235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12237 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12238 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test "$cross_compiling" = yes; then :
12242 lt_cv_dlopen_self_static=cross
12243 else
12244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12245 lt_status=$lt_dlunknown
12246 cat > conftest.$ac_ext <<_LT_EOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12250 #if HAVE_DLFCN_H
12251 #include <dlfcn.h>
12252 #endif
12254 #include <stdio.h>
12256 #ifdef RTLD_GLOBAL
12257 # define LT_DLGLOBAL RTLD_GLOBAL
12258 #else
12259 # ifdef DL_GLOBAL
12260 # define LT_DLGLOBAL DL_GLOBAL
12261 # else
12262 # define LT_DLGLOBAL 0
12263 # endif
12264 #endif
12266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12267 find out it does not work in some platform. */
12268 #ifndef LT_DLLAZY_OR_NOW
12269 # ifdef RTLD_LAZY
12270 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12271 # else
12272 # ifdef DL_LAZY
12273 # define LT_DLLAZY_OR_NOW DL_LAZY
12274 # else
12275 # ifdef RTLD_NOW
12276 # define LT_DLLAZY_OR_NOW RTLD_NOW
12277 # else
12278 # ifdef DL_NOW
12279 # define LT_DLLAZY_OR_NOW DL_NOW
12280 # else
12281 # define LT_DLLAZY_OR_NOW 0
12282 # endif
12283 # endif
12284 # endif
12285 # endif
12286 #endif
12288 /* When -fvisbility=hidden is used, assume the code has been annotated
12289 correspondingly for the symbols needed. */
12290 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12291 void fnord () __attribute__((visibility("default")));
12292 #endif
12294 void fnord () { int i=42; }
12295 int main ()
12297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12298 int status = $lt_dlunknown;
12300 if (self)
12302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12303 else
12305 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12306 else puts (dlerror ());
12308 /* dlclose (self); */
12310 else
12311 puts (dlerror ());
12313 return status;
12315 _LT_EOF
12316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12317 (eval $ac_link) 2>&5
12318 ac_status=$?
12319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12320 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12321 (./conftest; exit; ) >&5 2>/dev/null
12322 lt_status=$?
12323 case x$lt_status in
12324 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12325 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12326 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12327 esac
12328 else :
12329 # compilation failed
12330 lt_cv_dlopen_self_static=no
12333 rm -fr conftest*
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12338 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12341 CPPFLAGS="$save_CPPFLAGS"
12342 LDFLAGS="$save_LDFLAGS"
12343 LIBS="$save_LIBS"
12345 esac
12347 case $lt_cv_dlopen_self in
12348 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12349 *) enable_dlopen_self=unknown ;;
12350 esac
12352 case $lt_cv_dlopen_self_static in
12353 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12354 *) enable_dlopen_self_static=unknown ;;
12355 esac
12374 striplib=
12375 old_striplib=
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12377 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12378 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12379 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12380 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12382 $as_echo "yes" >&6; }
12383 else
12384 # FIXME - insert some real tests, host_os isn't really good enough
12385 case $host_os in
12386 darwin*)
12387 if test -n "$STRIP" ; then
12388 striplib="$STRIP -x"
12389 old_striplib="$STRIP -S"
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12391 $as_echo "yes" >&6; }
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12401 esac
12415 # Report which library types will actually be built
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12417 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12419 $as_echo "$can_build_shared" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12422 $as_echo_n "checking whether to build shared libraries... " >&6; }
12423 test "$can_build_shared" = "no" && enable_shared=no
12425 # On AIX, shared libraries and static libraries use the same namespace, and
12426 # are all built from PIC.
12427 case $host_os in
12428 aix3*)
12429 test "$enable_shared" = yes && enable_static=no
12430 if test -n "$RANLIB"; then
12431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12432 postinstall_cmds='$RANLIB $lib'
12436 aix[4-9]*)
12437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12438 test "$enable_shared" = yes && enable_static=no
12441 esac
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12443 $as_echo "$enable_shared" >&6; }
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12446 $as_echo_n "checking whether to build static libraries... " >&6; }
12447 # Make sure either enable_shared or enable_static is yes.
12448 test "$enable_shared" = yes || enable_static=yes
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12450 $as_echo "$enable_static" >&6; }
12456 ac_ext=c
12457 ac_cpp='$CPP $CPPFLAGS'
12458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12462 CC="$lt_save_CC"
12464 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12465 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12466 (test "X$CXX" != "Xg++"))) ; then
12467 ac_ext=cpp
12468 ac_cpp='$CXXCPP $CPPFLAGS'
12469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12473 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12474 if test -z "$CXXCPP"; then
12475 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 # Double quotes because CXXCPP needs to be expanded
12479 for CXXCPP in "$CXX -E" "/lib/cpp"
12481 ac_preproc_ok=false
12482 for ac_cxx_preproc_warn_flag in '' yes
12484 # Use a header file that comes with gcc, so configuring glibc
12485 # with a fresh cross-compiler works.
12486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12487 # <limits.h> exists even on freestanding compilers.
12488 # On the NeXT, cc -E runs the code through the compiler's parser,
12489 # not just through cpp. "Syntax error" is here to catch this case.
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12492 #ifdef __STDC__
12493 # include <limits.h>
12494 #else
12495 # include <assert.h>
12496 #endif
12497 Syntax error
12498 _ACEOF
12499 if ac_fn_cxx_try_cpp "$LINENO"; then :
12501 else
12502 # Broken: fails on valid input.
12503 continue
12505 rm -f conftest.err conftest.$ac_ext
12507 # OK, works on sane cases. Now check whether nonexistent headers
12508 # can be detected and how.
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 #include <ac_nonexistent.h>
12512 _ACEOF
12513 if ac_fn_cxx_try_cpp "$LINENO"; then :
12514 # Broken: success on invalid input.
12515 continue
12516 else
12517 # Passes both tests.
12518 ac_preproc_ok=:
12519 break
12521 rm -f conftest.err conftest.$ac_ext
12523 done
12524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12525 rm -f conftest.err conftest.$ac_ext
12526 if $ac_preproc_ok; then :
12527 break
12530 done
12531 ac_cv_prog_CXXCPP=$CXXCPP
12534 CXXCPP=$ac_cv_prog_CXXCPP
12535 else
12536 ac_cv_prog_CXXCPP=$CXXCPP
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12539 $as_echo "$CXXCPP" >&6; }
12540 ac_preproc_ok=false
12541 for ac_cxx_preproc_warn_flag in '' yes
12543 # Use a header file that comes with gcc, so configuring glibc
12544 # with a fresh cross-compiler works.
12545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12546 # <limits.h> exists even on freestanding compilers.
12547 # On the NeXT, cc -E runs the code through the compiler's parser,
12548 # not just through cpp. "Syntax error" is here to catch this case.
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12551 #ifdef __STDC__
12552 # include <limits.h>
12553 #else
12554 # include <assert.h>
12555 #endif
12556 Syntax error
12557 _ACEOF
12558 if ac_fn_cxx_try_cpp "$LINENO"; then :
12560 else
12561 # Broken: fails on valid input.
12562 continue
12564 rm -f conftest.err conftest.$ac_ext
12566 # OK, works on sane cases. Now check whether nonexistent headers
12567 # can be detected and how.
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 #include <ac_nonexistent.h>
12571 _ACEOF
12572 if ac_fn_cxx_try_cpp "$LINENO"; then :
12573 # Broken: success on invalid input.
12574 continue
12575 else
12576 # Passes both tests.
12577 ac_preproc_ok=:
12578 break
12580 rm -f conftest.err conftest.$ac_ext
12582 done
12583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12584 rm -f conftest.err conftest.$ac_ext
12585 if $ac_preproc_ok; then :
12587 else
12588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12590 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12591 See \`config.log' for more details." "$LINENO" 5; }
12594 ac_ext=c
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12600 else
12601 _lt_caught_CXX_error=yes
12604 ac_ext=cpp
12605 ac_cpp='$CXXCPP $CPPFLAGS'
12606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12610 archive_cmds_need_lc_CXX=no
12611 allow_undefined_flag_CXX=
12612 always_export_symbols_CXX=no
12613 archive_expsym_cmds_CXX=
12614 compiler_needs_object_CXX=no
12615 export_dynamic_flag_spec_CXX=
12616 hardcode_direct_CXX=no
12617 hardcode_direct_absolute_CXX=no
12618 hardcode_libdir_flag_spec_CXX=
12619 hardcode_libdir_flag_spec_ld_CXX=
12620 hardcode_libdir_separator_CXX=
12621 hardcode_minus_L_CXX=no
12622 hardcode_shlibpath_var_CXX=unsupported
12623 hardcode_automatic_CXX=no
12624 inherit_rpath_CXX=no
12625 module_cmds_CXX=
12626 module_expsym_cmds_CXX=
12627 link_all_deplibs_CXX=unknown
12628 old_archive_cmds_CXX=$old_archive_cmds
12629 reload_flag_CXX=$reload_flag
12630 reload_cmds_CXX=$reload_cmds
12631 no_undefined_flag_CXX=
12632 whole_archive_flag_spec_CXX=
12633 enable_shared_with_static_runtimes_CXX=no
12635 # Source file extension for C++ test sources.
12636 ac_ext=cpp
12638 # Object file extension for compiled C++ test sources.
12639 objext=o
12640 objext_CXX=$objext
12642 # No sense in running all these tests if we already determined that
12643 # the CXX compiler isn't working. Some variables (like enable_shared)
12644 # are currently assumed to apply to all compilers on this platform,
12645 # and will be corrupted by setting them based on a non-working compiler.
12646 if test "$_lt_caught_CXX_error" != yes; then
12647 # Code to be used in simple compile tests
12648 lt_simple_compile_test_code="int some_variable = 0;"
12650 # Code to be used in simple link tests
12651 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12653 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12660 # If no C compiler was specified, use CC.
12661 LTCC=${LTCC-"$CC"}
12663 # If no C compiler flags were specified, use CFLAGS.
12664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12666 # Allow CC to be a program name with arguments.
12667 compiler=$CC
12670 # save warnings/boilerplate of simple test code
12671 ac_outfile=conftest.$ac_objext
12672 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12674 _lt_compiler_boilerplate=`cat conftest.err`
12675 $RM conftest*
12677 ac_outfile=conftest.$ac_objext
12678 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12680 _lt_linker_boilerplate=`cat conftest.err`
12681 $RM -r conftest*
12684 # Allow CC to be a program name with arguments.
12685 lt_save_CC=$CC
12686 lt_save_LD=$LD
12687 lt_save_GCC=$GCC
12688 GCC=$GXX
12689 lt_save_with_gnu_ld=$with_gnu_ld
12690 lt_save_path_LD=$lt_cv_path_LD
12691 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12692 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12693 else
12694 $as_unset lt_cv_prog_gnu_ld
12696 if test -n "${lt_cv_path_LDCXX+set}"; then
12697 lt_cv_path_LD=$lt_cv_path_LDCXX
12698 else
12699 $as_unset lt_cv_path_LD
12701 test -z "${LDCXX+set}" || LD=$LDCXX
12702 CC=${CXX-"c++"}
12703 compiler=$CC
12704 compiler_CXX=$CC
12705 for cc_temp in $compiler""; do
12706 case $cc_temp in
12707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12709 \-*) ;;
12710 *) break;;
12711 esac
12712 done
12713 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12716 if test -n "$compiler"; then
12717 # We don't want -fno-exception when compiling C++ code, so set the
12718 # no_builtin_flag separately
12719 if test "$GXX" = yes; then
12720 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12721 else
12722 lt_prog_compiler_no_builtin_flag_CXX=
12725 if test "$GXX" = yes; then
12726 # Set up default GNU C++ configuration
12730 # Check whether --with-gnu-ld was given.
12731 if test "${with_gnu_ld+set}" = set; then :
12732 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12733 else
12734 with_gnu_ld=no
12737 ac_prog=ld
12738 if test "$GCC" = yes; then
12739 # Check if gcc -print-prog-name=ld gives a path.
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12741 $as_echo_n "checking for ld used by $CC... " >&6; }
12742 case $host in
12743 *-*-mingw*)
12744 # gcc leaves a trailing carriage return which upsets mingw
12745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12748 esac
12749 case $ac_prog in
12750 # Accept absolute paths.
12751 [\\/]* | ?:[\\/]*)
12752 re_direlt='/[^/][^/]*/\.\./'
12753 # Canonicalize the pathname of ld
12754 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12755 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12756 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12757 done
12758 test -z "$LD" && LD="$ac_prog"
12761 # If it fails, then pretend we aren't using GCC.
12762 ac_prog=ld
12765 # If it is relative, then search for the first ld in PATH.
12766 with_gnu_ld=unknown
12768 esac
12769 elif test "$with_gnu_ld" = yes; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12771 $as_echo_n "checking for GNU ld... " >&6; }
12772 else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12774 $as_echo_n "checking for non-GNU ld... " >&6; }
12776 if test "${lt_cv_path_LD+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 if test -z "$LD"; then
12780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12781 for ac_dir in $PATH; do
12782 IFS="$lt_save_ifs"
12783 test -z "$ac_dir" && ac_dir=.
12784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12785 lt_cv_path_LD="$ac_dir/$ac_prog"
12786 # Check to see if the program is GNU ld. I'd rather use --version,
12787 # but apparently some variants of GNU ld only accept -v.
12788 # Break only if it was the GNU/non-GNU ld that we prefer.
12789 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12790 *GNU* | *'with BFD'*)
12791 test "$with_gnu_ld" != no && break
12794 test "$with_gnu_ld" != yes && break
12796 esac
12798 done
12799 IFS="$lt_save_ifs"
12800 else
12801 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12805 LD="$lt_cv_path_LD"
12806 if test -n "$LD"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12808 $as_echo "$LD" >&6; }
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12813 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12815 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12816 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12820 case `$LD -v 2>&1 </dev/null` in
12821 *GNU* | *'with BFD'*)
12822 lt_cv_prog_gnu_ld=yes
12825 lt_cv_prog_gnu_ld=no
12827 esac
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12830 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12831 with_gnu_ld=$lt_cv_prog_gnu_ld
12839 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12840 # archiving commands below assume that GNU ld is being used.
12841 if test "$with_gnu_ld" = yes; then
12842 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12843 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12848 # If archive_cmds runs LD, not CC, wlarc should be empty
12849 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12850 # investigate it a little bit more. (MM)
12851 wlarc='${wl}'
12853 # ancient GNU ld didn't support --whole-archive et. al.
12854 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12855 $GREP 'no-whole-archive' > /dev/null; then
12856 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12857 else
12858 whole_archive_flag_spec_CXX=
12860 else
12861 with_gnu_ld=no
12862 wlarc=
12864 # A generic and very simple default shared library creation
12865 # command for GNU C++ for the case where it uses the native
12866 # linker, instead of GNU ld. If possible, this setting should
12867 # overridden to take advantage of the native linker features on
12868 # the platform it is being used on.
12869 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12877 else
12878 GXX=no
12879 with_gnu_ld=no
12880 wlarc=
12883 # PORTME: fill in a description of your system's C++ link characteristics
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12886 ld_shlibs_CXX=yes
12887 case $host_os in
12888 aix3*)
12889 # FIXME: insert proper C++ library support
12890 ld_shlibs_CXX=no
12892 aix[4-9]*)
12893 if test "$host_cpu" = ia64; then
12894 # On IA64, the linker does run time linking by default, so we don't
12895 # have to do anything special.
12896 aix_use_runtimelinking=no
12897 exp_sym_flag='-Bexport'
12898 no_entry_flag=""
12899 else
12900 aix_use_runtimelinking=no
12902 # Test if we are trying to use run time linking or normal
12903 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12904 # need to do runtime linking.
12905 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12906 for ld_flag in $LDFLAGS; do
12907 case $ld_flag in
12908 *-brtl*)
12909 aix_use_runtimelinking=yes
12910 break
12912 esac
12913 done
12915 esac
12917 exp_sym_flag='-bexport'
12918 no_entry_flag='-bnoentry'
12921 # When large executables or shared objects are built, AIX ld can
12922 # have problems creating the table of contents. If linking a library
12923 # or program results in "error TOC overflow" add -mminimal-toc to
12924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12927 archive_cmds_CXX=''
12928 hardcode_direct_CXX=yes
12929 hardcode_direct_absolute_CXX=yes
12930 hardcode_libdir_separator_CXX=':'
12931 link_all_deplibs_CXX=yes
12932 file_list_spec_CXX='${wl}-f,'
12934 if test "$GXX" = yes; then
12935 case $host_os in aix4.[012]|aix4.[012].*)
12936 # We only want to do this on AIX 4.2 and lower, the check
12937 # below for broken collect2 doesn't work under 4.3+
12938 collect2name=`${CC} -print-prog-name=collect2`
12939 if test -f "$collect2name" &&
12940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12941 then
12942 # We have reworked collect2
12944 else
12945 # We have old collect2
12946 hardcode_direct_CXX=unsupported
12947 # It fails to find uninstalled libraries when the uninstalled
12948 # path is not listed in the libpath. Setting hardcode_minus_L
12949 # to unsupported forces relinking
12950 hardcode_minus_L_CXX=yes
12951 hardcode_libdir_flag_spec_CXX='-L$libdir'
12952 hardcode_libdir_separator_CXX=
12954 esac
12955 shared_flag='-shared'
12956 if test "$aix_use_runtimelinking" = yes; then
12957 shared_flag="$shared_flag "'${wl}-G'
12959 else
12960 # not using gcc
12961 if test "$host_cpu" = ia64; then
12962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12963 # chokes on -Wl,-G. The following line is correct:
12964 shared_flag='-G'
12965 else
12966 if test "$aix_use_runtimelinking" = yes; then
12967 shared_flag='${wl}-G'
12968 else
12969 shared_flag='${wl}-bM:SRE'
12974 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12975 # It seems that -bexpall does not export symbols beginning with
12976 # underscore (_), so it is better to generate a list of symbols to
12977 # export.
12978 always_export_symbols_CXX=yes
12979 if test "$aix_use_runtimelinking" = yes; then
12980 # Warning - without using the other runtime loading flags (-brtl),
12981 # -berok will link without error, but may produce a broken library.
12982 allow_undefined_flag_CXX='-berok'
12983 # Determine the default libpath from the value encoded in an empty
12984 # executable.
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12989 main ()
12993 return 0;
12995 _ACEOF
12996 if ac_fn_cxx_try_link "$LINENO"; then :
12998 lt_aix_libpath_sed='
12999 /Import File Strings/,/^$/ {
13000 /^0/ {
13001 s/^0 *\(.*\)$/\1/
13005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13006 # Check for a 64-bit object if we didn't find anything.
13007 if test -z "$aix_libpath"; then
13008 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13011 rm -f core conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13015 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13017 archive_expsym_cmds_CXX='$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"
13018 else
13019 if test "$host_cpu" = ia64; then
13020 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13021 allow_undefined_flag_CXX="-z nodefs"
13022 archive_expsym_cmds_CXX="\$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"
13023 else
13024 # Determine the default libpath from the value encoded in an
13025 # empty executable.
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13030 main ()
13034 return 0;
13036 _ACEOF
13037 if ac_fn_cxx_try_link "$LINENO"; then :
13039 lt_aix_libpath_sed='
13040 /Import File Strings/,/^$/ {
13041 /^0/ {
13042 s/^0 *\(.*\)$/\1/
13046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13047 # Check for a 64-bit object if we didn't find anything.
13048 if test -z "$aix_libpath"; then
13049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13056 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13057 # Warning - without using the other run time loading flags,
13058 # -berok will link without error, but may produce a broken library.
13059 no_undefined_flag_CXX=' ${wl}-bernotok'
13060 allow_undefined_flag_CXX=' ${wl}-berok'
13061 if test "$with_gnu_ld" = yes; then
13062 # We only use this code for GNU lds that support --whole-archive.
13063 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13064 else
13065 # Exported symbols can be pulled into shared objects from archives
13066 whole_archive_flag_spec_CXX='$convenience'
13068 archive_cmds_need_lc_CXX=yes
13069 # This is similar to how AIX traditionally builds its shared
13070 # libraries.
13071 archive_expsym_cmds_CXX="\$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'
13076 beos*)
13077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13078 allow_undefined_flag_CXX=unsupported
13079 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13080 # support --undefined. This deserves some investigation. FIXME
13081 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13082 else
13083 ld_shlibs_CXX=no
13087 chorus*)
13088 case $cc_basename in
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13093 esac
13096 cygwin* | mingw* | pw32* | cegcc*)
13097 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13098 # as there is no search path for DLLs.
13099 hardcode_libdir_flag_spec_CXX='-L$libdir'
13100 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13101 allow_undefined_flag_CXX=unsupported
13102 always_export_symbols_CXX=no
13103 enable_shared_with_static_runtimes_CXX=yes
13105 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13106 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13107 # If the export-symbols file already is a .def file (1st line
13108 # is EXPORTS), use it as is; otherwise, prepend...
13109 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13110 cp $export_symbols $output_objdir/$soname.def;
13111 else
13112 echo EXPORTS > $output_objdir/$soname.def;
13113 cat $export_symbols >> $output_objdir/$soname.def;
13115 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13116 else
13117 ld_shlibs_CXX=no
13120 darwin* | rhapsody*)
13123 archive_cmds_need_lc_CXX=no
13124 hardcode_direct_CXX=no
13125 hardcode_automatic_CXX=yes
13126 hardcode_shlibpath_var_CXX=unsupported
13127 if test "$lt_cv_ld_force_load" = "yes"; then
13128 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13129 else
13130 whole_archive_flag_spec_CXX=''
13132 link_all_deplibs_CXX=yes
13133 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13134 case $cc_basename in
13135 ifort*) _lt_dar_can_shared=yes ;;
13136 *) _lt_dar_can_shared=$GCC ;;
13137 esac
13138 if test "$_lt_dar_can_shared" = "yes"; then
13139 output_verbose_link_cmd=func_echo_all
13140 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13141 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13142 archive_expsym_cmds_CXX="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}"
13143 module_expsym_cmds_CXX="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}"
13144 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13145 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13146 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13149 else
13150 ld_shlibs_CXX=no
13155 dgux*)
13156 case $cc_basename in
13157 ec++*)
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13161 ghcx*)
13162 # Green Hills C++ Compiler
13163 # FIXME: insert proper C++ library support
13164 ld_shlibs_CXX=no
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13170 esac
13173 freebsd[12]*)
13174 # C++ shared libraries reported to be fairly broken before
13175 # switch to ELF
13176 ld_shlibs_CXX=no
13179 freebsd-elf*)
13180 archive_cmds_need_lc_CXX=no
13183 freebsd* | dragonfly*)
13184 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13185 # conventions
13186 ld_shlibs_CXX=yes
13189 gnu*)
13192 haiku*)
13193 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 link_all_deplibs_CXX=yes
13197 hpux9*)
13198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13199 hardcode_libdir_separator_CXX=:
13200 export_dynamic_flag_spec_CXX='${wl}-E'
13201 hardcode_direct_CXX=yes
13202 hardcode_minus_L_CXX=yes # Not in the search PATH,
13203 # but as the default
13204 # location of the library.
13206 case $cc_basename in
13207 CC*)
13208 # FIXME: insert proper C++ library support
13209 ld_shlibs_CXX=no
13211 aCC*)
13212 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13213 # Commands to make compiler produce verbose output that lists
13214 # what "hidden" libraries, object files and flags are used when
13215 # linking a shared library.
13217 # There doesn't appear to be a way to prevent this compiler from
13218 # explicitly linking system object files so we need to strip them
13219 # from the output so that they don't get included in the library
13220 # dependencies.
13221 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13224 if test "$GXX" = yes; then
13225 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13226 else
13227 # FIXME: insert proper C++ library support
13228 ld_shlibs_CXX=no
13231 esac
13234 hpux10*|hpux11*)
13235 if test $with_gnu_ld = no; then
13236 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13237 hardcode_libdir_separator_CXX=:
13239 case $host_cpu in
13240 hppa*64*|ia64*)
13243 export_dynamic_flag_spec_CXX='${wl}-E'
13245 esac
13247 case $host_cpu in
13248 hppa*64*|ia64*)
13249 hardcode_direct_CXX=no
13250 hardcode_shlibpath_var_CXX=no
13253 hardcode_direct_CXX=yes
13254 hardcode_direct_absolute_CXX=yes
13255 hardcode_minus_L_CXX=yes # Not in the search PATH,
13256 # but as the default
13257 # location of the library.
13259 esac
13261 case $cc_basename in
13262 CC*)
13263 # FIXME: insert proper C++ library support
13264 ld_shlibs_CXX=no
13266 aCC*)
13267 case $host_cpu in
13268 hppa*64*)
13269 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271 ia64*)
13272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13277 esac
13278 # Commands to make compiler produce verbose output that lists
13279 # what "hidden" libraries, object files and flags are used when
13280 # linking a shared library.
13282 # There doesn't appear to be a way to prevent this compiler from
13283 # explicitly linking system object files so we need to strip them
13284 # from the output so that they don't get included in the library
13285 # dependencies.
13286 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13289 if test "$GXX" = yes; then
13290 if test $with_gnu_ld = no; then
13291 case $host_cpu in
13292 hppa*64*)
13293 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295 ia64*)
13296 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13299 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13301 esac
13303 else
13304 # FIXME: insert proper C++ library support
13305 ld_shlibs_CXX=no
13308 esac
13311 interix[3-9]*)
13312 hardcode_direct_CXX=no
13313 hardcode_shlibpath_var_CXX=no
13314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13315 export_dynamic_flag_spec_CXX='${wl}-E'
13316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13317 # Instead, shared libraries are loaded at an image base (0x10000000 by
13318 # default) and relocated if they conflict, which is a slow very memory
13319 # consuming and fragmenting process. To avoid this, we pick a random,
13320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13321 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13322 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13323 archive_expsym_cmds_CXX='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'
13325 irix5* | irix6*)
13326 case $cc_basename in
13327 CC*)
13328 # SGI C++
13329 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13331 # Archives containing C++ object files must be created using
13332 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13333 # necessary to make sure instantiated templates are included
13334 # in the archive.
13335 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13338 if test "$GXX" = yes; then
13339 if test "$with_gnu_ld" = no; then
13340 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13341 else
13342 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13345 link_all_deplibs_CXX=yes
13347 esac
13348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13349 hardcode_libdir_separator_CXX=:
13350 inherit_rpath_CXX=yes
13353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13354 case $cc_basename in
13355 KCC*)
13356 # Kuck and Associates, Inc. (KAI) C++ Compiler
13358 # KCC will only create a shared library if the output file
13359 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13360 # to its proper name (with version) after linking.
13361 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13362 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13363 # Commands to make compiler produce verbose output that lists
13364 # what "hidden" libraries, object files and flags are used when
13365 # linking a shared library.
13367 # There doesn't appear to be a way to prevent this compiler from
13368 # explicitly linking system object files so we need to strip them
13369 # from the output so that they don't get included in the library
13370 # dependencies.
13371 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13374 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13376 # Archives containing C++ object files must be created using
13377 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13378 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13380 icpc* | ecpc* )
13381 # Intel C++
13382 with_gnu_ld=yes
13383 # version 8.0 and above of icpc choke on multiply defined symbols
13384 # if we add $predep_objects and $postdep_objects, however 7.1 and
13385 # earlier do not add the objects themselves.
13386 case `$CC -V 2>&1` in
13387 *"Version 7."*)
13388 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13391 *) # Version 8.0 or newer
13392 tmp_idyn=
13393 case $host_cpu in
13394 ia64*) tmp_idyn=' -i_dynamic';;
13395 esac
13396 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13397 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13399 esac
13400 archive_cmds_need_lc_CXX=no
13401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13403 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13405 pgCC* | pgcpp*)
13406 # Portland Group C++ compiler
13407 case `$CC -V` in
13408 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13409 prelink_cmds_CXX='tpldir=Template.dir~
13410 rm -rf $tpldir~
13411 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13412 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13413 old_archive_cmds_CXX='tpldir=Template.dir~
13414 rm -rf $tpldir~
13415 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13416 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13417 $RANLIB $oldlib'
13418 archive_cmds_CXX='tpldir=Template.dir~
13419 rm -rf $tpldir~
13420 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13421 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13422 archive_expsym_cmds_CXX='tpldir=Template.dir~
13423 rm -rf $tpldir~
13424 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13425 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13427 *) # Version 6 and above use weak symbols
13428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13429 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13431 esac
13433 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13435 whole_archive_flag_spec_CXX='${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'
13437 cxx*)
13438 # Compaq C++
13439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13440 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13442 runpath_var=LD_RUN_PATH
13443 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13444 hardcode_libdir_separator_CXX=:
13446 # Commands to make compiler produce verbose output that lists
13447 # what "hidden" libraries, object files and flags are used when
13448 # linking a shared library.
13450 # There doesn't appear to be a way to prevent this compiler from
13451 # explicitly linking system object files so we need to strip them
13452 # from the output so that they don't get included in the library
13453 # dependencies.
13454 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13456 xl* | mpixl* | bgxl*)
13457 # IBM XL 8.0 on PPC, with GNU ld
13458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13460 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461 if test "x$supports_anon_versioning" = xyes; then
13462 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13464 echo "local: *; };" >> $output_objdir/$libname.ver~
13465 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13469 case `$CC -V 2>&1 | sed 5q` in
13470 *Sun\ C*)
13471 # Sun C++ 5.9
13472 no_undefined_flag_CXX=' -zdefs'
13473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13474 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13475 hardcode_libdir_flag_spec_CXX='-R$libdir'
13476 whole_archive_flag_spec_CXX='${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'
13477 compiler_needs_object_CXX=yes
13479 # Not sure whether something based on
13480 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13481 # would be better.
13482 output_verbose_link_cmd='func_echo_all'
13484 # Archives containing C++ object files must be created using
13485 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13486 # necessary to make sure instantiated templates are included
13487 # in the archive.
13488 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13490 esac
13492 esac
13495 lynxos*)
13496 # FIXME: insert proper C++ library support
13497 ld_shlibs_CXX=no
13500 m88k*)
13501 # FIXME: insert proper C++ library support
13502 ld_shlibs_CXX=no
13505 mvs*)
13506 case $cc_basename in
13507 cxx*)
13508 # FIXME: insert proper C++ library support
13509 ld_shlibs_CXX=no
13512 # FIXME: insert proper C++ library support
13513 ld_shlibs_CXX=no
13515 esac
13518 netbsd*)
13519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13520 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13521 wlarc=
13522 hardcode_libdir_flag_spec_CXX='-R$libdir'
13523 hardcode_direct_CXX=yes
13524 hardcode_shlibpath_var_CXX=no
13526 # Workaround some broken pre-1.5 toolchains
13527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13530 *nto* | *qnx*)
13531 ld_shlibs_CXX=yes
13534 openbsd2*)
13535 # C++ shared libraries are fairly broken
13536 ld_shlibs_CXX=no
13539 openbsd*)
13540 if test -f /usr/libexec/ld.so; then
13541 hardcode_direct_CXX=yes
13542 hardcode_shlibpath_var_CXX=no
13543 hardcode_direct_absolute_CXX=yes
13544 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13547 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13548 export_dynamic_flag_spec_CXX='${wl}-E'
13549 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13551 output_verbose_link_cmd=func_echo_all
13552 else
13553 ld_shlibs_CXX=no
13557 osf3* | osf4* | osf5*)
13558 case $cc_basename in
13559 KCC*)
13560 # Kuck and Associates, Inc. (KAI) C++ Compiler
13562 # KCC will only create a shared library if the output file
13563 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13564 # to its proper name (with version) after linking.
13565 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13568 hardcode_libdir_separator_CXX=:
13570 # Archives containing C++ object files must be created using
13571 # the KAI C++ compiler.
13572 case $host in
13573 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13574 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13575 esac
13577 RCC*)
13578 # Rational C++ 2.4.1
13579 # FIXME: insert proper C++ library support
13580 ld_shlibs_CXX=no
13582 cxx*)
13583 case $host in
13584 osf3*)
13585 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13586 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13590 allow_undefined_flag_CXX=' -expect_unresolved \*'
13591 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13592 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13593 echo "-hidden">> $lib.exp~
13594 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13595 $RM $lib.exp'
13596 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13598 esac
13600 hardcode_libdir_separator_CXX=:
13602 # Commands to make compiler produce verbose output that lists
13603 # what "hidden" libraries, object files and flags are used when
13604 # linking a shared library.
13606 # There doesn't appear to be a way to prevent this compiler from
13607 # explicitly linking system object files so we need to strip them
13608 # from the output so that they don't get included in the library
13609 # dependencies.
13610 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13614 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13615 case $host in
13616 osf3*)
13617 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13620 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13622 esac
13624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13625 hardcode_libdir_separator_CXX=:
13627 # Commands to make compiler produce verbose output that lists
13628 # what "hidden" libraries, object files and flags are used when
13629 # linking a shared library.
13630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13632 else
13633 # FIXME: insert proper C++ library support
13634 ld_shlibs_CXX=no
13637 esac
13640 psos*)
13641 # FIXME: insert proper C++ library support
13642 ld_shlibs_CXX=no
13645 sunos4*)
13646 case $cc_basename in
13647 CC*)
13648 # Sun C++ 4.x
13649 # FIXME: insert proper C++ library support
13650 ld_shlibs_CXX=no
13652 lcc*)
13653 # Lucid
13654 # FIXME: insert proper C++ library support
13655 ld_shlibs_CXX=no
13658 # FIXME: insert proper C++ library support
13659 ld_shlibs_CXX=no
13661 esac
13664 solaris*)
13665 case $cc_basename in
13666 CC*)
13667 # Sun C++ 4.2, 5.x and Centerline C++
13668 archive_cmds_need_lc_CXX=yes
13669 no_undefined_flag_CXX=' -zdefs'
13670 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13672 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13674 hardcode_libdir_flag_spec_CXX='-R$libdir'
13675 hardcode_shlibpath_var_CXX=no
13676 case $host_os in
13677 solaris2.[0-5] | solaris2.[0-5].*) ;;
13679 # The compiler driver will combine and reorder linker options,
13680 # but understands `-z linker_flag'.
13681 # Supported since Solaris 2.6 (maybe 2.5.1?)
13682 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13684 esac
13685 link_all_deplibs_CXX=yes
13687 output_verbose_link_cmd='func_echo_all'
13689 # Archives containing C++ object files must be created using
13690 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13691 # necessary to make sure instantiated templates are included
13692 # in the archive.
13693 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13695 gcx*)
13696 # Green Hills C++ Compiler
13697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13699 # The C++ compiler must be used to create the archive.
13700 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13703 # GNU C++ compiler with Solaris linker
13704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13705 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13706 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13707 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13709 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13711 # Commands to make compiler produce verbose output that lists
13712 # what "hidden" libraries, object files and flags are used when
13713 # linking a shared library.
13714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13715 else
13716 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13717 # platform.
13718 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13720 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13722 # Commands to make compiler produce verbose output that lists
13723 # what "hidden" libraries, object files and flags are used when
13724 # linking a shared library.
13725 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13728 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13729 case $host_os in
13730 solaris2.[0-5] | solaris2.[0-5].*) ;;
13732 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13734 esac
13737 esac
13740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13741 no_undefined_flag_CXX='${wl}-z,text'
13742 archive_cmds_need_lc_CXX=no
13743 hardcode_shlibpath_var_CXX=no
13744 runpath_var='LD_RUN_PATH'
13746 case $cc_basename in
13747 CC*)
13748 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13752 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13753 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13755 esac
13758 sysv5* | sco3.2v5* | sco5v6*)
13759 # Note: We can NOT use -z defs as we might desire, because we do not
13760 # link with -lc, and that would cause any symbols used from libc to
13761 # always be unresolved, which means just about no library would
13762 # ever link correctly. If we're not using GNU ld we use -z text
13763 # though, which does catch some bad symbols but isn't as heavy-handed
13764 # as -z defs.
13765 no_undefined_flag_CXX='${wl}-z,text'
13766 allow_undefined_flag_CXX='${wl}-z,nodefs'
13767 archive_cmds_need_lc_CXX=no
13768 hardcode_shlibpath_var_CXX=no
13769 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13770 hardcode_libdir_separator_CXX=':'
13771 link_all_deplibs_CXX=yes
13772 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13773 runpath_var='LD_RUN_PATH'
13775 case $cc_basename in
13776 CC*)
13777 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13778 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13779 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13780 '"$old_archive_cmds_CXX"
13781 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13782 '"$reload_cmds_CXX"
13785 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 esac
13791 tandem*)
13792 case $cc_basename in
13793 NCC*)
13794 # NonStop-UX NCC 3.20
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13799 # FIXME: insert proper C++ library support
13800 ld_shlibs_CXX=no
13802 esac
13805 vxworks*)
13806 # FIXME: insert proper C++ library support
13807 ld_shlibs_CXX=no
13811 # FIXME: insert proper C++ library support
13812 ld_shlibs_CXX=no
13814 esac
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13817 $as_echo "$ld_shlibs_CXX" >&6; }
13818 test "$ld_shlibs_CXX" = no && can_build_shared=no
13820 GCC_CXX="$GXX"
13821 LD_CXX="$LD"
13823 ## CAVEAT EMPTOR:
13824 ## There is no encapsulation within the following macros, do not change
13825 ## the running order or otherwise move them around unless you know exactly
13826 ## what you are doing...
13827 # Dependencies to place before and after the object being linked:
13828 predep_objects_CXX=
13829 postdep_objects_CXX=
13830 predeps_CXX=
13831 postdeps_CXX=
13832 compiler_lib_search_path_CXX=
13834 cat > conftest.$ac_ext <<_LT_EOF
13835 class Foo
13837 public:
13838 Foo (void) { a = 0; }
13839 private:
13840 int a;
13842 _LT_EOF
13844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13845 (eval $ac_compile) 2>&5
13846 ac_status=$?
13847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13848 test $ac_status = 0; }; then
13849 # Parse the compiler output and extract the necessary
13850 # objects, libraries and library flags.
13852 # Sentinel used to keep track of whether or not we are before
13853 # the conftest object file.
13854 pre_test_object_deps_done=no
13856 for p in `eval "$output_verbose_link_cmd"`; do
13857 case $p in
13859 -L* | -R* | -l*)
13860 # Some compilers place space between "-{L,R}" and the path.
13861 # Remove the space.
13862 if test $p = "-L" ||
13863 test $p = "-R"; then
13864 prev=$p
13865 continue
13866 else
13867 prev=
13870 if test "$pre_test_object_deps_done" = no; then
13871 case $p in
13872 -L* | -R*)
13873 # Internal compiler library paths should come after those
13874 # provided the user. The postdeps already come after the
13875 # user supplied libs so there is no need to process them.
13876 if test -z "$compiler_lib_search_path_CXX"; then
13877 compiler_lib_search_path_CXX="${prev}${p}"
13878 else
13879 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13882 # The "-l" case would never come before the object being
13883 # linked, so don't bother handling this case.
13884 esac
13885 else
13886 if test -z "$postdeps_CXX"; then
13887 postdeps_CXX="${prev}${p}"
13888 else
13889 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13894 *.$objext)
13895 # This assumes that the test object file only shows up
13896 # once in the compiler output.
13897 if test "$p" = "conftest.$objext"; then
13898 pre_test_object_deps_done=yes
13899 continue
13902 if test "$pre_test_object_deps_done" = no; then
13903 if test -z "$predep_objects_CXX"; then
13904 predep_objects_CXX="$p"
13905 else
13906 predep_objects_CXX="$predep_objects_CXX $p"
13908 else
13909 if test -z "$postdep_objects_CXX"; then
13910 postdep_objects_CXX="$p"
13911 else
13912 postdep_objects_CXX="$postdep_objects_CXX $p"
13917 *) ;; # Ignore the rest.
13919 esac
13920 done
13922 # Clean up.
13923 rm -f a.out a.exe
13924 else
13925 echo "libtool.m4: error: problem compiling CXX test program"
13928 $RM -f confest.$objext
13930 # PORTME: override above test on systems where it is broken
13931 case $host_os in
13932 interix[3-9]*)
13933 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13934 # hack all around it, let's just trust "g++" to DTRT.
13935 predep_objects_CXX=
13936 postdep_objects_CXX=
13937 postdeps_CXX=
13940 linux*)
13941 case `$CC -V 2>&1 | sed 5q` in
13942 *Sun\ C*)
13943 # Sun C++ 5.9
13945 # The more standards-conforming stlport4 library is
13946 # incompatible with the Cstd library. Avoid specifying
13947 # it if it's in CXXFLAGS. Ignore libCrun as
13948 # -library=stlport4 depends on it.
13949 case " $CXX $CXXFLAGS " in
13950 *" -library=stlport4 "*)
13951 solaris_use_stlport4=yes
13953 esac
13955 if test "$solaris_use_stlport4" != yes; then
13956 postdeps_CXX='-library=Cstd -library=Crun'
13959 esac
13962 solaris*)
13963 case $cc_basename in
13964 CC*)
13965 # The more standards-conforming stlport4 library is
13966 # incompatible with the Cstd library. Avoid specifying
13967 # it if it's in CXXFLAGS. Ignore libCrun as
13968 # -library=stlport4 depends on it.
13969 case " $CXX $CXXFLAGS " in
13970 *" -library=stlport4 "*)
13971 solaris_use_stlport4=yes
13973 esac
13975 # Adding this requires a known-good setup of shared libraries for
13976 # Sun compiler versions before 5.6, else PIC objects from an old
13977 # archive will be linked into the output, leading to subtle bugs.
13978 if test "$solaris_use_stlport4" != yes; then
13979 postdeps_CXX='-library=Cstd -library=Crun'
13982 esac
13984 esac
13987 case " $postdeps_CXX " in
13988 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13989 esac
13990 compiler_lib_search_dirs_CXX=
13991 if test -n "${compiler_lib_search_path_CXX}"; then
13992 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14025 lt_prog_compiler_wl_CXX=
14026 lt_prog_compiler_pic_CXX=
14027 lt_prog_compiler_static_CXX=
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14030 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14032 # C++ specific cases for pic, static, wl, etc.
14033 if test "$GXX" = yes; then
14034 lt_prog_compiler_wl_CXX='-Wl,'
14035 lt_prog_compiler_static_CXX='-static'
14037 case $host_os in
14038 aix*)
14039 # All AIX code is PIC.
14040 if test "$host_cpu" = ia64; then
14041 # AIX 5 now supports IA64 processor
14042 lt_prog_compiler_static_CXX='-Bstatic'
14046 amigaos*)
14047 case $host_cpu in
14048 powerpc)
14049 # see comment about AmigaOS4 .so support
14050 lt_prog_compiler_pic_CXX='-fPIC'
14052 m68k)
14053 # FIXME: we need at least 68020 code to build shared libraries, but
14054 # adding the `-m68020' flag to GCC prevents building anything better,
14055 # like `-m68040'.
14056 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14058 esac
14061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14062 # PIC is the default for these OSes.
14064 mingw* | cygwin* | os2* | pw32* | cegcc*)
14065 # This hack is so that the source file can tell whether it is being
14066 # built for inclusion in a dll (and should export symbols for example).
14067 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14068 # (--disable-auto-import) libraries
14069 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14071 darwin* | rhapsody*)
14072 # PIC is the default on this platform
14073 # Common symbols not allowed in MH_DYLIB files
14074 lt_prog_compiler_pic_CXX='-fno-common'
14076 *djgpp*)
14077 # DJGPP does not support shared libraries at all
14078 lt_prog_compiler_pic_CXX=
14080 haiku*)
14081 # PIC is the default for Haiku.
14082 # The "-static" flag exists, but is broken.
14083 lt_prog_compiler_static_CXX=
14085 interix[3-9]*)
14086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14087 # Instead, we relocate shared libraries at runtime.
14089 sysv4*MP*)
14090 if test -d /usr/nec; then
14091 lt_prog_compiler_pic_CXX=-Kconform_pic
14094 hpux*)
14095 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14096 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14097 # sets the default TLS model and affects inlining.
14098 case $host_cpu in
14099 hppa*64*)
14102 lt_prog_compiler_pic_CXX='-fPIC'
14104 esac
14106 *qnx* | *nto*)
14107 # QNX uses GNU C++, but need to define -shared option too, otherwise
14108 # it will coredump.
14109 lt_prog_compiler_pic_CXX='-fPIC -shared'
14112 lt_prog_compiler_pic_CXX='-fPIC'
14114 esac
14115 else
14116 case $host_os in
14117 aix[4-9]*)
14118 # All AIX code is PIC.
14119 if test "$host_cpu" = ia64; then
14120 # AIX 5 now supports IA64 processor
14121 lt_prog_compiler_static_CXX='-Bstatic'
14122 else
14123 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14126 chorus*)
14127 case $cc_basename in
14128 cxch68*)
14129 # Green Hills C++ Compiler
14130 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14132 esac
14134 dgux*)
14135 case $cc_basename in
14136 ec++*)
14137 lt_prog_compiler_pic_CXX='-KPIC'
14139 ghcx*)
14140 # Green Hills C++ Compiler
14141 lt_prog_compiler_pic_CXX='-pic'
14145 esac
14147 freebsd* | dragonfly*)
14148 # FreeBSD uses GNU C++
14150 hpux9* | hpux10* | hpux11*)
14151 case $cc_basename in
14152 CC*)
14153 lt_prog_compiler_wl_CXX='-Wl,'
14154 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14155 if test "$host_cpu" != ia64; then
14156 lt_prog_compiler_pic_CXX='+Z'
14159 aCC*)
14160 lt_prog_compiler_wl_CXX='-Wl,'
14161 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14162 case $host_cpu in
14163 hppa*64*|ia64*)
14164 # +Z the default
14167 lt_prog_compiler_pic_CXX='+Z'
14169 esac
14173 esac
14175 interix*)
14176 # This is c89, which is MS Visual C++ (no shared libs)
14177 # Anyone wants to do a port?
14179 irix5* | irix6* | nonstopux*)
14180 case $cc_basename in
14181 CC*)
14182 lt_prog_compiler_wl_CXX='-Wl,'
14183 lt_prog_compiler_static_CXX='-non_shared'
14184 # CC pic flag -KPIC is the default.
14188 esac
14190 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14191 case $cc_basename in
14192 KCC*)
14193 # KAI C++ Compiler
14194 lt_prog_compiler_wl_CXX='--backend -Wl,'
14195 lt_prog_compiler_pic_CXX='-fPIC'
14197 ecpc* )
14198 # old Intel C++ for x86_64 which still supported -KPIC.
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_pic_CXX='-KPIC'
14201 lt_prog_compiler_static_CXX='-static'
14203 icpc* )
14204 # Intel C++, used to be incompatible with GCC.
14205 # ICC 10 doesn't accept -KPIC any more.
14206 lt_prog_compiler_wl_CXX='-Wl,'
14207 lt_prog_compiler_pic_CXX='-fPIC'
14208 lt_prog_compiler_static_CXX='-static'
14210 pgCC* | pgcpp*)
14211 # Portland Group C++ compiler
14212 lt_prog_compiler_wl_CXX='-Wl,'
14213 lt_prog_compiler_pic_CXX='-fpic'
14214 lt_prog_compiler_static_CXX='-Bstatic'
14216 cxx*)
14217 # Compaq C++
14218 # Make sure the PIC flag is empty. It appears that all Alpha
14219 # Linux and Compaq Tru64 Unix objects are PIC.
14220 lt_prog_compiler_pic_CXX=
14221 lt_prog_compiler_static_CXX='-non_shared'
14223 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14224 # IBM XL 8.0, 9.0 on PPC and BlueGene
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_pic_CXX='-qpic'
14227 lt_prog_compiler_static_CXX='-qstaticlink'
14230 case `$CC -V 2>&1 | sed 5q` in
14231 *Sun\ C*)
14232 # Sun C++ 5.9
14233 lt_prog_compiler_pic_CXX='-KPIC'
14234 lt_prog_compiler_static_CXX='-Bstatic'
14235 lt_prog_compiler_wl_CXX='-Qoption ld '
14237 esac
14239 esac
14241 lynxos*)
14243 m88k*)
14245 mvs*)
14246 case $cc_basename in
14247 cxx*)
14248 lt_prog_compiler_pic_CXX='-W c,exportall'
14252 esac
14254 netbsd*)
14256 *qnx* | *nto*)
14257 # QNX uses GNU C++, but need to define -shared option too, otherwise
14258 # it will coredump.
14259 lt_prog_compiler_pic_CXX='-fPIC -shared'
14261 osf3* | osf4* | osf5*)
14262 case $cc_basename in
14263 KCC*)
14264 lt_prog_compiler_wl_CXX='--backend -Wl,'
14266 RCC*)
14267 # Rational C++ 2.4.1
14268 lt_prog_compiler_pic_CXX='-pic'
14270 cxx*)
14271 # Digital/Compaq C++
14272 lt_prog_compiler_wl_CXX='-Wl,'
14273 # Make sure the PIC flag is empty. It appears that all Alpha
14274 # Linux and Compaq Tru64 Unix objects are PIC.
14275 lt_prog_compiler_pic_CXX=
14276 lt_prog_compiler_static_CXX='-non_shared'
14280 esac
14282 psos*)
14284 solaris*)
14285 case $cc_basename in
14286 CC*)
14287 # Sun C++ 4.2, 5.x and Centerline C++
14288 lt_prog_compiler_pic_CXX='-KPIC'
14289 lt_prog_compiler_static_CXX='-Bstatic'
14290 lt_prog_compiler_wl_CXX='-Qoption ld '
14292 gcx*)
14293 # Green Hills C++ Compiler
14294 lt_prog_compiler_pic_CXX='-PIC'
14298 esac
14300 sunos4*)
14301 case $cc_basename in
14302 CC*)
14303 # Sun C++ 4.x
14304 lt_prog_compiler_pic_CXX='-pic'
14305 lt_prog_compiler_static_CXX='-Bstatic'
14307 lcc*)
14308 # Lucid
14309 lt_prog_compiler_pic_CXX='-pic'
14313 esac
14315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14316 case $cc_basename in
14317 CC*)
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 lt_prog_compiler_pic_CXX='-KPIC'
14320 lt_prog_compiler_static_CXX='-Bstatic'
14322 esac
14324 tandem*)
14325 case $cc_basename in
14326 NCC*)
14327 # NonStop-UX NCC 3.20
14328 lt_prog_compiler_pic_CXX='-KPIC'
14332 esac
14334 vxworks*)
14337 lt_prog_compiler_can_build_shared_CXX=no
14339 esac
14342 case $host_os in
14343 # For platforms which do not support PIC, -DPIC is meaningless:
14344 *djgpp*)
14345 lt_prog_compiler_pic_CXX=
14348 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14350 esac
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14352 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14357 # Check to make sure the PIC flag actually works.
14359 if test -n "$lt_prog_compiler_pic_CXX"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14361 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14362 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 lt_cv_prog_compiler_pic_works_CXX=no
14366 ac_outfile=conftest.$ac_objext
14367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14368 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14369 # Insert the option either (1) after the last *FLAGS variable, or
14370 # (2) before a word containing "conftest.", or (3) at the end.
14371 # Note that $ac_compile itself does not contain backslashes and begins
14372 # with a dollar sign (not a hyphen), so the echo should work correctly.
14373 # The option is referenced via a variable to avoid confusing sed.
14374 lt_compile=`echo "$ac_compile" | $SED \
14375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14377 -e 's:$: $lt_compiler_flag:'`
14378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14379 (eval "$lt_compile" 2>conftest.err)
14380 ac_status=$?
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 if (exit $ac_status) && test -s "$ac_outfile"; then
14384 # The compiler can only warn and ignore the option if not recognized
14385 # So say no if there are warnings other than the usual output.
14386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14389 lt_cv_prog_compiler_pic_works_CXX=yes
14392 $RM conftest*
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14396 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14398 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14399 case $lt_prog_compiler_pic_CXX in
14400 "" | " "*) ;;
14401 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14402 esac
14403 else
14404 lt_prog_compiler_pic_CXX=
14405 lt_prog_compiler_can_build_shared_CXX=no
14413 # Check to make sure the static flag actually works.
14415 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14418 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14421 lt_cv_prog_compiler_static_works_CXX=no
14422 save_LDFLAGS="$LDFLAGS"
14423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14426 # The linker can only warn and ignore the option if not recognized
14427 # So say no if there are warnings
14428 if test -s conftest.err; then
14429 # Append any errors to the config.log.
14430 cat conftest.err 1>&5
14431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14433 if diff conftest.exp conftest.er2 >/dev/null; then
14434 lt_cv_prog_compiler_static_works_CXX=yes
14436 else
14437 lt_cv_prog_compiler_static_works_CXX=yes
14440 $RM -r conftest*
14441 LDFLAGS="$save_LDFLAGS"
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14445 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14447 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14449 else
14450 lt_prog_compiler_static_CXX=
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14457 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14458 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 lt_cv_prog_compiler_c_o_CXX=no
14462 $RM -r conftest 2>/dev/null
14463 mkdir conftest
14464 cd conftest
14465 mkdir out
14466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14468 lt_compiler_flag="-o out/conftest2.$ac_objext"
14469 # Insert the option either (1) after the last *FLAGS variable, or
14470 # (2) before a word containing "conftest.", or (3) at the end.
14471 # Note that $ac_compile itself does not contain backslashes and begins
14472 # with a dollar sign (not a hyphen), so the echo should work correctly.
14473 lt_compile=`echo "$ac_compile" | $SED \
14474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14476 -e 's:$: $lt_compiler_flag:'`
14477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14478 (eval "$lt_compile" 2>out/conftest.err)
14479 ac_status=$?
14480 cat out/conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14483 then
14484 # The compiler can only warn and ignore the option if not recognized
14485 # So say no if there are warnings
14486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14489 lt_cv_prog_compiler_c_o_CXX=yes
14492 chmod u+w . 2>&5
14493 $RM conftest*
14494 # SGI C++ compiler will create directory out/ii_files/ for
14495 # template instantiation
14496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14497 $RM out/* && rmdir out
14498 cd ..
14499 $RM -r conftest
14500 $RM conftest*
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14504 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14510 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14511 $as_echo_n "(cached) " >&6
14512 else
14513 lt_cv_prog_compiler_c_o_CXX=no
14514 $RM -r conftest 2>/dev/null
14515 mkdir conftest
14516 cd conftest
14517 mkdir out
14518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14520 lt_compiler_flag="-o out/conftest2.$ac_objext"
14521 # Insert the option either (1) after the last *FLAGS variable, or
14522 # (2) before a word containing "conftest.", or (3) at the end.
14523 # Note that $ac_compile itself does not contain backslashes and begins
14524 # with a dollar sign (not a hyphen), so the echo should work correctly.
14525 lt_compile=`echo "$ac_compile" | $SED \
14526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14528 -e 's:$: $lt_compiler_flag:'`
14529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14530 (eval "$lt_compile" 2>out/conftest.err)
14531 ac_status=$?
14532 cat out/conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14535 then
14536 # The compiler can only warn and ignore the option if not recognized
14537 # So say no if there are warnings
14538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler_c_o_CXX=yes
14544 chmod u+w . 2>&5
14545 $RM conftest*
14546 # SGI C++ compiler will create directory out/ii_files/ for
14547 # template instantiation
14548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14549 $RM out/* && rmdir out
14550 cd ..
14551 $RM -r conftest
14552 $RM conftest*
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14556 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14561 hard_links="nottested"
14562 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14563 # do not overwrite the value of need_locks provided by the user
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14565 $as_echo_n "checking if we can lock with hard links... " >&6; }
14566 hard_links=yes
14567 $RM conftest*
14568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14569 touch conftest.a
14570 ln conftest.a conftest.b 2>&5 || hard_links=no
14571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14573 $as_echo "$hard_links" >&6; }
14574 if test "$hard_links" = no; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14576 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14577 need_locks=warn
14579 else
14580 need_locks=no
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14586 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14588 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14589 case $host_os in
14590 aix[4-9]*)
14591 # If we're using GNU nm, then we don't want the "-C" option.
14592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14593 # Also, AIX nm treats weak defined symbols like other global defined
14594 # symbols, whereas GNU nm marks them as "W".
14595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14596 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14597 else
14598 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14601 pw32*)
14602 export_symbols_cmds_CXX="$ltdll_cmds"
14604 cygwin* | mingw* | cegcc*)
14605 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14608 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14610 esac
14611 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14614 $as_echo "$ld_shlibs_CXX" >&6; }
14615 test "$ld_shlibs_CXX" = no && can_build_shared=no
14617 with_gnu_ld_CXX=$with_gnu_ld
14625 # Do we need to explicitly link libc?
14627 case "x$archive_cmds_need_lc_CXX" in
14628 x|xyes)
14629 # Assume -lc should be added
14630 archive_cmds_need_lc_CXX=yes
14632 if test "$enable_shared" = yes && test "$GCC" = yes; then
14633 case $archive_cmds_CXX in
14634 *'~'*)
14635 # FIXME: we may have to deal with multi-command sequences.
14637 '$CC '*)
14638 # Test whether the compiler implicitly links with -lc since on some
14639 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14640 # to ld, don't add -lc before -lgcc.
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14642 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14643 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14644 $as_echo_n "(cached) " >&6
14645 else
14646 $RM conftest*
14647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14650 (eval $ac_compile) 2>&5
14651 ac_status=$?
14652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14653 test $ac_status = 0; } 2>conftest.err; then
14654 soname=conftest
14655 lib=conftest
14656 libobjs=conftest.$ac_objext
14657 deplibs=
14658 wl=$lt_prog_compiler_wl_CXX
14659 pic_flag=$lt_prog_compiler_pic_CXX
14660 compiler_flags=-v
14661 linker_flags=-v
14662 verstring=
14663 output_objdir=.
14664 libname=conftest
14665 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14666 allow_undefined_flag_CXX=
14667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14668 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14669 ac_status=$?
14670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14671 test $ac_status = 0; }
14672 then
14673 lt_cv_archive_cmds_need_lc_CXX=no
14674 else
14675 lt_cv_archive_cmds_need_lc_CXX=yes
14677 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14678 else
14679 cat conftest.err 1>&5
14681 $RM conftest*
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14685 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14686 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14688 esac
14691 esac
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14757 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14759 library_names_spec=
14760 libname_spec='lib$name'
14761 soname_spec=
14762 shrext_cmds=".so"
14763 postinstall_cmds=
14764 postuninstall_cmds=
14765 finish_cmds=
14766 finish_eval=
14767 shlibpath_var=
14768 shlibpath_overrides_runpath=unknown
14769 version_type=none
14770 dynamic_linker="$host_os ld.so"
14771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14772 need_lib_prefix=unknown
14773 hardcode_into_libs=no
14775 # when you set need_version to no, make sure it does not cause -set_version
14776 # flags to be left without arguments
14777 need_version=unknown
14779 case $host_os in
14780 aix3*)
14781 version_type=linux
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14783 shlibpath_var=LIBPATH
14785 # AIX 3 has no versioning support, so we append a major version to the name.
14786 soname_spec='${libname}${release}${shared_ext}$major'
14789 aix[4-9]*)
14790 version_type=linux
14791 need_lib_prefix=no
14792 need_version=no
14793 hardcode_into_libs=yes
14794 if test "$host_cpu" = ia64; then
14795 # AIX 5 supports IA64
14796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 else
14799 # With GCC up to 2.95.x, collect2 would create an import file
14800 # for dependence libraries. The import file would start with
14801 # the line `#! .'. This would cause the generated library to
14802 # depend on `.', always an invalid library. This was fixed in
14803 # development snapshots of GCC prior to 3.0.
14804 case $host_os in
14805 aix4 | aix4.[01] | aix4.[01].*)
14806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14807 echo ' yes '
14808 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14810 else
14811 can_build_shared=no
14814 esac
14815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14816 # soname into executable. Probably we can add versioning support to
14817 # collect2, so additional links can be useful in future.
14818 if test "$aix_use_runtimelinking" = yes; then
14819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14820 # instead of lib<name>.a to let people know that these are not
14821 # typical AIX shared libraries.
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 else
14824 # We preserve .a as extension for shared libraries through AIX4.2
14825 # and later when we are not doing run time linking.
14826 library_names_spec='${libname}${release}.a $libname.a'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LIBPATH
14833 amigaos*)
14834 case $host_cpu in
14835 powerpc)
14836 # Since July 2007 AmigaOS4 officially supports .so libraries.
14837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 m68k)
14841 library_names_spec='$libname.ixlibrary $libname.a'
14842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14843 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'
14845 esac
14848 beos*)
14849 library_names_spec='${libname}${shared_ext}'
14850 dynamic_linker="$host_os ld.so"
14851 shlibpath_var=LIBRARY_PATH
14854 bsdi[45]*)
14855 version_type=linux
14856 need_version=no
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14863 # the default ld.so.conf also contains /usr/contrib/lib and
14864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14865 # libtool to hard-code these into programs
14868 cygwin* | mingw* | pw32* | cegcc*)
14869 version_type=windows
14870 shrext_cmds=".dll"
14871 need_version=no
14872 need_lib_prefix=no
14874 case $GCC,$host_os in
14875 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14876 library_names_spec='$libname.dll.a'
14877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14878 postinstall_cmds='base_file=`basename \${file}`~
14879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14880 dldir=$destdir/`dirname \$dlpath`~
14881 test -d \$dldir || mkdir -p \$dldir~
14882 $install_prog $dir/$dlname \$dldir/$dlname~
14883 chmod a+x \$dldir/$dlname~
14884 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14885 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14888 dlpath=$dir/\$dldll~
14889 $RM \$dlpath'
14890 shlibpath_overrides_runpath=yes
14892 case $host_os in
14893 cygwin*)
14894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14898 mingw* | cegcc*)
14899 # MinGW DLLs use traditional 'lib' prefix
14900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14902 pw32*)
14903 # pw32 DLLs use 'pw' prefix rather than 'lib'
14904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14906 esac
14910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14912 esac
14913 dynamic_linker='Win32 ld.exe'
14914 # FIXME: first we should search . and the directory the executable is in
14915 shlibpath_var=PATH
14918 darwin* | rhapsody*)
14919 dynamic_linker="$host_os dyld"
14920 version_type=darwin
14921 need_lib_prefix=no
14922 need_version=no
14923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14924 soname_spec='${libname}${release}${major}$shared_ext'
14925 shlibpath_overrides_runpath=yes
14926 shlibpath_var=DYLD_LIBRARY_PATH
14927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14932 dgux*)
14933 version_type=linux
14934 need_lib_prefix=no
14935 need_version=no
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14941 freebsd* | dragonfly*)
14942 # DragonFly does not have aout. When/if they implement a new
14943 # versioning mechanism, adjust this.
14944 if test -x /usr/bin/objformat; then
14945 objformat=`/usr/bin/objformat`
14946 else
14947 case $host_os in
14948 freebsd[123]*) objformat=aout ;;
14949 *) objformat=elf ;;
14950 esac
14952 version_type=freebsd-$objformat
14953 case $version_type in
14954 freebsd-elf*)
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14956 need_version=no
14957 need_lib_prefix=no
14959 freebsd-*)
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14961 need_version=yes
14963 esac
14964 shlibpath_var=LD_LIBRARY_PATH
14965 case $host_os in
14966 freebsd2*)
14967 shlibpath_overrides_runpath=yes
14969 freebsd3.[01]* | freebsdelf3.[01]*)
14970 shlibpath_overrides_runpath=yes
14971 hardcode_into_libs=yes
14973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14975 shlibpath_overrides_runpath=no
14976 hardcode_into_libs=yes
14978 *) # from 4.6 on, and DragonFly
14979 shlibpath_overrides_runpath=yes
14980 hardcode_into_libs=yes
14982 esac
14985 gnu*)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 hardcode_into_libs=yes
14995 haiku*)
14996 version_type=linux
14997 need_lib_prefix=no
14998 need_version=no
14999 dynamic_linker="$host_os runtime_loader"
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 shlibpath_var=LIBRARY_PATH
15003 shlibpath_overrides_runpath=yes
15004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15005 hardcode_into_libs=yes
15008 hpux9* | hpux10* | hpux11*)
15009 # Give a soname corresponding to the major version so that dld.sl refuses to
15010 # link against other versions.
15011 version_type=sunos
15012 need_lib_prefix=no
15013 need_version=no
15014 case $host_cpu in
15015 ia64*)
15016 shrext_cmds='.so'
15017 hardcode_into_libs=yes
15018 dynamic_linker="$host_os dld.so"
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 if test "X$HPUX_IA64_MODE" = X32; then
15024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15025 else
15026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15030 hppa*64*)
15031 shrext_cmds='.sl'
15032 hardcode_into_libs=yes
15033 dynamic_linker="$host_os dld.sl"
15034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15042 shrext_cmds='.sl'
15043 dynamic_linker="$host_os dld.sl"
15044 shlibpath_var=SHLIB_PATH
15045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15049 esac
15050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15051 postinstall_cmds='chmod 555 $lib'
15052 # or fails outright, so override atomically:
15053 install_override_mode=555
15056 interix[3-9]*)
15057 version_type=linux
15058 need_lib_prefix=no
15059 need_version=no
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 shlibpath_overrides_runpath=no
15065 hardcode_into_libs=yes
15068 irix5* | irix6* | nonstopux*)
15069 case $host_os in
15070 nonstopux*) version_type=nonstopux ;;
15072 if test "$lt_cv_prog_gnu_ld" = yes; then
15073 version_type=linux
15074 else
15075 version_type=irix
15076 fi ;;
15077 esac
15078 need_lib_prefix=no
15079 need_version=no
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15082 case $host_os in
15083 irix5* | nonstopux*)
15084 libsuff= shlibsuff=
15087 case $LD in # libtool.m4 will add one of these switches to LD
15088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15089 libsuff= shlibsuff= libmagic=32-bit;;
15090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15091 libsuff=32 shlibsuff=N32 libmagic=N32;;
15092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15094 *) libsuff= shlibsuff= libmagic=never-match;;
15095 esac
15097 esac
15098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15099 shlibpath_overrides_runpath=no
15100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15102 hardcode_into_libs=yes
15105 # No shared lib support for Linux oldld, aout, or coff.
15106 linux*oldld* | linux*aout* | linux*coff*)
15107 dynamic_linker=no
15110 # This must be Linux ELF.
15111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15112 version_type=linux
15113 need_lib_prefix=no
15114 need_version=no
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 shlibpath_overrides_runpath=no
15121 # Some binutils ld are patched to set DT_RUNPATH
15122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 lt_cv_shlibpath_overrides_runpath=no
15126 save_LDFLAGS=$LDFLAGS
15127 save_libdir=$libdir
15128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15134 main ()
15138 return 0;
15140 _ACEOF
15141 if ac_fn_cxx_try_link "$LINENO"; then :
15142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15143 lt_cv_shlibpath_overrides_runpath=yes
15146 rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148 LDFLAGS=$save_LDFLAGS
15149 libdir=$save_libdir
15153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15155 # This implies no fast_install, which is unacceptable.
15156 # Some rework will be needed to allow for fast_install
15157 # before this can be enabled.
15158 hardcode_into_libs=yes
15160 # Append ld.so.conf contents to the search path
15161 if test -f /etc/ld.so.conf; then
15162 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' ' '`
15163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15166 # We used to test for /lib/ld.so.1 and disable shared libraries on
15167 # powerpc, because MkLinux only supported shared libraries with the
15168 # GNU dynamic linker. Since this was broken with cross compilers,
15169 # most powerpc-linux boxes support dynamic linking these days and
15170 # people can always --disable-shared, the test was removed, and we
15171 # assume the GNU/Linux dynamic linker is in use.
15172 dynamic_linker='GNU/Linux ld.so'
15175 netbsd*)
15176 version_type=sunos
15177 need_lib_prefix=no
15178 need_version=no
15179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15182 dynamic_linker='NetBSD (a.out) ld.so'
15183 else
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 dynamic_linker='NetBSD ld.elf_so'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=yes
15190 hardcode_into_libs=yes
15193 newsos6)
15194 version_type=linux
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=yes
15200 *nto* | *qnx*)
15201 version_type=qnx
15202 need_lib_prefix=no
15203 need_version=no
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=no
15208 hardcode_into_libs=yes
15209 dynamic_linker='ldqnx.so'
15212 openbsd*)
15213 version_type=sunos
15214 sys_lib_dlsearch_path_spec="/usr/lib"
15215 need_lib_prefix=no
15216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15217 case $host_os in
15218 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15219 *) need_version=no ;;
15220 esac
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15225 case $host_os in
15226 openbsd2.[89] | openbsd2.[89].*)
15227 shlibpath_overrides_runpath=no
15230 shlibpath_overrides_runpath=yes
15232 esac
15233 else
15234 shlibpath_overrides_runpath=yes
15238 os2*)
15239 libname_spec='$name'
15240 shrext_cmds=".dll"
15241 need_lib_prefix=no
15242 library_names_spec='$libname${shared_ext} $libname.a'
15243 dynamic_linker='OS/2 ld.exe'
15244 shlibpath_var=LIBPATH
15247 osf3* | osf4* | osf5*)
15248 version_type=osf
15249 need_lib_prefix=no
15250 need_version=no
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 shlibpath_var=LD_LIBRARY_PATH
15254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15258 rdos*)
15259 dynamic_linker=no
15262 solaris*)
15263 version_type=linux
15264 need_lib_prefix=no
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 shlibpath_overrides_runpath=yes
15270 hardcode_into_libs=yes
15271 # ldd complains unless libraries are executable
15272 postinstall_cmds='chmod +x $lib'
15275 sunos4*)
15276 version_type=sunos
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15281 if test "$with_gnu_ld" = yes; then
15282 need_lib_prefix=no
15284 need_version=yes
15287 sysv4 | sysv4.3*)
15288 version_type=linux
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 case $host_vendor in
15293 sni)
15294 shlibpath_overrides_runpath=no
15295 need_lib_prefix=no
15296 runpath_var=LD_RUN_PATH
15298 siemens)
15299 need_lib_prefix=no
15301 motorola)
15302 need_lib_prefix=no
15303 need_version=no
15304 shlibpath_overrides_runpath=no
15305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15307 esac
15310 sysv4*MP*)
15311 if test -d /usr/nec ;then
15312 version_type=linux
15313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15314 soname_spec='$libname${shared_ext}.$major'
15315 shlibpath_var=LD_LIBRARY_PATH
15319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15320 version_type=freebsd-elf
15321 need_lib_prefix=no
15322 need_version=no
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15327 hardcode_into_libs=yes
15328 if test "$with_gnu_ld" = yes; then
15329 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15330 else
15331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15332 case $host_os in
15333 sco3.2v5*)
15334 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15336 esac
15338 sys_lib_dlsearch_path_spec='/usr/lib'
15341 tpf*)
15342 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15343 version_type=linux
15344 need_lib_prefix=no
15345 need_version=no
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=no
15349 hardcode_into_libs=yes
15352 uts4*)
15353 version_type=linux
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15360 dynamic_linker=no
15362 esac
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15364 $as_echo "$dynamic_linker" >&6; }
15365 test "$dynamic_linker" = no && can_build_shared=no
15367 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15368 if test "$GCC" = yes; then
15369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15372 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15373 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15375 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15417 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15418 hardcode_action_CXX=
15419 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15420 test -n "$runpath_var_CXX" ||
15421 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15423 # We can hardcode non-existent directories.
15424 if test "$hardcode_direct_CXX" != no &&
15425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15426 # have to relink, otherwise we might link with an installed library
15427 # when we should be linking with a yet-to-be-installed one
15428 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15429 test "$hardcode_minus_L_CXX" != no; then
15430 # Linking always hardcodes the temporary library directory.
15431 hardcode_action_CXX=relink
15432 else
15433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15434 hardcode_action_CXX=immediate
15436 else
15437 # We cannot hardcode anything, or else we can only hardcode existing
15438 # directories.
15439 hardcode_action_CXX=unsupported
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15442 $as_echo "$hardcode_action_CXX" >&6; }
15444 if test "$hardcode_action_CXX" = relink ||
15445 test "$inherit_rpath_CXX" = yes; then
15446 # Fast installation is not supported
15447 enable_fast_install=no
15448 elif test "$shlibpath_overrides_runpath" = yes ||
15449 test "$enable_shared" = no; then
15450 # Fast installation is not necessary
15451 enable_fast_install=needless
15460 fi # test -n "$compiler"
15462 CC=$lt_save_CC
15463 LDCXX=$LD
15464 LD=$lt_save_LD
15465 GCC=$lt_save_GCC
15466 with_gnu_ld=$lt_save_with_gnu_ld
15467 lt_cv_path_LDCXX=$lt_cv_path_LD
15468 lt_cv_path_LD=$lt_save_path_LD
15469 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15470 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15471 fi # test "$_lt_caught_CXX_error" != yes
15473 ac_ext=c
15474 ac_cpp='$CPP $CPPFLAGS'
15475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15491 ac_config_commands="$ac_config_commands libtool"
15496 # Only expand once:
15500 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
15501 # If we haven't got the data from the intl directory,
15502 # assume NLS is disabled.
15503 USE_NLS=no
15504 LIBINTL=
15505 LIBINTL_DEP=
15506 INCINTL=
15507 XGETTEXT=
15508 GMSGFMT=
15509 POSUB=
15511 if test -f ../intl/config.intl; then
15512 . ../intl/config.intl
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15515 $as_echo_n "checking whether NLS is requested... " >&6; }
15516 if test x"$USE_NLS" != xyes; then
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518 $as_echo "no" >&6; }
15519 else
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15521 $as_echo "yes" >&6; }
15523 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15527 $as_echo_n "checking for catalogs to be installed... " >&6; }
15528 # Look for .po and .gmo files in the source directory.
15529 CATALOGS=
15530 XLINGUAS=
15531 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15532 # If there aren't any .gmo files the shell will give us the
15533 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15534 # weeded out.
15535 case "$cat" in *\**)
15536 continue;;
15537 esac
15538 # The quadruple backslash is collapsed to a double backslash
15539 # by the backticks, then collapsed again by the double quotes,
15540 # leaving us with one backslash in the sed expression (right
15541 # before the dot that mustn't act as a wildcard).
15542 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15543 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15544 # The user is allowed to set LINGUAS to a list of languages to
15545 # install catalogs for. If it's empty that means "all of them."
15546 if test "x$LINGUAS" = x; then
15547 CATALOGS="$CATALOGS $cat"
15548 XLINGUAS="$XLINGUAS $lang"
15549 else
15550 case "$LINGUAS" in *$lang*)
15551 CATALOGS="$CATALOGS $cat"
15552 XLINGUAS="$XLINGUAS $lang"
15554 esac
15556 done
15557 LINGUAS="$XLINGUAS"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15559 $as_echo "$LINGUAS" >&6; }
15562 DATADIRNAME=share
15564 INSTOBJEXT=.mo
15566 GENCAT=gencat
15568 CATOBJEXT=.gmo
15572 MKINSTALLDIRS=
15573 if test -n "$ac_aux_dir"; then
15574 case "$ac_aux_dir" in
15575 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15576 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15577 esac
15579 if test -z "$MKINSTALLDIRS"; then
15580 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15586 $as_echo_n "checking whether NLS is requested... " >&6; }
15587 # Check whether --enable-nls was given.
15588 if test "${enable_nls+set}" = set; then :
15589 enableval=$enable_nls; USE_NLS=$enableval
15590 else
15591 USE_NLS=yes
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15595 $as_echo "$USE_NLS" >&6; }
15602 # Prepare PATH_SEPARATOR.
15603 # The user is always right.
15604 if test "${PATH_SEPARATOR+set}" != set; then
15605 echo "#! /bin/sh" >conf$$.sh
15606 echo "exit 0" >>conf$$.sh
15607 chmod +x conf$$.sh
15608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15609 PATH_SEPARATOR=';'
15610 else
15611 PATH_SEPARATOR=:
15613 rm -f conf$$.sh
15616 # Find out how to test for executable files. Don't use a zero-byte file,
15617 # as systems may use methods other than mode bits to determine executability.
15618 cat >conf$$.file <<_ASEOF
15619 #! /bin/sh
15620 exit 0
15621 _ASEOF
15622 chmod +x conf$$.file
15623 if test -x conf$$.file >/dev/null 2>&1; then
15624 ac_executable_p="test -x"
15625 else
15626 ac_executable_p="test -f"
15628 rm -f conf$$.file
15630 # Extract the first word of "msgfmt", so it can be a program name with args.
15631 set dummy msgfmt; ac_word=$2
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15633 $as_echo_n "checking for $ac_word... " >&6; }
15634 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
15636 else
15637 case "$MSGFMT" in
15638 [\\/]* | ?:[\\/]*)
15639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15643 for ac_dir in $PATH; do
15644 IFS="$ac_save_IFS"
15645 test -z "$ac_dir" && ac_dir=.
15646 for ac_exec_ext in '' $ac_executable_extensions; do
15647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15648 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15649 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15650 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15651 break 2
15654 done
15655 done
15656 IFS="$ac_save_IFS"
15657 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15659 esac
15661 MSGFMT="$ac_cv_path_MSGFMT"
15662 if test "$MSGFMT" != ":"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15664 $as_echo "$MSGFMT" >&6; }
15665 else
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15670 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15671 set dummy gmsgfmt; ac_word=$2
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15673 $as_echo_n "checking for $ac_word... " >&6; }
15674 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15675 $as_echo_n "(cached) " >&6
15676 else
15677 case $GMSGFMT in
15678 [\\/]* | ?:[\\/]*)
15679 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683 for as_dir in $PATH
15685 IFS=$as_save_IFS
15686 test -z "$as_dir" && as_dir=.
15687 for ac_exec_ext in '' $ac_executable_extensions; do
15688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15689 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15691 break 2
15693 done
15694 done
15695 IFS=$as_save_IFS
15697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15699 esac
15701 GMSGFMT=$ac_cv_path_GMSGFMT
15702 if test -n "$GMSGFMT"; then
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15704 $as_echo "$GMSGFMT" >&6; }
15705 else
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707 $as_echo "no" >&6; }
15713 # Prepare PATH_SEPARATOR.
15714 # The user is always right.
15715 if test "${PATH_SEPARATOR+set}" != set; then
15716 echo "#! /bin/sh" >conf$$.sh
15717 echo "exit 0" >>conf$$.sh
15718 chmod +x conf$$.sh
15719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15720 PATH_SEPARATOR=';'
15721 else
15722 PATH_SEPARATOR=:
15724 rm -f conf$$.sh
15727 # Find out how to test for executable files. Don't use a zero-byte file,
15728 # as systems may use methods other than mode bits to determine executability.
15729 cat >conf$$.file <<_ASEOF
15730 #! /bin/sh
15731 exit 0
15732 _ASEOF
15733 chmod +x conf$$.file
15734 if test -x conf$$.file >/dev/null 2>&1; then
15735 ac_executable_p="test -x"
15736 else
15737 ac_executable_p="test -f"
15739 rm -f conf$$.file
15741 # Extract the first word of "xgettext", so it can be a program name with args.
15742 set dummy xgettext; ac_word=$2
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15744 $as_echo_n "checking for $ac_word... " >&6; }
15745 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 case "$XGETTEXT" in
15749 [\\/]* | ?:[\\/]*)
15750 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15753 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15754 for ac_dir in $PATH; do
15755 IFS="$ac_save_IFS"
15756 test -z "$ac_dir" && ac_dir=.
15757 for ac_exec_ext in '' $ac_executable_extensions; do
15758 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15759 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15760 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15761 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15762 break 2
15765 done
15766 done
15767 IFS="$ac_save_IFS"
15768 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15770 esac
15772 XGETTEXT="$ac_cv_path_XGETTEXT"
15773 if test "$XGETTEXT" != ":"; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15775 $as_echo "$XGETTEXT" >&6; }
15776 else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778 $as_echo "no" >&6; }
15781 rm -f messages.po
15784 # Prepare PATH_SEPARATOR.
15785 # The user is always right.
15786 if test "${PATH_SEPARATOR+set}" != set; then
15787 echo "#! /bin/sh" >conf$$.sh
15788 echo "exit 0" >>conf$$.sh
15789 chmod +x conf$$.sh
15790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15791 PATH_SEPARATOR=';'
15792 else
15793 PATH_SEPARATOR=:
15795 rm -f conf$$.sh
15798 # Find out how to test for executable files. Don't use a zero-byte file,
15799 # as systems may use methods other than mode bits to determine executability.
15800 cat >conf$$.file <<_ASEOF
15801 #! /bin/sh
15802 exit 0
15803 _ASEOF
15804 chmod +x conf$$.file
15805 if test -x conf$$.file >/dev/null 2>&1; then
15806 ac_executable_p="test -x"
15807 else
15808 ac_executable_p="test -f"
15810 rm -f conf$$.file
15812 # Extract the first word of "msgmerge", so it can be a program name with args.
15813 set dummy msgmerge; ac_word=$2
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15815 $as_echo_n "checking for $ac_word... " >&6; }
15816 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 case "$MSGMERGE" in
15820 [\\/]* | ?:[\\/]*)
15821 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15824 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15825 for ac_dir in $PATH; do
15826 IFS="$ac_save_IFS"
15827 test -z "$ac_dir" && ac_dir=.
15828 for ac_exec_ext in '' $ac_executable_extensions; do
15829 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15830 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15831 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15832 break 2
15835 done
15836 done
15837 IFS="$ac_save_IFS"
15838 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15840 esac
15842 MSGMERGE="$ac_cv_path_MSGMERGE"
15843 if test "$MSGMERGE" != ":"; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15845 $as_echo "$MSGMERGE" >&6; }
15846 else
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 $as_echo "no" >&6; }
15852 if test "$GMSGFMT" != ":"; then
15853 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15854 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15856 else
15857 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15859 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15860 GMSGFMT=":"
15864 if test "$XGETTEXT" != ":"; then
15865 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15866 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15868 else
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15870 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15871 XGETTEXT=":"
15873 rm -f messages.po
15876 ac_config_commands="$ac_config_commands default-1"
15882 for ac_prog in 'bison -y' byacc
15884 # Extract the first word of "$ac_prog", so it can be a program name with args.
15885 set dummy $ac_prog; ac_word=$2
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15887 $as_echo_n "checking for $ac_word... " >&6; }
15888 if test "${ac_cv_prog_YACC+set}" = set; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 if test -n "$YACC"; then
15892 ac_cv_prog_YACC="$YACC" # Let the user override the test.
15893 else
15894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15895 for as_dir in $PATH
15897 IFS=$as_save_IFS
15898 test -z "$as_dir" && as_dir=.
15899 for ac_exec_ext in '' $ac_executable_extensions; do
15900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15901 ac_cv_prog_YACC="$ac_prog"
15902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15903 break 2
15905 done
15906 done
15907 IFS=$as_save_IFS
15911 YACC=$ac_cv_prog_YACC
15912 if test -n "$YACC"; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15914 $as_echo "$YACC" >&6; }
15915 else
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15921 test -n "$YACC" && break
15922 done
15923 test -n "$YACC" || YACC="yacc"
15925 for ac_prog in flex lex
15927 # Extract the first word of "$ac_prog", so it can be a program name with args.
15928 set dummy $ac_prog; ac_word=$2
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15930 $as_echo_n "checking for $ac_word... " >&6; }
15931 if test "${ac_cv_prog_LEX+set}" = set; then :
15932 $as_echo_n "(cached) " >&6
15933 else
15934 if test -n "$LEX"; then
15935 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15936 else
15937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938 for as_dir in $PATH
15940 IFS=$as_save_IFS
15941 test -z "$as_dir" && as_dir=.
15942 for ac_exec_ext in '' $ac_executable_extensions; do
15943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15944 ac_cv_prog_LEX="$ac_prog"
15945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15946 break 2
15948 done
15949 done
15950 IFS=$as_save_IFS
15954 LEX=$ac_cv_prog_LEX
15955 if test -n "$LEX"; then
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15957 $as_echo "$LEX" >&6; }
15958 else
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15964 test -n "$LEX" && break
15965 done
15966 test -n "$LEX" || LEX=":"
15968 if test "x$LEX" != "x:"; then
15969 cat >conftest.l <<_ACEOF
15971 a { ECHO; }
15972 b { REJECT; }
15973 c { yymore (); }
15974 d { yyless (1); }
15975 e { yyless (input () != 0); }
15976 f { unput (yytext[0]); }
15977 . { BEGIN INITIAL; }
15979 #ifdef YYTEXT_POINTER
15980 extern char *yytext;
15981 #endif
15983 main (void)
15985 return ! yylex () + ! yywrap ();
15987 _ACEOF
15988 { { ac_try="$LEX conftest.l"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15992 esac
15993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15994 $as_echo "$ac_try_echo"; } >&5
15995 (eval "$LEX conftest.l") 2>&5
15996 ac_status=$?
15997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15998 test $ac_status = 0; }
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16000 $as_echo_n "checking lex output file root... " >&6; }
16001 if test "${ac_cv_prog_lex_root+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
16003 else
16005 if test -f lex.yy.c; then
16006 ac_cv_prog_lex_root=lex.yy
16007 elif test -f lexyy.c; then
16008 ac_cv_prog_lex_root=lexyy
16009 else
16010 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16014 $as_echo "$ac_cv_prog_lex_root" >&6; }
16015 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16017 if test -z "${LEXLIB+set}"; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16019 $as_echo_n "checking lex library... " >&6; }
16020 if test "${ac_cv_lib_lex+set}" = set; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16024 ac_save_LIBS=$LIBS
16025 ac_cv_lib_lex='none needed'
16026 for ac_lib in '' -lfl -ll; do
16027 LIBS="$ac_lib $ac_save_LIBS"
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 `cat $LEX_OUTPUT_ROOT.c`
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16033 ac_cv_lib_lex=$ac_lib
16035 rm -f core conftest.err conftest.$ac_objext \
16036 conftest$ac_exeext conftest.$ac_ext
16037 test "$ac_cv_lib_lex" != 'none needed' && break
16038 done
16039 LIBS=$ac_save_LIBS
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16043 $as_echo "$ac_cv_lib_lex" >&6; }
16044 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16049 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16050 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16051 $as_echo_n "(cached) " >&6
16052 else
16053 # POSIX says lex can declare yytext either as a pointer or an array; the
16054 # default is implementation-dependent. Figure out which it is, since
16055 # not all implementations provide the %pointer and %array declarations.
16056 ac_cv_prog_lex_yytext_pointer=no
16057 ac_save_LIBS=$LIBS
16058 LIBS="$LEXLIB $ac_save_LIBS"
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16061 #define YYTEXT_POINTER 1
16062 `cat $LEX_OUTPUT_ROOT.c`
16063 _ACEOF
16064 if ac_fn_c_try_link "$LINENO"; then :
16065 ac_cv_prog_lex_yytext_pointer=yes
16067 rm -f core conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
16069 LIBS=$ac_save_LIBS
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16073 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16074 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16076 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16079 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16082 if test "$LEX" = :; then
16083 LEX=${am_missing_run}flex
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16088 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16089 # Check whether --enable-maintainer-mode was given.
16090 if test "${enable_maintainer_mode+set}" = set; then :
16091 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16092 else
16093 USE_MAINTAINER_MODE=no
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16097 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16098 if test $USE_MAINTAINER_MODE = yes; then
16099 MAINTAINER_MODE_TRUE=
16100 MAINTAINER_MODE_FALSE='#'
16101 else
16102 MAINTAINER_MODE_TRUE='#'
16103 MAINTAINER_MODE_FALSE=
16106 MAINT=$MAINTAINER_MODE_TRUE
16109 if false; then
16110 GENINSRC_NEVER_TRUE=
16111 GENINSRC_NEVER_FALSE='#'
16112 else
16113 GENINSRC_NEVER_TRUE='#'
16114 GENINSRC_NEVER_FALSE=
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16118 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16119 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
16121 else
16122 echo abfoo >t1
16123 echo cdfoo >t2
16124 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16125 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16126 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16128 else
16129 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16132 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16133 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16135 else
16136 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16139 rm t1 t2
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16143 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16144 do_compare="$gcc_cv_prog_cmp_skip"
16148 . ${srcdir}/configure.host
16155 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
16156 do :
16157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16159 eval as_val=\$$as_ac_Header
16160 if test "x$as_val" = x""yes; then :
16161 cat >>confdefs.h <<_ACEOF
16162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16163 _ACEOF
16167 done
16169 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16170 do :
16171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16172 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16173 eval as_val=\$$as_ac_Header
16174 if test "x$as_val" = x""yes; then :
16175 cat >>confdefs.h <<_ACEOF
16176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16177 _ACEOF
16181 done
16183 for ac_func in glob mkstemp realpath sbrk waitpid
16184 do :
16185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16187 eval as_val=\$$as_ac_var
16188 if test "x$as_val" = x""yes; then :
16189 cat >>confdefs.h <<_ACEOF
16190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16191 _ACEOF
16194 done
16196 for ac_func in open lseek close
16197 do :
16198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16200 eval as_val=\$$as_ac_var
16201 if test "x$as_val" = x""yes; then :
16202 cat >>confdefs.h <<_ACEOF
16203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16204 _ACEOF
16207 done
16209 ac_header_dirent=no
16210 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16211 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16213 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16215 $as_echo_n "(cached) " >&6
16216 else
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219 #include <sys/types.h>
16220 #include <$ac_hdr>
16223 main ()
16225 if ((DIR *) 0)
16226 return 0;
16228 return 0;
16230 _ACEOF
16231 if ac_fn_c_try_compile "$LINENO"; then :
16232 eval "$as_ac_Header=yes"
16233 else
16234 eval "$as_ac_Header=no"
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 eval ac_res=\$$as_ac_Header
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16240 $as_echo "$ac_res" >&6; }
16241 eval as_val=\$$as_ac_Header
16242 if test "x$as_val" = x""yes; then :
16243 cat >>confdefs.h <<_ACEOF
16244 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16245 _ACEOF
16247 ac_header_dirent=$ac_hdr; break
16250 done
16251 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16252 if test $ac_header_dirent = dirent.h; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16254 $as_echo_n "checking for library containing opendir... " >&6; }
16255 if test "${ac_cv_search_opendir+set}" = set; then :
16256 $as_echo_n "(cached) " >&6
16257 else
16258 ac_func_search_save_LIBS=$LIBS
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16262 /* Override any GCC internal prototype to avoid an error.
16263 Use char because int might match the return type of a GCC
16264 builtin and then its argument prototype would still apply. */
16265 #ifdef __cplusplus
16266 extern "C"
16267 #endif
16268 char opendir ();
16270 main ()
16272 return opendir ();
16274 return 0;
16276 _ACEOF
16277 for ac_lib in '' dir; do
16278 if test -z "$ac_lib"; then
16279 ac_res="none required"
16280 else
16281 ac_res=-l$ac_lib
16282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16284 if ac_fn_c_try_link "$LINENO"; then :
16285 ac_cv_search_opendir=$ac_res
16287 rm -f core conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext
16289 if test "${ac_cv_search_opendir+set}" = set; then :
16290 break
16292 done
16293 if test "${ac_cv_search_opendir+set}" = set; then :
16295 else
16296 ac_cv_search_opendir=no
16298 rm conftest.$ac_ext
16299 LIBS=$ac_func_search_save_LIBS
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16302 $as_echo "$ac_cv_search_opendir" >&6; }
16303 ac_res=$ac_cv_search_opendir
16304 if test "$ac_res" != no; then :
16305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16309 else
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16311 $as_echo_n "checking for library containing opendir... " >&6; }
16312 if test "${ac_cv_search_opendir+set}" = set; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16315 ac_func_search_save_LIBS=$LIBS
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16319 /* Override any GCC internal prototype to avoid an error.
16320 Use char because int might match the return type of a GCC
16321 builtin and then its argument prototype would still apply. */
16322 #ifdef __cplusplus
16323 extern "C"
16324 #endif
16325 char opendir ();
16327 main ()
16329 return opendir ();
16331 return 0;
16333 _ACEOF
16334 for ac_lib in '' x; do
16335 if test -z "$ac_lib"; then
16336 ac_res="none required"
16337 else
16338 ac_res=-l$ac_lib
16339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16341 if ac_fn_c_try_link "$LINENO"; then :
16342 ac_cv_search_opendir=$ac_res
16344 rm -f core conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext
16346 if test "${ac_cv_search_opendir+set}" = set; then :
16347 break
16349 done
16350 if test "${ac_cv_search_opendir+set}" = set; then :
16352 else
16353 ac_cv_search_opendir=no
16355 rm conftest.$ac_ext
16356 LIBS=$ac_func_search_save_LIBS
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16359 $as_echo "$ac_cv_search_opendir" >&6; }
16360 ac_res=$ac_cv_search_opendir
16361 if test "$ac_res" != no; then :
16362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16369 # Check for dlopen support and enable plugins if possible.
16370 enable_plugins=yes
16371 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16373 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16375 else
16376 enable_plugins=no
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16381 $as_echo_n "checking for library containing dlopen... " >&6; }
16382 if test "${ac_cv_search_dlopen+set}" = set; then :
16383 $as_echo_n "(cached) " >&6
16384 else
16385 ac_func_search_save_LIBS=$LIBS
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16389 /* Override any GCC internal prototype to avoid an error.
16390 Use char because int might match the return type of a GCC
16391 builtin and then its argument prototype would still apply. */
16392 #ifdef __cplusplus
16393 extern "C"
16394 #endif
16395 char dlopen ();
16397 main ()
16399 return dlopen ();
16401 return 0;
16403 _ACEOF
16404 for ac_lib in '' dl; do
16405 if test -z "$ac_lib"; then
16406 ac_res="none required"
16407 else
16408 ac_res=-l$ac_lib
16409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16411 if ac_fn_c_try_link "$LINENO"; then :
16412 ac_cv_search_dlopen=$ac_res
16414 rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext
16416 if test "${ac_cv_search_dlopen+set}" = set; then :
16417 break
16419 done
16420 if test "${ac_cv_search_dlopen+set}" = set; then :
16422 else
16423 ac_cv_search_dlopen=no
16425 rm conftest.$ac_ext
16426 LIBS=$ac_func_search_save_LIBS
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16429 $as_echo "$ac_cv_search_dlopen" >&6; }
16430 ac_res=$ac_cv_search_dlopen
16431 if test "$ac_res" != no; then :
16432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16434 else
16435 enable_plugins=no
16438 for ac_func in dlopen dlsym dlclose
16439 do :
16440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16441 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16442 eval as_val=\$$as_ac_var
16443 if test "x$as_val" = x""yes; then :
16444 cat >>confdefs.h <<_ACEOF
16445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16446 _ACEOF
16448 else
16449 enable_plugins=no
16451 done
16453 # We also support plugins on Windows (MinGW).
16454 if test x$enable_plugins = xno ; then
16455 for ac_header in windows.h
16456 do :
16457 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16459 if test "x$ac_cv_header_windows_h" = x""yes; then :
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_WINDOWS_H 1
16462 _ACEOF
16463 enable_plugins=yes
16466 done
16469 if test x$enable_plugins = xyes; then
16470 ENABLE_PLUGINS_TRUE=
16471 ENABLE_PLUGINS_FALSE='#'
16472 else
16473 ENABLE_PLUGINS_TRUE='#'
16474 ENABLE_PLUGINS_FALSE=
16478 # Check whether --enable-initfini-array was given.
16479 if test "${enable_initfini_array+set}" = set; then :
16480 enableval=$enable_initfini_array;
16481 else
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16484 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16485 if test "${gcc_cv_initfini_array+set}" = set; then :
16486 $as_echo_n "(cached) " >&6
16487 else
16488 if test "x${build}" = "x${target}" ; then
16489 if test "$cross_compiling" = yes; then :
16490 gcc_cv_initfini_array=no
16491 else
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16495 static int x = -1;
16496 int main (void) { return x; }
16497 int foo (void) { x = 0; }
16498 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16499 _ACEOF
16500 if ac_fn_c_try_run "$LINENO"; then :
16501 gcc_cv_initfini_array=yes
16502 else
16503 gcc_cv_initfini_array=no
16505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16506 conftest.$ac_objext conftest.beam conftest.$ac_ext
16509 else
16510 gcc_cv_initfini_array=no
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16514 $as_echo "$gcc_cv_initfini_array" >&6; }
16515 enable_initfini_array=$gcc_cv_initfini_array
16520 if test $enable_initfini_array = yes; then
16522 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16527 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16528 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16529 $as_echo_n "(cached) " >&6
16530 else
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 #include <unistd.h>
16535 main ()
16537 extern int getopt (int, char *const*, const char *);
16539 return 0;
16541 _ACEOF
16542 if ac_fn_c_try_compile "$LINENO"; then :
16543 ld_cv_decl_getopt_unistd_h=yes
16544 else
16545 ld_cv_decl_getopt_unistd_h=no
16547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16551 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16552 if test $ld_cv_decl_getopt_unistd_h = yes; then
16554 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16559 case "${host}" in
16560 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16562 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16564 esac
16566 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16567 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16568 ac_have_decl=1
16569 else
16570 ac_have_decl=0
16573 cat >>confdefs.h <<_ACEOF
16574 #define HAVE_DECL_STRSTR $ac_have_decl
16575 _ACEOF
16576 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16577 if test "x$ac_cv_have_decl_free" = x""yes; then :
16578 ac_have_decl=1
16579 else
16580 ac_have_decl=0
16583 cat >>confdefs.h <<_ACEOF
16584 #define HAVE_DECL_FREE $ac_have_decl
16585 _ACEOF
16586 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16587 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16588 ac_have_decl=1
16589 else
16590 ac_have_decl=0
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_SBRK $ac_have_decl
16595 _ACEOF
16596 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16597 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16598 ac_have_decl=1
16599 else
16600 ac_have_decl=0
16603 cat >>confdefs.h <<_ACEOF
16604 #define HAVE_DECL_GETENV $ac_have_decl
16605 _ACEOF
16606 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16607 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16608 ac_have_decl=1
16609 else
16610 ac_have_decl=0
16613 cat >>confdefs.h <<_ACEOF
16614 #define HAVE_DECL_ENVIRON $ac_have_decl
16615 _ACEOF
16618 # Link in zlib if we can. This is needed only for the bootstrap tests
16619 # right now, since those tests use libbfd, which depends on zlib.
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16621 $as_echo_n "checking for library containing zlibVersion... " >&6; }
16622 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 ac_func_search_save_LIBS=$LIBS
16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16632 #ifdef __cplusplus
16633 extern "C"
16634 #endif
16635 char zlibVersion ();
16637 main ()
16639 return zlibVersion ();
16641 return 0;
16643 _ACEOF
16644 for ac_lib in '' z; do
16645 if test -z "$ac_lib"; then
16646 ac_res="none required"
16647 else
16648 ac_res=-l$ac_lib
16649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16651 if ac_fn_c_try_link "$LINENO"; then :
16652 ac_cv_search_zlibVersion=$ac_res
16654 rm -f core conftest.err conftest.$ac_objext \
16655 conftest$ac_exeext
16656 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16657 break
16659 done
16660 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16662 else
16663 ac_cv_search_zlibVersion=no
16665 rm conftest.$ac_ext
16666 LIBS=$ac_func_search_save_LIBS
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16669 $as_echo "$ac_cv_search_zlibVersion" >&6; }
16670 ac_res=$ac_cv_search_zlibVersion
16671 if test "$ac_res" != no; then :
16672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16673 for ac_header in zlib.h
16674 do :
16675 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16676 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16677 cat >>confdefs.h <<_ACEOF
16678 #define HAVE_ZLIB_H 1
16679 _ACEOF
16683 done
16688 # When converting linker scripts into strings for use in emulation
16689 # files, use astring.sed if the compiler supports ANSI string
16690 # concatenation, or ostring.sed otherwise. This is to support the
16691 # broken Microsoft MSVC compiler, which limits the length of string
16692 # constants, while still supporting pre-ANSI compilers which do not
16693 # support string concatenation.
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16695 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16696 if test "${ld_cv_string_concatenation+set}" = set; then :
16697 $as_echo_n "(cached) " >&6
16698 else
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16703 main ()
16705 char *a = "a" "a";
16707 return 0;
16709 _ACEOF
16710 if ac_fn_c_try_compile "$LINENO"; then :
16711 ld_cv_string_concatenation=yes
16712 else
16713 ld_cv_string_concatenation=no
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16719 $as_echo "$ld_cv_string_concatenation" >&6; }
16720 if test "$ld_cv_string_concatenation" = "yes"; then
16721 STRINGIFY=astring.sed
16722 else
16723 STRINGIFY=ostring.sed
16727 # target-specific stuff:
16729 all_targets=
16730 EMUL=
16731 all_emuls=
16732 all_emul_extras=
16733 all_libpath=
16735 rm -f tdirs
16737 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16739 if test "$targ_alias" = "all"; then
16740 all_targets=true
16741 else
16742 # Canonicalize the secondary target names.
16743 result=`$ac_config_sub $targ_alias 2>/dev/null`
16744 if test -n "$result"; then
16745 targ=$result
16746 else
16747 targ=$targ_alias
16750 . ${srcdir}/configure.tgt
16752 if test "$targ" = "$target"; then
16753 EMUL=$targ_emul
16756 if test x${want64} = xfalse; then
16757 . ${srcdir}/../bfd/config.bfd
16760 if test x${want64} = xtrue; then
16761 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16762 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16765 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16766 case " $all_emuls " in
16767 *" e${i}.o "*) ;;
16769 all_emuls="$all_emuls e${i}.o"
16770 eval result=\$tdir_$i
16771 test -z "$result" && result=$targ_alias
16772 echo tdir_$i=$result >> tdirs
16774 esac
16775 done
16777 for i in $targ_emul $targ_extra_libpath; do
16778 case " $all_libpath " in
16779 *" ${i} "*) ;;
16781 if test -z "$all_libpath"; then
16782 all_libpath=${i}
16783 else
16784 all_libpath="$all_libpath ${i}"
16787 esac
16788 done
16790 for i in $targ_extra_ofiles; do
16791 case " $all_emul_extras " in
16792 *" ${i} "*) ;;
16794 all_emul_extras="$all_emul_extras ${i}"
16796 esac
16797 done
16799 done
16803 TDIRS=tdirs
16806 if test x${all_targets} = xtrue; then
16807 if test x${want64} = xfalse; then
16808 # The cast to long int works around a bug in the HP C Compiler
16809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16811 # This bug is HP SR number 8606223364.
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16813 $as_echo_n "checking size of long... " >&6; }
16814 if test "${ac_cv_sizeof_long+set}" = set; then :
16815 $as_echo_n "(cached) " >&6
16816 else
16817 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16819 else
16820 if test "$ac_cv_type_long" = yes; then
16821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16823 { as_fn_set_status 77
16824 as_fn_error "cannot compute sizeof (long)
16825 See \`config.log' for more details." "$LINENO" 5; }; }
16826 else
16827 ac_cv_sizeof_long=0
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16833 $as_echo "$ac_cv_sizeof_long" >&6; }
16837 cat >>confdefs.h <<_ACEOF
16838 #define SIZEOF_LONG $ac_cv_sizeof_long
16839 _ACEOF
16842 if test "x${ac_cv_sizeof_long}" = "x8"; then
16843 want64=true
16846 if test x${want64} = xtrue; then
16847 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16848 else
16849 EMULATION_OFILES='$(ALL_EMULATIONS)'
16851 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
16852 else
16853 EMULATION_OFILES=$all_emuls
16854 EMUL_EXTRA_OFILES=$all_emul_extras
16860 EMULATION_LIBPATH=$all_libpath
16863 if test x${enable_static} = xno; then
16864 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16865 else
16866 TESTBFDLIB="../bfd/.libs/libbfd.a"
16870 target_vendor=${target_vendor=$host_vendor}
16871 case "$target_vendor" in
16872 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16873 *) EXTRA_SHLIB_EXTENSION= ;;
16874 esac
16876 case "$target_os" in
16877 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
16878 esac
16880 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
16882 cat >>confdefs.h <<_ACEOF
16883 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
16884 _ACEOF
16893 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16895 cat >confcache <<\_ACEOF
16896 # This file is a shell script that caches the results of configure
16897 # tests run on this system so they can be shared between configure
16898 # scripts and configure runs, see configure's option --config-cache.
16899 # It is not useful on other systems. If it contains results you don't
16900 # want to keep, you may remove or edit it.
16902 # config.status only pays attention to the cache file if you give it
16903 # the --recheck option to rerun configure.
16905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16907 # following values.
16909 _ACEOF
16911 # The following way of writing the cache mishandles newlines in values,
16912 # but we know of no workaround that is simple, portable, and efficient.
16913 # So, we kill variables containing newlines.
16914 # Ultrix sh set writes to stderr and can't be redirected directly,
16915 # and sets the high bit in the cache file unless we assign to the vars.
16917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16918 eval ac_val=\$$ac_var
16919 case $ac_val in #(
16920 *${as_nl}*)
16921 case $ac_var in #(
16922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16924 esac
16925 case $ac_var in #(
16926 _ | IFS | as_nl) ;; #(
16927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16928 *) { eval $ac_var=; unset $ac_var;} ;;
16929 esac ;;
16930 esac
16931 done
16933 (set) 2>&1 |
16934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16935 *${as_nl}ac_space=\ *)
16936 # `set' does not quote correctly, so add quotes: double-quote
16937 # substitution turns \\\\ into \\, and sed turns \\ into \.
16938 sed -n \
16939 "s/'/'\\\\''/g;
16940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16941 ;; #(
16943 # `set' quotes correctly as required by POSIX, so do not add quotes.
16944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16946 esac |
16947 sort
16949 sed '
16950 /^ac_cv_env_/b end
16951 t clear
16952 :clear
16953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16954 t end
16955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16956 :end' >>confcache
16957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16958 if test -w "$cache_file"; then
16959 test "x$cache_file" != "x/dev/null" &&
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16961 $as_echo "$as_me: updating cache $cache_file" >&6;}
16962 cat confcache >$cache_file
16963 else
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16968 rm -f confcache
16970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16971 # Let make expand exec_prefix.
16972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16974 DEFS=-DHAVE_CONFIG_H
16976 ac_libobjs=
16977 ac_ltlibobjs=
16978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16979 # 1. Remove the extension, and $U if already installed.
16980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16981 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16983 # will be set to the directory where LIBOBJS objects are built.
16984 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16985 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16986 done
16987 LIBOBJS=$ac_libobjs
16989 LTLIBOBJS=$ac_ltlibobjs
16992 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16993 as_fn_error "conditional \"AMDEP\" was never defined.
16994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16996 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16997 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17000 if test -n "$EXEEXT"; then
17001 am__EXEEXT_TRUE=
17002 am__EXEEXT_FALSE='#'
17003 else
17004 am__EXEEXT_TRUE='#'
17005 am__EXEEXT_FALSE=
17008 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17009 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17013 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17016 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17017 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17020 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17021 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17024 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17025 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17029 : ${CONFIG_STATUS=./config.status}
17030 ac_write_fail=0
17031 ac_clean_files_save=$ac_clean_files
17032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17034 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17035 as_write_fail=0
17036 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17037 #! $SHELL
17038 # Generated by $as_me.
17039 # Run this file to recreate the current configuration.
17040 # Compiler output produced by configure, useful for debugging
17041 # configure, is in config.log if it exists.
17043 debug=false
17044 ac_cs_recheck=false
17045 ac_cs_silent=false
17047 SHELL=\${CONFIG_SHELL-$SHELL}
17048 export SHELL
17049 _ASEOF
17050 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17051 ## -------------------- ##
17052 ## M4sh Initialization. ##
17053 ## -------------------- ##
17055 # Be more Bourne compatible
17056 DUALCASE=1; export DUALCASE # for MKS sh
17057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17058 emulate sh
17059 NULLCMD=:
17060 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17061 # is contrary to our usage. Disable this feature.
17062 alias -g '${1+"$@"}'='"$@"'
17063 setopt NO_GLOB_SUBST
17064 else
17065 case `(set -o) 2>/dev/null` in #(
17066 *posix*) :
17067 set -o posix ;; #(
17068 *) :
17070 esac
17074 as_nl='
17076 export as_nl
17077 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17078 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17081 # Prefer a ksh shell builtin over an external printf program on Solaris,
17082 # but without wasting forks for bash or zsh.
17083 if test -z "$BASH_VERSION$ZSH_VERSION" \
17084 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17085 as_echo='print -r --'
17086 as_echo_n='print -rn --'
17087 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17088 as_echo='printf %s\n'
17089 as_echo_n='printf %s'
17090 else
17091 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17092 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17093 as_echo_n='/usr/ucb/echo -n'
17094 else
17095 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17096 as_echo_n_body='eval
17097 arg=$1;
17098 case $arg in #(
17099 *"$as_nl"*)
17100 expr "X$arg" : "X\\(.*\\)$as_nl";
17101 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17102 esac;
17103 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17105 export as_echo_n_body
17106 as_echo_n='sh -c $as_echo_n_body as_echo'
17108 export as_echo_body
17109 as_echo='sh -c $as_echo_body as_echo'
17112 # The user is always right.
17113 if test "${PATH_SEPARATOR+set}" != set; then
17114 PATH_SEPARATOR=:
17115 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17116 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17117 PATH_SEPARATOR=';'
17122 # IFS
17123 # We need space, tab and new line, in precisely that order. Quoting is
17124 # there to prevent editors from complaining about space-tab.
17125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17126 # splitting by setting IFS to empty value.)
17127 IFS=" "" $as_nl"
17129 # Find who we are. Look in the path if we contain no directory separator.
17130 case $0 in #((
17131 *[\\/]* ) as_myself=$0 ;;
17132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17133 for as_dir in $PATH
17135 IFS=$as_save_IFS
17136 test -z "$as_dir" && as_dir=.
17137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17138 done
17139 IFS=$as_save_IFS
17142 esac
17143 # We did not find ourselves, most probably we were run as `sh COMMAND'
17144 # in which case we are not to be found in the path.
17145 if test "x$as_myself" = x; then
17146 as_myself=$0
17148 if test ! -f "$as_myself"; then
17149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17150 exit 1
17153 # Unset variables that we do not need and which cause bugs (e.g. in
17154 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17155 # suppresses any "Segmentation fault" message there. '((' could
17156 # trigger a bug in pdksh 5.2.14.
17157 for as_var in BASH_ENV ENV MAIL MAILPATH
17158 do eval test x\${$as_var+set} = xset \
17159 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17160 done
17161 PS1='$ '
17162 PS2='> '
17163 PS4='+ '
17165 # NLS nuisances.
17166 LC_ALL=C
17167 export LC_ALL
17168 LANGUAGE=C
17169 export LANGUAGE
17171 # CDPATH.
17172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17175 # as_fn_error ERROR [LINENO LOG_FD]
17176 # ---------------------------------
17177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17179 # script with status $?, using 1 if that was 0.
17180 as_fn_error ()
17182 as_status=$?; test $as_status -eq 0 && as_status=1
17183 if test "$3"; then
17184 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17185 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17187 $as_echo "$as_me: error: $1" >&2
17188 as_fn_exit $as_status
17189 } # as_fn_error
17192 # as_fn_set_status STATUS
17193 # -----------------------
17194 # Set $? to STATUS, without forking.
17195 as_fn_set_status ()
17197 return $1
17198 } # as_fn_set_status
17200 # as_fn_exit STATUS
17201 # -----------------
17202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17203 as_fn_exit ()
17205 set +e
17206 as_fn_set_status $1
17207 exit $1
17208 } # as_fn_exit
17210 # as_fn_unset VAR
17211 # ---------------
17212 # Portably unset VAR.
17213 as_fn_unset ()
17215 { eval $1=; unset $1;}
17217 as_unset=as_fn_unset
17218 # as_fn_append VAR VALUE
17219 # ----------------------
17220 # Append the text in VALUE to the end of the definition contained in VAR. Take
17221 # advantage of any shell optimizations that allow amortized linear growth over
17222 # repeated appends, instead of the typical quadratic growth present in naive
17223 # implementations.
17224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17225 eval 'as_fn_append ()
17227 eval $1+=\$2
17229 else
17230 as_fn_append ()
17232 eval $1=\$$1\$2
17234 fi # as_fn_append
17236 # as_fn_arith ARG...
17237 # ------------------
17238 # Perform arithmetic evaluation on the ARGs, and store the result in the
17239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17240 # must be portable across $(()) and expr.
17241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17242 eval 'as_fn_arith ()
17244 as_val=$(( $* ))
17246 else
17247 as_fn_arith ()
17249 as_val=`expr "$@" || test $? -eq 1`
17251 fi # as_fn_arith
17254 if expr a : '\(a\)' >/dev/null 2>&1 &&
17255 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17256 as_expr=expr
17257 else
17258 as_expr=false
17261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17262 as_basename=basename
17263 else
17264 as_basename=false
17267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17268 as_dirname=dirname
17269 else
17270 as_dirname=false
17273 as_me=`$as_basename -- "$0" ||
17274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17275 X"$0" : 'X\(//\)$' \| \
17276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17277 $as_echo X/"$0" |
17278 sed '/^.*\/\([^/][^/]*\)\/*$/{
17279 s//\1/
17282 /^X\/\(\/\/\)$/{
17283 s//\1/
17286 /^X\/\(\/\).*/{
17287 s//\1/
17290 s/.*/./; q'`
17292 # Avoid depending upon Character Ranges.
17293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17296 as_cr_digits='0123456789'
17297 as_cr_alnum=$as_cr_Letters$as_cr_digits
17299 ECHO_C= ECHO_N= ECHO_T=
17300 case `echo -n x` in #(((((
17301 -n*)
17302 case `echo 'xy\c'` in
17303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17304 xy) ECHO_C='\c';;
17305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17306 ECHO_T=' ';;
17307 esac;;
17309 ECHO_N='-n';;
17310 esac
17312 rm -f conf$$ conf$$.exe conf$$.file
17313 if test -d conf$$.dir; then
17314 rm -f conf$$.dir/conf$$.file
17315 else
17316 rm -f conf$$.dir
17317 mkdir conf$$.dir 2>/dev/null
17319 if (echo >conf$$.file) 2>/dev/null; then
17320 if ln -s conf$$.file conf$$ 2>/dev/null; then
17321 as_ln_s='ln -s'
17322 # ... but there are two gotchas:
17323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17325 # In both cases, we have to default to `cp -p'.
17326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17327 as_ln_s='cp -p'
17328 elif ln conf$$.file conf$$ 2>/dev/null; then
17329 as_ln_s=ln
17330 else
17331 as_ln_s='cp -p'
17333 else
17334 as_ln_s='cp -p'
17336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17337 rmdir conf$$.dir 2>/dev/null
17340 # as_fn_mkdir_p
17341 # -------------
17342 # Create "$as_dir" as a directory, including parents if necessary.
17343 as_fn_mkdir_p ()
17346 case $as_dir in #(
17347 -*) as_dir=./$as_dir;;
17348 esac
17349 test -d "$as_dir" || eval $as_mkdir_p || {
17350 as_dirs=
17351 while :; do
17352 case $as_dir in #(
17353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17354 *) as_qdir=$as_dir;;
17355 esac
17356 as_dirs="'$as_qdir' $as_dirs"
17357 as_dir=`$as_dirname -- "$as_dir" ||
17358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17359 X"$as_dir" : 'X\(//\)[^/]' \| \
17360 X"$as_dir" : 'X\(//\)$' \| \
17361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17362 $as_echo X"$as_dir" |
17363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17364 s//\1/
17367 /^X\(\/\/\)[^/].*/{
17368 s//\1/
17371 /^X\(\/\/\)$/{
17372 s//\1/
17375 /^X\(\/\).*/{
17376 s//\1/
17379 s/.*/./; q'`
17380 test -d "$as_dir" && break
17381 done
17382 test -z "$as_dirs" || eval "mkdir $as_dirs"
17383 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17386 } # as_fn_mkdir_p
17387 if mkdir -p . 2>/dev/null; then
17388 as_mkdir_p='mkdir -p "$as_dir"'
17389 else
17390 test -d ./-p && rmdir ./-p
17391 as_mkdir_p=false
17394 if test -x / >/dev/null 2>&1; then
17395 as_test_x='test -x'
17396 else
17397 if ls -dL / >/dev/null 2>&1; then
17398 as_ls_L_option=L
17399 else
17400 as_ls_L_option=
17402 as_test_x='
17403 eval sh -c '\''
17404 if test -d "$1"; then
17405 test -d "$1/.";
17406 else
17407 case $1 in #(
17408 -*)set "./$1";;
17409 esac;
17410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17411 ???[sx]*):;;*)false;;esac;fi
17412 '\'' sh
17415 as_executable_p=$as_test_x
17417 # Sed expression to map a string onto a valid CPP name.
17418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17420 # Sed expression to map a string onto a valid variable name.
17421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17424 exec 6>&1
17425 ## ----------------------------------- ##
17426 ## Main body of $CONFIG_STATUS script. ##
17427 ## ----------------------------------- ##
17428 _ASEOF
17429 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17432 # Save the log message, to keep $0 and so on meaningful, and to
17433 # report actual input values of CONFIG_FILES etc. instead of their
17434 # values after options handling.
17435 ac_log="
17436 This file was extended by $as_me, which was
17437 generated by GNU Autoconf 2.64. Invocation command line was
17439 CONFIG_FILES = $CONFIG_FILES
17440 CONFIG_HEADERS = $CONFIG_HEADERS
17441 CONFIG_LINKS = $CONFIG_LINKS
17442 CONFIG_COMMANDS = $CONFIG_COMMANDS
17443 $ $0 $@
17445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17448 _ACEOF
17450 case $ac_config_files in *"
17451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17452 esac
17454 case $ac_config_headers in *"
17455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17456 esac
17459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17460 # Files that config.status was made for.
17461 config_files="$ac_config_files"
17462 config_headers="$ac_config_headers"
17463 config_commands="$ac_config_commands"
17465 _ACEOF
17467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17468 ac_cs_usage="\
17469 \`$as_me' instantiates files and other configuration actions
17470 from templates according to the current configuration. Unless the files
17471 and actions are specified as TAGs, all are instantiated by default.
17473 Usage: $0 [OPTION]... [TAG]...
17475 -h, --help print this help, then exit
17476 -V, --version print version number and configuration settings, then exit
17477 -q, --quiet, --silent
17478 do not print progress messages
17479 -d, --debug don't remove temporary files
17480 --recheck update $as_me by reconfiguring in the same conditions
17481 --file=FILE[:TEMPLATE]
17482 instantiate the configuration file FILE
17483 --header=FILE[:TEMPLATE]
17484 instantiate the configuration header FILE
17486 Configuration files:
17487 $config_files
17489 Configuration headers:
17490 $config_headers
17492 Configuration commands:
17493 $config_commands
17495 Report bugs to the package provider."
17497 _ACEOF
17498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17499 ac_cs_version="\\
17500 config.status
17501 configured by $0, generated by GNU Autoconf 2.64,
17502 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17504 Copyright (C) 2009 Free Software Foundation, Inc.
17505 This config.status script is free software; the Free Software Foundation
17506 gives unlimited permission to copy, distribute and modify it."
17508 ac_pwd='$ac_pwd'
17509 srcdir='$srcdir'
17510 INSTALL='$INSTALL'
17511 MKDIR_P='$MKDIR_P'
17512 AWK='$AWK'
17513 test -n "\$AWK" || AWK=awk
17514 _ACEOF
17516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17517 # The default lists apply if the user does not specify any file.
17518 ac_need_defaults=:
17519 while test $# != 0
17521 case $1 in
17522 --*=*)
17523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17525 ac_shift=:
17528 ac_option=$1
17529 ac_optarg=$2
17530 ac_shift=shift
17532 esac
17534 case $ac_option in
17535 # Handling of the options.
17536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17537 ac_cs_recheck=: ;;
17538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17539 $as_echo "$ac_cs_version"; exit ;;
17540 --debug | --debu | --deb | --de | --d | -d )
17541 debug=: ;;
17542 --file | --fil | --fi | --f )
17543 $ac_shift
17544 case $ac_optarg in
17545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17546 esac
17547 as_fn_append CONFIG_FILES " '$ac_optarg'"
17548 ac_need_defaults=false;;
17549 --header | --heade | --head | --hea )
17550 $ac_shift
17551 case $ac_optarg in
17552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17553 esac
17554 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17555 ac_need_defaults=false;;
17556 --he | --h)
17557 # Conflict between --help and --header
17558 as_fn_error "ambiguous option: \`$1'
17559 Try \`$0 --help' for more information.";;
17560 --help | --hel | -h )
17561 $as_echo "$ac_cs_usage"; exit ;;
17562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17564 ac_cs_silent=: ;;
17566 # This is an error.
17567 -*) as_fn_error "unrecognized option: \`$1'
17568 Try \`$0 --help' for more information." ;;
17570 *) as_fn_append ac_config_targets " $1"
17571 ac_need_defaults=false ;;
17573 esac
17574 shift
17575 done
17577 ac_configure_extra_args=
17579 if $ac_cs_silent; then
17580 exec 6>/dev/null
17581 ac_configure_extra_args="$ac_configure_extra_args --silent"
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 if \$ac_cs_recheck; then
17587 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17588 shift
17589 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17590 CONFIG_SHELL='$SHELL'
17591 export CONFIG_SHELL
17592 exec "\$@"
17595 _ACEOF
17596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17597 exec 5>>config.log
17599 echo
17600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17601 ## Running $as_me. ##
17602 _ASBOX
17603 $as_echo "$ac_log"
17604 } >&5
17606 _ACEOF
17607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17609 # INIT-COMMANDS
17611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17614 # The HP-UX ksh and POSIX shell print the target directory to stdout
17615 # if CDPATH is set.
17616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17618 sed_quote_subst='$sed_quote_subst'
17619 double_quote_subst='$double_quote_subst'
17620 delay_variable_subst='$delay_variable_subst'
17621 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17622 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17623 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17624 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17625 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17626 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17627 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17628 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17629 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17630 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17631 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17632 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17633 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17634 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17635 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17636 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17637 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17638 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17639 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17640 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17641 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17642 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17643 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17644 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17645 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17646 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17647 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17648 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17649 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17650 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17651 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17652 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17653 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17654 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17655 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17656 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17657 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17658 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17659 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17660 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17661 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17662 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17663 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17664 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17665 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17666 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17667 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17668 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17669 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"`'
17670 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17671 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17672 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17673 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17674 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17675 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17676 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17677 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17678 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17679 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17680 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17681 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17682 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17683 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17684 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17685 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17686 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17687 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17688 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17689 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17690 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17691 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17692 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17693 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17694 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17695 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17696 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17697 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17698 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17699 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17700 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17701 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17702 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17703 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17704 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17705 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17706 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17707 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17708 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17709 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17710 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17711 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17712 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17713 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17714 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17715 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17716 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17717 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17718 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17719 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17720 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17721 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17722 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17723 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17724 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17725 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17726 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17727 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17728 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17729 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17730 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17731 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17732 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17733 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17734 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17735 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17736 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17737 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17738 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17739 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17740 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17741 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17742 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17743 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17744 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17745 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17746 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17747 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17748 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17749 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17750 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17751 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17752 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17753 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17754 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17755 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17756 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17757 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17758 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17759 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17760 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17761 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17762 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17763 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17764 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17765 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17766 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17767 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17768 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17769 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17770 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17771 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17772 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17773 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17774 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17775 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17776 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17777 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17778 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17779 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17780 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17781 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17782 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17783 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17784 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17785 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17786 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17787 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17788 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17789 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17790 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17791 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17792 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17793 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17794 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17795 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17797 LTCC='$LTCC'
17798 LTCFLAGS='$LTCFLAGS'
17799 compiler='$compiler_DEFAULT'
17801 # A function that is used when there is no print builtin or printf.
17802 func_fallback_echo ()
17804 eval 'cat <<_LTECHO_EOF
17806 _LTECHO_EOF'
17809 # Quote evaled strings.
17810 for var in SHELL \
17811 ECHO \
17812 SED \
17813 GREP \
17814 EGREP \
17815 FGREP \
17816 LD \
17817 NM \
17818 LN_S \
17819 lt_SP2NL \
17820 lt_NL2SP \
17821 reload_flag \
17822 OBJDUMP \
17823 deplibs_check_method \
17824 file_magic_cmd \
17825 AR \
17826 AR_FLAGS \
17827 STRIP \
17828 RANLIB \
17829 CC \
17830 CFLAGS \
17831 compiler \
17832 lt_cv_sys_global_symbol_pipe \
17833 lt_cv_sys_global_symbol_to_cdecl \
17834 lt_cv_sys_global_symbol_to_c_name_address \
17835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17836 lt_prog_compiler_no_builtin_flag \
17837 lt_prog_compiler_wl \
17838 lt_prog_compiler_pic \
17839 lt_prog_compiler_static \
17840 lt_cv_prog_compiler_c_o \
17841 need_locks \
17842 DSYMUTIL \
17843 NMEDIT \
17844 LIPO \
17845 OTOOL \
17846 OTOOL64 \
17847 shrext_cmds \
17848 export_dynamic_flag_spec \
17849 whole_archive_flag_spec \
17850 compiler_needs_object \
17851 with_gnu_ld \
17852 allow_undefined_flag \
17853 no_undefined_flag \
17854 hardcode_libdir_flag_spec \
17855 hardcode_libdir_flag_spec_ld \
17856 hardcode_libdir_separator \
17857 fix_srcfile_path \
17858 exclude_expsyms \
17859 include_expsyms \
17860 file_list_spec \
17861 variables_saved_for_relink \
17862 libname_spec \
17863 library_names_spec \
17864 soname_spec \
17865 install_override_mode \
17866 finish_eval \
17867 old_striplib \
17868 striplib \
17869 compiler_lib_search_dirs \
17870 predep_objects \
17871 postdep_objects \
17872 predeps \
17873 postdeps \
17874 compiler_lib_search_path \
17875 LD_CXX \
17876 reload_flag_CXX \
17877 compiler_CXX \
17878 lt_prog_compiler_no_builtin_flag_CXX \
17879 lt_prog_compiler_wl_CXX \
17880 lt_prog_compiler_pic_CXX \
17881 lt_prog_compiler_static_CXX \
17882 lt_cv_prog_compiler_c_o_CXX \
17883 export_dynamic_flag_spec_CXX \
17884 whole_archive_flag_spec_CXX \
17885 compiler_needs_object_CXX \
17886 with_gnu_ld_CXX \
17887 allow_undefined_flag_CXX \
17888 no_undefined_flag_CXX \
17889 hardcode_libdir_flag_spec_CXX \
17890 hardcode_libdir_flag_spec_ld_CXX \
17891 hardcode_libdir_separator_CXX \
17892 fix_srcfile_path_CXX \
17893 exclude_expsyms_CXX \
17894 include_expsyms_CXX \
17895 file_list_spec_CXX \
17896 compiler_lib_search_dirs_CXX \
17897 predep_objects_CXX \
17898 postdep_objects_CXX \
17899 predeps_CXX \
17900 postdeps_CXX \
17901 compiler_lib_search_path_CXX; do
17902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17903 *[\\\\\\\`\\"\\\$]*)
17904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17909 esac
17910 done
17912 # Double-quote double-evaled strings.
17913 for var in reload_cmds \
17914 old_postinstall_cmds \
17915 old_postuninstall_cmds \
17916 old_archive_cmds \
17917 extract_expsyms_cmds \
17918 old_archive_from_new_cmds \
17919 old_archive_from_expsyms_cmds \
17920 archive_cmds \
17921 archive_expsym_cmds \
17922 module_cmds \
17923 module_expsym_cmds \
17924 export_symbols_cmds \
17925 prelink_cmds \
17926 postinstall_cmds \
17927 postuninstall_cmds \
17928 finish_cmds \
17929 sys_lib_search_path_spec \
17930 sys_lib_dlsearch_path_spec \
17931 reload_cmds_CXX \
17932 old_archive_cmds_CXX \
17933 old_archive_from_new_cmds_CXX \
17934 old_archive_from_expsyms_cmds_CXX \
17935 archive_cmds_CXX \
17936 archive_expsym_cmds_CXX \
17937 module_cmds_CXX \
17938 module_expsym_cmds_CXX \
17939 export_symbols_cmds_CXX \
17940 prelink_cmds_CXX; do
17941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17942 *[\\\\\\\`\\"\\\$]*)
17943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17948 esac
17949 done
17951 ac_aux_dir='$ac_aux_dir'
17952 xsi_shell='$xsi_shell'
17953 lt_shell_append='$lt_shell_append'
17955 # See if we are running on zsh, and set the options which allow our
17956 # commands through without removal of \ escapes INIT.
17957 if test -n "\${ZSH_VERSION+set}" ; then
17958 setopt NO_GLOB_SUBST
17962 PACKAGE='$PACKAGE'
17963 VERSION='$VERSION'
17964 TIMESTAMP='$TIMESTAMP'
17965 RM='$RM'
17966 ofile='$ofile'
17972 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17973 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17974 # from automake.
17975 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17976 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17977 LINGUAS="${LINGUAS-%UNSET%}"
17980 _ACEOF
17982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17984 # Handling of arguments.
17985 for ac_config_target in $ac_config_targets
17987 case $ac_config_target in
17988 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17990 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17991 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17993 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17995 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17996 esac
17997 done
18000 # If the user did not use the arguments to specify the items to instantiate,
18001 # then the envvar interface is used. Set only those that are not.
18002 # We use the long form for the default assignment because of an extremely
18003 # bizarre bug on SunOS 4.1.3.
18004 if $ac_need_defaults; then
18005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18010 # Have a temporary directory for convenience. Make it in the build tree
18011 # simply because there is no reason against having it here, and in addition,
18012 # creating and moving files from /tmp can sometimes cause problems.
18013 # Hook for its removal unless debugging.
18014 # Note that there is a small window in which the directory will not be cleaned:
18015 # after its creation but before its name has been assigned to `$tmp'.
18016 $debug ||
18018 tmp=
18019 trap 'exit_status=$?
18020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18022 trap 'as_fn_exit 1' 1 2 13 15
18024 # Create a (secure) tmp directory for tmp files.
18027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18028 test -n "$tmp" && test -d "$tmp"
18029 } ||
18031 tmp=./conf$$-$RANDOM
18032 (umask 077 && mkdir "$tmp")
18033 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18035 # Set up the scripts for CONFIG_FILES section.
18036 # No need to generate them if there are no CONFIG_FILES.
18037 # This happens for instance with `./config.status config.h'.
18038 if test -n "$CONFIG_FILES"; then
18040 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18041 ac_cs_awk_getline=:
18042 ac_cs_awk_pipe_init=
18043 ac_cs_awk_read_file='
18044 while ((getline aline < (F[key])) > 0)
18045 print(aline)
18046 close(F[key])'
18047 ac_cs_awk_pipe_fini=
18048 else
18049 ac_cs_awk_getline=false
18050 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18051 ac_cs_awk_read_file='
18052 print "|#_!!_#|"
18053 print "cat " F[key] " &&"
18054 '$ac_cs_awk_pipe_init
18055 # The final `:' finishes the AND list.
18056 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18058 ac_cr=`echo X | tr X '\015'`
18059 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18060 # But we know of no other shell where ac_cr would be empty at this
18061 # point, so we can use a bashism as a fallback.
18062 if test "x$ac_cr" = x; then
18063 eval ac_cr=\$\'\\r\'
18065 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18066 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18067 ac_cs_awk_cr='\r'
18068 else
18069 ac_cs_awk_cr=$ac_cr
18072 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18073 _ACEOF
18075 # Create commands to substitute file output variables.
18077 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18078 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18079 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18080 echo "_ACAWK" &&
18081 echo "_ACEOF"
18082 } >conf$$files.sh &&
18083 . ./conf$$files.sh ||
18084 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18085 rm -f conf$$files.sh
18088 echo "cat >conf$$subs.awk <<_ACEOF" &&
18089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18090 echo "_ACEOF"
18091 } >conf$$subs.sh ||
18092 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18093 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18094 ac_delim='%!_!# '
18095 for ac_last_try in false false false false false :; do
18096 . ./conf$$subs.sh ||
18097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18100 if test $ac_delim_n = $ac_delim_num; then
18101 break
18102 elif $ac_last_try; then
18103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18104 else
18105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18107 done
18108 rm -f conf$$subs.sh
18110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18111 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18112 _ACEOF
18113 sed -n '
18115 s/^/S["/; s/!.*/"]=/
18118 s/^[^!]*!//
18119 :repl
18120 t repl
18121 s/'"$ac_delim"'$//
18122 t delim
18125 s/\(.\{148\}\).*/\1/
18126 t more1
18127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18130 b repl
18131 :more1
18132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18135 s/.\{148\}//
18136 t nl
18137 :delim
18139 s/\(.\{148\}\).*/\1/
18140 t more2
18141 s/["\\]/\\&/g; s/^/"/; s/$/"/
18144 :more2
18145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18148 s/.\{148\}//
18149 t delim
18150 ' <conf$$subs.awk | sed '
18151 /^[^""]/{
18153 s/\n//
18155 ' >>$CONFIG_STATUS || ac_write_fail=1
18156 rm -f conf$$subs.awk
18157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18158 _ACAWK
18159 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18160 for (key in S) S_is_set[key] = 1
18161 FS = "\a"
18162 \$ac_cs_awk_pipe_init
18165 line = $ 0
18166 nfields = split(line, field, "@")
18167 substed = 0
18168 len = length(field[1])
18169 for (i = 2; i < nfields; i++) {
18170 key = field[i]
18171 keylen = length(key)
18172 if (S_is_set[key]) {
18173 value = S[key]
18174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18175 len += length(value) + length(field[++i])
18176 substed = 1
18177 } else
18178 len += 1 + keylen
18180 if (nfields == 3 && !substed) {
18181 key = field[2]
18182 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18183 \$ac_cs_awk_read_file
18184 next
18187 print line
18189 \$ac_cs_awk_pipe_fini
18190 _ACAWK
18191 _ACEOF
18192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18195 else
18197 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18198 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18199 _ACEOF
18201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18203 # trailing colons and then remove the whole line if VPATH becomes empty
18204 # (actually we leave an empty line to preserve line numbers).
18205 if test "x$srcdir" = x.; then
18206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18207 s/:*\$(srcdir):*/:/
18208 s/:*\${srcdir}:*/:/
18209 s/:*@srcdir@:*/:/
18210 s/^\([^=]*=[ ]*\):*/\1/
18211 s/:*$//
18212 s/^[^=]*=[ ]*$//
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 fi # test -n "$CONFIG_FILES"
18219 # Set up the scripts for CONFIG_HEADERS section.
18220 # No need to generate them if there are no CONFIG_HEADERS.
18221 # This happens for instance with `./config.status Makefile'.
18222 if test -n "$CONFIG_HEADERS"; then
18223 cat >"$tmp/defines.awk" <<\_ACAWK ||
18224 BEGIN {
18225 _ACEOF
18227 # Transform confdefs.h into an awk script `defines.awk', embedded as
18228 # here-document in config.status, that substitutes the proper values into
18229 # config.h.in to produce config.h.
18231 # Create a delimiter string that does not exist in confdefs.h, to ease
18232 # handling of long lines.
18233 ac_delim='%!_!# '
18234 for ac_last_try in false false :; do
18235 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18236 if test -z "$ac_t"; then
18237 break
18238 elif $ac_last_try; then
18239 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18240 else
18241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18243 done
18245 # For the awk script, D is an array of macro values keyed by name,
18246 # likewise P contains macro parameters if any. Preserve backslash
18247 # newline sequences.
18249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18250 sed -n '
18251 s/.\{148\}/&'"$ac_delim"'/g
18252 t rset
18253 :rset
18254 s/^[ ]*#[ ]*define[ ][ ]*/ /
18255 t def
18257 :def
18258 s/\\$//
18259 t bsnl
18260 s/["\\]/\\&/g
18261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18262 D["\1"]=" \3"/p
18263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18265 :bsnl
18266 s/["\\]/\\&/g
18267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18268 D["\1"]=" \3\\\\\\n"\\/p
18269 t cont
18270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18271 t cont
18273 :cont
18275 s/.\{148\}/&'"$ac_delim"'/g
18276 t clear
18277 :clear
18278 s/\\$//
18279 t bsnlc
18280 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18282 :bsnlc
18283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18284 b cont
18285 ' <confdefs.h | sed '
18286 s/'"$ac_delim"'/"\\\
18287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18290 for (key in D) D_is_set[key] = 1
18291 FS = "\a"
18293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18294 line = \$ 0
18295 split(line, arg, " ")
18296 if (arg[1] == "#") {
18297 defundef = arg[2]
18298 mac1 = arg[3]
18299 } else {
18300 defundef = substr(arg[1], 2)
18301 mac1 = arg[2]
18303 split(mac1, mac2, "(") #)
18304 macro = mac2[1]
18305 prefix = substr(line, 1, index(line, defundef) - 1)
18306 if (D_is_set[macro]) {
18307 # Preserve the white space surrounding the "#".
18308 print prefix "define", macro P[macro] D[macro]
18309 next
18310 } else {
18311 # Replace #undef with comments. This is necessary, for example,
18312 # in the case of _POSIX_SOURCE, which is predefined and required
18313 # on some systems where configure will not decide to define it.
18314 if (defundef == "undef") {
18315 print "/*", prefix defundef, macro, "*/"
18316 next
18320 { print }
18321 _ACAWK
18322 _ACEOF
18323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18324 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18325 fi # test -n "$CONFIG_HEADERS"
18328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18329 shift
18330 for ac_tag
18332 case $ac_tag in
18333 :[FHLC]) ac_mode=$ac_tag; continue;;
18334 esac
18335 case $ac_mode$ac_tag in
18336 :[FHL]*:*);;
18337 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18338 :[FH]-) ac_tag=-:-;;
18339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18340 esac
18341 ac_save_IFS=$IFS
18342 IFS=:
18343 set x $ac_tag
18344 IFS=$ac_save_IFS
18345 shift
18346 ac_file=$1
18347 shift
18349 case $ac_mode in
18350 :L) ac_source=$1;;
18351 :[FH])
18352 ac_file_inputs=
18353 for ac_f
18355 case $ac_f in
18356 -) ac_f="$tmp/stdin";;
18357 *) # Look for the file first in the build tree, then in the source tree
18358 # (if the path is not absolute). The absolute path cannot be DOS-style,
18359 # because $ac_f cannot contain `:'.
18360 test -f "$ac_f" ||
18361 case $ac_f in
18362 [\\/$]*) false;;
18363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18364 esac ||
18365 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18366 esac
18367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18368 as_fn_append ac_file_inputs " '$ac_f'"
18369 done
18371 # Let's still pretend it is `configure' which instantiates (i.e., don't
18372 # use $as_me), people would be surprised to read:
18373 # /* config.h. Generated by config.status. */
18374 configure_input='Generated from '`
18375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18376 `' by configure.'
18377 if test x"$ac_file" != x-; then
18378 configure_input="$ac_file. $configure_input"
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18380 $as_echo "$as_me: creating $ac_file" >&6;}
18382 # Neutralize special characters interpreted by sed in replacement strings.
18383 case $configure_input in #(
18384 *\&* | *\|* | *\\* )
18385 ac_sed_conf_input=`$as_echo "$configure_input" |
18386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18387 *) ac_sed_conf_input=$configure_input;;
18388 esac
18390 case $ac_tag in
18391 *:-:* | *:-) cat >"$tmp/stdin" \
18392 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18393 esac
18395 esac
18397 ac_dir=`$as_dirname -- "$ac_file" ||
18398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18399 X"$ac_file" : 'X\(//\)[^/]' \| \
18400 X"$ac_file" : 'X\(//\)$' \| \
18401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18402 $as_echo X"$ac_file" |
18403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18404 s//\1/
18407 /^X\(\/\/\)[^/].*/{
18408 s//\1/
18411 /^X\(\/\/\)$/{
18412 s//\1/
18415 /^X\(\/\).*/{
18416 s//\1/
18419 s/.*/./; q'`
18420 as_dir="$ac_dir"; as_fn_mkdir_p
18421 ac_builddir=.
18423 case "$ac_dir" in
18424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18427 # A ".." for each directory in $ac_dir_suffix.
18428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18429 case $ac_top_builddir_sub in
18430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18432 esac ;;
18433 esac
18434 ac_abs_top_builddir=$ac_pwd
18435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18436 # for backward compatibility:
18437 ac_top_builddir=$ac_top_build_prefix
18439 case $srcdir in
18440 .) # We are building in place.
18441 ac_srcdir=.
18442 ac_top_srcdir=$ac_top_builddir_sub
18443 ac_abs_top_srcdir=$ac_pwd ;;
18444 [\\/]* | ?:[\\/]* ) # Absolute name.
18445 ac_srcdir=$srcdir$ac_dir_suffix;
18446 ac_top_srcdir=$srcdir
18447 ac_abs_top_srcdir=$srcdir ;;
18448 *) # Relative name.
18449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18450 ac_top_srcdir=$ac_top_build_prefix$srcdir
18451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18452 esac
18453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18456 case $ac_mode in
18459 # CONFIG_FILE
18462 case $INSTALL in
18463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18465 esac
18466 ac_MKDIR_P=$MKDIR_P
18467 case $MKDIR_P in
18468 [\\/$]* | ?:[\\/]* ) ;;
18469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18470 esac
18471 _ACEOF
18473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18474 # If the template does not know about datarootdir, expand it.
18475 # FIXME: This hack should be removed a few years after 2.60.
18476 ac_datarootdir_hack=; ac_datarootdir_seen=
18477 ac_sed_dataroot='
18478 /datarootdir/ {
18482 /@datadir@/p
18483 /@docdir@/p
18484 /@infodir@/p
18485 /@localedir@/p
18486 /@mandir@/p'
18487 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18488 *datarootdir*) ac_datarootdir_seen=yes;;
18489 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18491 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18492 _ACEOF
18493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18494 ac_datarootdir_hack='
18495 s&@datadir@&$datadir&g
18496 s&@docdir@&$docdir&g
18497 s&@infodir@&$infodir&g
18498 s&@localedir@&$localedir&g
18499 s&@mandir@&$mandir&g
18500 s&\\\${datarootdir}&$datarootdir&g' ;;
18501 esac
18502 _ACEOF
18504 # Neutralize VPATH when `$srcdir' = `.'.
18505 # Shell code in configure.ac might set extrasub.
18506 # FIXME: do we really want to maintain this feature?
18507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18508 ac_sed_extra="$ac_vpsub
18509 $extrasub
18510 _ACEOF
18511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18514 s|@configure_input@|$ac_sed_conf_input|;t t
18515 s&@top_builddir@&$ac_top_builddir_sub&;t t
18516 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18517 s&@srcdir@&$ac_srcdir&;t t
18518 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18519 s&@top_srcdir@&$ac_top_srcdir&;t t
18520 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18521 s&@builddir@&$ac_builddir&;t t
18522 s&@abs_builddir@&$ac_abs_builddir&;t t
18523 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18524 s&@INSTALL@&$ac_INSTALL&;t t
18525 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18526 $ac_datarootdir_hack
18528 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18529 if $ac_cs_awk_getline; then
18530 $AWK -f "$tmp/subs.awk"
18531 else
18532 $AWK -f "$tmp/subs.awk" | $SHELL
18533 fi >$tmp/out \
18534 || as_fn_error "could not create $ac_file" "$LINENO" 5
18536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18537 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18540 which seems to be undefined. Please make sure it is defined." >&5
18541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18542 which seems to be undefined. Please make sure it is defined." >&2;}
18544 rm -f "$tmp/stdin"
18545 case $ac_file in
18546 -) cat "$tmp/out" && rm -f "$tmp/out";;
18547 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18548 esac \
18549 || as_fn_error "could not create $ac_file" "$LINENO" 5
18553 # CONFIG_HEADER
18555 if test x"$ac_file" != x-; then
18557 $as_echo "/* $configure_input */" \
18558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18559 } >"$tmp/config.h" \
18560 || as_fn_error "could not create $ac_file" "$LINENO" 5
18561 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18563 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18564 else
18565 rm -f "$ac_file"
18566 mv "$tmp/config.h" "$ac_file" \
18567 || as_fn_error "could not create $ac_file" "$LINENO" 5
18569 else
18570 $as_echo "/* $configure_input */" \
18571 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18572 || as_fn_error "could not create -" "$LINENO" 5
18574 # Compute "$ac_file"'s index in $config_headers.
18575 _am_arg="$ac_file"
18576 _am_stamp_count=1
18577 for _am_header in $config_headers :; do
18578 case $_am_header in
18579 $_am_arg | $_am_arg:* )
18580 break ;;
18582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18583 esac
18584 done
18585 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18586 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18587 X"$_am_arg" : 'X\(//\)[^/]' \| \
18588 X"$_am_arg" : 'X\(//\)$' \| \
18589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18590 $as_echo X"$_am_arg" |
18591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18592 s//\1/
18595 /^X\(\/\/\)[^/].*/{
18596 s//\1/
18599 /^X\(\/\/\)$/{
18600 s//\1/
18603 /^X\(\/\).*/{
18604 s//\1/
18607 s/.*/./; q'`/stamp-h$_am_stamp_count
18610 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18611 $as_echo "$as_me: executing $ac_file commands" >&6;}
18613 esac
18616 case $ac_file$ac_mode in
18617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18618 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18619 # are listed without --file. Let's play safe and only enable the eval
18620 # if we detect the quoting.
18621 case $CONFIG_FILES in
18622 *\'*) eval set x "$CONFIG_FILES" ;;
18623 *) set x $CONFIG_FILES ;;
18624 esac
18625 shift
18626 for mf
18628 # Strip MF so we end up with the name of the file.
18629 mf=`echo "$mf" | sed -e 's/:.*$//'`
18630 # Check whether this is an Automake generated Makefile or not.
18631 # We used to match only the files named `Makefile.in', but
18632 # some people rename them; so instead we look at the file content.
18633 # Grep'ing the first line is not enough: some people post-process
18634 # each Makefile.in and add a new line on top of each file to say so.
18635 # Grep'ing the whole file is not good either: AIX grep has a line
18636 # limit of 2048, but all sed's we know have understand at least 4000.
18637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18638 dirpart=`$as_dirname -- "$mf" ||
18639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640 X"$mf" : 'X\(//\)[^/]' \| \
18641 X"$mf" : 'X\(//\)$' \| \
18642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18643 $as_echo X"$mf" |
18644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18645 s//\1/
18648 /^X\(\/\/\)[^/].*/{
18649 s//\1/
18652 /^X\(\/\/\)$/{
18653 s//\1/
18656 /^X\(\/\).*/{
18657 s//\1/
18660 s/.*/./; q'`
18661 else
18662 continue
18664 # Extract the definition of DEPDIR, am__include, and am__quote
18665 # from the Makefile without running `make'.
18666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18667 test -z "$DEPDIR" && continue
18668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18669 test -z "am__include" && continue
18670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18671 # When using ansi2knr, U may be empty or an underscore; expand it
18672 U=`sed -n 's/^U = //p' < "$mf"`
18673 # Find all dependency output files, they are included files with
18674 # $(DEPDIR) in their names. We invoke sed twice because it is the
18675 # simplest approach to changing $(DEPDIR) to its actual value in the
18676 # expansion.
18677 for file in `sed -n "
18678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18680 # Make sure the directory exists.
18681 test -f "$dirpart/$file" && continue
18682 fdir=`$as_dirname -- "$file" ||
18683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18684 X"$file" : 'X\(//\)[^/]' \| \
18685 X"$file" : 'X\(//\)$' \| \
18686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18687 $as_echo X"$file" |
18688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18689 s//\1/
18692 /^X\(\/\/\)[^/].*/{
18693 s//\1/
18696 /^X\(\/\/\)$/{
18697 s//\1/
18700 /^X\(\/\).*/{
18701 s//\1/
18704 s/.*/./; q'`
18705 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18706 # echo "creating $dirpart/$file"
18707 echo '# dummy' > "$dirpart/$file"
18708 done
18709 done
18712 "libtool":C)
18714 # See if we are running on zsh, and set the options which allow our
18715 # commands through without removal of \ escapes.
18716 if test -n "${ZSH_VERSION+set}" ; then
18717 setopt NO_GLOB_SUBST
18720 cfgfile="${ofile}T"
18721 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18722 $RM "$cfgfile"
18724 cat <<_LT_EOF >> "$cfgfile"
18725 #! $SHELL
18727 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18728 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18729 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18730 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18732 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18733 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18734 # Written by Gordon Matzigkeit, 1996
18736 # This file is part of GNU Libtool.
18738 # GNU Libtool is free software; you can redistribute it and/or
18739 # modify it under the terms of the GNU General Public License as
18740 # published by the Free Software Foundation; either version 2 of
18741 # the License, or (at your option) any later version.
18743 # As a special exception to the GNU General Public License,
18744 # if you distribute this file as part of a program or library that
18745 # is built using GNU Libtool, you may include this file under the
18746 # same distribution terms that you use for the rest of that program.
18748 # GNU Libtool is distributed in the hope that it will be useful,
18749 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18750 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18751 # GNU General Public License for more details.
18753 # You should have received a copy of the GNU General Public License
18754 # along with GNU Libtool; see the file COPYING. If not, a copy
18755 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18756 # obtained by writing to the Free Software Foundation, Inc.,
18757 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18760 # The names of the tagged configurations supported by this script.
18761 available_tags="CXX "
18763 # ### BEGIN LIBTOOL CONFIG
18765 # Which release of libtool.m4 was used?
18766 macro_version=$macro_version
18767 macro_revision=$macro_revision
18769 # Whether or not to build shared libraries.
18770 build_libtool_libs=$enable_shared
18772 # Whether or not to build static libraries.
18773 build_old_libs=$enable_static
18775 # What type of objects to build.
18776 pic_mode=$pic_mode
18778 # Whether or not to optimize for fast installation.
18779 fast_install=$enable_fast_install
18781 # Shell to use when invoking shell scripts.
18782 SHELL=$lt_SHELL
18784 # An echo program that protects backslashes.
18785 ECHO=$lt_ECHO
18787 # The host system.
18788 host_alias=$host_alias
18789 host=$host
18790 host_os=$host_os
18792 # The build system.
18793 build_alias=$build_alias
18794 build=$build
18795 build_os=$build_os
18797 # A sed program that does not truncate output.
18798 SED=$lt_SED
18800 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18801 Xsed="\$SED -e 1s/^X//"
18803 # A grep program that handles long lines.
18804 GREP=$lt_GREP
18806 # An ERE matcher.
18807 EGREP=$lt_EGREP
18809 # A literal string matcher.
18810 FGREP=$lt_FGREP
18812 # A BSD- or MS-compatible name lister.
18813 NM=$lt_NM
18815 # Whether we need soft or hard links.
18816 LN_S=$lt_LN_S
18818 # What is the maximum length of a command?
18819 max_cmd_len=$max_cmd_len
18821 # Object file suffix (normally "o").
18822 objext=$ac_objext
18824 # Executable file suffix (normally "").
18825 exeext=$exeext
18827 # whether the shell understands "unset".
18828 lt_unset=$lt_unset
18830 # turn spaces into newlines.
18831 SP2NL=$lt_lt_SP2NL
18833 # turn newlines into spaces.
18834 NL2SP=$lt_lt_NL2SP
18836 # An object symbol dumper.
18837 OBJDUMP=$lt_OBJDUMP
18839 # Method to check whether dependent libraries are shared objects.
18840 deplibs_check_method=$lt_deplibs_check_method
18842 # Command to use when deplibs_check_method == "file_magic".
18843 file_magic_cmd=$lt_file_magic_cmd
18845 # The archiver.
18846 AR=$lt_AR
18847 AR_FLAGS=$lt_AR_FLAGS
18849 # A symbol stripping program.
18850 STRIP=$lt_STRIP
18852 # Commands used to install an old-style archive.
18853 RANLIB=$lt_RANLIB
18854 old_postinstall_cmds=$lt_old_postinstall_cmds
18855 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18857 # Whether to use a lock for old archive extraction.
18858 lock_old_archive_extraction=$lock_old_archive_extraction
18860 # A C compiler.
18861 LTCC=$lt_CC
18863 # LTCC compiler flags.
18864 LTCFLAGS=$lt_CFLAGS
18866 # Take the output of nm and produce a listing of raw symbols and C names.
18867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18869 # Transform the output of nm in a proper C declaration.
18870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18872 # Transform the output of nm in a C name address pair.
18873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18875 # Transform the output of nm in a C name address pair when lib prefix is needed.
18876 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18878 # The name of the directory that contains temporary libtool files.
18879 objdir=$objdir
18881 # Used to examine libraries when file_magic_cmd begins with "file".
18882 MAGIC_CMD=$MAGIC_CMD
18884 # Must we lock files when doing compilation?
18885 need_locks=$lt_need_locks
18887 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18888 DSYMUTIL=$lt_DSYMUTIL
18890 # Tool to change global to local symbols on Mac OS X.
18891 NMEDIT=$lt_NMEDIT
18893 # Tool to manipulate fat objects and archives on Mac OS X.
18894 LIPO=$lt_LIPO
18896 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18897 OTOOL=$lt_OTOOL
18899 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18900 OTOOL64=$lt_OTOOL64
18902 # Old archive suffix (normally "a").
18903 libext=$libext
18905 # Shared library suffix (normally ".so").
18906 shrext_cmds=$lt_shrext_cmds
18908 # The commands to extract the exported symbol list from a shared archive.
18909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18911 # Variables whose values should be saved in libtool wrapper scripts and
18912 # restored at link time.
18913 variables_saved_for_relink=$lt_variables_saved_for_relink
18915 # Do we need the "lib" prefix for modules?
18916 need_lib_prefix=$need_lib_prefix
18918 # Do we need a version for libraries?
18919 need_version=$need_version
18921 # Library versioning type.
18922 version_type=$version_type
18924 # Shared library runtime path variable.
18925 runpath_var=$runpath_var
18927 # Shared library path variable.
18928 shlibpath_var=$shlibpath_var
18930 # Is shlibpath searched before the hard-coded library search path?
18931 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18933 # Format of library name prefix.
18934 libname_spec=$lt_libname_spec
18936 # List of archive names. First name is the real one, the rest are links.
18937 # The last name is the one that the linker finds with -lNAME
18938 library_names_spec=$lt_library_names_spec
18940 # The coded name of the library, if different from the real name.
18941 soname_spec=$lt_soname_spec
18943 # Permission mode override for installation of shared libraries.
18944 install_override_mode=$lt_install_override_mode
18946 # Command to use after installation of a shared archive.
18947 postinstall_cmds=$lt_postinstall_cmds
18949 # Command to use after uninstallation of a shared archive.
18950 postuninstall_cmds=$lt_postuninstall_cmds
18952 # Commands used to finish a libtool library installation in a directory.
18953 finish_cmds=$lt_finish_cmds
18955 # As "finish_cmds", except a single script fragment to be evaled but
18956 # not shown.
18957 finish_eval=$lt_finish_eval
18959 # Whether we should hardcode library paths into libraries.
18960 hardcode_into_libs=$hardcode_into_libs
18962 # Compile-time system search path for libraries.
18963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18965 # Run-time system search path for libraries.
18966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18968 # Whether dlopen is supported.
18969 dlopen_support=$enable_dlopen
18971 # Whether dlopen of programs is supported.
18972 dlopen_self=$enable_dlopen_self
18974 # Whether dlopen of statically linked programs is supported.
18975 dlopen_self_static=$enable_dlopen_self_static
18977 # Commands to strip libraries.
18978 old_striplib=$lt_old_striplib
18979 striplib=$lt_striplib
18982 # The linker used to build libraries.
18983 LD=$lt_LD
18985 # How to create reloadable object files.
18986 reload_flag=$lt_reload_flag
18987 reload_cmds=$lt_reload_cmds
18989 # Commands used to build an old-style archive.
18990 old_archive_cmds=$lt_old_archive_cmds
18992 # A language specific compiler.
18993 CC=$lt_compiler
18995 # Is the compiler the GNU compiler?
18996 with_gcc=$GCC
18998 # Compiler flag to turn off builtin functions.
18999 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19001 # How to pass a linker flag through the compiler.
19002 wl=$lt_lt_prog_compiler_wl
19004 # Additional compiler flags for building library objects.
19005 pic_flag=$lt_lt_prog_compiler_pic
19007 # Compiler flag to prevent dynamic linking.
19008 link_static_flag=$lt_lt_prog_compiler_static
19010 # Does compiler simultaneously support -c and -o options?
19011 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19013 # Whether or not to add -lc for building shared libraries.
19014 build_libtool_need_lc=$archive_cmds_need_lc
19016 # Whether or not to disallow shared libs when runtime libs are static.
19017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19019 # Compiler flag to allow reflexive dlopens.
19020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19022 # Compiler flag to generate shared objects directly from archives.
19023 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19025 # Whether the compiler copes with passing no objects directly.
19026 compiler_needs_object=$lt_compiler_needs_object
19028 # Create an old-style archive from a shared archive.
19029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19031 # Create a temporary old-style archive to link instead of a shared archive.
19032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19034 # Commands used to build a shared archive.
19035 archive_cmds=$lt_archive_cmds
19036 archive_expsym_cmds=$lt_archive_expsym_cmds
19038 # Commands used to build a loadable module if different from building
19039 # a shared archive.
19040 module_cmds=$lt_module_cmds
19041 module_expsym_cmds=$lt_module_expsym_cmds
19043 # Whether we are building with GNU ld or not.
19044 with_gnu_ld=$lt_with_gnu_ld
19046 # Flag that allows shared libraries with undefined symbols to be built.
19047 allow_undefined_flag=$lt_allow_undefined_flag
19049 # Flag that enforces no undefined symbols.
19050 no_undefined_flag=$lt_no_undefined_flag
19052 # Flag to hardcode \$libdir into a binary during linking.
19053 # This must work even if \$libdir does not exist
19054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19056 # If ld is used when linking, flag to hardcode \$libdir into a binary
19057 # during linking. This must work even if \$libdir does not exist.
19058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19060 # Whether we need a single "-rpath" flag with a separated argument.
19061 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19063 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19064 # DIR into the resulting binary.
19065 hardcode_direct=$hardcode_direct
19067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19068 # DIR into the resulting binary and the resulting library dependency is
19069 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19070 # library is relocated.
19071 hardcode_direct_absolute=$hardcode_direct_absolute
19073 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19074 # into the resulting binary.
19075 hardcode_minus_L=$hardcode_minus_L
19077 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19078 # into the resulting binary.
19079 hardcode_shlibpath_var=$hardcode_shlibpath_var
19081 # Set to "yes" if building a shared library automatically hardcodes DIR
19082 # into the library and all subsequent libraries and executables linked
19083 # against it.
19084 hardcode_automatic=$hardcode_automatic
19086 # Set to yes if linker adds runtime paths of dependent libraries
19087 # to runtime path list.
19088 inherit_rpath=$inherit_rpath
19090 # Whether libtool must link a program against all its dependency libraries.
19091 link_all_deplibs=$link_all_deplibs
19093 # Fix the shell variable \$srcfile for the compiler.
19094 fix_srcfile_path=$lt_fix_srcfile_path
19096 # Set to "yes" if exported symbols are required.
19097 always_export_symbols=$always_export_symbols
19099 # The commands to list exported symbols.
19100 export_symbols_cmds=$lt_export_symbols_cmds
19102 # Symbols that should not be listed in the preloaded symbols.
19103 exclude_expsyms=$lt_exclude_expsyms
19105 # Symbols that must always be exported.
19106 include_expsyms=$lt_include_expsyms
19108 # Commands necessary for linking programs (against libraries) with templates.
19109 prelink_cmds=$lt_prelink_cmds
19111 # Specify filename containing input files.
19112 file_list_spec=$lt_file_list_spec
19114 # How to hardcode a shared library path into an executable.
19115 hardcode_action=$hardcode_action
19117 # The directories searched by this compiler when creating a shared library.
19118 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19120 # Dependencies to place before and after the objects being linked to
19121 # create a shared library.
19122 predep_objects=$lt_predep_objects
19123 postdep_objects=$lt_postdep_objects
19124 predeps=$lt_predeps
19125 postdeps=$lt_postdeps
19127 # The library search path used internally by the compiler when linking
19128 # a shared library.
19129 compiler_lib_search_path=$lt_compiler_lib_search_path
19131 # ### END LIBTOOL CONFIG
19133 _LT_EOF
19135 case $host_os in
19136 aix3*)
19137 cat <<\_LT_EOF >> "$cfgfile"
19138 # AIX sometimes has problems with the GCC collect2 program. For some
19139 # reason, if we set the COLLECT_NAMES environment variable, the problems
19140 # vanish in a puff of smoke.
19141 if test "X${COLLECT_NAMES+set}" != Xset; then
19142 COLLECT_NAMES=
19143 export COLLECT_NAMES
19145 _LT_EOF
19147 esac
19150 ltmain="$ac_aux_dir/ltmain.sh"
19153 # We use sed instead of cat because bash on DJGPP gets confused if
19154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19155 # text mode, it properly converts lines to CR/LF. This bash problem
19156 # is reportedly fixed, but why not run on old versions too?
19157 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19158 || (rm -f "$cfgfile"; exit 1)
19160 case $xsi_shell in
19161 yes)
19162 cat << \_LT_EOF >> "$cfgfile"
19164 # func_dirname file append nondir_replacement
19165 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19166 # otherwise set result to NONDIR_REPLACEMENT.
19167 func_dirname ()
19169 case ${1} in
19170 */*) func_dirname_result="${1%/*}${2}" ;;
19171 * ) func_dirname_result="${3}" ;;
19172 esac
19175 # func_basename file
19176 func_basename ()
19178 func_basename_result="${1##*/}"
19181 # func_dirname_and_basename file append nondir_replacement
19182 # perform func_basename and func_dirname in a single function
19183 # call:
19184 # dirname: Compute the dirname of FILE. If nonempty,
19185 # add APPEND to the result, otherwise set result
19186 # to NONDIR_REPLACEMENT.
19187 # value returned in "$func_dirname_result"
19188 # basename: Compute filename of FILE.
19189 # value retuned in "$func_basename_result"
19190 # Implementation must be kept synchronized with func_dirname
19191 # and func_basename. For efficiency, we do not delegate to
19192 # those functions but instead duplicate the functionality here.
19193 func_dirname_and_basename ()
19195 case ${1} in
19196 */*) func_dirname_result="${1%/*}${2}" ;;
19197 * ) func_dirname_result="${3}" ;;
19198 esac
19199 func_basename_result="${1##*/}"
19202 # func_stripname prefix suffix name
19203 # strip PREFIX and SUFFIX off of NAME.
19204 # PREFIX and SUFFIX must not contain globbing or regex special
19205 # characters, hashes, percent signs, but SUFFIX may contain a leading
19206 # dot (in which case that matches only a dot).
19207 func_stripname ()
19209 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19210 # positional parameters, so assign one to ordinary parameter first.
19211 func_stripname_result=${3}
19212 func_stripname_result=${func_stripname_result#"${1}"}
19213 func_stripname_result=${func_stripname_result%"${2}"}
19216 # func_opt_split
19217 func_opt_split ()
19219 func_opt_split_opt=${1%%=*}
19220 func_opt_split_arg=${1#*=}
19223 # func_lo2o object
19224 func_lo2o ()
19226 case ${1} in
19227 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19228 *) func_lo2o_result=${1} ;;
19229 esac
19232 # func_xform libobj-or-source
19233 func_xform ()
19235 func_xform_result=${1%.*}.lo
19238 # func_arith arithmetic-term...
19239 func_arith ()
19241 func_arith_result=$(( $* ))
19244 # func_len string
19245 # STRING may not start with a hyphen.
19246 func_len ()
19248 func_len_result=${#1}
19251 _LT_EOF
19253 *) # Bourne compatible functions.
19254 cat << \_LT_EOF >> "$cfgfile"
19256 # func_dirname file append nondir_replacement
19257 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19258 # otherwise set result to NONDIR_REPLACEMENT.
19259 func_dirname ()
19261 # Extract subdirectory from the argument.
19262 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19263 if test "X$func_dirname_result" = "X${1}"; then
19264 func_dirname_result="${3}"
19265 else
19266 func_dirname_result="$func_dirname_result${2}"
19270 # func_basename file
19271 func_basename ()
19273 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19277 # func_stripname prefix suffix name
19278 # strip PREFIX and SUFFIX off of NAME.
19279 # PREFIX and SUFFIX must not contain globbing or regex special
19280 # characters, hashes, percent signs, but SUFFIX may contain a leading
19281 # dot (in which case that matches only a dot).
19282 # func_strip_suffix prefix name
19283 func_stripname ()
19285 case ${2} in
19286 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19287 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19288 esac
19291 # sed scripts:
19292 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19293 my_sed_long_arg='1s/^-[^=]*=//'
19295 # func_opt_split
19296 func_opt_split ()
19298 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19299 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19302 # func_lo2o object
19303 func_lo2o ()
19305 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19308 # func_xform libobj-or-source
19309 func_xform ()
19311 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19314 # func_arith arithmetic-term...
19315 func_arith ()
19317 func_arith_result=`expr "$@"`
19320 # func_len string
19321 # STRING may not start with a hyphen.
19322 func_len ()
19324 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19327 _LT_EOF
19328 esac
19330 case $lt_shell_append in
19331 yes)
19332 cat << \_LT_EOF >> "$cfgfile"
19334 # func_append var value
19335 # Append VALUE to the end of shell variable VAR.
19336 func_append ()
19338 eval "$1+=\$2"
19340 _LT_EOF
19343 cat << \_LT_EOF >> "$cfgfile"
19345 # func_append var value
19346 # Append VALUE to the end of shell variable VAR.
19347 func_append ()
19349 eval "$1=\$$1\$2"
19352 _LT_EOF
19354 esac
19357 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19358 || (rm -f "$cfgfile"; exit 1)
19360 mv -f "$cfgfile" "$ofile" ||
19361 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19362 chmod +x "$ofile"
19365 cat <<_LT_EOF >> "$ofile"
19367 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19369 # The linker used to build libraries.
19370 LD=$lt_LD_CXX
19372 # How to create reloadable object files.
19373 reload_flag=$lt_reload_flag_CXX
19374 reload_cmds=$lt_reload_cmds_CXX
19376 # Commands used to build an old-style archive.
19377 old_archive_cmds=$lt_old_archive_cmds_CXX
19379 # A language specific compiler.
19380 CC=$lt_compiler_CXX
19382 # Is the compiler the GNU compiler?
19383 with_gcc=$GCC_CXX
19385 # Compiler flag to turn off builtin functions.
19386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19388 # How to pass a linker flag through the compiler.
19389 wl=$lt_lt_prog_compiler_wl_CXX
19391 # Additional compiler flags for building library objects.
19392 pic_flag=$lt_lt_prog_compiler_pic_CXX
19394 # Compiler flag to prevent dynamic linking.
19395 link_static_flag=$lt_lt_prog_compiler_static_CXX
19397 # Does compiler simultaneously support -c and -o options?
19398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19400 # Whether or not to add -lc for building shared libraries.
19401 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19403 # Whether or not to disallow shared libs when runtime libs are static.
19404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19406 # Compiler flag to allow reflexive dlopens.
19407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19409 # Compiler flag to generate shared objects directly from archives.
19410 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19412 # Whether the compiler copes with passing no objects directly.
19413 compiler_needs_object=$lt_compiler_needs_object_CXX
19415 # Create an old-style archive from a shared archive.
19416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19418 # Create a temporary old-style archive to link instead of a shared archive.
19419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19421 # Commands used to build a shared archive.
19422 archive_cmds=$lt_archive_cmds_CXX
19423 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19425 # Commands used to build a loadable module if different from building
19426 # a shared archive.
19427 module_cmds=$lt_module_cmds_CXX
19428 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19430 # Whether we are building with GNU ld or not.
19431 with_gnu_ld=$lt_with_gnu_ld_CXX
19433 # Flag that allows shared libraries with undefined symbols to be built.
19434 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19436 # Flag that enforces no undefined symbols.
19437 no_undefined_flag=$lt_no_undefined_flag_CXX
19439 # Flag to hardcode \$libdir into a binary during linking.
19440 # This must work even if \$libdir does not exist
19441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19443 # If ld is used when linking, flag to hardcode \$libdir into a binary
19444 # during linking. This must work even if \$libdir does not exist.
19445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19447 # Whether we need a single "-rpath" flag with a separated argument.
19448 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19450 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19451 # DIR into the resulting binary.
19452 hardcode_direct=$hardcode_direct_CXX
19454 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19455 # DIR into the resulting binary and the resulting library dependency is
19456 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19457 # library is relocated.
19458 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19460 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19461 # into the resulting binary.
19462 hardcode_minus_L=$hardcode_minus_L_CXX
19464 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19465 # into the resulting binary.
19466 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19468 # Set to "yes" if building a shared library automatically hardcodes DIR
19469 # into the library and all subsequent libraries and executables linked
19470 # against it.
19471 hardcode_automatic=$hardcode_automatic_CXX
19473 # Set to yes if linker adds runtime paths of dependent libraries
19474 # to runtime path list.
19475 inherit_rpath=$inherit_rpath_CXX
19477 # Whether libtool must link a program against all its dependency libraries.
19478 link_all_deplibs=$link_all_deplibs_CXX
19480 # Fix the shell variable \$srcfile for the compiler.
19481 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19483 # Set to "yes" if exported symbols are required.
19484 always_export_symbols=$always_export_symbols_CXX
19486 # The commands to list exported symbols.
19487 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19489 # Symbols that should not be listed in the preloaded symbols.
19490 exclude_expsyms=$lt_exclude_expsyms_CXX
19492 # Symbols that must always be exported.
19493 include_expsyms=$lt_include_expsyms_CXX
19495 # Commands necessary for linking programs (against libraries) with templates.
19496 prelink_cmds=$lt_prelink_cmds_CXX
19498 # Specify filename containing input files.
19499 file_list_spec=$lt_file_list_spec_CXX
19501 # How to hardcode a shared library path into an executable.
19502 hardcode_action=$hardcode_action_CXX
19504 # The directories searched by this compiler when creating a shared library.
19505 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19507 # Dependencies to place before and after the objects being linked to
19508 # create a shared library.
19509 predep_objects=$lt_predep_objects_CXX
19510 postdep_objects=$lt_postdep_objects_CXX
19511 predeps=$lt_predeps_CXX
19512 postdeps=$lt_postdeps_CXX
19514 # The library search path used internally by the compiler when linking
19515 # a shared library.
19516 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19518 # ### END LIBTOOL TAG CONFIG: CXX
19519 _LT_EOF
19522 "default-1":C)
19523 for ac_file in $CONFIG_FILES; do
19524 # Support "outfile[:infile[:infile...]]"
19525 case "$ac_file" in
19526 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19527 esac
19528 # PO directories have a Makefile.in generated from Makefile.in.in.
19529 case "$ac_file" in */Makefile.in)
19530 # Adjust a relative srcdir.
19531 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19532 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19533 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19534 # In autoconf-2.13 it is called $ac_given_srcdir.
19535 # In autoconf-2.50 it is called $srcdir.
19536 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19537 case "$ac_given_srcdir" in
19538 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19539 /*) top_srcdir="$ac_given_srcdir" ;;
19540 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19541 esac
19542 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19543 rm -f "$ac_dir/POTFILES"
19544 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19545 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19546 POMAKEFILEDEPS="POTFILES.in"
19547 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19548 # on $ac_dir but don't depend on user-specified configuration
19549 # parameters.
19550 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19551 # The LINGUAS file contains the set of available languages.
19552 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19553 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19555 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19556 # Hide the ALL_LINGUAS assigment from automake.
19557 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19558 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19559 else
19560 # The set of available languages was given in configure.in.
19561 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19563 case "$ac_given_srcdir" in
19564 .) srcdirpre= ;;
19565 *) srcdirpre='$(srcdir)/' ;;
19566 esac
19567 POFILES=
19568 GMOFILES=
19569 UPDATEPOFILES=
19570 DUMMYPOFILES=
19571 for lang in $ALL_LINGUAS; do
19572 POFILES="$POFILES $srcdirpre$lang.po"
19573 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19574 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19575 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19576 done
19577 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19578 # environment variable.
19579 INST_LINGUAS=
19580 if test -n "$ALL_LINGUAS"; then
19581 for presentlang in $ALL_LINGUAS; do
19582 useit=no
19583 if test "%UNSET%" != "$LINGUAS"; then
19584 desiredlanguages="$LINGUAS"
19585 else
19586 desiredlanguages="$ALL_LINGUAS"
19588 for desiredlang in $desiredlanguages; do
19589 # Use the presentlang catalog if desiredlang is
19590 # a. equal to presentlang, or
19591 # b. a variant of presentlang (because in this case,
19592 # presentlang can be used as a fallback for messages
19593 # which are not translated in the desiredlang catalog).
19594 case "$desiredlang" in
19595 "$presentlang"*) useit=yes;;
19596 esac
19597 done
19598 if test $useit = yes; then
19599 INST_LINGUAS="$INST_LINGUAS $presentlang"
19601 done
19603 CATALOGS=
19604 if test -n "$INST_LINGUAS"; then
19605 for lang in $INST_LINGUAS; do
19606 CATALOGS="$CATALOGS $lang.gmo"
19607 done
19609 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19610 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19611 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19612 if test -f "$f"; then
19613 case "$f" in
19614 *.orig | *.bak | *~) ;;
19615 *) cat "$f" >> "$ac_dir/Makefile" ;;
19616 esac
19618 done
19621 esac
19622 done ;;
19624 esac
19625 done # for ac_tag
19628 as_fn_exit 0
19629 _ACEOF
19630 ac_clean_files=$ac_clean_files_save
19632 test $ac_write_fail = 0 ||
19633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19636 # configure is writing to config.log, and then calls config.status.
19637 # config.status does its own redirection, appending to config.log.
19638 # Unfortunately, on DOS this fails, as config.log is still kept open
19639 # by configure, so config.status won't be able to write to it; its
19640 # output is simply discarded. So we exec the FD to /dev/null,
19641 # effectively closing config.log, so it can be properly (re)opened and
19642 # appended to by config.status. When coming back to configure, we
19643 # need to make the FD available again.
19644 if test "$no_create" != yes; then
19645 ac_cs_success=:
19646 ac_config_status_args=
19647 test "$silent" = yes &&
19648 ac_config_status_args="$ac_config_status_args --quiet"
19649 exec 5>/dev/null
19650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19651 exec 5>>config.log
19652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19653 # would make configure fail if this is the last instruction.
19654 $ac_cs_success || as_fn_exit $?
19656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19658 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}