gcc/
[official-gcc.git] / libcc1 / configure
blobbf112bb4671ca9657c85e9ca8148747e16598c07
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libcc1 version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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='libcc1'
558 PACKAGE_TARNAME='libcc1'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libcc1 version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="libcc1.cc"
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 ENABLE_PLUGIN_FALSE
606 ENABLE_PLUGIN_TRUE
607 libsuffix
608 GMPINC
609 WERROR
610 WARN_FLAGS
611 CONFIG_STATUS_DEPENDENCIES
612 gcc_version
613 visibility
614 CXXCPP
615 am__fastdepCXX_FALSE
616 am__fastdepCXX_TRUE
617 CXXDEPMODE
618 ac_ct_CXX
619 CXXFLAGS
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 RANLIB
628 OBJDUMP
629 LN_S
631 ac_ct_DUMPBIN
632 DUMPBIN
634 FGREP
636 LIBTOOL
637 MAINT
638 MAINTAINER_MODE_FALSE
639 MAINTAINER_MODE_TRUE
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 am__nodep
644 AMDEPBACKSLASH
645 AMDEP_FALSE
646 AMDEP_TRUE
647 am__quote
648 am__include
649 DEPDIR
650 am__untar
651 am__tar
652 AMTAR
653 am__leading_dot
654 SET_MAKE
656 mkdir_p
657 MKDIR_P
658 INSTALL_STRIP_PROGRAM
659 STRIP
660 install_sh
661 MAKEINFO
662 AUTOHEADER
663 AUTOMAKE
664 AUTOCONF
665 ACLOCAL
666 VERSION
667 PACKAGE
668 CYGPATH_W
669 am__isrc
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 target_subdir
674 host_subdir
675 build_subdir
676 build_libsubdir
677 target_noncanonical
678 EGREP
679 GREP
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 with_build_libsubdir
742 enable_dependency_tracking
743 enable_maintainer_mode
744 enable_static
745 enable_shared
746 with_pic
747 enable_fast_install
748 with_gnu_ld
749 enable_libtool_lock
750 enable_werror_always
751 enable_plugin
753 ac_precious_vars='build_alias
754 host_alias
755 target_alias
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
763 CXXFLAGS
765 CXXCPP
766 GMPINC'
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
817 ac_prev=
818 ac_dashdash=
819 for ac_option
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
833 # Accept the important Cygnus configure options, so we can diagnose typos.
835 case $ac_dashdash$ac_option in
837 ac_dashdash=yes ;;
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
856 --config-cache | -C)
857 cache_file=config.cache ;;
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information."
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 esac
1174 done
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1260 /^X\(\/\/\)$/{
1261 s//\1/
1264 /^X\(\/\).*/{
1265 s//\1/
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1273 else
1274 ac_srcdir_defaulted=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1363 cat <<\_ACEOF
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1380 esac
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
1389 --enable-maintainer-mode enable make rules and dependencies not useful
1390 (and sometimes confusing) to the casual installer
1391 --enable-static[=PKGS] build static libraries [default=no]
1392 --enable-shared[=PKGS] build shared libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396 --enable-werror-always enable -Werror despite compiler version
1397 --enable-plugin enable plugin support
1399 Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-build-libsubdir=DIR Directory where to find libraries for build system
1403 --with-pic try to use only PIC/non-PIC objects [default=use
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CPP C preprocessor
1416 CXX C++ compiler command
1417 CXXFLAGS C++ compiler flags
1418 CXXCPP C++ preprocessor
1419 GMPINC How to find GMP include files
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1424 Report bugs to the package provider.
1425 _ACEOF
1426 ac_status=$?
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434 continue
1435 ac_builddir=.
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1453 case $srcdir in
1454 .) # We are building in place.
1455 ac_srcdir=.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1462 *) # Relative name.
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1477 else
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 fi || ac_status=$?
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1481 done
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1486 cat <<\_ACEOF
1487 libcc1 configure version-unused
1488 generated by GNU Autoconf 2.64
1490 Copyright (C) 2009 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494 exit
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1509 case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512 esac
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1516 ac_status=$?
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1527 ac_retval=0
1528 else
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1532 ac_retval=1
1534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1535 return $ac_retval
1537 } # ac_fn_c_try_compile
1539 # ac_fn_c_try_cpp LINENO
1540 # ----------------------
1541 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_cpp ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_cpp conftest.$ac_ext"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } >/dev/null && {
1561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 }; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1569 ac_retval=1
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 return $ac_retval
1574 } # ac_fn_c_try_cpp
1576 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1579 # the include files in INCLUDES and setting the cache variable VAR
1580 # accordingly.
1581 ac_fn_c_check_header_mongrel ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1588 $as_echo_n "(cached) " >&6
1590 eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 else
1594 # Is the header compilable?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1596 $as_echo_n "checking $2 usability... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_header_compiler=yes
1604 else
1605 ac_header_compiler=no
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1609 $as_echo "$ac_header_compiler" >&6; }
1611 # Is the header present?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1613 $as_echo_n "checking $2 presence... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 #include <$2>
1617 _ACEOF
1618 if ac_fn_c_try_cpp "$LINENO"; then :
1619 ac_header_preproc=yes
1620 else
1621 ac_header_preproc=no
1623 rm -f conftest.err conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1625 $as_echo "$ac_header_preproc" >&6; }
1627 # So? What about this header?
1628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1629 yes:no: )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1631 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 no:yes:* )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1637 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1639 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1641 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1643 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 esac
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651 $as_echo_n "(cached) " >&6
1652 else
1653 eval "$3=\$ac_header_compiler"
1655 eval ac_res=\$$3
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 } # ac_fn_c_check_header_mongrel
1663 # ac_fn_c_try_run LINENO
1664 # ----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666 # that executables *can* be run.
1667 ac_fn_c_try_run ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>&5
1678 ac_status=$?
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; }; }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: program exited with status $ac_status" >&5
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 ac_retval=$ac_status
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 return $ac_retval
1703 } # ac_fn_c_try_run
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 } # ac_fn_c_check_header_compile
1736 # ac_fn_c_try_link LINENO
1737 # -----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_link ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest$ac_exeext
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest$ac_exeext && {
1762 test "$cross_compiling" = yes ||
1763 $as_test_x conftest$ac_exeext
1764 }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1770 ac_retval=1
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 return $ac_retval
1780 } # ac_fn_c_try_link
1782 # ac_fn_c_check_func LINENO FUNC VAR
1783 # ----------------------------------
1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1785 ac_fn_c_check_func ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1797 #define $2 innocuous_$2
1799 /* System header to define __stub macros and hopefully few prototypes,
1800 which can conflict with char $2 (); below.
1801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1802 <limits.h> exists even on freestanding compilers. */
1804 #ifdef __STDC__
1805 # include <limits.h>
1806 #else
1807 # include <assert.h>
1808 #endif
1810 #undef $2
1812 /* Override any GCC internal prototype to avoid an error.
1813 Use char because int might match the return type of a GCC
1814 builtin and then its argument prototype would still apply. */
1815 #ifdef __cplusplus
1816 extern "C"
1817 #endif
1818 char $2 ();
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined __stub_$2 || defined __stub___$2
1823 choke me
1824 #endif
1827 main ()
1829 return $2 ();
1831 return 0;
1833 _ACEOF
1834 if ac_fn_c_try_link "$LINENO"; then :
1835 eval "$3=yes"
1836 else
1837 eval "$3=no"
1839 rm -f core conftest.err conftest.$ac_objext \
1840 conftest$ac_exeext conftest.$ac_ext
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_func
1849 # ac_fn_cxx_try_compile LINENO
1850 # ----------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_compile ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext
1856 if { { ac_try="$ac_compile"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_cxx_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.$ac_objext; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1885 } # ac_fn_cxx_try_compile
1887 # ac_fn_cxx_try_cpp LINENO
1888 # ------------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_cxx_try_cpp ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_cpp conftest.$ac_ext"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } >/dev/null && {
1909 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=1
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1922 } # ac_fn_cxx_try_cpp
1924 # ac_fn_cxx_try_link LINENO
1925 # -------------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_cxx_try_link ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 rm -f conftest.$ac_objext conftest$ac_exeext
1931 if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1939 ac_status=$?
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_cxx_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 $as_test_x conftest$ac_exeext
1952 }; then :
1953 ac_retval=0
1954 else
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_retval=1
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 return $ac_retval
1968 } # ac_fn_cxx_try_link
1970 # ac_fn_c_check_decl LINENO SYMBOL VAR
1971 # ------------------------------------
1972 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1973 ac_fn_c_check_decl ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 as_decl_name=`echo $2|sed 's/ *(.*//'`
1977 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1979 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 #ifndef $as_decl_name
1990 #ifdef __cplusplus
1991 (void) $as_decl_use;
1992 #else
1993 (void) $as_decl_name;
1994 #endif
1995 #endif
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003 else
2004 eval "$3=no"
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_decl
2014 cat >config.log <<_ACEOF
2015 This file contains any messages produced by compilers while
2016 running configure, to aid debugging if configure makes a mistake.
2018 It was created by libcc1 $as_me version-unused, which was
2019 generated by GNU Autoconf 2.64. Invocation command line was
2021 $ $0 $@
2023 _ACEOF
2024 exec 5>>config.log
2026 cat <<_ASUNAME
2027 ## --------- ##
2028 ## Platform. ##
2029 ## --------- ##
2031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2048 _ASUNAME
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 $as_echo "PATH: $as_dir"
2056 done
2057 IFS=$as_save_IFS
2059 } >&5
2061 cat >&5 <<_ACEOF
2064 ## ----------- ##
2065 ## Core tests. ##
2066 ## ----------- ##
2068 _ACEOF
2071 # Keep a trace of the command line.
2072 # Strip out --no-create and --no-recursion so they do not pile up.
2073 # Strip out --silent because we don't want to record it for future runs.
2074 # Also quote any args containing shell meta-characters.
2075 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_configure_args=
2077 ac_configure_args0=
2078 ac_configure_args1=
2079 ac_must_keep_next=false
2080 for ac_pass in 1 2
2082 for ac_arg
2084 case $ac_arg in
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2088 continue ;;
2089 *\'*)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091 esac
2092 case $ac_pass in
2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095 as_fn_append ac_configure_args1 " '$ac_arg'"
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2098 else
2099 case $ac_arg in
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 esac
2108 -* ) ac_must_keep_next=true ;;
2109 esac
2111 as_fn_append ac_configure_args " '$ac_arg'"
2113 esac
2114 done
2115 done
2116 { ac_configure_args0=; unset ac_configure_args0;}
2117 { ac_configure_args1=; unset ac_configure_args1;}
2119 # When interrupted or exit'd, cleanup temporary files, and complete
2120 # config.log. We remove comments because anyway the quotes in there
2121 # would cause problems or look ugly.
2122 # WARNING: Use '\'' to represent an apostrophe within the trap.
2123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124 trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2127 echo
2129 cat <<\_ASBOX
2130 ## ---------------- ##
2131 ## Cache variables. ##
2132 ## ---------------- ##
2133 _ASBOX
2134 echo
2135 # The following way of writing the cache mishandles newlines in values,
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in #(
2140 *${as_nl}*)
2141 case $ac_var in #(
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144 esac
2145 case $ac_var in #(
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2149 esac ;;
2150 esac
2151 done
2152 (set) 2>&1 |
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2155 sed -n \
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158 ;; #(
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 esac |
2163 sort
2165 echo
2167 cat <<\_ASBOX
2168 ## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##
2171 _ASBOX
2172 echo
2173 for ac_var in $ac_subst_vars
2175 eval ac_val=\$$ac_var
2176 case $ac_val in
2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 esac
2179 $as_echo "$ac_var='\''$ac_val'\''"
2180 done | sort
2181 echo
2183 if test -n "$ac_subst_files"; then
2184 cat <<\_ASBOX
2185 ## ------------------- ##
2186 ## File substitutions. ##
2187 ## ------------------- ##
2188 _ASBOX
2189 echo
2190 for ac_var in $ac_subst_files
2192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
2197 done | sort
2198 echo
2201 if test -s confdefs.h; then
2202 cat <<\_ASBOX
2203 ## ----------- ##
2204 ## confdefs.h. ##
2205 ## ----------- ##
2206 _ASBOX
2207 echo
2208 cat confdefs.h
2209 echo
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2227 $as_echo "/* confdefs.h */" > confdefs.h
2229 # Predefined preprocessor variables.
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237 _ACEOF
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 _ACEOF
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2245 _ACEOF
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2253 _ACEOF
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261 ac_site_file1=$CONFIG_SITE
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265 else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2276 . "$ac_site_file"
2278 done
2280 if test -r "$cache_file"; then
2281 # Some versions of bash will fail to source /dev/null (special
2282 # files actually), so we avoid doing that.
2283 if test -f "$cache_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286 case $cache_file in
2287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288 *) . "./$cache_file";;
2289 esac
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294 >$cache_file
2297 # Check that the precious variables saved in the cache have kept the same
2298 # value.
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302 eval ac_new_set=\$ac_env_${ac_var}_set
2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304 eval ac_new_val=\$ac_env_${ac_var}_value
2305 case $ac_old_set,$ac_new_set in
2306 set,)
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2310 ,set)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,);;
2316 if test "x$ac_old_val" != "x$ac_new_val"; then
2317 # differences in whitespace do not lead to failure.
2318 ac_old_val_w=`echo x $ac_old_val`
2319 ac_new_val_w=`echo x $ac_new_val`
2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323 ac_cache_corrupted=:
2324 else
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327 eval $ac_var=\$ac_old_val
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2330 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2332 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2333 fi;;
2334 esac
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2337 case $ac_new_val in
2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2340 esac
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2344 esac
2346 done
2347 if $ac_cache_corrupted; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354 ## -------------------- ##
2355 ## Main body of script. ##
2356 ## -------------------- ##
2358 ac_ext=c
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2372 ac_aux_dir=
2373 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2374 for ac_t in install-sh install.sh shtool; do
2375 if test -f "$ac_dir/$ac_t"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/$ac_t -c"
2378 break 2
2380 done
2381 done
2382 if test -z "$ac_aux_dir"; then
2383 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2386 # These three variables are undocumented and unsupported,
2387 # and are intended to be withdrawn in a future Autoconf release.
2388 # They can cause serious problems if a builder's source tree is in a directory
2389 # whose full name contains unusual characters.
2390 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2391 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2392 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2395 # Make sure we can run config.sub.
2396 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2397 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2400 $as_echo_n "checking build system type... " >&6; }
2401 if test "${ac_cv_build+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 ac_build_alias=$build_alias
2405 test "x$ac_build_alias" = x &&
2406 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2407 test "x$ac_build_alias" = x &&
2408 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2409 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2410 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2414 $as_echo "$ac_cv_build" >&6; }
2415 case $ac_cv_build in
2416 *-*-*) ;;
2417 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2418 esac
2419 build=$ac_cv_build
2420 ac_save_IFS=$IFS; IFS='-'
2421 set x $ac_cv_build
2422 shift
2423 build_cpu=$1
2424 build_vendor=$2
2425 shift; shift
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2428 build_os=$*
2429 IFS=$ac_save_IFS
2430 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2434 $as_echo_n "checking host system type... " >&6; }
2435 if test "${ac_cv_host+set}" = set; then :
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test "x$host_alias" = x; then
2439 ac_cv_host=$ac_cv_build
2440 else
2441 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2442 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2447 $as_echo "$ac_cv_host" >&6; }
2448 case $ac_cv_host in
2449 *-*-*) ;;
2450 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2451 esac
2452 host=$ac_cv_host
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_host
2455 shift
2456 host_cpu=$1
2457 host_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 host_os=$*
2462 IFS=$ac_save_IFS
2463 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2467 $as_echo_n "checking target system type... " >&6; }
2468 if test "${ac_cv_target+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test "x$target_alias" = x; then
2472 ac_cv_target=$ac_cv_host
2473 else
2474 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2475 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2480 $as_echo "$ac_cv_target" >&6; }
2481 case $ac_cv_target in
2482 *-*-*) ;;
2483 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2484 esac
2485 target=$ac_cv_target
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_target
2488 shift
2489 target_cpu=$1
2490 target_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 target_os=$*
2495 IFS=$ac_save_IFS
2496 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499 # The aliases save the names the user supplied, while $host etc.
2500 # will get canonicalized.
2501 test -n "$target_alias" &&
2502 test "$program_prefix$program_suffix$program_transform_name" = \
2503 NONENONEs,x,x, &&
2504 program_prefix=${target_alias}-
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2533 done
2534 done
2535 IFS=$as_save_IFS
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2542 $as_echo "$CC" >&6; }
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2550 if test -z "$ac_cv_prog_CC"; then
2551 ac_ct_CC=$CC
2552 # Extract the first word of "gcc", so it can be a program name with args.
2553 set dummy gcc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$ac_ct_CC"; then
2560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_ac_ct_CC="gcc"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2573 done
2574 done
2575 IFS=$as_save_IFS
2579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580 if test -n "$ac_ct_CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2582 $as_echo "$ac_ct_CC" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2588 if test "x$ac_ct_CC" = x; then
2589 CC=""
2590 else
2591 case $cross_compiling:$ac_tool_warned in
2592 yes:)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595 ac_tool_warned=yes ;;
2596 esac
2597 CC=$ac_ct_CC
2599 else
2600 CC="$ac_cv_prog_CC"
2603 if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
2605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}cc; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="${ac_tool_prefix}cc"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2626 done
2627 done
2628 IFS=$as_save_IFS
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635 $as_echo "$CC" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2644 if test -z "$CC"; then
2645 # Extract the first word of "cc", so it can be a program name with args.
2646 set dummy cc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_CC+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 ac_prog_rejected=no
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2664 ac_prog_rejected=yes
2665 continue
2667 ac_cv_prog_CC="cc"
2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2671 done
2672 done
2673 IFS=$as_save_IFS
2675 if test $ac_prog_rejected = yes; then
2676 # We found a bogon in the path, so make sure we never use it.
2677 set dummy $ac_cv_prog_CC
2678 shift
2679 if test $# != 0; then
2680 # We chose a different compiler from the bogus one.
2681 # However, it has the same basename, so the bogon will be chosen
2682 # first if we set CC to just the basename; use the full file name.
2683 shift
2684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2700 if test -z "$CC"; then
2701 if test -n "$ac_tool_prefix"; then
2702 for ac_prog in cl.exe
2704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2725 done
2726 done
2727 IFS=$as_save_IFS
2731 CC=$ac_cv_prog_CC
2732 if test -n "$CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2734 $as_echo "$CC" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2741 test -n "$CC" && break
2742 done
2744 if test -z "$CC"; then
2745 ac_ct_CC=$CC
2746 for ac_prog in cl.exe
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$ac_ct_CC"; then
2756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_ac_ct_CC="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2771 IFS=$as_save_IFS
2775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2778 $as_echo "$ac_ct_CC" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2785 test -n "$ac_ct_CC" && break
2786 done
2788 if test "x$ac_ct_CC" = x; then
2789 CC=""
2790 else
2791 case $cross_compiling:$ac_tool_warned in
2792 yes:)
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795 ac_tool_warned=yes ;;
2796 esac
2797 CC=$ac_ct_CC
2804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 as_fn_error "no acceptable C compiler found in \$PATH
2807 See \`config.log' for more details." "$LINENO" 5; }
2809 # Provide some information about the compiler.
2810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2811 set X $ac_compile
2812 ac_compiler=$2
2813 for ac_option in --version -v -V -qversion; do
2814 { { ac_try="$ac_compiler $ac_option >&5"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2822 ac_status=$?
2823 if test -s conftest.err; then
2824 sed '10a\
2825 ... rest of stderr output deleted ...
2826 10q' conftest.err >conftest.er1
2827 cat conftest.er1 >&5
2828 rm -f conftest.er1 conftest.err
2830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831 test $ac_status = 0; }
2832 done
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2838 main ()
2842 return 0;
2844 _ACEOF
2845 ac_clean_files_save=$ac_clean_files
2846 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2847 # Try to create an executable without -o first, disregard a.out.
2848 # It will help us diagnose broken compilers, and finding out an intuition
2849 # of exeext.
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2851 $as_echo_n "checking for C compiler default output file name... " >&6; }
2852 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2854 # The possible output files:
2855 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2857 ac_rmfiles=
2858 for ac_file in $ac_files
2860 case $ac_file in
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2862 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2863 esac
2864 done
2865 rm -f $ac_rmfiles
2867 if { { ac_try="$ac_link_default"
2868 case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2873 $as_echo "$ac_try_echo"; } >&5
2874 (eval "$ac_link_default") 2>&5
2875 ac_status=$?
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }; then :
2878 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2879 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2880 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2881 # so that the user can short-circuit this test for compilers unknown to
2882 # Autoconf.
2883 for ac_file in $ac_files ''
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2889 [ab].out )
2890 # We found the default executable, but exeext='' is most
2891 # certainly right.
2892 break;;
2893 *.* )
2894 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2895 then :; else
2896 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2898 # We set ac_cv_exeext here because the later test for it is not
2899 # safe: cross compilers may not add the suffix if given an `-o'
2900 # argument, so we may need to know it at that point already.
2901 # Even if this section looks crufty: it has the advantage of
2902 # actually working.
2903 break;;
2905 break;;
2906 esac
2907 done
2908 test "$ac_cv_exeext" = no && ac_cv_exeext=
2910 else
2911 ac_file=''
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2914 $as_echo "$ac_file" >&6; }
2915 if test -z "$ac_file"; then :
2916 $as_echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { as_fn_set_status 77
2922 as_fn_error "C compiler cannot create executables
2923 See \`config.log' for more details." "$LINENO" 5; }; }
2925 ac_exeext=$ac_cv_exeext
2927 # Check that the compiler produces executables we can run. If not, either
2928 # the compiler is broken, or we cross compile.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2930 $as_echo_n "checking whether the C compiler works... " >&6; }
2931 # If not cross compiling, check that we can run a simple program.
2932 if test "$cross_compiling" != yes; then
2933 if { ac_try='./$ac_file'
2934 { { case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_try") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }; }; then
2944 cross_compiling=no
2945 else
2946 if test "$cross_compiling" = maybe; then
2947 cross_compiling=yes
2948 else
2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error "cannot run C compiled programs.
2952 If you meant to cross compile, use \`--host'.
2953 See \`config.log' for more details." "$LINENO" 5; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2961 ac_clean_files=$ac_clean_files_save
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2965 $as_echo_n "checking whether we are cross compiling... " >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2967 $as_echo "$cross_compiling" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2970 $as_echo_n "checking for suffix of executables... " >&6; }
2971 if { { ac_try="$ac_link"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2983 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2984 # work properly (i.e., refer to `conftest.exe'), while it won't with
2985 # `rm'.
2986 for ac_file in conftest.exe conftest conftest.*; do
2987 test -f "$ac_file" || continue
2988 case $ac_file in
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991 break;;
2992 * ) break;;
2993 esac
2994 done
2995 else
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error "cannot compute suffix of executables: cannot compile and link
2999 See \`config.log' for more details." "$LINENO" 5; }
3001 rm -f conftest$ac_cv_exeext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3003 $as_echo "$ac_cv_exeext" >&6; }
3005 rm -f conftest.$ac_ext
3006 EXEEXT=$ac_cv_exeext
3007 ac_exeext=$EXEEXT
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3009 $as_echo_n "checking for suffix of object files... " >&6; }
3010 if test "${ac_cv_objext+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h. */
3017 main ()
3021 return 0;
3023 _ACEOF
3024 rm -f conftest.o conftest.obj
3025 if { { ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_compile") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; then :
3036 for ac_file in conftest.o conftest.obj conftest.*; do
3037 test -f "$ac_file" || continue;
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041 break;;
3042 esac
3043 done
3044 else
3045 $as_echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error "cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details." "$LINENO" 5; }
3053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3056 $as_echo "$ac_cv_objext" >&6; }
3057 OBJEXT=$ac_cv_objext
3058 ac_objext=$OBJEXT
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3060 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3061 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3068 main ()
3070 #ifndef __GNUC__
3071 choke me
3072 #endif
3075 return 0;
3077 _ACEOF
3078 if ac_fn_c_try_compile "$LINENO"; then :
3079 ac_compiler_gnu=yes
3080 else
3081 ac_compiler_gnu=no
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3088 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3089 if test $ac_compiler_gnu = yes; then
3090 GCC=yes
3091 else
3092 GCC=
3094 ac_test_CFLAGS=${CFLAGS+set}
3095 ac_save_CFLAGS=$CFLAGS
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3097 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3098 if test "${ac_cv_prog_cc_g+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 ac_save_c_werror_flag=$ac_c_werror_flag
3102 ac_c_werror_flag=yes
3103 ac_cv_prog_cc_g=no
3104 CFLAGS="-g"
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117 ac_cv_prog_cc_g=yes
3118 else
3119 CFLAGS=""
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3124 main ()
3128 return 0;
3130 _ACEOF
3131 if ac_fn_c_try_compile "$LINENO"; then :
3133 else
3134 ac_c_werror_flag=$ac_save_c_werror_flag
3135 CFLAGS="-g"
3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3140 main ()
3144 return 0;
3146 _ACEOF
3147 if ac_fn_c_try_compile "$LINENO"; then :
3148 ac_cv_prog_cc_g=yes
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_c_werror_flag=$ac_save_c_werror_flag
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3158 $as_echo "$ac_cv_prog_cc_g" >&6; }
3159 if test "$ac_test_CFLAGS" = set; then
3160 CFLAGS=$ac_save_CFLAGS
3161 elif test $ac_cv_prog_cc_g = yes; then
3162 if test "$GCC" = yes; then
3163 CFLAGS="-g -O2"
3164 else
3165 CFLAGS="-g"
3167 else
3168 if test "$GCC" = yes; then
3169 CFLAGS="-O2"
3170 else
3171 CFLAGS=
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3175 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3176 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 ac_cv_prog_cc_c89=no
3180 ac_save_CC=$CC
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183 #include <stdarg.h>
3184 #include <stdio.h>
3185 #include <sys/types.h>
3186 #include <sys/stat.h>
3187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3188 struct buf { int x; };
3189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3190 static char *e (p, i)
3191 char **p;
3192 int i;
3194 return p[i];
3196 static char *f (char * (*g) (char **, int), char **p, ...)
3198 char *s;
3199 va_list v;
3200 va_start (v,p);
3201 s = g (p, va_arg (v,int));
3202 va_end (v);
3203 return s;
3206 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3207 function prototypes and stuff, but not '\xHH' hex character constants.
3208 These don't provoke an error unfortunately, instead are silently treated
3209 as 'x'. The following induces an error, until -std is added to get
3210 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3211 array size at least. It's necessary to write '\x00'==0 to get something
3212 that's true only with -std. */
3213 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3215 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3216 inside strings and character constants. */
3217 #define FOO(x) 'x'
3218 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3220 int test (int i, double x);
3221 struct s1 {int (*f) (int a);};
3222 struct s2 {int (*f) (double a);};
3223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3224 int argc;
3225 char **argv;
3227 main ()
3229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3231 return 0;
3233 _ACEOF
3234 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3235 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3237 CC="$ac_save_CC $ac_arg"
3238 if ac_fn_c_try_compile "$LINENO"; then :
3239 ac_cv_prog_cc_c89=$ac_arg
3241 rm -f core conftest.err conftest.$ac_objext
3242 test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3252 $as_echo "none needed" >&6; } ;;
3253 xno)
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3255 $as_echo "unsupported" >&6; } ;;
3257 CC="$CC $ac_cv_prog_cc_c89"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3259 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261 if test "x$ac_cv_prog_cc_c89" != xno; then :
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3278 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3279 # On Suns, sometimes $CPP names a directory.
3280 if test -n "$CPP" && test -d "$CPP"; then
3281 CPP=
3283 if test -z "$CPP"; then
3284 if test "${ac_cv_prog_CPP+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 # Double quotes because CPP needs to be expanded
3288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3290 ac_preproc_ok=false
3291 for ac_c_preproc_warn_flag in '' yes
3293 # Use a header file that comes with gcc, so configuring glibc
3294 # with a fresh cross-compiler works.
3295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3296 # <limits.h> exists even on freestanding compilers.
3297 # On the NeXT, cc -E runs the code through the compiler's parser,
3298 # not just through cpp. "Syntax error" is here to catch this case.
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3301 #ifdef __STDC__
3302 # include <limits.h>
3303 #else
3304 # include <assert.h>
3305 #endif
3306 Syntax error
3307 _ACEOF
3308 if ac_fn_c_try_cpp "$LINENO"; then :
3310 else
3311 # Broken: fails on valid input.
3312 continue
3314 rm -f conftest.err conftest.$ac_ext
3316 # OK, works on sane cases. Now check whether nonexistent headers
3317 # can be detected and how.
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320 #include <ac_nonexistent.h>
3321 _ACEOF
3322 if ac_fn_c_try_cpp "$LINENO"; then :
3323 # Broken: success on invalid input.
3324 continue
3325 else
3326 # Passes both tests.
3327 ac_preproc_ok=:
3328 break
3330 rm -f conftest.err conftest.$ac_ext
3332 done
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then :
3336 break
3339 done
3340 ac_cv_prog_CPP=$CPP
3343 CPP=$ac_cv_prog_CPP
3344 else
3345 ac_cv_prog_CPP=$CPP
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3348 $as_echo "$CPP" >&6; }
3349 ac_preproc_ok=false
3350 for ac_c_preproc_warn_flag in '' yes
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360 #ifdef __STDC__
3361 # include <limits.h>
3362 #else
3363 # include <assert.h>
3364 #endif
3365 Syntax error
3366 _ACEOF
3367 if ac_fn_c_try_cpp "$LINENO"; then :
3369 else
3370 # Broken: fails on valid input.
3371 continue
3373 rm -f conftest.err conftest.$ac_ext
3375 # OK, works on sane cases. Now check whether nonexistent headers
3376 # can be detected and how.
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379 #include <ac_nonexistent.h>
3380 _ACEOF
3381 if ac_fn_c_try_cpp "$LINENO"; then :
3382 # Broken: success on invalid input.
3383 continue
3384 else
3385 # Passes both tests.
3386 ac_preproc_ok=:
3387 break
3389 rm -f conftest.err conftest.$ac_ext
3391 done
3392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3393 rm -f conftest.err conftest.$ac_ext
3394 if $ac_preproc_ok; then :
3396 else
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3400 See \`config.log' for more details." "$LINENO" 5; }
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3411 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3412 if test "${ac_cv_path_GREP+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -z "$GREP"; then
3416 ac_path_GREP_found=false
3417 # Loop through the user's path and test for each of PROGNAME-LIST
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_prog in grep ggrep; do
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3426 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3427 # Check for GNU ac_path_GREP and select it if it is found.
3428 # Check for GNU $ac_path_GREP
3429 case `"$ac_path_GREP" --version 2>&1` in
3430 *GNU*)
3431 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3433 ac_count=0
3434 $as_echo_n 0123456789 >"conftest.in"
3435 while :
3437 cat "conftest.in" "conftest.in" >"conftest.tmp"
3438 mv "conftest.tmp" "conftest.in"
3439 cp "conftest.in" "conftest.nl"
3440 $as_echo 'GREP' >> "conftest.nl"
3441 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3443 as_fn_arith $ac_count + 1 && ac_count=$as_val
3444 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3445 # Best one so far, save it but keep looking for a better one
3446 ac_cv_path_GREP="$ac_path_GREP"
3447 ac_path_GREP_max=$ac_count
3449 # 10*(2^10) chars as input seems more than enough
3450 test $ac_count -gt 10 && break
3451 done
3452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3453 esac
3455 $ac_path_GREP_found && break 3
3456 done
3457 done
3458 done
3459 IFS=$as_save_IFS
3460 if test -z "$ac_cv_path_GREP"; then
3461 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3463 else
3464 ac_cv_path_GREP=$GREP
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3469 $as_echo "$ac_cv_path_GREP" >&6; }
3470 GREP="$ac_cv_path_GREP"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3474 $as_echo_n "checking for egrep... " >&6; }
3475 if test "${ac_cv_path_EGREP+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3479 then ac_cv_path_EGREP="$GREP -E"
3480 else
3481 if test -z "$EGREP"; then
3482 ac_path_EGREP_found=false
3483 # Loop through the user's path and test for each of PROGNAME-LIST
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_prog in egrep; do
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3492 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3493 # Check for GNU ac_path_EGREP and select it if it is found.
3494 # Check for GNU $ac_path_EGREP
3495 case `"$ac_path_EGREP" --version 2>&1` in
3496 *GNU*)
3497 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3499 ac_count=0
3500 $as_echo_n 0123456789 >"conftest.in"
3501 while :
3503 cat "conftest.in" "conftest.in" >"conftest.tmp"
3504 mv "conftest.tmp" "conftest.in"
3505 cp "conftest.in" "conftest.nl"
3506 $as_echo 'EGREP' >> "conftest.nl"
3507 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3509 as_fn_arith $ac_count + 1 && ac_count=$as_val
3510 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3511 # Best one so far, save it but keep looking for a better one
3512 ac_cv_path_EGREP="$ac_path_EGREP"
3513 ac_path_EGREP_max=$ac_count
3515 # 10*(2^10) chars as input seems more than enough
3516 test $ac_count -gt 10 && break
3517 done
3518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3519 esac
3521 $ac_path_EGREP_found && break 3
3522 done
3523 done
3524 done
3525 IFS=$as_save_IFS
3526 if test -z "$ac_cv_path_EGREP"; then
3527 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3529 else
3530 ac_cv_path_EGREP=$EGREP
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3536 $as_echo "$ac_cv_path_EGREP" >&6; }
3537 EGREP="$ac_cv_path_EGREP"
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3541 $as_echo_n "checking for ANSI C header files... " >&6; }
3542 if test "${ac_cv_header_stdc+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547 #include <stdlib.h>
3548 #include <stdarg.h>
3549 #include <string.h>
3550 #include <float.h>
3553 main ()
3557 return 0;
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_header_stdc=yes
3562 else
3563 ac_cv_header_stdc=no
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 if test $ac_cv_header_stdc = yes; then
3568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 #include <string.h>
3573 _ACEOF
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 $EGREP "memchr" >/dev/null 2>&1; then :
3577 else
3578 ac_cv_header_stdc=no
3580 rm -f conftest*
3584 if test $ac_cv_header_stdc = yes; then
3585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588 #include <stdlib.h>
3590 _ACEOF
3591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3592 $EGREP "free" >/dev/null 2>&1; then :
3594 else
3595 ac_cv_header_stdc=no
3597 rm -f conftest*
3601 if test $ac_cv_header_stdc = yes; then
3602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3603 if test "$cross_compiling" = yes; then :
3605 else
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #include <ctype.h>
3609 #include <stdlib.h>
3610 #if ((' ' & 0x0FF) == 0x020)
3611 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3612 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3613 #else
3614 # define ISLOWER(c) \
3615 (('a' <= (c) && (c) <= 'i') \
3616 || ('j' <= (c) && (c) <= 'r') \
3617 || ('s' <= (c) && (c) <= 'z'))
3618 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3619 #endif
3621 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3623 main ()
3625 int i;
3626 for (i = 0; i < 256; i++)
3627 if (XOR (islower (i), ISLOWER (i))
3628 || toupper (i) != TOUPPER (i))
3629 return 2;
3630 return 0;
3632 _ACEOF
3633 if ac_fn_c_try_run "$LINENO"; then :
3635 else
3636 ac_cv_header_stdc=no
3638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3639 conftest.$ac_objext conftest.beam conftest.$ac_ext
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3645 $as_echo "$ac_cv_header_stdc" >&6; }
3646 if test $ac_cv_header_stdc = yes; then
3648 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3653 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3654 inttypes.h stdint.h unistd.h
3655 do :
3656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3657 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3659 eval as_val=\$$as_ac_Header
3660 if test "x$as_val" = x""yes; then :
3661 cat >>confdefs.h <<_ACEOF
3662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3663 _ACEOF
3667 done
3671 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3672 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3673 MINIX=yes
3674 else
3675 MINIX=
3679 if test "$MINIX" = yes; then
3681 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3684 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3687 $as_echo "#define _MINIX 1" >>confdefs.h
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3693 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3694 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3700 # define __EXTENSIONS__ 1
3701 $ac_includes_default
3703 main ()
3707 return 0;
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_safe_to_define___extensions__=yes
3712 else
3713 ac_cv_safe_to_define___extensions__=no
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3718 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3719 test $ac_cv_safe_to_define___extensions__ = yes &&
3720 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3722 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3724 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3726 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3728 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3731 # Determine the noncanonical target name, for directory use.
3732 case ${build_alias} in
3733 "") build_noncanonical=${build} ;;
3734 *) build_noncanonical=${build_alias} ;;
3735 esac
3737 case ${host_alias} in
3738 "") host_noncanonical=${build_noncanonical} ;;
3739 *) host_noncanonical=${host_alias} ;;
3740 esac
3742 case ${target_alias} in
3743 "") target_noncanonical=${host_noncanonical} ;;
3744 *) target_noncanonical=${target_alias} ;;
3745 esac
3750 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3751 # have matching libraries, they should use host libraries: Makefile.tpl
3752 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3753 # However, they still use the build modules, because the corresponding
3754 # host modules (e.g. bison) are only built for the host when bootstrap
3755 # finishes. So:
3756 # - build_subdir is where we find build modules, and never changes.
3757 # - build_libsubdir is where we find build libraries, and can be overridden.
3759 # Prefix 'build-' so this never conflicts with target_subdir.
3760 build_subdir="build-${build_noncanonical}"
3762 # Check whether --with-build-libsubdir was given.
3763 if test "${with_build_libsubdir+set}" = set; then :
3764 withval=$with_build_libsubdir; build_libsubdir="$withval"
3765 else
3766 build_libsubdir="$build_subdir"
3769 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3770 if ( test $srcdir = . && test -d gcc ) \
3771 || test -d $srcdir/../host-${host_noncanonical}; then
3772 host_subdir="host-${host_noncanonical}"
3773 else
3774 host_subdir=.
3776 # No prefix.
3777 target_subdir=${target_noncanonical}
3780 # 1.11.1: Require that version of automake.
3781 # foreign: Don't require README, INSTALL, NEWS, etc.
3782 # no-define: Don't define PACKAGE and VERSION.
3783 # -Wall: Issue all automake warnings.
3784 # -Wno-portability: Don't warn about constructs supported by GNU make.
3785 # (because GCC requires GNU make anyhow).
3786 am__api_version='1.11'
3788 # Find a good install program. We prefer a C program (faster),
3789 # so one script is as good as another. But avoid the broken or
3790 # incompatible versions:
3791 # SysV /etc/install, /usr/sbin/install
3792 # SunOS /usr/etc/install
3793 # IRIX /sbin/install
3794 # AIX /bin/install
3795 # AmigaOS /C/install, which installs bootblocks on floppy discs
3796 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3797 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3798 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3799 # OS/2's system install, which has a completely different semantic
3800 # ./install, which can be erroneously created by make from ./install.sh.
3801 # Reject install programs that cannot install multiple files.
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3803 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3804 if test -z "$INSTALL"; then
3805 if test "${ac_cv_path_install+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 # Account for people who put trailing slashes in PATH elements.
3814 case $as_dir/ in #((
3815 ./ | .// | /[cC]/* | \
3816 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3817 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3818 /usr/ucb/* ) ;;
3820 # OSF1 and SCO ODT 3.0 have their own names for install.
3821 # Don't use installbsd from OSF since it installs stuff as root
3822 # by default.
3823 for ac_prog in ginstall scoinst install; do
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3826 if test $ac_prog = install &&
3827 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3828 # AIX install. It has an incompatible calling convention.
3830 elif test $ac_prog = install &&
3831 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # program-specific install script used by HP pwplus--don't use.
3834 else
3835 rm -rf conftest.one conftest.two conftest.dir
3836 echo one > conftest.one
3837 echo two > conftest.two
3838 mkdir conftest.dir
3839 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3840 test -s conftest.one && test -s conftest.two &&
3841 test -s conftest.dir/conftest.one &&
3842 test -s conftest.dir/conftest.two
3843 then
3844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3845 break 3
3849 done
3850 done
3852 esac
3854 done
3855 IFS=$as_save_IFS
3857 rm -rf conftest.one conftest.two conftest.dir
3860 if test "${ac_cv_path_install+set}" = set; then
3861 INSTALL=$ac_cv_path_install
3862 else
3863 # As a last resort, use the slow shell script. Don't cache a
3864 # value for INSTALL within a source directory, because that will
3865 # break other packages using the cache if that directory is
3866 # removed, or if the value is a relative name.
3867 INSTALL=$ac_install_sh
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3871 $as_echo "$INSTALL" >&6; }
3873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3874 # It thinks the first close brace ends the variable substitution.
3875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3882 $as_echo_n "checking whether build environment is sane... " >&6; }
3883 # Just in case
3884 sleep 1
3885 echo timestamp > conftest.file
3886 # Reject unsafe characters in $srcdir or the absolute working directory
3887 # name. Accept space and tab only in the latter.
3888 am_lf='
3890 case `pwd` in
3891 *[\\\"\#\$\&\'\`$am_lf]*)
3892 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3893 esac
3894 case $srcdir in
3895 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3896 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3897 esac
3899 # Do `set' in a subshell so we don't clobber the current shell's
3900 # arguments. Must try -L first in case configure is actually a
3901 # symlink; some systems play weird games with the mod time of symlinks
3902 # (eg FreeBSD returns the mod time of the symlink's containing
3903 # directory).
3904 if (
3905 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3906 if test "$*" = "X"; then
3907 # -L didn't work.
3908 set X `ls -t "$srcdir/configure" conftest.file`
3910 rm -f conftest.file
3911 if test "$*" != "X $srcdir/configure conftest.file" \
3912 && test "$*" != "X conftest.file $srcdir/configure"; then
3914 # If neither matched, then we have a broken ls. This can happen
3915 # if, for instance, CONFIG_SHELL is bash and it inherits a
3916 # broken ls alias from the environment. This has actually
3917 # happened. Such a system could not be considered "sane".
3918 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3919 alias in your environment" "$LINENO" 5
3922 test "$2" = conftest.file
3924 then
3925 # Ok.
3927 else
3928 as_fn_error "newly created file is older than distributed files!
3929 Check your system clock" "$LINENO" 5
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3932 $as_echo "yes" >&6; }
3933 test "$program_prefix" != NONE &&
3934 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3935 # Use a double $ so make ignores it.
3936 test "$program_suffix" != NONE &&
3937 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3938 # Double any \ or $.
3939 # By default was `s,x,x', remove it if useless.
3940 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3941 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3943 # expand $ac_aux_dir to an absolute path
3944 am_aux_dir=`cd $ac_aux_dir && pwd`
3946 if test x"${MISSING+set}" != xset; then
3947 case $am_aux_dir in
3948 *\ * | *\ *)
3949 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3951 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3952 esac
3954 # Use eval to expand $SHELL
3955 if eval "$MISSING --run true"; then
3956 am_missing_run="$MISSING --run "
3957 else
3958 am_missing_run=
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3960 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3963 if test x"${install_sh}" != xset; then
3964 case $am_aux_dir in
3965 *\ * | *\ *)
3966 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3968 install_sh="\${SHELL} $am_aux_dir/install-sh"
3969 esac
3972 # Installed binaries are usually stripped using `strip' when the user
3973 # run `make install-strip'. However `strip' might not be the right
3974 # tool to use in cross-compilation environments, therefore Automake
3975 # will honor the `STRIP' environment variable to overrule this program.
3976 if test "$cross_compiling" != no; then
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}strip; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_prog_STRIP+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$STRIP"; then
3986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4005 STRIP=$ac_cv_prog_STRIP
4006 if test -n "$STRIP"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4008 $as_echo "$STRIP" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4016 if test -z "$ac_cv_prog_STRIP"; then
4017 ac_ct_STRIP=$STRIP
4018 # Extract the first word of "strip", so it can be a program name with args.
4019 set dummy strip; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$ac_ct_STRIP"; then
4026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_ac_ct_STRIP="strip"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4041 IFS=$as_save_IFS
4045 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4046 if test -n "$ac_ct_STRIP"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4048 $as_echo "$ac_ct_STRIP" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4054 if test "x$ac_ct_STRIP" = x; then
4055 STRIP=":"
4056 else
4057 case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned=yes ;;
4062 esac
4063 STRIP=$ac_ct_STRIP
4065 else
4066 STRIP="$ac_cv_prog_STRIP"
4070 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4073 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4074 if test -z "$MKDIR_P"; then
4075 if test "${ac_cv_path_mkdir+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_prog in mkdir gmkdir; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4086 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4087 'mkdir (GNU coreutils) '* | \
4088 'mkdir (coreutils) '* | \
4089 'mkdir (fileutils) '4.1*)
4090 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4091 break 3;;
4092 esac
4093 done
4094 done
4095 done
4096 IFS=$as_save_IFS
4100 if test "${ac_cv_path_mkdir+set}" = set; then
4101 MKDIR_P="$ac_cv_path_mkdir -p"
4102 else
4103 # As a last resort, use the slow shell script. Don't cache a
4104 # value for MKDIR_P within a source directory, because that will
4105 # break other packages using the cache if that directory is
4106 # removed, or if the value is a relative name.
4107 test -d ./--version && rmdir ./--version
4108 MKDIR_P="$ac_install_sh -d"
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4112 $as_echo "$MKDIR_P" >&6; }
4114 mkdir_p="$MKDIR_P"
4115 case $mkdir_p in
4116 [\\/$]* | ?:[\\/]*) ;;
4117 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4118 esac
4120 for ac_prog in gawk mawk nawk awk
4122 # Extract the first word of "$ac_prog", so it can be a program name with args.
4123 set dummy $ac_prog; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if test "${ac_cv_prog_AWK+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -n "$AWK"; then
4130 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_prog_AWK="$ac_prog"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4143 done
4144 done
4145 IFS=$as_save_IFS
4149 AWK=$ac_cv_prog_AWK
4150 if test -n "$AWK"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4152 $as_echo "$AWK" >&6; }
4153 else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4159 test -n "$AWK" && break
4160 done
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4163 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4164 set x ${MAKE-make}
4165 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4166 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 cat >conftest.make <<\_ACEOF
4170 SHELL = /bin/sh
4171 all:
4172 @echo '@@@%%%=$(MAKE)=@@@%%%'
4173 _ACEOF
4174 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4175 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4176 *@@@%%%=?*=@@@%%%*)
4177 eval ac_cv_prog_make_${ac_make}_set=yes;;
4179 eval ac_cv_prog_make_${ac_make}_set=no;;
4180 esac
4181 rm -f conftest.make
4183 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4185 $as_echo "yes" >&6; }
4186 SET_MAKE=
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4190 SET_MAKE="MAKE=${MAKE-make}"
4193 rm -rf .tst 2>/dev/null
4194 mkdir .tst 2>/dev/null
4195 if test -d .tst; then
4196 am__leading_dot=.
4197 else
4198 am__leading_dot=_
4200 rmdir .tst 2>/dev/null
4202 DEPDIR="${am__leading_dot}deps"
4204 ac_config_commands="$ac_config_commands depfiles"
4207 am_make=${MAKE-make}
4208 cat > confinc << 'END'
4209 am__doit:
4210 @echo this is the am__doit target
4211 .PHONY: am__doit
4213 # If we don't find an include directive, just comment out the code.
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4215 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4216 am__include="#"
4217 am__quote=
4218 _am_result=none
4219 # First try GNU make style include.
4220 echo "include confinc" > confmf
4221 # Ignore all kinds of additional output from `make'.
4222 case `$am_make -s -f confmf 2> /dev/null` in #(
4223 *the\ am__doit\ target*)
4224 am__include=include
4225 am__quote=
4226 _am_result=GNU
4228 esac
4229 # Now try BSD make style include.
4230 if test "$am__include" = "#"; then
4231 echo '.include "confinc"' > confmf
4232 case `$am_make -s -f confmf 2> /dev/null` in #(
4233 *the\ am__doit\ target*)
4234 am__include=.include
4235 am__quote="\""
4236 _am_result=BSD
4238 esac
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4243 $as_echo "$_am_result" >&6; }
4244 rm -f confinc confmf
4246 # Check whether --enable-dependency-tracking was given.
4247 if test "${enable_dependency_tracking+set}" = set; then :
4248 enableval=$enable_dependency_tracking;
4251 if test "x$enable_dependency_tracking" != xno; then
4252 am_depcomp="$ac_aux_dir/depcomp"
4253 AMDEPBACKSLASH='\'
4254 am__nodep='_no'
4256 if test "x$enable_dependency_tracking" != xno; then
4257 AMDEP_TRUE=
4258 AMDEP_FALSE='#'
4259 else
4260 AMDEP_TRUE='#'
4261 AMDEP_FALSE=
4265 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4266 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4267 # is not polluted with repeated "-I."
4268 am__isrc=' -I$(srcdir)'
4269 # test to see if srcdir already configured
4270 if test -f $srcdir/config.status; then
4271 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4275 # test whether we have cygpath
4276 if test -z "$CYGPATH_W"; then
4277 if (cygpath --version) >/dev/null 2>/dev/null; then
4278 CYGPATH_W='cygpath -w'
4279 else
4280 CYGPATH_W=echo
4285 # Define the identity of the package.
4286 PACKAGE='libcc1'
4287 VERSION='version-unused'
4290 # Some tools Automake needs.
4292 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4298 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4301 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4304 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4306 # We need awk for the "check" target. The system "awk" is bad on
4307 # some platforms.
4308 # Always define AMTAR for backward compatibility. Yes, it's still used
4309 # in the wild :-( We should find a proper way to deprecate it ...
4310 AMTAR='$${TAR-tar}'
4312 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4317 depcc="$CC" am_compiler_list=
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4320 $as_echo_n "checking dependency style of $depcc... " >&6; }
4321 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325 # We make a subdir and do the tests there. Otherwise we can end up
4326 # making bogus files that we don't know about and never remove. For
4327 # instance it was reported that on HP-UX the gcc test will end up
4328 # making a dummy file named `D' -- because `-MD' means `put the output
4329 # in D'.
4330 rm -rf conftest.dir
4331 mkdir conftest.dir
4332 # Copy depcomp to subdir because otherwise we won't find it if we're
4333 # using a relative directory.
4334 cp "$am_depcomp" conftest.dir
4335 cd conftest.dir
4336 # We will build objects and dependencies in a subdirectory because
4337 # it helps to detect inapplicable dependency modes. For instance
4338 # both Tru64's cc and ICC support -MD to output dependencies as a
4339 # side effect of compilation, but ICC will put the dependencies in
4340 # the current directory while Tru64 will put them in the object
4341 # directory.
4342 mkdir sub
4344 am_cv_CC_dependencies_compiler_type=none
4345 if test "$am_compiler_list" = ""; then
4346 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4348 am__universal=false
4349 case " $depcc " in #(
4350 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4351 esac
4353 for depmode in $am_compiler_list; do
4354 # Setup a source with many dependencies, because some compilers
4355 # like to wrap large dependency lists on column 80 (with \), and
4356 # we should not choose a depcomp mode which is confused by this.
4358 # We need to recreate these files for each test, as the compiler may
4359 # overwrite some of them when testing with obscure command lines.
4360 # This happens at least with the AIX C compiler.
4361 : > sub/conftest.c
4362 for i in 1 2 3 4 5 6; do
4363 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4364 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4365 # Solaris 8's {/usr,}/bin/sh.
4366 touch sub/conftst$i.h
4367 done
4368 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4370 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4371 # mode. It turns out that the SunPro C++ compiler does not properly
4372 # handle `-M -o', and we need to detect this. Also, some Intel
4373 # versions had trouble with output in subdirs
4374 am__obj=sub/conftest.${OBJEXT-o}
4375 am__minus_obj="-o $am__obj"
4376 case $depmode in
4377 gcc)
4378 # This depmode causes a compiler race in universal mode.
4379 test "$am__universal" = false || continue
4381 nosideeffect)
4382 # after this tag, mechanisms are not by side-effect, so they'll
4383 # only be used when explicitly requested
4384 if test "x$enable_dependency_tracking" = xyes; then
4385 continue
4386 else
4387 break
4390 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4391 # This compiler won't grok `-c -o', but also, the minuso test has
4392 # not run yet. These depmodes are late enough in the game, and
4393 # so weak that their functioning should not be impacted.
4394 am__obj=conftest.${OBJEXT-o}
4395 am__minus_obj=
4397 none) break ;;
4398 esac
4399 if depmode=$depmode \
4400 source=sub/conftest.c object=$am__obj \
4401 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4402 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4403 >/dev/null 2>conftest.err &&
4404 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4405 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4406 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4407 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4408 # icc doesn't choke on unknown options, it will just issue warnings
4409 # or remarks (even with -Werror). So we grep stderr for any message
4410 # that says an option was ignored or not supported.
4411 # When given -MP, icc 7.0 and 7.1 complain thusly:
4412 # icc: Command line warning: ignoring option '-M'; no argument required
4413 # The diagnosis changed in icc 8.0:
4414 # icc: Command line remark: option '-MP' not supported
4415 if (grep 'ignoring option' conftest.err ||
4416 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4417 am_cv_CC_dependencies_compiler_type=$depmode
4418 break
4421 done
4423 cd ..
4424 rm -rf conftest.dir
4425 else
4426 am_cv_CC_dependencies_compiler_type=none
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4431 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4432 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4435 test "x$enable_dependency_tracking" != xno \
4436 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4437 am__fastdepCC_TRUE=
4438 am__fastdepCC_FALSE='#'
4439 else
4440 am__fastdepCC_TRUE='#'
4441 am__fastdepCC_FALSE=
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4448 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4449 # Check whether --enable-maintainer-mode was given.
4450 if test "${enable_maintainer_mode+set}" = set; then :
4451 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4452 else
4453 USE_MAINTAINER_MODE=no
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4457 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4458 if test $USE_MAINTAINER_MODE = yes; then
4459 MAINTAINER_MODE_TRUE=
4460 MAINTAINER_MODE_FALSE='#'
4461 else
4462 MAINTAINER_MODE_TRUE='#'
4463 MAINTAINER_MODE_FALSE=
4466 MAINT=$MAINTAINER_MODE_TRUE
4470 case `pwd` in
4471 *\ * | *\ *)
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4473 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4474 esac
4478 macro_version='2.2.7a'
4479 macro_revision='1.3134'
4493 ltmain="$ac_aux_dir/ltmain.sh"
4495 # Backslashify metacharacters that are still active within
4496 # double-quoted strings.
4497 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4499 # Same as above, but do not quote variable references.
4500 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4502 # Sed substitution to delay expansion of an escaped shell variable in a
4503 # double_quote_subst'ed string.
4504 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4506 # Sed substitution to delay expansion of an escaped single quote.
4507 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4509 # Sed substitution to avoid accidental globbing in evaled expressions
4510 no_glob_subst='s/\*/\\\*/g'
4512 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4513 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4514 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4517 $as_echo_n "checking how to print strings... " >&6; }
4518 # Test print first, because it will be a builtin if present.
4519 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4520 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4521 ECHO='print -r --'
4522 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4523 ECHO='printf %s\n'
4524 else
4525 # Use this function as a fallback that always works.
4526 func_fallback_echo ()
4528 eval 'cat <<_LTECHO_EOF
4530 _LTECHO_EOF'
4532 ECHO='func_fallback_echo'
4535 # func_echo_all arg...
4536 # Invoke $ECHO with all args, space-separated.
4537 func_echo_all ()
4539 $ECHO ""
4542 case "$ECHO" in
4543 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4544 $as_echo "printf" >&6; } ;;
4545 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4546 $as_echo "print -r" >&6; } ;;
4547 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4548 $as_echo "cat" >&6; } ;;
4549 esac
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4565 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4566 if test "${ac_cv_path_SED+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4570 for ac_i in 1 2 3 4 5 6 7; do
4571 ac_script="$ac_script$as_nl$ac_script"
4572 done
4573 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4574 { ac_script=; unset ac_script;}
4575 if test -z "$SED"; then
4576 ac_path_SED_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in sed gsed; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4586 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4587 # Check for GNU ac_path_SED and select it if it is found.
4588 # Check for GNU $ac_path_SED
4589 case `"$ac_path_SED" --version 2>&1` in
4590 *GNU*)
4591 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4593 ac_count=0
4594 $as_echo_n 0123456789 >"conftest.in"
4595 while :
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo '' >> "conftest.nl"
4601 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_SED_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_SED="$ac_path_SED"
4607 ac_path_SED_max=$ac_count
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4611 done
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 esac
4615 $ac_path_SED_found && break 3
4616 done
4617 done
4618 done
4619 IFS=$as_save_IFS
4620 if test -z "$ac_cv_path_SED"; then
4621 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4623 else
4624 ac_cv_path_SED=$SED
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4629 $as_echo "$ac_cv_path_SED" >&6; }
4630 SED="$ac_cv_path_SED"
4631 rm -f conftest.sed
4633 test -z "$SED" && SED=sed
4634 Xsed="$SED -e 1s/^X//"
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4647 $as_echo_n "checking for fgrep... " >&6; }
4648 if test "${ac_cv_path_FGREP+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4652 then ac_cv_path_FGREP="$GREP -F"
4653 else
4654 if test -z "$FGREP"; then
4655 ac_path_FGREP_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in fgrep; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4665 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4666 # Check for GNU ac_path_FGREP and select it if it is found.
4667 # Check for GNU $ac_path_FGREP
4668 case `"$ac_path_FGREP" --version 2>&1` in
4669 *GNU*)
4670 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4672 ac_count=0
4673 $as_echo_n 0123456789 >"conftest.in"
4674 while :
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo 'FGREP' >> "conftest.nl"
4680 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_FGREP="$ac_path_FGREP"
4686 ac_path_FGREP_max=$ac_count
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4690 done
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 esac
4694 $ac_path_FGREP_found && break 3
4695 done
4696 done
4697 done
4698 IFS=$as_save_IFS
4699 if test -z "$ac_cv_path_FGREP"; then
4700 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4702 else
4703 ac_cv_path_FGREP=$FGREP
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4709 $as_echo "$ac_cv_path_FGREP" >&6; }
4710 FGREP="$ac_cv_path_FGREP"
4713 test -z "$GREP" && GREP=grep
4733 # Check whether --with-gnu-ld was given.
4734 if test "${with_gnu_ld+set}" = set; then :
4735 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4736 else
4737 with_gnu_ld=no
4740 ac_prog=ld
4741 if test "$GCC" = yes; then
4742 # Check if gcc -print-prog-name=ld gives a path.
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4744 $as_echo_n "checking for ld used by $CC... " >&6; }
4745 case $host in
4746 *-*-mingw*)
4747 # gcc leaves a trailing carriage return which upsets mingw
4748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4751 esac
4752 case $ac_prog in
4753 # Accept absolute paths.
4754 [\\/]* | ?:[\\/]*)
4755 re_direlt='/[^/][^/]*/\.\./'
4756 # Canonicalize the pathname of ld
4757 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4758 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4759 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4760 done
4761 test -z "$LD" && LD="$ac_prog"
4764 # If it fails, then pretend we aren't using GCC.
4765 ac_prog=ld
4768 # If it is relative, then search for the first ld in PATH.
4769 with_gnu_ld=unknown
4771 esac
4772 elif test "$with_gnu_ld" = yes; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4774 $as_echo_n "checking for GNU ld... " >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4777 $as_echo_n "checking for non-GNU ld... " >&6; }
4779 if test "${lt_cv_path_LD+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -z "$LD"; then
4783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4784 for ac_dir in $PATH; do
4785 IFS="$lt_save_ifs"
4786 test -z "$ac_dir" && ac_dir=.
4787 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4788 lt_cv_path_LD="$ac_dir/$ac_prog"
4789 # Check to see if the program is GNU ld. I'd rather use --version,
4790 # but apparently some variants of GNU ld only accept -v.
4791 # Break only if it was the GNU/non-GNU ld that we prefer.
4792 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4793 *GNU* | *'with BFD'*)
4794 test "$with_gnu_ld" != no && break
4797 test "$with_gnu_ld" != yes && break
4799 esac
4801 done
4802 IFS="$lt_save_ifs"
4803 else
4804 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4808 LD="$lt_cv_path_LD"
4809 if test -n "$LD"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4811 $as_echo "$LD" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4816 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4818 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4819 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4823 case `$LD -v 2>&1 </dev/null` in
4824 *GNU* | *'with BFD'*)
4825 lt_cv_prog_gnu_ld=yes
4828 lt_cv_prog_gnu_ld=no
4830 esac
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4833 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4834 with_gnu_ld=$lt_cv_prog_gnu_ld
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4845 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4846 if test "${lt_cv_path_NM+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$NM"; then
4850 # Let the user override the test.
4851 lt_cv_path_NM="$NM"
4852 else
4853 lt_nm_to_check="${ac_tool_prefix}nm"
4854 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4855 lt_nm_to_check="$lt_nm_to_check nm"
4857 for lt_tmp_nm in $lt_nm_to_check; do
4858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4859 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4860 IFS="$lt_save_ifs"
4861 test -z "$ac_dir" && ac_dir=.
4862 tmp_nm="$ac_dir/$lt_tmp_nm"
4863 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4864 # Check to see if the nm accepts a BSD-compat flag.
4865 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4866 # nm: unknown option "B" ignored
4867 # Tru64's nm complains that /dev/null is an invalid object file
4868 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4869 */dev/null* | *'Invalid file or object type'*)
4870 lt_cv_path_NM="$tmp_nm -B"
4871 break
4874 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4875 */dev/null*)
4876 lt_cv_path_NM="$tmp_nm -p"
4877 break
4880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4881 continue # so that we can try to find one that supports BSD flags
4883 esac
4885 esac
4887 done
4888 IFS="$lt_save_ifs"
4889 done
4890 : ${lt_cv_path_NM=no}
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4894 $as_echo "$lt_cv_path_NM" >&6; }
4895 if test "$lt_cv_path_NM" != "no"; then
4896 NM="$lt_cv_path_NM"
4897 else
4898 # Didn't find any BSD compatible name lister, look for dumpbin.
4899 if test -n "$DUMPBIN"; then :
4900 # Let the user override the test.
4901 else
4902 if test -n "$ac_tool_prefix"; then
4903 for ac_prog in dumpbin "link -dump"
4905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$DUMPBIN"; then
4913 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 DUMPBIN=$ac_cv_prog_DUMPBIN
4933 if test -n "$DUMPBIN"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4935 $as_echo "$DUMPBIN" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4942 test -n "$DUMPBIN" && break
4943 done
4945 if test -z "$DUMPBIN"; then
4946 ac_ct_DUMPBIN=$DUMPBIN
4947 for ac_prog in dumpbin "link -dump"
4949 # Extract the first word of "$ac_prog", so it can be a program name with args.
4950 set dummy $ac_prog; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 if test -n "$ac_ct_DUMPBIN"; then
4957 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4970 done
4971 done
4972 IFS=$as_save_IFS
4976 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4977 if test -n "$ac_ct_DUMPBIN"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4979 $as_echo "$ac_ct_DUMPBIN" >&6; }
4980 else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4986 test -n "$ac_ct_DUMPBIN" && break
4987 done
4989 if test "x$ac_ct_DUMPBIN" = x; then
4990 DUMPBIN=":"
4991 else
4992 case $cross_compiling:$ac_tool_warned in
4993 yes:)
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996 ac_tool_warned=yes ;;
4997 esac
4998 DUMPBIN=$ac_ct_DUMPBIN
5002 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5003 *COFF*)
5004 DUMPBIN="$DUMPBIN -symbols"
5007 DUMPBIN=:
5009 esac
5012 if test "$DUMPBIN" != ":"; then
5013 NM="$DUMPBIN"
5016 test -z "$NM" && NM=nm
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5024 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5025 if test "${lt_cv_nm_interface+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 lt_cv_nm_interface="BSD nm"
5029 echo "int some_variable = 0;" > conftest.$ac_ext
5030 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5031 (eval "$ac_compile" 2>conftest.err)
5032 cat conftest.err >&5
5033 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5034 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5035 cat conftest.err >&5
5036 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5037 cat conftest.out >&5
5038 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5039 lt_cv_nm_interface="MS dumpbin"
5041 rm -f conftest*
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5044 $as_echo "$lt_cv_nm_interface" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5047 $as_echo_n "checking whether ln -s works... " >&6; }
5048 LN_S=$as_ln_s
5049 if test "$LN_S" = "ln -s"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5051 $as_echo "yes" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5054 $as_echo "no, using $LN_S" >&6; }
5057 # find the maximum length of command line arguments
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5059 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5060 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5064 teststring="ABCD"
5066 case $build_os in
5067 msdosdjgpp*)
5068 # On DJGPP, this test can blow up pretty badly due to problems in libc
5069 # (any single argument exceeding 2000 bytes causes a buffer overrun
5070 # during glob expansion). Even if it were fixed, the result of this
5071 # check would be larger than it should be.
5072 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5075 gnu*)
5076 # Under GNU Hurd, this test is not required because there is
5077 # no limit to the length of command line arguments.
5078 # Libtool will interpret -1 as no limit whatsoever
5079 lt_cv_sys_max_cmd_len=-1;
5082 cygwin* | mingw* | cegcc*)
5083 # On Win9x/ME, this test blows up -- it succeeds, but takes
5084 # about 5 minutes as the teststring grows exponentially.
5085 # Worse, since 9x/ME are not pre-emptively multitasking,
5086 # you end up with a "frozen" computer, even though with patience
5087 # the test eventually succeeds (with a max line length of 256k).
5088 # Instead, let's just punt: use the minimum linelength reported by
5089 # all of the supported platforms: 8192 (on NT/2K/XP).
5090 lt_cv_sys_max_cmd_len=8192;
5093 mint*)
5094 # On MiNT this can take a long time and run out of memory.
5095 lt_cv_sys_max_cmd_len=8192;
5098 amigaos*)
5099 # On AmigaOS with pdksh, this test takes hours, literally.
5100 # So we just punt and use a minimum line length of 8192.
5101 lt_cv_sys_max_cmd_len=8192;
5104 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5105 # This has been around since 386BSD, at least. Likely further.
5106 if test -x /sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5108 elif test -x /usr/sbin/sysctl; then
5109 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5110 else
5111 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5113 # And add a safety zone
5114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5118 interix*)
5119 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5120 lt_cv_sys_max_cmd_len=196608
5123 osf*)
5124 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5125 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5126 # nice to cause kernel panics so lets avoid the loop below.
5127 # First set a reasonable default.
5128 lt_cv_sys_max_cmd_len=16384
5130 if test -x /sbin/sysconfig; then
5131 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5132 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5133 esac
5136 sco3.2v5*)
5137 lt_cv_sys_max_cmd_len=102400
5139 sysv5* | sco5v6* | sysv4.2uw2*)
5140 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5141 if test -n "$kargmax"; then
5142 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5143 else
5144 lt_cv_sys_max_cmd_len=32768
5148 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5149 if test -n "$lt_cv_sys_max_cmd_len"; then
5150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5152 else
5153 # Make teststring a little bigger before we do anything with it.
5154 # a 1K string should be a reasonable start.
5155 for i in 1 2 3 4 5 6 7 8 ; do
5156 teststring=$teststring$teststring
5157 done
5158 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5159 # If test is not a shell built-in, we'll probably end up computing a
5160 # maximum length that is only half of the actual maximum length, but
5161 # we can't tell.
5162 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5163 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5164 test $i != 17 # 1/2 MB should be enough
5166 i=`expr $i + 1`
5167 teststring=$teststring$teststring
5168 done
5169 # Only check the string length outside the loop.
5170 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5171 teststring=
5172 # Add a significant safety factor because C++ compilers can tack on
5173 # massive amounts of additional arguments before passing them to the
5174 # linker. It appears as though 1/2 is a usable value.
5175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5178 esac
5182 if test -n $lt_cv_sys_max_cmd_len ; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5184 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5187 $as_echo "none" >&6; }
5189 max_cmd_len=$lt_cv_sys_max_cmd_len
5196 : ${CP="cp -f"}
5197 : ${MV="mv -f"}
5198 : ${RM="rm -f"}
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5201 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5202 # Try some XSI features
5203 xsi_shell=no
5204 ( _lt_dummy="a/b/c"
5205 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5206 = c,a/b,, \
5207 && eval 'test $(( 1 + 1 )) -eq 2 \
5208 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5209 && xsi_shell=yes
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5211 $as_echo "$xsi_shell" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5215 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5216 lt_shell_append=no
5217 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5218 >/dev/null 2>&1 \
5219 && lt_shell_append=yes
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5221 $as_echo "$lt_shell_append" >&6; }
5224 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5225 lt_unset=unset
5226 else
5227 lt_unset=false
5234 # test EBCDIC or ASCII
5235 case `echo X|tr X '\101'` in
5236 A) # ASCII based system
5237 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5238 lt_SP2NL='tr \040 \012'
5239 lt_NL2SP='tr \015\012 \040\040'
5241 *) # EBCDIC based system
5242 lt_SP2NL='tr \100 \n'
5243 lt_NL2SP='tr \r\n \100\100'
5245 esac
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5256 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5257 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 lt_cv_ld_reload_flag='-r'
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5263 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5264 reload_flag=$lt_cv_ld_reload_flag
5265 case $reload_flag in
5266 "" | " "*) ;;
5267 *) reload_flag=" $reload_flag" ;;
5268 esac
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270 case $host_os in
5271 darwin*)
5272 if test "$GCC" = yes; then
5273 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5274 else
5275 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5278 esac
5288 if test -n "$ac_tool_prefix"; then
5289 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5290 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 if test -n "$OBJDUMP"; then
5297 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5316 OBJDUMP=$ac_cv_prog_OBJDUMP
5317 if test -n "$OBJDUMP"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5319 $as_echo "$OBJDUMP" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5327 if test -z "$ac_cv_prog_OBJDUMP"; then
5328 ac_ct_OBJDUMP=$OBJDUMP
5329 # Extract the first word of "objdump", so it can be a program name with args.
5330 set dummy objdump; ac_word=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 if test -n "$ac_ct_OBJDUMP"; then
5337 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5350 done
5351 done
5352 IFS=$as_save_IFS
5356 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5357 if test -n "$ac_ct_OBJDUMP"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5359 $as_echo "$ac_ct_OBJDUMP" >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5365 if test "x$ac_ct_OBJDUMP" = x; then
5366 OBJDUMP="false"
5367 else
5368 case $cross_compiling:$ac_tool_warned in
5369 yes:)
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned=yes ;;
5373 esac
5374 OBJDUMP=$ac_ct_OBJDUMP
5376 else
5377 OBJDUMP="$ac_cv_prog_OBJDUMP"
5380 test -z "$OBJDUMP" && OBJDUMP=objdump
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5391 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5392 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 lt_cv_file_magic_cmd='$MAGIC_CMD'
5396 lt_cv_file_magic_test_file=
5397 lt_cv_deplibs_check_method='unknown'
5398 # Need to set the preceding variable on all platforms that support
5399 # interlibrary dependencies.
5400 # 'none' -- dependencies not supported.
5401 # `unknown' -- same as none, but documents that we really don't know.
5402 # 'pass_all' -- all dependencies passed with no checks.
5403 # 'test_compile' -- check by making test program.
5404 # 'file_magic [[regex]]' -- check by looking for files in library path
5405 # which responds to the $file_magic_cmd with a given extended regex.
5406 # If you have `file' or equivalent on your system and you're not sure
5407 # whether `pass_all' will *always* work, you probably want this one.
5409 case $host_os in
5410 aix[4-9]*)
5411 lt_cv_deplibs_check_method=pass_all
5414 beos*)
5415 lt_cv_deplibs_check_method=pass_all
5418 bsdi[45]*)
5419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5420 lt_cv_file_magic_cmd='/usr/bin/file -L'
5421 lt_cv_file_magic_test_file=/shlib/libc.so
5424 cygwin*)
5425 # func_win32_libid is a shell function defined in ltmain.sh
5426 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5427 lt_cv_file_magic_cmd='func_win32_libid'
5430 mingw* | pw32*)
5431 # Base MSYS/MinGW do not provide the 'file' command needed by
5432 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5433 # unless we find 'file', for example because we are cross-compiling.
5434 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5435 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5436 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5437 lt_cv_file_magic_cmd='func_win32_libid'
5438 else
5439 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5440 lt_cv_file_magic_cmd='$OBJDUMP -f'
5444 cegcc*)
5445 # use the weaker test based on 'objdump'. See mingw*.
5446 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5447 lt_cv_file_magic_cmd='$OBJDUMP -f'
5450 darwin* | rhapsody*)
5451 lt_cv_deplibs_check_method=pass_all
5454 freebsd* | dragonfly*)
5455 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5456 case $host_cpu in
5457 i*86 )
5458 # Not sure whether the presence of OpenBSD here was a mistake.
5459 # Let's accept both of them until this is cleared up.
5460 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5461 lt_cv_file_magic_cmd=/usr/bin/file
5462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5464 esac
5465 else
5466 lt_cv_deplibs_check_method=pass_all
5470 gnu*)
5471 lt_cv_deplibs_check_method=pass_all
5474 haiku*)
5475 lt_cv_deplibs_check_method=pass_all
5478 hpux10.20* | hpux11*)
5479 lt_cv_file_magic_cmd=/usr/bin/file
5480 case $host_cpu in
5481 ia64*)
5482 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5483 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5485 hppa*64*)
5486 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]'
5487 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5490 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5491 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5493 esac
5496 interix[3-9]*)
5497 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5501 irix5* | irix6* | nonstopux*)
5502 case $LD in
5503 *-32|*"-32 ") libmagic=32-bit;;
5504 *-n32|*"-n32 ") libmagic=N32;;
5505 *-64|*"-64 ") libmagic=64-bit;;
5506 *) libmagic=never-match;;
5507 esac
5508 lt_cv_deplibs_check_method=pass_all
5511 # This must be Linux ELF.
5512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5513 lt_cv_deplibs_check_method=pass_all
5516 netbsd*)
5517 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5519 else
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5524 newos6*)
5525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5526 lt_cv_file_magic_cmd=/usr/bin/file
5527 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5530 *nto* | *qnx*)
5531 lt_cv_deplibs_check_method=pass_all
5534 openbsd*)
5535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5537 else
5538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5542 osf3* | osf4* | osf5*)
5543 lt_cv_deplibs_check_method=pass_all
5546 rdos*)
5547 lt_cv_deplibs_check_method=pass_all
5550 solaris*)
5551 lt_cv_deplibs_check_method=pass_all
5554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5555 lt_cv_deplibs_check_method=pass_all
5558 sysv4 | sysv4.3*)
5559 case $host_vendor in
5560 motorola)
5561 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]'
5562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5564 ncr)
5565 lt_cv_deplibs_check_method=pass_all
5567 sequent)
5568 lt_cv_file_magic_cmd='/bin/file'
5569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5571 sni)
5572 lt_cv_file_magic_cmd='/bin/file'
5573 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5574 lt_cv_file_magic_test_file=/lib/libc.so
5576 siemens)
5577 lt_cv_deplibs_check_method=pass_all
5580 lt_cv_deplibs_check_method=pass_all
5582 esac
5585 tpf*)
5586 lt_cv_deplibs_check_method=pass_all
5588 esac
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5592 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5593 file_magic_cmd=$lt_cv_file_magic_cmd
5594 deplibs_check_method=$lt_cv_deplibs_check_method
5595 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5608 if test -n "$ac_tool_prefix"; then
5609 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5610 set dummy ${ac_tool_prefix}ar; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_prog_AR+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$AR"; then
5617 ac_cv_prog_AR="$AR" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_AR="${ac_tool_prefix}ar"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5630 done
5631 done
5632 IFS=$as_save_IFS
5636 AR=$ac_cv_prog_AR
5637 if test -n "$AR"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5639 $as_echo "$AR" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5647 if test -z "$ac_cv_prog_AR"; then
5648 ac_ct_AR=$AR
5649 # Extract the first word of "ar", so it can be a program name with args.
5650 set dummy ar; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$ac_ct_AR"; then
5657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_ac_ct_AR="ar"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5670 done
5671 done
5672 IFS=$as_save_IFS
5676 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5677 if test -n "$ac_ct_AR"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5679 $as_echo "$ac_ct_AR" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5685 if test "x$ac_ct_AR" = x; then
5686 AR="false"
5687 else
5688 case $cross_compiling:$ac_tool_warned in
5689 yes:)
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692 ac_tool_warned=yes ;;
5693 esac
5694 AR=$ac_ct_AR
5696 else
5697 AR="$ac_cv_prog_AR"
5700 test -z "$AR" && AR=ar
5701 test -z "$AR_FLAGS" && AR_FLAGS=cru
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}strip; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if test "${ac_cv_prog_STRIP+set}" = set; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 if test -n "$STRIP"; then
5722 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5731 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5735 done
5736 done
5737 IFS=$as_save_IFS
5741 STRIP=$ac_cv_prog_STRIP
5742 if test -n "$STRIP"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5744 $as_echo "$STRIP" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5752 if test -z "$ac_cv_prog_STRIP"; then
5753 ac_ct_STRIP=$STRIP
5754 # Extract the first word of "strip", so it can be a program name with args.
5755 set dummy strip; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if test -n "$ac_ct_STRIP"; then
5762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_prog_ac_ct_STRIP="strip"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5775 done
5776 done
5777 IFS=$as_save_IFS
5781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5782 if test -n "$ac_ct_STRIP"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5784 $as_echo "$ac_ct_STRIP" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5790 if test "x$ac_ct_STRIP" = x; then
5791 STRIP=":"
5792 else
5793 case $cross_compiling:$ac_tool_warned in
5794 yes:)
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797 ac_tool_warned=yes ;;
5798 esac
5799 STRIP=$ac_ct_STRIP
5801 else
5802 STRIP="$ac_cv_prog_STRIP"
5805 test -z "$STRIP" && STRIP=:
5812 if test -n "$ac_tool_prefix"; then
5813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test -n "$RANLIB"; then
5821 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5834 done
5835 done
5836 IFS=$as_save_IFS
5840 RANLIB=$ac_cv_prog_RANLIB
5841 if test -n "$RANLIB"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5843 $as_echo "$RANLIB" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5851 if test -z "$ac_cv_prog_RANLIB"; then
5852 ac_ct_RANLIB=$RANLIB
5853 # Extract the first word of "ranlib", so it can be a program name with args.
5854 set dummy ranlib; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -n "$ac_ct_RANLIB"; then
5861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_ac_ct_RANLIB="ranlib"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5881 if test -n "$ac_ct_RANLIB"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5883 $as_echo "$ac_ct_RANLIB" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5889 if test "x$ac_ct_RANLIB" = x; then
5890 RANLIB=":"
5891 else
5892 case $cross_compiling:$ac_tool_warned in
5893 yes:)
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5896 ac_tool_warned=yes ;;
5897 esac
5898 RANLIB=$ac_ct_RANLIB
5900 else
5901 RANLIB="$ac_cv_prog_RANLIB"
5904 test -z "$RANLIB" && RANLIB=:
5911 # Determine commands to create old-style static archives.
5912 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5913 old_postinstall_cmds='chmod 644 $oldlib'
5914 old_postuninstall_cmds=
5916 if test -n "$RANLIB"; then
5917 case $host_os in
5918 openbsd*)
5919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5924 esac
5925 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5928 case $host_os in
5929 darwin*)
5930 lock_old_archive_extraction=yes ;;
5932 lock_old_archive_extraction=no ;;
5933 esac
5973 # If no C compiler was specified, use CC.
5974 LTCC=${LTCC-"$CC"}
5976 # If no C compiler flags were specified, use CFLAGS.
5977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979 # Allow CC to be a program name with arguments.
5980 compiler=$CC
5983 # Check for command to grab the raw symbol name followed by C symbol from nm.
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5985 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5986 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5990 # These are sane defaults that work on at least a few old systems.
5991 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5993 # Character class describing NM global symbol codes.
5994 symcode='[BCDEGRST]'
5996 # Regexp to match symbols that can be accessed directly from C.
5997 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999 # Define system-specific variables.
6000 case $host_os in
6001 aix*)
6002 symcode='[BCDT]'
6004 cygwin* | mingw* | pw32* | cegcc*)
6005 symcode='[ABCDGISTW]'
6007 hpux*)
6008 if test "$host_cpu" = ia64; then
6009 symcode='[ABCDEGRST]'
6012 irix* | nonstopux*)
6013 symcode='[BCDEGRST]'
6015 osf*)
6016 symcode='[BCDEGQRST]'
6018 solaris*)
6019 symcode='[BDRT]'
6021 sco3.2v5*)
6022 symcode='[DT]'
6024 sysv4.2uw2*)
6025 symcode='[DT]'
6027 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6028 symcode='[ABDT]'
6030 sysv4)
6031 symcode='[DFNSTU]'
6033 esac
6035 # If we're using GNU nm, then use its standard symbol codes.
6036 case `$NM -V 2>&1` in
6037 *GNU* | *'with BFD'*)
6038 symcode='[ABCDGIRSTW]' ;;
6039 esac
6041 # Transform an extracted symbol line into a proper C declaration.
6042 # Some systems (esp. on ia64) link data and code symbols differently,
6043 # so use this general approach.
6044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046 # Transform an extracted symbol line into symbol name and symbol address
6047 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6048 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'"
6050 # Handle CRLF in mingw tool chain
6051 opt_cr=
6052 case $build_os in
6053 mingw*)
6054 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6056 esac
6058 # Try without a prefix underscore, then with it.
6059 for ac_symprfx in "" "_"; do
6061 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6062 symxfrm="\\1 $ac_symprfx\\2 \\2"
6064 # Write the raw and C identifiers.
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066 # Fake it for dumpbin and say T for any non-static function
6067 # and D for any global variable.
6068 # Also find C++ and __fastcall symbols from MSVC++,
6069 # which start with @ or ?.
6070 lt_cv_sys_global_symbol_pipe="$AWK '"\
6071 " {last_section=section; section=\$ 3};"\
6072 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6073 " \$ 0!~/External *\|/{next};"\
6074 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6075 " {if(hide[section]) next};"\
6076 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6077 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6078 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6079 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6080 " ' prfx=^$ac_symprfx"
6081 else
6082 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6085 # Check to see that the pipe works correctly.
6086 pipe_works=no
6088 rm -f conftest*
6089 cat > conftest.$ac_ext <<_LT_EOF
6090 #ifdef __cplusplus
6091 extern "C" {
6092 #endif
6093 char nm_test_var;
6094 void nm_test_func(void);
6095 void nm_test_func(void){}
6096 #ifdef __cplusplus
6098 #endif
6099 int main(){nm_test_var='a';nm_test_func();return(0);}
6100 _LT_EOF
6102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6103 (eval $ac_compile) 2>&5
6104 ac_status=$?
6105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6106 test $ac_status = 0; }; then
6107 # Now try to grab the symbols.
6108 nlist=conftest.nm
6109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6110 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6111 ac_status=$?
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113 test $ac_status = 0; } && test -s "$nlist"; then
6114 # Try sorting and uniquifying the output.
6115 if sort "$nlist" | uniq > "$nlist"T; then
6116 mv -f "$nlist"T "$nlist"
6117 else
6118 rm -f "$nlist"T
6121 # Make sure that we snagged all the symbols we need.
6122 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6123 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6124 cat <<_LT_EOF > conftest.$ac_ext
6125 #ifdef __cplusplus
6126 extern "C" {
6127 #endif
6129 _LT_EOF
6130 # Now generate the symbol file.
6131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6133 cat <<_LT_EOF >> conftest.$ac_ext
6135 /* The mapping between symbol names and symbols. */
6136 const struct {
6137 const char *name;
6138 void *address;
6140 lt__PROGRAM__LTX_preloaded_symbols[] =
6142 { "@PROGRAM@", (void *) 0 },
6143 _LT_EOF
6144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6145 cat <<\_LT_EOF >> conftest.$ac_ext
6146 {0, (void *) 0}
6149 /* This works around a problem in FreeBSD linker */
6150 #ifdef FREEBSD_WORKAROUND
6151 static const void *lt_preloaded_setup() {
6152 return lt__PROGRAM__LTX_preloaded_symbols;
6154 #endif
6156 #ifdef __cplusplus
6158 #endif
6159 _LT_EOF
6160 # Now try linking the two files.
6161 mv conftest.$ac_objext conftstm.$ac_objext
6162 lt_save_LIBS="$LIBS"
6163 lt_save_CFLAGS="$CFLAGS"
6164 LIBS="conftstm.$ac_objext"
6165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6167 (eval $ac_link) 2>&5
6168 ac_status=$?
6169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6171 pipe_works=yes
6173 LIBS="$lt_save_LIBS"
6174 CFLAGS="$lt_save_CFLAGS"
6175 else
6176 echo "cannot find nm_test_func in $nlist" >&5
6178 else
6179 echo "cannot find nm_test_var in $nlist" >&5
6181 else
6182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6184 else
6185 echo "$progname: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 rm -rf conftest* conftst*
6190 # Do not use the global_symbol_pipe unless it works.
6191 if test "$pipe_works" = yes; then
6192 break
6193 else
6194 lt_cv_sys_global_symbol_pipe=
6196 done
6200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6201 lt_cv_sys_global_symbol_to_cdecl=
6203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6205 $as_echo "failed" >&6; }
6206 else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6208 $as_echo "ok" >&6; }
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then :
6234 enableval=$enable_libtool_lock;
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6239 # Some flags need to be propagated to the compiler or linker for good
6240 # libtool support.
6241 case $host in
6242 ia64-*-hpux*)
6243 # Find out which ABI we are using.
6244 echo 'int i;' > conftest.$ac_ext
6245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6246 (eval $ac_compile) 2>&5
6247 ac_status=$?
6248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249 test $ac_status = 0; }; then
6250 case `/usr/bin/file conftest.$ac_objext` in
6251 *ELF-32*)
6252 HPUX_IA64_MODE="32"
6254 *ELF-64*)
6255 HPUX_IA64_MODE="64"
6257 esac
6259 rm -rf conftest*
6261 *-*-irix6*)
6262 # Find out which ABI we are using.
6263 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265 (eval $ac_compile) 2>&5
6266 ac_status=$?
6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }; then
6269 if test "$lt_cv_prog_gnu_ld" = yes; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6271 *32-bit*)
6272 LD="${LD-ld} -melf32bsmip"
6274 *N32*)
6275 LD="${LD-ld} -melf32bmipn32"
6277 *64-bit*)
6278 LD="${LD-ld} -melf64bmip"
6280 esac
6281 else
6282 case `/usr/bin/file conftest.$ac_objext` in
6283 *32-bit*)
6284 LD="${LD-ld} -32"
6286 *N32*)
6287 LD="${LD-ld} -n32"
6289 *64-bit*)
6290 LD="${LD-ld} -64"
6292 esac
6295 rm -rf conftest*
6298 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6299 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6300 # Find out which ABI we are using.
6301 echo 'int i;' > conftest.$ac_ext
6302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303 (eval $ac_compile) 2>&5
6304 ac_status=$?
6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; }; then
6307 case `/usr/bin/file conftest.o` in
6308 *32-bit*)
6309 case $host in
6310 x86_64-*kfreebsd*-gnu)
6311 LD="${LD-ld} -m elf_i386_fbsd"
6313 x86_64-*linux*)
6314 case `/usr/bin/file conftest.o` in
6315 *x86-64*)
6316 LD="${LD-ld} -m elf32_x86_64"
6319 LD="${LD-ld} -m elf_i386"
6321 esac
6323 powerpc64le-*linux*)
6324 LD="${LD-ld} -m elf32lppclinux"
6326 powerpc64-*linux*)
6327 LD="${LD-ld} -m elf32ppclinux"
6329 s390x-*linux*)
6330 LD="${LD-ld} -m elf_s390"
6332 sparc64-*linux*)
6333 LD="${LD-ld} -m elf32_sparc"
6335 esac
6337 *64-bit*)
6338 case $host in
6339 x86_64-*kfreebsd*-gnu)
6340 LD="${LD-ld} -m elf_x86_64_fbsd"
6342 x86_64-*linux*)
6343 LD="${LD-ld} -m elf_x86_64"
6345 powerpcle-*linux*)
6346 LD="${LD-ld} -m elf64lppc"
6348 powerpc-*linux*)
6349 LD="${LD-ld} -m elf64ppc"
6351 s390*-*linux*|s390*-*tpf*)
6352 LD="${LD-ld} -m elf64_s390"
6354 sparc*-*linux*)
6355 LD="${LD-ld} -m elf64_sparc"
6357 esac
6359 esac
6361 rm -rf conftest*
6364 *-*-sco3.2v5*)
6365 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6366 SAVE_CFLAGS="$CFLAGS"
6367 CFLAGS="$CFLAGS -belf"
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6369 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6370 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 ac_ext=c
6374 ac_cpp='$CPP $CPPFLAGS'
6375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6383 main ()
6387 return 0;
6389 _ACEOF
6390 if ac_fn_c_try_link "$LINENO"; then :
6391 lt_cv_cc_needs_belf=yes
6392 else
6393 lt_cv_cc_needs_belf=no
6395 rm -f core conftest.err conftest.$ac_objext \
6396 conftest$ac_exeext conftest.$ac_ext
6397 ac_ext=c
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6405 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6406 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6407 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6408 CFLAGS="$SAVE_CFLAGS"
6411 sparc*-*solaris*)
6412 # Find out which ABI we are using.
6413 echo 'int i;' > conftest.$ac_ext
6414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6415 (eval $ac_compile) 2>&5
6416 ac_status=$?
6417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418 test $ac_status = 0; }; then
6419 case `/usr/bin/file conftest.o` in
6420 *64-bit*)
6421 case $lt_cv_prog_gnu_ld in
6422 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6424 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6425 LD="${LD-ld} -64"
6428 esac
6430 esac
6432 rm -rf conftest*
6434 esac
6436 need_locks="$enable_libtool_lock"
6439 case $host_os in
6440 rhapsody* | darwin*)
6441 if test -n "$ac_tool_prefix"; then
6442 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$DSYMUTIL"; then
6450 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6463 done
6464 done
6465 IFS=$as_save_IFS
6469 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6470 if test -n "$DSYMUTIL"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6472 $as_echo "$DSYMUTIL" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6480 if test -z "$ac_cv_prog_DSYMUTIL"; then
6481 ac_ct_DSYMUTIL=$DSYMUTIL
6482 # Extract the first word of "dsymutil", so it can be a program name with args.
6483 set dummy dsymutil; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$ac_ct_DSYMUTIL"; then
6490 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6503 done
6504 done
6505 IFS=$as_save_IFS
6509 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6510 if test -n "$ac_ct_DSYMUTIL"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6512 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6518 if test "x$ac_ct_DSYMUTIL" = x; then
6519 DSYMUTIL=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 DSYMUTIL=$ac_ct_DSYMUTIL
6529 else
6530 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$NMEDIT"; then
6542 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6557 IFS=$as_save_IFS
6561 NMEDIT=$ac_cv_prog_NMEDIT
6562 if test -n "$NMEDIT"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6564 $as_echo "$NMEDIT" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_NMEDIT"; then
6573 ac_ct_NMEDIT=$NMEDIT
6574 # Extract the first word of "nmedit", so it can be a program name with args.
6575 set dummy nmedit; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_NMEDIT"; then
6582 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6601 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6602 if test -n "$ac_ct_NMEDIT"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6604 $as_echo "$ac_ct_NMEDIT" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_NMEDIT" = x; then
6611 NMEDIT=":"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 NMEDIT=$ac_ct_NMEDIT
6621 else
6622 NMEDIT="$ac_cv_prog_NMEDIT"
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if test "${ac_cv_prog_LIPO+set}" = set; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 if test -n "$LIPO"; then
6634 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6647 done
6648 done
6649 IFS=$as_save_IFS
6653 LIPO=$ac_cv_prog_LIPO
6654 if test -n "$LIPO"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6656 $as_echo "$LIPO" >&6; }
6657 else
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6664 if test -z "$ac_cv_prog_LIPO"; then
6665 ac_ct_LIPO=$LIPO
6666 # Extract the first word of "lipo", so it can be a program name with args.
6667 set dummy lipo; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$ac_ct_LIPO"; then
6674 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_LIPO="lipo"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6687 done
6688 done
6689 IFS=$as_save_IFS
6693 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6694 if test -n "$ac_ct_LIPO"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6696 $as_echo "$ac_ct_LIPO" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6702 if test "x$ac_ct_LIPO" = x; then
6703 LIPO=":"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711 LIPO=$ac_ct_LIPO
6713 else
6714 LIPO="$ac_cv_prog_LIPO"
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}otool; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$OTOOL"; then
6726 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6745 OTOOL=$ac_cv_prog_OTOOL
6746 if test -n "$OTOOL"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6748 $as_echo "$OTOOL" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6756 if test -z "$ac_cv_prog_OTOOL"; then
6757 ac_ct_OTOOL=$OTOOL
6758 # Extract the first word of "otool", so it can be a program name with args.
6759 set dummy otool; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$ac_ct_OTOOL"; then
6766 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_OTOOL="otool"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6785 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6786 if test -n "$ac_ct_OTOOL"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6788 $as_echo "$ac_ct_OTOOL" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6794 if test "x$ac_ct_OTOOL" = x; then
6795 OTOOL=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned=yes ;;
6802 esac
6803 OTOOL=$ac_ct_OTOOL
6805 else
6806 OTOOL="$ac_cv_prog_OTOOL"
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$OTOOL64"; then
6818 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6831 done
6832 done
6833 IFS=$as_save_IFS
6837 OTOOL64=$ac_cv_prog_OTOOL64
6838 if test -n "$OTOOL64"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6840 $as_echo "$OTOOL64" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6848 if test -z "$ac_cv_prog_OTOOL64"; then
6849 ac_ct_OTOOL64=$OTOOL64
6850 # Extract the first word of "otool64", so it can be a program name with args.
6851 set dummy otool64; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$ac_ct_OTOOL64"; then
6858 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_ac_ct_OTOOL64="otool64"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6871 done
6872 done
6873 IFS=$as_save_IFS
6877 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6878 if test -n "$ac_ct_OTOOL64"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6880 $as_echo "$ac_ct_OTOOL64" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6886 if test "x$ac_ct_OTOOL64" = x; then
6887 OTOOL64=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 OTOOL64=$ac_ct_OTOOL64
6897 else
6898 OTOOL64="$ac_cv_prog_OTOOL64"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6928 $as_echo_n "checking for -single_module linker flag... " >&6; }
6929 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 lt_cv_apple_cc_single_mod=no
6933 if test -z "${LT_MULTI_MODULE}"; then
6934 # By default we will add the -single_module flag. You can override
6935 # by either setting the environment variable LT_MULTI_MODULE
6936 # non-empty at configure time, or by adding -multi_module to the
6937 # link flags.
6938 rm -rf libconftest.dylib*
6939 echo "int foo(void){return 1;}" > conftest.c
6940 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6941 -dynamiclib -Wl,-single_module conftest.c" >&5
6942 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6943 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6944 _lt_result=$?
6945 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6946 lt_cv_apple_cc_single_mod=yes
6947 else
6948 cat conftest.err >&5
6950 rm -rf libconftest.dylib*
6951 rm -f conftest.*
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6955 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6957 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6958 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 lt_cv_ld_exported_symbols_list=no
6962 save_LDFLAGS=$LDFLAGS
6963 echo "_main" > conftest.sym
6964 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6969 main ()
6973 return 0;
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 lt_cv_ld_exported_symbols_list=yes
6978 else
6979 lt_cv_ld_exported_symbols_list=no
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 LDFLAGS="$save_LDFLAGS"
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6987 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6989 $as_echo_n "checking for -force_load linker flag... " >&6; }
6990 if test "${lt_cv_ld_force_load+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 lt_cv_ld_force_load=no
6994 cat > conftest.c << _LT_EOF
6995 int forced_loaded() { return 2;}
6996 _LT_EOF
6997 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6998 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6999 echo "$AR cru libconftest.a conftest.o" >&5
7000 $AR cru libconftest.a conftest.o 2>&5
7001 cat > conftest.c << _LT_EOF
7002 int main() { return 0;}
7003 _LT_EOF
7004 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7005 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7006 _lt_result=$?
7007 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7008 lt_cv_ld_force_load=yes
7009 else
7010 cat conftest.err >&5
7012 rm -f conftest.err libconftest.a conftest conftest.c
7013 rm -rf conftest.dSYM
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7017 $as_echo "$lt_cv_ld_force_load" >&6; }
7018 case $host_os in
7019 rhapsody* | darwin1.[012])
7020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7021 darwin1.*)
7022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7023 darwin*) # darwin 5.x on
7024 # if running on 10.5 or later, the deployment target defaults
7025 # to the OS version, if on x86, and 10.4, the deployment
7026 # target defaults to 10.4. Don't you love it?
7027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7028 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 10.[012][,.]*)
7031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7032 10.*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 esac
7036 esac
7037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7038 _lt_dar_single_mod='$single_module'
7040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7042 else
7043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7045 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7046 _lt_dsymutil='~$DSYMUTIL $lib || :'
7047 else
7048 _lt_dsymutil=
7051 esac
7053 for ac_header in dlfcn.h
7054 do :
7055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7057 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_DLFCN_H 1
7060 _ACEOF
7064 done
7070 # Set options
7071 # Check whether --enable-static was given.
7072 if test "${enable_static+set}" = set; then :
7073 enableval=$enable_static; p=${PACKAGE-default}
7074 case $enableval in
7075 yes) enable_static=yes ;;
7076 no) enable_static=no ;;
7078 enable_static=no
7079 # Look at the argument we got. We use all the common list separators.
7080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7081 for pkg in $enableval; do
7082 IFS="$lt_save_ifs"
7083 if test "X$pkg" = "X$p"; then
7084 enable_static=yes
7086 done
7087 IFS="$lt_save_ifs"
7089 esac
7090 else
7091 enable_static=no
7103 enable_dlopen=no
7106 enable_win32_dll=no
7109 # Check whether --enable-shared was given.
7110 if test "${enable_shared+set}" = set; then :
7111 enableval=$enable_shared; p=${PACKAGE-default}
7112 case $enableval in
7113 yes) enable_shared=yes ;;
7114 no) enable_shared=no ;;
7116 enable_shared=no
7117 # Look at the argument we got. We use all the common list separators.
7118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7119 for pkg in $enableval; do
7120 IFS="$lt_save_ifs"
7121 if test "X$pkg" = "X$p"; then
7122 enable_shared=yes
7124 done
7125 IFS="$lt_save_ifs"
7127 esac
7128 else
7129 enable_shared=yes
7142 # Check whether --with-pic was given.
7143 if test "${with_pic+set}" = set; then :
7144 withval=$with_pic; pic_mode="$withval"
7145 else
7146 pic_mode=default
7150 test -z "$pic_mode" && pic_mode=default
7158 # Check whether --enable-fast-install was given.
7159 if test "${enable_fast_install+set}" = set; then :
7160 enableval=$enable_fast_install; p=${PACKAGE-default}
7161 case $enableval in
7162 yes) enable_fast_install=yes ;;
7163 no) enable_fast_install=no ;;
7165 enable_fast_install=no
7166 # Look at the argument we got. We use all the common list separators.
7167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7168 for pkg in $enableval; do
7169 IFS="$lt_save_ifs"
7170 if test "X$pkg" = "X$p"; then
7171 enable_fast_install=yes
7173 done
7174 IFS="$lt_save_ifs"
7176 esac
7177 else
7178 enable_fast_install=yes
7191 # This can be used to rebuild libtool when needed
7192 LIBTOOL_DEPS="$ltmain"
7194 # Always use our own libtool.
7195 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7222 test -z "$LN_S" && LN_S="ln -s"
7237 if test -n "${ZSH_VERSION+set}" ; then
7238 setopt NO_GLOB_SUBST
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7242 $as_echo_n "checking for objdir... " >&6; }
7243 if test "${lt_cv_objdir+set}" = set; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 rm -f .libs 2>/dev/null
7247 mkdir .libs 2>/dev/null
7248 if test -d .libs; then
7249 lt_cv_objdir=.libs
7250 else
7251 # MS-DOS does not allow filenames that begin with a dot.
7252 lt_cv_objdir=_libs
7254 rmdir .libs 2>/dev/null
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7257 $as_echo "$lt_cv_objdir" >&6; }
7258 objdir=$lt_cv_objdir
7264 cat >>confdefs.h <<_ACEOF
7265 #define LT_OBJDIR "$lt_cv_objdir/"
7266 _ACEOF
7271 case $host_os in
7272 aix3*)
7273 # AIX sometimes has problems with the GCC collect2 program. For some
7274 # reason, if we set the COLLECT_NAMES environment variable, the problems
7275 # vanish in a puff of smoke.
7276 if test "X${COLLECT_NAMES+set}" != Xset; then
7277 COLLECT_NAMES=
7278 export COLLECT_NAMES
7281 esac
7283 # Global variables:
7284 ofile=libtool
7285 can_build_shared=yes
7287 # All known linkers require a `.a' archive for static linking (except MSVC,
7288 # which needs '.lib').
7289 libext=a
7291 with_gnu_ld="$lt_cv_prog_gnu_ld"
7293 old_CC="$CC"
7294 old_CFLAGS="$CFLAGS"
7296 # Set sane defaults for various variables
7297 test -z "$CC" && CC=cc
7298 test -z "$LTCC" && LTCC=$CC
7299 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7300 test -z "$LD" && LD=ld
7301 test -z "$ac_objext" && ac_objext=o
7303 for cc_temp in $compiler""; do
7304 case $cc_temp in
7305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7307 \-*) ;;
7308 *) break;;
7309 esac
7310 done
7311 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7314 # Only perform the check for file, if the check method requires it
7315 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7316 case $deplibs_check_method in
7317 file_magic*)
7318 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7320 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7321 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 case $MAGIC_CMD in
7325 [\\/*] | ?:[\\/]*)
7326 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7329 lt_save_MAGIC_CMD="$MAGIC_CMD"
7330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7331 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7332 for ac_dir in $ac_dummy; do
7333 IFS="$lt_save_ifs"
7334 test -z "$ac_dir" && ac_dir=.
7335 if test -f $ac_dir/${ac_tool_prefix}file; then
7336 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7337 if test -n "$file_magic_test_file"; then
7338 case $deplibs_check_method in
7339 "file_magic "*)
7340 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7343 $EGREP "$file_magic_regex" > /dev/null; then
7345 else
7346 cat <<_LT_EOF 1>&2
7348 *** Warning: the command libtool uses to detect shared libraries,
7349 *** $file_magic_cmd, produces output that libtool cannot recognize.
7350 *** The result is that libtool may fail to recognize shared libraries
7351 *** as such. This will affect the creation of libtool libraries that
7352 *** depend on shared libraries, but programs linked with such libtool
7353 *** libraries will work regardless of this problem. Nevertheless, you
7354 *** may want to report the problem to your system manager and/or to
7355 *** bug-libtool@gnu.org
7357 _LT_EOF
7358 fi ;;
7359 esac
7361 break
7363 done
7364 IFS="$lt_save_ifs"
7365 MAGIC_CMD="$lt_save_MAGIC_CMD"
7367 esac
7370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7371 if test -n "$MAGIC_CMD"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7373 $as_echo "$MAGIC_CMD" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7383 if test -z "$lt_cv_path_MAGIC_CMD"; then
7384 if test -n "$ac_tool_prefix"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7386 $as_echo_n "checking for file... " >&6; }
7387 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 case $MAGIC_CMD in
7391 [\\/*] | ?:[\\/]*)
7392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 lt_save_MAGIC_CMD="$MAGIC_CMD"
7396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398 for ac_dir in $ac_dummy; do
7399 IFS="$lt_save_ifs"
7400 test -z "$ac_dir" && ac_dir=.
7401 if test -f $ac_dir/file; then
7402 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7403 if test -n "$file_magic_test_file"; then
7404 case $deplibs_check_method in
7405 "file_magic "*)
7406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409 $EGREP "$file_magic_regex" > /dev/null; then
7411 else
7412 cat <<_LT_EOF 1>&2
7414 *** Warning: the command libtool uses to detect shared libraries,
7415 *** $file_magic_cmd, produces output that libtool cannot recognize.
7416 *** The result is that libtool may fail to recognize shared libraries
7417 *** as such. This will affect the creation of libtool libraries that
7418 *** depend on shared libraries, but programs linked with such libtool
7419 *** libraries will work regardless of this problem. Nevertheless, you
7420 *** may want to report the problem to your system manager and/or to
7421 *** bug-libtool@gnu.org
7423 _LT_EOF
7424 fi ;;
7425 esac
7427 break
7429 done
7430 IFS="$lt_save_ifs"
7431 MAGIC_CMD="$lt_save_MAGIC_CMD"
7433 esac
7436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437 if test -n "$MAGIC_CMD"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7439 $as_echo "$MAGIC_CMD" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7446 else
7447 MAGIC_CMD=:
7453 esac
7455 # Use C for the default configuration in the libtool script
7457 lt_save_CC="$CC"
7458 ac_ext=c
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465 # Source file extension for C test sources.
7466 ac_ext=c
7468 # Object file extension for compiled C test sources.
7469 objext=o
7470 objext=$objext
7472 # Code to be used in simple compile tests
7473 lt_simple_compile_test_code="int some_variable = 0;"
7475 # Code to be used in simple link tests
7476 lt_simple_link_test_code='int main(){return(0);}'
7484 # If no C compiler was specified, use CC.
7485 LTCC=${LTCC-"$CC"}
7487 # If no C compiler flags were specified, use CFLAGS.
7488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7490 # Allow CC to be a program name with arguments.
7491 compiler=$CC
7493 # Save the default compiler, since it gets overwritten when the other
7494 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7495 compiler_DEFAULT=$CC
7497 # save warnings/boilerplate of simple test code
7498 ac_outfile=conftest.$ac_objext
7499 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7500 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7501 _lt_compiler_boilerplate=`cat conftest.err`
7502 $RM conftest*
7504 ac_outfile=conftest.$ac_objext
7505 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7506 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7507 _lt_linker_boilerplate=`cat conftest.err`
7508 $RM -r conftest*
7511 ## CAVEAT EMPTOR:
7512 ## There is no encapsulation within the following macros, do not change
7513 ## the running order or otherwise move them around unless you know exactly
7514 ## what you are doing...
7515 if test -n "$compiler"; then
7517 lt_prog_compiler_no_builtin_flag=
7519 if test "$GCC" = yes; then
7520 case $cc_basename in
7521 nvcc*)
7522 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7524 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7525 esac
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7528 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7529 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 lt_cv_prog_compiler_rtti_exceptions=no
7533 ac_outfile=conftest.$ac_objext
7534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7535 lt_compiler_flag="-fno-rtti -fno-exceptions"
7536 # Insert the option either (1) after the last *FLAGS variable, or
7537 # (2) before a word containing "conftest.", or (3) at the end.
7538 # Note that $ac_compile itself does not contain backslashes and begins
7539 # with a dollar sign (not a hyphen), so the echo should work correctly.
7540 # The option is referenced via a variable to avoid confusing sed.
7541 lt_compile=`echo "$ac_compile" | $SED \
7542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7544 -e 's:$: $lt_compiler_flag:'`
7545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7546 (eval "$lt_compile" 2>conftest.err)
7547 ac_status=$?
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 if (exit $ac_status) && test -s "$ac_outfile"; then
7551 # The compiler can only warn and ignore the option if not recognized
7552 # So say no if there are warnings other than the usual output.
7553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7556 lt_cv_prog_compiler_rtti_exceptions=yes
7559 $RM conftest*
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7563 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7565 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7566 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7567 else
7578 lt_prog_compiler_wl=
7579 lt_prog_compiler_pic=
7580 lt_prog_compiler_static=
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7583 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7585 if test "$GCC" = yes; then
7586 lt_prog_compiler_wl='-Wl,'
7587 lt_prog_compiler_static='-static'
7589 case $host_os in
7590 aix*)
7591 # All AIX code is PIC.
7592 if test "$host_cpu" = ia64; then
7593 # AIX 5 now supports IA64 processor
7594 lt_prog_compiler_static='-Bstatic'
7596 lt_prog_compiler_pic='-fPIC'
7599 amigaos*)
7600 case $host_cpu in
7601 powerpc)
7602 # see comment about AmigaOS4 .so support
7603 lt_prog_compiler_pic='-fPIC'
7605 m68k)
7606 # FIXME: we need at least 68020 code to build shared libraries, but
7607 # adding the `-m68020' flag to GCC prevents building anything better,
7608 # like `-m68040'.
7609 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7611 esac
7614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7615 # PIC is the default for these OSes.
7618 mingw* | cygwin* | pw32* | os2* | cegcc*)
7619 # This hack is so that the source file can tell whether it is being
7620 # built for inclusion in a dll (and should export symbols for example).
7621 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7622 # (--disable-auto-import) libraries
7623 lt_prog_compiler_pic='-DDLL_EXPORT'
7626 darwin* | rhapsody*)
7627 # PIC is the default on this platform
7628 # Common symbols not allowed in MH_DYLIB files
7629 lt_prog_compiler_pic='-fno-common'
7632 haiku*)
7633 # PIC is the default for Haiku.
7634 # The "-static" flag exists, but is broken.
7635 lt_prog_compiler_static=
7638 hpux*)
7639 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7640 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7641 # sets the default TLS model and affects inlining.
7642 case $host_cpu in
7643 hppa*64*)
7644 # +Z the default
7647 lt_prog_compiler_pic='-fPIC'
7649 esac
7652 interix[3-9]*)
7653 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7654 # Instead, we relocate shared libraries at runtime.
7657 msdosdjgpp*)
7658 # Just because we use GCC doesn't mean we suddenly get shared libraries
7659 # on systems that don't support them.
7660 lt_prog_compiler_can_build_shared=no
7661 enable_shared=no
7664 *nto* | *qnx*)
7665 # QNX uses GNU C++, but need to define -shared option too, otherwise
7666 # it will coredump.
7667 lt_prog_compiler_pic='-fPIC -shared'
7670 sysv4*MP*)
7671 if test -d /usr/nec; then
7672 lt_prog_compiler_pic=-Kconform_pic
7677 lt_prog_compiler_pic='-fPIC'
7679 esac
7681 case $cc_basename in
7682 nvcc*) # Cuda Compiler Driver 2.2
7683 lt_prog_compiler_wl='-Xlinker '
7684 lt_prog_compiler_pic='-Xcompiler -fPIC'
7686 esac
7687 else
7688 # PORTME Check for flag to pass linker flags through the system compiler.
7689 case $host_os in
7690 aix*)
7691 lt_prog_compiler_wl='-Wl,'
7692 if test "$host_cpu" = ia64; then
7693 # AIX 5 now supports IA64 processor
7694 lt_prog_compiler_static='-Bstatic'
7695 else
7696 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7700 mingw* | cygwin* | pw32* | os2* | cegcc*)
7701 # This hack is so that the source file can tell whether it is being
7702 # built for inclusion in a dll (and should export symbols for example).
7703 lt_prog_compiler_pic='-DDLL_EXPORT'
7706 hpux9* | hpux10* | hpux11*)
7707 lt_prog_compiler_wl='-Wl,'
7708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7709 # not for PA HP-UX.
7710 case $host_cpu in
7711 hppa*64*|ia64*)
7712 # +Z the default
7715 lt_prog_compiler_pic='+Z'
7717 esac
7718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7719 lt_prog_compiler_static='${wl}-a ${wl}archive'
7722 irix5* | irix6* | nonstopux*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # PIC (with -KPIC) is the default.
7725 lt_prog_compiler_static='-non_shared'
7728 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7729 case $cc_basename in
7730 # old Intel for x86_64 which still supported -KPIC.
7731 ecc*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-static'
7736 # icc used to be incompatible with GCC.
7737 # ICC 10 doesn't accept -KPIC any more.
7738 icc* | ifort*)
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_pic='-fPIC'
7741 lt_prog_compiler_static='-static'
7743 # Lahey Fortran 8.1.
7744 lf95*)
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_pic='--shared'
7747 lt_prog_compiler_static='--static'
7749 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7750 # Portland Group compilers (*not* the Pentium gcc compiler,
7751 # which looks to be a dead project)
7752 lt_prog_compiler_wl='-Wl,'
7753 lt_prog_compiler_pic='-fpic'
7754 lt_prog_compiler_static='-Bstatic'
7756 ccc*)
7757 lt_prog_compiler_wl='-Wl,'
7758 # All Alpha code is PIC.
7759 lt_prog_compiler_static='-non_shared'
7761 xl* | bgxl* | bgf* | mpixl*)
7762 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-qpic'
7765 lt_prog_compiler_static='-qstaticlink'
7768 case `$CC -V 2>&1 | sed 5q` in
7769 *Sun\ F* | *Sun*Fortran*)
7770 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7771 lt_prog_compiler_pic='-KPIC'
7772 lt_prog_compiler_static='-Bstatic'
7773 lt_prog_compiler_wl=''
7775 *Sun\ C*)
7776 # Sun C 5.9
7777 lt_prog_compiler_pic='-KPIC'
7778 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_wl='-Wl,'
7781 esac
7783 esac
7786 newsos6)
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7791 *nto* | *qnx*)
7792 # QNX uses GNU C++, but need to define -shared option too, otherwise
7793 # it will coredump.
7794 lt_prog_compiler_pic='-fPIC -shared'
7797 osf3* | osf4* | osf5*)
7798 lt_prog_compiler_wl='-Wl,'
7799 # All OSF/1 code is PIC.
7800 lt_prog_compiler_static='-non_shared'
7803 rdos*)
7804 lt_prog_compiler_static='-non_shared'
7807 solaris*)
7808 lt_prog_compiler_pic='-KPIC'
7809 lt_prog_compiler_static='-Bstatic'
7810 case $cc_basename in
7811 f77* | f90* | f95*)
7812 lt_prog_compiler_wl='-Qoption ld ';;
7814 lt_prog_compiler_wl='-Wl,';;
7815 esac
7818 sunos4*)
7819 lt_prog_compiler_wl='-Qoption ld '
7820 lt_prog_compiler_pic='-PIC'
7821 lt_prog_compiler_static='-Bstatic'
7824 sysv4 | sysv4.2uw2* | sysv4.3*)
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7830 sysv4*MP*)
7831 if test -d /usr/nec ;then
7832 lt_prog_compiler_pic='-Kconform_pic'
7833 lt_prog_compiler_static='-Bstatic'
7837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7838 lt_prog_compiler_wl='-Wl,'
7839 lt_prog_compiler_pic='-KPIC'
7840 lt_prog_compiler_static='-Bstatic'
7843 unicos*)
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_can_build_shared=no
7848 uts4*)
7849 lt_prog_compiler_pic='-pic'
7850 lt_prog_compiler_static='-Bstatic'
7854 lt_prog_compiler_can_build_shared=no
7856 esac
7859 case $host_os in
7860 # For platforms which do not support PIC, -DPIC is meaningless:
7861 *djgpp*)
7862 lt_prog_compiler_pic=
7865 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7867 esac
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7869 $as_echo "$lt_prog_compiler_pic" >&6; }
7877 # Check to make sure the PIC flag actually works.
7879 if test -n "$lt_prog_compiler_pic"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7881 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7882 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 lt_cv_prog_compiler_pic_works=no
7886 ac_outfile=conftest.$ac_objext
7887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7888 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7889 # Insert the option either (1) after the last *FLAGS variable, or
7890 # (2) before a word containing "conftest.", or (3) at the end.
7891 # Note that $ac_compile itself does not contain backslashes and begins
7892 # with a dollar sign (not a hyphen), so the echo should work correctly.
7893 # The option is referenced via a variable to avoid confusing sed.
7894 lt_compile=`echo "$ac_compile" | $SED \
7895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897 -e 's:$: $lt_compiler_flag:'`
7898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7899 (eval "$lt_compile" 2>conftest.err)
7900 ac_status=$?
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 if (exit $ac_status) && test -s "$ac_outfile"; then
7904 # The compiler can only warn and ignore the option if not recognized
7905 # So say no if there are warnings other than the usual output.
7906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7909 lt_cv_prog_compiler_pic_works=yes
7912 $RM conftest*
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7916 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7918 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7919 case $lt_prog_compiler_pic in
7920 "" | " "*) ;;
7921 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7922 esac
7923 else
7924 lt_prog_compiler_pic=
7925 lt_prog_compiler_can_build_shared=no
7936 # Check to make sure the static flag actually works.
7938 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7940 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7941 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 lt_cv_prog_compiler_static_works=no
7945 save_LDFLAGS="$LDFLAGS"
7946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7949 # The linker can only warn and ignore the option if not recognized
7950 # So say no if there are warnings
7951 if test -s conftest.err; then
7952 # Append any errors to the config.log.
7953 cat conftest.err 1>&5
7954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7956 if diff conftest.exp conftest.er2 >/dev/null; then
7957 lt_cv_prog_compiler_static_works=yes
7959 else
7960 lt_cv_prog_compiler_static_works=yes
7963 $RM -r conftest*
7964 LDFLAGS="$save_LDFLAGS"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7968 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7970 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7972 else
7973 lt_prog_compiler_static=
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7983 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7984 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 lt_cv_prog_compiler_c_o=no
7988 $RM -r conftest 2>/dev/null
7989 mkdir conftest
7990 cd conftest
7991 mkdir out
7992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7994 lt_compiler_flag="-o out/conftest2.$ac_objext"
7995 # Insert the option either (1) after the last *FLAGS variable, or
7996 # (2) before a word containing "conftest.", or (3) at the end.
7997 # Note that $ac_compile itself does not contain backslashes and begins
7998 # with a dollar sign (not a hyphen), so the echo should work correctly.
7999 lt_compile=`echo "$ac_compile" | $SED \
8000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8002 -e 's:$: $lt_compiler_flag:'`
8003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8004 (eval "$lt_compile" 2>out/conftest.err)
8005 ac_status=$?
8006 cat out/conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8009 then
8010 # The compiler can only warn and ignore the option if not recognized
8011 # So say no if there are warnings
8012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8015 lt_cv_prog_compiler_c_o=yes
8018 chmod u+w . 2>&5
8019 $RM conftest*
8020 # SGI C++ compiler will create directory out/ii_files/ for
8021 # template instantiation
8022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8023 $RM out/* && rmdir out
8024 cd ..
8025 $RM -r conftest
8026 $RM conftest*
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8030 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8039 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 lt_cv_prog_compiler_c_o=no
8043 $RM -r conftest 2>/dev/null
8044 mkdir conftest
8045 cd conftest
8046 mkdir out
8047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8049 lt_compiler_flag="-o out/conftest2.$ac_objext"
8050 # Insert the option either (1) after the last *FLAGS variable, or
8051 # (2) before a word containing "conftest.", or (3) at the end.
8052 # Note that $ac_compile itself does not contain backslashes and begins
8053 # with a dollar sign (not a hyphen), so the echo should work correctly.
8054 lt_compile=`echo "$ac_compile" | $SED \
8055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8057 -e 's:$: $lt_compiler_flag:'`
8058 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8059 (eval "$lt_compile" 2>out/conftest.err)
8060 ac_status=$?
8061 cat out/conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8064 then
8065 # The compiler can only warn and ignore the option if not recognized
8066 # So say no if there are warnings
8067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8070 lt_cv_prog_compiler_c_o=yes
8073 chmod u+w . 2>&5
8074 $RM conftest*
8075 # SGI C++ compiler will create directory out/ii_files/ for
8076 # template instantiation
8077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8078 $RM out/* && rmdir out
8079 cd ..
8080 $RM -r conftest
8081 $RM conftest*
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8085 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090 hard_links="nottested"
8091 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8092 # do not overwrite the value of need_locks provided by the user
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8094 $as_echo_n "checking if we can lock with hard links... " >&6; }
8095 hard_links=yes
8096 $RM conftest*
8097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8098 touch conftest.a
8099 ln conftest.a conftest.b 2>&5 || hard_links=no
8100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8102 $as_echo "$hard_links" >&6; }
8103 if test "$hard_links" = no; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8105 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8106 need_locks=warn
8108 else
8109 need_locks=no
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8118 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8120 runpath_var=
8121 allow_undefined_flag=
8122 always_export_symbols=no
8123 archive_cmds=
8124 archive_expsym_cmds=
8125 compiler_needs_object=no
8126 enable_shared_with_static_runtimes=no
8127 export_dynamic_flag_spec=
8128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8129 hardcode_automatic=no
8130 hardcode_direct=no
8131 hardcode_direct_absolute=no
8132 hardcode_libdir_flag_spec=
8133 hardcode_libdir_flag_spec_ld=
8134 hardcode_libdir_separator=
8135 hardcode_minus_L=no
8136 hardcode_shlibpath_var=unsupported
8137 inherit_rpath=no
8138 link_all_deplibs=unknown
8139 module_cmds=
8140 module_expsym_cmds=
8141 old_archive_from_new_cmds=
8142 old_archive_from_expsyms_cmds=
8143 thread_safe_flag_spec=
8144 whole_archive_flag_spec=
8145 # include_expsyms should be a list of space-separated symbols to be *always*
8146 # included in the symbol list
8147 include_expsyms=
8148 # exclude_expsyms can be an extended regexp of symbols to exclude
8149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8151 # as well as any symbol that contains `d'.
8152 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8154 # platforms (ab)use it in PIC code, but their linkers get confused if
8155 # the symbol is explicitly referenced. Since portable code cannot
8156 # rely on this symbol name, it's probably fine to never include it in
8157 # preloaded symbol tables.
8158 # Exclude shared library initialization/finalization symbols.
8159 extract_expsyms_cmds=
8161 case $host_os in
8162 cygwin* | mingw* | pw32* | cegcc*)
8163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8164 # When not using gcc, we currently assume that we are using
8165 # Microsoft Visual C++.
8166 if test "$GCC" != yes; then
8167 with_gnu_ld=no
8170 interix*)
8171 # we just hope/assume this is gcc and not c89 (= MSVC++)
8172 with_gnu_ld=yes
8174 openbsd*)
8175 with_gnu_ld=no
8177 esac
8179 ld_shlibs=yes
8181 # On some targets, GNU ld is compatible enough with the native linker
8182 # that we're better off using the native interface for both.
8183 lt_use_gnu_ld_interface=no
8184 if test "$with_gnu_ld" = yes; then
8185 case $host_os in
8186 aix*)
8187 # The AIX port of GNU ld has always aspired to compatibility
8188 # with the native linker. However, as the warning in the GNU ld
8189 # block says, versions before 2.19.5* couldn't really create working
8190 # shared libraries, regardless of the interface used.
8191 case `$LD -v 2>&1` in
8192 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8193 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8194 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8196 lt_use_gnu_ld_interface=yes
8198 esac
8201 lt_use_gnu_ld_interface=yes
8203 esac
8206 if test "$lt_use_gnu_ld_interface" = yes; then
8207 # If archive_cmds runs LD, not CC, wlarc should be empty
8208 wlarc='${wl}'
8210 # Set some defaults for GNU ld with shared library support. These
8211 # are reset later if shared libraries are not supported. Putting them
8212 # here allows them to be overridden if necessary.
8213 runpath_var=LD_RUN_PATH
8214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215 export_dynamic_flag_spec='${wl}--export-dynamic'
8216 # ancient GNU ld didn't support --whole-archive et. al.
8217 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8218 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8219 else
8220 whole_archive_flag_spec=
8222 supports_anon_versioning=no
8223 case `$LD -v 2>&1` in
8224 *GNU\ gold*) supports_anon_versioning=yes ;;
8225 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8226 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8227 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8228 *\ 2.11.*) ;; # other 2.11 versions
8229 *) supports_anon_versioning=yes ;;
8230 esac
8232 # See if GNU ld supports shared libraries.
8233 case $host_os in
8234 aix[3-9]*)
8235 # On AIX/PPC, the GNU linker is very broken
8236 if test "$host_cpu" != ia64; then
8237 ld_shlibs=no
8238 cat <<_LT_EOF 1>&2
8240 *** Warning: the GNU linker, at least up to release 2.19, is reported
8241 *** to be unable to reliably create shared libraries on AIX.
8242 *** Therefore, libtool is disabling shared libraries support. If you
8243 *** really care for shared libraries, you may want to install binutils
8244 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8245 *** You will then need to restart the configuration process.
8247 _LT_EOF
8251 amigaos*)
8252 case $host_cpu in
8253 powerpc)
8254 # see comment about AmigaOS4 .so support
8255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256 archive_expsym_cmds=''
8258 m68k)
8259 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)'
8260 hardcode_libdir_flag_spec='-L$libdir'
8261 hardcode_minus_L=yes
8263 esac
8266 beos*)
8267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8268 allow_undefined_flag=unsupported
8269 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8270 # support --undefined. This deserves some investigation. FIXME
8271 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272 else
8273 ld_shlibs=no
8277 cygwin* | mingw* | pw32* | cegcc*)
8278 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8279 # as there is no search path for DLLs.
8280 hardcode_libdir_flag_spec='-L$libdir'
8281 export_dynamic_flag_spec='${wl}--export-all-symbols'
8282 allow_undefined_flag=unsupported
8283 always_export_symbols=no
8284 enable_shared_with_static_runtimes=yes
8285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8287 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8289 # If the export-symbols file already is a .def file (1st line
8290 # is EXPORTS), use it as is; otherwise, prepend...
8291 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8292 cp $export_symbols $output_objdir/$soname.def;
8293 else
8294 echo EXPORTS > $output_objdir/$soname.def;
8295 cat $export_symbols >> $output_objdir/$soname.def;
8297 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8298 else
8299 ld_shlibs=no
8303 haiku*)
8304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8305 link_all_deplibs=yes
8308 interix[3-9]*)
8309 hardcode_direct=no
8310 hardcode_shlibpath_var=no
8311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8312 export_dynamic_flag_spec='${wl}-E'
8313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8314 # Instead, shared libraries are loaded at an image base (0x10000000 by
8315 # default) and relocated if they conflict, which is a slow very memory
8316 # consuming and fragmenting process. To avoid this, we pick a random,
8317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8320 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'
8323 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8324 tmp_diet=no
8325 if test "$host_os" = linux-dietlibc; then
8326 case $cc_basename in
8327 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8328 esac
8330 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8331 && test "$tmp_diet" = no
8332 then
8333 tmp_addflag=' $pic_flag'
8334 tmp_sharedflag='-shared'
8335 case $cc_basename,$host_cpu in
8336 pgcc*) # Portland Group C compiler
8337 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'
8338 tmp_addflag=' $pic_flag'
8340 pgf77* | pgf90* | pgf95* | pgfortran*)
8341 # Portland Group f77 and f90 compilers
8342 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8343 tmp_addflag=' $pic_flag -Mnomain' ;;
8344 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8345 tmp_addflag=' -i_dynamic' ;;
8346 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8347 tmp_addflag=' -i_dynamic -nofor_main' ;;
8348 ifc* | ifort*) # Intel Fortran compiler
8349 tmp_addflag=' -nofor_main' ;;
8350 lf95*) # Lahey Fortran 8.1
8351 whole_archive_flag_spec=
8352 tmp_sharedflag='--shared' ;;
8353 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8354 tmp_sharedflag='-qmkshrobj'
8355 tmp_addflag= ;;
8356 nvcc*) # Cuda Compiler Driver 2.2
8357 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'
8358 compiler_needs_object=yes
8360 esac
8361 case `$CC -V 2>&1 | sed 5q` in
8362 *Sun\ C*) # Sun C 5.9
8363 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'
8364 compiler_needs_object=yes
8365 tmp_sharedflag='-G' ;;
8366 *Sun\ F*) # Sun Fortran 8.3
8367 tmp_sharedflag='-G' ;;
8368 esac
8369 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 if test "x$supports_anon_versioning" = xyes; then
8372 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8374 echo "local: *; };" >> $output_objdir/$libname.ver~
8375 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8378 case $cc_basename in
8379 xlf* | bgf* | bgxlf* | mpixlf*)
8380 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8381 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8382 hardcode_libdir_flag_spec=
8383 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8384 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8385 if test "x$supports_anon_versioning" = xyes; then
8386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8388 echo "local: *; };" >> $output_objdir/$libname.ver~
8389 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8392 esac
8393 else
8394 ld_shlibs=no
8398 netbsd*)
8399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8400 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8401 wlarc=
8402 else
8403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8408 solaris*)
8409 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8410 ld_shlibs=no
8411 cat <<_LT_EOF 1>&2
8413 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8414 *** create shared libraries on Solaris systems. Therefore, libtool
8415 *** is disabling shared libraries support. We urge you to upgrade GNU
8416 *** binutils to release 2.9.1 or newer. Another option is to modify
8417 *** your PATH or compiler configuration so that the native linker is
8418 *** used, and then restart.
8420 _LT_EOF
8421 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8424 else
8425 ld_shlibs=no
8429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8430 case `$LD -v 2>&1` in
8431 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8432 ld_shlibs=no
8433 cat <<_LT_EOF 1>&2
8435 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8436 *** reliably create shared libraries on SCO systems. Therefore, libtool
8437 *** is disabling shared libraries support. We urge you to upgrade GNU
8438 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8439 *** your PATH or compiler configuration so that the native linker is
8440 *** used, and then restart.
8442 _LT_EOF
8445 # For security reasons, it is highly recommended that you always
8446 # use absolute paths for naming shared libraries, and exclude the
8447 # DT_RUNPATH tag from executables and libraries. But doing so
8448 # requires that you compile everything twice, which is a pain.
8449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8453 else
8454 ld_shlibs=no
8457 esac
8460 sunos4*)
8461 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462 wlarc=
8463 hardcode_direct=yes
8464 hardcode_shlibpath_var=no
8468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8471 else
8472 ld_shlibs=no
8475 esac
8477 if test "$ld_shlibs" = no; then
8478 runpath_var=
8479 hardcode_libdir_flag_spec=
8480 export_dynamic_flag_spec=
8481 whole_archive_flag_spec=
8483 else
8484 # PORTME fill in a description of your system's linker (not GNU ld)
8485 case $host_os in
8486 aix3*)
8487 allow_undefined_flag=unsupported
8488 always_export_symbols=yes
8489 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'
8490 # Note: this linker hardcodes the directories in LIBPATH if there
8491 # are no directories specified by -L.
8492 hardcode_minus_L=yes
8493 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8494 # Neither direct hardcoding nor static linking is supported with a
8495 # broken collect2.
8496 hardcode_direct=unsupported
8500 aix[4-9]*)
8501 if test "$host_cpu" = ia64; then
8502 # On IA64, the linker does run time linking by default, so we don't
8503 # have to do anything special.
8504 aix_use_runtimelinking=no
8505 exp_sym_flag='-Bexport'
8506 no_entry_flag=""
8507 else
8508 # If we're using GNU nm, then we don't want the "-C" option.
8509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8510 # Also, AIX nm treats weak defined symbols like other global
8511 # defined symbols, whereas GNU nm marks them as "W".
8512 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8513 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'
8514 else
8515 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8517 aix_use_runtimelinking=no
8519 # Test if we are trying to use run time linking or normal
8520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8521 # need to do runtime linking.
8522 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8523 for ld_flag in $LDFLAGS; do
8524 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8525 aix_use_runtimelinking=yes
8526 break
8528 done
8530 esac
8532 exp_sym_flag='-bexport'
8533 no_entry_flag='-bnoentry'
8536 # When large executables or shared objects are built, AIX ld can
8537 # have problems creating the table of contents. If linking a library
8538 # or program results in "error TOC overflow" add -mminimal-toc to
8539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8542 archive_cmds=''
8543 hardcode_direct=yes
8544 hardcode_direct_absolute=yes
8545 hardcode_libdir_separator=':'
8546 link_all_deplibs=yes
8547 file_list_spec='${wl}-f,'
8549 if test "$GCC" = yes; then
8550 case $host_os in aix4.[012]|aix4.[012].*)
8551 # We only want to do this on AIX 4.2 and lower, the check
8552 # below for broken collect2 doesn't work under 4.3+
8553 collect2name=`${CC} -print-prog-name=collect2`
8554 if test -f "$collect2name" &&
8555 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8556 then
8557 # We have reworked collect2
8559 else
8560 # We have old collect2
8561 hardcode_direct=unsupported
8562 # It fails to find uninstalled libraries when the uninstalled
8563 # path is not listed in the libpath. Setting hardcode_minus_L
8564 # to unsupported forces relinking
8565 hardcode_minus_L=yes
8566 hardcode_libdir_flag_spec='-L$libdir'
8567 hardcode_libdir_separator=
8570 esac
8571 shared_flag='-shared'
8572 if test "$aix_use_runtimelinking" = yes; then
8573 shared_flag="$shared_flag "'${wl}-G'
8575 else
8576 # not using gcc
8577 if test "$host_cpu" = ia64; then
8578 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8579 # chokes on -Wl,-G. The following line is correct:
8580 shared_flag='-G'
8581 else
8582 if test "$aix_use_runtimelinking" = yes; then
8583 shared_flag='${wl}-G'
8584 else
8585 shared_flag='${wl}-bM:SRE'
8590 export_dynamic_flag_spec='${wl}-bexpall'
8591 # It seems that -bexpall does not export symbols beginning with
8592 # underscore (_), so it is better to generate a list of symbols to export.
8593 always_export_symbols=yes
8594 if test "$aix_use_runtimelinking" = yes; then
8595 # Warning - without using the other runtime loading flags (-brtl),
8596 # -berok will link without error, but may produce a broken library.
8597 allow_undefined_flag='-berok'
8598 # Determine the default libpath from the value encoded in an
8599 # empty executable.
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8604 main ()
8608 return 0;
8610 _ACEOF
8611 if ac_fn_c_try_link "$LINENO"; then :
8613 lt_aix_libpath_sed='
8614 /Import File Strings/,/^$/ {
8615 /^0/ {
8616 s/^0 *\(.*\)$/\1/
8620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8621 # Check for a 64-bit object if we didn't find anything.
8622 if test -z "$aix_libpath"; then
8623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8626 rm -f core conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8631 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"
8632 else
8633 if test "$host_cpu" = ia64; then
8634 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8635 allow_undefined_flag="-z nodefs"
8636 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"
8637 else
8638 # Determine the default libpath from the value encoded in an
8639 # empty executable.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8644 main ()
8648 return 0;
8650 _ACEOF
8651 if ac_fn_c_try_link "$LINENO"; then :
8653 lt_aix_libpath_sed='
8654 /Import File Strings/,/^$/ {
8655 /^0/ {
8656 s/^0 *\(.*\)$/\1/
8660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8661 # Check for a 64-bit object if we didn't find anything.
8662 if test -z "$aix_libpath"; then
8663 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8666 rm -f core conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8671 # Warning - without using the other run time loading flags,
8672 # -berok will link without error, but may produce a broken library.
8673 no_undefined_flag=' ${wl}-bernotok'
8674 allow_undefined_flag=' ${wl}-berok'
8675 if test "$with_gnu_ld" = yes; then
8676 # We only use this code for GNU lds that support --whole-archive.
8677 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8678 else
8679 # Exported symbols can be pulled into shared objects from archives
8680 whole_archive_flag_spec='$convenience'
8682 archive_cmds_need_lc=yes
8683 # This is similar to how AIX traditionally builds its shared libraries.
8684 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'
8689 amigaos*)
8690 case $host_cpu in
8691 powerpc)
8692 # see comment about AmigaOS4 .so support
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds=''
8696 m68k)
8697 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)'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8701 esac
8704 bsdi[45]*)
8705 export_dynamic_flag_spec=-rdynamic
8708 cygwin* | mingw* | pw32* | cegcc*)
8709 # When not using gcc, we currently assume that we are using
8710 # Microsoft Visual C++.
8711 # hardcode_libdir_flag_spec is actually meaningless, as there is
8712 # no search path for DLLs.
8713 hardcode_libdir_flag_spec=' '
8714 allow_undefined_flag=unsupported
8715 # Tell ltmain to make .lib files, not .a files.
8716 libext=lib
8717 # Tell ltmain to make .dll files, not .so files.
8718 shrext_cmds=".dll"
8719 # FIXME: Setting linknames here is a bad hack.
8720 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8721 # The linker will automatically build a .lib file if we build a DLL.
8722 old_archive_from_new_cmds='true'
8723 # FIXME: Should let the user specify the lib program.
8724 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8725 fix_srcfile_path='`cygpath -w "$srcfile"`'
8726 enable_shared_with_static_runtimes=yes
8729 darwin* | rhapsody*)
8732 archive_cmds_need_lc=no
8733 hardcode_direct=no
8734 hardcode_automatic=yes
8735 hardcode_shlibpath_var=unsupported
8736 if test "$lt_cv_ld_force_load" = "yes"; then
8737 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\"`'
8738 else
8739 whole_archive_flag_spec=''
8741 link_all_deplibs=yes
8742 allow_undefined_flag="$_lt_dar_allow_undefined"
8743 case $cc_basename in
8744 ifort*) _lt_dar_can_shared=yes ;;
8745 *) _lt_dar_can_shared=$GCC ;;
8746 esac
8747 if test "$_lt_dar_can_shared" = "yes"; then
8748 output_verbose_link_cmd=func_echo_all
8749 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8750 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8751 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}"
8752 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}"
8754 else
8755 ld_shlibs=no
8760 dgux*)
8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_libdir_flag_spec='-L$libdir'
8763 hardcode_shlibpath_var=no
8766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8767 # support. Future versions do this automatically, but an explicit c++rt0.o
8768 # does not break anything, and helps significantly (at the cost of a little
8769 # extra space).
8770 freebsd2.2*)
8771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8772 hardcode_libdir_flag_spec='-R$libdir'
8773 hardcode_direct=yes
8774 hardcode_shlibpath_var=no
8777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8778 freebsd2.*)
8779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8780 hardcode_direct=yes
8781 hardcode_minus_L=yes
8782 hardcode_shlibpath_var=no
8785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8786 freebsd* | dragonfly*)
8787 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8788 hardcode_libdir_flag_spec='-R$libdir'
8789 hardcode_direct=yes
8790 hardcode_shlibpath_var=no
8793 hpux9*)
8794 if test "$GCC" = yes; then
8795 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'
8796 else
8797 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'
8799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801 hardcode_direct=yes
8803 # hardcode_minus_L: Not really in the search PATH,
8804 # but as the default location of the library.
8805 hardcode_minus_L=yes
8806 export_dynamic_flag_spec='${wl}-E'
8809 hpux10*)
8810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8811 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8812 else
8813 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8815 if test "$with_gnu_ld" = no; then
8816 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8817 hardcode_libdir_flag_spec_ld='+b $libdir'
8818 hardcode_libdir_separator=:
8819 hardcode_direct=yes
8820 hardcode_direct_absolute=yes
8821 export_dynamic_flag_spec='${wl}-E'
8822 # hardcode_minus_L: Not really in the search PATH,
8823 # but as the default location of the library.
8824 hardcode_minus_L=yes
8828 hpux11*)
8829 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8830 case $host_cpu in
8831 hppa*64*)
8832 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834 ia64*)
8835 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8840 esac
8841 else
8842 case $host_cpu in
8843 hppa*64*)
8844 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 ia64*)
8847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8851 # Older versions of the 11.00 compiler do not understand -b yet
8852 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8854 $as_echo_n "checking if $CC understands -b... " >&6; }
8855 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 lt_cv_prog_compiler__b=no
8859 save_LDFLAGS="$LDFLAGS"
8860 LDFLAGS="$LDFLAGS -b"
8861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8863 # The linker can only warn and ignore the option if not recognized
8864 # So say no if there are warnings
8865 if test -s conftest.err; then
8866 # Append any errors to the config.log.
8867 cat conftest.err 1>&5
8868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8870 if diff conftest.exp conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler__b=yes
8873 else
8874 lt_cv_prog_compiler__b=yes
8877 $RM -r conftest*
8878 LDFLAGS="$save_LDFLAGS"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8882 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8884 if test x"$lt_cv_prog_compiler__b" = xyes; then
8885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8886 else
8887 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8891 esac
8893 if test "$with_gnu_ld" = no; then
8894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8895 hardcode_libdir_separator=:
8897 case $host_cpu in
8898 hppa*64*|ia64*)
8899 hardcode_direct=no
8900 hardcode_shlibpath_var=no
8903 hardcode_direct=yes
8904 hardcode_direct_absolute=yes
8905 export_dynamic_flag_spec='${wl}-E'
8907 # hardcode_minus_L: Not really in the search PATH,
8908 # but as the default location of the library.
8909 hardcode_minus_L=yes
8911 esac
8915 irix5* | irix6* | nonstopux*)
8916 if test "$GCC" = yes; then
8917 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'
8918 # Try to use the -exported_symbol ld option, if it does not
8919 # work, assume that -exports_file does not work either and
8920 # implicitly export all symbols.
8921 save_LDFLAGS="$LDFLAGS"
8922 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 int foo(void) {}
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"; then :
8928 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'
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LDFLAGS="$save_LDFLAGS"
8934 else
8935 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'
8936 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'
8938 archive_cmds_need_lc='no'
8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940 hardcode_libdir_separator=:
8941 inherit_rpath=yes
8942 link_all_deplibs=yes
8945 netbsd*)
8946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8948 else
8949 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8951 hardcode_libdir_flag_spec='-R$libdir'
8952 hardcode_direct=yes
8953 hardcode_shlibpath_var=no
8956 newsos6)
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_direct=yes
8959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960 hardcode_libdir_separator=:
8961 hardcode_shlibpath_var=no
8964 *nto* | *qnx*)
8967 openbsd*)
8968 if test -f /usr/libexec/ld.so; then
8969 hardcode_direct=yes
8970 hardcode_shlibpath_var=no
8971 hardcode_direct_absolute=yes
8972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8974 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8976 export_dynamic_flag_spec='${wl}-E'
8977 else
8978 case $host_os in
8979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8981 hardcode_libdir_flag_spec='-R$libdir'
8984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8987 esac
8989 else
8990 ld_shlibs=no
8994 os2*)
8995 hardcode_libdir_flag_spec='-L$libdir'
8996 hardcode_minus_L=yes
8997 allow_undefined_flag=unsupported
8998 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'
8999 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9002 osf3*)
9003 if test "$GCC" = yes; then
9004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9005 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'
9006 else
9007 allow_undefined_flag=' -expect_unresolved \*'
9008 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'
9010 archive_cmds_need_lc='no'
9011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012 hardcode_libdir_separator=:
9015 osf4* | osf5*) # as osf3* with the addition of -msym flag
9016 if test "$GCC" = yes; then
9017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9018 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'
9019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9020 else
9021 allow_undefined_flag=' -expect_unresolved \*'
9022 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'
9023 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~
9024 $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'
9026 # Both c and cxx compiler support -rpath directly
9027 hardcode_libdir_flag_spec='-rpath $libdir'
9029 archive_cmds_need_lc='no'
9030 hardcode_libdir_separator=:
9033 solaris*)
9034 no_undefined_flag=' -z defs'
9035 if test "$GCC" = yes; then
9036 wlarc='${wl}'
9037 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9039 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9040 else
9041 case `$CC -V 2>&1` in
9042 *"Compilers 5.0"*)
9043 wlarc=''
9044 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9046 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9049 wlarc='${wl}'
9050 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9052 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9054 esac
9056 hardcode_libdir_flag_spec='-R$libdir'
9057 hardcode_shlibpath_var=no
9058 case $host_os in
9059 solaris2.[0-5] | solaris2.[0-5].*) ;;
9061 # The compiler driver will combine and reorder linker options,
9062 # but understands `-z linker_flag'. GCC discards it without `$wl',
9063 # but is careful enough not to reorder.
9064 # Supported since Solaris 2.6 (maybe 2.5.1?)
9065 if test "$GCC" = yes; then
9066 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9067 else
9068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9071 esac
9072 link_all_deplibs=yes
9075 sunos4*)
9076 if test "x$host_vendor" = xsequent; then
9077 # Use $CC to link under sequent, because it throws in some extra .o
9078 # files that make .init and .fini sections work.
9079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9080 else
9081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_direct=yes
9085 hardcode_minus_L=yes
9086 hardcode_shlibpath_var=no
9089 sysv4)
9090 case $host_vendor in
9091 sni)
9092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093 hardcode_direct=yes # is this really true???
9095 siemens)
9096 ## LD is ld it makes a PLAMLIB
9097 ## CC just makes a GrossModule.
9098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9099 reload_cmds='$CC -r -o $output$reload_objs'
9100 hardcode_direct=no
9102 motorola)
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9106 esac
9107 runpath_var='LD_RUN_PATH'
9108 hardcode_shlibpath_var=no
9111 sysv4.3*)
9112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9113 hardcode_shlibpath_var=no
9114 export_dynamic_flag_spec='-Bexport'
9117 sysv4*MP*)
9118 if test -d /usr/nec; then
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_shlibpath_var=no
9121 runpath_var=LD_RUN_PATH
9122 hardcode_runpath_var=yes
9123 ld_shlibs=yes
9127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9128 no_undefined_flag='${wl}-z,text'
9129 archive_cmds_need_lc=no
9130 hardcode_shlibpath_var=no
9131 runpath_var='LD_RUN_PATH'
9133 if test "$GCC" = yes; then
9134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9136 else
9137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 sysv5* | sco3.2v5* | sco5v6*)
9143 # Note: We can NOT use -z defs as we might desire, because we do not
9144 # link with -lc, and that would cause any symbols used from libc to
9145 # always be unresolved, which means just about no library would
9146 # ever link correctly. If we're not using GNU ld we use -z text
9147 # though, which does catch some bad symbols but isn't as heavy-handed
9148 # as -z defs.
9149 no_undefined_flag='${wl}-z,text'
9150 allow_undefined_flag='${wl}-z,nodefs'
9151 archive_cmds_need_lc=no
9152 hardcode_shlibpath_var=no
9153 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9154 hardcode_libdir_separator=':'
9155 link_all_deplibs=yes
9156 export_dynamic_flag_spec='${wl}-Bexport'
9157 runpath_var='LD_RUN_PATH'
9159 if test "$GCC" = yes; then
9160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 else
9163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168 uts4*)
9169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_shlibpath_var=no
9175 ld_shlibs=no
9177 esac
9179 if test x$host_vendor = xsni; then
9180 case $host in
9181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9182 export_dynamic_flag_spec='${wl}-Blargedynsym'
9184 esac
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9189 $as_echo "$ld_shlibs" >&6; }
9190 test "$ld_shlibs" = no && can_build_shared=no
9192 with_gnu_ld=$with_gnu_ld
9209 # Do we need to explicitly link libc?
9211 case "x$archive_cmds_need_lc" in
9212 x|xyes)
9213 # Assume -lc should be added
9214 archive_cmds_need_lc=yes
9216 if test "$enable_shared" = yes && test "$GCC" = yes; then
9217 case $archive_cmds in
9218 *'~'*)
9219 # FIXME: we may have to deal with multi-command sequences.
9221 '$CC '*)
9222 # Test whether the compiler implicitly links with -lc since on some
9223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9224 # to ld, don't add -lc before -lgcc.
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9227 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 $RM conftest*
9231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9234 (eval $ac_compile) 2>&5
9235 ac_status=$?
9236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9237 test $ac_status = 0; } 2>conftest.err; then
9238 soname=conftest
9239 lib=conftest
9240 libobjs=conftest.$ac_objext
9241 deplibs=
9242 wl=$lt_prog_compiler_wl
9243 pic_flag=$lt_prog_compiler_pic
9244 compiler_flags=-v
9245 linker_flags=-v
9246 verstring=
9247 output_objdir=.
9248 libname=conftest
9249 lt_save_allow_undefined_flag=$allow_undefined_flag
9250 allow_undefined_flag=
9251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9253 ac_status=$?
9254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9255 test $ac_status = 0; }
9256 then
9257 lt_cv_archive_cmds_need_lc=no
9258 else
9259 lt_cv_archive_cmds_need_lc=yes
9261 allow_undefined_flag=$lt_save_allow_undefined_flag
9262 else
9263 cat conftest.err 1>&5
9265 $RM conftest*
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9272 esac
9275 esac
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9434 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9436 if test "$GCC" = yes; then
9437 case $host_os in
9438 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9439 *) lt_awk_arg="/^libraries:/" ;;
9440 esac
9441 case $host_os in
9442 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9443 *) lt_sed_strip_eq="s,=/,/,g" ;;
9444 esac
9445 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9446 case $lt_search_path_spec in
9447 *\;*)
9448 # if the path contains ";" then we assume it to be the separator
9449 # otherwise default to the standard path separator (i.e. ":") - it is
9450 # assumed that no part of a normal pathname contains ";" but that should
9451 # okay in the real world where ";" in dirpaths is itself problematic.
9452 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9455 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9457 esac
9458 # Ok, now we have the path, separated by spaces, we can step through it
9459 # and add multilib dir if necessary.
9460 lt_tmp_lt_search_path_spec=
9461 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9462 for lt_sys_path in $lt_search_path_spec; do
9463 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9465 else
9466 test -d "$lt_sys_path" && \
9467 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9469 done
9470 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9471 BEGIN {RS=" "; FS="/|\n";} {
9472 lt_foo="";
9473 lt_count=0;
9474 for (lt_i = NF; lt_i > 0; lt_i--) {
9475 if ($lt_i != "" && $lt_i != ".") {
9476 if ($lt_i == "..") {
9477 lt_count++;
9478 } else {
9479 if (lt_count == 0) {
9480 lt_foo="/" $lt_i lt_foo;
9481 } else {
9482 lt_count--;
9487 if (lt_foo != "") { lt_freq[lt_foo]++; }
9488 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9490 # AWK program above erroneously prepends '/' to C:/dos/paths
9491 # for these hosts.
9492 case $host_os in
9493 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9494 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9495 esac
9496 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9497 else
9498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9500 library_names_spec=
9501 libname_spec='lib$name'
9502 soname_spec=
9503 shrext_cmds=".so"
9504 postinstall_cmds=
9505 postuninstall_cmds=
9506 finish_cmds=
9507 finish_eval=
9508 shlibpath_var=
9509 shlibpath_overrides_runpath=unknown
9510 version_type=none
9511 dynamic_linker="$host_os ld.so"
9512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9513 need_lib_prefix=unknown
9514 hardcode_into_libs=no
9516 # when you set need_version to no, make sure it does not cause -set_version
9517 # flags to be left without arguments
9518 need_version=unknown
9520 case $host_os in
9521 aix3*)
9522 version_type=linux
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9524 shlibpath_var=LIBPATH
9526 # AIX 3 has no versioning support, so we append a major version to the name.
9527 soname_spec='${libname}${release}${shared_ext}$major'
9530 aix[4-9]*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 hardcode_into_libs=yes
9535 if test "$host_cpu" = ia64; then
9536 # AIX 5 supports IA64
9537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 else
9540 # With GCC up to 2.95.x, collect2 would create an import file
9541 # for dependence libraries. The import file would start with
9542 # the line `#! .'. This would cause the generated library to
9543 # depend on `.', always an invalid library. This was fixed in
9544 # development snapshots of GCC prior to 3.0.
9545 case $host_os in
9546 aix4 | aix4.[01] | aix4.[01].*)
9547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9548 echo ' yes '
9549 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9551 else
9552 can_build_shared=no
9555 esac
9556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9557 # soname into executable. Probably we can add versioning support to
9558 # collect2, so additional links can be useful in future.
9559 if test "$aix_use_runtimelinking" = yes; then
9560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9561 # instead of lib<name>.a to let people know that these are not
9562 # typical AIX shared libraries.
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564 else
9565 # We preserve .a as extension for shared libraries through AIX4.2
9566 # and later when we are not doing run time linking.
9567 library_names_spec='${libname}${release}.a $libname.a'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9570 shlibpath_var=LIBPATH
9574 amigaos*)
9575 case $host_cpu in
9576 powerpc)
9577 # Since July 2007 AmigaOS4 officially supports .so libraries.
9578 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 m68k)
9582 library_names_spec='$libname.ixlibrary $libname.a'
9583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9584 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'
9586 esac
9589 beos*)
9590 library_names_spec='${libname}${shared_ext}'
9591 dynamic_linker="$host_os ld.so"
9592 shlibpath_var=LIBRARY_PATH
9595 bsdi[45]*)
9596 version_type=linux
9597 need_version=no
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9603 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9604 # the default ld.so.conf also contains /usr/contrib/lib and
9605 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9606 # libtool to hard-code these into programs
9609 cygwin* | mingw* | pw32* | cegcc*)
9610 version_type=windows
9611 shrext_cmds=".dll"
9612 need_version=no
9613 need_lib_prefix=no
9615 case $GCC,$host_os in
9616 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9617 library_names_spec='$libname.dll.a'
9618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9619 postinstall_cmds='base_file=`basename \${file}`~
9620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9621 dldir=$destdir/`dirname \$dlpath`~
9622 test -d \$dldir || mkdir -p \$dldir~
9623 $install_prog $dir/$dlname \$dldir/$dlname~
9624 chmod a+x \$dldir/$dlname~
9625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9629 dlpath=$dir/\$dldll~
9630 $RM \$dlpath'
9631 shlibpath_overrides_runpath=yes
9633 case $host_os in
9634 cygwin*)
9635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9638 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9640 mingw* | cegcc*)
9641 # MinGW DLLs use traditional 'lib' prefix
9642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644 pw32*)
9645 # pw32 DLLs use 'pw' prefix rather than 'lib'
9646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9648 esac
9652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9654 esac
9655 dynamic_linker='Win32 ld.exe'
9656 # FIXME: first we should search . and the directory the executable is in
9657 shlibpath_var=PATH
9660 darwin* | rhapsody*)
9661 dynamic_linker="$host_os dyld"
9662 version_type=darwin
9663 need_lib_prefix=no
9664 need_version=no
9665 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9666 soname_spec='${libname}${release}${major}$shared_ext'
9667 shlibpath_overrides_runpath=yes
9668 shlibpath_var=DYLD_LIBRARY_PATH
9669 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9671 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9675 dgux*)
9676 version_type=linux
9677 need_lib_prefix=no
9678 need_version=no
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 shlibpath_var=LD_LIBRARY_PATH
9684 freebsd* | dragonfly*)
9685 # DragonFly does not have aout. When/if they implement a new
9686 # versioning mechanism, adjust this.
9687 if test -x /usr/bin/objformat; then
9688 objformat=`/usr/bin/objformat`
9689 else
9690 case $host_os in
9691 freebsd[23].*) objformat=aout ;;
9692 *) objformat=elf ;;
9693 esac
9695 version_type=freebsd-$objformat
9696 case $version_type in
9697 freebsd-elf*)
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9699 need_version=no
9700 need_lib_prefix=no
9702 freebsd-*)
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9704 need_version=yes
9706 esac
9707 shlibpath_var=LD_LIBRARY_PATH
9708 case $host_os in
9709 freebsd2.*)
9710 shlibpath_overrides_runpath=yes
9712 freebsd3.[01]* | freebsdelf3.[01]*)
9713 shlibpath_overrides_runpath=yes
9714 hardcode_into_libs=yes
9716 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9717 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9718 shlibpath_overrides_runpath=no
9719 hardcode_into_libs=yes
9721 *) # from 4.6 on, and DragonFly
9722 shlibpath_overrides_runpath=yes
9723 hardcode_into_libs=yes
9725 esac
9728 gnu*)
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 hardcode_into_libs=yes
9738 haiku*)
9739 version_type=linux
9740 need_lib_prefix=no
9741 need_version=no
9742 dynamic_linker="$host_os runtime_loader"
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 shlibpath_var=LIBRARY_PATH
9746 shlibpath_overrides_runpath=yes
9747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9748 hardcode_into_libs=yes
9751 hpux9* | hpux10* | hpux11*)
9752 # Give a soname corresponding to the major version so that dld.sl refuses to
9753 # link against other versions.
9754 version_type=sunos
9755 need_lib_prefix=no
9756 need_version=no
9757 case $host_cpu in
9758 ia64*)
9759 shrext_cmds='.so'
9760 hardcode_into_libs=yes
9761 dynamic_linker="$host_os dld.so"
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 if test "X$HPUX_IA64_MODE" = X32; then
9767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9768 else
9769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9773 hppa*64*)
9774 shrext_cmds='.sl'
9775 hardcode_into_libs=yes
9776 dynamic_linker="$host_os dld.sl"
9777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9785 shrext_cmds='.sl'
9786 dynamic_linker="$host_os dld.sl"
9787 shlibpath_var=SHLIB_PATH
9788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9792 esac
9793 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9794 postinstall_cmds='chmod 555 $lib'
9795 # or fails outright, so override atomically:
9796 install_override_mode=555
9799 interix[3-9]*)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 shlibpath_overrides_runpath=no
9808 hardcode_into_libs=yes
9811 irix5* | irix6* | nonstopux*)
9812 case $host_os in
9813 nonstopux*) version_type=nonstopux ;;
9815 if test "$lt_cv_prog_gnu_ld" = yes; then
9816 version_type=linux
9817 else
9818 version_type=irix
9819 fi ;;
9820 esac
9821 need_lib_prefix=no
9822 need_version=no
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9825 case $host_os in
9826 irix5* | nonstopux*)
9827 libsuff= shlibsuff=
9830 case $LD in # libtool.m4 will add one of these switches to LD
9831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9832 libsuff= shlibsuff= libmagic=32-bit;;
9833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9834 libsuff=32 shlibsuff=N32 libmagic=N32;;
9835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9837 *) libsuff= shlibsuff= libmagic=never-match;;
9838 esac
9840 esac
9841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9842 shlibpath_overrides_runpath=no
9843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9845 hardcode_into_libs=yes
9848 # No shared lib support for Linux oldld, aout, or coff.
9849 linux*oldld* | linux*aout* | linux*coff*)
9850 dynamic_linker=no
9853 # This must be Linux ELF.
9854 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9855 version_type=linux
9856 need_lib_prefix=no
9857 need_version=no
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 shlibpath_overrides_runpath=no
9864 # Some binutils ld are patched to set DT_RUNPATH
9865 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 lt_cv_shlibpath_overrides_runpath=no
9869 save_LDFLAGS=$LDFLAGS
9870 save_libdir=$libdir
9871 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9872 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9877 main ()
9881 return 0;
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9886 lt_cv_shlibpath_overrides_runpath=yes
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LDFLAGS=$save_LDFLAGS
9892 libdir=$save_libdir
9896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9898 # This implies no fast_install, which is unacceptable.
9899 # Some rework will be needed to allow for fast_install
9900 # before this can be enabled.
9901 hardcode_into_libs=yes
9903 # Append ld.so.conf contents to the search path
9904 if test -f /etc/ld.so.conf; then
9905 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' ' '`
9906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9909 # We used to test for /lib/ld.so.1 and disable shared libraries on
9910 # powerpc, because MkLinux only supported shared libraries with the
9911 # GNU dynamic linker. Since this was broken with cross compilers,
9912 # most powerpc-linux boxes support dynamic linking these days and
9913 # people can always --disable-shared, the test was removed, and we
9914 # assume the GNU/Linux dynamic linker is in use.
9915 dynamic_linker='GNU/Linux ld.so'
9918 netbsd*)
9919 version_type=sunos
9920 need_lib_prefix=no
9921 need_version=no
9922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9925 dynamic_linker='NetBSD (a.out) ld.so'
9926 else
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 dynamic_linker='NetBSD ld.elf_so'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 shlibpath_overrides_runpath=yes
9933 hardcode_into_libs=yes
9936 newsos6)
9937 version_type=linux
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 shlibpath_overrides_runpath=yes
9943 *nto* | *qnx*)
9944 version_type=qnx
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=no
9951 hardcode_into_libs=yes
9952 dynamic_linker='ldqnx.so'
9955 openbsd*)
9956 version_type=sunos
9957 sys_lib_dlsearch_path_spec="/usr/lib"
9958 need_lib_prefix=no
9959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9960 case $host_os in
9961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9962 *) need_version=no ;;
9963 esac
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9968 case $host_os in
9969 openbsd2.[89] | openbsd2.[89].*)
9970 shlibpath_overrides_runpath=no
9973 shlibpath_overrides_runpath=yes
9975 esac
9976 else
9977 shlibpath_overrides_runpath=yes
9981 os2*)
9982 libname_spec='$name'
9983 shrext_cmds=".dll"
9984 need_lib_prefix=no
9985 library_names_spec='$libname${shared_ext} $libname.a'
9986 dynamic_linker='OS/2 ld.exe'
9987 shlibpath_var=LIBPATH
9990 osf3* | osf4* | osf5*)
9991 version_type=osf
9992 need_lib_prefix=no
9993 need_version=no
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10001 rdos*)
10002 dynamic_linker=no
10005 solaris*)
10006 version_type=linux
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 hardcode_into_libs=yes
10014 # ldd complains unless libraries are executable
10015 postinstall_cmds='chmod +x $lib'
10018 sunos4*)
10019 version_type=sunos
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=yes
10024 if test "$with_gnu_ld" = yes; then
10025 need_lib_prefix=no
10027 need_version=yes
10030 sysv4 | sysv4.3*)
10031 version_type=linux
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10034 shlibpath_var=LD_LIBRARY_PATH
10035 case $host_vendor in
10036 sni)
10037 shlibpath_overrides_runpath=no
10038 need_lib_prefix=no
10039 runpath_var=LD_RUN_PATH
10041 siemens)
10042 need_lib_prefix=no
10044 motorola)
10045 need_lib_prefix=no
10046 need_version=no
10047 shlibpath_overrides_runpath=no
10048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10050 esac
10053 sysv4*MP*)
10054 if test -d /usr/nec ;then
10055 version_type=linux
10056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10057 soname_spec='$libname${shared_ext}.$major'
10058 shlibpath_var=LD_LIBRARY_PATH
10062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10063 version_type=freebsd-elf
10064 need_lib_prefix=no
10065 need_version=no
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10071 if test "$with_gnu_ld" = yes; then
10072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10073 else
10074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10075 case $host_os in
10076 sco3.2v5*)
10077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10079 esac
10081 sys_lib_dlsearch_path_spec='/usr/lib'
10084 tpf*)
10085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10086 version_type=linux
10087 need_lib_prefix=no
10088 need_version=no
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10095 uts4*)
10096 version_type=linux
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 shlibpath_var=LD_LIBRARY_PATH
10103 dynamic_linker=no
10105 esac
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10107 $as_echo "$dynamic_linker" >&6; }
10108 test "$dynamic_linker" = no && can_build_shared=no
10110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10111 if test "$GCC" = yes; then
10112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10115 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10116 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10118 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10119 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10214 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10215 hardcode_action=
10216 if test -n "$hardcode_libdir_flag_spec" ||
10217 test -n "$runpath_var" ||
10218 test "X$hardcode_automatic" = "Xyes" ; then
10220 # We can hardcode non-existent directories.
10221 if test "$hardcode_direct" != no &&
10222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10223 # have to relink, otherwise we might link with an installed library
10224 # when we should be linking with a yet-to-be-installed one
10225 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10226 test "$hardcode_minus_L" != no; then
10227 # Linking always hardcodes the temporary library directory.
10228 hardcode_action=relink
10229 else
10230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10231 hardcode_action=immediate
10233 else
10234 # We cannot hardcode anything, or else we can only hardcode existing
10235 # directories.
10236 hardcode_action=unsupported
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10239 $as_echo "$hardcode_action" >&6; }
10241 if test "$hardcode_action" = relink ||
10242 test "$inherit_rpath" = yes; then
10243 # Fast installation is not supported
10244 enable_fast_install=no
10245 elif test "$shlibpath_overrides_runpath" = yes ||
10246 test "$enable_shared" = no; then
10247 # Fast installation is not necessary
10248 enable_fast_install=needless
10256 if test "x$enable_dlopen" != xyes; then
10257 enable_dlopen=unknown
10258 enable_dlopen_self=unknown
10259 enable_dlopen_self_static=unknown
10260 else
10261 lt_cv_dlopen=no
10262 lt_cv_dlopen_libs=
10264 case $host_os in
10265 beos*)
10266 lt_cv_dlopen="load_add_on"
10267 lt_cv_dlopen_libs=
10268 lt_cv_dlopen_self=yes
10271 mingw* | pw32* | cegcc*)
10272 lt_cv_dlopen="LoadLibrary"
10273 lt_cv_dlopen_libs=
10276 cygwin*)
10277 lt_cv_dlopen="dlopen"
10278 lt_cv_dlopen_libs=
10281 darwin*)
10282 # if libdl is installed we need to link against it
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10284 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10285 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-ldl $LIBS"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char dlopen ();
10301 main ()
10303 return dlopen ();
10305 return 0;
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 ac_cv_lib_dl_dlopen=yes
10310 else
10311 ac_cv_lib_dl_dlopen=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10319 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10321 else
10323 lt_cv_dlopen="dyld"
10324 lt_cv_dlopen_libs=
10325 lt_cv_dlopen_self=yes
10332 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10333 if test "x$ac_cv_func_shl_load" = x""yes; then :
10334 lt_cv_dlopen="shl_load"
10335 else
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10337 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10338 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-ldld $LIBS"
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 char shl_load ();
10354 main ()
10356 return shl_load ();
10358 return 0;
10360 _ACEOF
10361 if ac_fn_c_try_link "$LINENO"; then :
10362 ac_cv_lib_dld_shl_load=yes
10363 else
10364 ac_cv_lib_dld_shl_load=no
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10371 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10372 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10373 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10374 else
10375 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10376 if test "x$ac_cv_func_dlopen" = x""yes; then :
10377 lt_cv_dlopen="dlopen"
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10380 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 ac_check_lib_save_LIBS=$LIBS
10385 LIBS="-ldl $LIBS"
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char dlopen ();
10397 main ()
10399 return dlopen ();
10401 return 0;
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 ac_cv_lib_dl_dlopen=yes
10406 else
10407 ac_cv_lib_dl_dlopen=no
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LIBS=$ac_check_lib_save_LIBS
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10414 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10415 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10419 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10420 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 ac_check_lib_save_LIBS=$LIBS
10424 LIBS="-lsvld $LIBS"
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 char dlopen ();
10436 main ()
10438 return dlopen ();
10440 return 0;
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"; then :
10444 ac_cv_lib_svld_dlopen=yes
10445 else
10446 ac_cv_lib_svld_dlopen=no
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LIBS=$ac_check_lib_save_LIBS
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10453 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10454 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10455 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10458 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10459 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 ac_check_lib_save_LIBS=$LIBS
10463 LIBS="-ldld $LIBS"
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10467 /* Override any GCC internal prototype to avoid an error.
10468 Use char because int might match the return type of a GCC
10469 builtin and then its argument prototype would still apply. */
10470 #ifdef __cplusplus
10471 extern "C"
10472 #endif
10473 char dld_link ();
10475 main ()
10477 return dld_link ();
10479 return 0;
10481 _ACEOF
10482 if ac_fn_c_try_link "$LINENO"; then :
10483 ac_cv_lib_dld_dld_link=yes
10484 else
10485 ac_cv_lib_dld_dld_link=no
10487 rm -f core conftest.err conftest.$ac_objext \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10492 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10493 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10494 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10513 esac
10515 if test "x$lt_cv_dlopen" != xno; then
10516 enable_dlopen=yes
10517 else
10518 enable_dlopen=no
10521 case $lt_cv_dlopen in
10522 dlopen)
10523 save_CPPFLAGS="$CPPFLAGS"
10524 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10526 save_LDFLAGS="$LDFLAGS"
10527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10529 save_LIBS="$LIBS"
10530 LIBS="$lt_cv_dlopen_libs $LIBS"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10533 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10534 if test "${lt_cv_dlopen_self+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 if test "$cross_compiling" = yes; then :
10538 lt_cv_dlopen_self=cross
10539 else
10540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10541 lt_status=$lt_dlunknown
10542 cat > conftest.$ac_ext <<_LT_EOF
10543 #line 10543 "configure"
10544 #include "confdefs.h"
10546 #if HAVE_DLFCN_H
10547 #include <dlfcn.h>
10548 #endif
10550 #include <stdio.h>
10552 #ifdef RTLD_GLOBAL
10553 # define LT_DLGLOBAL RTLD_GLOBAL
10554 #else
10555 # ifdef DL_GLOBAL
10556 # define LT_DLGLOBAL DL_GLOBAL
10557 # else
10558 # define LT_DLGLOBAL 0
10559 # endif
10560 #endif
10562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10563 find out it does not work in some platform. */
10564 #ifndef LT_DLLAZY_OR_NOW
10565 # ifdef RTLD_LAZY
10566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10567 # else
10568 # ifdef DL_LAZY
10569 # define LT_DLLAZY_OR_NOW DL_LAZY
10570 # else
10571 # ifdef RTLD_NOW
10572 # define LT_DLLAZY_OR_NOW RTLD_NOW
10573 # else
10574 # ifdef DL_NOW
10575 # define LT_DLLAZY_OR_NOW DL_NOW
10576 # else
10577 # define LT_DLLAZY_OR_NOW 0
10578 # endif
10579 # endif
10580 # endif
10581 # endif
10582 #endif
10584 /* When -fvisbility=hidden is used, assume the code has been annotated
10585 correspondingly for the symbols needed. */
10586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10587 void fnord () __attribute__((visibility("default")));
10588 #endif
10590 void fnord () { int i=42; }
10591 int main ()
10593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10594 int status = $lt_dlunknown;
10596 if (self)
10598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10599 else
10601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602 else puts (dlerror ());
10604 /* dlclose (self); */
10606 else
10607 puts (dlerror ());
10609 return status;
10611 _LT_EOF
10612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10613 (eval $ac_link) 2>&5
10614 ac_status=$?
10615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10617 (./conftest; exit; ) >&5 2>/dev/null
10618 lt_status=$?
10619 case x$lt_status in
10620 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10621 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10622 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10623 esac
10624 else :
10625 # compilation failed
10626 lt_cv_dlopen_self=no
10629 rm -fr conftest*
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10634 $as_echo "$lt_cv_dlopen_self" >&6; }
10636 if test "x$lt_cv_dlopen_self" = xyes; then
10637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10639 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10640 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 if test "$cross_compiling" = yes; then :
10644 lt_cv_dlopen_self_static=cross
10645 else
10646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10647 lt_status=$lt_dlunknown
10648 cat > conftest.$ac_ext <<_LT_EOF
10649 #line 10649 "configure"
10650 #include "confdefs.h"
10652 #if HAVE_DLFCN_H
10653 #include <dlfcn.h>
10654 #endif
10656 #include <stdio.h>
10658 #ifdef RTLD_GLOBAL
10659 # define LT_DLGLOBAL RTLD_GLOBAL
10660 #else
10661 # ifdef DL_GLOBAL
10662 # define LT_DLGLOBAL DL_GLOBAL
10663 # else
10664 # define LT_DLGLOBAL 0
10665 # endif
10666 #endif
10668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10669 find out it does not work in some platform. */
10670 #ifndef LT_DLLAZY_OR_NOW
10671 # ifdef RTLD_LAZY
10672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10673 # else
10674 # ifdef DL_LAZY
10675 # define LT_DLLAZY_OR_NOW DL_LAZY
10676 # else
10677 # ifdef RTLD_NOW
10678 # define LT_DLLAZY_OR_NOW RTLD_NOW
10679 # else
10680 # ifdef DL_NOW
10681 # define LT_DLLAZY_OR_NOW DL_NOW
10682 # else
10683 # define LT_DLLAZY_OR_NOW 0
10684 # endif
10685 # endif
10686 # endif
10687 # endif
10688 #endif
10690 /* When -fvisbility=hidden is used, assume the code has been annotated
10691 correspondingly for the symbols needed. */
10692 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10693 void fnord () __attribute__((visibility("default")));
10694 #endif
10696 void fnord () { int i=42; }
10697 int main ()
10699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10700 int status = $lt_dlunknown;
10702 if (self)
10704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10705 else
10707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10708 else puts (dlerror ());
10710 /* dlclose (self); */
10712 else
10713 puts (dlerror ());
10715 return status;
10717 _LT_EOF
10718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10719 (eval $ac_link) 2>&5
10720 ac_status=$?
10721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10723 (./conftest; exit; ) >&5 2>/dev/null
10724 lt_status=$?
10725 case x$lt_status in
10726 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10727 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10728 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10729 esac
10730 else :
10731 # compilation failed
10732 lt_cv_dlopen_self_static=no
10735 rm -fr conftest*
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10740 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10743 CPPFLAGS="$save_CPPFLAGS"
10744 LDFLAGS="$save_LDFLAGS"
10745 LIBS="$save_LIBS"
10747 esac
10749 case $lt_cv_dlopen_self in
10750 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10751 *) enable_dlopen_self=unknown ;;
10752 esac
10754 case $lt_cv_dlopen_self_static in
10755 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10756 *) enable_dlopen_self_static=unknown ;;
10757 esac
10776 striplib=
10777 old_striplib=
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10779 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10780 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10781 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10782 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10784 $as_echo "yes" >&6; }
10785 else
10786 # FIXME - insert some real tests, host_os isn't really good enough
10787 case $host_os in
10788 darwin*)
10789 if test -n "$STRIP" ; then
10790 striplib="$STRIP -x"
10791 old_striplib="$STRIP -S"
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10793 $as_echo "yes" >&6; }
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10803 esac
10817 # Report which library types will actually be built
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10819 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10821 $as_echo "$can_build_shared" >&6; }
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10824 $as_echo_n "checking whether to build shared libraries... " >&6; }
10825 test "$can_build_shared" = "no" && enable_shared=no
10827 # On AIX, shared libraries and static libraries use the same namespace, and
10828 # are all built from PIC.
10829 case $host_os in
10830 aix3*)
10831 test "$enable_shared" = yes && enable_static=no
10832 if test -n "$RANLIB"; then
10833 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10834 postinstall_cmds='$RANLIB $lib'
10838 aix[4-9]*)
10839 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10840 test "$enable_shared" = yes && enable_static=no
10843 esac
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10845 $as_echo "$enable_shared" >&6; }
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10848 $as_echo_n "checking whether to build static libraries... " >&6; }
10849 # Make sure either enable_shared or enable_static is yes.
10850 test "$enable_shared" = yes || enable_static=yes
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10852 $as_echo "$enable_static" >&6; }
10858 ac_ext=c
10859 ac_cpp='$CPP $CPPFLAGS'
10860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10864 CC="$lt_save_CC"
10878 ac_config_commands="$ac_config_commands libtool"
10883 # Only expand once:
10887 ac_ext=cpp
10888 ac_cpp='$CXXCPP $CPPFLAGS'
10889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10892 if test -z "$CXX"; then
10893 if test -n "$CCC"; then
10894 CXX=$CCC
10895 else
10896 if test -n "$ac_tool_prefix"; then
10897 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if test "${ac_cv_prog_CXX+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 if test -n "$CXX"; then
10907 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10908 else
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10912 IFS=$as_save_IFS
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918 break 2
10920 done
10921 done
10922 IFS=$as_save_IFS
10926 CXX=$ac_cv_prog_CXX
10927 if test -n "$CXX"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10929 $as_echo "$CXX" >&6; }
10930 else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10936 test -n "$CXX" && break
10937 done
10939 if test -z "$CXX"; then
10940 ac_ct_CXX=$CXX
10941 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10943 # Extract the first word of "$ac_prog", so it can be a program name with args.
10944 set dummy $ac_prog; ac_word=$2
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10946 $as_echo_n "checking for $ac_word... " >&6; }
10947 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 if test -n "$ac_ct_CXX"; then
10951 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10952 else
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10956 IFS=$as_save_IFS
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10960 ac_cv_prog_ac_ct_CXX="$ac_prog"
10961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 break 2
10964 done
10965 done
10966 IFS=$as_save_IFS
10970 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10971 if test -n "$ac_ct_CXX"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10973 $as_echo "$ac_ct_CXX" >&6; }
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10980 test -n "$ac_ct_CXX" && break
10981 done
10983 if test "x$ac_ct_CXX" = x; then
10984 CXX="g++"
10985 else
10986 case $cross_compiling:$ac_tool_warned in
10987 yes:)
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10990 ac_tool_warned=yes ;;
10991 esac
10992 CXX=$ac_ct_CXX
10998 # Provide some information about the compiler.
10999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11000 set X $ac_compile
11001 ac_compiler=$2
11002 for ac_option in --version -v -V -qversion; do
11003 { { ac_try="$ac_compiler $ac_option >&5"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007 esac
11008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11009 $as_echo "$ac_try_echo"; } >&5
11010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11011 ac_status=$?
11012 if test -s conftest.err; then
11013 sed '10a\
11014 ... rest of stderr output deleted ...
11015 10q' conftest.err >conftest.er1
11016 cat conftest.er1 >&5
11017 rm -f conftest.er1 conftest.err
11019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020 test $ac_status = 0; }
11021 done
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11024 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11025 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11032 main ()
11034 #ifndef __GNUC__
11035 choke me
11036 #endif
11039 return 0;
11041 _ACEOF
11042 if ac_fn_cxx_try_compile "$LINENO"; then :
11043 ac_compiler_gnu=yes
11044 else
11045 ac_compiler_gnu=no
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11052 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11053 if test $ac_compiler_gnu = yes; then
11054 GXX=yes
11055 else
11056 GXX=
11058 ac_test_CXXFLAGS=${CXXFLAGS+set}
11059 ac_save_CXXFLAGS=$CXXFLAGS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11061 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11062 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11066 ac_cxx_werror_flag=yes
11067 ac_cv_prog_cxx_g=no
11068 CXXFLAGS="-g"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11073 main ()
11077 return 0;
11079 _ACEOF
11080 if ac_fn_cxx_try_compile "$LINENO"; then :
11081 ac_cv_prog_cxx_g=yes
11082 else
11083 CXXFLAGS=""
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11088 main ()
11092 return 0;
11094 _ACEOF
11095 if ac_fn_cxx_try_compile "$LINENO"; then :
11097 else
11098 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11099 CXXFLAGS="-g"
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11104 main ()
11108 return 0;
11110 _ACEOF
11111 if ac_fn_cxx_try_compile "$LINENO"; then :
11112 ac_cv_prog_cxx_g=yes
11114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11122 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11123 if test "$ac_test_CXXFLAGS" = set; then
11124 CXXFLAGS=$ac_save_CXXFLAGS
11125 elif test $ac_cv_prog_cxx_g = yes; then
11126 if test "$GXX" = yes; then
11127 CXXFLAGS="-g -O2"
11128 else
11129 CXXFLAGS="-g"
11131 else
11132 if test "$GXX" = yes; then
11133 CXXFLAGS="-O2"
11134 else
11135 CXXFLAGS=
11138 ac_ext=c
11139 ac_cpp='$CPP $CPPFLAGS'
11140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11144 depcc="$CXX" am_compiler_list=
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11147 $as_echo_n "checking dependency style of $depcc... " >&6; }
11148 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11152 # We make a subdir and do the tests there. Otherwise we can end up
11153 # making bogus files that we don't know about and never remove. For
11154 # instance it was reported that on HP-UX the gcc test will end up
11155 # making a dummy file named `D' -- because `-MD' means `put the output
11156 # in D'.
11157 rm -rf conftest.dir
11158 mkdir conftest.dir
11159 # Copy depcomp to subdir because otherwise we won't find it if we're
11160 # using a relative directory.
11161 cp "$am_depcomp" conftest.dir
11162 cd conftest.dir
11163 # We will build objects and dependencies in a subdirectory because
11164 # it helps to detect inapplicable dependency modes. For instance
11165 # both Tru64's cc and ICC support -MD to output dependencies as a
11166 # side effect of compilation, but ICC will put the dependencies in
11167 # the current directory while Tru64 will put them in the object
11168 # directory.
11169 mkdir sub
11171 am_cv_CXX_dependencies_compiler_type=none
11172 if test "$am_compiler_list" = ""; then
11173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11175 am__universal=false
11176 case " $depcc " in #(
11177 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11178 esac
11180 for depmode in $am_compiler_list; do
11181 # Setup a source with many dependencies, because some compilers
11182 # like to wrap large dependency lists on column 80 (with \), and
11183 # we should not choose a depcomp mode which is confused by this.
11185 # We need to recreate these files for each test, as the compiler may
11186 # overwrite some of them when testing with obscure command lines.
11187 # This happens at least with the AIX C compiler.
11188 : > sub/conftest.c
11189 for i in 1 2 3 4 5 6; do
11190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11192 # Solaris 8's {/usr,}/bin/sh.
11193 touch sub/conftst$i.h
11194 done
11195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11198 # mode. It turns out that the SunPro C++ compiler does not properly
11199 # handle `-M -o', and we need to detect this. Also, some Intel
11200 # versions had trouble with output in subdirs
11201 am__obj=sub/conftest.${OBJEXT-o}
11202 am__minus_obj="-o $am__obj"
11203 case $depmode in
11204 gcc)
11205 # This depmode causes a compiler race in universal mode.
11206 test "$am__universal" = false || continue
11208 nosideeffect)
11209 # after this tag, mechanisms are not by side-effect, so they'll
11210 # only be used when explicitly requested
11211 if test "x$enable_dependency_tracking" = xyes; then
11212 continue
11213 else
11214 break
11217 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11218 # This compiler won't grok `-c -o', but also, the minuso test has
11219 # not run yet. These depmodes are late enough in the game, and
11220 # so weak that their functioning should not be impacted.
11221 am__obj=conftest.${OBJEXT-o}
11222 am__minus_obj=
11224 none) break ;;
11225 esac
11226 if depmode=$depmode \
11227 source=sub/conftest.c object=$am__obj \
11228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11229 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11230 >/dev/null 2>conftest.err &&
11231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11233 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11235 # icc doesn't choke on unknown options, it will just issue warnings
11236 # or remarks (even with -Werror). So we grep stderr for any message
11237 # that says an option was ignored or not supported.
11238 # When given -MP, icc 7.0 and 7.1 complain thusly:
11239 # icc: Command line warning: ignoring option '-M'; no argument required
11240 # The diagnosis changed in icc 8.0:
11241 # icc: Command line remark: option '-MP' not supported
11242 if (grep 'ignoring option' conftest.err ||
11243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11244 am_cv_CXX_dependencies_compiler_type=$depmode
11245 break
11248 done
11250 cd ..
11251 rm -rf conftest.dir
11252 else
11253 am_cv_CXX_dependencies_compiler_type=none
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11258 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11259 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11262 test "x$enable_dependency_tracking" != xno \
11263 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11264 am__fastdepCXX_TRUE=
11265 am__fastdepCXX_FALSE='#'
11266 else
11267 am__fastdepCXX_TRUE='#'
11268 am__fastdepCXX_FALSE=
11272 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11273 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11274 (test "X$CXX" != "Xg++"))) ; then
11275 ac_ext=cpp
11276 ac_cpp='$CXXCPP $CPPFLAGS'
11277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11281 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11282 if test -z "$CXXCPP"; then
11283 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 # Double quotes because CXXCPP needs to be expanded
11287 for CXXCPP in "$CXX -E" "/lib/cpp"
11289 ac_preproc_ok=false
11290 for ac_cxx_preproc_warn_flag in '' yes
11292 # Use a header file that comes with gcc, so configuring glibc
11293 # with a fresh cross-compiler works.
11294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 # <limits.h> exists even on freestanding compilers.
11296 # On the NeXT, cc -E runs the code through the compiler's parser,
11297 # not just through cpp. "Syntax error" is here to catch this case.
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11305 Syntax error
11306 _ACEOF
11307 if ac_fn_cxx_try_cpp "$LINENO"; then :
11309 else
11310 # Broken: fails on valid input.
11311 continue
11313 rm -f conftest.err conftest.$ac_ext
11315 # OK, works on sane cases. Now check whether nonexistent headers
11316 # can be detected and how.
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319 #include <ac_nonexistent.h>
11320 _ACEOF
11321 if ac_fn_cxx_try_cpp "$LINENO"; then :
11322 # Broken: success on invalid input.
11323 continue
11324 else
11325 # Passes both tests.
11326 ac_preproc_ok=:
11327 break
11329 rm -f conftest.err conftest.$ac_ext
11331 done
11332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11333 rm -f conftest.err conftest.$ac_ext
11334 if $ac_preproc_ok; then :
11335 break
11338 done
11339 ac_cv_prog_CXXCPP=$CXXCPP
11342 CXXCPP=$ac_cv_prog_CXXCPP
11343 else
11344 ac_cv_prog_CXXCPP=$CXXCPP
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11347 $as_echo "$CXXCPP" >&6; }
11348 ac_preproc_ok=false
11349 for ac_cxx_preproc_warn_flag in '' yes
11351 # Use a header file that comes with gcc, so configuring glibc
11352 # with a fresh cross-compiler works.
11353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11354 # <limits.h> exists even on freestanding compilers.
11355 # On the NeXT, cc -E runs the code through the compiler's parser,
11356 # not just through cpp. "Syntax error" is here to catch this case.
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11359 #ifdef __STDC__
11360 # include <limits.h>
11361 #else
11362 # include <assert.h>
11363 #endif
11364 Syntax error
11365 _ACEOF
11366 if ac_fn_cxx_try_cpp "$LINENO"; then :
11368 else
11369 # Broken: fails on valid input.
11370 continue
11372 rm -f conftest.err conftest.$ac_ext
11374 # OK, works on sane cases. Now check whether nonexistent headers
11375 # can be detected and how.
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378 #include <ac_nonexistent.h>
11379 _ACEOF
11380 if ac_fn_cxx_try_cpp "$LINENO"; then :
11381 # Broken: success on invalid input.
11382 continue
11383 else
11384 # Passes both tests.
11385 ac_preproc_ok=:
11386 break
11388 rm -f conftest.err conftest.$ac_ext
11390 done
11391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11392 rm -f conftest.err conftest.$ac_ext
11393 if $ac_preproc_ok; then :
11395 else
11396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11398 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11399 See \`config.log' for more details." "$LINENO" 5; }
11402 ac_ext=c
11403 ac_cpp='$CPP $CPPFLAGS'
11404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11408 else
11409 _lt_caught_CXX_error=yes
11412 ac_ext=cpp
11413 ac_cpp='$CXXCPP $CPPFLAGS'
11414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11418 archive_cmds_need_lc_CXX=no
11419 allow_undefined_flag_CXX=
11420 always_export_symbols_CXX=no
11421 archive_expsym_cmds_CXX=
11422 compiler_needs_object_CXX=no
11423 export_dynamic_flag_spec_CXX=
11424 hardcode_direct_CXX=no
11425 hardcode_direct_absolute_CXX=no
11426 hardcode_libdir_flag_spec_CXX=
11427 hardcode_libdir_flag_spec_ld_CXX=
11428 hardcode_libdir_separator_CXX=
11429 hardcode_minus_L_CXX=no
11430 hardcode_shlibpath_var_CXX=unsupported
11431 hardcode_automatic_CXX=no
11432 inherit_rpath_CXX=no
11433 module_cmds_CXX=
11434 module_expsym_cmds_CXX=
11435 link_all_deplibs_CXX=unknown
11436 old_archive_cmds_CXX=$old_archive_cmds
11437 reload_flag_CXX=$reload_flag
11438 reload_cmds_CXX=$reload_cmds
11439 no_undefined_flag_CXX=
11440 whole_archive_flag_spec_CXX=
11441 enable_shared_with_static_runtimes_CXX=no
11443 # Source file extension for C++ test sources.
11444 ac_ext=cpp
11446 # Object file extension for compiled C++ test sources.
11447 objext=o
11448 objext_CXX=$objext
11450 # No sense in running all these tests if we already determined that
11451 # the CXX compiler isn't working. Some variables (like enable_shared)
11452 # are currently assumed to apply to all compilers on this platform,
11453 # and will be corrupted by setting them based on a non-working compiler.
11454 if test "$_lt_caught_CXX_error" != yes; then
11455 # Code to be used in simple compile tests
11456 lt_simple_compile_test_code="int some_variable = 0;"
11458 # Code to be used in simple link tests
11459 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11468 # If no C compiler was specified, use CC.
11469 LTCC=${LTCC-"$CC"}
11471 # If no C compiler flags were specified, use CFLAGS.
11472 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11474 # Allow CC to be a program name with arguments.
11475 compiler=$CC
11478 # save warnings/boilerplate of simple test code
11479 ac_outfile=conftest.$ac_objext
11480 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11481 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11482 _lt_compiler_boilerplate=`cat conftest.err`
11483 $RM conftest*
11485 ac_outfile=conftest.$ac_objext
11486 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11487 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11488 _lt_linker_boilerplate=`cat conftest.err`
11489 $RM -r conftest*
11492 # Allow CC to be a program name with arguments.
11493 lt_save_CC=$CC
11494 lt_save_LD=$LD
11495 lt_save_GCC=$GCC
11496 GCC=$GXX
11497 lt_save_with_gnu_ld=$with_gnu_ld
11498 lt_save_path_LD=$lt_cv_path_LD
11499 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11500 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11501 else
11502 $as_unset lt_cv_prog_gnu_ld
11504 if test -n "${lt_cv_path_LDCXX+set}"; then
11505 lt_cv_path_LD=$lt_cv_path_LDCXX
11506 else
11507 $as_unset lt_cv_path_LD
11509 test -z "${LDCXX+set}" || LD=$LDCXX
11510 CC=${CXX-"c++"}
11511 compiler=$CC
11512 compiler_CXX=$CC
11513 for cc_temp in $compiler""; do
11514 case $cc_temp in
11515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11517 \-*) ;;
11518 *) break;;
11519 esac
11520 done
11521 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11524 if test -n "$compiler"; then
11525 # We don't want -fno-exception when compiling C++ code, so set the
11526 # no_builtin_flag separately
11527 if test "$GXX" = yes; then
11528 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11529 else
11530 lt_prog_compiler_no_builtin_flag_CXX=
11533 if test "$GXX" = yes; then
11534 # Set up default GNU C++ configuration
11538 # Check whether --with-gnu-ld was given.
11539 if test "${with_gnu_ld+set}" = set; then :
11540 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11541 else
11542 with_gnu_ld=no
11545 ac_prog=ld
11546 if test "$GCC" = yes; then
11547 # Check if gcc -print-prog-name=ld gives a path.
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11549 $as_echo_n "checking for ld used by $CC... " >&6; }
11550 case $host in
11551 *-*-mingw*)
11552 # gcc leaves a trailing carriage return which upsets mingw
11553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11556 esac
11557 case $ac_prog in
11558 # Accept absolute paths.
11559 [\\/]* | ?:[\\/]*)
11560 re_direlt='/[^/][^/]*/\.\./'
11561 # Canonicalize the pathname of ld
11562 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11563 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11564 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11565 done
11566 test -z "$LD" && LD="$ac_prog"
11569 # If it fails, then pretend we aren't using GCC.
11570 ac_prog=ld
11573 # If it is relative, then search for the first ld in PATH.
11574 with_gnu_ld=unknown
11576 esac
11577 elif test "$with_gnu_ld" = yes; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11579 $as_echo_n "checking for GNU ld... " >&6; }
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11582 $as_echo_n "checking for non-GNU ld... " >&6; }
11584 if test "${lt_cv_path_LD+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
11586 else
11587 if test -z "$LD"; then
11588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11589 for ac_dir in $PATH; do
11590 IFS="$lt_save_ifs"
11591 test -z "$ac_dir" && ac_dir=.
11592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11593 lt_cv_path_LD="$ac_dir/$ac_prog"
11594 # Check to see if the program is GNU ld. I'd rather use --version,
11595 # but apparently some variants of GNU ld only accept -v.
11596 # Break only if it was the GNU/non-GNU ld that we prefer.
11597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11598 *GNU* | *'with BFD'*)
11599 test "$with_gnu_ld" != no && break
11602 test "$with_gnu_ld" != yes && break
11604 esac
11606 done
11607 IFS="$lt_save_ifs"
11608 else
11609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11613 LD="$lt_cv_path_LD"
11614 if test -n "$LD"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11616 $as_echo "$LD" >&6; }
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11621 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11624 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11628 case `$LD -v 2>&1 </dev/null` in
11629 *GNU* | *'with BFD'*)
11630 lt_cv_prog_gnu_ld=yes
11633 lt_cv_prog_gnu_ld=no
11635 esac
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11639 with_gnu_ld=$lt_cv_prog_gnu_ld
11647 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11648 # archiving commands below assume that GNU ld is being used.
11649 if test "$with_gnu_ld" = yes; then
11650 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11651 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11653 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11656 # If archive_cmds runs LD, not CC, wlarc should be empty
11657 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11658 # investigate it a little bit more. (MM)
11659 wlarc='${wl}'
11661 # ancient GNU ld didn't support --whole-archive et. al.
11662 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11663 $GREP 'no-whole-archive' > /dev/null; then
11664 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11665 else
11666 whole_archive_flag_spec_CXX=
11668 else
11669 with_gnu_ld=no
11670 wlarc=
11672 # A generic and very simple default shared library creation
11673 # command for GNU C++ for the case where it uses the native
11674 # linker, instead of GNU ld. If possible, this setting should
11675 # overridden to take advantage of the native linker features on
11676 # the platform it is being used on.
11677 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11680 # Commands to make compiler produce verbose output that lists
11681 # what "hidden" libraries, object files and flags are used when
11682 # linking a shared library.
11683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11685 else
11686 GXX=no
11687 with_gnu_ld=no
11688 wlarc=
11691 # PORTME: fill in a description of your system's C++ link characteristics
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11693 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11694 ld_shlibs_CXX=yes
11695 case $host_os in
11696 aix3*)
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11700 aix[4-9]*)
11701 if test "$host_cpu" = ia64; then
11702 # On IA64, the linker does run time linking by default, so we don't
11703 # have to do anything special.
11704 aix_use_runtimelinking=no
11705 exp_sym_flag='-Bexport'
11706 no_entry_flag=""
11707 else
11708 aix_use_runtimelinking=no
11710 # Test if we are trying to use run time linking or normal
11711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11712 # need to do runtime linking.
11713 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11714 for ld_flag in $LDFLAGS; do
11715 case $ld_flag in
11716 *-brtl*)
11717 aix_use_runtimelinking=yes
11718 break
11720 esac
11721 done
11723 esac
11725 exp_sym_flag='-bexport'
11726 no_entry_flag='-bnoentry'
11729 # When large executables or shared objects are built, AIX ld can
11730 # have problems creating the table of contents. If linking a library
11731 # or program results in "error TOC overflow" add -mminimal-toc to
11732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11735 archive_cmds_CXX=''
11736 hardcode_direct_CXX=yes
11737 hardcode_direct_absolute_CXX=yes
11738 hardcode_libdir_separator_CXX=':'
11739 link_all_deplibs_CXX=yes
11740 file_list_spec_CXX='${wl}-f,'
11742 if test "$GXX" = yes; then
11743 case $host_os in aix4.[012]|aix4.[012].*)
11744 # We only want to do this on AIX 4.2 and lower, the check
11745 # below for broken collect2 doesn't work under 4.3+
11746 collect2name=`${CC} -print-prog-name=collect2`
11747 if test -f "$collect2name" &&
11748 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11749 then
11750 # We have reworked collect2
11752 else
11753 # We have old collect2
11754 hardcode_direct_CXX=unsupported
11755 # It fails to find uninstalled libraries when the uninstalled
11756 # path is not listed in the libpath. Setting hardcode_minus_L
11757 # to unsupported forces relinking
11758 hardcode_minus_L_CXX=yes
11759 hardcode_libdir_flag_spec_CXX='-L$libdir'
11760 hardcode_libdir_separator_CXX=
11762 esac
11763 shared_flag='-shared'
11764 if test "$aix_use_runtimelinking" = yes; then
11765 shared_flag="$shared_flag "'${wl}-G'
11767 else
11768 # not using gcc
11769 if test "$host_cpu" = ia64; then
11770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11771 # chokes on -Wl,-G. The following line is correct:
11772 shared_flag='-G'
11773 else
11774 if test "$aix_use_runtimelinking" = yes; then
11775 shared_flag='${wl}-G'
11776 else
11777 shared_flag='${wl}-bM:SRE'
11782 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11783 # It seems that -bexpall does not export symbols beginning with
11784 # underscore (_), so it is better to generate a list of symbols to
11785 # export.
11786 always_export_symbols_CXX=yes
11787 if test "$aix_use_runtimelinking" = yes; then
11788 # Warning - without using the other runtime loading flags (-brtl),
11789 # -berok will link without error, but may produce a broken library.
11790 allow_undefined_flag_CXX='-berok'
11791 # Determine the default libpath from the value encoded in an empty
11792 # executable.
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11797 main ()
11801 return 0;
11803 _ACEOF
11804 if ac_fn_cxx_try_link "$LINENO"; then :
11806 lt_aix_libpath_sed='
11807 /Import File Strings/,/^$/ {
11808 /^0/ {
11809 s/^0 *\(.*\)$/\1/
11813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11814 # Check for a 64-bit object if we didn't find anything.
11815 if test -z "$aix_libpath"; then
11816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11819 rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11823 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11825 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"
11826 else
11827 if test "$host_cpu" = ia64; then
11828 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11829 allow_undefined_flag_CXX="-z nodefs"
11830 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"
11831 else
11832 # Determine the default libpath from the value encoded in an
11833 # empty executable.
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11838 main ()
11842 return 0;
11844 _ACEOF
11845 if ac_fn_cxx_try_link "$LINENO"; then :
11847 lt_aix_libpath_sed='
11848 /Import File Strings/,/^$/ {
11849 /^0/ {
11850 s/^0 *\(.*\)$/\1/
11854 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11855 # Check for a 64-bit object if we didn't find anything.
11856 if test -z "$aix_libpath"; then
11857 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11860 rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11864 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11865 # Warning - without using the other run time loading flags,
11866 # -berok will link without error, but may produce a broken library.
11867 no_undefined_flag_CXX=' ${wl}-bernotok'
11868 allow_undefined_flag_CXX=' ${wl}-berok'
11869 if test "$with_gnu_ld" = yes; then
11870 # We only use this code for GNU lds that support --whole-archive.
11871 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11872 else
11873 # Exported symbols can be pulled into shared objects from archives
11874 whole_archive_flag_spec_CXX='$convenience'
11876 archive_cmds_need_lc_CXX=yes
11877 # This is similar to how AIX traditionally builds its shared
11878 # libraries.
11879 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'
11884 beos*)
11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886 allow_undefined_flag_CXX=unsupported
11887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11888 # support --undefined. This deserves some investigation. FIXME
11889 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11890 else
11891 ld_shlibs_CXX=no
11895 chorus*)
11896 case $cc_basename in
11898 # FIXME: insert proper C++ library support
11899 ld_shlibs_CXX=no
11901 esac
11904 cygwin* | mingw* | pw32* | cegcc*)
11905 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11906 # as there is no search path for DLLs.
11907 hardcode_libdir_flag_spec_CXX='-L$libdir'
11908 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11909 allow_undefined_flag_CXX=unsupported
11910 always_export_symbols_CXX=no
11911 enable_shared_with_static_runtimes_CXX=yes
11913 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11914 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'
11915 # If the export-symbols file already is a .def file (1st line
11916 # is EXPORTS), use it as is; otherwise, prepend...
11917 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11918 cp $export_symbols $output_objdir/$soname.def;
11919 else
11920 echo EXPORTS > $output_objdir/$soname.def;
11921 cat $export_symbols >> $output_objdir/$soname.def;
11923 $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'
11924 else
11925 ld_shlibs_CXX=no
11928 darwin* | rhapsody*)
11931 archive_cmds_need_lc_CXX=no
11932 hardcode_direct_CXX=no
11933 hardcode_automatic_CXX=yes
11934 hardcode_shlibpath_var_CXX=unsupported
11935 if test "$lt_cv_ld_force_load" = "yes"; then
11936 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\"`'
11937 else
11938 whole_archive_flag_spec_CXX=''
11940 link_all_deplibs_CXX=yes
11941 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11942 case $cc_basename in
11943 ifort*) _lt_dar_can_shared=yes ;;
11944 *) _lt_dar_can_shared=$GCC ;;
11945 esac
11946 if test "$_lt_dar_can_shared" = "yes"; then
11947 output_verbose_link_cmd=func_echo_all
11948 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}"
11949 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11950 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}"
11951 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}"
11952 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11953 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}"
11954 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}"
11957 else
11958 ld_shlibs_CXX=no
11963 dgux*)
11964 case $cc_basename in
11965 ec++*)
11966 # FIXME: insert proper C++ library support
11967 ld_shlibs_CXX=no
11969 ghcx*)
11970 # Green Hills C++ Compiler
11971 # FIXME: insert proper C++ library support
11972 ld_shlibs_CXX=no
11975 # FIXME: insert proper C++ library support
11976 ld_shlibs_CXX=no
11978 esac
11981 freebsd2.*)
11982 # C++ shared libraries reported to be fairly broken before
11983 # switch to ELF
11984 ld_shlibs_CXX=no
11987 freebsd-elf*)
11988 archive_cmds_need_lc_CXX=no
11991 freebsd* | dragonfly*)
11992 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11993 # conventions
11994 ld_shlibs_CXX=yes
11997 gnu*)
12000 haiku*)
12001 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12002 link_all_deplibs_CXX=yes
12005 hpux9*)
12006 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12007 hardcode_libdir_separator_CXX=:
12008 export_dynamic_flag_spec_CXX='${wl}-E'
12009 hardcode_direct_CXX=yes
12010 hardcode_minus_L_CXX=yes # Not in the search PATH,
12011 # but as the default
12012 # location of the library.
12014 case $cc_basename in
12015 CC*)
12016 # FIXME: insert proper C++ library support
12017 ld_shlibs_CXX=no
12019 aCC*)
12020 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'
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12025 # There doesn't appear to be a way to prevent this compiler from
12026 # explicitly linking system object files so we need to strip them
12027 # from the output so that they don't get included in the library
12028 # dependencies.
12029 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"'
12032 if test "$GXX" = yes; then
12033 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'
12034 else
12035 # FIXME: insert proper C++ library support
12036 ld_shlibs_CXX=no
12039 esac
12042 hpux10*|hpux11*)
12043 if test $with_gnu_ld = no; then
12044 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12045 hardcode_libdir_separator_CXX=:
12047 case $host_cpu in
12048 hppa*64*|ia64*)
12051 export_dynamic_flag_spec_CXX='${wl}-E'
12053 esac
12055 case $host_cpu in
12056 hppa*64*|ia64*)
12057 hardcode_direct_CXX=no
12058 hardcode_shlibpath_var_CXX=no
12061 hardcode_direct_CXX=yes
12062 hardcode_direct_absolute_CXX=yes
12063 hardcode_minus_L_CXX=yes # Not in the search PATH,
12064 # but as the default
12065 # location of the library.
12067 esac
12069 case $cc_basename in
12070 CC*)
12071 # FIXME: insert proper C++ library support
12072 ld_shlibs_CXX=no
12074 aCC*)
12075 case $host_cpu in
12076 hppa*64*)
12077 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079 ia64*)
12080 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12083 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12085 esac
12086 # Commands to make compiler produce verbose output that lists
12087 # what "hidden" libraries, object files and flags are used when
12088 # linking a shared library.
12090 # There doesn't appear to be a way to prevent this compiler from
12091 # explicitly linking system object files so we need to strip them
12092 # from the output so that they don't get included in the library
12093 # dependencies.
12094 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"'
12097 if test "$GXX" = yes; then
12098 if test $with_gnu_ld = no; then
12099 case $host_cpu in
12100 hppa*64*)
12101 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103 ia64*)
12104 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12107 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'
12109 esac
12111 else
12112 # FIXME: insert proper C++ library support
12113 ld_shlibs_CXX=no
12116 esac
12119 interix[3-9]*)
12120 hardcode_direct_CXX=no
12121 hardcode_shlibpath_var_CXX=no
12122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12123 export_dynamic_flag_spec_CXX='${wl}-E'
12124 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12125 # Instead, shared libraries are loaded at an image base (0x10000000 by
12126 # default) and relocated if they conflict, which is a slow very memory
12127 # consuming and fragmenting process. To avoid this, we pick a random,
12128 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12129 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12130 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'
12131 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'
12133 irix5* | irix6*)
12134 case $cc_basename in
12135 CC*)
12136 # SGI C++
12137 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'
12139 # Archives containing C++ object files must be created using
12140 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12141 # necessary to make sure instantiated templates are included
12142 # in the archive.
12143 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12146 if test "$GXX" = yes; then
12147 if test "$with_gnu_ld" = no; then
12148 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'
12149 else
12150 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'
12153 link_all_deplibs_CXX=yes
12155 esac
12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12157 hardcode_libdir_separator_CXX=:
12158 inherit_rpath_CXX=yes
12161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12162 case $cc_basename in
12163 KCC*)
12164 # Kuck and Associates, Inc. (KAI) C++ Compiler
12166 # KCC will only create a shared library if the output file
12167 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12168 # to its proper name (with version) after linking.
12169 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'
12170 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'
12171 # Commands to make compiler produce verbose output that lists
12172 # what "hidden" libraries, object files and flags are used when
12173 # linking a shared library.
12175 # There doesn't appear to be a way to prevent this compiler from
12176 # explicitly linking system object files so we need to strip them
12177 # from the output so that they don't get included in the library
12178 # dependencies.
12179 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"'
12181 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12184 # Archives containing C++ object files must be created using
12185 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12186 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12188 icpc* | ecpc* )
12189 # Intel C++
12190 with_gnu_ld=yes
12191 # version 8.0 and above of icpc choke on multiply defined symbols
12192 # if we add $predep_objects and $postdep_objects, however 7.1 and
12193 # earlier do not add the objects themselves.
12194 case `$CC -V 2>&1` in
12195 *"Version 7."*)
12196 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12197 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'
12199 *) # Version 8.0 or newer
12200 tmp_idyn=
12201 case $host_cpu in
12202 ia64*) tmp_idyn=' -i_dynamic';;
12203 esac
12204 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12205 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'
12207 esac
12208 archive_cmds_need_lc_CXX=no
12209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12211 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12213 pgCC* | pgcpp*)
12214 # Portland Group C++ compiler
12215 case `$CC -V` in
12216 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12217 prelink_cmds_CXX='tpldir=Template.dir~
12218 rm -rf $tpldir~
12219 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12220 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12221 old_archive_cmds_CXX='tpldir=Template.dir~
12222 rm -rf $tpldir~
12223 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12224 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12225 $RANLIB $oldlib'
12226 archive_cmds_CXX='tpldir=Template.dir~
12227 rm -rf $tpldir~
12228 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12229 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12230 archive_expsym_cmds_CXX='tpldir=Template.dir~
12231 rm -rf $tpldir~
12232 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12233 $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'
12235 *) # Version 6 and above use weak symbols
12236 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12237 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'
12239 esac
12241 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12243 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'
12245 cxx*)
12246 # Compaq C++
12247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248 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'
12250 runpath_var=LD_RUN_PATH
12251 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12252 hardcode_libdir_separator_CXX=:
12254 # Commands to make compiler produce verbose output that lists
12255 # what "hidden" libraries, object files and flags are used when
12256 # linking a shared library.
12258 # There doesn't appear to be a way to prevent this compiler from
12259 # explicitly linking system object files so we need to strip them
12260 # from the output so that they don't get included in the library
12261 # dependencies.
12262 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'
12264 xl* | mpixl* | bgxl*)
12265 # IBM XL 8.0 on PPC, with GNU ld
12266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12268 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12269 if test "x$supports_anon_versioning" = xyes; then
12270 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12272 echo "local: *; };" >> $output_objdir/$libname.ver~
12273 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12277 case `$CC -V 2>&1 | sed 5q` in
12278 *Sun\ C*)
12279 # Sun C++ 5.9
12280 no_undefined_flag_CXX=' -zdefs'
12281 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12282 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'
12283 hardcode_libdir_flag_spec_CXX='-R$libdir'
12284 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'
12285 compiler_needs_object_CXX=yes
12287 # Not sure whether something based on
12288 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12289 # would be better.
12290 output_verbose_link_cmd='func_echo_all'
12292 # Archives containing C++ object files must be created using
12293 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12294 # necessary to make sure instantiated templates are included
12295 # in the archive.
12296 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12298 esac
12300 esac
12303 lynxos*)
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12308 m88k*)
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12313 mvs*)
12314 case $cc_basename in
12315 cxx*)
12316 # FIXME: insert proper C++ library support
12317 ld_shlibs_CXX=no
12320 # FIXME: insert proper C++ library support
12321 ld_shlibs_CXX=no
12323 esac
12326 netbsd*)
12327 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12328 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12329 wlarc=
12330 hardcode_libdir_flag_spec_CXX='-R$libdir'
12331 hardcode_direct_CXX=yes
12332 hardcode_shlibpath_var_CXX=no
12334 # Workaround some broken pre-1.5 toolchains
12335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12338 *nto* | *qnx*)
12339 ld_shlibs_CXX=yes
12342 openbsd2*)
12343 # C++ shared libraries are fairly broken
12344 ld_shlibs_CXX=no
12347 openbsd*)
12348 if test -f /usr/libexec/ld.so; then
12349 hardcode_direct_CXX=yes
12350 hardcode_shlibpath_var_CXX=no
12351 hardcode_direct_absolute_CXX=yes
12352 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12355 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12356 export_dynamic_flag_spec_CXX='${wl}-E'
12357 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12359 output_verbose_link_cmd=func_echo_all
12360 else
12361 ld_shlibs_CXX=no
12365 osf3* | osf4* | osf5*)
12366 case $cc_basename in
12367 KCC*)
12368 # Kuck and Associates, Inc. (KAI) C++ Compiler
12370 # KCC will only create a shared library if the output file
12371 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12372 # to its proper name (with version) after linking.
12373 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'
12375 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12376 hardcode_libdir_separator_CXX=:
12378 # Archives containing C++ object files must be created using
12379 # the KAI C++ compiler.
12380 case $host in
12381 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12382 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12383 esac
12385 RCC*)
12386 # Rational C++ 2.4.1
12387 # FIXME: insert proper C++ library support
12388 ld_shlibs_CXX=no
12390 cxx*)
12391 case $host in
12392 osf3*)
12393 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12394 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'
12395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12398 allow_undefined_flag_CXX=' -expect_unresolved \*'
12399 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'
12400 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12401 echo "-hidden">> $lib.exp~
12402 $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~
12403 $RM $lib.exp'
12404 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12406 esac
12408 hardcode_libdir_separator_CXX=:
12410 # Commands to make compiler produce verbose output that lists
12411 # what "hidden" libraries, object files and flags are used when
12412 # linking a shared library.
12414 # There doesn't appear to be a way to prevent this compiler from
12415 # explicitly linking system object files so we need to strip them
12416 # from the output so that they don't get included in the library
12417 # dependencies.
12418 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"'
12421 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12423 case $host in
12424 osf3*)
12425 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'
12428 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'
12430 esac
12432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12433 hardcode_libdir_separator_CXX=:
12435 # Commands to make compiler produce verbose output that lists
12436 # what "hidden" libraries, object files and flags are used when
12437 # linking a shared library.
12438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12440 else
12441 # FIXME: insert proper C++ library support
12442 ld_shlibs_CXX=no
12445 esac
12448 psos*)
12449 # FIXME: insert proper C++ library support
12450 ld_shlibs_CXX=no
12453 sunos4*)
12454 case $cc_basename in
12455 CC*)
12456 # Sun C++ 4.x
12457 # FIXME: insert proper C++ library support
12458 ld_shlibs_CXX=no
12460 lcc*)
12461 # Lucid
12462 # FIXME: insert proper C++ library support
12463 ld_shlibs_CXX=no
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12469 esac
12472 solaris*)
12473 case $cc_basename in
12474 CC*)
12475 # Sun C++ 4.2, 5.x and Centerline C++
12476 archive_cmds_need_lc_CXX=yes
12477 no_undefined_flag_CXX=' -zdefs'
12478 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12479 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12480 $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'
12482 hardcode_libdir_flag_spec_CXX='-R$libdir'
12483 hardcode_shlibpath_var_CXX=no
12484 case $host_os in
12485 solaris2.[0-5] | solaris2.[0-5].*) ;;
12487 # The compiler driver will combine and reorder linker options,
12488 # but understands `-z linker_flag'.
12489 # Supported since Solaris 2.6 (maybe 2.5.1?)
12490 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12492 esac
12493 link_all_deplibs_CXX=yes
12495 output_verbose_link_cmd='func_echo_all'
12497 # Archives containing C++ object files must be created using
12498 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12499 # necessary to make sure instantiated templates are included
12500 # in the archive.
12501 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12503 gcx*)
12504 # Green Hills C++ Compiler
12505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12507 # The C++ compiler must be used to create the archive.
12508 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12511 # GNU C++ compiler with Solaris linker
12512 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12513 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12514 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12515 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12516 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12517 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12519 # Commands to make compiler produce verbose output that lists
12520 # what "hidden" libraries, object files and flags are used when
12521 # linking a shared library.
12522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12523 else
12524 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12525 # platform.
12526 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12527 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12528 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12530 # Commands to make compiler produce verbose output that lists
12531 # what "hidden" libraries, object files and flags are used when
12532 # linking a shared library.
12533 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12536 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12537 case $host_os in
12538 solaris2.[0-5] | solaris2.[0-5].*) ;;
12540 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12542 esac
12545 esac
12548 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12549 no_undefined_flag_CXX='${wl}-z,text'
12550 archive_cmds_need_lc_CXX=no
12551 hardcode_shlibpath_var_CXX=no
12552 runpath_var='LD_RUN_PATH'
12554 case $cc_basename in
12555 CC*)
12556 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12557 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12560 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12561 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12563 esac
12566 sysv5* | sco3.2v5* | sco5v6*)
12567 # Note: We can NOT use -z defs as we might desire, because we do not
12568 # link with -lc, and that would cause any symbols used from libc to
12569 # always be unresolved, which means just about no library would
12570 # ever link correctly. If we're not using GNU ld we use -z text
12571 # though, which does catch some bad symbols but isn't as heavy-handed
12572 # as -z defs.
12573 no_undefined_flag_CXX='${wl}-z,text'
12574 allow_undefined_flag_CXX='${wl}-z,nodefs'
12575 archive_cmds_need_lc_CXX=no
12576 hardcode_shlibpath_var_CXX=no
12577 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12578 hardcode_libdir_separator_CXX=':'
12579 link_all_deplibs_CXX=yes
12580 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12581 runpath_var='LD_RUN_PATH'
12583 case $cc_basename in
12584 CC*)
12585 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12586 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12587 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12588 '"$old_archive_cmds_CXX"
12589 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12590 '"$reload_cmds_CXX"
12593 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12594 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12596 esac
12599 tandem*)
12600 case $cc_basename in
12601 NCC*)
12602 # NonStop-UX NCC 3.20
12603 # FIXME: insert proper C++ library support
12604 ld_shlibs_CXX=no
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12610 esac
12613 vxworks*)
12614 # FIXME: insert proper C++ library support
12615 ld_shlibs_CXX=no
12619 # FIXME: insert proper C++ library support
12620 ld_shlibs_CXX=no
12622 esac
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12625 $as_echo "$ld_shlibs_CXX" >&6; }
12626 test "$ld_shlibs_CXX" = no && can_build_shared=no
12628 GCC_CXX="$GXX"
12629 LD_CXX="$LD"
12631 ## CAVEAT EMPTOR:
12632 ## There is no encapsulation within the following macros, do not change
12633 ## the running order or otherwise move them around unless you know exactly
12634 ## what you are doing...
12635 # Dependencies to place before and after the object being linked:
12636 predep_objects_CXX=
12637 postdep_objects_CXX=
12638 predeps_CXX=
12639 postdeps_CXX=
12640 compiler_lib_search_path_CXX=
12642 cat > conftest.$ac_ext <<_LT_EOF
12643 class Foo
12645 public:
12646 Foo (void) { a = 0; }
12647 private:
12648 int a;
12650 _LT_EOF
12652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12653 (eval $ac_compile) 2>&5
12654 ac_status=$?
12655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12656 test $ac_status = 0; }; then
12657 # Parse the compiler output and extract the necessary
12658 # objects, libraries and library flags.
12660 # Sentinel used to keep track of whether or not we are before
12661 # the conftest object file.
12662 pre_test_object_deps_done=no
12664 for p in `eval "$output_verbose_link_cmd"`; do
12665 case $p in
12667 -L* | -R* | -l*)
12668 # Some compilers place space between "-{L,R}" and the path.
12669 # Remove the space.
12670 if test $p = "-L" ||
12671 test $p = "-R"; then
12672 prev=$p
12673 continue
12674 else
12675 prev=
12678 if test "$pre_test_object_deps_done" = no; then
12679 case $p in
12680 -L* | -R*)
12681 # Internal compiler library paths should come after those
12682 # provided the user. The postdeps already come after the
12683 # user supplied libs so there is no need to process them.
12684 if test -z "$compiler_lib_search_path_CXX"; then
12685 compiler_lib_search_path_CXX="${prev}${p}"
12686 else
12687 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12690 # The "-l" case would never come before the object being
12691 # linked, so don't bother handling this case.
12692 esac
12693 else
12694 if test -z "$postdeps_CXX"; then
12695 postdeps_CXX="${prev}${p}"
12696 else
12697 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12702 *.$objext)
12703 # This assumes that the test object file only shows up
12704 # once in the compiler output.
12705 if test "$p" = "conftest.$objext"; then
12706 pre_test_object_deps_done=yes
12707 continue
12710 if test "$pre_test_object_deps_done" = no; then
12711 if test -z "$predep_objects_CXX"; then
12712 predep_objects_CXX="$p"
12713 else
12714 predep_objects_CXX="$predep_objects_CXX $p"
12716 else
12717 if test -z "$postdep_objects_CXX"; then
12718 postdep_objects_CXX="$p"
12719 else
12720 postdep_objects_CXX="$postdep_objects_CXX $p"
12725 *) ;; # Ignore the rest.
12727 esac
12728 done
12730 # Clean up.
12731 rm -f a.out a.exe
12732 else
12733 echo "libtool.m4: error: problem compiling CXX test program"
12736 $RM -f confest.$objext
12738 # PORTME: override above test on systems where it is broken
12739 case $host_os in
12740 interix[3-9]*)
12741 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12742 # hack all around it, let's just trust "g++" to DTRT.
12743 predep_objects_CXX=
12744 postdep_objects_CXX=
12745 postdeps_CXX=
12748 linux*)
12749 case `$CC -V 2>&1 | sed 5q` in
12750 *Sun\ C*)
12751 # Sun C++ 5.9
12753 # The more standards-conforming stlport4 library is
12754 # incompatible with the Cstd library. Avoid specifying
12755 # it if it's in CXXFLAGS. Ignore libCrun as
12756 # -library=stlport4 depends on it.
12757 case " $CXX $CXXFLAGS " in
12758 *" -library=stlport4 "*)
12759 solaris_use_stlport4=yes
12761 esac
12763 if test "$solaris_use_stlport4" != yes; then
12764 postdeps_CXX='-library=Cstd -library=Crun'
12767 esac
12770 solaris*)
12771 case $cc_basename in
12772 CC*)
12773 # The more standards-conforming stlport4 library is
12774 # incompatible with the Cstd library. Avoid specifying
12775 # it if it's in CXXFLAGS. Ignore libCrun as
12776 # -library=stlport4 depends on it.
12777 case " $CXX $CXXFLAGS " in
12778 *" -library=stlport4 "*)
12779 solaris_use_stlport4=yes
12781 esac
12783 # Adding this requires a known-good setup of shared libraries for
12784 # Sun compiler versions before 5.6, else PIC objects from an old
12785 # archive will be linked into the output, leading to subtle bugs.
12786 if test "$solaris_use_stlport4" != yes; then
12787 postdeps_CXX='-library=Cstd -library=Crun'
12790 esac
12792 esac
12795 case " $postdeps_CXX " in
12796 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12797 esac
12798 compiler_lib_search_dirs_CXX=
12799 if test -n "${compiler_lib_search_path_CXX}"; then
12800 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12833 lt_prog_compiler_wl_CXX=
12834 lt_prog_compiler_pic_CXX=
12835 lt_prog_compiler_static_CXX=
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12838 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12840 # C++ specific cases for pic, static, wl, etc.
12841 if test "$GXX" = yes; then
12842 lt_prog_compiler_wl_CXX='-Wl,'
12843 lt_prog_compiler_static_CXX='-static'
12845 case $host_os in
12846 aix*)
12847 # All AIX code is PIC.
12848 if test "$host_cpu" = ia64; then
12849 # AIX 5 now supports IA64 processor
12850 lt_prog_compiler_static_CXX='-Bstatic'
12852 lt_prog_compiler_pic_CXX='-fPIC'
12855 amigaos*)
12856 case $host_cpu in
12857 powerpc)
12858 # see comment about AmigaOS4 .so support
12859 lt_prog_compiler_pic_CXX='-fPIC'
12861 m68k)
12862 # FIXME: we need at least 68020 code to build shared libraries, but
12863 # adding the `-m68020' flag to GCC prevents building anything better,
12864 # like `-m68040'.
12865 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12867 esac
12870 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12871 # PIC is the default for these OSes.
12873 mingw* | cygwin* | os2* | pw32* | cegcc*)
12874 # This hack is so that the source file can tell whether it is being
12875 # built for inclusion in a dll (and should export symbols for example).
12876 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12877 # (--disable-auto-import) libraries
12878 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12880 darwin* | rhapsody*)
12881 # PIC is the default on this platform
12882 # Common symbols not allowed in MH_DYLIB files
12883 lt_prog_compiler_pic_CXX='-fno-common'
12885 *djgpp*)
12886 # DJGPP does not support shared libraries at all
12887 lt_prog_compiler_pic_CXX=
12889 haiku*)
12890 # PIC is the default for Haiku.
12891 # The "-static" flag exists, but is broken.
12892 lt_prog_compiler_static_CXX=
12894 interix[3-9]*)
12895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12896 # Instead, we relocate shared libraries at runtime.
12898 sysv4*MP*)
12899 if test -d /usr/nec; then
12900 lt_prog_compiler_pic_CXX=-Kconform_pic
12903 hpux*)
12904 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12905 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12906 # sets the default TLS model and affects inlining.
12907 case $host_cpu in
12908 hppa*64*)
12911 lt_prog_compiler_pic_CXX='-fPIC'
12913 esac
12915 *qnx* | *nto*)
12916 # QNX uses GNU C++, but need to define -shared option too, otherwise
12917 # it will coredump.
12918 lt_prog_compiler_pic_CXX='-fPIC -shared'
12921 lt_prog_compiler_pic_CXX='-fPIC'
12923 esac
12924 else
12925 case $host_os in
12926 aix[4-9]*)
12927 # All AIX code is PIC.
12928 if test "$host_cpu" = ia64; then
12929 # AIX 5 now supports IA64 processor
12930 lt_prog_compiler_static_CXX='-Bstatic'
12931 else
12932 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12935 chorus*)
12936 case $cc_basename in
12937 cxch68*)
12938 # Green Hills C++ Compiler
12939 # _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"
12941 esac
12943 dgux*)
12944 case $cc_basename in
12945 ec++*)
12946 lt_prog_compiler_pic_CXX='-KPIC'
12948 ghcx*)
12949 # Green Hills C++ Compiler
12950 lt_prog_compiler_pic_CXX='-pic'
12954 esac
12956 freebsd* | dragonfly*)
12957 # FreeBSD uses GNU C++
12959 hpux9* | hpux10* | hpux11*)
12960 case $cc_basename in
12961 CC*)
12962 lt_prog_compiler_wl_CXX='-Wl,'
12963 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12964 if test "$host_cpu" != ia64; then
12965 lt_prog_compiler_pic_CXX='+Z'
12968 aCC*)
12969 lt_prog_compiler_wl_CXX='-Wl,'
12970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12971 case $host_cpu in
12972 hppa*64*|ia64*)
12973 # +Z the default
12976 lt_prog_compiler_pic_CXX='+Z'
12978 esac
12982 esac
12984 interix*)
12985 # This is c89, which is MS Visual C++ (no shared libs)
12986 # Anyone wants to do a port?
12988 irix5* | irix6* | nonstopux*)
12989 case $cc_basename in
12990 CC*)
12991 lt_prog_compiler_wl_CXX='-Wl,'
12992 lt_prog_compiler_static_CXX='-non_shared'
12993 # CC pic flag -KPIC is the default.
12997 esac
12999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13000 case $cc_basename in
13001 KCC*)
13002 # KAI C++ Compiler
13003 lt_prog_compiler_wl_CXX='--backend -Wl,'
13004 lt_prog_compiler_pic_CXX='-fPIC'
13006 ecpc* )
13007 # old Intel C++ for x86_64 which still supported -KPIC.
13008 lt_prog_compiler_wl_CXX='-Wl,'
13009 lt_prog_compiler_pic_CXX='-KPIC'
13010 lt_prog_compiler_static_CXX='-static'
13012 icpc* )
13013 # Intel C++, used to be incompatible with GCC.
13014 # ICC 10 doesn't accept -KPIC any more.
13015 lt_prog_compiler_wl_CXX='-Wl,'
13016 lt_prog_compiler_pic_CXX='-fPIC'
13017 lt_prog_compiler_static_CXX='-static'
13019 pgCC* | pgcpp*)
13020 # Portland Group C++ compiler
13021 lt_prog_compiler_wl_CXX='-Wl,'
13022 lt_prog_compiler_pic_CXX='-fpic'
13023 lt_prog_compiler_static_CXX='-Bstatic'
13025 cxx*)
13026 # Compaq C++
13027 # Make sure the PIC flag is empty. It appears that all Alpha
13028 # Linux and Compaq Tru64 Unix objects are PIC.
13029 lt_prog_compiler_pic_CXX=
13030 lt_prog_compiler_static_CXX='-non_shared'
13032 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13033 # IBM XL 8.0, 9.0 on PPC and BlueGene
13034 lt_prog_compiler_wl_CXX='-Wl,'
13035 lt_prog_compiler_pic_CXX='-qpic'
13036 lt_prog_compiler_static_CXX='-qstaticlink'
13039 case `$CC -V 2>&1 | sed 5q` in
13040 *Sun\ C*)
13041 # Sun C++ 5.9
13042 lt_prog_compiler_pic_CXX='-KPIC'
13043 lt_prog_compiler_static_CXX='-Bstatic'
13044 lt_prog_compiler_wl_CXX='-Qoption ld '
13046 esac
13048 esac
13050 lynxos*)
13052 m88k*)
13054 mvs*)
13055 case $cc_basename in
13056 cxx*)
13057 lt_prog_compiler_pic_CXX='-W c,exportall'
13061 esac
13063 netbsd*)
13065 *qnx* | *nto*)
13066 # QNX uses GNU C++, but need to define -shared option too, otherwise
13067 # it will coredump.
13068 lt_prog_compiler_pic_CXX='-fPIC -shared'
13070 osf3* | osf4* | osf5*)
13071 case $cc_basename in
13072 KCC*)
13073 lt_prog_compiler_wl_CXX='--backend -Wl,'
13075 RCC*)
13076 # Rational C++ 2.4.1
13077 lt_prog_compiler_pic_CXX='-pic'
13079 cxx*)
13080 # Digital/Compaq C++
13081 lt_prog_compiler_wl_CXX='-Wl,'
13082 # Make sure the PIC flag is empty. It appears that all Alpha
13083 # Linux and Compaq Tru64 Unix objects are PIC.
13084 lt_prog_compiler_pic_CXX=
13085 lt_prog_compiler_static_CXX='-non_shared'
13089 esac
13091 psos*)
13093 solaris*)
13094 case $cc_basename in
13095 CC*)
13096 # Sun C++ 4.2, 5.x and Centerline C++
13097 lt_prog_compiler_pic_CXX='-KPIC'
13098 lt_prog_compiler_static_CXX='-Bstatic'
13099 lt_prog_compiler_wl_CXX='-Qoption ld '
13101 gcx*)
13102 # Green Hills C++ Compiler
13103 lt_prog_compiler_pic_CXX='-PIC'
13107 esac
13109 sunos4*)
13110 case $cc_basename in
13111 CC*)
13112 # Sun C++ 4.x
13113 lt_prog_compiler_pic_CXX='-pic'
13114 lt_prog_compiler_static_CXX='-Bstatic'
13116 lcc*)
13117 # Lucid
13118 lt_prog_compiler_pic_CXX='-pic'
13122 esac
13124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13125 case $cc_basename in
13126 CC*)
13127 lt_prog_compiler_wl_CXX='-Wl,'
13128 lt_prog_compiler_pic_CXX='-KPIC'
13129 lt_prog_compiler_static_CXX='-Bstatic'
13131 esac
13133 tandem*)
13134 case $cc_basename in
13135 NCC*)
13136 # NonStop-UX NCC 3.20
13137 lt_prog_compiler_pic_CXX='-KPIC'
13141 esac
13143 vxworks*)
13146 lt_prog_compiler_can_build_shared_CXX=no
13148 esac
13151 case $host_os in
13152 # For platforms which do not support PIC, -DPIC is meaningless:
13153 *djgpp*)
13154 lt_prog_compiler_pic_CXX=
13157 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13159 esac
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13161 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13166 # Check to make sure the PIC flag actually works.
13168 if test -n "$lt_prog_compiler_pic_CXX"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13170 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13171 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13172 $as_echo_n "(cached) " >&6
13173 else
13174 lt_cv_prog_compiler_pic_works_CXX=no
13175 ac_outfile=conftest.$ac_objext
13176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13177 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13178 # Insert the option either (1) after the last *FLAGS variable, or
13179 # (2) before a word containing "conftest.", or (3) at the end.
13180 # Note that $ac_compile itself does not contain backslashes and begins
13181 # with a dollar sign (not a hyphen), so the echo should work correctly.
13182 # The option is referenced via a variable to avoid confusing sed.
13183 lt_compile=`echo "$ac_compile" | $SED \
13184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13186 -e 's:$: $lt_compiler_flag:'`
13187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13188 (eval "$lt_compile" 2>conftest.err)
13189 ac_status=$?
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 if (exit $ac_status) && test -s "$ac_outfile"; then
13193 # The compiler can only warn and ignore the option if not recognized
13194 # So say no if there are warnings other than the usual output.
13195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13198 lt_cv_prog_compiler_pic_works_CXX=yes
13201 $RM conftest*
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13205 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13207 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13208 case $lt_prog_compiler_pic_CXX in
13209 "" | " "*) ;;
13210 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13211 esac
13212 else
13213 lt_prog_compiler_pic_CXX=
13214 lt_prog_compiler_can_build_shared_CXX=no
13222 # Check to make sure the static flag actually works.
13224 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13226 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13227 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 lt_cv_prog_compiler_static_works_CXX=no
13231 save_LDFLAGS="$LDFLAGS"
13232 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13233 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13235 # The linker can only warn and ignore the option if not recognized
13236 # So say no if there are warnings
13237 if test -s conftest.err; then
13238 # Append any errors to the config.log.
13239 cat conftest.err 1>&5
13240 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13242 if diff conftest.exp conftest.er2 >/dev/null; then
13243 lt_cv_prog_compiler_static_works_CXX=yes
13245 else
13246 lt_cv_prog_compiler_static_works_CXX=yes
13249 $RM -r conftest*
13250 LDFLAGS="$save_LDFLAGS"
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13254 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13256 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13258 else
13259 lt_prog_compiler_static_CXX=
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13267 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 lt_cv_prog_compiler_c_o_CXX=no
13271 $RM -r conftest 2>/dev/null
13272 mkdir conftest
13273 cd conftest
13274 mkdir out
13275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13277 lt_compiler_flag="-o out/conftest2.$ac_objext"
13278 # Insert the option either (1) after the last *FLAGS variable, or
13279 # (2) before a word containing "conftest.", or (3) at the end.
13280 # Note that $ac_compile itself does not contain backslashes and begins
13281 # with a dollar sign (not a hyphen), so the echo should work correctly.
13282 lt_compile=`echo "$ac_compile" | $SED \
13283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13285 -e 's:$: $lt_compiler_flag:'`
13286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13287 (eval "$lt_compile" 2>out/conftest.err)
13288 ac_status=$?
13289 cat out/conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13292 then
13293 # The compiler can only warn and ignore the option if not recognized
13294 # So say no if there are warnings
13295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13298 lt_cv_prog_compiler_c_o_CXX=yes
13301 chmod u+w . 2>&5
13302 $RM conftest*
13303 # SGI C++ compiler will create directory out/ii_files/ for
13304 # template instantiation
13305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13306 $RM out/* && rmdir out
13307 cd ..
13308 $RM -r conftest
13309 $RM conftest*
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13313 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13318 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13319 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 lt_cv_prog_compiler_c_o_CXX=no
13323 $RM -r conftest 2>/dev/null
13324 mkdir conftest
13325 cd conftest
13326 mkdir out
13327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13329 lt_compiler_flag="-o out/conftest2.$ac_objext"
13330 # Insert the option either (1) after the last *FLAGS variable, or
13331 # (2) before a word containing "conftest.", or (3) at the end.
13332 # Note that $ac_compile itself does not contain backslashes and begins
13333 # with a dollar sign (not a hyphen), so the echo should work correctly.
13334 lt_compile=`echo "$ac_compile" | $SED \
13335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13337 -e 's:$: $lt_compiler_flag:'`
13338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13339 (eval "$lt_compile" 2>out/conftest.err)
13340 ac_status=$?
13341 cat out/conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13344 then
13345 # The compiler can only warn and ignore the option if not recognized
13346 # So say no if there are warnings
13347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13350 lt_cv_prog_compiler_c_o_CXX=yes
13353 chmod u+w . 2>&5
13354 $RM conftest*
13355 # SGI C++ compiler will create directory out/ii_files/ for
13356 # template instantiation
13357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13358 $RM out/* && rmdir out
13359 cd ..
13360 $RM -r conftest
13361 $RM conftest*
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13365 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13370 hard_links="nottested"
13371 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13372 # do not overwrite the value of need_locks provided by the user
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13374 $as_echo_n "checking if we can lock with hard links... " >&6; }
13375 hard_links=yes
13376 $RM conftest*
13377 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13378 touch conftest.a
13379 ln conftest.a conftest.b 2>&5 || hard_links=no
13380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13382 $as_echo "$hard_links" >&6; }
13383 if test "$hard_links" = no; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13385 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13386 need_locks=warn
13388 else
13389 need_locks=no
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13395 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13397 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13398 case $host_os in
13399 aix[4-9]*)
13400 # If we're using GNU nm, then we don't want the "-C" option.
13401 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13402 # Also, AIX nm treats weak defined symbols like other global defined
13403 # symbols, whereas GNU nm marks them as "W".
13404 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13405 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'
13406 else
13407 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13410 pw32*)
13411 export_symbols_cmds_CXX="$ltdll_cmds"
13413 cygwin* | mingw* | cegcc*)
13414 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'
13417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13419 esac
13420 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13423 $as_echo "$ld_shlibs_CXX" >&6; }
13424 test "$ld_shlibs_CXX" = no && can_build_shared=no
13426 with_gnu_ld_CXX=$with_gnu_ld
13434 # Do we need to explicitly link libc?
13436 case "x$archive_cmds_need_lc_CXX" in
13437 x|xyes)
13438 # Assume -lc should be added
13439 archive_cmds_need_lc_CXX=yes
13441 if test "$enable_shared" = yes && test "$GCC" = yes; then
13442 case $archive_cmds_CXX in
13443 *'~'*)
13444 # FIXME: we may have to deal with multi-command sequences.
13446 '$CC '*)
13447 # Test whether the compiler implicitly links with -lc since on some
13448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13449 # to ld, don't add -lc before -lgcc.
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13451 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13452 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 $RM conftest*
13456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13459 (eval $ac_compile) 2>&5
13460 ac_status=$?
13461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462 test $ac_status = 0; } 2>conftest.err; then
13463 soname=conftest
13464 lib=conftest
13465 libobjs=conftest.$ac_objext
13466 deplibs=
13467 wl=$lt_prog_compiler_wl_CXX
13468 pic_flag=$lt_prog_compiler_pic_CXX
13469 compiler_flags=-v
13470 linker_flags=-v
13471 verstring=
13472 output_objdir=.
13473 libname=conftest
13474 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13475 allow_undefined_flag_CXX=
13476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13477 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13478 ac_status=$?
13479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13480 test $ac_status = 0; }
13481 then
13482 lt_cv_archive_cmds_need_lc_CXX=no
13483 else
13484 lt_cv_archive_cmds_need_lc_CXX=yes
13486 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13487 else
13488 cat conftest.err 1>&5
13490 $RM conftest*
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13494 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13495 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13497 esac
13500 esac
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13566 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13568 library_names_spec=
13569 libname_spec='lib$name'
13570 soname_spec=
13571 shrext_cmds=".so"
13572 postinstall_cmds=
13573 postuninstall_cmds=
13574 finish_cmds=
13575 finish_eval=
13576 shlibpath_var=
13577 shlibpath_overrides_runpath=unknown
13578 version_type=none
13579 dynamic_linker="$host_os ld.so"
13580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13581 need_lib_prefix=unknown
13582 hardcode_into_libs=no
13584 # when you set need_version to no, make sure it does not cause -set_version
13585 # flags to be left without arguments
13586 need_version=unknown
13588 case $host_os in
13589 aix3*)
13590 version_type=linux
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13592 shlibpath_var=LIBPATH
13594 # AIX 3 has no versioning support, so we append a major version to the name.
13595 soname_spec='${libname}${release}${shared_ext}$major'
13598 aix[4-9]*)
13599 version_type=linux
13600 need_lib_prefix=no
13601 need_version=no
13602 hardcode_into_libs=yes
13603 if test "$host_cpu" = ia64; then
13604 # AIX 5 supports IA64
13605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13606 shlibpath_var=LD_LIBRARY_PATH
13607 else
13608 # With GCC up to 2.95.x, collect2 would create an import file
13609 # for dependence libraries. The import file would start with
13610 # the line `#! .'. This would cause the generated library to
13611 # depend on `.', always an invalid library. This was fixed in
13612 # development snapshots of GCC prior to 3.0.
13613 case $host_os in
13614 aix4 | aix4.[01] | aix4.[01].*)
13615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13616 echo ' yes '
13617 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13619 else
13620 can_build_shared=no
13623 esac
13624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13625 # soname into executable. Probably we can add versioning support to
13626 # collect2, so additional links can be useful in future.
13627 if test "$aix_use_runtimelinking" = yes; then
13628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13629 # instead of lib<name>.a to let people know that these are not
13630 # typical AIX shared libraries.
13631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632 else
13633 # We preserve .a as extension for shared libraries through AIX4.2
13634 # and later when we are not doing run time linking.
13635 library_names_spec='${libname}${release}.a $libname.a'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13638 shlibpath_var=LIBPATH
13642 amigaos*)
13643 case $host_cpu in
13644 powerpc)
13645 # Since July 2007 AmigaOS4 officially supports .so libraries.
13646 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13649 m68k)
13650 library_names_spec='$libname.ixlibrary $libname.a'
13651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13652 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'
13654 esac
13657 beos*)
13658 library_names_spec='${libname}${shared_ext}'
13659 dynamic_linker="$host_os ld.so"
13660 shlibpath_var=LIBRARY_PATH
13663 bsdi[45]*)
13664 version_type=linux
13665 need_version=no
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13669 shlibpath_var=LD_LIBRARY_PATH
13670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13672 # the default ld.so.conf also contains /usr/contrib/lib and
13673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13674 # libtool to hard-code these into programs
13677 cygwin* | mingw* | pw32* | cegcc*)
13678 version_type=windows
13679 shrext_cmds=".dll"
13680 need_version=no
13681 need_lib_prefix=no
13683 case $GCC,$host_os in
13684 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13685 library_names_spec='$libname.dll.a'
13686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13687 postinstall_cmds='base_file=`basename \${file}`~
13688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13689 dldir=$destdir/`dirname \$dlpath`~
13690 test -d \$dldir || mkdir -p \$dldir~
13691 $install_prog $dir/$dlname \$dldir/$dlname~
13692 chmod a+x \$dldir/$dlname~
13693 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13694 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13697 dlpath=$dir/\$dldll~
13698 $RM \$dlpath'
13699 shlibpath_overrides_runpath=yes
13701 case $host_os in
13702 cygwin*)
13703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13707 mingw* | cegcc*)
13708 # MinGW DLLs use traditional 'lib' prefix
13709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13711 pw32*)
13712 # pw32 DLLs use 'pw' prefix rather than 'lib'
13713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13715 esac
13719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13721 esac
13722 dynamic_linker='Win32 ld.exe'
13723 # FIXME: first we should search . and the directory the executable is in
13724 shlibpath_var=PATH
13727 darwin* | rhapsody*)
13728 dynamic_linker="$host_os dyld"
13729 version_type=darwin
13730 need_lib_prefix=no
13731 need_version=no
13732 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13733 soname_spec='${libname}${release}${major}$shared_ext'
13734 shlibpath_overrides_runpath=yes
13735 shlibpath_var=DYLD_LIBRARY_PATH
13736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13738 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13741 dgux*)
13742 version_type=linux
13743 need_lib_prefix=no
13744 need_version=no
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13746 soname_spec='${libname}${release}${shared_ext}$major'
13747 shlibpath_var=LD_LIBRARY_PATH
13750 freebsd* | dragonfly*)
13751 # DragonFly does not have aout. When/if they implement a new
13752 # versioning mechanism, adjust this.
13753 if test -x /usr/bin/objformat; then
13754 objformat=`/usr/bin/objformat`
13755 else
13756 case $host_os in
13757 freebsd[23].*) objformat=aout ;;
13758 *) objformat=elf ;;
13759 esac
13761 version_type=freebsd-$objformat
13762 case $version_type in
13763 freebsd-elf*)
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13765 need_version=no
13766 need_lib_prefix=no
13768 freebsd-*)
13769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13770 need_version=yes
13772 esac
13773 shlibpath_var=LD_LIBRARY_PATH
13774 case $host_os in
13775 freebsd2.*)
13776 shlibpath_overrides_runpath=yes
13778 freebsd3.[01]* | freebsdelf3.[01]*)
13779 shlibpath_overrides_runpath=yes
13780 hardcode_into_libs=yes
13782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13784 shlibpath_overrides_runpath=no
13785 hardcode_into_libs=yes
13787 *) # from 4.6 on, and DragonFly
13788 shlibpath_overrides_runpath=yes
13789 hardcode_into_libs=yes
13791 esac
13794 gnu*)
13795 version_type=linux
13796 need_lib_prefix=no
13797 need_version=no
13798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13799 soname_spec='${libname}${release}${shared_ext}$major'
13800 shlibpath_var=LD_LIBRARY_PATH
13801 hardcode_into_libs=yes
13804 haiku*)
13805 version_type=linux
13806 need_lib_prefix=no
13807 need_version=no
13808 dynamic_linker="$host_os runtime_loader"
13809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13810 soname_spec='${libname}${release}${shared_ext}$major'
13811 shlibpath_var=LIBRARY_PATH
13812 shlibpath_overrides_runpath=yes
13813 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13814 hardcode_into_libs=yes
13817 hpux9* | hpux10* | hpux11*)
13818 # Give a soname corresponding to the major version so that dld.sl refuses to
13819 # link against other versions.
13820 version_type=sunos
13821 need_lib_prefix=no
13822 need_version=no
13823 case $host_cpu in
13824 ia64*)
13825 shrext_cmds='.so'
13826 hardcode_into_libs=yes
13827 dynamic_linker="$host_os dld.so"
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13831 soname_spec='${libname}${release}${shared_ext}$major'
13832 if test "X$HPUX_IA64_MODE" = X32; then
13833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13834 else
13835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13839 hppa*64*)
13840 shrext_cmds='.sl'
13841 hardcode_into_libs=yes
13842 dynamic_linker="$host_os dld.sl"
13843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13846 soname_spec='${libname}${release}${shared_ext}$major'
13847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13851 shrext_cmds='.sl'
13852 dynamic_linker="$host_os dld.sl"
13853 shlibpath_var=SHLIB_PATH
13854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13856 soname_spec='${libname}${release}${shared_ext}$major'
13858 esac
13859 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13860 postinstall_cmds='chmod 555 $lib'
13861 # or fails outright, so override atomically:
13862 install_override_mode=555
13865 interix[3-9]*)
13866 version_type=linux
13867 need_lib_prefix=no
13868 need_version=no
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13870 soname_spec='${libname}${release}${shared_ext}$major'
13871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13872 shlibpath_var=LD_LIBRARY_PATH
13873 shlibpath_overrides_runpath=no
13874 hardcode_into_libs=yes
13877 irix5* | irix6* | nonstopux*)
13878 case $host_os in
13879 nonstopux*) version_type=nonstopux ;;
13881 if test "$lt_cv_prog_gnu_ld" = yes; then
13882 version_type=linux
13883 else
13884 version_type=irix
13885 fi ;;
13886 esac
13887 need_lib_prefix=no
13888 need_version=no
13889 soname_spec='${libname}${release}${shared_ext}$major'
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13891 case $host_os in
13892 irix5* | nonstopux*)
13893 libsuff= shlibsuff=
13896 case $LD in # libtool.m4 will add one of these switches to LD
13897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13898 libsuff= shlibsuff= libmagic=32-bit;;
13899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13900 libsuff=32 shlibsuff=N32 libmagic=N32;;
13901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13903 *) libsuff= shlibsuff= libmagic=never-match;;
13904 esac
13906 esac
13907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13908 shlibpath_overrides_runpath=no
13909 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13910 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13911 hardcode_into_libs=yes
13914 # No shared lib support for Linux oldld, aout, or coff.
13915 linux*oldld* | linux*aout* | linux*coff*)
13916 dynamic_linker=no
13919 # This must be Linux ELF.
13920 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13921 version_type=linux
13922 need_lib_prefix=no
13923 need_version=no
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=no
13930 # Some binutils ld are patched to set DT_RUNPATH
13931 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 lt_cv_shlibpath_overrides_runpath=no
13935 save_LDFLAGS=$LDFLAGS
13936 save_libdir=$libdir
13937 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13938 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13943 main ()
13947 return 0;
13949 _ACEOF
13950 if ac_fn_cxx_try_link "$LINENO"; then :
13951 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13952 lt_cv_shlibpath_overrides_runpath=yes
13955 rm -f core conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LDFLAGS=$save_LDFLAGS
13958 libdir=$save_libdir
13962 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13964 # This implies no fast_install, which is unacceptable.
13965 # Some rework will be needed to allow for fast_install
13966 # before this can be enabled.
13967 hardcode_into_libs=yes
13969 # Append ld.so.conf contents to the search path
13970 if test -f /etc/ld.so.conf; then
13971 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' ' '`
13972 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13975 # We used to test for /lib/ld.so.1 and disable shared libraries on
13976 # powerpc, because MkLinux only supported shared libraries with the
13977 # GNU dynamic linker. Since this was broken with cross compilers,
13978 # most powerpc-linux boxes support dynamic linking these days and
13979 # people can always --disable-shared, the test was removed, and we
13980 # assume the GNU/Linux dynamic linker is in use.
13981 dynamic_linker='GNU/Linux ld.so'
13984 netbsd*)
13985 version_type=sunos
13986 need_lib_prefix=no
13987 need_version=no
13988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13991 dynamic_linker='NetBSD (a.out) ld.so'
13992 else
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13995 dynamic_linker='NetBSD ld.elf_so'
13997 shlibpath_var=LD_LIBRARY_PATH
13998 shlibpath_overrides_runpath=yes
13999 hardcode_into_libs=yes
14002 newsos6)
14003 version_type=linux
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=yes
14009 *nto* | *qnx*)
14010 version_type=qnx
14011 need_lib_prefix=no
14012 need_version=no
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 shlibpath_var=LD_LIBRARY_PATH
14016 shlibpath_overrides_runpath=no
14017 hardcode_into_libs=yes
14018 dynamic_linker='ldqnx.so'
14021 openbsd*)
14022 version_type=sunos
14023 sys_lib_dlsearch_path_spec="/usr/lib"
14024 need_lib_prefix=no
14025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14026 case $host_os in
14027 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14028 *) need_version=no ;;
14029 esac
14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14032 shlibpath_var=LD_LIBRARY_PATH
14033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14034 case $host_os in
14035 openbsd2.[89] | openbsd2.[89].*)
14036 shlibpath_overrides_runpath=no
14039 shlibpath_overrides_runpath=yes
14041 esac
14042 else
14043 shlibpath_overrides_runpath=yes
14047 os2*)
14048 libname_spec='$name'
14049 shrext_cmds=".dll"
14050 need_lib_prefix=no
14051 library_names_spec='$libname${shared_ext} $libname.a'
14052 dynamic_linker='OS/2 ld.exe'
14053 shlibpath_var=LIBPATH
14056 osf3* | osf4* | osf5*)
14057 version_type=osf
14058 need_lib_prefix=no
14059 need_version=no
14060 soname_spec='${libname}${release}${shared_ext}$major'
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062 shlibpath_var=LD_LIBRARY_PATH
14063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14067 rdos*)
14068 dynamic_linker=no
14071 solaris*)
14072 version_type=linux
14073 need_lib_prefix=no
14074 need_version=no
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14079 hardcode_into_libs=yes
14080 # ldd complains unless libraries are executable
14081 postinstall_cmds='chmod +x $lib'
14084 sunos4*)
14085 version_type=sunos
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 shlibpath_overrides_runpath=yes
14090 if test "$with_gnu_ld" = yes; then
14091 need_lib_prefix=no
14093 need_version=yes
14096 sysv4 | sysv4.3*)
14097 version_type=linux
14098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec='${libname}${release}${shared_ext}$major'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 case $host_vendor in
14102 sni)
14103 shlibpath_overrides_runpath=no
14104 need_lib_prefix=no
14105 runpath_var=LD_RUN_PATH
14107 siemens)
14108 need_lib_prefix=no
14110 motorola)
14111 need_lib_prefix=no
14112 need_version=no
14113 shlibpath_overrides_runpath=no
14114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14116 esac
14119 sysv4*MP*)
14120 if test -d /usr/nec ;then
14121 version_type=linux
14122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14123 soname_spec='$libname${shared_ext}.$major'
14124 shlibpath_var=LD_LIBRARY_PATH
14128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14129 version_type=freebsd-elf
14130 need_lib_prefix=no
14131 need_version=no
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 shlibpath_overrides_runpath=yes
14136 hardcode_into_libs=yes
14137 if test "$with_gnu_ld" = yes; then
14138 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14139 else
14140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14141 case $host_os in
14142 sco3.2v5*)
14143 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14145 esac
14147 sys_lib_dlsearch_path_spec='/usr/lib'
14150 tpf*)
14151 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14152 version_type=linux
14153 need_lib_prefix=no
14154 need_version=no
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156 shlibpath_var=LD_LIBRARY_PATH
14157 shlibpath_overrides_runpath=no
14158 hardcode_into_libs=yes
14161 uts4*)
14162 version_type=linux
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 shlibpath_var=LD_LIBRARY_PATH
14169 dynamic_linker=no
14171 esac
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14173 $as_echo "$dynamic_linker" >&6; }
14174 test "$dynamic_linker" = no && can_build_shared=no
14176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14177 if test "$GCC" = yes; then
14178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14181 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14182 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14184 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14185 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14226 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14227 hardcode_action_CXX=
14228 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14229 test -n "$runpath_var_CXX" ||
14230 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14232 # We can hardcode non-existent directories.
14233 if test "$hardcode_direct_CXX" != no &&
14234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14235 # have to relink, otherwise we might link with an installed library
14236 # when we should be linking with a yet-to-be-installed one
14237 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14238 test "$hardcode_minus_L_CXX" != no; then
14239 # Linking always hardcodes the temporary library directory.
14240 hardcode_action_CXX=relink
14241 else
14242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14243 hardcode_action_CXX=immediate
14245 else
14246 # We cannot hardcode anything, or else we can only hardcode existing
14247 # directories.
14248 hardcode_action_CXX=unsupported
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14251 $as_echo "$hardcode_action_CXX" >&6; }
14253 if test "$hardcode_action_CXX" = relink ||
14254 test "$inherit_rpath_CXX" = yes; then
14255 # Fast installation is not supported
14256 enable_fast_install=no
14257 elif test "$shlibpath_overrides_runpath" = yes ||
14258 test "$enable_shared" = no; then
14259 # Fast installation is not necessary
14260 enable_fast_install=needless
14269 fi # test -n "$compiler"
14271 CC=$lt_save_CC
14272 LDCXX=$LD
14273 LD=$lt_save_LD
14274 GCC=$lt_save_GCC
14275 with_gnu_ld=$lt_save_with_gnu_ld
14276 lt_cv_path_LDCXX=$lt_cv_path_LD
14277 lt_cv_path_LD=$lt_save_path_LD
14278 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14279 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14280 fi # test "$_lt_caught_CXX_error" != yes
14282 ac_ext=c
14283 ac_cpp='$CPP $CPPFLAGS'
14284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14290 visibility=
14291 if test "$GXX" = yes; then
14292 visibility=-fvisibility=hidden
14296 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14297 if test "x$ac_cv_have_decl_basename" = x""yes; then :
14298 ac_have_decl=1
14299 else
14300 ac_have_decl=0
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_DECL_BASENAME $ac_have_decl
14305 _ACEOF
14308 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14310 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14313 ac_ext=c
14314 ac_cpp='$CPP $CPPFLAGS'
14315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14319 WARN_FLAGS=
14320 save_CFLAGS="$CFLAGS"
14321 for real_option in -W -Wall; do
14322 # Do the check with the no- prefix removed since gcc silently
14323 # accepts any -Wno-* option on purpose
14324 case $real_option in
14325 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14326 *) option=$real_option ;;
14327 esac
14328 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14331 $as_echo_n "checking whether $CC supports $option... " >&6; }
14332 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 CFLAGS="$option"
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14340 main ()
14344 return 0;
14346 _ACEOF
14347 if ac_fn_c_try_compile "$LINENO"; then :
14348 eval "$as_acx_Woption=yes"
14349 else
14350 eval "$as_acx_Woption=no"
14352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355 eval ac_res=\$$as_acx_Woption
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14357 $as_echo "$ac_res" >&6; }
14358 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14359 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14361 done
14362 CFLAGS="$save_CFLAGS"
14363 ac_ext=c
14364 ac_cpp='$CPP $CPPFLAGS'
14365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371 ac_ext=c
14372 ac_cpp='$CPP $CPPFLAGS'
14373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14377 WERROR=
14378 # Check whether --enable-werror-always was given.
14379 if test "${enable_werror_always+set}" = set; then :
14380 enableval=$enable_werror_always;
14381 else
14382 enable_werror_always=no
14385 if test $enable_werror_always = yes; then :
14386 WERROR="$WERROR${WERROR:+ }-Werror"
14389 ac_ext=c
14390 ac_cpp='$CPP $CPPFLAGS'
14391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14399 libsuffix=
14400 if test "$GXX" = yes; then
14401 libsuffix=`$CXX -print-multi-os-directory`
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14406 $as_echo_n "checking for socket libraries... " >&6; }
14407 if test "${libcc1_cv_lib_sockets+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 libcc1_cv_lib_sockets=
14411 libcc1_check_both=no
14412 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14413 if test "x$ac_cv_func_connect" = x""yes; then :
14414 libcc1_check_socket=no
14415 else
14416 libcc1_check_socket=yes
14419 if test "$libcc1_check_socket" = "yes"; then
14420 unset ac_cv_func_connect
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14422 $as_echo_n "checking for main in -lsocket... " >&6; }
14423 if test "${ac_cv_lib_socket_main+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 ac_check_lib_save_LIBS=$LIBS
14427 LIBS="-lsocket $LIBS"
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14433 main ()
14435 return main ();
14437 return 0;
14439 _ACEOF
14440 if ac_fn_c_try_link "$LINENO"; then :
14441 ac_cv_lib_socket_main=yes
14442 else
14443 ac_cv_lib_socket_main=no
14445 rm -f core conftest.err conftest.$ac_objext \
14446 conftest$ac_exeext conftest.$ac_ext
14447 LIBS=$ac_check_lib_save_LIBS
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14450 $as_echo "$ac_cv_lib_socket_main" >&6; }
14451 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14452 libcc1_cv_lib_sockets="-lsocket"
14453 else
14454 libcc1_check_both=yes
14458 if test "$libcc1_check_both" = "yes"; then
14459 libcc1_old_libs=$LIBS
14460 LIBS="$LIBS -lsocket -lnsl"
14461 unset ac_cv_func_accept
14462 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14463 if test "x$ac_cv_func_accept" = x""yes; then :
14464 libcc1_check_nsl=no
14465 libcc1_cv_lib_sockets="-lsocket -lnsl"
14468 unset ac_cv_func_accept
14469 LIBS=$libcc1_old_libs
14471 unset ac_cv_func_gethostbyname
14472 libcc1_old_libs="$LIBS"
14473 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14474 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14476 else
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14478 $as_echo_n "checking for main in -lnsl... " >&6; }
14479 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 ac_check_lib_save_LIBS=$LIBS
14483 LIBS="-lnsl $LIBS"
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14489 main ()
14491 return main ();
14493 return 0;
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"; then :
14497 ac_cv_lib_nsl_main=yes
14498 else
14499 ac_cv_lib_nsl_main=no
14501 rm -f core conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14503 LIBS=$ac_check_lib_save_LIBS
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14506 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14507 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14508 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14513 unset ac_cv_func_gethostbyname
14514 LIBS=$libcc1_old_libs
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14518 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14519 LIBS="$LIBS $libcc1_cv_lib_sockets"
14521 # If any of these functions are missing, simply don't bother building
14522 # this plugin.
14523 # Check for plugin support
14524 # Check whether --enable-plugin was given.
14525 if test "${enable_plugin+set}" = set; then :
14526 enableval=$enable_plugin; enable_plugin=$enableval
14527 else
14528 enable_plugin=yes; default_plugin=yes
14532 pluginlibs=
14534 case "${host}" in
14535 *-*-darwin*)
14536 if test x$build = x$host; then
14537 export_sym_check="nm${exeext} -g"
14538 elif test x$host = x$target; then
14539 export_sym_check="$gcc_cv_nm -g"
14540 else
14541 export_sym_check=
14545 if test x$build = x$host; then
14546 export_sym_check="objdump${exeext} -T"
14547 elif test x$host = x$target; then
14548 export_sym_check="$gcc_cv_objdump -T"
14549 else
14550 export_sym_check=
14553 esac
14555 if test x"$enable_plugin" = x"yes"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14558 $as_echo_n "checking for exported symbols... " >&6; }
14559 if test "x$export_sym_check" != x; then
14560 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14561 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14562 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14563 : # No need to use a flag
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14565 $as_echo "yes" >&6; }
14566 else
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14568 $as_echo "yes" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14570 $as_echo_n "checking for -rdynamic... " >&6; }
14571 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14572 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14573 plugin_rdynamic=yes
14574 pluginlibs="-rdynamic"
14575 else
14576 plugin_rdynamic=no
14577 enable_plugin=no
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14580 $as_echo "$plugin_rdynamic" >&6; }
14582 else
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14584 $as_echo "unable to check" >&6; }
14587 # Check -ldl
14588 saved_LIBS="$LIBS"
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14590 $as_echo_n "checking for library containing dlopen... " >&6; }
14591 if test "${ac_cv_search_dlopen+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 ac_func_search_save_LIBS=$LIBS
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14598 /* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14601 #ifdef __cplusplus
14602 extern "C"
14603 #endif
14604 char dlopen ();
14606 main ()
14608 return dlopen ();
14610 return 0;
14612 _ACEOF
14613 for ac_lib in '' dl; do
14614 if test -z "$ac_lib"; then
14615 ac_res="none required"
14616 else
14617 ac_res=-l$ac_lib
14618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14620 if ac_fn_c_try_link "$LINENO"; then :
14621 ac_cv_search_dlopen=$ac_res
14623 rm -f core conftest.err conftest.$ac_objext \
14624 conftest$ac_exeext
14625 if test "${ac_cv_search_dlopen+set}" = set; then :
14626 break
14628 done
14629 if test "${ac_cv_search_dlopen+set}" = set; then :
14631 else
14632 ac_cv_search_dlopen=no
14634 rm conftest.$ac_ext
14635 LIBS=$ac_func_search_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14638 $as_echo "$ac_cv_search_dlopen" >&6; }
14639 ac_res=$ac_cv_search_dlopen
14640 if test "$ac_res" != no; then :
14641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14645 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14646 pluginlibs="$pluginlibs -ldl"
14648 LIBS="$saved_LIBS"
14650 # Check that we can build shared objects with -fPIC -shared
14651 saved_LDFLAGS="$LDFLAGS"
14652 saved_CFLAGS="$CFLAGS"
14653 case "${host}" in
14654 *-*-darwin*)
14655 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14656 CFLAGS="$CFLAGS -fPIC"
14657 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14660 CFLAGS="$CFLAGS -fPIC"
14661 LDFLAGS="$LDFLAGS -fPIC -shared"
14663 esac
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14665 $as_echo_n "checking for -fPIC -shared... " >&6; }
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 extern int X;
14670 main ()
14672 return X == 0;
14674 return 0;
14676 _ACEOF
14677 if ac_fn_c_try_link "$LINENO"; then :
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14679 $as_echo "yes" >&6; }; have_pic_shared=yes
14680 else
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682 $as_echo "no" >&6; }; have_pic_shared=no
14684 rm -f core conftest.err conftest.$ac_objext \
14685 conftest$ac_exeext conftest.$ac_ext
14686 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14687 pluginlibs=
14688 enable_plugin=no
14690 LDFLAGS="$saved_LDFLAGS"
14691 CFLAGS="$saved_CFLAGS"
14693 # If plugin support had been requested but not available, fail.
14694 if test x"$enable_plugin" = x"no" ; then
14695 if test x"$default_plugin" != x"yes"; then
14696 as_fn_error "
14697 Building GCC with plugin support requires a host that supports
14698 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14703 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14704 if test "x$ac_cv_func_socketpair" = x""yes; then :
14706 else
14707 enable_plugin=no
14710 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14711 if test "x$ac_cv_func_select" = x""yes; then :
14713 else
14714 enable_plugin=no
14717 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14718 if test "x$ac_cv_func_fork" = x""yes; then :
14720 else
14721 enable_plugin=no
14724 if test $enable_plugin = yes; then
14725 ENABLE_PLUGIN_TRUE=
14726 ENABLE_PLUGIN_FALSE='#'
14727 else
14728 ENABLE_PLUGIN_TRUE='#'
14729 ENABLE_PLUGIN_FALSE=
14733 ac_config_files="$ac_config_files Makefile"
14735 cat >confcache <<\_ACEOF
14736 # This file is a shell script that caches the results of configure
14737 # tests run on this system so they can be shared between configure
14738 # scripts and configure runs, see configure's option --config-cache.
14739 # It is not useful on other systems. If it contains results you don't
14740 # want to keep, you may remove or edit it.
14742 # config.status only pays attention to the cache file if you give it
14743 # the --recheck option to rerun configure.
14745 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14746 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14747 # following values.
14749 _ACEOF
14751 # The following way of writing the cache mishandles newlines in values,
14752 # but we know of no workaround that is simple, portable, and efficient.
14753 # So, we kill variables containing newlines.
14754 # Ultrix sh set writes to stderr and can't be redirected directly,
14755 # and sets the high bit in the cache file unless we assign to the vars.
14757 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14758 eval ac_val=\$$ac_var
14759 case $ac_val in #(
14760 *${as_nl}*)
14761 case $ac_var in #(
14762 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14763 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14764 esac
14765 case $ac_var in #(
14766 _ | IFS | as_nl) ;; #(
14767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14768 *) { eval $ac_var=; unset $ac_var;} ;;
14769 esac ;;
14770 esac
14771 done
14773 (set) 2>&1 |
14774 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14775 *${as_nl}ac_space=\ *)
14776 # `set' does not quote correctly, so add quotes: double-quote
14777 # substitution turns \\\\ into \\, and sed turns \\ into \.
14778 sed -n \
14779 "s/'/'\\\\''/g;
14780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14781 ;; #(
14783 # `set' quotes correctly as required by POSIX, so do not add quotes.
14784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14786 esac |
14787 sort
14789 sed '
14790 /^ac_cv_env_/b end
14791 t clear
14792 :clear
14793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14794 t end
14795 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14796 :end' >>confcache
14797 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14798 if test -w "$cache_file"; then
14799 test "x$cache_file" != "x/dev/null" &&
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14801 $as_echo "$as_me: updating cache $cache_file" >&6;}
14802 cat confcache >$cache_file
14803 else
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14805 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14808 rm -f confcache
14810 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14811 # Let make expand exec_prefix.
14812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14814 DEFS=-DHAVE_CONFIG_H
14816 ac_libobjs=
14817 ac_ltlibobjs=
14818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14819 # 1. Remove the extension, and $U if already installed.
14820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14821 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14823 # will be set to the directory where LIBOBJS objects are built.
14824 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14825 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14826 done
14827 LIBOBJS=$ac_libobjs
14829 LTLIBOBJS=$ac_ltlibobjs
14832 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14833 as_fn_error "conditional \"AMDEP\" was never defined.
14834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14837 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14840 if test -n "$EXEEXT"; then
14841 am__EXEEXT_TRUE=
14842 am__EXEEXT_FALSE='#'
14843 else
14844 am__EXEEXT_TRUE='#'
14845 am__EXEEXT_FALSE=
14848 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14849 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14852 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14853 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14856 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
14857 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
14858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14861 : ${CONFIG_STATUS=./config.status}
14862 ac_write_fail=0
14863 ac_clean_files_save=$ac_clean_files
14864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14866 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14867 as_write_fail=0
14868 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14869 #! $SHELL
14870 # Generated by $as_me.
14871 # Run this file to recreate the current configuration.
14872 # Compiler output produced by configure, useful for debugging
14873 # configure, is in config.log if it exists.
14875 debug=false
14876 ac_cs_recheck=false
14877 ac_cs_silent=false
14879 SHELL=\${CONFIG_SHELL-$SHELL}
14880 export SHELL
14881 _ASEOF
14882 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14883 ## -------------------- ##
14884 ## M4sh Initialization. ##
14885 ## -------------------- ##
14887 # Be more Bourne compatible
14888 DUALCASE=1; export DUALCASE # for MKS sh
14889 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14890 emulate sh
14891 NULLCMD=:
14892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14893 # is contrary to our usage. Disable this feature.
14894 alias -g '${1+"$@"}'='"$@"'
14895 setopt NO_GLOB_SUBST
14896 else
14897 case `(set -o) 2>/dev/null` in #(
14898 *posix*) :
14899 set -o posix ;; #(
14900 *) :
14902 esac
14906 as_nl='
14908 export as_nl
14909 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14910 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14912 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14913 # Prefer a ksh shell builtin over an external printf program on Solaris,
14914 # but without wasting forks for bash or zsh.
14915 if test -z "$BASH_VERSION$ZSH_VERSION" \
14916 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14917 as_echo='print -r --'
14918 as_echo_n='print -rn --'
14919 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14920 as_echo='printf %s\n'
14921 as_echo_n='printf %s'
14922 else
14923 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14924 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14925 as_echo_n='/usr/ucb/echo -n'
14926 else
14927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14928 as_echo_n_body='eval
14929 arg=$1;
14930 case $arg in #(
14931 *"$as_nl"*)
14932 expr "X$arg" : "X\\(.*\\)$as_nl";
14933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14934 esac;
14935 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14937 export as_echo_n_body
14938 as_echo_n='sh -c $as_echo_n_body as_echo'
14940 export as_echo_body
14941 as_echo='sh -c $as_echo_body as_echo'
14944 # The user is always right.
14945 if test "${PATH_SEPARATOR+set}" != set; then
14946 PATH_SEPARATOR=:
14947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14949 PATH_SEPARATOR=';'
14954 # IFS
14955 # We need space, tab and new line, in precisely that order. Quoting is
14956 # there to prevent editors from complaining about space-tab.
14957 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14958 # splitting by setting IFS to empty value.)
14959 IFS=" "" $as_nl"
14961 # Find who we are. Look in the path if we contain no directory separator.
14962 case $0 in #((
14963 *[\\/]* ) as_myself=$0 ;;
14964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14965 for as_dir in $PATH
14967 IFS=$as_save_IFS
14968 test -z "$as_dir" && as_dir=.
14969 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14970 done
14971 IFS=$as_save_IFS
14974 esac
14975 # We did not find ourselves, most probably we were run as `sh COMMAND'
14976 # in which case we are not to be found in the path.
14977 if test "x$as_myself" = x; then
14978 as_myself=$0
14980 if test ! -f "$as_myself"; then
14981 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14982 exit 1
14985 # Unset variables that we do not need and which cause bugs (e.g. in
14986 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14987 # suppresses any "Segmentation fault" message there. '((' could
14988 # trigger a bug in pdksh 5.2.14.
14989 for as_var in BASH_ENV ENV MAIL MAILPATH
14990 do eval test x\${$as_var+set} = xset \
14991 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14992 done
14993 PS1='$ '
14994 PS2='> '
14995 PS4='+ '
14997 # NLS nuisances.
14998 LC_ALL=C
14999 export LC_ALL
15000 LANGUAGE=C
15001 export LANGUAGE
15003 # CDPATH.
15004 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15007 # as_fn_error ERROR [LINENO LOG_FD]
15008 # ---------------------------------
15009 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15010 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15011 # script with status $?, using 1 if that was 0.
15012 as_fn_error ()
15014 as_status=$?; test $as_status -eq 0 && as_status=1
15015 if test "$3"; then
15016 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15017 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15019 $as_echo "$as_me: error: $1" >&2
15020 as_fn_exit $as_status
15021 } # as_fn_error
15024 # as_fn_set_status STATUS
15025 # -----------------------
15026 # Set $? to STATUS, without forking.
15027 as_fn_set_status ()
15029 return $1
15030 } # as_fn_set_status
15032 # as_fn_exit STATUS
15033 # -----------------
15034 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15035 as_fn_exit ()
15037 set +e
15038 as_fn_set_status $1
15039 exit $1
15040 } # as_fn_exit
15042 # as_fn_unset VAR
15043 # ---------------
15044 # Portably unset VAR.
15045 as_fn_unset ()
15047 { eval $1=; unset $1;}
15049 as_unset=as_fn_unset
15050 # as_fn_append VAR VALUE
15051 # ----------------------
15052 # Append the text in VALUE to the end of the definition contained in VAR. Take
15053 # advantage of any shell optimizations that allow amortized linear growth over
15054 # repeated appends, instead of the typical quadratic growth present in naive
15055 # implementations.
15056 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15057 eval 'as_fn_append ()
15059 eval $1+=\$2
15061 else
15062 as_fn_append ()
15064 eval $1=\$$1\$2
15066 fi # as_fn_append
15068 # as_fn_arith ARG...
15069 # ------------------
15070 # Perform arithmetic evaluation on the ARGs, and store the result in the
15071 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15072 # must be portable across $(()) and expr.
15073 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15074 eval 'as_fn_arith ()
15076 as_val=$(( $* ))
15078 else
15079 as_fn_arith ()
15081 as_val=`expr "$@" || test $? -eq 1`
15083 fi # as_fn_arith
15086 if expr a : '\(a\)' >/dev/null 2>&1 &&
15087 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15088 as_expr=expr
15089 else
15090 as_expr=false
15093 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15094 as_basename=basename
15095 else
15096 as_basename=false
15099 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15100 as_dirname=dirname
15101 else
15102 as_dirname=false
15105 as_me=`$as_basename -- "$0" ||
15106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15107 X"$0" : 'X\(//\)$' \| \
15108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15109 $as_echo X/"$0" |
15110 sed '/^.*\/\([^/][^/]*\)\/*$/{
15111 s//\1/
15114 /^X\/\(\/\/\)$/{
15115 s//\1/
15118 /^X\/\(\/\).*/{
15119 s//\1/
15122 s/.*/./; q'`
15124 # Avoid depending upon Character Ranges.
15125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15128 as_cr_digits='0123456789'
15129 as_cr_alnum=$as_cr_Letters$as_cr_digits
15131 ECHO_C= ECHO_N= ECHO_T=
15132 case `echo -n x` in #(((((
15133 -n*)
15134 case `echo 'xy\c'` in
15135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15136 xy) ECHO_C='\c';;
15137 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15138 ECHO_T=' ';;
15139 esac;;
15141 ECHO_N='-n';;
15142 esac
15144 rm -f conf$$ conf$$.exe conf$$.file
15145 if test -d conf$$.dir; then
15146 rm -f conf$$.dir/conf$$.file
15147 else
15148 rm -f conf$$.dir
15149 mkdir conf$$.dir 2>/dev/null
15151 if (echo >conf$$.file) 2>/dev/null; then
15152 if ln -s conf$$.file conf$$ 2>/dev/null; then
15153 as_ln_s='ln -s'
15154 # ... but there are two gotchas:
15155 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15156 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15157 # In both cases, we have to default to `cp -p'.
15158 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15159 as_ln_s='cp -p'
15160 elif ln conf$$.file conf$$ 2>/dev/null; then
15161 as_ln_s=ln
15162 else
15163 as_ln_s='cp -p'
15165 else
15166 as_ln_s='cp -p'
15168 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15169 rmdir conf$$.dir 2>/dev/null
15172 # as_fn_mkdir_p
15173 # -------------
15174 # Create "$as_dir" as a directory, including parents if necessary.
15175 as_fn_mkdir_p ()
15178 case $as_dir in #(
15179 -*) as_dir=./$as_dir;;
15180 esac
15181 test -d "$as_dir" || eval $as_mkdir_p || {
15182 as_dirs=
15183 while :; do
15184 case $as_dir in #(
15185 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15186 *) as_qdir=$as_dir;;
15187 esac
15188 as_dirs="'$as_qdir' $as_dirs"
15189 as_dir=`$as_dirname -- "$as_dir" ||
15190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15191 X"$as_dir" : 'X\(//\)[^/]' \| \
15192 X"$as_dir" : 'X\(//\)$' \| \
15193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15194 $as_echo X"$as_dir" |
15195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15196 s//\1/
15199 /^X\(\/\/\)[^/].*/{
15200 s//\1/
15203 /^X\(\/\/\)$/{
15204 s//\1/
15207 /^X\(\/\).*/{
15208 s//\1/
15211 s/.*/./; q'`
15212 test -d "$as_dir" && break
15213 done
15214 test -z "$as_dirs" || eval "mkdir $as_dirs"
15215 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15218 } # as_fn_mkdir_p
15219 if mkdir -p . 2>/dev/null; then
15220 as_mkdir_p='mkdir -p "$as_dir"'
15221 else
15222 test -d ./-p && rmdir ./-p
15223 as_mkdir_p=false
15226 if test -x / >/dev/null 2>&1; then
15227 as_test_x='test -x'
15228 else
15229 if ls -dL / >/dev/null 2>&1; then
15230 as_ls_L_option=L
15231 else
15232 as_ls_L_option=
15234 as_test_x='
15235 eval sh -c '\''
15236 if test -d "$1"; then
15237 test -d "$1/.";
15238 else
15239 case $1 in #(
15240 -*)set "./$1";;
15241 esac;
15242 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15243 ???[sx]*):;;*)false;;esac;fi
15244 '\'' sh
15247 as_executable_p=$as_test_x
15249 # Sed expression to map a string onto a valid CPP name.
15250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15252 # Sed expression to map a string onto a valid variable name.
15253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15256 exec 6>&1
15257 ## ----------------------------------- ##
15258 ## Main body of $CONFIG_STATUS script. ##
15259 ## ----------------------------------- ##
15260 _ASEOF
15261 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15264 # Save the log message, to keep $0 and so on meaningful, and to
15265 # report actual input values of CONFIG_FILES etc. instead of their
15266 # values after options handling.
15267 ac_log="
15268 This file was extended by libcc1 $as_me version-unused, which was
15269 generated by GNU Autoconf 2.64. Invocation command line was
15271 CONFIG_FILES = $CONFIG_FILES
15272 CONFIG_HEADERS = $CONFIG_HEADERS
15273 CONFIG_LINKS = $CONFIG_LINKS
15274 CONFIG_COMMANDS = $CONFIG_COMMANDS
15275 $ $0 $@
15277 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15280 _ACEOF
15282 case $ac_config_files in *"
15283 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15284 esac
15286 case $ac_config_headers in *"
15287 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15288 esac
15291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15292 # Files that config.status was made for.
15293 config_files="$ac_config_files"
15294 config_headers="$ac_config_headers"
15295 config_commands="$ac_config_commands"
15297 _ACEOF
15299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15300 ac_cs_usage="\
15301 \`$as_me' instantiates files and other configuration actions
15302 from templates according to the current configuration. Unless the files
15303 and actions are specified as TAGs, all are instantiated by default.
15305 Usage: $0 [OPTION]... [TAG]...
15307 -h, --help print this help, then exit
15308 -V, --version print version number and configuration settings, then exit
15309 -q, --quiet, --silent
15310 do not print progress messages
15311 -d, --debug don't remove temporary files
15312 --recheck update $as_me by reconfiguring in the same conditions
15313 --file=FILE[:TEMPLATE]
15314 instantiate the configuration file FILE
15315 --header=FILE[:TEMPLATE]
15316 instantiate the configuration header FILE
15318 Configuration files:
15319 $config_files
15321 Configuration headers:
15322 $config_headers
15324 Configuration commands:
15325 $config_commands
15327 Report bugs to the package provider."
15329 _ACEOF
15330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15331 ac_cs_version="\\
15332 libcc1 config.status version-unused
15333 configured by $0, generated by GNU Autoconf 2.64,
15334 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15336 Copyright (C) 2009 Free Software Foundation, Inc.
15337 This config.status script is free software; the Free Software Foundation
15338 gives unlimited permission to copy, distribute and modify it."
15340 ac_pwd='$ac_pwd'
15341 srcdir='$srcdir'
15342 INSTALL='$INSTALL'
15343 MKDIR_P='$MKDIR_P'
15344 AWK='$AWK'
15345 test -n "\$AWK" || AWK=awk
15346 _ACEOF
15348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15349 # The default lists apply if the user does not specify any file.
15350 ac_need_defaults=:
15351 while test $# != 0
15353 case $1 in
15354 --*=*)
15355 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15356 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15357 ac_shift=:
15360 ac_option=$1
15361 ac_optarg=$2
15362 ac_shift=shift
15364 esac
15366 case $ac_option in
15367 # Handling of the options.
15368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15369 ac_cs_recheck=: ;;
15370 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15371 $as_echo "$ac_cs_version"; exit ;;
15372 --debug | --debu | --deb | --de | --d | -d )
15373 debug=: ;;
15374 --file | --fil | --fi | --f )
15375 $ac_shift
15376 case $ac_optarg in
15377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15378 esac
15379 as_fn_append CONFIG_FILES " '$ac_optarg'"
15380 ac_need_defaults=false;;
15381 --header | --heade | --head | --hea )
15382 $ac_shift
15383 case $ac_optarg in
15384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15385 esac
15386 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15387 ac_need_defaults=false;;
15388 --he | --h)
15389 # Conflict between --help and --header
15390 as_fn_error "ambiguous option: \`$1'
15391 Try \`$0 --help' for more information.";;
15392 --help | --hel | -h )
15393 $as_echo "$ac_cs_usage"; exit ;;
15394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15396 ac_cs_silent=: ;;
15398 # This is an error.
15399 -*) as_fn_error "unrecognized option: \`$1'
15400 Try \`$0 --help' for more information." ;;
15402 *) as_fn_append ac_config_targets " $1"
15403 ac_need_defaults=false ;;
15405 esac
15406 shift
15407 done
15409 ac_configure_extra_args=
15411 if $ac_cs_silent; then
15412 exec 6>/dev/null
15413 ac_configure_extra_args="$ac_configure_extra_args --silent"
15416 _ACEOF
15417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15418 if \$ac_cs_recheck; then
15419 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15420 shift
15421 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15422 CONFIG_SHELL='$SHELL'
15423 export CONFIG_SHELL
15424 exec "\$@"
15427 _ACEOF
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 exec 5>>config.log
15431 echo
15432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15433 ## Running $as_me. ##
15434 _ASBOX
15435 $as_echo "$ac_log"
15436 } >&5
15438 _ACEOF
15439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441 # INIT-COMMANDS
15443 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15446 # The HP-UX ksh and POSIX shell print the target directory to stdout
15447 # if CDPATH is set.
15448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15450 sed_quote_subst='$sed_quote_subst'
15451 double_quote_subst='$double_quote_subst'
15452 delay_variable_subst='$delay_variable_subst'
15453 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15454 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15455 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15456 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15457 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15458 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15459 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15460 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15461 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15462 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15463 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15464 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15465 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15466 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15467 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15468 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15469 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15470 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15471 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15472 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15473 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15474 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15475 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15476 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15477 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15478 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15479 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15480 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15481 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15482 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15483 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15484 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15485 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15486 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15487 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15488 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15489 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15490 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15491 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15492 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15493 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15494 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15495 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15496 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15497 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15498 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15499 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15500 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15501 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"`'
15502 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15503 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15504 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15505 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15506 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15507 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15508 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15509 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15510 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15511 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15512 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15513 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15514 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15515 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15516 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15517 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15518 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15519 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15520 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15521 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15522 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15523 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15524 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15525 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15526 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15527 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15528 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15529 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15530 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15531 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15532 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15533 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15534 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15535 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15536 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15537 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15538 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15539 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15540 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15541 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15542 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15543 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15544 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15545 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15546 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15547 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15548 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15549 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15550 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15551 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15552 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15553 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15554 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15555 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15556 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15557 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15558 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15559 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15560 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15561 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15562 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15563 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15564 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15565 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15566 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15567 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15568 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15569 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15570 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15571 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15572 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15573 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15574 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15575 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15576 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15577 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15578 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15579 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15580 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15581 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15582 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15583 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15584 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15585 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15586 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15587 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15588 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15589 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15590 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15591 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15592 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15593 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15594 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15595 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15596 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15597 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15598 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15599 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15600 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15601 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15602 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15603 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15604 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15605 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15606 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15607 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15608 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15609 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15610 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15611 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15612 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15613 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15614 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15615 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15616 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15617 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15618 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15619 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15620 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15621 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15622 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15623 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15624 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15625 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15626 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15627 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15629 LTCC='$LTCC'
15630 LTCFLAGS='$LTCFLAGS'
15631 compiler='$compiler_DEFAULT'
15633 # A function that is used when there is no print builtin or printf.
15634 func_fallback_echo ()
15636 eval 'cat <<_LTECHO_EOF
15638 _LTECHO_EOF'
15641 # Quote evaled strings.
15642 for var in SHELL \
15643 ECHO \
15644 SED \
15645 GREP \
15646 EGREP \
15647 FGREP \
15648 LD \
15649 NM \
15650 LN_S \
15651 lt_SP2NL \
15652 lt_NL2SP \
15653 reload_flag \
15654 OBJDUMP \
15655 deplibs_check_method \
15656 file_magic_cmd \
15657 AR \
15658 AR_FLAGS \
15659 STRIP \
15660 RANLIB \
15661 CC \
15662 CFLAGS \
15663 compiler \
15664 lt_cv_sys_global_symbol_pipe \
15665 lt_cv_sys_global_symbol_to_cdecl \
15666 lt_cv_sys_global_symbol_to_c_name_address \
15667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15668 lt_prog_compiler_no_builtin_flag \
15669 lt_prog_compiler_wl \
15670 lt_prog_compiler_pic \
15671 lt_prog_compiler_static \
15672 lt_cv_prog_compiler_c_o \
15673 need_locks \
15674 DSYMUTIL \
15675 NMEDIT \
15676 LIPO \
15677 OTOOL \
15678 OTOOL64 \
15679 shrext_cmds \
15680 export_dynamic_flag_spec \
15681 whole_archive_flag_spec \
15682 compiler_needs_object \
15683 with_gnu_ld \
15684 allow_undefined_flag \
15685 no_undefined_flag \
15686 hardcode_libdir_flag_spec \
15687 hardcode_libdir_flag_spec_ld \
15688 hardcode_libdir_separator \
15689 fix_srcfile_path \
15690 exclude_expsyms \
15691 include_expsyms \
15692 file_list_spec \
15693 variables_saved_for_relink \
15694 libname_spec \
15695 library_names_spec \
15696 soname_spec \
15697 install_override_mode \
15698 finish_eval \
15699 old_striplib \
15700 striplib \
15701 compiler_lib_search_dirs \
15702 predep_objects \
15703 postdep_objects \
15704 predeps \
15705 postdeps \
15706 compiler_lib_search_path \
15707 LD_CXX \
15708 reload_flag_CXX \
15709 compiler_CXX \
15710 lt_prog_compiler_no_builtin_flag_CXX \
15711 lt_prog_compiler_wl_CXX \
15712 lt_prog_compiler_pic_CXX \
15713 lt_prog_compiler_static_CXX \
15714 lt_cv_prog_compiler_c_o_CXX \
15715 export_dynamic_flag_spec_CXX \
15716 whole_archive_flag_spec_CXX \
15717 compiler_needs_object_CXX \
15718 with_gnu_ld_CXX \
15719 allow_undefined_flag_CXX \
15720 no_undefined_flag_CXX \
15721 hardcode_libdir_flag_spec_CXX \
15722 hardcode_libdir_flag_spec_ld_CXX \
15723 hardcode_libdir_separator_CXX \
15724 fix_srcfile_path_CXX \
15725 exclude_expsyms_CXX \
15726 include_expsyms_CXX \
15727 file_list_spec_CXX \
15728 compiler_lib_search_dirs_CXX \
15729 predep_objects_CXX \
15730 postdep_objects_CXX \
15731 predeps_CXX \
15732 postdeps_CXX \
15733 compiler_lib_search_path_CXX; do
15734 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15735 *[\\\\\\\`\\"\\\$]*)
15736 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15739 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15741 esac
15742 done
15744 # Double-quote double-evaled strings.
15745 for var in reload_cmds \
15746 old_postinstall_cmds \
15747 old_postuninstall_cmds \
15748 old_archive_cmds \
15749 extract_expsyms_cmds \
15750 old_archive_from_new_cmds \
15751 old_archive_from_expsyms_cmds \
15752 archive_cmds \
15753 archive_expsym_cmds \
15754 module_cmds \
15755 module_expsym_cmds \
15756 export_symbols_cmds \
15757 prelink_cmds \
15758 postinstall_cmds \
15759 postuninstall_cmds \
15760 finish_cmds \
15761 sys_lib_search_path_spec \
15762 sys_lib_dlsearch_path_spec \
15763 reload_cmds_CXX \
15764 old_archive_cmds_CXX \
15765 old_archive_from_new_cmds_CXX \
15766 old_archive_from_expsyms_cmds_CXX \
15767 archive_cmds_CXX \
15768 archive_expsym_cmds_CXX \
15769 module_cmds_CXX \
15770 module_expsym_cmds_CXX \
15771 export_symbols_cmds_CXX \
15772 prelink_cmds_CXX; do
15773 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15774 *[\\\\\\\`\\"\\\$]*)
15775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15780 esac
15781 done
15783 ac_aux_dir='$ac_aux_dir'
15784 xsi_shell='$xsi_shell'
15785 lt_shell_append='$lt_shell_append'
15787 # See if we are running on zsh, and set the options which allow our
15788 # commands through without removal of \ escapes INIT.
15789 if test -n "\${ZSH_VERSION+set}" ; then
15790 setopt NO_GLOB_SUBST
15794 PACKAGE='$PACKAGE'
15795 VERSION='$VERSION'
15796 TIMESTAMP='$TIMESTAMP'
15797 RM='$RM'
15798 ofile='$ofile'
15805 _ACEOF
15807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15809 # Handling of arguments.
15810 for ac_config_target in $ac_config_targets
15812 case $ac_config_target in
15813 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
15814 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15815 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15818 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15819 esac
15820 done
15823 # If the user did not use the arguments to specify the items to instantiate,
15824 # then the envvar interface is used. Set only those that are not.
15825 # We use the long form for the default assignment because of an extremely
15826 # bizarre bug on SunOS 4.1.3.
15827 if $ac_need_defaults; then
15828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15830 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15833 # Have a temporary directory for convenience. Make it in the build tree
15834 # simply because there is no reason against having it here, and in addition,
15835 # creating and moving files from /tmp can sometimes cause problems.
15836 # Hook for its removal unless debugging.
15837 # Note that there is a small window in which the directory will not be cleaned:
15838 # after its creation but before its name has been assigned to `$tmp'.
15839 $debug ||
15841 tmp=
15842 trap 'exit_status=$?
15843 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15845 trap 'as_fn_exit 1' 1 2 13 15
15847 # Create a (secure) tmp directory for tmp files.
15850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15851 test -n "$tmp" && test -d "$tmp"
15852 } ||
15854 tmp=./conf$$-$RANDOM
15855 (umask 077 && mkdir "$tmp")
15856 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15858 # Set up the scripts for CONFIG_FILES section.
15859 # No need to generate them if there are no CONFIG_FILES.
15860 # This happens for instance with `./config.status config.h'.
15861 if test -n "$CONFIG_FILES"; then
15864 ac_cr=`echo X | tr X '\015'`
15865 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15866 # But we know of no other shell where ac_cr would be empty at this
15867 # point, so we can use a bashism as a fallback.
15868 if test "x$ac_cr" = x; then
15869 eval ac_cr=\$\'\\r\'
15871 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15872 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15873 ac_cs_awk_cr='\r'
15874 else
15875 ac_cs_awk_cr=$ac_cr
15878 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15879 _ACEOF
15883 echo "cat >conf$$subs.awk <<_ACEOF" &&
15884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15885 echo "_ACEOF"
15886 } >conf$$subs.sh ||
15887 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15888 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15889 ac_delim='%!_!# '
15890 for ac_last_try in false false false false false :; do
15891 . ./conf$$subs.sh ||
15892 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15895 if test $ac_delim_n = $ac_delim_num; then
15896 break
15897 elif $ac_last_try; then
15898 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15899 else
15900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15902 done
15903 rm -f conf$$subs.sh
15905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15906 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15907 _ACEOF
15908 sed -n '
15910 s/^/S["/; s/!.*/"]=/
15913 s/^[^!]*!//
15914 :repl
15915 t repl
15916 s/'"$ac_delim"'$//
15917 t delim
15920 s/\(.\{148\}\).*/\1/
15921 t more1
15922 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15925 b repl
15926 :more1
15927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15930 s/.\{148\}//
15931 t nl
15932 :delim
15934 s/\(.\{148\}\).*/\1/
15935 t more2
15936 s/["\\]/\\&/g; s/^/"/; s/$/"/
15939 :more2
15940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15943 s/.\{148\}//
15944 t delim
15945 ' <conf$$subs.awk | sed '
15946 /^[^""]/{
15948 s/\n//
15950 ' >>$CONFIG_STATUS || ac_write_fail=1
15951 rm -f conf$$subs.awk
15952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15953 _ACAWK
15954 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15955 for (key in S) S_is_set[key] = 1
15956 FS = "\a"
15960 line = $ 0
15961 nfields = split(line, field, "@")
15962 substed = 0
15963 len = length(field[1])
15964 for (i = 2; i < nfields; i++) {
15965 key = field[i]
15966 keylen = length(key)
15967 if (S_is_set[key]) {
15968 value = S[key]
15969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15970 len += length(value) + length(field[++i])
15971 substed = 1
15972 } else
15973 len += 1 + keylen
15976 print line
15979 _ACAWK
15980 _ACEOF
15981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15982 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15983 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15984 else
15986 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15987 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15988 _ACEOF
15990 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15991 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15992 # trailing colons and then remove the whole line if VPATH becomes empty
15993 # (actually we leave an empty line to preserve line numbers).
15994 if test "x$srcdir" = x.; then
15995 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15996 s/:*\$(srcdir):*/:/
15997 s/:*\${srcdir}:*/:/
15998 s/:*@srcdir@:*/:/
15999 s/^\([^=]*=[ ]*\):*/\1/
16000 s/:*$//
16001 s/^[^=]*=[ ]*$//
16005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006 fi # test -n "$CONFIG_FILES"
16008 # Set up the scripts for CONFIG_HEADERS section.
16009 # No need to generate them if there are no CONFIG_HEADERS.
16010 # This happens for instance with `./config.status Makefile'.
16011 if test -n "$CONFIG_HEADERS"; then
16012 cat >"$tmp/defines.awk" <<\_ACAWK ||
16013 BEGIN {
16014 _ACEOF
16016 # Transform confdefs.h into an awk script `defines.awk', embedded as
16017 # here-document in config.status, that substitutes the proper values into
16018 # config.h.in to produce config.h.
16020 # Create a delimiter string that does not exist in confdefs.h, to ease
16021 # handling of long lines.
16022 ac_delim='%!_!# '
16023 for ac_last_try in false false :; do
16024 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16025 if test -z "$ac_t"; then
16026 break
16027 elif $ac_last_try; then
16028 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16029 else
16030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16032 done
16034 # For the awk script, D is an array of macro values keyed by name,
16035 # likewise P contains macro parameters if any. Preserve backslash
16036 # newline sequences.
16038 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16039 sed -n '
16040 s/.\{148\}/&'"$ac_delim"'/g
16041 t rset
16042 :rset
16043 s/^[ ]*#[ ]*define[ ][ ]*/ /
16044 t def
16046 :def
16047 s/\\$//
16048 t bsnl
16049 s/["\\]/\\&/g
16050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16051 D["\1"]=" \3"/p
16052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16054 :bsnl
16055 s/["\\]/\\&/g
16056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16057 D["\1"]=" \3\\\\\\n"\\/p
16058 t cont
16059 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16060 t cont
16062 :cont
16064 s/.\{148\}/&'"$ac_delim"'/g
16065 t clear
16066 :clear
16067 s/\\$//
16068 t bsnlc
16069 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16071 :bsnlc
16072 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16073 b cont
16074 ' <confdefs.h | sed '
16075 s/'"$ac_delim"'/"\\\
16076 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16079 for (key in D) D_is_set[key] = 1
16080 FS = "\a"
16082 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16083 line = \$ 0
16084 split(line, arg, " ")
16085 if (arg[1] == "#") {
16086 defundef = arg[2]
16087 mac1 = arg[3]
16088 } else {
16089 defundef = substr(arg[1], 2)
16090 mac1 = arg[2]
16092 split(mac1, mac2, "(") #)
16093 macro = mac2[1]
16094 prefix = substr(line, 1, index(line, defundef) - 1)
16095 if (D_is_set[macro]) {
16096 # Preserve the white space surrounding the "#".
16097 print prefix "define", macro P[macro] D[macro]
16098 next
16099 } else {
16100 # Replace #undef with comments. This is necessary, for example,
16101 # in the case of _POSIX_SOURCE, which is predefined and required
16102 # on some systems where configure will not decide to define it.
16103 if (defundef == "undef") {
16104 print "/*", prefix defundef, macro, "*/"
16105 next
16109 { print }
16110 _ACAWK
16111 _ACEOF
16112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16114 fi # test -n "$CONFIG_HEADERS"
16117 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16118 shift
16119 for ac_tag
16121 case $ac_tag in
16122 :[FHLC]) ac_mode=$ac_tag; continue;;
16123 esac
16124 case $ac_mode$ac_tag in
16125 :[FHL]*:*);;
16126 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16127 :[FH]-) ac_tag=-:-;;
16128 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16129 esac
16130 ac_save_IFS=$IFS
16131 IFS=:
16132 set x $ac_tag
16133 IFS=$ac_save_IFS
16134 shift
16135 ac_file=$1
16136 shift
16138 case $ac_mode in
16139 :L) ac_source=$1;;
16140 :[FH])
16141 ac_file_inputs=
16142 for ac_f
16144 case $ac_f in
16145 -) ac_f="$tmp/stdin";;
16146 *) # Look for the file first in the build tree, then in the source tree
16147 # (if the path is not absolute). The absolute path cannot be DOS-style,
16148 # because $ac_f cannot contain `:'.
16149 test -f "$ac_f" ||
16150 case $ac_f in
16151 [\\/$]*) false;;
16152 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16153 esac ||
16154 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16155 esac
16156 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16157 as_fn_append ac_file_inputs " '$ac_f'"
16158 done
16160 # Let's still pretend it is `configure' which instantiates (i.e., don't
16161 # use $as_me), people would be surprised to read:
16162 # /* config.h. Generated by config.status. */
16163 configure_input='Generated from '`
16164 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16165 `' by configure.'
16166 if test x"$ac_file" != x-; then
16167 configure_input="$ac_file. $configure_input"
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16169 $as_echo "$as_me: creating $ac_file" >&6;}
16171 # Neutralize special characters interpreted by sed in replacement strings.
16172 case $configure_input in #(
16173 *\&* | *\|* | *\\* )
16174 ac_sed_conf_input=`$as_echo "$configure_input" |
16175 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16176 *) ac_sed_conf_input=$configure_input;;
16177 esac
16179 case $ac_tag in
16180 *:-:* | *:-) cat >"$tmp/stdin" \
16181 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16182 esac
16184 esac
16186 ac_dir=`$as_dirname -- "$ac_file" ||
16187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16188 X"$ac_file" : 'X\(//\)[^/]' \| \
16189 X"$ac_file" : 'X\(//\)$' \| \
16190 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16191 $as_echo X"$ac_file" |
16192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16193 s//\1/
16196 /^X\(\/\/\)[^/].*/{
16197 s//\1/
16200 /^X\(\/\/\)$/{
16201 s//\1/
16204 /^X\(\/\).*/{
16205 s//\1/
16208 s/.*/./; q'`
16209 as_dir="$ac_dir"; as_fn_mkdir_p
16210 ac_builddir=.
16212 case "$ac_dir" in
16213 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16215 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16216 # A ".." for each directory in $ac_dir_suffix.
16217 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16218 case $ac_top_builddir_sub in
16219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16221 esac ;;
16222 esac
16223 ac_abs_top_builddir=$ac_pwd
16224 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16225 # for backward compatibility:
16226 ac_top_builddir=$ac_top_build_prefix
16228 case $srcdir in
16229 .) # We are building in place.
16230 ac_srcdir=.
16231 ac_top_srcdir=$ac_top_builddir_sub
16232 ac_abs_top_srcdir=$ac_pwd ;;
16233 [\\/]* | ?:[\\/]* ) # Absolute name.
16234 ac_srcdir=$srcdir$ac_dir_suffix;
16235 ac_top_srcdir=$srcdir
16236 ac_abs_top_srcdir=$srcdir ;;
16237 *) # Relative name.
16238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16239 ac_top_srcdir=$ac_top_build_prefix$srcdir
16240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16241 esac
16242 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16245 case $ac_mode in
16248 # CONFIG_FILE
16251 case $INSTALL in
16252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16254 esac
16255 ac_MKDIR_P=$MKDIR_P
16256 case $MKDIR_P in
16257 [\\/$]* | ?:[\\/]* ) ;;
16258 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16259 esac
16260 _ACEOF
16262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 # If the template does not know about datarootdir, expand it.
16264 # FIXME: This hack should be removed a few years after 2.60.
16265 ac_datarootdir_hack=; ac_datarootdir_seen=
16266 ac_sed_dataroot='
16267 /datarootdir/ {
16271 /@datadir@/p
16272 /@docdir@/p
16273 /@infodir@/p
16274 /@localedir@/p
16275 /@mandir@/p'
16276 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16277 *datarootdir*) ac_datarootdir_seen=yes;;
16278 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16280 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16281 _ACEOF
16282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16283 ac_datarootdir_hack='
16284 s&@datadir@&$datadir&g
16285 s&@docdir@&$docdir&g
16286 s&@infodir@&$infodir&g
16287 s&@localedir@&$localedir&g
16288 s&@mandir@&$mandir&g
16289 s&\\\${datarootdir}&$datarootdir&g' ;;
16290 esac
16291 _ACEOF
16293 # Neutralize VPATH when `$srcdir' = `.'.
16294 # Shell code in configure.ac might set extrasub.
16295 # FIXME: do we really want to maintain this feature?
16296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16297 ac_sed_extra="$ac_vpsub
16298 $extrasub
16299 _ACEOF
16300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16303 s|@configure_input@|$ac_sed_conf_input|;t t
16304 s&@top_builddir@&$ac_top_builddir_sub&;t t
16305 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16306 s&@srcdir@&$ac_srcdir&;t t
16307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16308 s&@top_srcdir@&$ac_top_srcdir&;t t
16309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16310 s&@builddir@&$ac_builddir&;t t
16311 s&@abs_builddir@&$ac_abs_builddir&;t t
16312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16313 s&@INSTALL@&$ac_INSTALL&;t t
16314 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16315 $ac_datarootdir_hack
16317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16318 || as_fn_error "could not create $ac_file" "$LINENO" 5
16320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16321 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16324 which seems to be undefined. Please make sure it is defined." >&5
16325 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16326 which seems to be undefined. Please make sure it is defined." >&2;}
16328 rm -f "$tmp/stdin"
16329 case $ac_file in
16330 -) cat "$tmp/out" && rm -f "$tmp/out";;
16331 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16332 esac \
16333 || as_fn_error "could not create $ac_file" "$LINENO" 5
16337 # CONFIG_HEADER
16339 if test x"$ac_file" != x-; then
16341 $as_echo "/* $configure_input */" \
16342 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16343 } >"$tmp/config.h" \
16344 || as_fn_error "could not create $ac_file" "$LINENO" 5
16345 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16348 else
16349 rm -f "$ac_file"
16350 mv "$tmp/config.h" "$ac_file" \
16351 || as_fn_error "could not create $ac_file" "$LINENO" 5
16353 else
16354 $as_echo "/* $configure_input */" \
16355 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16356 || as_fn_error "could not create -" "$LINENO" 5
16358 # Compute "$ac_file"'s index in $config_headers.
16359 _am_arg="$ac_file"
16360 _am_stamp_count=1
16361 for _am_header in $config_headers :; do
16362 case $_am_header in
16363 $_am_arg | $_am_arg:* )
16364 break ;;
16366 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16367 esac
16368 done
16369 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16370 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$_am_arg" : 'X\(//\)[^/]' \| \
16372 X"$_am_arg" : 'X\(//\)$' \| \
16373 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16374 $as_echo X"$_am_arg" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16376 s//\1/
16379 /^X\(\/\/\)[^/].*/{
16380 s//\1/
16383 /^X\(\/\/\)$/{
16384 s//\1/
16387 /^X\(\/\).*/{
16388 s//\1/
16391 s/.*/./; q'`/stamp-h$_am_stamp_count
16394 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16395 $as_echo "$as_me: executing $ac_file commands" >&6;}
16397 esac
16400 case $ac_file$ac_mode in
16401 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16402 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16403 # are listed without --file. Let's play safe and only enable the eval
16404 # if we detect the quoting.
16405 case $CONFIG_FILES in
16406 *\'*) eval set x "$CONFIG_FILES" ;;
16407 *) set x $CONFIG_FILES ;;
16408 esac
16409 shift
16410 for mf
16412 # Strip MF so we end up with the name of the file.
16413 mf=`echo "$mf" | sed -e 's/:.*$//'`
16414 # Check whether this is an Automake generated Makefile or not.
16415 # We used to match only the files named `Makefile.in', but
16416 # some people rename them; so instead we look at the file content.
16417 # Grep'ing the first line is not enough: some people post-process
16418 # each Makefile.in and add a new line on top of each file to say so.
16419 # Grep'ing the whole file is not good either: AIX grep has a line
16420 # limit of 2048, but all sed's we know have understand at least 4000.
16421 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16422 dirpart=`$as_dirname -- "$mf" ||
16423 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16424 X"$mf" : 'X\(//\)[^/]' \| \
16425 X"$mf" : 'X\(//\)$' \| \
16426 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16427 $as_echo X"$mf" |
16428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16429 s//\1/
16432 /^X\(\/\/\)[^/].*/{
16433 s//\1/
16436 /^X\(\/\/\)$/{
16437 s//\1/
16440 /^X\(\/\).*/{
16441 s//\1/
16444 s/.*/./; q'`
16445 else
16446 continue
16448 # Extract the definition of DEPDIR, am__include, and am__quote
16449 # from the Makefile without running `make'.
16450 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16451 test -z "$DEPDIR" && continue
16452 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16453 test -z "am__include" && continue
16454 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16455 # When using ansi2knr, U may be empty or an underscore; expand it
16456 U=`sed -n 's/^U = //p' < "$mf"`
16457 # Find all dependency output files, they are included files with
16458 # $(DEPDIR) in their names. We invoke sed twice because it is the
16459 # simplest approach to changing $(DEPDIR) to its actual value in the
16460 # expansion.
16461 for file in `sed -n "
16462 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16463 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16464 # Make sure the directory exists.
16465 test -f "$dirpart/$file" && continue
16466 fdir=`$as_dirname -- "$file" ||
16467 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468 X"$file" : 'X\(//\)[^/]' \| \
16469 X"$file" : 'X\(//\)$' \| \
16470 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16471 $as_echo X"$file" |
16472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16473 s//\1/
16476 /^X\(\/\/\)[^/].*/{
16477 s//\1/
16480 /^X\(\/\/\)$/{
16481 s//\1/
16484 /^X\(\/\).*/{
16485 s//\1/
16488 s/.*/./; q'`
16489 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16490 # echo "creating $dirpart/$file"
16491 echo '# dummy' > "$dirpart/$file"
16492 done
16493 done
16496 "libtool":C)
16498 # See if we are running on zsh, and set the options which allow our
16499 # commands through without removal of \ escapes.
16500 if test -n "${ZSH_VERSION+set}" ; then
16501 setopt NO_GLOB_SUBST
16504 cfgfile="${ofile}T"
16505 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16506 $RM "$cfgfile"
16508 cat <<_LT_EOF >> "$cfgfile"
16509 #! $SHELL
16511 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16512 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16514 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16516 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16517 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16518 # Written by Gordon Matzigkeit, 1996
16520 # This file is part of GNU Libtool.
16522 # GNU Libtool is free software; you can redistribute it and/or
16523 # modify it under the terms of the GNU General Public License as
16524 # published by the Free Software Foundation; either version 2 of
16525 # the License, or (at your option) any later version.
16527 # As a special exception to the GNU General Public License,
16528 # if you distribute this file as part of a program or library that
16529 # is built using GNU Libtool, you may include this file under the
16530 # same distribution terms that you use for the rest of that program.
16532 # GNU Libtool is distributed in the hope that it will be useful,
16533 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16534 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16535 # GNU General Public License for more details.
16537 # You should have received a copy of the GNU General Public License
16538 # along with GNU Libtool; see the file COPYING. If not, a copy
16539 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16540 # obtained by writing to the Free Software Foundation, Inc.,
16541 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16544 # The names of the tagged configurations supported by this script.
16545 available_tags="CXX "
16547 # ### BEGIN LIBTOOL CONFIG
16549 # Which release of libtool.m4 was used?
16550 macro_version=$macro_version
16551 macro_revision=$macro_revision
16553 # Whether or not to build static libraries.
16554 build_old_libs=$enable_static
16556 # Whether or not to build shared libraries.
16557 build_libtool_libs=$enable_shared
16559 # What type of objects to build.
16560 pic_mode=$pic_mode
16562 # Whether or not to optimize for fast installation.
16563 fast_install=$enable_fast_install
16565 # Shell to use when invoking shell scripts.
16566 SHELL=$lt_SHELL
16568 # An echo program that protects backslashes.
16569 ECHO=$lt_ECHO
16571 # The host system.
16572 host_alias=$host_alias
16573 host=$host
16574 host_os=$host_os
16576 # The build system.
16577 build_alias=$build_alias
16578 build=$build
16579 build_os=$build_os
16581 # A sed program that does not truncate output.
16582 SED=$lt_SED
16584 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16585 Xsed="\$SED -e 1s/^X//"
16587 # A grep program that handles long lines.
16588 GREP=$lt_GREP
16590 # An ERE matcher.
16591 EGREP=$lt_EGREP
16593 # A literal string matcher.
16594 FGREP=$lt_FGREP
16596 # A BSD- or MS-compatible name lister.
16597 NM=$lt_NM
16599 # Whether we need soft or hard links.
16600 LN_S=$lt_LN_S
16602 # What is the maximum length of a command?
16603 max_cmd_len=$max_cmd_len
16605 # Object file suffix (normally "o").
16606 objext=$ac_objext
16608 # Executable file suffix (normally "").
16609 exeext=$exeext
16611 # whether the shell understands "unset".
16612 lt_unset=$lt_unset
16614 # turn spaces into newlines.
16615 SP2NL=$lt_lt_SP2NL
16617 # turn newlines into spaces.
16618 NL2SP=$lt_lt_NL2SP
16620 # An object symbol dumper.
16621 OBJDUMP=$lt_OBJDUMP
16623 # Method to check whether dependent libraries are shared objects.
16624 deplibs_check_method=$lt_deplibs_check_method
16626 # Command to use when deplibs_check_method == "file_magic".
16627 file_magic_cmd=$lt_file_magic_cmd
16629 # The archiver.
16630 AR=$lt_AR
16631 AR_FLAGS=$lt_AR_FLAGS
16633 # A symbol stripping program.
16634 STRIP=$lt_STRIP
16636 # Commands used to install an old-style archive.
16637 RANLIB=$lt_RANLIB
16638 old_postinstall_cmds=$lt_old_postinstall_cmds
16639 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16641 # Whether to use a lock for old archive extraction.
16642 lock_old_archive_extraction=$lock_old_archive_extraction
16644 # A C compiler.
16645 LTCC=$lt_CC
16647 # LTCC compiler flags.
16648 LTCFLAGS=$lt_CFLAGS
16650 # Take the output of nm and produce a listing of raw symbols and C names.
16651 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16653 # Transform the output of nm in a proper C declaration.
16654 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16656 # Transform the output of nm in a C name address pair.
16657 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16659 # Transform the output of nm in a C name address pair when lib prefix is needed.
16660 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16662 # The name of the directory that contains temporary libtool files.
16663 objdir=$objdir
16665 # Used to examine libraries when file_magic_cmd begins with "file".
16666 MAGIC_CMD=$MAGIC_CMD
16668 # Must we lock files when doing compilation?
16669 need_locks=$lt_need_locks
16671 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16672 DSYMUTIL=$lt_DSYMUTIL
16674 # Tool to change global to local symbols on Mac OS X.
16675 NMEDIT=$lt_NMEDIT
16677 # Tool to manipulate fat objects and archives on Mac OS X.
16678 LIPO=$lt_LIPO
16680 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16681 OTOOL=$lt_OTOOL
16683 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16684 OTOOL64=$lt_OTOOL64
16686 # Old archive suffix (normally "a").
16687 libext=$libext
16689 # Shared library suffix (normally ".so").
16690 shrext_cmds=$lt_shrext_cmds
16692 # The commands to extract the exported symbol list from a shared archive.
16693 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16695 # Variables whose values should be saved in libtool wrapper scripts and
16696 # restored at link time.
16697 variables_saved_for_relink=$lt_variables_saved_for_relink
16699 # Do we need the "lib" prefix for modules?
16700 need_lib_prefix=$need_lib_prefix
16702 # Do we need a version for libraries?
16703 need_version=$need_version
16705 # Library versioning type.
16706 version_type=$version_type
16708 # Shared library runtime path variable.
16709 runpath_var=$runpath_var
16711 # Shared library path variable.
16712 shlibpath_var=$shlibpath_var
16714 # Is shlibpath searched before the hard-coded library search path?
16715 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16717 # Format of library name prefix.
16718 libname_spec=$lt_libname_spec
16720 # List of archive names. First name is the real one, the rest are links.
16721 # The last name is the one that the linker finds with -lNAME
16722 library_names_spec=$lt_library_names_spec
16724 # The coded name of the library, if different from the real name.
16725 soname_spec=$lt_soname_spec
16727 # Permission mode override for installation of shared libraries.
16728 install_override_mode=$lt_install_override_mode
16730 # Command to use after installation of a shared archive.
16731 postinstall_cmds=$lt_postinstall_cmds
16733 # Command to use after uninstallation of a shared archive.
16734 postuninstall_cmds=$lt_postuninstall_cmds
16736 # Commands used to finish a libtool library installation in a directory.
16737 finish_cmds=$lt_finish_cmds
16739 # As "finish_cmds", except a single script fragment to be evaled but
16740 # not shown.
16741 finish_eval=$lt_finish_eval
16743 # Whether we should hardcode library paths into libraries.
16744 hardcode_into_libs=$hardcode_into_libs
16746 # Compile-time system search path for libraries.
16747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16749 # Run-time system search path for libraries.
16750 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16752 # Whether dlopen is supported.
16753 dlopen_support=$enable_dlopen
16755 # Whether dlopen of programs is supported.
16756 dlopen_self=$enable_dlopen_self
16758 # Whether dlopen of statically linked programs is supported.
16759 dlopen_self_static=$enable_dlopen_self_static
16761 # Commands to strip libraries.
16762 old_striplib=$lt_old_striplib
16763 striplib=$lt_striplib
16766 # The linker used to build libraries.
16767 LD=$lt_LD
16769 # How to create reloadable object files.
16770 reload_flag=$lt_reload_flag
16771 reload_cmds=$lt_reload_cmds
16773 # Commands used to build an old-style archive.
16774 old_archive_cmds=$lt_old_archive_cmds
16776 # A language specific compiler.
16777 CC=$lt_compiler
16779 # Is the compiler the GNU compiler?
16780 with_gcc=$GCC
16782 # Compiler flag to turn off builtin functions.
16783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16785 # How to pass a linker flag through the compiler.
16786 wl=$lt_lt_prog_compiler_wl
16788 # Additional compiler flags for building library objects.
16789 pic_flag=$lt_lt_prog_compiler_pic
16791 # Compiler flag to prevent dynamic linking.
16792 link_static_flag=$lt_lt_prog_compiler_static
16794 # Does compiler simultaneously support -c and -o options?
16795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16797 # Whether or not to add -lc for building shared libraries.
16798 build_libtool_need_lc=$archive_cmds_need_lc
16800 # Whether or not to disallow shared libs when runtime libs are static.
16801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16803 # Compiler flag to allow reflexive dlopens.
16804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16806 # Compiler flag to generate shared objects directly from archives.
16807 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16809 # Whether the compiler copes with passing no objects directly.
16810 compiler_needs_object=$lt_compiler_needs_object
16812 # Create an old-style archive from a shared archive.
16813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16815 # Create a temporary old-style archive to link instead of a shared archive.
16816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16818 # Commands used to build a shared archive.
16819 archive_cmds=$lt_archive_cmds
16820 archive_expsym_cmds=$lt_archive_expsym_cmds
16822 # Commands used to build a loadable module if different from building
16823 # a shared archive.
16824 module_cmds=$lt_module_cmds
16825 module_expsym_cmds=$lt_module_expsym_cmds
16827 # Whether we are building with GNU ld or not.
16828 with_gnu_ld=$lt_with_gnu_ld
16830 # Flag that allows shared libraries with undefined symbols to be built.
16831 allow_undefined_flag=$lt_allow_undefined_flag
16833 # Flag that enforces no undefined symbols.
16834 no_undefined_flag=$lt_no_undefined_flag
16836 # Flag to hardcode \$libdir into a binary during linking.
16837 # This must work even if \$libdir does not exist
16838 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16840 # If ld is used when linking, flag to hardcode \$libdir into a binary
16841 # during linking. This must work even if \$libdir does not exist.
16842 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16844 # Whether we need a single "-rpath" flag with a separated argument.
16845 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16847 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16848 # DIR into the resulting binary.
16849 hardcode_direct=$hardcode_direct
16851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16852 # DIR into the resulting binary and the resulting library dependency is
16853 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16854 # library is relocated.
16855 hardcode_direct_absolute=$hardcode_direct_absolute
16857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16858 # into the resulting binary.
16859 hardcode_minus_L=$hardcode_minus_L
16861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16862 # into the resulting binary.
16863 hardcode_shlibpath_var=$hardcode_shlibpath_var
16865 # Set to "yes" if building a shared library automatically hardcodes DIR
16866 # into the library and all subsequent libraries and executables linked
16867 # against it.
16868 hardcode_automatic=$hardcode_automatic
16870 # Set to yes if linker adds runtime paths of dependent libraries
16871 # to runtime path list.
16872 inherit_rpath=$inherit_rpath
16874 # Whether libtool must link a program against all its dependency libraries.
16875 link_all_deplibs=$link_all_deplibs
16877 # Fix the shell variable \$srcfile for the compiler.
16878 fix_srcfile_path=$lt_fix_srcfile_path
16880 # Set to "yes" if exported symbols are required.
16881 always_export_symbols=$always_export_symbols
16883 # The commands to list exported symbols.
16884 export_symbols_cmds=$lt_export_symbols_cmds
16886 # Symbols that should not be listed in the preloaded symbols.
16887 exclude_expsyms=$lt_exclude_expsyms
16889 # Symbols that must always be exported.
16890 include_expsyms=$lt_include_expsyms
16892 # Commands necessary for linking programs (against libraries) with templates.
16893 prelink_cmds=$lt_prelink_cmds
16895 # Specify filename containing input files.
16896 file_list_spec=$lt_file_list_spec
16898 # How to hardcode a shared library path into an executable.
16899 hardcode_action=$hardcode_action
16901 # The directories searched by this compiler when creating a shared library.
16902 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16904 # Dependencies to place before and after the objects being linked to
16905 # create a shared library.
16906 predep_objects=$lt_predep_objects
16907 postdep_objects=$lt_postdep_objects
16908 predeps=$lt_predeps
16909 postdeps=$lt_postdeps
16911 # The library search path used internally by the compiler when linking
16912 # a shared library.
16913 compiler_lib_search_path=$lt_compiler_lib_search_path
16915 # ### END LIBTOOL CONFIG
16917 _LT_EOF
16919 case $host_os in
16920 aix3*)
16921 cat <<\_LT_EOF >> "$cfgfile"
16922 # AIX sometimes has problems with the GCC collect2 program. For some
16923 # reason, if we set the COLLECT_NAMES environment variable, the problems
16924 # vanish in a puff of smoke.
16925 if test "X${COLLECT_NAMES+set}" != Xset; then
16926 COLLECT_NAMES=
16927 export COLLECT_NAMES
16929 _LT_EOF
16931 esac
16934 ltmain="$ac_aux_dir/ltmain.sh"
16937 # We use sed instead of cat because bash on DJGPP gets confused if
16938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16939 # text mode, it properly converts lines to CR/LF. This bash problem
16940 # is reportedly fixed, but why not run on old versions too?
16941 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16942 || (rm -f "$cfgfile"; exit 1)
16944 case $xsi_shell in
16945 yes)
16946 cat << \_LT_EOF >> "$cfgfile"
16948 # func_dirname file append nondir_replacement
16949 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16950 # otherwise set result to NONDIR_REPLACEMENT.
16951 func_dirname ()
16953 case ${1} in
16954 */*) func_dirname_result="${1%/*}${2}" ;;
16955 * ) func_dirname_result="${3}" ;;
16956 esac
16959 # func_basename file
16960 func_basename ()
16962 func_basename_result="${1##*/}"
16965 # func_dirname_and_basename file append nondir_replacement
16966 # perform func_basename and func_dirname in a single function
16967 # call:
16968 # dirname: Compute the dirname of FILE. If nonempty,
16969 # add APPEND to the result, otherwise set result
16970 # to NONDIR_REPLACEMENT.
16971 # value returned in "$func_dirname_result"
16972 # basename: Compute filename of FILE.
16973 # value retuned in "$func_basename_result"
16974 # Implementation must be kept synchronized with func_dirname
16975 # and func_basename. For efficiency, we do not delegate to
16976 # those functions but instead duplicate the functionality here.
16977 func_dirname_and_basename ()
16979 case ${1} in
16980 */*) func_dirname_result="${1%/*}${2}" ;;
16981 * ) func_dirname_result="${3}" ;;
16982 esac
16983 func_basename_result="${1##*/}"
16986 # func_stripname prefix suffix name
16987 # strip PREFIX and SUFFIX off of NAME.
16988 # PREFIX and SUFFIX must not contain globbing or regex special
16989 # characters, hashes, percent signs, but SUFFIX may contain a leading
16990 # dot (in which case that matches only a dot).
16991 func_stripname ()
16993 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16994 # positional parameters, so assign one to ordinary parameter first.
16995 func_stripname_result=${3}
16996 func_stripname_result=${func_stripname_result#"${1}"}
16997 func_stripname_result=${func_stripname_result%"${2}"}
17000 # func_opt_split
17001 func_opt_split ()
17003 func_opt_split_opt=${1%%=*}
17004 func_opt_split_arg=${1#*=}
17007 # func_lo2o object
17008 func_lo2o ()
17010 case ${1} in
17011 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17012 *) func_lo2o_result=${1} ;;
17013 esac
17016 # func_xform libobj-or-source
17017 func_xform ()
17019 func_xform_result=${1%.*}.lo
17022 # func_arith arithmetic-term...
17023 func_arith ()
17025 func_arith_result=$(( $* ))
17028 # func_len string
17029 # STRING may not start with a hyphen.
17030 func_len ()
17032 func_len_result=${#1}
17035 _LT_EOF
17037 *) # Bourne compatible functions.
17038 cat << \_LT_EOF >> "$cfgfile"
17040 # func_dirname file append nondir_replacement
17041 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17042 # otherwise set result to NONDIR_REPLACEMENT.
17043 func_dirname ()
17045 # Extract subdirectory from the argument.
17046 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17047 if test "X$func_dirname_result" = "X${1}"; then
17048 func_dirname_result="${3}"
17049 else
17050 func_dirname_result="$func_dirname_result${2}"
17054 # func_basename file
17055 func_basename ()
17057 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17061 # func_stripname prefix suffix name
17062 # strip PREFIX and SUFFIX off of NAME.
17063 # PREFIX and SUFFIX must not contain globbing or regex special
17064 # characters, hashes, percent signs, but SUFFIX may contain a leading
17065 # dot (in which case that matches only a dot).
17066 # func_strip_suffix prefix name
17067 func_stripname ()
17069 case ${2} in
17070 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17071 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17072 esac
17075 # sed scripts:
17076 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17077 my_sed_long_arg='1s/^-[^=]*=//'
17079 # func_opt_split
17080 func_opt_split ()
17082 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17083 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17086 # func_lo2o object
17087 func_lo2o ()
17089 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17092 # func_xform libobj-or-source
17093 func_xform ()
17095 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17098 # func_arith arithmetic-term...
17099 func_arith ()
17101 func_arith_result=`expr "$@"`
17104 # func_len string
17105 # STRING may not start with a hyphen.
17106 func_len ()
17108 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17111 _LT_EOF
17112 esac
17114 case $lt_shell_append in
17115 yes)
17116 cat << \_LT_EOF >> "$cfgfile"
17118 # func_append var value
17119 # Append VALUE to the end of shell variable VAR.
17120 func_append ()
17122 eval "$1+=\$2"
17124 _LT_EOF
17127 cat << \_LT_EOF >> "$cfgfile"
17129 # func_append var value
17130 # Append VALUE to the end of shell variable VAR.
17131 func_append ()
17133 eval "$1=\$$1\$2"
17136 _LT_EOF
17138 esac
17141 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17142 || (rm -f "$cfgfile"; exit 1)
17144 mv -f "$cfgfile" "$ofile" ||
17145 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17146 chmod +x "$ofile"
17149 cat <<_LT_EOF >> "$ofile"
17151 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17153 # The linker used to build libraries.
17154 LD=$lt_LD_CXX
17156 # How to create reloadable object files.
17157 reload_flag=$lt_reload_flag_CXX
17158 reload_cmds=$lt_reload_cmds_CXX
17160 # Commands used to build an old-style archive.
17161 old_archive_cmds=$lt_old_archive_cmds_CXX
17163 # A language specific compiler.
17164 CC=$lt_compiler_CXX
17166 # Is the compiler the GNU compiler?
17167 with_gcc=$GCC_CXX
17169 # Compiler flag to turn off builtin functions.
17170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17172 # How to pass a linker flag through the compiler.
17173 wl=$lt_lt_prog_compiler_wl_CXX
17175 # Additional compiler flags for building library objects.
17176 pic_flag=$lt_lt_prog_compiler_pic_CXX
17178 # Compiler flag to prevent dynamic linking.
17179 link_static_flag=$lt_lt_prog_compiler_static_CXX
17181 # Does compiler simultaneously support -c and -o options?
17182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17184 # Whether or not to add -lc for building shared libraries.
17185 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17187 # Whether or not to disallow shared libs when runtime libs are static.
17188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17190 # Compiler flag to allow reflexive dlopens.
17191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17193 # Compiler flag to generate shared objects directly from archives.
17194 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17196 # Whether the compiler copes with passing no objects directly.
17197 compiler_needs_object=$lt_compiler_needs_object_CXX
17199 # Create an old-style archive from a shared archive.
17200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17202 # Create a temporary old-style archive to link instead of a shared archive.
17203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17205 # Commands used to build a shared archive.
17206 archive_cmds=$lt_archive_cmds_CXX
17207 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17209 # Commands used to build a loadable module if different from building
17210 # a shared archive.
17211 module_cmds=$lt_module_cmds_CXX
17212 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17214 # Whether we are building with GNU ld or not.
17215 with_gnu_ld=$lt_with_gnu_ld_CXX
17217 # Flag that allows shared libraries with undefined symbols to be built.
17218 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17220 # Flag that enforces no undefined symbols.
17221 no_undefined_flag=$lt_no_undefined_flag_CXX
17223 # Flag to hardcode \$libdir into a binary during linking.
17224 # This must work even if \$libdir does not exist
17225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17227 # If ld is used when linking, flag to hardcode \$libdir into a binary
17228 # during linking. This must work even if \$libdir does not exist.
17229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17231 # Whether we need a single "-rpath" flag with a separated argument.
17232 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17235 # DIR into the resulting binary.
17236 hardcode_direct=$hardcode_direct_CXX
17238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239 # DIR into the resulting binary and the resulting library dependency is
17240 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17241 # library is relocated.
17242 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17244 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17245 # into the resulting binary.
17246 hardcode_minus_L=$hardcode_minus_L_CXX
17248 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17249 # into the resulting binary.
17250 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17252 # Set to "yes" if building a shared library automatically hardcodes DIR
17253 # into the library and all subsequent libraries and executables linked
17254 # against it.
17255 hardcode_automatic=$hardcode_automatic_CXX
17257 # Set to yes if linker adds runtime paths of dependent libraries
17258 # to runtime path list.
17259 inherit_rpath=$inherit_rpath_CXX
17261 # Whether libtool must link a program against all its dependency libraries.
17262 link_all_deplibs=$link_all_deplibs_CXX
17264 # Fix the shell variable \$srcfile for the compiler.
17265 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17267 # Set to "yes" if exported symbols are required.
17268 always_export_symbols=$always_export_symbols_CXX
17270 # The commands to list exported symbols.
17271 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17273 # Symbols that should not be listed in the preloaded symbols.
17274 exclude_expsyms=$lt_exclude_expsyms_CXX
17276 # Symbols that must always be exported.
17277 include_expsyms=$lt_include_expsyms_CXX
17279 # Commands necessary for linking programs (against libraries) with templates.
17280 prelink_cmds=$lt_prelink_cmds_CXX
17282 # Specify filename containing input files.
17283 file_list_spec=$lt_file_list_spec_CXX
17285 # How to hardcode a shared library path into an executable.
17286 hardcode_action=$hardcode_action_CXX
17288 # The directories searched by this compiler when creating a shared library.
17289 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17291 # Dependencies to place before and after the objects being linked to
17292 # create a shared library.
17293 predep_objects=$lt_predep_objects_CXX
17294 postdep_objects=$lt_postdep_objects_CXX
17295 predeps=$lt_predeps_CXX
17296 postdeps=$lt_postdeps_CXX
17298 # The library search path used internally by the compiler when linking
17299 # a shared library.
17300 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17302 # ### END LIBTOOL TAG CONFIG: CXX
17303 _LT_EOF
17307 esac
17308 done # for ac_tag
17311 as_fn_exit 0
17312 _ACEOF
17313 ac_clean_files=$ac_clean_files_save
17315 test $ac_write_fail = 0 ||
17316 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17319 # configure is writing to config.log, and then calls config.status.
17320 # config.status does its own redirection, appending to config.log.
17321 # Unfortunately, on DOS this fails, as config.log is still kept open
17322 # by configure, so config.status won't be able to write to it; its
17323 # output is simply discarded. So we exec the FD to /dev/null,
17324 # effectively closing config.log, so it can be properly (re)opened and
17325 # appended to by config.status. When coming back to configure, we
17326 # need to make the FD available again.
17327 if test "$no_create" != yes; then
17328 ac_cs_success=:
17329 ac_config_status_args=
17330 test "$silent" = yes &&
17331 ac_config_status_args="$ac_config_status_args --quiet"
17332 exec 5>/dev/null
17333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17334 exec 5>>config.log
17335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17336 # would make configure fail if this is the last instruction.
17337 $ac_cs_success || as_fn_exit $?
17339 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17341 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}