Daily bump.
[official-gcc.git] / libcc1 / configure
blobd6f480fe930d384bb3baa532930b840780d997c7
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 get_gcc_base_ver
614 visibility
615 CXXCPP
616 am__fastdepCXX_FALSE
617 am__fastdepCXX_TRUE
618 CXXDEPMODE
619 ac_ct_CXX
620 CXXFLAGS
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 RANLIB
629 OBJDUMP
630 LN_S
632 ac_ct_DUMPBIN
633 DUMPBIN
635 FGREP
637 LIBTOOL
638 MAINT
639 MAINTAINER_MODE_FALSE
640 MAINTAINER_MODE_TRUE
641 am__fastdepCC_FALSE
642 am__fastdepCC_TRUE
643 CCDEPMODE
644 am__nodep
645 AMDEPBACKSLASH
646 AMDEP_FALSE
647 AMDEP_TRUE
648 am__quote
649 am__include
650 DEPDIR
651 am__untar
652 am__tar
653 AMTAR
654 am__leading_dot
655 SET_MAKE
657 mkdir_p
658 MKDIR_P
659 INSTALL_STRIP_PROGRAM
660 STRIP
661 install_sh
662 MAKEINFO
663 AUTOHEADER
664 AUTOMAKE
665 AUTOCONF
666 ACLOCAL
667 VERSION
668 PACKAGE
669 CYGPATH_W
670 am__isrc
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
678 target_noncanonical
679 EGREP
680 GREP
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 with_build_libsubdir
743 enable_dependency_tracking
744 enable_maintainer_mode
745 enable_static
746 enable_shared
747 with_pic
748 enable_fast_install
749 with_gnu_ld
750 enable_libtool_lock
751 with_gcc_major_version_only
752 enable_werror_always
753 enable_plugin
755 ac_precious_vars='build_alias
756 host_alias
757 target_alias
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
765 CXXFLAGS
767 CXXCPP
768 GMPINC'
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
819 ac_prev=
820 ac_dashdash=
821 for ac_option
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
830 case $ac_option in
831 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *) ac_optarg=yes ;;
833 esac
835 # Accept the important Cygnus configure options, so we can diagnose typos.
837 case $ac_dashdash$ac_option in
839 ac_dashdash=yes ;;
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 ac_prev=bindir ;;
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844 bindir=$ac_optarg ;;
846 -build | --build | --buil | --bui | --bu)
847 ac_prev=build_alias ;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias=$ac_optarg ;;
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file=$ac_optarg ;;
858 --config-cache | -C)
859 cache_file=config.cache ;;
861 -datadir | --datadir | --datadi | --datad)
862 ac_prev=datadir ;;
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir=$ac_optarg ;;
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev=datarootdir ;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir=$ac_optarg ;;
873 -disable-* | --disable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
882 "enable_$ac_useropt"
883 "*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
899 -enable-* | --enable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=\$ac_optarg ;;
915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917 | --exec | --exe | --ex)
918 ac_prev=exec_prefix ;;
919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921 | --exec=* | --exe=* | --ex=*)
922 exec_prefix=$ac_optarg ;;
924 -gas | --gas | --ga | --g)
925 # Obsolete; use --with-gas.
926 with_gas=yes ;;
928 -help | --help | --hel | --he | -h)
929 ac_init_help=long ;;
930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931 ac_init_help=recursive ;;
932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933 ac_init_help=short ;;
935 -host | --host | --hos | --ho)
936 ac_prev=host_alias ;;
937 -host=* | --host=* | --hos=* | --ho=*)
938 host_alias=$ac_optarg ;;
940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 ac_prev=htmldir ;;
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 | --ht=*)
944 htmldir=$ac_optarg ;;
946 -includedir | --includedir | --includedi | --included | --include \
947 | --includ | --inclu | --incl | --inc)
948 ac_prev=includedir ;;
949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950 | --includ=* | --inclu=* | --incl=* | --inc=*)
951 includedir=$ac_optarg ;;
953 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 ac_prev=infodir ;;
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir=$ac_optarg ;;
958 -libdir | --libdir | --libdi | --libd)
959 ac_prev=libdir ;;
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 libdir=$ac_optarg ;;
963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964 | --libexe | --libex | --libe)
965 ac_prev=libexecdir ;;
966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967 | --libexe=* | --libex=* | --libe=*)
968 libexecdir=$ac_optarg ;;
970 -localedir | --localedir | --localedi | --localed | --locale)
971 ac_prev=localedir ;;
972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973 localedir=$ac_optarg ;;
975 -localstatedir | --localstatedir | --localstatedi | --localstated \
976 | --localstate | --localstat | --localsta | --localst | --locals)
977 ac_prev=localstatedir ;;
978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980 localstatedir=$ac_optarg ;;
982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 ac_prev=mandir ;;
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 mandir=$ac_optarg ;;
987 -nfp | --nfp | --nf)
988 # Obsolete; use --without-fp.
989 with_fp=no ;;
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
993 no_create=yes ;;
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 no_recursion=yes ;;
999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001 | --oldin | --oldi | --old | --ol | --o)
1002 ac_prev=oldincludedir ;;
1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006 oldincludedir=$ac_optarg ;;
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 ac_prev=prefix ;;
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 prefix=$ac_optarg ;;
1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014 | --program-pre | --program-pr | --program-p)
1015 ac_prev=program_prefix ;;
1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018 program_prefix=$ac_optarg ;;
1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021 | --program-suf | --program-su | --program-s)
1022 ac_prev=program_suffix ;;
1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025 program_suffix=$ac_optarg ;;
1027 -program-transform-name | --program-transform-name \
1028 | --program-transform-nam | --program-transform-na \
1029 | --program-transform-n | --program-transform- \
1030 | --program-transform | --program-transfor \
1031 | --program-transfo | --program-transf \
1032 | --program-trans | --program-tran \
1033 | --progr-tra | --program-tr | --program-t)
1034 ac_prev=program_transform_name ;;
1035 -program-transform-name=* | --program-transform-name=* \
1036 | --program-transform-nam=* | --program-transform-na=* \
1037 | --program-transform-n=* | --program-transform-=* \
1038 | --program-transform=* | --program-transfor=* \
1039 | --program-transfo=* | --program-transf=* \
1040 | --program-trans=* | --program-tran=* \
1041 | --progr-tra=* | --program-tr=* | --program-t=*)
1042 program_transform_name=$ac_optarg ;;
1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 ac_prev=pdfdir ;;
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir=$ac_optarg ;;
1049 -psdir | --psdir | --psdi | --psd | --ps)
1050 ac_prev=psdir ;;
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 psdir=$ac_optarg ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 silent=yes ;;
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1103 -with-* | --with-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1153 -*) as_fn_error "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information."
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1163 esac
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 esac
1176 done
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error "missing argument to $ac_option"
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233 test "$silent" = yes && exec 6>/dev/null
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error "pwd does not report name of working directory"
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1262 /^X\(\/\/\)$/{
1263 s//\1/
1266 /^X\(\/\).*/{
1267 s//\1/
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1275 else
1276 ac_srcdir_defaulted=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1285 pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 done
1304 # Report the --help message.
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1309 cat <<_ACEOF
1310 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1317 Defaults for the options are specified in brackets.
1319 Configuration:
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 [PREFIX]
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1341 For better control, use the options below.
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1365 cat <<\_ACEOF
1367 Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1372 System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1376 _ACEOF
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1382 esac
1383 cat <<\_ACEOF
1385 Optional Features:
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
1393 --enable-static[=PKGS] build static libraries [default=no]
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --enable-werror-always enable -Werror despite compiler version
1399 --enable-plugin enable plugin support
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-build-libsubdir=DIR Directory where to find libraries for build system
1405 --with-pic try to use only PIC/non-PIC objects [default=use
1406 both]
1407 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1408 --with-gcc-major-version-only
1409 use only GCC major number in filesystem paths
1411 Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
1416 LIBS libraries to pass to the linker, e.g. -l<library>
1417 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1418 you have headers in a nonstandard directory <include dir>
1419 CPP C preprocessor
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1422 CXXCPP C++ preprocessor
1423 GMPINC How to find GMP include files
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1428 Report bugs to the package provider.
1429 _ACEOF
1430 ac_status=$?
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 libcc1 configure version-unused
1492 generated by GNU Autoconf 2.64
1494 Copyright (C) 2009 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1536 ac_retval=1
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_c_try_cpp LINENO
1544 # ----------------------
1545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_cpp ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 if { { ac_try="$ac_cpp conftest.$ac_ext"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } >/dev/null && {
1565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 }; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1573 ac_retval=1
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1578 } # ac_fn_c_try_cpp
1580 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1581 # -------------------------------------------------------
1582 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1583 # the include files in INCLUDES and setting the cache variable VAR
1584 # accordingly.
1585 ac_fn_c_check_header_mongrel ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590 $as_echo_n "checking for $2... " >&6; }
1591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1592 $as_echo_n "(cached) " >&6
1594 eval ac_res=\$$3
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597 else
1598 # Is the header compilable?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1600 $as_echo_n "checking $2 usability... " >&6; }
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1604 #include <$2>
1605 _ACEOF
1606 if ac_fn_c_try_compile "$LINENO"; then :
1607 ac_header_compiler=yes
1608 else
1609 ac_header_compiler=no
1611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1613 $as_echo "$ac_header_compiler" >&6; }
1615 # Is the header present?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1617 $as_echo_n "checking $2 presence... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_cpp "$LINENO"; then :
1623 ac_header_preproc=yes
1624 else
1625 ac_header_preproc=no
1627 rm -f conftest.err conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1629 $as_echo "$ac_header_preproc" >&6; }
1631 # So? What about this header?
1632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1633 yes:no: )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1635 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639 no:yes:* )
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1641 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1643 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1645 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1647 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651 esac
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1655 $as_echo_n "(cached) " >&6
1656 else
1657 eval "$3=\$ac_header_compiler"
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 } # ac_fn_c_check_header_mongrel
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1671 ac_fn_c_try_run ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=$ac_status
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 return $ac_retval
1707 } # ac_fn_c_try_run
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 eval "$3=yes"
1728 else
1729 eval "$3=no"
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 } # ac_fn_c_check_header_compile
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 $as_test_x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1774 ac_retval=1
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1784 } # ac_fn_c_try_link
1786 # ac_fn_c_check_func LINENO FUNC VAR
1787 # ----------------------------------
1788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1789 ac_fn_c_check_func ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801 #define $2 innocuous_$2
1803 /* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1808 #ifdef __STDC__
1809 # include <limits.h>
1810 #else
1811 # include <assert.h>
1812 #endif
1814 #undef $2
1816 /* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819 #ifdef __cplusplus
1820 extern "C"
1821 #endif
1822 char $2 ();
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined __stub_$2 || defined __stub___$2
1827 choke me
1828 #endif
1831 main ()
1833 return $2 ();
1835 return 0;
1837 _ACEOF
1838 if ac_fn_c_try_link "$LINENO"; then :
1839 eval "$3=yes"
1840 else
1841 eval "$3=no"
1843 rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_c_check_func
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_cxx_try_cpp LINENO
1892 # ------------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_cpp ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1926 } # ac_fn_cxx_try_cpp
1928 # ac_fn_cxx_try_link LINENO
1929 # -------------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_cxx_try_link ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=1
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 return $ac_retval
1972 } # ac_fn_cxx_try_link
1974 # ac_fn_c_check_decl LINENO SYMBOL VAR
1975 # ------------------------------------
1976 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1977 ac_fn_c_check_decl ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 as_decl_name=`echo $2|sed 's/ *(.*//'`
1981 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1983 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1984 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 #ifndef $as_decl_name
1994 #ifdef __cplusplus
1995 (void) $as_decl_use;
1996 #else
1997 (void) $as_decl_name;
1998 #endif
1999 #endif
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 eval "$3=yes"
2007 else
2008 eval "$3=no"
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 } # ac_fn_c_check_decl
2018 cat >config.log <<_ACEOF
2019 This file contains any messages produced by compilers while
2020 running configure, to aid debugging if configure makes a mistake.
2022 It was created by libcc1 $as_me version-unused, which was
2023 generated by GNU Autoconf 2.64. Invocation command line was
2025 $ $0 $@
2027 _ACEOF
2028 exec 5>>config.log
2030 cat <<_ASUNAME
2031 ## --------- ##
2032 ## Platform. ##
2033 ## --------- ##
2035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2044 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2045 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2047 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2048 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2049 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2050 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2052 _ASUNAME
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 $as_echo "PATH: $as_dir"
2060 done
2061 IFS=$as_save_IFS
2063 } >&5
2065 cat >&5 <<_ACEOF
2068 ## ----------- ##
2069 ## Core tests. ##
2070 ## ----------- ##
2072 _ACEOF
2075 # Keep a trace of the command line.
2076 # Strip out --no-create and --no-recursion so they do not pile up.
2077 # Strip out --silent because we don't want to record it for future runs.
2078 # Also quote any args containing shell meta-characters.
2079 # Make two passes to allow for proper duplicate-argument suppression.
2080 ac_configure_args=
2081 ac_configure_args0=
2082 ac_configure_args1=
2083 ac_must_keep_next=false
2084 for ac_pass in 1 2
2086 for ac_arg
2088 case $ac_arg in
2089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2091 | -silent | --silent | --silen | --sile | --sil)
2092 continue ;;
2093 *\'*)
2094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2095 esac
2096 case $ac_pass in
2097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2099 as_fn_append ac_configure_args1 " '$ac_arg'"
2100 if test $ac_must_keep_next = true; then
2101 ac_must_keep_next=false # Got value, back to normal.
2102 else
2103 case $ac_arg in
2104 *=* | --config-cache | -C | -disable-* | --disable-* \
2105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2107 | -with-* | --with-* | -without-* | --without-* | --x)
2108 case "$ac_configure_args0 " in
2109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110 esac
2112 -* ) ac_must_keep_next=true ;;
2113 esac
2115 as_fn_append ac_configure_args " '$ac_arg'"
2117 esac
2118 done
2119 done
2120 { ac_configure_args0=; unset ac_configure_args0;}
2121 { ac_configure_args1=; unset ac_configure_args1;}
2123 # When interrupted or exit'd, cleanup temporary files, and complete
2124 # config.log. We remove comments because anyway the quotes in there
2125 # would cause problems or look ugly.
2126 # WARNING: Use '\'' to represent an apostrophe within the trap.
2127 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2128 trap 'exit_status=$?
2129 # Save into config.log some information that might help in debugging.
2131 echo
2133 cat <<\_ASBOX
2134 ## ---------------- ##
2135 ## Cache variables. ##
2136 ## ---------------- ##
2137 _ASBOX
2138 echo
2139 # The following way of writing the cache mishandles newlines in values,
2141 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in #(
2144 *${as_nl}*)
2145 case $ac_var in #(
2146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148 esac
2149 case $ac_var in #(
2150 _ | IFS | as_nl) ;; #(
2151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2152 *) { eval $ac_var=; unset $ac_var;} ;;
2153 esac ;;
2154 esac
2155 done
2156 (set) 2>&1 |
2157 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2158 *${as_nl}ac_space=\ *)
2159 sed -n \
2160 "s/'\''/'\''\\\\'\'''\''/g;
2161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162 ;; #(
2164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166 esac |
2167 sort
2169 echo
2171 cat <<\_ASBOX
2172 ## ----------------- ##
2173 ## Output variables. ##
2174 ## ----------------- ##
2175 _ASBOX
2176 echo
2177 for ac_var in $ac_subst_vars
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2187 if test -n "$ac_subst_files"; then
2188 cat <<\_ASBOX
2189 ## ------------------- ##
2190 ## File substitutions. ##
2191 ## ------------------- ##
2192 _ASBOX
2193 echo
2194 for ac_var in $ac_subst_files
2196 eval ac_val=\$$ac_var
2197 case $ac_val in
2198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199 esac
2200 $as_echo "$ac_var='\''$ac_val'\''"
2201 done | sort
2202 echo
2205 if test -s confdefs.h; then
2206 cat <<\_ASBOX
2207 ## ----------- ##
2208 ## confdefs.h. ##
2209 ## ----------- ##
2210 _ASBOX
2211 echo
2212 cat confdefs.h
2213 echo
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2218 } >&5
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 exit $exit_status
2223 for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225 done
2226 ac_signal=0
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest* confdefs.h
2231 $as_echo "/* confdefs.h */" > confdefs.h
2233 # Predefined preprocessor variables.
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_NAME "$PACKAGE_NAME"
2237 _ACEOF
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241 _ACEOF
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2245 _ACEOF
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_STRING "$PACKAGE_STRING"
2249 _ACEOF
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253 _ACEOF
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_URL "$PACKAGE_URL"
2257 _ACEOF
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2262 ac_site_file1=NONE
2263 ac_site_file2=NONE
2264 if test -n "$CONFIG_SITE"; then
2265 ac_site_file1=$CONFIG_SITE
2266 elif test "x$prefix" != xNONE; then
2267 ac_site_file1=$prefix/share/config.site
2268 ac_site_file2=$prefix/etc/config.site
2269 else
2270 ac_site_file1=$ac_default_prefix/share/config.site
2271 ac_site_file2=$ac_default_prefix/etc/config.site
2273 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275 test "x$ac_site_file" = xNONE && continue
2276 if test -r "$ac_site_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2278 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2279 sed 's/^/| /' "$ac_site_file" >&5
2280 . "$ac_site_file"
2282 done
2284 if test -r "$cache_file"; then
2285 # Some versions of bash will fail to source /dev/null (special
2286 # files actually), so we avoid doing that.
2287 if test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289 $as_echo "$as_me: loading cache $cache_file" >&6;}
2290 case $cache_file in
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2293 esac
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297 $as_echo "$as_me: creating cache $cache_file" >&6;}
2298 >$cache_file
2301 # Check that the precious variables saved in the cache have kept the same
2302 # value.
2303 ac_cache_corrupted=false
2304 for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2310 set,)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,set)
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2318 ,);;
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2348 esac
2350 done
2351 if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358 ## -------------------- ##
2359 ## Main body of script. ##
2360 ## -------------------- ##
2362 ac_ext=c
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2376 ac_aux_dir=
2377 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2378 for ac_t in install-sh install.sh shtool; do
2379 if test -f "$ac_dir/$ac_t"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/$ac_t -c"
2382 break 2
2384 done
2385 done
2386 if test -z "$ac_aux_dir"; then
2387 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2390 # These three variables are undocumented and unsupported,
2391 # and are intended to be withdrawn in a future Autoconf release.
2392 # They can cause serious problems if a builder's source tree is in a directory
2393 # whose full name contains unusual characters.
2394 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2395 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2396 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2399 # Make sure we can run config.sub.
2400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2401 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2404 $as_echo_n "checking build system type... " >&6; }
2405 if test "${ac_cv_build+set}" = set; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 ac_build_alias=$build_alias
2409 test "x$ac_build_alias" = x &&
2410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2411 test "x$ac_build_alias" = x &&
2412 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2414 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2418 $as_echo "$ac_cv_build" >&6; }
2419 case $ac_cv_build in
2420 *-*-*) ;;
2421 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2422 esac
2423 build=$ac_cv_build
2424 ac_save_IFS=$IFS; IFS='-'
2425 set x $ac_cv_build
2426 shift
2427 build_cpu=$1
2428 build_vendor=$2
2429 shift; shift
2430 # Remember, the first character of IFS is used to create $*,
2431 # except with old shells:
2432 build_os=$*
2433 IFS=$ac_save_IFS
2434 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438 $as_echo_n "checking host system type... " >&6; }
2439 if test "${ac_cv_host+set}" = set; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 if test "x$host_alias" = x; then
2443 ac_cv_host=$ac_cv_build
2444 else
2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2446 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451 $as_echo "$ac_cv_host" >&6; }
2452 case $ac_cv_host in
2453 *-*-*) ;;
2454 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2455 esac
2456 host=$ac_cv_host
2457 ac_save_IFS=$IFS; IFS='-'
2458 set x $ac_cv_host
2459 shift
2460 host_cpu=$1
2461 host_vendor=$2
2462 shift; shift
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2465 host_os=$*
2466 IFS=$ac_save_IFS
2467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2471 $as_echo_n "checking target system type... " >&6; }
2472 if test "${ac_cv_target+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test "x$target_alias" = x; then
2476 ac_cv_target=$ac_cv_host
2477 else
2478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2479 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2484 $as_echo "$ac_cv_target" >&6; }
2485 case $ac_cv_target in
2486 *-*-*) ;;
2487 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2488 esac
2489 target=$ac_cv_target
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_target
2492 shift
2493 target_cpu=$1
2494 target_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 target_os=$*
2499 IFS=$ac_save_IFS
2500 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503 # The aliases save the names the user supplied, while $host etc.
2504 # will get canonicalized.
2505 test -n "$target_alias" &&
2506 test "$program_prefix$program_suffix$program_transform_name" = \
2507 NONENONEs,x,x, &&
2508 program_prefix=${target_alias}-
2510 ac_ext=c
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546 $as_echo "$CC" >&6; }
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2554 if test -z "$ac_cv_prog_CC"; then
2555 ac_ct_CC=$CC
2556 # Extract the first word of "gcc", so it can be a program name with args.
2557 set dummy gcc; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test -n "$ac_ct_CC"; then
2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_CC="gcc"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2577 done
2578 done
2579 IFS=$as_save_IFS
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2586 $as_echo "$ac_ct_CC" >&6; }
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2592 if test "x$ac_ct_CC" = x; then
2593 CC=""
2594 else
2595 case $cross_compiling:$ac_tool_warned in
2596 yes:)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599 ac_tool_warned=yes ;;
2600 esac
2601 CC=$ac_ct_CC
2603 else
2604 CC="$ac_cv_prog_CC"
2607 if test -z "$CC"; then
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}cc; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC="${ac_tool_prefix}cc"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2630 done
2631 done
2632 IFS=$as_save_IFS
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639 $as_echo "$CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2648 if test -z "$CC"; then
2649 # Extract the first word of "cc", so it can be a program name with args.
2650 set dummy cc; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 else
2659 ac_prog_rejected=no
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2668 ac_prog_rejected=yes
2669 continue
2671 ac_cv_prog_CC="cc"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2675 done
2676 done
2677 IFS=$as_save_IFS
2679 if test $ac_prog_rejected = yes; then
2680 # We found a bogon in the path, so make sure we never use it.
2681 set dummy $ac_cv_prog_CC
2682 shift
2683 if test $# != 0; then
2684 # We chose a different compiler from the bogus one.
2685 # However, it has the same basename, so the bogon will be chosen
2686 # first if we set CC to just the basename; use the full file name.
2687 shift
2688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693 CC=$ac_cv_prog_CC
2694 if test -n "$CC"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2696 $as_echo "$CC" >&6; }
2697 else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2704 if test -z "$CC"; then
2705 if test -n "$ac_tool_prefix"; then
2706 for ac_prog in cl.exe
2708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if test "${ac_cv_prog_CC+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2729 done
2730 done
2731 IFS=$as_save_IFS
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2745 test -n "$CC" && break
2746 done
2748 if test -z "$CC"; then
2749 ac_ct_CC=$CC
2750 for ac_prog in cl.exe
2752 # Extract the first word of "$ac_prog", so it can be a program name with args.
2753 set dummy $ac_prog; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_ac_ct_CC="$ac_prog"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2773 done
2774 done
2775 IFS=$as_save_IFS
2779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780 if test -n "$ac_ct_CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2782 $as_echo "$ac_ct_CC" >&6; }
2783 else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2789 test -n "$ac_ct_CC" && break
2790 done
2792 if test "x$ac_ct_CC" = x; then
2793 CC=""
2794 else
2795 case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801 CC=$ac_ct_CC
2808 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810 as_fn_error "no acceptable C compiler found in \$PATH
2811 See \`config.log' for more details." "$LINENO" 5; }
2813 # Provide some information about the compiler.
2814 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2815 set X $ac_compile
2816 ac_compiler=$2
2817 for ac_option in --version -v -V -qversion; do
2818 { { ac_try="$ac_compiler $ac_option >&5"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2824 $as_echo "$ac_try_echo"; } >&5
2825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2826 ac_status=$?
2827 if test -s conftest.err; then
2828 sed '10a\
2829 ... rest of stderr output deleted ...
2830 10q' conftest.err >conftest.er1
2831 cat conftest.er1 >&5
2832 rm -f conftest.er1 conftest.err
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }
2836 done
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2842 main ()
2846 return 0;
2848 _ACEOF
2849 ac_clean_files_save=$ac_clean_files
2850 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2851 # Try to create an executable without -o first, disregard a.out.
2852 # It will help us diagnose broken compilers, and finding out an intuition
2853 # of exeext.
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2855 $as_echo_n "checking for C compiler default output file name... " >&6; }
2856 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2858 # The possible output files:
2859 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2861 ac_rmfiles=
2862 for ac_file in $ac_files
2864 case $ac_file in
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2866 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2867 esac
2868 done
2869 rm -f $ac_rmfiles
2871 if { { ac_try="$ac_link_default"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_link_default") 2>&5
2879 ac_status=$?
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; then :
2882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2883 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2884 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2885 # so that the user can short-circuit this test for compilers unknown to
2886 # Autoconf.
2887 for ac_file in $ac_files ''
2889 test -f "$ac_file" || continue
2890 case $ac_file in
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2893 [ab].out )
2894 # We found the default executable, but exeext='' is most
2895 # certainly right.
2896 break;;
2897 *.* )
2898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2899 then :; else
2900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 # We set ac_cv_exeext here because the later test for it is not
2903 # safe: cross compilers may not add the suffix if given an `-o'
2904 # argument, so we may need to know it at that point already.
2905 # Even if this section looks crufty: it has the advantage of
2906 # actually working.
2907 break;;
2909 break;;
2910 esac
2911 done
2912 test "$ac_cv_exeext" = no && ac_cv_exeext=
2914 else
2915 ac_file=''
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2918 $as_echo "$ac_file" >&6; }
2919 if test -z "$ac_file"; then :
2920 $as_echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925 { as_fn_set_status 77
2926 as_fn_error "C compiler cannot create executables
2927 See \`config.log' for more details." "$LINENO" 5; }; }
2929 ac_exeext=$ac_cv_exeext
2931 # Check that the compiler produces executables we can run. If not, either
2932 # the compiler is broken, or we cross compile.
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2934 $as_echo_n "checking whether the C compiler works... " >&6; }
2935 # If not cross compiling, check that we can run a simple program.
2936 if test "$cross_compiling" != yes; then
2937 if { ac_try='./$ac_file'
2938 { { case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_try") 2>&5
2945 ac_status=$?
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }; }; then
2948 cross_compiling=no
2949 else
2950 if test "$cross_compiling" = maybe; then
2951 cross_compiling=yes
2952 else
2953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955 as_fn_error "cannot run C compiled programs.
2956 If you meant to cross compile, use \`--host'.
2957 See \`config.log' for more details." "$LINENO" 5; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962 $as_echo "yes" >&6; }
2964 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2965 ac_clean_files=$ac_clean_files_save
2966 # Check that the compiler produces executables we can run. If not, either
2967 # the compiler is broken, or we cross compile.
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2969 $as_echo_n "checking whether we are cross compiling... " >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2971 $as_echo "$cross_compiling" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2974 $as_echo_n "checking for suffix of executables... " >&6; }
2975 if { { ac_try="$ac_link"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_link") 2>&5
2983 ac_status=$?
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; then :
2986 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2988 # work properly (i.e., refer to `conftest.exe'), while it won't with
2989 # `rm'.
2990 for ac_file in conftest.exe conftest conftest.*; do
2991 test -f "$ac_file" || continue
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 break;;
2996 * ) break;;
2997 esac
2998 done
2999 else
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error "cannot compute suffix of executables: cannot compile and link
3003 See \`config.log' for more details." "$LINENO" 5; }
3005 rm -f conftest$ac_cv_exeext
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3007 $as_echo "$ac_cv_exeext" >&6; }
3009 rm -f conftest.$ac_ext
3010 EXEEXT=$ac_cv_exeext
3011 ac_exeext=$EXEEXT
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3013 $as_echo_n "checking for suffix of object files... " >&6; }
3014 if test "${ac_cv_objext+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3021 main ()
3025 return 0;
3027 _ACEOF
3028 rm -f conftest.o conftest.obj
3029 if { { ac_try="$ac_compile"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_compile") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; then :
3040 for ac_file in conftest.o conftest.obj conftest.*; do
3041 test -f "$ac_file" || continue;
3042 case $ac_file in
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3045 break;;
3046 esac
3047 done
3048 else
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error "cannot compute suffix of object files: cannot compile
3055 See \`config.log' for more details." "$LINENO" 5; }
3057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3060 $as_echo "$ac_cv_objext" >&6; }
3061 OBJEXT=$ac_cv_objext
3062 ac_objext=$OBJEXT
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3064 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3065 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3072 main ()
3074 #ifndef __GNUC__
3075 choke me
3076 #endif
3079 return 0;
3081 _ACEOF
3082 if ac_fn_c_try_compile "$LINENO"; then :
3083 ac_compiler_gnu=yes
3084 else
3085 ac_compiler_gnu=no
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3092 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3093 if test $ac_compiler_gnu = yes; then
3094 GCC=yes
3095 else
3096 GCC=
3098 ac_test_CFLAGS=${CFLAGS+set}
3099 ac_save_CFLAGS=$CFLAGS
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3101 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3102 if test "${ac_cv_prog_cc_g+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 ac_save_c_werror_flag=$ac_c_werror_flag
3106 ac_c_werror_flag=yes
3107 ac_cv_prog_cc_g=no
3108 CFLAGS="-g"
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3113 main ()
3117 return 0;
3119 _ACEOF
3120 if ac_fn_c_try_compile "$LINENO"; then :
3121 ac_cv_prog_cc_g=yes
3122 else
3123 CFLAGS=""
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3128 main ()
3132 return 0;
3134 _ACEOF
3135 if ac_fn_c_try_compile "$LINENO"; then :
3137 else
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139 CFLAGS="-g"
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3144 main ()
3148 return 0;
3150 _ACEOF
3151 if ac_fn_c_try_compile "$LINENO"; then :
3152 ac_cv_prog_cc_g=yes
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3162 $as_echo "$ac_cv_prog_cc_g" >&6; }
3163 if test "$ac_test_CFLAGS" = set; then
3164 CFLAGS=$ac_save_CFLAGS
3165 elif test $ac_cv_prog_cc_g = yes; then
3166 if test "$GCC" = yes; then
3167 CFLAGS="-g -O2"
3168 else
3169 CFLAGS="-g"
3171 else
3172 if test "$GCC" = yes; then
3173 CFLAGS="-O2"
3174 else
3175 CFLAGS=
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3179 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3180 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 ac_cv_prog_cc_c89=no
3184 ac_save_CC=$CC
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3187 #include <stdarg.h>
3188 #include <stdio.h>
3189 #include <sys/types.h>
3190 #include <sys/stat.h>
3191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3192 struct buf { int x; };
3193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3194 static char *e (p, i)
3195 char **p;
3196 int i;
3198 return p[i];
3200 static char *f (char * (*g) (char **, int), char **p, ...)
3202 char *s;
3203 va_list v;
3204 va_start (v,p);
3205 s = g (p, va_arg (v,int));
3206 va_end (v);
3207 return s;
3210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3211 function prototypes and stuff, but not '\xHH' hex character constants.
3212 These don't provoke an error unfortunately, instead are silently treated
3213 as 'x'. The following induces an error, until -std is added to get
3214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3215 array size at least. It's necessary to write '\x00'==0 to get something
3216 that's true only with -std. */
3217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3220 inside strings and character constants. */
3221 #define FOO(x) 'x'
3222 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224 int test (int i, double x);
3225 struct s1 {int (*f) (int a);};
3226 struct s2 {int (*f) (double a);};
3227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3228 int argc;
3229 char **argv;
3231 main ()
3233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 return 0;
3237 _ACEOF
3238 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241 CC="$ac_save_CC $ac_arg"
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_c89=$ac_arg
3245 rm -f core conftest.err conftest.$ac_objext
3246 test "x$ac_cv_prog_cc_c89" != "xno" && break
3247 done
3248 rm -f conftest.$ac_ext
3249 CC=$ac_save_CC
3252 # AC_CACHE_VAL
3253 case "x$ac_cv_prog_cc_c89" in
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3256 $as_echo "none needed" >&6; } ;;
3257 xno)
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3259 $as_echo "unsupported" >&6; } ;;
3261 CC="$CC $ac_cv_prog_cc_c89"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3263 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3264 esac
3265 if test "x$ac_cv_prog_cc_c89" != xno; then :
3269 ac_ext=c
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3282 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3283 # On Suns, sometimes $CPP names a directory.
3284 if test -n "$CPP" && test -d "$CPP"; then
3285 CPP=
3287 if test -z "$CPP"; then
3288 if test "${ac_cv_prog_CPP+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 # Double quotes because CPP needs to be expanded
3292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3294 ac_preproc_ok=false
3295 for ac_c_preproc_warn_flag in '' yes
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
3299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300 # <limits.h> exists even on freestanding compilers.
3301 # On the NeXT, cc -E runs the code through the compiler's parser,
3302 # not just through cpp. "Syntax error" is here to catch this case.
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305 #ifdef __STDC__
3306 # include <limits.h>
3307 #else
3308 # include <assert.h>
3309 #endif
3310 Syntax error
3311 _ACEOF
3312 if ac_fn_c_try_cpp "$LINENO"; then :
3314 else
3315 # Broken: fails on valid input.
3316 continue
3318 rm -f conftest.err conftest.$ac_ext
3320 # OK, works on sane cases. Now check whether nonexistent headers
3321 # can be detected and how.
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <ac_nonexistent.h>
3325 _ACEOF
3326 if ac_fn_c_try_cpp "$LINENO"; then :
3327 # Broken: success on invalid input.
3328 continue
3329 else
3330 # Passes both tests.
3331 ac_preproc_ok=:
3332 break
3334 rm -f conftest.err conftest.$ac_ext
3336 done
3337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338 rm -f conftest.err conftest.$ac_ext
3339 if $ac_preproc_ok; then :
3340 break
3343 done
3344 ac_cv_prog_CPP=$CPP
3347 CPP=$ac_cv_prog_CPP
3348 else
3349 ac_cv_prog_CPP=$CPP
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3352 $as_echo "$CPP" >&6; }
3353 ac_preproc_ok=false
3354 for ac_c_preproc_warn_flag in '' yes
3356 # Use a header file that comes with gcc, so configuring glibc
3357 # with a fresh cross-compiler works.
3358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359 # <limits.h> exists even on freestanding compilers.
3360 # On the NeXT, cc -E runs the code through the compiler's parser,
3361 # not just through cpp. "Syntax error" is here to catch this case.
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364 #ifdef __STDC__
3365 # include <limits.h>
3366 #else
3367 # include <assert.h>
3368 #endif
3369 Syntax error
3370 _ACEOF
3371 if ac_fn_c_try_cpp "$LINENO"; then :
3373 else
3374 # Broken: fails on valid input.
3375 continue
3377 rm -f conftest.err conftest.$ac_ext
3379 # OK, works on sane cases. Now check whether nonexistent headers
3380 # can be detected and how.
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383 #include <ac_nonexistent.h>
3384 _ACEOF
3385 if ac_fn_c_try_cpp "$LINENO"; then :
3386 # Broken: success on invalid input.
3387 continue
3388 else
3389 # Passes both tests.
3390 ac_preproc_ok=:
3391 break
3393 rm -f conftest.err conftest.$ac_ext
3395 done
3396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397 rm -f conftest.err conftest.$ac_ext
3398 if $ac_preproc_ok; then :
3400 else
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3404 See \`config.log' for more details." "$LINENO" 5; }
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3415 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3416 if test "${ac_cv_path_GREP+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -z "$GREP"; then
3420 ac_path_GREP_found=false
3421 # Loop through the user's path and test for each of PROGNAME-LIST
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_prog in grep ggrep; do
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3430 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3431 # Check for GNU ac_path_GREP and select it if it is found.
3432 # Check for GNU $ac_path_GREP
3433 case `"$ac_path_GREP" --version 2>&1` in
3434 *GNU*)
3435 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3437 ac_count=0
3438 $as_echo_n 0123456789 >"conftest.in"
3439 while :
3441 cat "conftest.in" "conftest.in" >"conftest.tmp"
3442 mv "conftest.tmp" "conftest.in"
3443 cp "conftest.in" "conftest.nl"
3444 $as_echo 'GREP' >> "conftest.nl"
3445 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3447 as_fn_arith $ac_count + 1 && ac_count=$as_val
3448 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3449 # Best one so far, save it but keep looking for a better one
3450 ac_cv_path_GREP="$ac_path_GREP"
3451 ac_path_GREP_max=$ac_count
3453 # 10*(2^10) chars as input seems more than enough
3454 test $ac_count -gt 10 && break
3455 done
3456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3457 esac
3459 $ac_path_GREP_found && break 3
3460 done
3461 done
3462 done
3463 IFS=$as_save_IFS
3464 if test -z "$ac_cv_path_GREP"; then
3465 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3467 else
3468 ac_cv_path_GREP=$GREP
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3473 $as_echo "$ac_cv_path_GREP" >&6; }
3474 GREP="$ac_cv_path_GREP"
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3478 $as_echo_n "checking for egrep... " >&6; }
3479 if test "${ac_cv_path_EGREP+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3483 then ac_cv_path_EGREP="$GREP -E"
3484 else
3485 if test -z "$EGREP"; then
3486 ac_path_EGREP_found=false
3487 # Loop through the user's path and test for each of PROGNAME-LIST
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_prog in egrep; do
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3496 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3497 # Check for GNU ac_path_EGREP and select it if it is found.
3498 # Check for GNU $ac_path_EGREP
3499 case `"$ac_path_EGREP" --version 2>&1` in
3500 *GNU*)
3501 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3503 ac_count=0
3504 $as_echo_n 0123456789 >"conftest.in"
3505 while :
3507 cat "conftest.in" "conftest.in" >"conftest.tmp"
3508 mv "conftest.tmp" "conftest.in"
3509 cp "conftest.in" "conftest.nl"
3510 $as_echo 'EGREP' >> "conftest.nl"
3511 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3513 as_fn_arith $ac_count + 1 && ac_count=$as_val
3514 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3515 # Best one so far, save it but keep looking for a better one
3516 ac_cv_path_EGREP="$ac_path_EGREP"
3517 ac_path_EGREP_max=$ac_count
3519 # 10*(2^10) chars as input seems more than enough
3520 test $ac_count -gt 10 && break
3521 done
3522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3523 esac
3525 $ac_path_EGREP_found && break 3
3526 done
3527 done
3528 done
3529 IFS=$as_save_IFS
3530 if test -z "$ac_cv_path_EGREP"; then
3531 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3533 else
3534 ac_cv_path_EGREP=$EGREP
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3540 $as_echo "$ac_cv_path_EGREP" >&6; }
3541 EGREP="$ac_cv_path_EGREP"
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3545 $as_echo_n "checking for ANSI C header files... " >&6; }
3546 if test "${ac_cv_header_stdc+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <stdlib.h>
3552 #include <stdarg.h>
3553 #include <string.h>
3554 #include <float.h>
3557 main ()
3561 return 0;
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_header_stdc=yes
3566 else
3567 ac_cv_header_stdc=no
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 if test $ac_cv_header_stdc = yes; then
3572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 #include <string.h>
3577 _ACEOF
3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579 $EGREP "memchr" >/dev/null 2>&1; then :
3581 else
3582 ac_cv_header_stdc=no
3584 rm -f conftest*
3588 if test $ac_cv_header_stdc = yes; then
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdlib.h>
3594 _ACEOF
3595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3596 $EGREP "free" >/dev/null 2>&1; then :
3598 else
3599 ac_cv_header_stdc=no
3601 rm -f conftest*
3605 if test $ac_cv_header_stdc = yes; then
3606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3607 if test "$cross_compiling" = yes; then :
3609 else
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 #include <ctype.h>
3613 #include <stdlib.h>
3614 #if ((' ' & 0x0FF) == 0x020)
3615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3617 #else
3618 # define ISLOWER(c) \
3619 (('a' <= (c) && (c) <= 'i') \
3620 || ('j' <= (c) && (c) <= 'r') \
3621 || ('s' <= (c) && (c) <= 'z'))
3622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3623 #endif
3625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3627 main ()
3629 int i;
3630 for (i = 0; i < 256; i++)
3631 if (XOR (islower (i), ISLOWER (i))
3632 || toupper (i) != TOUPPER (i))
3633 return 2;
3634 return 0;
3636 _ACEOF
3637 if ac_fn_c_try_run "$LINENO"; then :
3639 else
3640 ac_cv_header_stdc=no
3642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3643 conftest.$ac_objext conftest.beam conftest.$ac_ext
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3649 $as_echo "$ac_cv_header_stdc" >&6; }
3650 if test $ac_cv_header_stdc = yes; then
3652 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3658 inttypes.h stdint.h unistd.h
3659 do :
3660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3661 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3663 eval as_val=\$$as_ac_Header
3664 if test "x$as_val" = x""yes; then :
3665 cat >>confdefs.h <<_ACEOF
3666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3667 _ACEOF
3671 done
3675 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3676 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3677 MINIX=yes
3678 else
3679 MINIX=
3683 if test "$MINIX" = yes; then
3685 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3688 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3691 $as_echo "#define _MINIX 1" >>confdefs.h
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3697 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3698 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3704 # define __EXTENSIONS__ 1
3705 $ac_includes_default
3707 main ()
3711 return 0;
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_safe_to_define___extensions__=yes
3716 else
3717 ac_cv_safe_to_define___extensions__=no
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3722 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3723 test $ac_cv_safe_to_define___extensions__ = yes &&
3724 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3726 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3728 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3730 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3732 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3735 # Determine the noncanonical target name, for directory use.
3736 case ${build_alias} in
3737 "") build_noncanonical=${build} ;;
3738 *) build_noncanonical=${build_alias} ;;
3739 esac
3741 case ${host_alias} in
3742 "") host_noncanonical=${build_noncanonical} ;;
3743 *) host_noncanonical=${host_alias} ;;
3744 esac
3746 case ${target_alias} in
3747 "") target_noncanonical=${host_noncanonical} ;;
3748 *) target_noncanonical=${target_alias} ;;
3749 esac
3754 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3755 # have matching libraries, they should use host libraries: Makefile.tpl
3756 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3757 # However, they still use the build modules, because the corresponding
3758 # host modules (e.g. bison) are only built for the host when bootstrap
3759 # finishes. So:
3760 # - build_subdir is where we find build modules, and never changes.
3761 # - build_libsubdir is where we find build libraries, and can be overridden.
3763 # Prefix 'build-' so this never conflicts with target_subdir.
3764 build_subdir="build-${build_noncanonical}"
3766 # Check whether --with-build-libsubdir was given.
3767 if test "${with_build_libsubdir+set}" = set; then :
3768 withval=$with_build_libsubdir; build_libsubdir="$withval"
3769 else
3770 build_libsubdir="$build_subdir"
3773 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3774 if ( test $srcdir = . && test -d gcc ) \
3775 || test -d $srcdir/../host-${host_noncanonical}; then
3776 host_subdir="host-${host_noncanonical}"
3777 else
3778 host_subdir=.
3780 # No prefix.
3781 target_subdir=${target_noncanonical}
3784 # 1.11.1: Require that version of automake.
3785 # foreign: Don't require README, INSTALL, NEWS, etc.
3786 # no-define: Don't define PACKAGE and VERSION.
3787 # -Wall: Issue all automake warnings.
3788 # -Wno-portability: Don't warn about constructs supported by GNU make.
3789 # (because GCC requires GNU make anyhow).
3790 am__api_version='1.11'
3792 # Find a good install program. We prefer a C program (faster),
3793 # so one script is as good as another. But avoid the broken or
3794 # incompatible versions:
3795 # SysV /etc/install, /usr/sbin/install
3796 # SunOS /usr/etc/install
3797 # IRIX /sbin/install
3798 # AIX /bin/install
3799 # AmigaOS /C/install, which installs bootblocks on floppy discs
3800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803 # OS/2's system install, which has a completely different semantic
3804 # ./install, which can be erroneously created by make from ./install.sh.
3805 # Reject install programs that cannot install multiple files.
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3807 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3808 if test -z "$INSTALL"; then
3809 if test "${ac_cv_path_install+set}" = set; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 # Account for people who put trailing slashes in PATH elements.
3818 case $as_dir/ in #((
3819 ./ | .// | /[cC]/* | \
3820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3821 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3822 /usr/ucb/* ) ;;
3824 # OSF1 and SCO ODT 3.0 have their own names for install.
3825 # Don't use installbsd from OSF since it installs stuff as root
3826 # by default.
3827 for ac_prog in ginstall scoinst install; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3830 if test $ac_prog = install &&
3831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # AIX install. It has an incompatible calling convention.
3834 elif test $ac_prog = install &&
3835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836 # program-specific install script used by HP pwplus--don't use.
3838 else
3839 rm -rf conftest.one conftest.two conftest.dir
3840 echo one > conftest.one
3841 echo two > conftest.two
3842 mkdir conftest.dir
3843 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3844 test -s conftest.one && test -s conftest.two &&
3845 test -s conftest.dir/conftest.one &&
3846 test -s conftest.dir/conftest.two
3847 then
3848 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3849 break 3
3853 done
3854 done
3856 esac
3858 done
3859 IFS=$as_save_IFS
3861 rm -rf conftest.one conftest.two conftest.dir
3864 if test "${ac_cv_path_install+set}" = set; then
3865 INSTALL=$ac_cv_path_install
3866 else
3867 # As a last resort, use the slow shell script. Don't cache a
3868 # value for INSTALL within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the value is a relative name.
3871 INSTALL=$ac_install_sh
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3875 $as_echo "$INSTALL" >&6; }
3877 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3878 # It thinks the first close brace ends the variable substitution.
3879 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3881 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3883 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3886 $as_echo_n "checking whether build environment is sane... " >&6; }
3887 # Just in case
3888 sleep 1
3889 echo timestamp > conftest.file
3890 # Reject unsafe characters in $srcdir or the absolute working directory
3891 # name. Accept space and tab only in the latter.
3892 am_lf='
3894 case `pwd` in
3895 *[\\\"\#\$\&\'\`$am_lf]*)
3896 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3897 esac
3898 case $srcdir in
3899 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3900 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3901 esac
3903 # Do `set' in a subshell so we don't clobber the current shell's
3904 # arguments. Must try -L first in case configure is actually a
3905 # symlink; some systems play weird games with the mod time of symlinks
3906 # (eg FreeBSD returns the mod time of the symlink's containing
3907 # directory).
3908 if (
3909 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3910 if test "$*" = "X"; then
3911 # -L didn't work.
3912 set X `ls -t "$srcdir/configure" conftest.file`
3914 rm -f conftest.file
3915 if test "$*" != "X $srcdir/configure conftest.file" \
3916 && test "$*" != "X conftest.file $srcdir/configure"; then
3918 # If neither matched, then we have a broken ls. This can happen
3919 # if, for instance, CONFIG_SHELL is bash and it inherits a
3920 # broken ls alias from the environment. This has actually
3921 # happened. Such a system could not be considered "sane".
3922 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3923 alias in your environment" "$LINENO" 5
3926 test "$2" = conftest.file
3928 then
3929 # Ok.
3931 else
3932 as_fn_error "newly created file is older than distributed files!
3933 Check your system clock" "$LINENO" 5
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936 $as_echo "yes" >&6; }
3937 test "$program_prefix" != NONE &&
3938 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3939 # Use a double $ so make ignores it.
3940 test "$program_suffix" != NONE &&
3941 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3942 # Double any \ or $.
3943 # By default was `s,x,x', remove it if useless.
3944 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3945 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3947 # expand $ac_aux_dir to an absolute path
3948 am_aux_dir=`cd $ac_aux_dir && pwd`
3950 if test x"${MISSING+set}" != xset; then
3951 case $am_aux_dir in
3952 *\ * | *\ *)
3953 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3955 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3956 esac
3958 # Use eval to expand $SHELL
3959 if eval "$MISSING --run true"; then
3960 am_missing_run="$MISSING --run "
3961 else
3962 am_missing_run=
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3964 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3967 if test x"${install_sh}" != xset; then
3968 case $am_aux_dir in
3969 *\ * | *\ *)
3970 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3972 install_sh="\${SHELL} $am_aux_dir/install-sh"
3973 esac
3976 # Installed binaries are usually stripped using `strip' when the user
3977 # run `make install-strip'. However `strip' might not be the right
3978 # tool to use in cross-compilation environments, therefore Automake
3979 # will honor the `STRIP' environment variable to overrule this program.
3980 if test "$cross_compiling" != no; then
3981 if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3983 set dummy ${ac_tool_prefix}strip; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if test "${ac_cv_prog_STRIP+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 if test -n "$STRIP"; then
3990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4003 done
4004 done
4005 IFS=$as_save_IFS
4009 STRIP=$ac_cv_prog_STRIP
4010 if test -n "$STRIP"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4012 $as_echo "$STRIP" >&6; }
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4020 if test -z "$ac_cv_prog_STRIP"; then
4021 ac_ct_STRIP=$STRIP
4022 # Extract the first word of "strip", so it can be a program name with args.
4023 set dummy strip; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$ac_ct_STRIP"; then
4030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_ac_ct_STRIP="strip"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4049 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4050 if test -n "$ac_ct_STRIP"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4052 $as_echo "$ac_ct_STRIP" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4058 if test "x$ac_ct_STRIP" = x; then
4059 STRIP=":"
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062 yes:)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067 STRIP=$ac_ct_STRIP
4069 else
4070 STRIP="$ac_cv_prog_STRIP"
4074 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4077 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4078 if test -z "$MKDIR_P"; then
4079 if test "${ac_cv_path_mkdir+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_prog in mkdir gmkdir; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4090 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4091 'mkdir (GNU coreutils) '* | \
4092 'mkdir (coreutils) '* | \
4093 'mkdir (fileutils) '4.1*)
4094 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4095 break 3;;
4096 esac
4097 done
4098 done
4099 done
4100 IFS=$as_save_IFS
4104 if test "${ac_cv_path_mkdir+set}" = set; then
4105 MKDIR_P="$ac_cv_path_mkdir -p"
4106 else
4107 # As a last resort, use the slow shell script. Don't cache a
4108 # value for MKDIR_P within a source directory, because that will
4109 # break other packages using the cache if that directory is
4110 # removed, or if the value is a relative name.
4111 test -d ./--version && rmdir ./--version
4112 MKDIR_P="$ac_install_sh -d"
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4116 $as_echo "$MKDIR_P" >&6; }
4118 mkdir_p="$MKDIR_P"
4119 case $mkdir_p in
4120 [\\/$]* | ?:[\\/]*) ;;
4121 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4122 esac
4124 for ac_prog in gawk mawk nawk awk
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if test "${ac_cv_prog_AWK+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -n "$AWK"; then
4134 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_AWK="$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4147 done
4148 done
4149 IFS=$as_save_IFS
4153 AWK=$ac_cv_prog_AWK
4154 if test -n "$AWK"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4156 $as_echo "$AWK" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4163 test -n "$AWK" && break
4164 done
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4167 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4168 set x ${MAKE-make}
4169 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4170 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 cat >conftest.make <<\_ACEOF
4174 SHELL = /bin/sh
4175 all:
4176 @echo '@@@%%%=$(MAKE)=@@@%%%'
4177 _ACEOF
4178 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4179 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4180 *@@@%%%=?*=@@@%%%*)
4181 eval ac_cv_prog_make_${ac_make}_set=yes;;
4183 eval ac_cv_prog_make_${ac_make}_set=no;;
4184 esac
4185 rm -f conftest.make
4187 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190 SET_MAKE=
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4194 SET_MAKE="MAKE=${MAKE-make}"
4197 rm -rf .tst 2>/dev/null
4198 mkdir .tst 2>/dev/null
4199 if test -d .tst; then
4200 am__leading_dot=.
4201 else
4202 am__leading_dot=_
4204 rmdir .tst 2>/dev/null
4206 DEPDIR="${am__leading_dot}deps"
4208 ac_config_commands="$ac_config_commands depfiles"
4211 am_make=${MAKE-make}
4212 cat > confinc << 'END'
4213 am__doit:
4214 @echo this is the am__doit target
4215 .PHONY: am__doit
4217 # If we don't find an include directive, just comment out the code.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4219 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4220 am__include="#"
4221 am__quote=
4222 _am_result=none
4223 # First try GNU make style include.
4224 echo "include confinc" > confmf
4225 # Ignore all kinds of additional output from `make'.
4226 case `$am_make -s -f confmf 2> /dev/null` in #(
4227 *the\ am__doit\ target*)
4228 am__include=include
4229 am__quote=
4230 _am_result=GNU
4232 esac
4233 # Now try BSD make style include.
4234 if test "$am__include" = "#"; then
4235 echo '.include "confinc"' > confmf
4236 case `$am_make -s -f confmf 2> /dev/null` in #(
4237 *the\ am__doit\ target*)
4238 am__include=.include
4239 am__quote="\""
4240 _am_result=BSD
4242 esac
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4247 $as_echo "$_am_result" >&6; }
4248 rm -f confinc confmf
4250 # Check whether --enable-dependency-tracking was given.
4251 if test "${enable_dependency_tracking+set}" = set; then :
4252 enableval=$enable_dependency_tracking;
4255 if test "x$enable_dependency_tracking" != xno; then
4256 am_depcomp="$ac_aux_dir/depcomp"
4257 AMDEPBACKSLASH='\'
4258 am__nodep='_no'
4260 if test "x$enable_dependency_tracking" != xno; then
4261 AMDEP_TRUE=
4262 AMDEP_FALSE='#'
4263 else
4264 AMDEP_TRUE='#'
4265 AMDEP_FALSE=
4269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4271 # is not polluted with repeated "-I."
4272 am__isrc=' -I$(srcdir)'
4273 # test to see if srcdir already configured
4274 if test -f $srcdir/config.status; then
4275 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4279 # test whether we have cygpath
4280 if test -z "$CYGPATH_W"; then
4281 if (cygpath --version) >/dev/null 2>/dev/null; then
4282 CYGPATH_W='cygpath -w'
4283 else
4284 CYGPATH_W=echo
4289 # Define the identity of the package.
4290 PACKAGE='libcc1'
4291 VERSION='version-unused'
4294 # Some tools Automake needs.
4296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4310 # We need awk for the "check" target. The system "awk" is bad on
4311 # some platforms.
4312 # Always define AMTAR for backward compatibility. Yes, it's still used
4313 # in the wild :-( We should find a proper way to deprecate it ...
4314 AMTAR='$${TAR-tar}'
4316 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4321 depcc="$CC" am_compiler_list=
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4324 $as_echo_n "checking dependency style of $depcc... " >&6; }
4325 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4329 # We make a subdir and do the tests there. Otherwise we can end up
4330 # making bogus files that we don't know about and never remove. For
4331 # instance it was reported that on HP-UX the gcc test will end up
4332 # making a dummy file named `D' -- because `-MD' means `put the output
4333 # in D'.
4334 rm -rf conftest.dir
4335 mkdir conftest.dir
4336 # Copy depcomp to subdir because otherwise we won't find it if we're
4337 # using a relative directory.
4338 cp "$am_depcomp" conftest.dir
4339 cd conftest.dir
4340 # We will build objects and dependencies in a subdirectory because
4341 # it helps to detect inapplicable dependency modes. For instance
4342 # both Tru64's cc and ICC support -MD to output dependencies as a
4343 # side effect of compilation, but ICC will put the dependencies in
4344 # the current directory while Tru64 will put them in the object
4345 # directory.
4346 mkdir sub
4348 am_cv_CC_dependencies_compiler_type=none
4349 if test "$am_compiler_list" = ""; then
4350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4352 am__universal=false
4353 case " $depcc " in #(
4354 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4355 esac
4357 for depmode in $am_compiler_list; do
4358 # Setup a source with many dependencies, because some compilers
4359 # like to wrap large dependency lists on column 80 (with \), and
4360 # we should not choose a depcomp mode which is confused by this.
4362 # We need to recreate these files for each test, as the compiler may
4363 # overwrite some of them when testing with obscure command lines.
4364 # This happens at least with the AIX C compiler.
4365 : > sub/conftest.c
4366 for i in 1 2 3 4 5 6; do
4367 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4368 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4369 # Solaris 8's {/usr,}/bin/sh.
4370 touch sub/conftst$i.h
4371 done
4372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4375 # mode. It turns out that the SunPro C++ compiler does not properly
4376 # handle `-M -o', and we need to detect this. Also, some Intel
4377 # versions had trouble with output in subdirs
4378 am__obj=sub/conftest.${OBJEXT-o}
4379 am__minus_obj="-o $am__obj"
4380 case $depmode in
4381 gcc)
4382 # This depmode causes a compiler race in universal mode.
4383 test "$am__universal" = false || continue
4385 nosideeffect)
4386 # after this tag, mechanisms are not by side-effect, so they'll
4387 # only be used when explicitly requested
4388 if test "x$enable_dependency_tracking" = xyes; then
4389 continue
4390 else
4391 break
4394 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4395 # This compiler won't grok `-c -o', but also, the minuso test has
4396 # not run yet. These depmodes are late enough in the game, and
4397 # so weak that their functioning should not be impacted.
4398 am__obj=conftest.${OBJEXT-o}
4399 am__minus_obj=
4401 none) break ;;
4402 esac
4403 if depmode=$depmode \
4404 source=sub/conftest.c object=$am__obj \
4405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4406 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4407 >/dev/null 2>conftest.err &&
4408 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4410 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4412 # icc doesn't choke on unknown options, it will just issue warnings
4413 # or remarks (even with -Werror). So we grep stderr for any message
4414 # that says an option was ignored or not supported.
4415 # When given -MP, icc 7.0 and 7.1 complain thusly:
4416 # icc: Command line warning: ignoring option '-M'; no argument required
4417 # The diagnosis changed in icc 8.0:
4418 # icc: Command line remark: option '-MP' not supported
4419 if (grep 'ignoring option' conftest.err ||
4420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4421 am_cv_CC_dependencies_compiler_type=$depmode
4422 break
4425 done
4427 cd ..
4428 rm -rf conftest.dir
4429 else
4430 am_cv_CC_dependencies_compiler_type=none
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4435 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4436 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439 test "x$enable_dependency_tracking" != xno \
4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4441 am__fastdepCC_TRUE=
4442 am__fastdepCC_FALSE='#'
4443 else
4444 am__fastdepCC_TRUE='#'
4445 am__fastdepCC_FALSE=
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4452 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4453 # Check whether --enable-maintainer-mode was given.
4454 if test "${enable_maintainer_mode+set}" = set; then :
4455 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4456 else
4457 USE_MAINTAINER_MODE=no
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4461 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4462 if test $USE_MAINTAINER_MODE = yes; then
4463 MAINTAINER_MODE_TRUE=
4464 MAINTAINER_MODE_FALSE='#'
4465 else
4466 MAINTAINER_MODE_TRUE='#'
4467 MAINTAINER_MODE_FALSE=
4470 MAINT=$MAINTAINER_MODE_TRUE
4474 case `pwd` in
4475 *\ * | *\ *)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4477 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4478 esac
4482 macro_version='2.2.7a'
4483 macro_revision='1.3134'
4497 ltmain="$ac_aux_dir/ltmain.sh"
4499 # Backslashify metacharacters that are still active within
4500 # double-quoted strings.
4501 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4503 # Same as above, but do not quote variable references.
4504 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4506 # Sed substitution to delay expansion of an escaped shell variable in a
4507 # double_quote_subst'ed string.
4508 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4510 # Sed substitution to delay expansion of an escaped single quote.
4511 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4513 # Sed substitution to avoid accidental globbing in evaled expressions
4514 no_glob_subst='s/\*/\\\*/g'
4516 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4517 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4518 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4521 $as_echo_n "checking how to print strings... " >&6; }
4522 # Test print first, because it will be a builtin if present.
4523 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4524 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4525 ECHO='print -r --'
4526 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4527 ECHO='printf %s\n'
4528 else
4529 # Use this function as a fallback that always works.
4530 func_fallback_echo ()
4532 eval 'cat <<_LTECHO_EOF
4534 _LTECHO_EOF'
4536 ECHO='func_fallback_echo'
4539 # func_echo_all arg...
4540 # Invoke $ECHO with all args, space-separated.
4541 func_echo_all ()
4543 $ECHO ""
4546 case "$ECHO" in
4547 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4548 $as_echo "printf" >&6; } ;;
4549 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4550 $as_echo "print -r" >&6; } ;;
4551 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4552 $as_echo "cat" >&6; } ;;
4553 esac
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4569 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4570 if test "${ac_cv_path_SED+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4574 for ac_i in 1 2 3 4 5 6 7; do
4575 ac_script="$ac_script$as_nl$ac_script"
4576 done
4577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4578 { ac_script=; unset ac_script;}
4579 if test -z "$SED"; then
4580 ac_path_SED_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in sed gsed; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4591 # Check for GNU ac_path_SED and select it if it is found.
4592 # Check for GNU $ac_path_SED
4593 case `"$ac_path_SED" --version 2>&1` in
4594 *GNU*)
4595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4597 ac_count=0
4598 $as_echo_n 0123456789 >"conftest.in"
4599 while :
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo '' >> "conftest.nl"
4605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_SED_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_SED="$ac_path_SED"
4611 ac_path_SED_max=$ac_count
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4619 $ac_path_SED_found && break 3
4620 done
4621 done
4622 done
4623 IFS=$as_save_IFS
4624 if test -z "$ac_cv_path_SED"; then
4625 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4627 else
4628 ac_cv_path_SED=$SED
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4633 $as_echo "$ac_cv_path_SED" >&6; }
4634 SED="$ac_cv_path_SED"
4635 rm -f conftest.sed
4637 test -z "$SED" && SED=sed
4638 Xsed="$SED -e 1s/^X//"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4651 $as_echo_n "checking for fgrep... " >&6; }
4652 if test "${ac_cv_path_FGREP+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4656 then ac_cv_path_FGREP="$GREP -F"
4657 else
4658 if test -z "$FGREP"; then
4659 ac_path_FGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in fgrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4670 # Check for GNU ac_path_FGREP and select it if it is found.
4671 # Check for GNU $ac_path_FGREP
4672 case `"$ac_path_FGREP" --version 2>&1` in
4673 *GNU*)
4674 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4676 ac_count=0
4677 $as_echo_n 0123456789 >"conftest.in"
4678 while :
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'FGREP' >> "conftest.nl"
4684 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_FGREP="$ac_path_FGREP"
4690 ac_path_FGREP_max=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4694 done
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4698 $ac_path_FGREP_found && break 3
4699 done
4700 done
4701 done
4702 IFS=$as_save_IFS
4703 if test -z "$ac_cv_path_FGREP"; then
4704 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706 else
4707 ac_cv_path_FGREP=$FGREP
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4713 $as_echo "$ac_cv_path_FGREP" >&6; }
4714 FGREP="$ac_cv_path_FGREP"
4717 test -z "$GREP" && GREP=grep
4737 # Check whether --with-gnu-ld was given.
4738 if test "${with_gnu_ld+set}" = set; then :
4739 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4740 else
4741 with_gnu_ld=no
4744 ac_prog=ld
4745 if test "$GCC" = yes; then
4746 # Check if gcc -print-prog-name=ld gives a path.
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4748 $as_echo_n "checking for ld used by $CC... " >&6; }
4749 case $host in
4750 *-*-mingw*)
4751 # gcc leaves a trailing carriage return which upsets mingw
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4754 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4755 esac
4756 case $ac_prog in
4757 # Accept absolute paths.
4758 [\\/]* | ?:[\\/]*)
4759 re_direlt='/[^/][^/]*/\.\./'
4760 # Canonicalize the pathname of ld
4761 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4762 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4763 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4764 done
4765 test -z "$LD" && LD="$ac_prog"
4768 # If it fails, then pretend we aren't using GCC.
4769 ac_prog=ld
4772 # If it is relative, then search for the first ld in PATH.
4773 with_gnu_ld=unknown
4775 esac
4776 elif test "$with_gnu_ld" = yes; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4778 $as_echo_n "checking for GNU ld... " >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4781 $as_echo_n "checking for non-GNU ld... " >&6; }
4783 if test "${lt_cv_path_LD+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -z "$LD"; then
4787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4788 for ac_dir in $PATH; do
4789 IFS="$lt_save_ifs"
4790 test -z "$ac_dir" && ac_dir=.
4791 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4792 lt_cv_path_LD="$ac_dir/$ac_prog"
4793 # Check to see if the program is GNU ld. I'd rather use --version,
4794 # but apparently some variants of GNU ld only accept -v.
4795 # Break only if it was the GNU/non-GNU ld that we prefer.
4796 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4797 *GNU* | *'with BFD'*)
4798 test "$with_gnu_ld" != no && break
4801 test "$with_gnu_ld" != yes && break
4803 esac
4805 done
4806 IFS="$lt_save_ifs"
4807 else
4808 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4812 LD="$lt_cv_path_LD"
4813 if test -n "$LD"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4815 $as_echo "$LD" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4820 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4822 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4823 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4827 case `$LD -v 2>&1 </dev/null` in
4828 *GNU* | *'with BFD'*)
4829 lt_cv_prog_gnu_ld=yes
4832 lt_cv_prog_gnu_ld=no
4834 esac
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4837 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4838 with_gnu_ld=$lt_cv_prog_gnu_ld
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4849 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4850 if test "${lt_cv_path_NM+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$NM"; then
4854 # Let the user override the test.
4855 lt_cv_path_NM="$NM"
4856 else
4857 lt_nm_to_check="${ac_tool_prefix}nm"
4858 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4859 lt_nm_to_check="$lt_nm_to_check nm"
4861 for lt_tmp_nm in $lt_nm_to_check; do
4862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4863 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4864 IFS="$lt_save_ifs"
4865 test -z "$ac_dir" && ac_dir=.
4866 tmp_nm="$ac_dir/$lt_tmp_nm"
4867 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4868 # Check to see if the nm accepts a BSD-compat flag.
4869 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4870 # nm: unknown option "B" ignored
4871 # Tru64's nm complains that /dev/null is an invalid object file
4872 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4873 */dev/null* | *'Invalid file or object type'*)
4874 lt_cv_path_NM="$tmp_nm -B"
4875 break
4878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4879 */dev/null*)
4880 lt_cv_path_NM="$tmp_nm -p"
4881 break
4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885 continue # so that we can try to find one that supports BSD flags
4887 esac
4889 esac
4891 done
4892 IFS="$lt_save_ifs"
4893 done
4894 : ${lt_cv_path_NM=no}
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4898 $as_echo "$lt_cv_path_NM" >&6; }
4899 if test "$lt_cv_path_NM" != "no"; then
4900 NM="$lt_cv_path_NM"
4901 else
4902 # Didn't find any BSD compatible name lister, look for dumpbin.
4903 if test -n "$DUMPBIN"; then :
4904 # Let the user override the test.
4905 else
4906 if test -n "$ac_tool_prefix"; then
4907 for ac_prog in dumpbin "link -dump"
4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 if test -n "$DUMPBIN"; then
4917 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4930 done
4931 done
4932 IFS=$as_save_IFS
4936 DUMPBIN=$ac_cv_prog_DUMPBIN
4937 if test -n "$DUMPBIN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4939 $as_echo "$DUMPBIN" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 test -n "$DUMPBIN" && break
4947 done
4949 if test -z "$DUMPBIN"; then
4950 ac_ct_DUMPBIN=$DUMPBIN
4951 for ac_prog in dumpbin "link -dump"
4953 # Extract the first word of "$ac_prog", so it can be a program name with args.
4954 set dummy $ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4974 done
4975 done
4976 IFS=$as_save_IFS
4980 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4981 if test -n "$ac_ct_DUMPBIN"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4983 $as_echo "$ac_ct_DUMPBIN" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4990 test -n "$ac_ct_DUMPBIN" && break
4991 done
4993 if test "x$ac_ct_DUMPBIN" = x; then
4994 DUMPBIN=":"
4995 else
4996 case $cross_compiling:$ac_tool_warned in
4997 yes:)
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000 ac_tool_warned=yes ;;
5001 esac
5002 DUMPBIN=$ac_ct_DUMPBIN
5006 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5007 *COFF*)
5008 DUMPBIN="$DUMPBIN -symbols"
5011 DUMPBIN=:
5013 esac
5016 if test "$DUMPBIN" != ":"; then
5017 NM="$DUMPBIN"
5020 test -z "$NM" && NM=nm
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5028 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5029 if test "${lt_cv_nm_interface+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 lt_cv_nm_interface="BSD nm"
5033 echo "int some_variable = 0;" > conftest.$ac_ext
5034 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5035 (eval "$ac_compile" 2>conftest.err)
5036 cat conftest.err >&5
5037 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5038 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5039 cat conftest.err >&5
5040 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5041 cat conftest.out >&5
5042 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5043 lt_cv_nm_interface="MS dumpbin"
5045 rm -f conftest*
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5048 $as_echo "$lt_cv_nm_interface" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5051 $as_echo_n "checking whether ln -s works... " >&6; }
5052 LN_S=$as_ln_s
5053 if test "$LN_S" = "ln -s"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5055 $as_echo "yes" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5058 $as_echo "no, using $LN_S" >&6; }
5061 # find the maximum length of command line arguments
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5063 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5064 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5068 teststring="ABCD"
5070 case $build_os in
5071 msdosdjgpp*)
5072 # On DJGPP, this test can blow up pretty badly due to problems in libc
5073 # (any single argument exceeding 2000 bytes causes a buffer overrun
5074 # during glob expansion). Even if it were fixed, the result of this
5075 # check would be larger than it should be.
5076 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5079 gnu*)
5080 # Under GNU Hurd, this test is not required because there is
5081 # no limit to the length of command line arguments.
5082 # Libtool will interpret -1 as no limit whatsoever
5083 lt_cv_sys_max_cmd_len=-1;
5086 cygwin* | mingw* | cegcc*)
5087 # On Win9x/ME, this test blows up -- it succeeds, but takes
5088 # about 5 minutes as the teststring grows exponentially.
5089 # Worse, since 9x/ME are not pre-emptively multitasking,
5090 # you end up with a "frozen" computer, even though with patience
5091 # the test eventually succeeds (with a max line length of 256k).
5092 # Instead, let's just punt: use the minimum linelength reported by
5093 # all of the supported platforms: 8192 (on NT/2K/XP).
5094 lt_cv_sys_max_cmd_len=8192;
5097 mint*)
5098 # On MiNT this can take a long time and run out of memory.
5099 lt_cv_sys_max_cmd_len=8192;
5102 amigaos*)
5103 # On AmigaOS with pdksh, this test takes hours, literally.
5104 # So we just punt and use a minimum line length of 8192.
5105 lt_cv_sys_max_cmd_len=8192;
5108 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5109 # This has been around since 386BSD, at least. Likely further.
5110 if test -x /sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5112 elif test -x /usr/sbin/sysctl; then
5113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5114 else
5115 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5117 # And add a safety zone
5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5122 interix*)
5123 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5124 lt_cv_sys_max_cmd_len=196608
5127 osf*)
5128 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5129 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5130 # nice to cause kernel panics so lets avoid the loop below.
5131 # First set a reasonable default.
5132 lt_cv_sys_max_cmd_len=16384
5134 if test -x /sbin/sysconfig; then
5135 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5136 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5137 esac
5140 sco3.2v5*)
5141 lt_cv_sys_max_cmd_len=102400
5143 sysv5* | sco5v6* | sysv4.2uw2*)
5144 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5145 if test -n "$kargmax"; then
5146 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5147 else
5148 lt_cv_sys_max_cmd_len=32768
5152 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5153 if test -n "$lt_cv_sys_max_cmd_len"; then
5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156 else
5157 # Make teststring a little bigger before we do anything with it.
5158 # a 1K string should be a reasonable start.
5159 for i in 1 2 3 4 5 6 7 8 ; do
5160 teststring=$teststring$teststring
5161 done
5162 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163 # If test is not a shell built-in, we'll probably end up computing a
5164 # maximum length that is only half of the actual maximum length, but
5165 # we can't tell.
5166 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5167 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168 test $i != 17 # 1/2 MB should be enough
5170 i=`expr $i + 1`
5171 teststring=$teststring$teststring
5172 done
5173 # Only check the string length outside the loop.
5174 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5175 teststring=
5176 # Add a significant safety factor because C++ compilers can tack on
5177 # massive amounts of additional arguments before passing them to the
5178 # linker. It appears as though 1/2 is a usable value.
5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5182 esac
5186 if test -n $lt_cv_sys_max_cmd_len ; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 $as_echo "none" >&6; }
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5200 : ${CP="cp -f"}
5201 : ${MV="mv -f"}
5202 : ${RM="rm -f"}
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5205 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5206 # Try some XSI features
5207 xsi_shell=no
5208 ( _lt_dummy="a/b/c"
5209 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5210 = c,a/b,, \
5211 && eval 'test $(( 1 + 1 )) -eq 2 \
5212 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5213 && xsi_shell=yes
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5215 $as_echo "$xsi_shell" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5219 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5220 lt_shell_append=no
5221 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5222 >/dev/null 2>&1 \
5223 && lt_shell_append=yes
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5225 $as_echo "$lt_shell_append" >&6; }
5228 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5229 lt_unset=unset
5230 else
5231 lt_unset=false
5238 # test EBCDIC or ASCII
5239 case `echo X|tr X '\101'` in
5240 A) # ASCII based system
5241 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5242 lt_SP2NL='tr \040 \012'
5243 lt_NL2SP='tr \015\012 \040\040'
5245 *) # EBCDIC based system
5246 lt_SP2NL='tr \100 \n'
5247 lt_NL2SP='tr \r\n \100\100'
5249 esac
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5260 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5261 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 lt_cv_ld_reload_flag='-r'
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5267 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5268 reload_flag=$lt_cv_ld_reload_flag
5269 case $reload_flag in
5270 "" | " "*) ;;
5271 *) reload_flag=" $reload_flag" ;;
5272 esac
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274 case $host_os in
5275 darwin*)
5276 if test "$GCC" = yes; then
5277 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5278 else
5279 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5282 esac
5292 if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5294 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$OBJDUMP"; then
5301 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 OBJDUMP=$ac_cv_prog_OBJDUMP
5321 if test -n "$OBJDUMP"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5323 $as_echo "$OBJDUMP" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5331 if test -z "$ac_cv_prog_OBJDUMP"; then
5332 ac_ct_OBJDUMP=$OBJDUMP
5333 # Extract the first word of "objdump", so it can be a program name with args.
5334 set dummy objdump; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$ac_ct_OBJDUMP"; then
5341 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5360 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5361 if test -n "$ac_ct_OBJDUMP"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5363 $as_echo "$ac_ct_OBJDUMP" >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5369 if test "x$ac_ct_OBJDUMP" = x; then
5370 OBJDUMP="false"
5371 else
5372 case $cross_compiling:$ac_tool_warned in
5373 yes:)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned=yes ;;
5377 esac
5378 OBJDUMP=$ac_ct_OBJDUMP
5380 else
5381 OBJDUMP="$ac_cv_prog_OBJDUMP"
5384 test -z "$OBJDUMP" && OBJDUMP=objdump
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5395 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5396 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 lt_cv_file_magic_cmd='$MAGIC_CMD'
5400 lt_cv_file_magic_test_file=
5401 lt_cv_deplibs_check_method='unknown'
5402 # Need to set the preceding variable on all platforms that support
5403 # interlibrary dependencies.
5404 # 'none' -- dependencies not supported.
5405 # `unknown' -- same as none, but documents that we really don't know.
5406 # 'pass_all' -- all dependencies passed with no checks.
5407 # 'test_compile' -- check by making test program.
5408 # 'file_magic [[regex]]' -- check by looking for files in library path
5409 # which responds to the $file_magic_cmd with a given extended regex.
5410 # If you have `file' or equivalent on your system and you're not sure
5411 # whether `pass_all' will *always* work, you probably want this one.
5413 case $host_os in
5414 aix[4-9]*)
5415 lt_cv_deplibs_check_method=pass_all
5418 beos*)
5419 lt_cv_deplibs_check_method=pass_all
5422 bsdi[45]*)
5423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5424 lt_cv_file_magic_cmd='/usr/bin/file -L'
5425 lt_cv_file_magic_test_file=/shlib/libc.so
5428 cygwin*)
5429 # func_win32_libid is a shell function defined in ltmain.sh
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5434 mingw* | pw32*)
5435 # Base MSYS/MinGW do not provide the 'file' command needed by
5436 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5437 # unless we find 'file', for example because we are cross-compiling.
5438 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5439 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5440 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5441 lt_cv_file_magic_cmd='func_win32_libid'
5442 else
5443 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5444 lt_cv_file_magic_cmd='$OBJDUMP -f'
5448 cegcc*)
5449 # use the weaker test based on 'objdump'. See mingw*.
5450 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5451 lt_cv_file_magic_cmd='$OBJDUMP -f'
5454 darwin* | rhapsody*)
5455 lt_cv_deplibs_check_method=pass_all
5458 freebsd* | dragonfly*)
5459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5460 case $host_cpu in
5461 i*86 )
5462 # Not sure whether the presence of OpenBSD here was a mistake.
5463 # Let's accept both of them until this is cleared up.
5464 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5465 lt_cv_file_magic_cmd=/usr/bin/file
5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5468 esac
5469 else
5470 lt_cv_deplibs_check_method=pass_all
5474 gnu*)
5475 lt_cv_deplibs_check_method=pass_all
5478 haiku*)
5479 lt_cv_deplibs_check_method=pass_all
5482 hpux10.20* | hpux11*)
5483 lt_cv_file_magic_cmd=/usr/bin/file
5484 case $host_cpu in
5485 ia64*)
5486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5487 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5489 hppa*64*)
5490 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]'
5491 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5495 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5497 esac
5500 interix[3-9]*)
5501 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5505 irix5* | irix6* | nonstopux*)
5506 case $LD in
5507 *-32|*"-32 ") libmagic=32-bit;;
5508 *-n32|*"-n32 ") libmagic=N32;;
5509 *-64|*"-64 ") libmagic=64-bit;;
5510 *) libmagic=never-match;;
5511 esac
5512 lt_cv_deplibs_check_method=pass_all
5515 # This must be Linux ELF.
5516 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5517 lt_cv_deplibs_check_method=pass_all
5520 netbsd*)
5521 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5523 else
5524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5528 newos6*)
5529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5530 lt_cv_file_magic_cmd=/usr/bin/file
5531 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5534 *nto* | *qnx*)
5535 lt_cv_deplibs_check_method=pass_all
5538 openbsd*)
5539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5541 else
5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5546 osf3* | osf4* | osf5*)
5547 lt_cv_deplibs_check_method=pass_all
5550 rdos*)
5551 lt_cv_deplibs_check_method=pass_all
5554 solaris*)
5555 lt_cv_deplibs_check_method=pass_all
5558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5559 lt_cv_deplibs_check_method=pass_all
5562 sysv4 | sysv4.3*)
5563 case $host_vendor in
5564 motorola)
5565 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]'
5566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5568 ncr)
5569 lt_cv_deplibs_check_method=pass_all
5571 sequent)
5572 lt_cv_file_magic_cmd='/bin/file'
5573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5575 sni)
5576 lt_cv_file_magic_cmd='/bin/file'
5577 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5578 lt_cv_file_magic_test_file=/lib/libc.so
5580 siemens)
5581 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_deplibs_check_method=pass_all
5586 esac
5589 tpf*)
5590 lt_cv_deplibs_check_method=pass_all
5592 esac
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5596 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5597 file_magic_cmd=$lt_cv_file_magic_cmd
5598 deplibs_check_method=$lt_cv_deplibs_check_method
5599 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5612 if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5614 set dummy ${ac_tool_prefix}ar; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_prog_AR+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$AR"; then
5621 ac_cv_prog_AR="$AR" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_AR="${ac_tool_prefix}ar"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5634 done
5635 done
5636 IFS=$as_save_IFS
5640 AR=$ac_cv_prog_AR
5641 if test -n "$AR"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5643 $as_echo "$AR" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5651 if test -z "$ac_cv_prog_AR"; then
5652 ac_ct_AR=$AR
5653 # Extract the first word of "ar", so it can be a program name with args.
5654 set dummy ar; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$ac_ct_AR"; then
5661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_ac_ct_AR="ar"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5681 if test -n "$ac_ct_AR"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5683 $as_echo "$ac_ct_AR" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5689 if test "x$ac_ct_AR" = x; then
5690 AR="false"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693 yes:)
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696 ac_tool_warned=yes ;;
5697 esac
5698 AR=$ac_ct_AR
5700 else
5701 AR="$ac_cv_prog_AR"
5704 test -z "$AR" && AR=ar
5705 test -z "$AR_FLAGS" && AR_FLAGS=cru
5717 if test -n "$ac_tool_prefix"; then
5718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5719 set dummy ${ac_tool_prefix}strip; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_prog_STRIP+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$STRIP"; then
5726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5739 done
5740 done
5741 IFS=$as_save_IFS
5745 STRIP=$ac_cv_prog_STRIP
5746 if test -n "$STRIP"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5748 $as_echo "$STRIP" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5756 if test -z "$ac_cv_prog_STRIP"; then
5757 ac_ct_STRIP=$STRIP
5758 # Extract the first word of "strip", so it can be a program name with args.
5759 set dummy strip; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 if test -n "$ac_ct_STRIP"; then
5766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_ac_ct_STRIP="strip"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5779 done
5780 done
5781 IFS=$as_save_IFS
5785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5786 if test -n "$ac_ct_STRIP"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5788 $as_echo "$ac_ct_STRIP" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5794 if test "x$ac_ct_STRIP" = x; then
5795 STRIP=":"
5796 else
5797 case $cross_compiling:$ac_tool_warned in
5798 yes:)
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801 ac_tool_warned=yes ;;
5802 esac
5803 STRIP=$ac_ct_STRIP
5805 else
5806 STRIP="$ac_cv_prog_STRIP"
5809 test -z "$STRIP" && STRIP=:
5816 if test -n "$ac_tool_prefix"; then
5817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 if test -n "$RANLIB"; then
5825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5838 done
5839 done
5840 IFS=$as_save_IFS
5844 RANLIB=$ac_cv_prog_RANLIB
5845 if test -n "$RANLIB"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5847 $as_echo "$RANLIB" >&6; }
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5855 if test -z "$ac_cv_prog_RANLIB"; then
5856 ac_ct_RANLIB=$RANLIB
5857 # Extract the first word of "ranlib", so it can be a program name with args.
5858 set dummy ranlib; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -n "$ac_ct_RANLIB"; then
5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_ac_ct_RANLIB="ranlib"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5878 done
5879 done
5880 IFS=$as_save_IFS
5884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885 if test -n "$ac_ct_RANLIB"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5887 $as_echo "$ac_ct_RANLIB" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5893 if test "x$ac_ct_RANLIB" = x; then
5894 RANLIB=":"
5895 else
5896 case $cross_compiling:$ac_tool_warned in
5897 yes:)
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900 ac_tool_warned=yes ;;
5901 esac
5902 RANLIB=$ac_ct_RANLIB
5904 else
5905 RANLIB="$ac_cv_prog_RANLIB"
5908 test -z "$RANLIB" && RANLIB=:
5915 # Determine commands to create old-style static archives.
5916 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5917 old_postinstall_cmds='chmod 644 $oldlib'
5918 old_postuninstall_cmds=
5920 if test -n "$RANLIB"; then
5921 case $host_os in
5922 openbsd*)
5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5926 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5928 esac
5929 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5932 case $host_os in
5933 darwin*)
5934 lock_old_archive_extraction=yes ;;
5936 lock_old_archive_extraction=no ;;
5937 esac
5977 # If no C compiler was specified, use CC.
5978 LTCC=${LTCC-"$CC"}
5980 # If no C compiler flags were specified, use CFLAGS.
5981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5983 # Allow CC to be a program name with arguments.
5984 compiler=$CC
5987 # Check for command to grab the raw symbol name followed by C symbol from nm.
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5989 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5990 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5994 # These are sane defaults that work on at least a few old systems.
5995 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5997 # Character class describing NM global symbol codes.
5998 symcode='[BCDEGRST]'
6000 # Regexp to match symbols that can be accessed directly from C.
6001 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6003 # Define system-specific variables.
6004 case $host_os in
6005 aix*)
6006 symcode='[BCDT]'
6008 cygwin* | mingw* | pw32* | cegcc*)
6009 symcode='[ABCDGISTW]'
6011 hpux*)
6012 if test "$host_cpu" = ia64; then
6013 symcode='[ABCDEGRST]'
6016 irix* | nonstopux*)
6017 symcode='[BCDEGRST]'
6019 osf*)
6020 symcode='[BCDEGQRST]'
6022 solaris*)
6023 symcode='[BDRT]'
6025 sco3.2v5*)
6026 symcode='[DT]'
6028 sysv4.2uw2*)
6029 symcode='[DT]'
6031 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6032 symcode='[ABDT]'
6034 sysv4)
6035 symcode='[DFNSTU]'
6037 esac
6039 # If we're using GNU nm, then use its standard symbol codes.
6040 case `$NM -V 2>&1` in
6041 *GNU* | *'with BFD'*)
6042 symcode='[ABCDGIRSTW]' ;;
6043 esac
6045 # Transform an extracted symbol line into a proper C declaration.
6046 # Some systems (esp. on ia64) link data and code symbols differently,
6047 # so use this general approach.
6048 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6050 # Transform an extracted symbol line into symbol name and symbol address
6051 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6052 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'"
6054 # Handle CRLF in mingw tool chain
6055 opt_cr=
6056 case $build_os in
6057 mingw*)
6058 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6060 esac
6062 # Try without a prefix underscore, then with it.
6063 for ac_symprfx in "" "_"; do
6065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6066 symxfrm="\\1 $ac_symprfx\\2 \\2"
6068 # Write the raw and C identifiers.
6069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6070 # Fake it for dumpbin and say T for any non-static function
6071 # and D for any global variable.
6072 # Also find C++ and __fastcall symbols from MSVC++,
6073 # which start with @ or ?.
6074 lt_cv_sys_global_symbol_pipe="$AWK '"\
6075 " {last_section=section; section=\$ 3};"\
6076 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6077 " \$ 0!~/External *\|/{next};"\
6078 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6079 " {if(hide[section]) next};"\
6080 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6081 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6082 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6083 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6084 " ' prfx=^$ac_symprfx"
6085 else
6086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6089 # Check to see that the pipe works correctly.
6090 pipe_works=no
6092 rm -f conftest*
6093 cat > conftest.$ac_ext <<_LT_EOF
6094 #ifdef __cplusplus
6095 extern "C" {
6096 #endif
6097 char nm_test_var;
6098 void nm_test_func(void);
6099 void nm_test_func(void){}
6100 #ifdef __cplusplus
6102 #endif
6103 int main(){nm_test_var='a';nm_test_func();return(0);}
6104 _LT_EOF
6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107 (eval $ac_compile) 2>&5
6108 ac_status=$?
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
6111 # Now try to grab the symbols.
6112 nlist=conftest.nm
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6114 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6115 ac_status=$?
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; } && test -s "$nlist"; then
6118 # Try sorting and uniquifying the output.
6119 if sort "$nlist" | uniq > "$nlist"T; then
6120 mv -f "$nlist"T "$nlist"
6121 else
6122 rm -f "$nlist"T
6125 # Make sure that we snagged all the symbols we need.
6126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6128 cat <<_LT_EOF > conftest.$ac_ext
6129 #ifdef __cplusplus
6130 extern "C" {
6131 #endif
6133 _LT_EOF
6134 # Now generate the symbol file.
6135 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6137 cat <<_LT_EOF >> conftest.$ac_ext
6139 /* The mapping between symbol names and symbols. */
6140 const struct {
6141 const char *name;
6142 void *address;
6144 lt__PROGRAM__LTX_preloaded_symbols[] =
6146 { "@PROGRAM@", (void *) 0 },
6147 _LT_EOF
6148 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6149 cat <<\_LT_EOF >> conftest.$ac_ext
6150 {0, (void *) 0}
6153 /* This works around a problem in FreeBSD linker */
6154 #ifdef FREEBSD_WORKAROUND
6155 static const void *lt_preloaded_setup() {
6156 return lt__PROGRAM__LTX_preloaded_symbols;
6158 #endif
6160 #ifdef __cplusplus
6162 #endif
6163 _LT_EOF
6164 # Now try linking the two files.
6165 mv conftest.$ac_objext conftstm.$ac_objext
6166 lt_save_LIBS="$LIBS"
6167 lt_save_CFLAGS="$CFLAGS"
6168 LIBS="conftstm.$ac_objext"
6169 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6171 (eval $ac_link) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6175 pipe_works=yes
6177 LIBS="$lt_save_LIBS"
6178 CFLAGS="$lt_save_CFLAGS"
6179 else
6180 echo "cannot find nm_test_func in $nlist" >&5
6182 else
6183 echo "cannot find nm_test_var in $nlist" >&5
6185 else
6186 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6188 else
6189 echo "$progname: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 rm -rf conftest* conftst*
6194 # Do not use the global_symbol_pipe unless it works.
6195 if test "$pipe_works" = yes; then
6196 break
6197 else
6198 lt_cv_sys_global_symbol_pipe=
6200 done
6204 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6205 lt_cv_sys_global_symbol_to_cdecl=
6207 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6209 $as_echo "failed" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6212 $as_echo "ok" >&6; }
6236 # Check whether --enable-libtool-lock was given.
6237 if test "${enable_libtool_lock+set}" = set; then :
6238 enableval=$enable_libtool_lock;
6241 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6243 # Some flags need to be propagated to the compiler or linker for good
6244 # libtool support.
6245 case $host in
6246 ia64-*-hpux*)
6247 # Find out which ABI we are using.
6248 echo 'int i;' > conftest.$ac_ext
6249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250 (eval $ac_compile) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }; then
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *ELF-32*)
6256 HPUX_IA64_MODE="32"
6258 *ELF-64*)
6259 HPUX_IA64_MODE="64"
6261 esac
6263 rm -rf conftest*
6265 *-*-irix6*)
6266 # Find out which ABI we are using.
6267 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6269 (eval $ac_compile) 2>&5
6270 ac_status=$?
6271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272 test $ac_status = 0; }; then
6273 if test "$lt_cv_prog_gnu_ld" = yes; then
6274 case `/usr/bin/file conftest.$ac_objext` in
6275 *32-bit*)
6276 LD="${LD-ld} -melf32bsmip"
6278 *N32*)
6279 LD="${LD-ld} -melf32bmipn32"
6281 *64-bit*)
6282 LD="${LD-ld} -melf64bmip"
6284 esac
6285 else
6286 case `/usr/bin/file conftest.$ac_objext` in
6287 *32-bit*)
6288 LD="${LD-ld} -32"
6290 *N32*)
6291 LD="${LD-ld} -n32"
6293 *64-bit*)
6294 LD="${LD-ld} -64"
6296 esac
6299 rm -rf conftest*
6302 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6303 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6304 # Find out which ABI we are using.
6305 echo 'int i;' > conftest.$ac_ext
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307 (eval $ac_compile) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }; then
6311 case `/usr/bin/file conftest.o` in
6312 *32-bit*)
6313 case $host in
6314 x86_64-*kfreebsd*-gnu)
6315 LD="${LD-ld} -m elf_i386_fbsd"
6317 x86_64-*linux*)
6318 case `/usr/bin/file conftest.o` in
6319 *x86-64*)
6320 LD="${LD-ld} -m elf32_x86_64"
6323 LD="${LD-ld} -m elf_i386"
6325 esac
6327 powerpc64le-*linux*)
6328 LD="${LD-ld} -m elf32lppclinux"
6330 powerpc64-*linux*)
6331 LD="${LD-ld} -m elf32ppclinux"
6333 s390x-*linux*)
6334 LD="${LD-ld} -m elf_s390"
6336 sparc64-*linux*)
6337 LD="${LD-ld} -m elf32_sparc"
6339 esac
6341 *64-bit*)
6342 case $host in
6343 x86_64-*kfreebsd*-gnu)
6344 LD="${LD-ld} -m elf_x86_64_fbsd"
6346 x86_64-*linux*)
6347 LD="${LD-ld} -m elf_x86_64"
6349 powerpcle-*linux*)
6350 LD="${LD-ld} -m elf64lppc"
6352 powerpc-*linux*)
6353 LD="${LD-ld} -m elf64ppc"
6355 s390*-*linux*|s390*-*tpf*)
6356 LD="${LD-ld} -m elf64_s390"
6358 sparc*-*linux*)
6359 LD="${LD-ld} -m elf64_sparc"
6361 esac
6363 esac
6365 rm -rf conftest*
6368 *-*-sco3.2v5*)
6369 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6370 SAVE_CFLAGS="$CFLAGS"
6371 CFLAGS="$CFLAGS -belf"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6373 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6374 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 ac_ext=c
6378 ac_cpp='$CPP $CPPFLAGS'
6379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6387 main ()
6391 return 0;
6393 _ACEOF
6394 if ac_fn_c_try_link "$LINENO"; then :
6395 lt_cv_cc_needs_belf=yes
6396 else
6397 lt_cv_cc_needs_belf=no
6399 rm -f core conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 ac_ext=c
6402 ac_cpp='$CPP $CPPFLAGS'
6403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6409 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6410 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6412 CFLAGS="$SAVE_CFLAGS"
6415 sparc*-*solaris*)
6416 # Find out which ABI we are using.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.o` in
6424 *64-bit*)
6425 case $lt_cv_prog_gnu_ld in
6426 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6429 LD="${LD-ld} -64"
6432 esac
6434 esac
6436 rm -rf conftest*
6438 esac
6440 need_locks="$enable_libtool_lock"
6443 case $host_os in
6444 rhapsody* | darwin*)
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 if test -n "$DSYMUTIL"; then
6454 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6467 done
6468 done
6469 IFS=$as_save_IFS
6473 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6474 if test -n "$DSYMUTIL"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6476 $as_echo "$DSYMUTIL" >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6484 if test -z "$ac_cv_prog_DSYMUTIL"; then
6485 ac_ct_DSYMUTIL=$DSYMUTIL
6486 # Extract the first word of "dsymutil", so it can be a program name with args.
6487 set dummy dsymutil; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$ac_ct_DSYMUTIL"; then
6494 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6507 done
6508 done
6509 IFS=$as_save_IFS
6513 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6514 if test -n "$ac_ct_DSYMUTIL"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6516 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6522 if test "x$ac_ct_DSYMUTIL" = x; then
6523 DSYMUTIL=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531 DSYMUTIL=$ac_ct_DSYMUTIL
6533 else
6534 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$NMEDIT"; then
6546 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6561 IFS=$as_save_IFS
6565 NMEDIT=$ac_cv_prog_NMEDIT
6566 if test -n "$NMEDIT"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6568 $as_echo "$NMEDIT" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6576 if test -z "$ac_cv_prog_NMEDIT"; then
6577 ac_ct_NMEDIT=$NMEDIT
6578 # Extract the first word of "nmedit", so it can be a program name with args.
6579 set dummy nmedit; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$ac_ct_NMEDIT"; then
6586 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6599 done
6600 done
6601 IFS=$as_save_IFS
6605 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6606 if test -n "$ac_ct_NMEDIT"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6608 $as_echo "$ac_ct_NMEDIT" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6614 if test "x$ac_ct_NMEDIT" = x; then
6615 NMEDIT=":"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618 yes:)
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623 NMEDIT=$ac_ct_NMEDIT
6625 else
6626 NMEDIT="$ac_cv_prog_NMEDIT"
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if test "${ac_cv_prog_LIPO+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 if test -n "$LIPO"; then
6638 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6651 done
6652 done
6653 IFS=$as_save_IFS
6657 LIPO=$ac_cv_prog_LIPO
6658 if test -n "$LIPO"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6660 $as_echo "$LIPO" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6668 if test -z "$ac_cv_prog_LIPO"; then
6669 ac_ct_LIPO=$LIPO
6670 # Extract the first word of "lipo", so it can be a program name with args.
6671 set dummy lipo; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$ac_ct_LIPO"; then
6678 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_LIPO="lipo"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6698 if test -n "$ac_ct_LIPO"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6700 $as_echo "$ac_ct_LIPO" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test "x$ac_ct_LIPO" = x; then
6707 LIPO=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 LIPO=$ac_ct_LIPO
6717 else
6718 LIPO="$ac_cv_prog_LIPO"
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}otool; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$OTOOL"; then
6730 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6743 done
6744 done
6745 IFS=$as_save_IFS
6749 OTOOL=$ac_cv_prog_OTOOL
6750 if test -n "$OTOOL"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6752 $as_echo "$OTOOL" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_OTOOL"; then
6761 ac_ct_OTOOL=$OTOOL
6762 # Extract the first word of "otool", so it can be a program name with args.
6763 set dummy otool; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_OTOOL"; then
6770 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_OTOOL="otool"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6790 if test -n "$ac_ct_OTOOL"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6792 $as_echo "$ac_ct_OTOOL" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_OTOOL" = x; then
6799 OTOOL=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 OTOOL=$ac_ct_OTOOL
6809 else
6810 OTOOL="$ac_cv_prog_OTOOL"
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$OTOOL64"; then
6822 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6841 OTOOL64=$ac_cv_prog_OTOOL64
6842 if test -n "$OTOOL64"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6844 $as_echo "$OTOOL64" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6852 if test -z "$ac_cv_prog_OTOOL64"; then
6853 ac_ct_OTOOL64=$OTOOL64
6854 # Extract the first word of "otool64", so it can be a program name with args.
6855 set dummy otool64; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 if test -n "$ac_ct_OTOOL64"; then
6862 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_OTOOL64="otool64"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6875 done
6876 done
6877 IFS=$as_save_IFS
6881 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6882 if test -n "$ac_ct_OTOOL64"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6884 $as_echo "$ac_ct_OTOOL64" >&6; }
6885 else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6890 if test "x$ac_ct_OTOOL64" = x; then
6891 OTOOL64=":"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899 OTOOL64=$ac_ct_OTOOL64
6901 else
6902 OTOOL64="$ac_cv_prog_OTOOL64"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6932 $as_echo_n "checking for -single_module linker flag... " >&6; }
6933 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 lt_cv_apple_cc_single_mod=no
6937 if test -z "${LT_MULTI_MODULE}"; then
6938 # By default we will add the -single_module flag. You can override
6939 # by either setting the environment variable LT_MULTI_MODULE
6940 # non-empty at configure time, or by adding -multi_module to the
6941 # link flags.
6942 rm -rf libconftest.dylib*
6943 echo "int foo(void){return 1;}" > conftest.c
6944 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6945 -dynamiclib -Wl,-single_module conftest.c" >&5
6946 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6947 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6948 _lt_result=$?
6949 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6950 lt_cv_apple_cc_single_mod=yes
6951 else
6952 cat conftest.err >&5
6954 rm -rf libconftest.dylib*
6955 rm -f conftest.*
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6959 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6961 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6962 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 lt_cv_ld_exported_symbols_list=no
6966 save_LDFLAGS=$LDFLAGS
6967 echo "_main" > conftest.sym
6968 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6973 main ()
6977 return 0;
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981 lt_cv_ld_exported_symbols_list=yes
6982 else
6983 lt_cv_ld_exported_symbols_list=no
6985 rm -f core conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6987 LDFLAGS="$save_LDFLAGS"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6991 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6993 $as_echo_n "checking for -force_load linker flag... " >&6; }
6994 if test "${lt_cv_ld_force_load+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 lt_cv_ld_force_load=no
6998 cat > conftest.c << _LT_EOF
6999 int forced_loaded() { return 2;}
7000 _LT_EOF
7001 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7002 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7003 echo "$AR cru libconftest.a conftest.o" >&5
7004 $AR cru libconftest.a conftest.o 2>&5
7005 cat > conftest.c << _LT_EOF
7006 int main() { return 0;}
7007 _LT_EOF
7008 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7009 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7010 _lt_result=$?
7011 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7012 lt_cv_ld_force_load=yes
7013 else
7014 cat conftest.err >&5
7016 rm -f conftest.err libconftest.a conftest conftest.c
7017 rm -rf conftest.dSYM
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7021 $as_echo "$lt_cv_ld_force_load" >&6; }
7022 case $host_os in
7023 rhapsody* | darwin1.[012])
7024 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7025 darwin1.*)
7026 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7027 darwin*) # darwin 5.x on
7028 # if running on 10.5 or later, the deployment target defaults
7029 # to the OS version, if on x86, and 10.4, the deployment
7030 # target defaults to 10.4. Don't you love it?
7031 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7032 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 10.[012][,.]*)
7035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7036 10.*)
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7038 esac
7040 esac
7041 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7042 _lt_dar_single_mod='$single_module'
7044 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7045 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7046 else
7047 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7049 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7050 _lt_dsymutil='~$DSYMUTIL $lib || :'
7051 else
7052 _lt_dsymutil=
7055 esac
7057 for ac_header in dlfcn.h
7058 do :
7059 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7061 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7062 cat >>confdefs.h <<_ACEOF
7063 #define HAVE_DLFCN_H 1
7064 _ACEOF
7068 done
7074 # Set options
7075 # Check whether --enable-static was given.
7076 if test "${enable_static+set}" = set; then :
7077 enableval=$enable_static; p=${PACKAGE-default}
7078 case $enableval in
7079 yes) enable_static=yes ;;
7080 no) enable_static=no ;;
7082 enable_static=no
7083 # Look at the argument we got. We use all the common list separators.
7084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7085 for pkg in $enableval; do
7086 IFS="$lt_save_ifs"
7087 if test "X$pkg" = "X$p"; then
7088 enable_static=yes
7090 done
7091 IFS="$lt_save_ifs"
7093 esac
7094 else
7095 enable_static=no
7107 enable_dlopen=no
7110 enable_win32_dll=no
7113 # Check whether --enable-shared was given.
7114 if test "${enable_shared+set}" = set; then :
7115 enableval=$enable_shared; p=${PACKAGE-default}
7116 case $enableval in
7117 yes) enable_shared=yes ;;
7118 no) enable_shared=no ;;
7120 enable_shared=no
7121 # Look at the argument we got. We use all the common list separators.
7122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7123 for pkg in $enableval; do
7124 IFS="$lt_save_ifs"
7125 if test "X$pkg" = "X$p"; then
7126 enable_shared=yes
7128 done
7129 IFS="$lt_save_ifs"
7131 esac
7132 else
7133 enable_shared=yes
7146 # Check whether --with-pic was given.
7147 if test "${with_pic+set}" = set; then :
7148 withval=$with_pic; pic_mode="$withval"
7149 else
7150 pic_mode=default
7154 test -z "$pic_mode" && pic_mode=default
7162 # Check whether --enable-fast-install was given.
7163 if test "${enable_fast_install+set}" = set; then :
7164 enableval=$enable_fast_install; p=${PACKAGE-default}
7165 case $enableval in
7166 yes) enable_fast_install=yes ;;
7167 no) enable_fast_install=no ;;
7169 enable_fast_install=no
7170 # Look at the argument we got. We use all the common list separators.
7171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7172 for pkg in $enableval; do
7173 IFS="$lt_save_ifs"
7174 if test "X$pkg" = "X$p"; then
7175 enable_fast_install=yes
7177 done
7178 IFS="$lt_save_ifs"
7180 esac
7181 else
7182 enable_fast_install=yes
7195 # This can be used to rebuild libtool when needed
7196 LIBTOOL_DEPS="$ltmain"
7198 # Always use our own libtool.
7199 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7226 test -z "$LN_S" && LN_S="ln -s"
7241 if test -n "${ZSH_VERSION+set}" ; then
7242 setopt NO_GLOB_SUBST
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7246 $as_echo_n "checking for objdir... " >&6; }
7247 if test "${lt_cv_objdir+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 rm -f .libs 2>/dev/null
7251 mkdir .libs 2>/dev/null
7252 if test -d .libs; then
7253 lt_cv_objdir=.libs
7254 else
7255 # MS-DOS does not allow filenames that begin with a dot.
7256 lt_cv_objdir=_libs
7258 rmdir .libs 2>/dev/null
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7261 $as_echo "$lt_cv_objdir" >&6; }
7262 objdir=$lt_cv_objdir
7268 cat >>confdefs.h <<_ACEOF
7269 #define LT_OBJDIR "$lt_cv_objdir/"
7270 _ACEOF
7275 case $host_os in
7276 aix3*)
7277 # AIX sometimes has problems with the GCC collect2 program. For some
7278 # reason, if we set the COLLECT_NAMES environment variable, the problems
7279 # vanish in a puff of smoke.
7280 if test "X${COLLECT_NAMES+set}" != Xset; then
7281 COLLECT_NAMES=
7282 export COLLECT_NAMES
7285 esac
7287 # Global variables:
7288 ofile=libtool
7289 can_build_shared=yes
7291 # All known linkers require a `.a' archive for static linking (except MSVC,
7292 # which needs '.lib').
7293 libext=a
7295 with_gnu_ld="$lt_cv_prog_gnu_ld"
7297 old_CC="$CC"
7298 old_CFLAGS="$CFLAGS"
7300 # Set sane defaults for various variables
7301 test -z "$CC" && CC=cc
7302 test -z "$LTCC" && LTCC=$CC
7303 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7304 test -z "$LD" && LD=ld
7305 test -z "$ac_objext" && ac_objext=o
7307 for cc_temp in $compiler""; do
7308 case $cc_temp in
7309 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7310 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7311 \-*) ;;
7312 *) break;;
7313 esac
7314 done
7315 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7318 # Only perform the check for file, if the check method requires it
7319 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7320 case $deplibs_check_method in
7321 file_magic*)
7322 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7324 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7325 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 case $MAGIC_CMD in
7329 [\\/*] | ?:[\\/]*)
7330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7333 lt_save_MAGIC_CMD="$MAGIC_CMD"
7334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336 for ac_dir in $ac_dummy; do
7337 IFS="$lt_save_ifs"
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/${ac_tool_prefix}file; then
7340 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7341 if test -n "$file_magic_test_file"; then
7342 case $deplibs_check_method in
7343 "file_magic "*)
7344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347 $EGREP "$file_magic_regex" > /dev/null; then
7349 else
7350 cat <<_LT_EOF 1>&2
7352 *** Warning: the command libtool uses to detect shared libraries,
7353 *** $file_magic_cmd, produces output that libtool cannot recognize.
7354 *** The result is that libtool may fail to recognize shared libraries
7355 *** as such. This will affect the creation of libtool libraries that
7356 *** depend on shared libraries, but programs linked with such libtool
7357 *** libraries will work regardless of this problem. Nevertheless, you
7358 *** may want to report the problem to your system manager and/or to
7359 *** bug-libtool@gnu.org
7361 _LT_EOF
7362 fi ;;
7363 esac
7365 break
7367 done
7368 IFS="$lt_save_ifs"
7369 MAGIC_CMD="$lt_save_MAGIC_CMD"
7371 esac
7374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375 if test -n "$MAGIC_CMD"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7377 $as_echo "$MAGIC_CMD" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7387 if test -z "$lt_cv_path_MAGIC_CMD"; then
7388 if test -n "$ac_tool_prefix"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7390 $as_echo_n "checking for file... " >&6; }
7391 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 case $MAGIC_CMD in
7395 [\\/*] | ?:[\\/]*)
7396 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7399 lt_save_MAGIC_CMD="$MAGIC_CMD"
7400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7401 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7402 for ac_dir in $ac_dummy; do
7403 IFS="$lt_save_ifs"
7404 test -z "$ac_dir" && ac_dir=.
7405 if test -f $ac_dir/file; then
7406 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7407 if test -n "$file_magic_test_file"; then
7408 case $deplibs_check_method in
7409 "file_magic "*)
7410 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7412 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7413 $EGREP "$file_magic_regex" > /dev/null; then
7415 else
7416 cat <<_LT_EOF 1>&2
7418 *** Warning: the command libtool uses to detect shared libraries,
7419 *** $file_magic_cmd, produces output that libtool cannot recognize.
7420 *** The result is that libtool may fail to recognize shared libraries
7421 *** as such. This will affect the creation of libtool libraries that
7422 *** depend on shared libraries, but programs linked with such libtool
7423 *** libraries will work regardless of this problem. Nevertheless, you
7424 *** may want to report the problem to your system manager and/or to
7425 *** bug-libtool@gnu.org
7427 _LT_EOF
7428 fi ;;
7429 esac
7431 break
7433 done
7434 IFS="$lt_save_ifs"
7435 MAGIC_CMD="$lt_save_MAGIC_CMD"
7437 esac
7440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7441 if test -n "$MAGIC_CMD"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7443 $as_echo "$MAGIC_CMD" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7450 else
7451 MAGIC_CMD=:
7457 esac
7459 # Use C for the default configuration in the libtool script
7461 lt_save_CC="$CC"
7462 ac_ext=c
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469 # Source file extension for C test sources.
7470 ac_ext=c
7472 # Object file extension for compiled C test sources.
7473 objext=o
7474 objext=$objext
7476 # Code to be used in simple compile tests
7477 lt_simple_compile_test_code="int some_variable = 0;"
7479 # Code to be used in simple link tests
7480 lt_simple_link_test_code='int main(){return(0);}'
7488 # If no C compiler was specified, use CC.
7489 LTCC=${LTCC-"$CC"}
7491 # If no C compiler flags were specified, use CFLAGS.
7492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7494 # Allow CC to be a program name with arguments.
7495 compiler=$CC
7497 # Save the default compiler, since it gets overwritten when the other
7498 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7499 compiler_DEFAULT=$CC
7501 # save warnings/boilerplate of simple test code
7502 ac_outfile=conftest.$ac_objext
7503 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7504 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505 _lt_compiler_boilerplate=`cat conftest.err`
7506 $RM conftest*
7508 ac_outfile=conftest.$ac_objext
7509 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7510 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7511 _lt_linker_boilerplate=`cat conftest.err`
7512 $RM -r conftest*
7515 ## CAVEAT EMPTOR:
7516 ## There is no encapsulation within the following macros, do not change
7517 ## the running order or otherwise move them around unless you know exactly
7518 ## what you are doing...
7519 if test -n "$compiler"; then
7521 lt_prog_compiler_no_builtin_flag=
7523 if test "$GCC" = yes; then
7524 case $cc_basename in
7525 nvcc*)
7526 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7528 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7529 esac
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7532 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7533 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 lt_cv_prog_compiler_rtti_exceptions=no
7537 ac_outfile=conftest.$ac_objext
7538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7539 lt_compiler_flag="-fno-rtti -fno-exceptions"
7540 # Insert the option either (1) after the last *FLAGS variable, or
7541 # (2) before a word containing "conftest.", or (3) at the end.
7542 # Note that $ac_compile itself does not contain backslashes and begins
7543 # with a dollar sign (not a hyphen), so the echo should work correctly.
7544 # The option is referenced via a variable to avoid confusing sed.
7545 lt_compile=`echo "$ac_compile" | $SED \
7546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7548 -e 's:$: $lt_compiler_flag:'`
7549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7550 (eval "$lt_compile" 2>conftest.err)
7551 ac_status=$?
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 if (exit $ac_status) && test -s "$ac_outfile"; then
7555 # The compiler can only warn and ignore the option if not recognized
7556 # So say no if there are warnings other than the usual output.
7557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7560 lt_cv_prog_compiler_rtti_exceptions=yes
7563 $RM conftest*
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7567 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7569 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7570 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7571 else
7582 lt_prog_compiler_wl=
7583 lt_prog_compiler_pic=
7584 lt_prog_compiler_static=
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7587 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7589 if test "$GCC" = yes; then
7590 lt_prog_compiler_wl='-Wl,'
7591 lt_prog_compiler_static='-static'
7593 case $host_os in
7594 aix*)
7595 # All AIX code is PIC.
7596 if test "$host_cpu" = ia64; then
7597 # AIX 5 now supports IA64 processor
7598 lt_prog_compiler_static='-Bstatic'
7600 lt_prog_compiler_pic='-fPIC'
7603 amigaos*)
7604 case $host_cpu in
7605 powerpc)
7606 # see comment about AmigaOS4 .so support
7607 lt_prog_compiler_pic='-fPIC'
7609 m68k)
7610 # FIXME: we need at least 68020 code to build shared libraries, but
7611 # adding the `-m68020' flag to GCC prevents building anything better,
7612 # like `-m68040'.
7613 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7615 esac
7618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7619 # PIC is the default for these OSes.
7622 mingw* | cygwin* | pw32* | os2* | cegcc*)
7623 # This hack is so that the source file can tell whether it is being
7624 # built for inclusion in a dll (and should export symbols for example).
7625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7626 # (--disable-auto-import) libraries
7627 lt_prog_compiler_pic='-DDLL_EXPORT'
7630 darwin* | rhapsody*)
7631 # PIC is the default on this platform
7632 # Common symbols not allowed in MH_DYLIB files
7633 lt_prog_compiler_pic='-fno-common'
7636 haiku*)
7637 # PIC is the default for Haiku.
7638 # The "-static" flag exists, but is broken.
7639 lt_prog_compiler_static=
7642 hpux*)
7643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7645 # sets the default TLS model and affects inlining.
7646 case $host_cpu in
7647 hppa*64*)
7648 # +Z the default
7651 lt_prog_compiler_pic='-fPIC'
7653 esac
7656 interix[3-9]*)
7657 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7658 # Instead, we relocate shared libraries at runtime.
7661 msdosdjgpp*)
7662 # Just because we use GCC doesn't mean we suddenly get shared libraries
7663 # on systems that don't support them.
7664 lt_prog_compiler_can_build_shared=no
7665 enable_shared=no
7668 *nto* | *qnx*)
7669 # QNX uses GNU C++, but need to define -shared option too, otherwise
7670 # it will coredump.
7671 lt_prog_compiler_pic='-fPIC -shared'
7674 sysv4*MP*)
7675 if test -d /usr/nec; then
7676 lt_prog_compiler_pic=-Kconform_pic
7681 lt_prog_compiler_pic='-fPIC'
7683 esac
7685 case $cc_basename in
7686 nvcc*) # Cuda Compiler Driver 2.2
7687 lt_prog_compiler_wl='-Xlinker '
7688 lt_prog_compiler_pic='-Xcompiler -fPIC'
7690 esac
7691 else
7692 # PORTME Check for flag to pass linker flags through the system compiler.
7693 case $host_os in
7694 aix*)
7695 lt_prog_compiler_wl='-Wl,'
7696 if test "$host_cpu" = ia64; then
7697 # AIX 5 now supports IA64 processor
7698 lt_prog_compiler_static='-Bstatic'
7699 else
7700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7704 mingw* | cygwin* | pw32* | os2* | cegcc*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7710 hpux9* | hpux10* | hpux11*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713 # not for PA HP-UX.
7714 case $host_cpu in
7715 hppa*64*|ia64*)
7716 # +Z the default
7719 lt_prog_compiler_pic='+Z'
7721 esac
7722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723 lt_prog_compiler_static='${wl}-a ${wl}archive'
7726 irix5* | irix6* | nonstopux*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC (with -KPIC) is the default.
7729 lt_prog_compiler_static='-non_shared'
7732 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7733 case $cc_basename in
7734 # old Intel for x86_64 which still supported -KPIC.
7735 ecc*)
7736 lt_prog_compiler_wl='-Wl,'
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-static'
7740 # icc used to be incompatible with GCC.
7741 # ICC 10 doesn't accept -KPIC any more.
7742 icc* | ifort*)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-fPIC'
7745 lt_prog_compiler_static='-static'
7747 # Lahey Fortran 8.1.
7748 lf95*)
7749 lt_prog_compiler_wl='-Wl,'
7750 lt_prog_compiler_pic='--shared'
7751 lt_prog_compiler_static='--static'
7753 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7754 # Portland Group compilers (*not* the Pentium gcc compiler,
7755 # which looks to be a dead project)
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-fpic'
7758 lt_prog_compiler_static='-Bstatic'
7760 ccc*)
7761 lt_prog_compiler_wl='-Wl,'
7762 # All Alpha code is PIC.
7763 lt_prog_compiler_static='-non_shared'
7765 xl* | bgxl* | bgf* | mpixl*)
7766 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-qpic'
7769 lt_prog_compiler_static='-qstaticlink'
7772 case `$CC -V 2>&1 | sed 5q` in
7773 *Sun\ F* | *Sun*Fortran*)
7774 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7777 lt_prog_compiler_wl=''
7779 *Sun\ C*)
7780 # Sun C 5.9
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 lt_prog_compiler_wl='-Wl,'
7785 esac
7787 esac
7790 newsos6)
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7795 *nto* | *qnx*)
7796 # QNX uses GNU C++, but need to define -shared option too, otherwise
7797 # it will coredump.
7798 lt_prog_compiler_pic='-fPIC -shared'
7801 osf3* | osf4* | osf5*)
7802 lt_prog_compiler_wl='-Wl,'
7803 # All OSF/1 code is PIC.
7804 lt_prog_compiler_static='-non_shared'
7807 rdos*)
7808 lt_prog_compiler_static='-non_shared'
7811 solaris*)
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7814 case $cc_basename in
7815 f77* | f90* | f95*)
7816 lt_prog_compiler_wl='-Qoption ld ';;
7818 lt_prog_compiler_wl='-Wl,';;
7819 esac
7822 sunos4*)
7823 lt_prog_compiler_wl='-Qoption ld '
7824 lt_prog_compiler_pic='-PIC'
7825 lt_prog_compiler_static='-Bstatic'
7828 sysv4 | sysv4.2uw2* | sysv4.3*)
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7834 sysv4*MP*)
7835 if test -d /usr/nec ;then
7836 lt_prog_compiler_pic='-Kconform_pic'
7837 lt_prog_compiler_static='-Bstatic'
7841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7847 unicos*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_can_build_shared=no
7852 uts4*)
7853 lt_prog_compiler_pic='-pic'
7854 lt_prog_compiler_static='-Bstatic'
7858 lt_prog_compiler_can_build_shared=no
7860 esac
7863 case $host_os in
7864 # For platforms which do not support PIC, -DPIC is meaningless:
7865 *djgpp*)
7866 lt_prog_compiler_pic=
7869 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7871 esac
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7873 $as_echo "$lt_prog_compiler_pic" >&6; }
7881 # Check to make sure the PIC flag actually works.
7883 if test -n "$lt_prog_compiler_pic"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7886 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 lt_cv_prog_compiler_pic_works=no
7890 ac_outfile=conftest.$ac_objext
7891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7893 # Insert the option either (1) after the last *FLAGS variable, or
7894 # (2) before a word containing "conftest.", or (3) at the end.
7895 # Note that $ac_compile itself does not contain backslashes and begins
7896 # with a dollar sign (not a hyphen), so the echo should work correctly.
7897 # The option is referenced via a variable to avoid confusing sed.
7898 lt_compile=`echo "$ac_compile" | $SED \
7899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901 -e 's:$: $lt_compiler_flag:'`
7902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7903 (eval "$lt_compile" 2>conftest.err)
7904 ac_status=$?
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 if (exit $ac_status) && test -s "$ac_outfile"; then
7908 # The compiler can only warn and ignore the option if not recognized
7909 # So say no if there are warnings other than the usual output.
7910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7913 lt_cv_prog_compiler_pic_works=yes
7916 $RM conftest*
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7920 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7923 case $lt_prog_compiler_pic in
7924 "" | " "*) ;;
7925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7926 esac
7927 else
7928 lt_prog_compiler_pic=
7929 lt_prog_compiler_can_build_shared=no
7940 # Check to make sure the static flag actually works.
7942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7944 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7945 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 lt_cv_prog_compiler_static_works=no
7949 save_LDFLAGS="$LDFLAGS"
7950 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7953 # The linker can only warn and ignore the option if not recognized
7954 # So say no if there are warnings
7955 if test -s conftest.err; then
7956 # Append any errors to the config.log.
7957 cat conftest.err 1>&5
7958 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960 if diff conftest.exp conftest.er2 >/dev/null; then
7961 lt_cv_prog_compiler_static_works=yes
7963 else
7964 lt_cv_prog_compiler_static_works=yes
7967 $RM -r conftest*
7968 LDFLAGS="$save_LDFLAGS"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7972 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7974 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7976 else
7977 lt_prog_compiler_static=
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 lt_cv_prog_compiler_c_o=no
7992 $RM -r conftest 2>/dev/null
7993 mkdir conftest
7994 cd conftest
7995 mkdir out
7996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7998 lt_compiler_flag="-o out/conftest2.$ac_objext"
7999 # Insert the option either (1) after the last *FLAGS variable, or
8000 # (2) before a word containing "conftest.", or (3) at the end.
8001 # Note that $ac_compile itself does not contain backslashes and begins
8002 # with a dollar sign (not a hyphen), so the echo should work correctly.
8003 lt_compile=`echo "$ac_compile" | $SED \
8004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8006 -e 's:$: $lt_compiler_flag:'`
8007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8008 (eval "$lt_compile" 2>out/conftest.err)
8009 ac_status=$?
8010 cat out/conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8013 then
8014 # The compiler can only warn and ignore the option if not recognized
8015 # So say no if there are warnings
8016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8019 lt_cv_prog_compiler_c_o=yes
8022 chmod u+w . 2>&5
8023 $RM conftest*
8024 # SGI C++ compiler will create directory out/ii_files/ for
8025 # template instantiation
8026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8027 $RM out/* && rmdir out
8028 cd ..
8029 $RM -r conftest
8030 $RM conftest*
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 lt_cv_prog_compiler_c_o=no
8047 $RM -r conftest 2>/dev/null
8048 mkdir conftest
8049 cd conftest
8050 mkdir out
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8053 lt_compiler_flag="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out/conftest.err)
8064 ac_status=$?
8065 cat out/conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068 then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_c_o=yes
8077 chmod u+w . 2>&5
8078 $RM conftest*
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082 $RM out/* && rmdir out
8083 cd ..
8084 $RM -r conftest
8085 $RM conftest*
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8094 hard_links="nottested"
8095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8096 # do not overwrite the value of need_locks provided by the user
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8098 $as_echo_n "checking if we can lock with hard links... " >&6; }
8099 hard_links=yes
8100 $RM conftest*
8101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8102 touch conftest.a
8103 ln conftest.a conftest.b 2>&5 || hard_links=no
8104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8106 $as_echo "$hard_links" >&6; }
8107 if test "$hard_links" = no; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8109 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8110 need_locks=warn
8112 else
8113 need_locks=no
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8124 runpath_var=
8125 allow_undefined_flag=
8126 always_export_symbols=no
8127 archive_cmds=
8128 archive_expsym_cmds=
8129 compiler_needs_object=no
8130 enable_shared_with_static_runtimes=no
8131 export_dynamic_flag_spec=
8132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8133 hardcode_automatic=no
8134 hardcode_direct=no
8135 hardcode_direct_absolute=no
8136 hardcode_libdir_flag_spec=
8137 hardcode_libdir_flag_spec_ld=
8138 hardcode_libdir_separator=
8139 hardcode_minus_L=no
8140 hardcode_shlibpath_var=unsupported
8141 inherit_rpath=no
8142 link_all_deplibs=unknown
8143 module_cmds=
8144 module_expsym_cmds=
8145 old_archive_from_new_cmds=
8146 old_archive_from_expsyms_cmds=
8147 thread_safe_flag_spec=
8148 whole_archive_flag_spec=
8149 # include_expsyms should be a list of space-separated symbols to be *always*
8150 # included in the symbol list
8151 include_expsyms=
8152 # exclude_expsyms can be an extended regexp of symbols to exclude
8153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8155 # as well as any symbol that contains `d'.
8156 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8158 # platforms (ab)use it in PIC code, but their linkers get confused if
8159 # the symbol is explicitly referenced. Since portable code cannot
8160 # rely on this symbol name, it's probably fine to never include it in
8161 # preloaded symbol tables.
8162 # Exclude shared library initialization/finalization symbols.
8163 extract_expsyms_cmds=
8165 case $host_os in
8166 cygwin* | mingw* | pw32* | cegcc*)
8167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8168 # When not using gcc, we currently assume that we are using
8169 # Microsoft Visual C++.
8170 if test "$GCC" != yes; then
8171 with_gnu_ld=no
8174 interix*)
8175 # we just hope/assume this is gcc and not c89 (= MSVC++)
8176 with_gnu_ld=yes
8178 openbsd*)
8179 with_gnu_ld=no
8181 esac
8183 ld_shlibs=yes
8185 # On some targets, GNU ld is compatible enough with the native linker
8186 # that we're better off using the native interface for both.
8187 lt_use_gnu_ld_interface=no
8188 if test "$with_gnu_ld" = yes; then
8189 case $host_os in
8190 aix*)
8191 # The AIX port of GNU ld has always aspired to compatibility
8192 # with the native linker. However, as the warning in the GNU ld
8193 # block says, versions before 2.19.5* couldn't really create working
8194 # shared libraries, regardless of the interface used.
8195 case `$LD -v 2>&1` in
8196 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8197 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8198 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8200 lt_use_gnu_ld_interface=yes
8202 esac
8205 lt_use_gnu_ld_interface=yes
8207 esac
8210 if test "$lt_use_gnu_ld_interface" = yes; then
8211 # If archive_cmds runs LD, not CC, wlarc should be empty
8212 wlarc='${wl}'
8214 # Set some defaults for GNU ld with shared library support. These
8215 # are reset later if shared libraries are not supported. Putting them
8216 # here allows them to be overridden if necessary.
8217 runpath_var=LD_RUN_PATH
8218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8219 export_dynamic_flag_spec='${wl}--export-dynamic'
8220 # ancient GNU ld didn't support --whole-archive et. al.
8221 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8222 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8223 else
8224 whole_archive_flag_spec=
8226 supports_anon_versioning=no
8227 case `$LD -v 2>&1` in
8228 *GNU\ gold*) supports_anon_versioning=yes ;;
8229 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8230 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8231 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8232 *\ 2.11.*) ;; # other 2.11 versions
8233 *) supports_anon_versioning=yes ;;
8234 esac
8236 # See if GNU ld supports shared libraries.
8237 case $host_os in
8238 aix[3-9]*)
8239 # On AIX/PPC, the GNU linker is very broken
8240 if test "$host_cpu" != ia64; then
8241 ld_shlibs=no
8242 cat <<_LT_EOF 1>&2
8244 *** Warning: the GNU linker, at least up to release 2.19, is reported
8245 *** to be unable to reliably create shared libraries on AIX.
8246 *** Therefore, libtool is disabling shared libraries support. If you
8247 *** really care for shared libraries, you may want to install binutils
8248 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8249 *** You will then need to restart the configuration process.
8251 _LT_EOF
8255 amigaos*)
8256 case $host_cpu in
8257 powerpc)
8258 # see comment about AmigaOS4 .so support
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds=''
8262 m68k)
8263 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)'
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_minus_L=yes
8267 esac
8270 beos*)
8271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8272 allow_undefined_flag=unsupported
8273 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8274 # support --undefined. This deserves some investigation. FIXME
8275 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 else
8277 ld_shlibs=no
8281 cygwin* | mingw* | pw32* | cegcc*)
8282 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8283 # as there is no search path for DLLs.
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 export_dynamic_flag_spec='${wl}--export-all-symbols'
8286 allow_undefined_flag=unsupported
8287 always_export_symbols=no
8288 enable_shared_with_static_runtimes=yes
8289 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8291 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8293 # If the export-symbols file already is a .def file (1st line
8294 # is EXPORTS), use it as is; otherwise, prepend...
8295 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8296 cp $export_symbols $output_objdir/$soname.def;
8297 else
8298 echo EXPORTS > $output_objdir/$soname.def;
8299 cat $export_symbols >> $output_objdir/$soname.def;
8301 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8302 else
8303 ld_shlibs=no
8307 haiku*)
8308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309 link_all_deplibs=yes
8312 interix[3-9]*)
8313 hardcode_direct=no
8314 hardcode_shlibpath_var=no
8315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8316 export_dynamic_flag_spec='${wl}-E'
8317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8318 # Instead, shared libraries are loaded at an image base (0x10000000 by
8319 # default) and relocated if they conflict, which is a slow very memory
8320 # consuming and fragmenting process. To avoid this, we pick a random,
8321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8324 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'
8327 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8328 tmp_diet=no
8329 if test "$host_os" = linux-dietlibc; then
8330 case $cc_basename in
8331 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8332 esac
8334 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8335 && test "$tmp_diet" = no
8336 then
8337 tmp_addflag=' $pic_flag'
8338 tmp_sharedflag='-shared'
8339 case $cc_basename,$host_cpu in
8340 pgcc*) # Portland Group C compiler
8341 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'
8342 tmp_addflag=' $pic_flag'
8344 pgf77* | pgf90* | pgf95* | pgfortran*)
8345 # Portland Group f77 and f90 compilers
8346 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'
8347 tmp_addflag=' $pic_flag -Mnomain' ;;
8348 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8349 tmp_addflag=' -i_dynamic' ;;
8350 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8351 tmp_addflag=' -i_dynamic -nofor_main' ;;
8352 ifc* | ifort*) # Intel Fortran compiler
8353 tmp_addflag=' -nofor_main' ;;
8354 lf95*) # Lahey Fortran 8.1
8355 whole_archive_flag_spec=
8356 tmp_sharedflag='--shared' ;;
8357 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8358 tmp_sharedflag='-qmkshrobj'
8359 tmp_addflag= ;;
8360 nvcc*) # Cuda Compiler Driver 2.2
8361 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'
8362 compiler_needs_object=yes
8364 esac
8365 case `$CC -V 2>&1 | sed 5q` in
8366 *Sun\ C*) # Sun C 5.9
8367 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'
8368 compiler_needs_object=yes
8369 tmp_sharedflag='-G' ;;
8370 *Sun\ F*) # Sun Fortran 8.3
8371 tmp_sharedflag='-G' ;;
8372 esac
8373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8375 if test "x$supports_anon_versioning" = xyes; then
8376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8378 echo "local: *; };" >> $output_objdir/$libname.ver~
8379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8382 case $cc_basename in
8383 xlf* | bgf* | bgxlf* | mpixlf*)
8384 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8385 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8386 hardcode_libdir_flag_spec=
8387 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8388 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8389 if test "x$supports_anon_versioning" = xyes; then
8390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8392 echo "local: *; };" >> $output_objdir/$libname.ver~
8393 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8396 esac
8397 else
8398 ld_shlibs=no
8402 netbsd*)
8403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8405 wlarc=
8406 else
8407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8412 solaris*)
8413 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8414 ld_shlibs=no
8415 cat <<_LT_EOF 1>&2
8417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8418 *** create shared libraries on Solaris systems. Therefore, libtool
8419 *** is disabling shared libraries support. We urge you to upgrade GNU
8420 *** binutils to release 2.9.1 or newer. Another option is to modify
8421 *** your PATH or compiler configuration so that the native linker is
8422 *** used, and then restart.
8424 _LT_EOF
8425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 else
8429 ld_shlibs=no
8433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8434 case `$LD -v 2>&1` in
8435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8436 ld_shlibs=no
8437 cat <<_LT_EOF 1>&2
8439 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8440 *** reliably create shared libraries on SCO systems. Therefore, libtool
8441 *** is disabling shared libraries support. We urge you to upgrade GNU
8442 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8443 *** your PATH or compiler configuration so that the native linker is
8444 *** used, and then restart.
8446 _LT_EOF
8449 # For security reasons, it is highly recommended that you always
8450 # use absolute paths for naming shared libraries, and exclude the
8451 # DT_RUNPATH tag from executables and libraries. But doing so
8452 # requires that you compile everything twice, which is a pain.
8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8457 else
8458 ld_shlibs=no
8461 esac
8464 sunos4*)
8465 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8466 wlarc=
8467 hardcode_direct=yes
8468 hardcode_shlibpath_var=no
8472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8475 else
8476 ld_shlibs=no
8479 esac
8481 if test "$ld_shlibs" = no; then
8482 runpath_var=
8483 hardcode_libdir_flag_spec=
8484 export_dynamic_flag_spec=
8485 whole_archive_flag_spec=
8487 else
8488 # PORTME fill in a description of your system's linker (not GNU ld)
8489 case $host_os in
8490 aix3*)
8491 allow_undefined_flag=unsupported
8492 always_export_symbols=yes
8493 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'
8494 # Note: this linker hardcodes the directories in LIBPATH if there
8495 # are no directories specified by -L.
8496 hardcode_minus_L=yes
8497 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8498 # Neither direct hardcoding nor static linking is supported with a
8499 # broken collect2.
8500 hardcode_direct=unsupported
8504 aix[4-9]*)
8505 if test "$host_cpu" = ia64; then
8506 # On IA64, the linker does run time linking by default, so we don't
8507 # have to do anything special.
8508 aix_use_runtimelinking=no
8509 exp_sym_flag='-Bexport'
8510 no_entry_flag=""
8511 else
8512 # If we're using GNU nm, then we don't want the "-C" option.
8513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8514 # Also, AIX nm treats weak defined symbols like other global
8515 # defined symbols, whereas GNU nm marks them as "W".
8516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8517 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'
8518 else
8519 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'
8521 aix_use_runtimelinking=no
8523 # Test if we are trying to use run time linking or normal
8524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8525 # need to do runtime linking.
8526 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8527 for ld_flag in $LDFLAGS; do
8528 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8529 aix_use_runtimelinking=yes
8530 break
8532 done
8534 esac
8536 exp_sym_flag='-bexport'
8537 no_entry_flag='-bnoentry'
8540 # When large executables or shared objects are built, AIX ld can
8541 # have problems creating the table of contents. If linking a library
8542 # or program results in "error TOC overflow" add -mminimal-toc to
8543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8546 archive_cmds=''
8547 hardcode_direct=yes
8548 hardcode_direct_absolute=yes
8549 hardcode_libdir_separator=':'
8550 link_all_deplibs=yes
8551 file_list_spec='${wl}-f,'
8553 if test "$GCC" = yes; then
8554 case $host_os in aix4.[012]|aix4.[012].*)
8555 # We only want to do this on AIX 4.2 and lower, the check
8556 # below for broken collect2 doesn't work under 4.3+
8557 collect2name=`${CC} -print-prog-name=collect2`
8558 if test -f "$collect2name" &&
8559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8560 then
8561 # We have reworked collect2
8563 else
8564 # We have old collect2
8565 hardcode_direct=unsupported
8566 # It fails to find uninstalled libraries when the uninstalled
8567 # path is not listed in the libpath. Setting hardcode_minus_L
8568 # to unsupported forces relinking
8569 hardcode_minus_L=yes
8570 hardcode_libdir_flag_spec='-L$libdir'
8571 hardcode_libdir_separator=
8574 esac
8575 shared_flag='-shared'
8576 if test "$aix_use_runtimelinking" = yes; then
8577 shared_flag="$shared_flag "'${wl}-G'
8579 else
8580 # not using gcc
8581 if test "$host_cpu" = ia64; then
8582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8583 # chokes on -Wl,-G. The following line is correct:
8584 shared_flag='-G'
8585 else
8586 if test "$aix_use_runtimelinking" = yes; then
8587 shared_flag='${wl}-G'
8588 else
8589 shared_flag='${wl}-bM:SRE'
8594 export_dynamic_flag_spec='${wl}-bexpall'
8595 # It seems that -bexpall does not export symbols beginning with
8596 # underscore (_), so it is better to generate a list of symbols to export.
8597 always_export_symbols=yes
8598 if test "$aix_use_runtimelinking" = yes; then
8599 # Warning - without using the other runtime loading flags (-brtl),
8600 # -berok will link without error, but may produce a broken library.
8601 allow_undefined_flag='-berok'
8602 # Determine the default libpath from the value encoded in an
8603 # empty executable.
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8608 main ()
8612 return 0;
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8617 lt_aix_libpath_sed='
8618 /Import File Strings/,/^$/ {
8619 /^0/ {
8620 s/^0 *\(.*\)$/\1/
8624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625 # Check for a 64-bit object if we didn't find anything.
8626 if test -z "$aix_libpath"; then
8627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 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"
8636 else
8637 if test "$host_cpu" = ia64; then
8638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8639 allow_undefined_flag="-z nodefs"
8640 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"
8641 else
8642 # Determine the default libpath from the value encoded in an
8643 # empty executable.
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8648 main ()
8652 return 0;
8654 _ACEOF
8655 if ac_fn_c_try_link "$LINENO"; then :
8657 lt_aix_libpath_sed='
8658 /Import File Strings/,/^$/ {
8659 /^0/ {
8660 s/^0 *\(.*\)$/\1/
8664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665 # Check for a 64-bit object if we didn't find anything.
8666 if test -z "$aix_libpath"; then
8667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8670 rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8675 # Warning - without using the other run time loading flags,
8676 # -berok will link without error, but may produce a broken library.
8677 no_undefined_flag=' ${wl}-bernotok'
8678 allow_undefined_flag=' ${wl}-berok'
8679 if test "$with_gnu_ld" = yes; then
8680 # We only use this code for GNU lds that support --whole-archive.
8681 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8682 else
8683 # Exported symbols can be pulled into shared objects from archives
8684 whole_archive_flag_spec='$convenience'
8686 archive_cmds_need_lc=yes
8687 # This is similar to how AIX traditionally builds its shared libraries.
8688 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'
8693 amigaos*)
8694 case $host_cpu in
8695 powerpc)
8696 # see comment about AmigaOS4 .so support
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds=''
8700 m68k)
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8705 esac
8708 bsdi[45]*)
8709 export_dynamic_flag_spec=-rdynamic
8712 cygwin* | mingw* | pw32* | cegcc*)
8713 # When not using gcc, we currently assume that we are using
8714 # Microsoft Visual C++.
8715 # hardcode_libdir_flag_spec is actually meaningless, as there is
8716 # no search path for DLLs.
8717 hardcode_libdir_flag_spec=' '
8718 allow_undefined_flag=unsupported
8719 # Tell ltmain to make .lib files, not .a files.
8720 libext=lib
8721 # Tell ltmain to make .dll files, not .so files.
8722 shrext_cmds=".dll"
8723 # FIXME: Setting linknames here is a bad hack.
8724 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8725 # The linker will automatically build a .lib file if we build a DLL.
8726 old_archive_from_new_cmds='true'
8727 # FIXME: Should let the user specify the lib program.
8728 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8729 fix_srcfile_path='`cygpath -w "$srcfile"`'
8730 enable_shared_with_static_runtimes=yes
8733 darwin* | rhapsody*)
8736 archive_cmds_need_lc=no
8737 hardcode_direct=no
8738 hardcode_automatic=yes
8739 hardcode_shlibpath_var=unsupported
8740 if test "$lt_cv_ld_force_load" = "yes"; then
8741 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\"`'
8742 else
8743 whole_archive_flag_spec=''
8745 link_all_deplibs=yes
8746 allow_undefined_flag="$_lt_dar_allow_undefined"
8747 case $cc_basename in
8748 ifort*) _lt_dar_can_shared=yes ;;
8749 *) _lt_dar_can_shared=$GCC ;;
8750 esac
8751 if test "$_lt_dar_can_shared" = "yes"; then
8752 output_verbose_link_cmd=func_echo_all
8753 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8754 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8755 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}"
8756 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}"
8758 else
8759 ld_shlibs=no
8764 dgux*)
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_libdir_flag_spec='-L$libdir'
8767 hardcode_shlibpath_var=no
8770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8771 # support. Future versions do this automatically, but an explicit c++rt0.o
8772 # does not break anything, and helps significantly (at the cost of a little
8773 # extra space).
8774 freebsd2.2*)
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8776 hardcode_libdir_flag_spec='-R$libdir'
8777 hardcode_direct=yes
8778 hardcode_shlibpath_var=no
8781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8782 freebsd2.*)
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=yes
8785 hardcode_minus_L=yes
8786 hardcode_shlibpath_var=no
8789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8790 freebsd* | dragonfly*)
8791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8792 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8797 hpux9*)
8798 if test "$GCC" = yes; then
8799 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'
8800 else
8801 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'
8803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804 hardcode_libdir_separator=:
8805 hardcode_direct=yes
8807 # hardcode_minus_L: Not really in the search PATH,
8808 # but as the default location of the library.
8809 hardcode_minus_L=yes
8810 export_dynamic_flag_spec='${wl}-E'
8813 hpux10*)
8814 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8816 else
8817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8819 if test "$with_gnu_ld" = no; then
8820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821 hardcode_libdir_flag_spec_ld='+b $libdir'
8822 hardcode_libdir_separator=:
8823 hardcode_direct=yes
8824 hardcode_direct_absolute=yes
8825 export_dynamic_flag_spec='${wl}-E'
8826 # hardcode_minus_L: Not really in the search PATH,
8827 # but as the default location of the library.
8828 hardcode_minus_L=yes
8832 hpux11*)
8833 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8834 case $host_cpu in
8835 hppa*64*)
8836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 ia64*)
8839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8844 esac
8845 else
8846 case $host_cpu in
8847 hppa*64*)
8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 ia64*)
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8855 # Older versions of the 11.00 compiler do not understand -b yet
8856 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8858 $as_echo_n "checking if $CC understands -b... " >&6; }
8859 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 lt_cv_prog_compiler__b=no
8863 save_LDFLAGS="$LDFLAGS"
8864 LDFLAGS="$LDFLAGS -b"
8865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8867 # The linker can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 if test -s conftest.err; then
8870 # Append any errors to the config.log.
8871 cat conftest.err 1>&5
8872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874 if diff conftest.exp conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler__b=yes
8877 else
8878 lt_cv_prog_compiler__b=yes
8881 $RM -r conftest*
8882 LDFLAGS="$save_LDFLAGS"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8886 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8888 if test x"$lt_cv_prog_compiler__b" = xyes; then
8889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890 else
8891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8895 esac
8897 if test "$with_gnu_ld" = no; then
8898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8899 hardcode_libdir_separator=:
8901 case $host_cpu in
8902 hppa*64*|ia64*)
8903 hardcode_direct=no
8904 hardcode_shlibpath_var=no
8907 hardcode_direct=yes
8908 hardcode_direct_absolute=yes
8909 export_dynamic_flag_spec='${wl}-E'
8911 # hardcode_minus_L: Not really in the search PATH,
8912 # but as the default location of the library.
8913 hardcode_minus_L=yes
8915 esac
8919 irix5* | irix6* | nonstopux*)
8920 if test "$GCC" = yes; then
8921 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'
8922 # Try to use the -exported_symbol ld option, if it does not
8923 # work, assume that -exports_file does not work either and
8924 # implicitly export all symbols.
8925 save_LDFLAGS="$LDFLAGS"
8926 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 int foo(void) {}
8930 _ACEOF
8931 if ac_fn_c_try_link "$LINENO"; then :
8932 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'
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LDFLAGS="$save_LDFLAGS"
8938 else
8939 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'
8940 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'
8942 archive_cmds_need_lc='no'
8943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944 hardcode_libdir_separator=:
8945 inherit_rpath=yes
8946 link_all_deplibs=yes
8949 netbsd*)
8950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8952 else
8953 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8955 hardcode_libdir_flag_spec='-R$libdir'
8956 hardcode_direct=yes
8957 hardcode_shlibpath_var=no
8960 newsos6)
8961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_direct=yes
8963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8964 hardcode_libdir_separator=:
8965 hardcode_shlibpath_var=no
8968 *nto* | *qnx*)
8971 openbsd*)
8972 if test -f /usr/libexec/ld.so; then
8973 hardcode_direct=yes
8974 hardcode_shlibpath_var=no
8975 hardcode_direct_absolute=yes
8976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8980 export_dynamic_flag_spec='${wl}-E'
8981 else
8982 case $host_os in
8983 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_libdir_flag_spec='-R$libdir'
8988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8991 esac
8993 else
8994 ld_shlibs=no
8998 os2*)
8999 hardcode_libdir_flag_spec='-L$libdir'
9000 hardcode_minus_L=yes
9001 allow_undefined_flag=unsupported
9002 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'
9003 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9006 osf3*)
9007 if test "$GCC" = yes; then
9008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9009 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'
9010 else
9011 allow_undefined_flag=' -expect_unresolved \*'
9012 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'
9014 archive_cmds_need_lc='no'
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 hardcode_libdir_separator=:
9019 osf4* | osf5*) # as osf3* with the addition of -msym flag
9020 if test "$GCC" = yes; then
9021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9022 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'
9023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024 else
9025 allow_undefined_flag=' -expect_unresolved \*'
9026 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'
9027 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~
9028 $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'
9030 # Both c and cxx compiler support -rpath directly
9031 hardcode_libdir_flag_spec='-rpath $libdir'
9033 archive_cmds_need_lc='no'
9034 hardcode_libdir_separator=:
9037 solaris*)
9038 no_undefined_flag=' -z defs'
9039 if test "$GCC" = yes; then
9040 wlarc='${wl}'
9041 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9043 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9044 else
9045 case `$CC -V 2>&1` in
9046 *"Compilers 5.0"*)
9047 wlarc=''
9048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9053 wlarc='${wl}'
9054 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9058 esac
9060 hardcode_libdir_flag_spec='-R$libdir'
9061 hardcode_shlibpath_var=no
9062 case $host_os in
9063 solaris2.[0-5] | solaris2.[0-5].*) ;;
9065 # The compiler driver will combine and reorder linker options,
9066 # but understands `-z linker_flag'. GCC discards it without `$wl',
9067 # but is careful enough not to reorder.
9068 # Supported since Solaris 2.6 (maybe 2.5.1?)
9069 if test "$GCC" = yes; then
9070 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9071 else
9072 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9075 esac
9076 link_all_deplibs=yes
9079 sunos4*)
9080 if test "x$host_vendor" = xsequent; then
9081 # Use $CC to link under sequent, because it throws in some extra .o
9082 # files that make .init and .fini sections work.
9083 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9084 else
9085 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9087 hardcode_libdir_flag_spec='-L$libdir'
9088 hardcode_direct=yes
9089 hardcode_minus_L=yes
9090 hardcode_shlibpath_var=no
9093 sysv4)
9094 case $host_vendor in
9095 sni)
9096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9097 hardcode_direct=yes # is this really true???
9099 siemens)
9100 ## LD is ld it makes a PLAMLIB
9101 ## CC just makes a GrossModule.
9102 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9103 reload_cmds='$CC -r -o $output$reload_objs'
9104 hardcode_direct=no
9106 motorola)
9107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9110 esac
9111 runpath_var='LD_RUN_PATH'
9112 hardcode_shlibpath_var=no
9115 sysv4.3*)
9116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117 hardcode_shlibpath_var=no
9118 export_dynamic_flag_spec='-Bexport'
9121 sysv4*MP*)
9122 if test -d /usr/nec; then
9123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_shlibpath_var=no
9125 runpath_var=LD_RUN_PATH
9126 hardcode_runpath_var=yes
9127 ld_shlibs=yes
9131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9132 no_undefined_flag='${wl}-z,text'
9133 archive_cmds_need_lc=no
9134 hardcode_shlibpath_var=no
9135 runpath_var='LD_RUN_PATH'
9137 if test "$GCC" = yes; then
9138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9140 else
9141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 sysv5* | sco3.2v5* | sco5v6*)
9147 # Note: We can NOT use -z defs as we might desire, because we do not
9148 # link with -lc, and that would cause any symbols used from libc to
9149 # always be unresolved, which means just about no library would
9150 # ever link correctly. If we're not using GNU ld we use -z text
9151 # though, which does catch some bad symbols but isn't as heavy-handed
9152 # as -z defs.
9153 no_undefined_flag='${wl}-z,text'
9154 allow_undefined_flag='${wl}-z,nodefs'
9155 archive_cmds_need_lc=no
9156 hardcode_shlibpath_var=no
9157 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9158 hardcode_libdir_separator=':'
9159 link_all_deplibs=yes
9160 export_dynamic_flag_spec='${wl}-Bexport'
9161 runpath_var='LD_RUN_PATH'
9163 if test "$GCC" = yes; then
9164 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9166 else
9167 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 uts4*)
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 hardcode_shlibpath_var=no
9179 ld_shlibs=no
9181 esac
9183 if test x$host_vendor = xsni; then
9184 case $host in
9185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9186 export_dynamic_flag_spec='${wl}-Blargedynsym'
9188 esac
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9193 $as_echo "$ld_shlibs" >&6; }
9194 test "$ld_shlibs" = no && can_build_shared=no
9196 with_gnu_ld=$with_gnu_ld
9213 # Do we need to explicitly link libc?
9215 case "x$archive_cmds_need_lc" in
9216 x|xyes)
9217 # Assume -lc should be added
9218 archive_cmds_need_lc=yes
9220 if test "$enable_shared" = yes && test "$GCC" = yes; then
9221 case $archive_cmds in
9222 *'~'*)
9223 # FIXME: we may have to deal with multi-command sequences.
9225 '$CC '*)
9226 # Test whether the compiler implicitly links with -lc since on some
9227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9228 # to ld, don't add -lc before -lgcc.
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9230 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9231 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 $RM conftest*
9235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9238 (eval $ac_compile) 2>&5
9239 ac_status=$?
9240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9241 test $ac_status = 0; } 2>conftest.err; then
9242 soname=conftest
9243 lib=conftest
9244 libobjs=conftest.$ac_objext
9245 deplibs=
9246 wl=$lt_prog_compiler_wl
9247 pic_flag=$lt_prog_compiler_pic
9248 compiler_flags=-v
9249 linker_flags=-v
9250 verstring=
9251 output_objdir=.
9252 libname=conftest
9253 lt_save_allow_undefined_flag=$allow_undefined_flag
9254 allow_undefined_flag=
9255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9256 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9257 ac_status=$?
9258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259 test $ac_status = 0; }
9260 then
9261 lt_cv_archive_cmds_need_lc=no
9262 else
9263 lt_cv_archive_cmds_need_lc=yes
9265 allow_undefined_flag=$lt_save_allow_undefined_flag
9266 else
9267 cat conftest.err 1>&5
9269 $RM conftest*
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9273 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9274 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9276 esac
9279 esac
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9438 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9440 if test "$GCC" = yes; then
9441 case $host_os in
9442 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9443 *) lt_awk_arg="/^libraries:/" ;;
9444 esac
9445 case $host_os in
9446 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9447 *) lt_sed_strip_eq="s,=/,/,g" ;;
9448 esac
9449 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9450 case $lt_search_path_spec in
9451 *\;*)
9452 # if the path contains ";" then we assume it to be the separator
9453 # otherwise default to the standard path separator (i.e. ":") - it is
9454 # assumed that no part of a normal pathname contains ";" but that should
9455 # okay in the real world where ";" in dirpaths is itself problematic.
9456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9461 esac
9462 # Ok, now we have the path, separated by spaces, we can step through it
9463 # and add multilib dir if necessary.
9464 lt_tmp_lt_search_path_spec=
9465 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9466 for lt_sys_path in $lt_search_path_spec; do
9467 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9469 else
9470 test -d "$lt_sys_path" && \
9471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9473 done
9474 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9475 BEGIN {RS=" "; FS="/|\n";} {
9476 lt_foo="";
9477 lt_count=0;
9478 for (lt_i = NF; lt_i > 0; lt_i--) {
9479 if ($lt_i != "" && $lt_i != ".") {
9480 if ($lt_i == "..") {
9481 lt_count++;
9482 } else {
9483 if (lt_count == 0) {
9484 lt_foo="/" $lt_i lt_foo;
9485 } else {
9486 lt_count--;
9491 if (lt_foo != "") { lt_freq[lt_foo]++; }
9492 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9494 # AWK program above erroneously prepends '/' to C:/dos/paths
9495 # for these hosts.
9496 case $host_os in
9497 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9498 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9499 esac
9500 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9501 else
9502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9504 library_names_spec=
9505 libname_spec='lib$name'
9506 soname_spec=
9507 shrext_cmds=".so"
9508 postinstall_cmds=
9509 postuninstall_cmds=
9510 finish_cmds=
9511 finish_eval=
9512 shlibpath_var=
9513 shlibpath_overrides_runpath=unknown
9514 version_type=none
9515 dynamic_linker="$host_os ld.so"
9516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9517 need_lib_prefix=unknown
9518 hardcode_into_libs=no
9520 # when you set need_version to no, make sure it does not cause -set_version
9521 # flags to be left without arguments
9522 need_version=unknown
9524 case $host_os in
9525 aix3*)
9526 version_type=linux
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9528 shlibpath_var=LIBPATH
9530 # AIX 3 has no versioning support, so we append a major version to the name.
9531 soname_spec='${libname}${release}${shared_ext}$major'
9534 aix[4-9]*)
9535 version_type=linux
9536 need_lib_prefix=no
9537 need_version=no
9538 hardcode_into_libs=yes
9539 if test "$host_cpu" = ia64; then
9540 # AIX 5 supports IA64
9541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 else
9544 # With GCC up to 2.95.x, collect2 would create an import file
9545 # for dependence libraries. The import file would start with
9546 # the line `#! .'. This would cause the generated library to
9547 # depend on `.', always an invalid library. This was fixed in
9548 # development snapshots of GCC prior to 3.0.
9549 case $host_os in
9550 aix4 | aix4.[01] | aix4.[01].*)
9551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9552 echo ' yes '
9553 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9555 else
9556 can_build_shared=no
9559 esac
9560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9561 # soname into executable. Probably we can add versioning support to
9562 # collect2, so additional links can be useful in future.
9563 if test "$aix_use_runtimelinking" = yes; then
9564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9565 # instead of lib<name>.a to let people know that these are not
9566 # typical AIX shared libraries.
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 else
9569 # We preserve .a as extension for shared libraries through AIX4.2
9570 # and later when we are not doing run time linking.
9571 library_names_spec='${libname}${release}.a $libname.a'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9574 shlibpath_var=LIBPATH
9578 amigaos*)
9579 case $host_cpu in
9580 powerpc)
9581 # Since July 2007 AmigaOS4 officially supports .so libraries.
9582 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 m68k)
9586 library_names_spec='$libname.ixlibrary $libname.a'
9587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9588 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'
9590 esac
9593 beos*)
9594 library_names_spec='${libname}${shared_ext}'
9595 dynamic_linker="$host_os ld.so"
9596 shlibpath_var=LIBRARY_PATH
9599 bsdi[45]*)
9600 version_type=linux
9601 need_version=no
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9608 # the default ld.so.conf also contains /usr/contrib/lib and
9609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9610 # libtool to hard-code these into programs
9613 cygwin* | mingw* | pw32* | cegcc*)
9614 version_type=windows
9615 shrext_cmds=".dll"
9616 need_version=no
9617 need_lib_prefix=no
9619 case $GCC,$host_os in
9620 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9621 library_names_spec='$libname.dll.a'
9622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9623 postinstall_cmds='base_file=`basename \${file}`~
9624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9625 dldir=$destdir/`dirname \$dlpath`~
9626 test -d \$dldir || mkdir -p \$dldir~
9627 $install_prog $dir/$dlname \$dldir/$dlname~
9628 chmod a+x \$dldir/$dlname~
9629 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9630 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9633 dlpath=$dir/\$dldll~
9634 $RM \$dlpath'
9635 shlibpath_overrides_runpath=yes
9637 case $host_os in
9638 cygwin*)
9639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9642 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9644 mingw* | cegcc*)
9645 # MinGW DLLs use traditional 'lib' prefix
9646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9648 pw32*)
9649 # pw32 DLLs use 'pw' prefix rather than 'lib'
9650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9652 esac
9656 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9658 esac
9659 dynamic_linker='Win32 ld.exe'
9660 # FIXME: first we should search . and the directory the executable is in
9661 shlibpath_var=PATH
9664 darwin* | rhapsody*)
9665 dynamic_linker="$host_os dyld"
9666 version_type=darwin
9667 need_lib_prefix=no
9668 need_version=no
9669 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9670 soname_spec='${libname}${release}${major}$shared_ext'
9671 shlibpath_overrides_runpath=yes
9672 shlibpath_var=DYLD_LIBRARY_PATH
9673 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9679 dgux*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9688 freebsd* | dragonfly*)
9689 # DragonFly does not have aout. When/if they implement a new
9690 # versioning mechanism, adjust this.
9691 if test -x /usr/bin/objformat; then
9692 objformat=`/usr/bin/objformat`
9693 else
9694 case $host_os in
9695 freebsd[23].*) objformat=aout ;;
9696 *) objformat=elf ;;
9697 esac
9699 version_type=freebsd-$objformat
9700 case $version_type in
9701 freebsd-elf*)
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9703 need_version=no
9704 need_lib_prefix=no
9706 freebsd-*)
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9708 need_version=yes
9710 esac
9711 shlibpath_var=LD_LIBRARY_PATH
9712 case $host_os in
9713 freebsd2.*)
9714 shlibpath_overrides_runpath=yes
9716 freebsd3.[01]* | freebsdelf3.[01]*)
9717 shlibpath_overrides_runpath=yes
9718 hardcode_into_libs=yes
9720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9722 shlibpath_overrides_runpath=no
9723 hardcode_into_libs=yes
9725 *) # from 4.6 on, and DragonFly
9726 shlibpath_overrides_runpath=yes
9727 hardcode_into_libs=yes
9729 esac
9732 gnu*)
9733 version_type=linux
9734 need_lib_prefix=no
9735 need_version=no
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 hardcode_into_libs=yes
9742 haiku*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 dynamic_linker="$host_os runtime_loader"
9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9748 soname_spec='${libname}${release}${shared_ext}$major'
9749 shlibpath_var=LIBRARY_PATH
9750 shlibpath_overrides_runpath=yes
9751 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9752 hardcode_into_libs=yes
9755 hpux9* | hpux10* | hpux11*)
9756 # Give a soname corresponding to the major version so that dld.sl refuses to
9757 # link against other versions.
9758 version_type=sunos
9759 need_lib_prefix=no
9760 need_version=no
9761 case $host_cpu in
9762 ia64*)
9763 shrext_cmds='.so'
9764 hardcode_into_libs=yes
9765 dynamic_linker="$host_os dld.so"
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 if test "X$HPUX_IA64_MODE" = X32; then
9771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9772 else
9773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9777 hppa*64*)
9778 shrext_cmds='.sl'
9779 hardcode_into_libs=yes
9780 dynamic_linker="$host_os dld.sl"
9781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9789 shrext_cmds='.sl'
9790 dynamic_linker="$host_os dld.sl"
9791 shlibpath_var=SHLIB_PATH
9792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9796 esac
9797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9798 postinstall_cmds='chmod 555 $lib'
9799 # or fails outright, so override atomically:
9800 install_override_mode=555
9803 interix[3-9]*)
9804 version_type=linux
9805 need_lib_prefix=no
9806 need_version=no
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 hardcode_into_libs=yes
9815 irix5* | irix6* | nonstopux*)
9816 case $host_os in
9817 nonstopux*) version_type=nonstopux ;;
9819 if test "$lt_cv_prog_gnu_ld" = yes; then
9820 version_type=linux
9821 else
9822 version_type=irix
9823 fi ;;
9824 esac
9825 need_lib_prefix=no
9826 need_version=no
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9829 case $host_os in
9830 irix5* | nonstopux*)
9831 libsuff= shlibsuff=
9834 case $LD in # libtool.m4 will add one of these switches to LD
9835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9836 libsuff= shlibsuff= libmagic=32-bit;;
9837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9838 libsuff=32 shlibsuff=N32 libmagic=N32;;
9839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9841 *) libsuff= shlibsuff= libmagic=never-match;;
9842 esac
9844 esac
9845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9846 shlibpath_overrides_runpath=no
9847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9849 hardcode_into_libs=yes
9852 # No shared lib support for Linux oldld, aout, or coff.
9853 linux*oldld* | linux*aout* | linux*coff*)
9854 dynamic_linker=no
9857 # This must be Linux ELF.
9858 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9859 version_type=linux
9860 need_lib_prefix=no
9861 need_version=no
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9868 # Some binutils ld are patched to set DT_RUNPATH
9869 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 lt_cv_shlibpath_overrides_runpath=no
9873 save_LDFLAGS=$LDFLAGS
9874 save_libdir=$libdir
9875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9881 main ()
9885 return 0;
9887 _ACEOF
9888 if ac_fn_c_try_link "$LINENO"; then :
9889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9890 lt_cv_shlibpath_overrides_runpath=yes
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LDFLAGS=$save_LDFLAGS
9896 libdir=$save_libdir
9900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9902 # This implies no fast_install, which is unacceptable.
9903 # Some rework will be needed to allow for fast_install
9904 # before this can be enabled.
9905 hardcode_into_libs=yes
9907 # Append ld.so.conf contents to the search path
9908 if test -f /etc/ld.so.conf; then
9909 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' ' '`
9910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9913 # We used to test for /lib/ld.so.1 and disable shared libraries on
9914 # powerpc, because MkLinux only supported shared libraries with the
9915 # GNU dynamic linker. Since this was broken with cross compilers,
9916 # most powerpc-linux boxes support dynamic linking these days and
9917 # people can always --disable-shared, the test was removed, and we
9918 # assume the GNU/Linux dynamic linker is in use.
9919 dynamic_linker='GNU/Linux ld.so'
9922 netbsd*)
9923 version_type=sunos
9924 need_lib_prefix=no
9925 need_version=no
9926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9929 dynamic_linker='NetBSD (a.out) ld.so'
9930 else
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 dynamic_linker='NetBSD ld.elf_so'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 shlibpath_overrides_runpath=yes
9937 hardcode_into_libs=yes
9940 newsos6)
9941 version_type=linux
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 shlibpath_overrides_runpath=yes
9947 *nto* | *qnx*)
9948 version_type=qnx
9949 need_lib_prefix=no
9950 need_version=no
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 shlibpath_overrides_runpath=no
9955 hardcode_into_libs=yes
9956 dynamic_linker='ldqnx.so'
9959 openbsd*)
9960 version_type=sunos
9961 sys_lib_dlsearch_path_spec="/usr/lib"
9962 need_lib_prefix=no
9963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9964 case $host_os in
9965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9966 *) need_version=no ;;
9967 esac
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9972 case $host_os in
9973 openbsd2.[89] | openbsd2.[89].*)
9974 shlibpath_overrides_runpath=no
9977 shlibpath_overrides_runpath=yes
9979 esac
9980 else
9981 shlibpath_overrides_runpath=yes
9985 os2*)
9986 libname_spec='$name'
9987 shrext_cmds=".dll"
9988 need_lib_prefix=no
9989 library_names_spec='$libname${shared_ext} $libname.a'
9990 dynamic_linker='OS/2 ld.exe'
9991 shlibpath_var=LIBPATH
9994 osf3* | osf4* | osf5*)
9995 version_type=osf
9996 need_lib_prefix=no
9997 need_version=no
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10005 rdos*)
10006 dynamic_linker=no
10009 solaris*)
10010 version_type=linux
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 shlibpath_overrides_runpath=yes
10017 hardcode_into_libs=yes
10018 # ldd complains unless libraries are executable
10019 postinstall_cmds='chmod +x $lib'
10022 sunos4*)
10023 version_type=sunos
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10026 shlibpath_var=LD_LIBRARY_PATH
10027 shlibpath_overrides_runpath=yes
10028 if test "$with_gnu_ld" = yes; then
10029 need_lib_prefix=no
10031 need_version=yes
10034 sysv4 | sysv4.3*)
10035 version_type=linux
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 case $host_vendor in
10040 sni)
10041 shlibpath_overrides_runpath=no
10042 need_lib_prefix=no
10043 runpath_var=LD_RUN_PATH
10045 siemens)
10046 need_lib_prefix=no
10048 motorola)
10049 need_lib_prefix=no
10050 need_version=no
10051 shlibpath_overrides_runpath=no
10052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10054 esac
10057 sysv4*MP*)
10058 if test -d /usr/nec ;then
10059 version_type=linux
10060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10061 soname_spec='$libname${shared_ext}.$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10067 version_type=freebsd-elf
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
10075 if test "$with_gnu_ld" = yes; then
10076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10077 else
10078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10079 case $host_os in
10080 sco3.2v5*)
10081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10083 esac
10085 sys_lib_dlsearch_path_spec='/usr/lib'
10088 tpf*)
10089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10090 version_type=linux
10091 need_lib_prefix=no
10092 need_version=no
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=no
10096 hardcode_into_libs=yes
10099 uts4*)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LD_LIBRARY_PATH
10107 dynamic_linker=no
10109 esac
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10111 $as_echo "$dynamic_linker" >&6; }
10112 test "$dynamic_linker" = no && can_build_shared=no
10114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10115 if test "$GCC" = yes; then
10116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10219 hardcode_action=
10220 if test -n "$hardcode_libdir_flag_spec" ||
10221 test -n "$runpath_var" ||
10222 test "X$hardcode_automatic" = "Xyes" ; then
10224 # We can hardcode non-existent directories.
10225 if test "$hardcode_direct" != no &&
10226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10227 # have to relink, otherwise we might link with an installed library
10228 # when we should be linking with a yet-to-be-installed one
10229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10230 test "$hardcode_minus_L" != no; then
10231 # Linking always hardcodes the temporary library directory.
10232 hardcode_action=relink
10233 else
10234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10235 hardcode_action=immediate
10237 else
10238 # We cannot hardcode anything, or else we can only hardcode existing
10239 # directories.
10240 hardcode_action=unsupported
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10243 $as_echo "$hardcode_action" >&6; }
10245 if test "$hardcode_action" = relink ||
10246 test "$inherit_rpath" = yes; then
10247 # Fast installation is not supported
10248 enable_fast_install=no
10249 elif test "$shlibpath_overrides_runpath" = yes ||
10250 test "$enable_shared" = no; then
10251 # Fast installation is not necessary
10252 enable_fast_install=needless
10260 if test "x$enable_dlopen" != xyes; then
10261 enable_dlopen=unknown
10262 enable_dlopen_self=unknown
10263 enable_dlopen_self_static=unknown
10264 else
10265 lt_cv_dlopen=no
10266 lt_cv_dlopen_libs=
10268 case $host_os in
10269 beos*)
10270 lt_cv_dlopen="load_add_on"
10271 lt_cv_dlopen_libs=
10272 lt_cv_dlopen_self=yes
10275 mingw* | pw32* | cegcc*)
10276 lt_cv_dlopen="LoadLibrary"
10277 lt_cv_dlopen_libs=
10280 cygwin*)
10281 lt_cv_dlopen="dlopen"
10282 lt_cv_dlopen_libs=
10285 darwin*)
10286 # if libdl is installed we need to link against it
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 ac_check_lib_save_LIBS=$LIBS
10293 LIBS="-ldl $LIBS"
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char dlopen ();
10305 main ()
10307 return dlopen ();
10309 return 0;
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 ac_cv_lib_dl_dlopen=yes
10314 else
10315 ac_cv_lib_dl_dlopen=no
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10323 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10325 else
10327 lt_cv_dlopen="dyld"
10328 lt_cv_dlopen_libs=
10329 lt_cv_dlopen_self=yes
10336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10337 if test "x$ac_cv_func_shl_load" = x""yes; then :
10338 lt_cv_dlopen="shl_load"
10339 else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 ac_check_lib_save_LIBS=$LIBS
10346 LIBS="-ldld $LIBS"
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10350 /* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10353 #ifdef __cplusplus
10354 extern "C"
10355 #endif
10356 char shl_load ();
10358 main ()
10360 return shl_load ();
10362 return 0;
10364 _ACEOF
10365 if ac_fn_c_try_link "$LINENO"; then :
10366 ac_cv_lib_dld_shl_load=yes
10367 else
10368 ac_cv_lib_dld_shl_load=no
10370 rm -f core conftest.err conftest.$ac_objext \
10371 conftest$ac_exeext conftest.$ac_ext
10372 LIBS=$ac_check_lib_save_LIBS
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10376 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10377 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10378 else
10379 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10380 if test "x$ac_cv_func_dlopen" = x""yes; then :
10381 lt_cv_dlopen="dlopen"
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 ac_check_lib_save_LIBS=$LIBS
10389 LIBS="-ldl $LIBS"
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10393 /* Override any GCC internal prototype to avoid an error.
10394 Use char because int might match the return type of a GCC
10395 builtin and then its argument prototype would still apply. */
10396 #ifdef __cplusplus
10397 extern "C"
10398 #endif
10399 char dlopen ();
10401 main ()
10403 return dlopen ();
10405 return 0;
10407 _ACEOF
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 ac_cv_lib_dl_dlopen=yes
10410 else
10411 ac_cv_lib_dl_dlopen=no
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10419 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10421 else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lsvld $LIBS"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10435 #ifdef __cplusplus
10436 extern "C"
10437 #endif
10438 char dlopen ();
10440 main ()
10442 return dlopen ();
10444 return 0;
10446 _ACEOF
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 ac_cv_lib_svld_dlopen=yes
10449 else
10450 ac_cv_lib_svld_dlopen=no
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10458 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-ldld $LIBS"
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10471 /* Override any GCC internal prototype to avoid an error.
10472 Use char because int might match the return type of a GCC
10473 builtin and then its argument prototype would still apply. */
10474 #ifdef __cplusplus
10475 extern "C"
10476 #endif
10477 char dld_link ();
10479 main ()
10481 return dld_link ();
10483 return 0;
10485 _ACEOF
10486 if ac_fn_c_try_link "$LINENO"; then :
10487 ac_cv_lib_dld_dld_link=yes
10488 else
10489 ac_cv_lib_dld_dld_link=no
10491 rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10493 LIBS=$ac_check_lib_save_LIBS
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10497 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10517 esac
10519 if test "x$lt_cv_dlopen" != xno; then
10520 enable_dlopen=yes
10521 else
10522 enable_dlopen=no
10525 case $lt_cv_dlopen in
10526 dlopen)
10527 save_CPPFLAGS="$CPPFLAGS"
10528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10530 save_LDFLAGS="$LDFLAGS"
10531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10533 save_LIBS="$LIBS"
10534 LIBS="$lt_cv_dlopen_libs $LIBS"
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10537 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10538 if test "${lt_cv_dlopen_self+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 if test "$cross_compiling" = yes; then :
10542 lt_cv_dlopen_self=cross
10543 else
10544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10545 lt_status=$lt_dlunknown
10546 cat > conftest.$ac_ext <<_LT_EOF
10547 #line 10547 "configure"
10548 #include "confdefs.h"
10550 #if HAVE_DLFCN_H
10551 #include <dlfcn.h>
10552 #endif
10554 #include <stdio.h>
10556 #ifdef RTLD_GLOBAL
10557 # define LT_DLGLOBAL RTLD_GLOBAL
10558 #else
10559 # ifdef DL_GLOBAL
10560 # define LT_DLGLOBAL DL_GLOBAL
10561 # else
10562 # define LT_DLGLOBAL 0
10563 # endif
10564 #endif
10566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10567 find out it does not work in some platform. */
10568 #ifndef LT_DLLAZY_OR_NOW
10569 # ifdef RTLD_LAZY
10570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10571 # else
10572 # ifdef DL_LAZY
10573 # define LT_DLLAZY_OR_NOW DL_LAZY
10574 # else
10575 # ifdef RTLD_NOW
10576 # define LT_DLLAZY_OR_NOW RTLD_NOW
10577 # else
10578 # ifdef DL_NOW
10579 # define LT_DLLAZY_OR_NOW DL_NOW
10580 # else
10581 # define LT_DLLAZY_OR_NOW 0
10582 # endif
10583 # endif
10584 # endif
10585 # endif
10586 #endif
10588 /* When -fvisbility=hidden is used, assume the code has been annotated
10589 correspondingly for the symbols needed. */
10590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10591 void fnord () __attribute__((visibility("default")));
10592 #endif
10594 void fnord () { int i=42; }
10595 int main ()
10597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10598 int status = $lt_dlunknown;
10600 if (self)
10602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10603 else
10605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10606 else puts (dlerror ());
10608 /* dlclose (self); */
10610 else
10611 puts (dlerror ());
10613 return status;
10615 _LT_EOF
10616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10617 (eval $ac_link) 2>&5
10618 ac_status=$?
10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10621 (./conftest; exit; ) >&5 2>/dev/null
10622 lt_status=$?
10623 case x$lt_status in
10624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10626 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10627 esac
10628 else :
10629 # compilation failed
10630 lt_cv_dlopen_self=no
10633 rm -fr conftest*
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10638 $as_echo "$lt_cv_dlopen_self" >&6; }
10640 if test "x$lt_cv_dlopen_self" = xyes; then
10641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10643 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10644 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 if test "$cross_compiling" = yes; then :
10648 lt_cv_dlopen_self_static=cross
10649 else
10650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10651 lt_status=$lt_dlunknown
10652 cat > conftest.$ac_ext <<_LT_EOF
10653 #line 10653 "configure"
10654 #include "confdefs.h"
10656 #if HAVE_DLFCN_H
10657 #include <dlfcn.h>
10658 #endif
10660 #include <stdio.h>
10662 #ifdef RTLD_GLOBAL
10663 # define LT_DLGLOBAL RTLD_GLOBAL
10664 #else
10665 # ifdef DL_GLOBAL
10666 # define LT_DLGLOBAL DL_GLOBAL
10667 # else
10668 # define LT_DLGLOBAL 0
10669 # endif
10670 #endif
10672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10673 find out it does not work in some platform. */
10674 #ifndef LT_DLLAZY_OR_NOW
10675 # ifdef RTLD_LAZY
10676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10677 # else
10678 # ifdef DL_LAZY
10679 # define LT_DLLAZY_OR_NOW DL_LAZY
10680 # else
10681 # ifdef RTLD_NOW
10682 # define LT_DLLAZY_OR_NOW RTLD_NOW
10683 # else
10684 # ifdef DL_NOW
10685 # define LT_DLLAZY_OR_NOW DL_NOW
10686 # else
10687 # define LT_DLLAZY_OR_NOW 0
10688 # endif
10689 # endif
10690 # endif
10691 # endif
10692 #endif
10694 /* When -fvisbility=hidden is used, assume the code has been annotated
10695 correspondingly for the symbols needed. */
10696 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10697 void fnord () __attribute__((visibility("default")));
10698 #endif
10700 void fnord () { int i=42; }
10701 int main ()
10703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10704 int status = $lt_dlunknown;
10706 if (self)
10708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10709 else
10711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10712 else puts (dlerror ());
10714 /* dlclose (self); */
10716 else
10717 puts (dlerror ());
10719 return status;
10721 _LT_EOF
10722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10723 (eval $ac_link) 2>&5
10724 ac_status=$?
10725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10727 (./conftest; exit; ) >&5 2>/dev/null
10728 lt_status=$?
10729 case x$lt_status in
10730 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10731 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10732 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10733 esac
10734 else :
10735 # compilation failed
10736 lt_cv_dlopen_self_static=no
10739 rm -fr conftest*
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10744 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10747 CPPFLAGS="$save_CPPFLAGS"
10748 LDFLAGS="$save_LDFLAGS"
10749 LIBS="$save_LIBS"
10751 esac
10753 case $lt_cv_dlopen_self in
10754 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10755 *) enable_dlopen_self=unknown ;;
10756 esac
10758 case $lt_cv_dlopen_self_static in
10759 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10760 *) enable_dlopen_self_static=unknown ;;
10761 esac
10780 striplib=
10781 old_striplib=
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10783 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10784 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10785 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10786 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10788 $as_echo "yes" >&6; }
10789 else
10790 # FIXME - insert some real tests, host_os isn't really good enough
10791 case $host_os in
10792 darwin*)
10793 if test -n "$STRIP" ; then
10794 striplib="$STRIP -x"
10795 old_striplib="$STRIP -S"
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10797 $as_echo "yes" >&6; }
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800 $as_echo "no" >&6; }
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; }
10807 esac
10821 # Report which library types will actually be built
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10823 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10825 $as_echo "$can_build_shared" >&6; }
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10828 $as_echo_n "checking whether to build shared libraries... " >&6; }
10829 test "$can_build_shared" = "no" && enable_shared=no
10831 # On AIX, shared libraries and static libraries use the same namespace, and
10832 # are all built from PIC.
10833 case $host_os in
10834 aix3*)
10835 test "$enable_shared" = yes && enable_static=no
10836 if test -n "$RANLIB"; then
10837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10838 postinstall_cmds='$RANLIB $lib'
10842 aix[4-9]*)
10843 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10844 test "$enable_shared" = yes && enable_static=no
10847 esac
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10849 $as_echo "$enable_shared" >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10852 $as_echo_n "checking whether to build static libraries... " >&6; }
10853 # Make sure either enable_shared or enable_static is yes.
10854 test "$enable_shared" = yes || enable_static=yes
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10856 $as_echo "$enable_static" >&6; }
10862 ac_ext=c
10863 ac_cpp='$CPP $CPPFLAGS'
10864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10868 CC="$lt_save_CC"
10882 ac_config_commands="$ac_config_commands libtool"
10887 # Only expand once:
10891 ac_ext=cpp
10892 ac_cpp='$CXXCPP $CPPFLAGS'
10893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10896 if test -z "$CXX"; then
10897 if test -n "$CCC"; then
10898 CXX=$CCC
10899 else
10900 if test -n "$ac_tool_prefix"; then
10901 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10906 $as_echo_n "checking for $ac_word... " >&6; }
10907 if test "${ac_cv_prog_CXX+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 if test -n "$CXX"; then
10911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10912 else
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10924 done
10925 done
10926 IFS=$as_save_IFS
10930 CXX=$ac_cv_prog_CXX
10931 if test -n "$CXX"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10933 $as_echo "$CXX" >&6; }
10934 else
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 $as_echo "no" >&6; }
10940 test -n "$CXX" && break
10941 done
10943 if test -z "$CXX"; then
10944 ac_ct_CXX=$CXX
10945 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10947 # Extract the first word of "$ac_prog", so it can be a program name with args.
10948 set dummy $ac_prog; ac_word=$2
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 $as_echo_n "checking for $ac_word... " >&6; }
10951 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 if test -n "$ac_ct_CXX"; then
10955 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10956 else
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_prog_ac_ct_CXX="$ac_prog"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10968 done
10969 done
10970 IFS=$as_save_IFS
10974 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10975 if test -n "$ac_ct_CXX"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10977 $as_echo "$ac_ct_CXX" >&6; }
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10984 test -n "$ac_ct_CXX" && break
10985 done
10987 if test "x$ac_ct_CXX" = x; then
10988 CXX="g++"
10989 else
10990 case $cross_compiling:$ac_tool_warned in
10991 yes:)
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10994 ac_tool_warned=yes ;;
10995 esac
10996 CXX=$ac_ct_CXX
11002 # Provide some information about the compiler.
11003 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11004 set X $ac_compile
11005 ac_compiler=$2
11006 for ac_option in --version -v -V -qversion; do
11007 { { ac_try="$ac_compiler $ac_option >&5"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011 esac
11012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11013 $as_echo "$ac_try_echo"; } >&5
11014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11015 ac_status=$?
11016 if test -s conftest.err; then
11017 sed '10a\
11018 ... rest of stderr output deleted ...
11019 10q' conftest.err >conftest.er1
11020 cat conftest.er1 >&5
11021 rm -f conftest.er1 conftest.err
11023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024 test $ac_status = 0; }
11025 done
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11028 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11029 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11036 main ()
11038 #ifndef __GNUC__
11039 choke me
11040 #endif
11043 return 0;
11045 _ACEOF
11046 if ac_fn_cxx_try_compile "$LINENO"; then :
11047 ac_compiler_gnu=yes
11048 else
11049 ac_compiler_gnu=no
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11056 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11057 if test $ac_compiler_gnu = yes; then
11058 GXX=yes
11059 else
11060 GXX=
11062 ac_test_CXXFLAGS=${CXXFLAGS+set}
11063 ac_save_CXXFLAGS=$CXXFLAGS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11065 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11066 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11070 ac_cxx_werror_flag=yes
11071 ac_cv_prog_cxx_g=no
11072 CXXFLAGS="-g"
11073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11077 main ()
11081 return 0;
11083 _ACEOF
11084 if ac_fn_cxx_try_compile "$LINENO"; then :
11085 ac_cv_prog_cxx_g=yes
11086 else
11087 CXXFLAGS=""
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11092 main ()
11096 return 0;
11098 _ACEOF
11099 if ac_fn_cxx_try_compile "$LINENO"; then :
11101 else
11102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11103 CXXFLAGS="-g"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11108 main ()
11112 return 0;
11114 _ACEOF
11115 if ac_fn_cxx_try_compile "$LINENO"; then :
11116 ac_cv_prog_cxx_g=yes
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11126 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11127 if test "$ac_test_CXXFLAGS" = set; then
11128 CXXFLAGS=$ac_save_CXXFLAGS
11129 elif test $ac_cv_prog_cxx_g = yes; then
11130 if test "$GXX" = yes; then
11131 CXXFLAGS="-g -O2"
11132 else
11133 CXXFLAGS="-g"
11135 else
11136 if test "$GXX" = yes; then
11137 CXXFLAGS="-O2"
11138 else
11139 CXXFLAGS=
11142 ac_ext=c
11143 ac_cpp='$CPP $CPPFLAGS'
11144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11148 depcc="$CXX" am_compiler_list=
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11151 $as_echo_n "checking dependency style of $depcc... " >&6; }
11152 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11156 # We make a subdir and do the tests there. Otherwise we can end up
11157 # making bogus files that we don't know about and never remove. For
11158 # instance it was reported that on HP-UX the gcc test will end up
11159 # making a dummy file named `D' -- because `-MD' means `put the output
11160 # in D'.
11161 rm -rf conftest.dir
11162 mkdir conftest.dir
11163 # Copy depcomp to subdir because otherwise we won't find it if we're
11164 # using a relative directory.
11165 cp "$am_depcomp" conftest.dir
11166 cd conftest.dir
11167 # We will build objects and dependencies in a subdirectory because
11168 # it helps to detect inapplicable dependency modes. For instance
11169 # both Tru64's cc and ICC support -MD to output dependencies as a
11170 # side effect of compilation, but ICC will put the dependencies in
11171 # the current directory while Tru64 will put them in the object
11172 # directory.
11173 mkdir sub
11175 am_cv_CXX_dependencies_compiler_type=none
11176 if test "$am_compiler_list" = ""; then
11177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11179 am__universal=false
11180 case " $depcc " in #(
11181 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11182 esac
11184 for depmode in $am_compiler_list; do
11185 # Setup a source with many dependencies, because some compilers
11186 # like to wrap large dependency lists on column 80 (with \), and
11187 # we should not choose a depcomp mode which is confused by this.
11189 # We need to recreate these files for each test, as the compiler may
11190 # overwrite some of them when testing with obscure command lines.
11191 # This happens at least with the AIX C compiler.
11192 : > sub/conftest.c
11193 for i in 1 2 3 4 5 6; do
11194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11196 # Solaris 8's {/usr,}/bin/sh.
11197 touch sub/conftst$i.h
11198 done
11199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11201 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11202 # mode. It turns out that the SunPro C++ compiler does not properly
11203 # handle `-M -o', and we need to detect this. Also, some Intel
11204 # versions had trouble with output in subdirs
11205 am__obj=sub/conftest.${OBJEXT-o}
11206 am__minus_obj="-o $am__obj"
11207 case $depmode in
11208 gcc)
11209 # This depmode causes a compiler race in universal mode.
11210 test "$am__universal" = false || continue
11212 nosideeffect)
11213 # after this tag, mechanisms are not by side-effect, so they'll
11214 # only be used when explicitly requested
11215 if test "x$enable_dependency_tracking" = xyes; then
11216 continue
11217 else
11218 break
11221 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11222 # This compiler won't grok `-c -o', but also, the minuso test has
11223 # not run yet. These depmodes are late enough in the game, and
11224 # so weak that their functioning should not be impacted.
11225 am__obj=conftest.${OBJEXT-o}
11226 am__minus_obj=
11228 none) break ;;
11229 esac
11230 if depmode=$depmode \
11231 source=sub/conftest.c object=$am__obj \
11232 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11233 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11234 >/dev/null 2>conftest.err &&
11235 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11236 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11237 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11238 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11239 # icc doesn't choke on unknown options, it will just issue warnings
11240 # or remarks (even with -Werror). So we grep stderr for any message
11241 # that says an option was ignored or not supported.
11242 # When given -MP, icc 7.0 and 7.1 complain thusly:
11243 # icc: Command line warning: ignoring option '-M'; no argument required
11244 # The diagnosis changed in icc 8.0:
11245 # icc: Command line remark: option '-MP' not supported
11246 if (grep 'ignoring option' conftest.err ||
11247 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11248 am_cv_CXX_dependencies_compiler_type=$depmode
11249 break
11252 done
11254 cd ..
11255 rm -rf conftest.dir
11256 else
11257 am_cv_CXX_dependencies_compiler_type=none
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11262 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11263 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11266 test "x$enable_dependency_tracking" != xno \
11267 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11268 am__fastdepCXX_TRUE=
11269 am__fastdepCXX_FALSE='#'
11270 else
11271 am__fastdepCXX_TRUE='#'
11272 am__fastdepCXX_FALSE=
11276 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11277 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11278 (test "X$CXX" != "Xg++"))) ; then
11279 ac_ext=cpp
11280 ac_cpp='$CXXCPP $CPPFLAGS'
11281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11285 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11286 if test -z "$CXXCPP"; then
11287 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 # Double quotes because CXXCPP needs to be expanded
11291 for CXXCPP in "$CXX -E" "/lib/cpp"
11293 ac_preproc_ok=false
11294 for ac_cxx_preproc_warn_flag in '' yes
11296 # Use a header file that comes with gcc, so configuring glibc
11297 # with a fresh cross-compiler works.
11298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11299 # <limits.h> exists even on freestanding compilers.
11300 # On the NeXT, cc -E runs the code through the compiler's parser,
11301 # not just through cpp. "Syntax error" is here to catch this case.
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 #ifdef __STDC__
11305 # include <limits.h>
11306 #else
11307 # include <assert.h>
11308 #endif
11309 Syntax error
11310 _ACEOF
11311 if ac_fn_cxx_try_cpp "$LINENO"; then :
11313 else
11314 # Broken: fails on valid input.
11315 continue
11317 rm -f conftest.err conftest.$ac_ext
11319 # OK, works on sane cases. Now check whether nonexistent headers
11320 # can be detected and how.
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323 #include <ac_nonexistent.h>
11324 _ACEOF
11325 if ac_fn_cxx_try_cpp "$LINENO"; then :
11326 # Broken: success on invalid input.
11327 continue
11328 else
11329 # Passes both tests.
11330 ac_preproc_ok=:
11331 break
11333 rm -f conftest.err conftest.$ac_ext
11335 done
11336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11337 rm -f conftest.err conftest.$ac_ext
11338 if $ac_preproc_ok; then :
11339 break
11342 done
11343 ac_cv_prog_CXXCPP=$CXXCPP
11346 CXXCPP=$ac_cv_prog_CXXCPP
11347 else
11348 ac_cv_prog_CXXCPP=$CXXCPP
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11351 $as_echo "$CXXCPP" >&6; }
11352 ac_preproc_ok=false
11353 for ac_cxx_preproc_warn_flag in '' yes
11355 # Use a header file that comes with gcc, so configuring glibc
11356 # with a fresh cross-compiler works.
11357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11358 # <limits.h> exists even on freestanding compilers.
11359 # On the NeXT, cc -E runs the code through the compiler's parser,
11360 # not just through cpp. "Syntax error" is here to catch this case.
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11363 #ifdef __STDC__
11364 # include <limits.h>
11365 #else
11366 # include <assert.h>
11367 #endif
11368 Syntax error
11369 _ACEOF
11370 if ac_fn_cxx_try_cpp "$LINENO"; then :
11372 else
11373 # Broken: fails on valid input.
11374 continue
11376 rm -f conftest.err conftest.$ac_ext
11378 # OK, works on sane cases. Now check whether nonexistent headers
11379 # can be detected and how.
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #include <ac_nonexistent.h>
11383 _ACEOF
11384 if ac_fn_cxx_try_cpp "$LINENO"; then :
11385 # Broken: success on invalid input.
11386 continue
11387 else
11388 # Passes both tests.
11389 ac_preproc_ok=:
11390 break
11392 rm -f conftest.err conftest.$ac_ext
11394 done
11395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11396 rm -f conftest.err conftest.$ac_ext
11397 if $ac_preproc_ok; then :
11399 else
11400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11402 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11403 See \`config.log' for more details." "$LINENO" 5; }
11406 ac_ext=c
11407 ac_cpp='$CPP $CPPFLAGS'
11408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11412 else
11413 _lt_caught_CXX_error=yes
11416 ac_ext=cpp
11417 ac_cpp='$CXXCPP $CPPFLAGS'
11418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11422 archive_cmds_need_lc_CXX=no
11423 allow_undefined_flag_CXX=
11424 always_export_symbols_CXX=no
11425 archive_expsym_cmds_CXX=
11426 compiler_needs_object_CXX=no
11427 export_dynamic_flag_spec_CXX=
11428 hardcode_direct_CXX=no
11429 hardcode_direct_absolute_CXX=no
11430 hardcode_libdir_flag_spec_CXX=
11431 hardcode_libdir_flag_spec_ld_CXX=
11432 hardcode_libdir_separator_CXX=
11433 hardcode_minus_L_CXX=no
11434 hardcode_shlibpath_var_CXX=unsupported
11435 hardcode_automatic_CXX=no
11436 inherit_rpath_CXX=no
11437 module_cmds_CXX=
11438 module_expsym_cmds_CXX=
11439 link_all_deplibs_CXX=unknown
11440 old_archive_cmds_CXX=$old_archive_cmds
11441 reload_flag_CXX=$reload_flag
11442 reload_cmds_CXX=$reload_cmds
11443 no_undefined_flag_CXX=
11444 whole_archive_flag_spec_CXX=
11445 enable_shared_with_static_runtimes_CXX=no
11447 # Source file extension for C++ test sources.
11448 ac_ext=cpp
11450 # Object file extension for compiled C++ test sources.
11451 objext=o
11452 objext_CXX=$objext
11454 # No sense in running all these tests if we already determined that
11455 # the CXX compiler isn't working. Some variables (like enable_shared)
11456 # are currently assumed to apply to all compilers on this platform,
11457 # and will be corrupted by setting them based on a non-working compiler.
11458 if test "$_lt_caught_CXX_error" != yes; then
11459 # Code to be used in simple compile tests
11460 lt_simple_compile_test_code="int some_variable = 0;"
11462 # Code to be used in simple link tests
11463 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11465 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11472 # If no C compiler was specified, use CC.
11473 LTCC=${LTCC-"$CC"}
11475 # If no C compiler flags were specified, use CFLAGS.
11476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11478 # Allow CC to be a program name with arguments.
11479 compiler=$CC
11482 # save warnings/boilerplate of simple test code
11483 ac_outfile=conftest.$ac_objext
11484 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11486 _lt_compiler_boilerplate=`cat conftest.err`
11487 $RM conftest*
11489 ac_outfile=conftest.$ac_objext
11490 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492 _lt_linker_boilerplate=`cat conftest.err`
11493 $RM -r conftest*
11496 # Allow CC to be a program name with arguments.
11497 lt_save_CC=$CC
11498 lt_save_LD=$LD
11499 lt_save_GCC=$GCC
11500 GCC=$GXX
11501 lt_save_with_gnu_ld=$with_gnu_ld
11502 lt_save_path_LD=$lt_cv_path_LD
11503 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11504 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11505 else
11506 $as_unset lt_cv_prog_gnu_ld
11508 if test -n "${lt_cv_path_LDCXX+set}"; then
11509 lt_cv_path_LD=$lt_cv_path_LDCXX
11510 else
11511 $as_unset lt_cv_path_LD
11513 test -z "${LDCXX+set}" || LD=$LDCXX
11514 CC=${CXX-"c++"}
11515 compiler=$CC
11516 compiler_CXX=$CC
11517 for cc_temp in $compiler""; do
11518 case $cc_temp in
11519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11521 \-*) ;;
11522 *) break;;
11523 esac
11524 done
11525 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11528 if test -n "$compiler"; then
11529 # We don't want -fno-exception when compiling C++ code, so set the
11530 # no_builtin_flag separately
11531 if test "$GXX" = yes; then
11532 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11533 else
11534 lt_prog_compiler_no_builtin_flag_CXX=
11537 if test "$GXX" = yes; then
11538 # Set up default GNU C++ configuration
11542 # Check whether --with-gnu-ld was given.
11543 if test "${with_gnu_ld+set}" = set; then :
11544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11545 else
11546 with_gnu_ld=no
11549 ac_prog=ld
11550 if test "$GCC" = yes; then
11551 # Check if gcc -print-prog-name=ld gives a path.
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11553 $as_echo_n "checking for ld used by $CC... " >&6; }
11554 case $host in
11555 *-*-mingw*)
11556 # gcc leaves a trailing carriage return which upsets mingw
11557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11560 esac
11561 case $ac_prog in
11562 # Accept absolute paths.
11563 [\\/]* | ?:[\\/]*)
11564 re_direlt='/[^/][^/]*/\.\./'
11565 # Canonicalize the pathname of ld
11566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11569 done
11570 test -z "$LD" && LD="$ac_prog"
11573 # If it fails, then pretend we aren't using GCC.
11574 ac_prog=ld
11577 # If it is relative, then search for the first ld in PATH.
11578 with_gnu_ld=unknown
11580 esac
11581 elif test "$with_gnu_ld" = yes; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11583 $as_echo_n "checking for GNU ld... " >&6; }
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11586 $as_echo_n "checking for non-GNU ld... " >&6; }
11588 if test "${lt_cv_path_LD+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 if test -z "$LD"; then
11592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11593 for ac_dir in $PATH; do
11594 IFS="$lt_save_ifs"
11595 test -z "$ac_dir" && ac_dir=.
11596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11597 lt_cv_path_LD="$ac_dir/$ac_prog"
11598 # Check to see if the program is GNU ld. I'd rather use --version,
11599 # but apparently some variants of GNU ld only accept -v.
11600 # Break only if it was the GNU/non-GNU ld that we prefer.
11601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11602 *GNU* | *'with BFD'*)
11603 test "$with_gnu_ld" != no && break
11606 test "$with_gnu_ld" != yes && break
11608 esac
11610 done
11611 IFS="$lt_save_ifs"
11612 else
11613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11617 LD="$lt_cv_path_LD"
11618 if test -n "$LD"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11620 $as_echo "$LD" >&6; }
11621 else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11625 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11627 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11628 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11632 case `$LD -v 2>&1 </dev/null` in
11633 *GNU* | *'with BFD'*)
11634 lt_cv_prog_gnu_ld=yes
11637 lt_cv_prog_gnu_ld=no
11639 esac
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11642 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11643 with_gnu_ld=$lt_cv_prog_gnu_ld
11651 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11652 # archiving commands below assume that GNU ld is being used.
11653 if test "$with_gnu_ld" = yes; then
11654 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11655 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'
11657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11660 # If archive_cmds runs LD, not CC, wlarc should be empty
11661 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11662 # investigate it a little bit more. (MM)
11663 wlarc='${wl}'
11665 # ancient GNU ld didn't support --whole-archive et. al.
11666 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11667 $GREP 'no-whole-archive' > /dev/null; then
11668 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11669 else
11670 whole_archive_flag_spec_CXX=
11672 else
11673 with_gnu_ld=no
11674 wlarc=
11676 # A generic and very simple default shared library creation
11677 # command for GNU C++ for the case where it uses the native
11678 # linker, instead of GNU ld. If possible, this setting should
11679 # overridden to take advantage of the native linker features on
11680 # the platform it is being used on.
11681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11684 # Commands to make compiler produce verbose output that lists
11685 # what "hidden" libraries, object files and flags are used when
11686 # linking a shared library.
11687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11689 else
11690 GXX=no
11691 with_gnu_ld=no
11692 wlarc=
11695 # PORTME: fill in a description of your system's C++ link characteristics
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11698 ld_shlibs_CXX=yes
11699 case $host_os in
11700 aix3*)
11701 # FIXME: insert proper C++ library support
11702 ld_shlibs_CXX=no
11704 aix[4-9]*)
11705 if test "$host_cpu" = ia64; then
11706 # On IA64, the linker does run time linking by default, so we don't
11707 # have to do anything special.
11708 aix_use_runtimelinking=no
11709 exp_sym_flag='-Bexport'
11710 no_entry_flag=""
11711 else
11712 aix_use_runtimelinking=no
11714 # Test if we are trying to use run time linking or normal
11715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11716 # need to do runtime linking.
11717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11718 for ld_flag in $LDFLAGS; do
11719 case $ld_flag in
11720 *-brtl*)
11721 aix_use_runtimelinking=yes
11722 break
11724 esac
11725 done
11727 esac
11729 exp_sym_flag='-bexport'
11730 no_entry_flag='-bnoentry'
11733 # When large executables or shared objects are built, AIX ld can
11734 # have problems creating the table of contents. If linking a library
11735 # or program results in "error TOC overflow" add -mminimal-toc to
11736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11739 archive_cmds_CXX=''
11740 hardcode_direct_CXX=yes
11741 hardcode_direct_absolute_CXX=yes
11742 hardcode_libdir_separator_CXX=':'
11743 link_all_deplibs_CXX=yes
11744 file_list_spec_CXX='${wl}-f,'
11746 if test "$GXX" = yes; then
11747 case $host_os in aix4.[012]|aix4.[012].*)
11748 # We only want to do this on AIX 4.2 and lower, the check
11749 # below for broken collect2 doesn't work under 4.3+
11750 collect2name=`${CC} -print-prog-name=collect2`
11751 if test -f "$collect2name" &&
11752 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11753 then
11754 # We have reworked collect2
11756 else
11757 # We have old collect2
11758 hardcode_direct_CXX=unsupported
11759 # It fails to find uninstalled libraries when the uninstalled
11760 # path is not listed in the libpath. Setting hardcode_minus_L
11761 # to unsupported forces relinking
11762 hardcode_minus_L_CXX=yes
11763 hardcode_libdir_flag_spec_CXX='-L$libdir'
11764 hardcode_libdir_separator_CXX=
11766 esac
11767 shared_flag='-shared'
11768 if test "$aix_use_runtimelinking" = yes; then
11769 shared_flag="$shared_flag "'${wl}-G'
11771 else
11772 # not using gcc
11773 if test "$host_cpu" = ia64; then
11774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11775 # chokes on -Wl,-G. The following line is correct:
11776 shared_flag='-G'
11777 else
11778 if test "$aix_use_runtimelinking" = yes; then
11779 shared_flag='${wl}-G'
11780 else
11781 shared_flag='${wl}-bM:SRE'
11786 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11787 # It seems that -bexpall does not export symbols beginning with
11788 # underscore (_), so it is better to generate a list of symbols to
11789 # export.
11790 always_export_symbols_CXX=yes
11791 if test "$aix_use_runtimelinking" = yes; then
11792 # Warning - without using the other runtime loading flags (-brtl),
11793 # -berok will link without error, but may produce a broken library.
11794 allow_undefined_flag_CXX='-berok'
11795 # Determine the default libpath from the value encoded in an empty
11796 # executable.
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11801 main ()
11805 return 0;
11807 _ACEOF
11808 if ac_fn_cxx_try_link "$LINENO"; then :
11810 lt_aix_libpath_sed='
11811 /Import File Strings/,/^$/ {
11812 /^0/ {
11813 s/^0 *\(.*\)$/\1/
11817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11818 # Check for a 64-bit object if we didn't find anything.
11819 if test -z "$aix_libpath"; then
11820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11823 rm -f core conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext conftest.$ac_ext
11825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11827 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11829 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"
11830 else
11831 if test "$host_cpu" = ia64; then
11832 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11833 allow_undefined_flag_CXX="-z nodefs"
11834 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"
11835 else
11836 # Determine the default libpath from the value encoded in an
11837 # empty executable.
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11842 main ()
11846 return 0;
11848 _ACEOF
11849 if ac_fn_cxx_try_link "$LINENO"; then :
11851 lt_aix_libpath_sed='
11852 /Import File Strings/,/^$/ {
11853 /^0/ {
11854 s/^0 *\(.*\)$/\1/
11858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11859 # Check for a 64-bit object if we didn't find anything.
11860 if test -z "$aix_libpath"; then
11861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11868 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11869 # Warning - without using the other run time loading flags,
11870 # -berok will link without error, but may produce a broken library.
11871 no_undefined_flag_CXX=' ${wl}-bernotok'
11872 allow_undefined_flag_CXX=' ${wl}-berok'
11873 if test "$with_gnu_ld" = yes; then
11874 # We only use this code for GNU lds that support --whole-archive.
11875 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11876 else
11877 # Exported symbols can be pulled into shared objects from archives
11878 whole_archive_flag_spec_CXX='$convenience'
11880 archive_cmds_need_lc_CXX=yes
11881 # This is similar to how AIX traditionally builds its shared
11882 # libraries.
11883 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'
11888 beos*)
11889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11890 allow_undefined_flag_CXX=unsupported
11891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11892 # support --undefined. This deserves some investigation. FIXME
11893 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11894 else
11895 ld_shlibs_CXX=no
11899 chorus*)
11900 case $cc_basename in
11902 # FIXME: insert proper C++ library support
11903 ld_shlibs_CXX=no
11905 esac
11908 cygwin* | mingw* | pw32* | cegcc*)
11909 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11910 # as there is no search path for DLLs.
11911 hardcode_libdir_flag_spec_CXX='-L$libdir'
11912 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11913 allow_undefined_flag_CXX=unsupported
11914 always_export_symbols_CXX=no
11915 enable_shared_with_static_runtimes_CXX=yes
11917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11918 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'
11919 # If the export-symbols file already is a .def file (1st line
11920 # is EXPORTS), use it as is; otherwise, prepend...
11921 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11922 cp $export_symbols $output_objdir/$soname.def;
11923 else
11924 echo EXPORTS > $output_objdir/$soname.def;
11925 cat $export_symbols >> $output_objdir/$soname.def;
11927 $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'
11928 else
11929 ld_shlibs_CXX=no
11932 darwin* | rhapsody*)
11935 archive_cmds_need_lc_CXX=no
11936 hardcode_direct_CXX=no
11937 hardcode_automatic_CXX=yes
11938 hardcode_shlibpath_var_CXX=unsupported
11939 if test "$lt_cv_ld_force_load" = "yes"; then
11940 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\"`'
11941 else
11942 whole_archive_flag_spec_CXX=''
11944 link_all_deplibs_CXX=yes
11945 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11946 case $cc_basename in
11947 ifort*) _lt_dar_can_shared=yes ;;
11948 *) _lt_dar_can_shared=$GCC ;;
11949 esac
11950 if test "$_lt_dar_can_shared" = "yes"; then
11951 output_verbose_link_cmd=func_echo_all
11952 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}"
11953 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11954 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}"
11955 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}"
11956 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11957 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}"
11958 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}"
11961 else
11962 ld_shlibs_CXX=no
11967 dgux*)
11968 case $cc_basename in
11969 ec++*)
11970 # FIXME: insert proper C++ library support
11971 ld_shlibs_CXX=no
11973 ghcx*)
11974 # Green Hills C++ Compiler
11975 # FIXME: insert proper C++ library support
11976 ld_shlibs_CXX=no
11979 # FIXME: insert proper C++ library support
11980 ld_shlibs_CXX=no
11982 esac
11985 freebsd2.*)
11986 # C++ shared libraries reported to be fairly broken before
11987 # switch to ELF
11988 ld_shlibs_CXX=no
11991 freebsd-elf*)
11992 archive_cmds_need_lc_CXX=no
11995 freebsd* | dragonfly*)
11996 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11997 # conventions
11998 ld_shlibs_CXX=yes
12001 gnu*)
12004 haiku*)
12005 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006 link_all_deplibs_CXX=yes
12009 hpux9*)
12010 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12011 hardcode_libdir_separator_CXX=:
12012 export_dynamic_flag_spec_CXX='${wl}-E'
12013 hardcode_direct_CXX=yes
12014 hardcode_minus_L_CXX=yes # Not in the search PATH,
12015 # but as the default
12016 # location of the library.
12018 case $cc_basename in
12019 CC*)
12020 # FIXME: insert proper C++ library support
12021 ld_shlibs_CXX=no
12023 aCC*)
12024 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'
12025 # Commands to make compiler produce verbose output that lists
12026 # what "hidden" libraries, object files and flags are used when
12027 # linking a shared library.
12029 # There doesn't appear to be a way to prevent this compiler from
12030 # explicitly linking system object files so we need to strip them
12031 # from the output so that they don't get included in the library
12032 # dependencies.
12033 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"'
12036 if test "$GXX" = yes; then
12037 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'
12038 else
12039 # FIXME: insert proper C++ library support
12040 ld_shlibs_CXX=no
12043 esac
12046 hpux10*|hpux11*)
12047 if test $with_gnu_ld = no; then
12048 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12049 hardcode_libdir_separator_CXX=:
12051 case $host_cpu in
12052 hppa*64*|ia64*)
12055 export_dynamic_flag_spec_CXX='${wl}-E'
12057 esac
12059 case $host_cpu in
12060 hppa*64*|ia64*)
12061 hardcode_direct_CXX=no
12062 hardcode_shlibpath_var_CXX=no
12065 hardcode_direct_CXX=yes
12066 hardcode_direct_absolute_CXX=yes
12067 hardcode_minus_L_CXX=yes # Not in the search PATH,
12068 # but as the default
12069 # location of the library.
12071 esac
12073 case $cc_basename in
12074 CC*)
12075 # FIXME: insert proper C++ library support
12076 ld_shlibs_CXX=no
12078 aCC*)
12079 case $host_cpu in
12080 hppa*64*)
12081 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12083 ia64*)
12084 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12087 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12089 esac
12090 # Commands to make compiler produce verbose output that lists
12091 # what "hidden" libraries, object files and flags are used when
12092 # linking a shared library.
12094 # There doesn't appear to be a way to prevent this compiler from
12095 # explicitly linking system object files so we need to strip them
12096 # from the output so that they don't get included in the library
12097 # dependencies.
12098 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"'
12101 if test "$GXX" = yes; then
12102 if test $with_gnu_ld = no; then
12103 case $host_cpu in
12104 hppa*64*)
12105 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12107 ia64*)
12108 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12111 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'
12113 esac
12115 else
12116 # FIXME: insert proper C++ library support
12117 ld_shlibs_CXX=no
12120 esac
12123 interix[3-9]*)
12124 hardcode_direct_CXX=no
12125 hardcode_shlibpath_var_CXX=no
12126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12127 export_dynamic_flag_spec_CXX='${wl}-E'
12128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12129 # Instead, shared libraries are loaded at an image base (0x10000000 by
12130 # default) and relocated if they conflict, which is a slow very memory
12131 # consuming and fragmenting process. To avoid this, we pick a random,
12132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12134 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'
12135 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'
12137 irix5* | irix6*)
12138 case $cc_basename in
12139 CC*)
12140 # SGI C++
12141 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'
12143 # Archives containing C++ object files must be created using
12144 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12145 # necessary to make sure instantiated templates are included
12146 # in the archive.
12147 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12150 if test "$GXX" = yes; then
12151 if test "$with_gnu_ld" = no; then
12152 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'
12153 else
12154 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'
12157 link_all_deplibs_CXX=yes
12159 esac
12160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12161 hardcode_libdir_separator_CXX=:
12162 inherit_rpath_CXX=yes
12165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12166 case $cc_basename in
12167 KCC*)
12168 # Kuck and Associates, Inc. (KAI) C++ Compiler
12170 # KCC will only create a shared library if the output file
12171 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12172 # to its proper name (with version) after linking.
12173 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'
12174 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'
12175 # Commands to make compiler produce verbose output that lists
12176 # what "hidden" libraries, object files and flags are used when
12177 # linking a shared library.
12179 # There doesn't appear to be a way to prevent this compiler from
12180 # explicitly linking system object files so we need to strip them
12181 # from the output so that they don't get included in the library
12182 # dependencies.
12183 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"'
12185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12186 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12188 # Archives containing C++ object files must be created using
12189 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12190 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12192 icpc* | ecpc* )
12193 # Intel C++
12194 with_gnu_ld=yes
12195 # version 8.0 and above of icpc choke on multiply defined symbols
12196 # if we add $predep_objects and $postdep_objects, however 7.1 and
12197 # earlier do not add the objects themselves.
12198 case `$CC -V 2>&1` in
12199 *"Version 7."*)
12200 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12201 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'
12203 *) # Version 8.0 or newer
12204 tmp_idyn=
12205 case $host_cpu in
12206 ia64*) tmp_idyn=' -i_dynamic';;
12207 esac
12208 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209 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'
12211 esac
12212 archive_cmds_need_lc_CXX=no
12213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12217 pgCC* | pgcpp*)
12218 # Portland Group C++ compiler
12219 case `$CC -V` in
12220 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12221 prelink_cmds_CXX='tpldir=Template.dir~
12222 rm -rf $tpldir~
12223 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12224 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12225 old_archive_cmds_CXX='tpldir=Template.dir~
12226 rm -rf $tpldir~
12227 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12228 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12229 $RANLIB $oldlib'
12230 archive_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 -o $lib'
12234 archive_expsym_cmds_CXX='tpldir=Template.dir~
12235 rm -rf $tpldir~
12236 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12237 $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'
12239 *) # Version 6 and above use weak symbols
12240 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12241 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'
12243 esac
12245 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12246 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12247 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'
12249 cxx*)
12250 # Compaq C++
12251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 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'
12254 runpath_var=LD_RUN_PATH
12255 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12256 hardcode_libdir_separator_CXX=:
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12262 # There doesn't appear to be a way to prevent this compiler from
12263 # explicitly linking system object files so we need to strip them
12264 # from the output so that they don't get included in the library
12265 # dependencies.
12266 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'
12268 xl* | mpixl* | bgxl*)
12269 # IBM XL 8.0 on PPC, with GNU ld
12270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12272 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 if test "x$supports_anon_versioning" = xyes; then
12274 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12276 echo "local: *; };" >> $output_objdir/$libname.ver~
12277 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12281 case `$CC -V 2>&1 | sed 5q` in
12282 *Sun\ C*)
12283 # Sun C++ 5.9
12284 no_undefined_flag_CXX=' -zdefs'
12285 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12286 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'
12287 hardcode_libdir_flag_spec_CXX='-R$libdir'
12288 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'
12289 compiler_needs_object_CXX=yes
12291 # Not sure whether something based on
12292 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12293 # would be better.
12294 output_verbose_link_cmd='func_echo_all'
12296 # Archives containing C++ object files must be created using
12297 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12298 # necessary to make sure instantiated templates are included
12299 # in the archive.
12300 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12302 esac
12304 esac
12307 lynxos*)
12308 # FIXME: insert proper C++ library support
12309 ld_shlibs_CXX=no
12312 m88k*)
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12317 mvs*)
12318 case $cc_basename in
12319 cxx*)
12320 # FIXME: insert proper C++ library support
12321 ld_shlibs_CXX=no
12324 # FIXME: insert proper C++ library support
12325 ld_shlibs_CXX=no
12327 esac
12330 netbsd*)
12331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12332 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12333 wlarc=
12334 hardcode_libdir_flag_spec_CXX='-R$libdir'
12335 hardcode_direct_CXX=yes
12336 hardcode_shlibpath_var_CXX=no
12338 # Workaround some broken pre-1.5 toolchains
12339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12342 *nto* | *qnx*)
12343 ld_shlibs_CXX=yes
12346 openbsd2*)
12347 # C++ shared libraries are fairly broken
12348 ld_shlibs_CXX=no
12351 openbsd*)
12352 if test -f /usr/libexec/ld.so; then
12353 hardcode_direct_CXX=yes
12354 hardcode_shlibpath_var_CXX=no
12355 hardcode_direct_absolute_CXX=yes
12356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12359 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12360 export_dynamic_flag_spec_CXX='${wl}-E'
12361 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12363 output_verbose_link_cmd=func_echo_all
12364 else
12365 ld_shlibs_CXX=no
12369 osf3* | osf4* | osf5*)
12370 case $cc_basename in
12371 KCC*)
12372 # Kuck and Associates, Inc. (KAI) C++ Compiler
12374 # KCC will only create a shared library if the output file
12375 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12376 # to its proper name (with version) after linking.
12377 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'
12379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12380 hardcode_libdir_separator_CXX=:
12382 # Archives containing C++ object files must be created using
12383 # the KAI C++ compiler.
12384 case $host in
12385 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12386 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12387 esac
12389 RCC*)
12390 # Rational C++ 2.4.1
12391 # FIXME: insert proper C++ library support
12392 ld_shlibs_CXX=no
12394 cxx*)
12395 case $host in
12396 osf3*)
12397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12398 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'
12399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12402 allow_undefined_flag_CXX=' -expect_unresolved \*'
12403 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'
12404 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12405 echo "-hidden">> $lib.exp~
12406 $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~
12407 $RM $lib.exp'
12408 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12410 esac
12412 hardcode_libdir_separator_CXX=:
12414 # Commands to make compiler produce verbose output that lists
12415 # what "hidden" libraries, object files and flags are used when
12416 # linking a shared library.
12418 # There doesn't appear to be a way to prevent this compiler from
12419 # explicitly linking system object files so we need to strip them
12420 # from the output so that they don't get included in the library
12421 # dependencies.
12422 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"'
12425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12427 case $host in
12428 osf3*)
12429 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'
12432 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'
12434 esac
12436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12437 hardcode_libdir_separator_CXX=:
12439 # Commands to make compiler produce verbose output that lists
12440 # what "hidden" libraries, object files and flags are used when
12441 # linking a shared library.
12442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12444 else
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12449 esac
12452 psos*)
12453 # FIXME: insert proper C++ library support
12454 ld_shlibs_CXX=no
12457 sunos4*)
12458 case $cc_basename in
12459 CC*)
12460 # Sun C++ 4.x
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12464 lcc*)
12465 # Lucid
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12470 # FIXME: insert proper C++ library support
12471 ld_shlibs_CXX=no
12473 esac
12476 solaris*)
12477 case $cc_basename in
12478 CC*)
12479 # Sun C++ 4.2, 5.x and Centerline C++
12480 archive_cmds_need_lc_CXX=yes
12481 no_undefined_flag_CXX=' -zdefs'
12482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12484 $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'
12486 hardcode_libdir_flag_spec_CXX='-R$libdir'
12487 hardcode_shlibpath_var_CXX=no
12488 case $host_os in
12489 solaris2.[0-5] | solaris2.[0-5].*) ;;
12491 # The compiler driver will combine and reorder linker options,
12492 # but understands `-z linker_flag'.
12493 # Supported since Solaris 2.6 (maybe 2.5.1?)
12494 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12496 esac
12497 link_all_deplibs_CXX=yes
12499 output_verbose_link_cmd='func_echo_all'
12501 # Archives containing C++ object files must be created using
12502 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12503 # necessary to make sure instantiated templates are included
12504 # in the archive.
12505 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12507 gcx*)
12508 # Green Hills C++ Compiler
12509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12511 # The C++ compiler must be used to create the archive.
12512 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12515 # GNU C++ compiler with Solaris linker
12516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12517 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12518 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12519 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12520 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12521 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12523 # Commands to make compiler produce verbose output that lists
12524 # what "hidden" libraries, object files and flags are used when
12525 # linking a shared library.
12526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12527 else
12528 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12529 # platform.
12530 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12531 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12534 # Commands to make compiler produce verbose output that lists
12535 # what "hidden" libraries, object files and flags are used when
12536 # linking a shared library.
12537 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12540 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12541 case $host_os in
12542 solaris2.[0-5] | solaris2.[0-5].*) ;;
12544 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12546 esac
12549 esac
12552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12553 no_undefined_flag_CXX='${wl}-z,text'
12554 archive_cmds_need_lc_CXX=no
12555 hardcode_shlibpath_var_CXX=no
12556 runpath_var='LD_RUN_PATH'
12558 case $cc_basename in
12559 CC*)
12560 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12561 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12564 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12567 esac
12570 sysv5* | sco3.2v5* | sco5v6*)
12571 # Note: We can NOT use -z defs as we might desire, because we do not
12572 # link with -lc, and that would cause any symbols used from libc to
12573 # always be unresolved, which means just about no library would
12574 # ever link correctly. If we're not using GNU ld we use -z text
12575 # though, which does catch some bad symbols but isn't as heavy-handed
12576 # as -z defs.
12577 no_undefined_flag_CXX='${wl}-z,text'
12578 allow_undefined_flag_CXX='${wl}-z,nodefs'
12579 archive_cmds_need_lc_CXX=no
12580 hardcode_shlibpath_var_CXX=no
12581 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12582 hardcode_libdir_separator_CXX=':'
12583 link_all_deplibs_CXX=yes
12584 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12585 runpath_var='LD_RUN_PATH'
12587 case $cc_basename in
12588 CC*)
12589 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12590 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12591 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12592 '"$old_archive_cmds_CXX"
12593 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12594 '"$reload_cmds_CXX"
12597 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12600 esac
12603 tandem*)
12604 case $cc_basename in
12605 NCC*)
12606 # NonStop-UX NCC 3.20
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12614 esac
12617 vxworks*)
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12626 esac
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12629 $as_echo "$ld_shlibs_CXX" >&6; }
12630 test "$ld_shlibs_CXX" = no && can_build_shared=no
12632 GCC_CXX="$GXX"
12633 LD_CXX="$LD"
12635 ## CAVEAT EMPTOR:
12636 ## There is no encapsulation within the following macros, do not change
12637 ## the running order or otherwise move them around unless you know exactly
12638 ## what you are doing...
12639 # Dependencies to place before and after the object being linked:
12640 predep_objects_CXX=
12641 postdep_objects_CXX=
12642 predeps_CXX=
12643 postdeps_CXX=
12644 compiler_lib_search_path_CXX=
12646 cat > conftest.$ac_ext <<_LT_EOF
12647 class Foo
12649 public:
12650 Foo (void) { a = 0; }
12651 private:
12652 int a;
12654 _LT_EOF
12656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12657 (eval $ac_compile) 2>&5
12658 ac_status=$?
12659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12660 test $ac_status = 0; }; then
12661 # Parse the compiler output and extract the necessary
12662 # objects, libraries and library flags.
12664 # Sentinel used to keep track of whether or not we are before
12665 # the conftest object file.
12666 pre_test_object_deps_done=no
12668 for p in `eval "$output_verbose_link_cmd"`; do
12669 case $p in
12671 -L* | -R* | -l*)
12672 # Some compilers place space between "-{L,R}" and the path.
12673 # Remove the space.
12674 if test $p = "-L" ||
12675 test $p = "-R"; then
12676 prev=$p
12677 continue
12678 else
12679 prev=
12682 if test "$pre_test_object_deps_done" = no; then
12683 case $p in
12684 -L* | -R*)
12685 # Internal compiler library paths should come after those
12686 # provided the user. The postdeps already come after the
12687 # user supplied libs so there is no need to process them.
12688 if test -z "$compiler_lib_search_path_CXX"; then
12689 compiler_lib_search_path_CXX="${prev}${p}"
12690 else
12691 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12694 # The "-l" case would never come before the object being
12695 # linked, so don't bother handling this case.
12696 esac
12697 else
12698 if test -z "$postdeps_CXX"; then
12699 postdeps_CXX="${prev}${p}"
12700 else
12701 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12706 *.$objext)
12707 # This assumes that the test object file only shows up
12708 # once in the compiler output.
12709 if test "$p" = "conftest.$objext"; then
12710 pre_test_object_deps_done=yes
12711 continue
12714 if test "$pre_test_object_deps_done" = no; then
12715 if test -z "$predep_objects_CXX"; then
12716 predep_objects_CXX="$p"
12717 else
12718 predep_objects_CXX="$predep_objects_CXX $p"
12720 else
12721 if test -z "$postdep_objects_CXX"; then
12722 postdep_objects_CXX="$p"
12723 else
12724 postdep_objects_CXX="$postdep_objects_CXX $p"
12729 *) ;; # Ignore the rest.
12731 esac
12732 done
12734 # Clean up.
12735 rm -f a.out a.exe
12736 else
12737 echo "libtool.m4: error: problem compiling CXX test program"
12740 $RM -f confest.$objext
12742 # PORTME: override above test on systems where it is broken
12743 case $host_os in
12744 interix[3-9]*)
12745 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12746 # hack all around it, let's just trust "g++" to DTRT.
12747 predep_objects_CXX=
12748 postdep_objects_CXX=
12749 postdeps_CXX=
12752 linux*)
12753 case `$CC -V 2>&1 | sed 5q` in
12754 *Sun\ C*)
12755 # Sun C++ 5.9
12757 # The more standards-conforming stlport4 library is
12758 # incompatible with the Cstd library. Avoid specifying
12759 # it if it's in CXXFLAGS. Ignore libCrun as
12760 # -library=stlport4 depends on it.
12761 case " $CXX $CXXFLAGS " in
12762 *" -library=stlport4 "*)
12763 solaris_use_stlport4=yes
12765 esac
12767 if test "$solaris_use_stlport4" != yes; then
12768 postdeps_CXX='-library=Cstd -library=Crun'
12771 esac
12774 solaris*)
12775 case $cc_basename in
12776 CC*)
12777 # The more standards-conforming stlport4 library is
12778 # incompatible with the Cstd library. Avoid specifying
12779 # it if it's in CXXFLAGS. Ignore libCrun as
12780 # -library=stlport4 depends on it.
12781 case " $CXX $CXXFLAGS " in
12782 *" -library=stlport4 "*)
12783 solaris_use_stlport4=yes
12785 esac
12787 # Adding this requires a known-good setup of shared libraries for
12788 # Sun compiler versions before 5.6, else PIC objects from an old
12789 # archive will be linked into the output, leading to subtle bugs.
12790 if test "$solaris_use_stlport4" != yes; then
12791 postdeps_CXX='-library=Cstd -library=Crun'
12794 esac
12796 esac
12799 case " $postdeps_CXX " in
12800 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12801 esac
12802 compiler_lib_search_dirs_CXX=
12803 if test -n "${compiler_lib_search_path_CXX}"; then
12804 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12837 lt_prog_compiler_wl_CXX=
12838 lt_prog_compiler_pic_CXX=
12839 lt_prog_compiler_static_CXX=
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12842 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12844 # C++ specific cases for pic, static, wl, etc.
12845 if test "$GXX" = yes; then
12846 lt_prog_compiler_wl_CXX='-Wl,'
12847 lt_prog_compiler_static_CXX='-static'
12849 case $host_os in
12850 aix*)
12851 # All AIX code is PIC.
12852 if test "$host_cpu" = ia64; then
12853 # AIX 5 now supports IA64 processor
12854 lt_prog_compiler_static_CXX='-Bstatic'
12856 lt_prog_compiler_pic_CXX='-fPIC'
12859 amigaos*)
12860 case $host_cpu in
12861 powerpc)
12862 # see comment about AmigaOS4 .so support
12863 lt_prog_compiler_pic_CXX='-fPIC'
12865 m68k)
12866 # FIXME: we need at least 68020 code to build shared libraries, but
12867 # adding the `-m68020' flag to GCC prevents building anything better,
12868 # like `-m68040'.
12869 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12871 esac
12874 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12875 # PIC is the default for these OSes.
12877 mingw* | cygwin* | os2* | pw32* | cegcc*)
12878 # This hack is so that the source file can tell whether it is being
12879 # built for inclusion in a dll (and should export symbols for example).
12880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12881 # (--disable-auto-import) libraries
12882 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12884 darwin* | rhapsody*)
12885 # PIC is the default on this platform
12886 # Common symbols not allowed in MH_DYLIB files
12887 lt_prog_compiler_pic_CXX='-fno-common'
12889 *djgpp*)
12890 # DJGPP does not support shared libraries at all
12891 lt_prog_compiler_pic_CXX=
12893 haiku*)
12894 # PIC is the default for Haiku.
12895 # The "-static" flag exists, but is broken.
12896 lt_prog_compiler_static_CXX=
12898 interix[3-9]*)
12899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12900 # Instead, we relocate shared libraries at runtime.
12902 sysv4*MP*)
12903 if test -d /usr/nec; then
12904 lt_prog_compiler_pic_CXX=-Kconform_pic
12907 hpux*)
12908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12910 # sets the default TLS model and affects inlining.
12911 case $host_cpu in
12912 hppa*64*)
12915 lt_prog_compiler_pic_CXX='-fPIC'
12917 esac
12919 *qnx* | *nto*)
12920 # QNX uses GNU C++, but need to define -shared option too, otherwise
12921 # it will coredump.
12922 lt_prog_compiler_pic_CXX='-fPIC -shared'
12925 lt_prog_compiler_pic_CXX='-fPIC'
12927 esac
12928 else
12929 case $host_os in
12930 aix[4-9]*)
12931 # All AIX code is PIC.
12932 if test "$host_cpu" = ia64; then
12933 # AIX 5 now supports IA64 processor
12934 lt_prog_compiler_static_CXX='-Bstatic'
12935 else
12936 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12939 chorus*)
12940 case $cc_basename in
12941 cxch68*)
12942 # Green Hills C++ Compiler
12943 # _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"
12945 esac
12947 dgux*)
12948 case $cc_basename in
12949 ec++*)
12950 lt_prog_compiler_pic_CXX='-KPIC'
12952 ghcx*)
12953 # Green Hills C++ Compiler
12954 lt_prog_compiler_pic_CXX='-pic'
12958 esac
12960 freebsd* | dragonfly*)
12961 # FreeBSD uses GNU C++
12963 hpux9* | hpux10* | hpux11*)
12964 case $cc_basename in
12965 CC*)
12966 lt_prog_compiler_wl_CXX='-Wl,'
12967 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12968 if test "$host_cpu" != ia64; then
12969 lt_prog_compiler_pic_CXX='+Z'
12972 aCC*)
12973 lt_prog_compiler_wl_CXX='-Wl,'
12974 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12975 case $host_cpu in
12976 hppa*64*|ia64*)
12977 # +Z the default
12980 lt_prog_compiler_pic_CXX='+Z'
12982 esac
12986 esac
12988 interix*)
12989 # This is c89, which is MS Visual C++ (no shared libs)
12990 # Anyone wants to do a port?
12992 irix5* | irix6* | nonstopux*)
12993 case $cc_basename in
12994 CC*)
12995 lt_prog_compiler_wl_CXX='-Wl,'
12996 lt_prog_compiler_static_CXX='-non_shared'
12997 # CC pic flag -KPIC is the default.
13001 esac
13003 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13004 case $cc_basename in
13005 KCC*)
13006 # KAI C++ Compiler
13007 lt_prog_compiler_wl_CXX='--backend -Wl,'
13008 lt_prog_compiler_pic_CXX='-fPIC'
13010 ecpc* )
13011 # old Intel C++ for x86_64 which still supported -KPIC.
13012 lt_prog_compiler_wl_CXX='-Wl,'
13013 lt_prog_compiler_pic_CXX='-KPIC'
13014 lt_prog_compiler_static_CXX='-static'
13016 icpc* )
13017 # Intel C++, used to be incompatible with GCC.
13018 # ICC 10 doesn't accept -KPIC any more.
13019 lt_prog_compiler_wl_CXX='-Wl,'
13020 lt_prog_compiler_pic_CXX='-fPIC'
13021 lt_prog_compiler_static_CXX='-static'
13023 pgCC* | pgcpp*)
13024 # Portland Group C++ compiler
13025 lt_prog_compiler_wl_CXX='-Wl,'
13026 lt_prog_compiler_pic_CXX='-fpic'
13027 lt_prog_compiler_static_CXX='-Bstatic'
13029 cxx*)
13030 # Compaq C++
13031 # Make sure the PIC flag is empty. It appears that all Alpha
13032 # Linux and Compaq Tru64 Unix objects are PIC.
13033 lt_prog_compiler_pic_CXX=
13034 lt_prog_compiler_static_CXX='-non_shared'
13036 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13037 # IBM XL 8.0, 9.0 on PPC and BlueGene
13038 lt_prog_compiler_wl_CXX='-Wl,'
13039 lt_prog_compiler_pic_CXX='-qpic'
13040 lt_prog_compiler_static_CXX='-qstaticlink'
13043 case `$CC -V 2>&1 | sed 5q` in
13044 *Sun\ C*)
13045 # Sun C++ 5.9
13046 lt_prog_compiler_pic_CXX='-KPIC'
13047 lt_prog_compiler_static_CXX='-Bstatic'
13048 lt_prog_compiler_wl_CXX='-Qoption ld '
13050 esac
13052 esac
13054 lynxos*)
13056 m88k*)
13058 mvs*)
13059 case $cc_basename in
13060 cxx*)
13061 lt_prog_compiler_pic_CXX='-W c,exportall'
13065 esac
13067 netbsd*)
13069 *qnx* | *nto*)
13070 # QNX uses GNU C++, but need to define -shared option too, otherwise
13071 # it will coredump.
13072 lt_prog_compiler_pic_CXX='-fPIC -shared'
13074 osf3* | osf4* | osf5*)
13075 case $cc_basename in
13076 KCC*)
13077 lt_prog_compiler_wl_CXX='--backend -Wl,'
13079 RCC*)
13080 # Rational C++ 2.4.1
13081 lt_prog_compiler_pic_CXX='-pic'
13083 cxx*)
13084 # Digital/Compaq C++
13085 lt_prog_compiler_wl_CXX='-Wl,'
13086 # Make sure the PIC flag is empty. It appears that all Alpha
13087 # Linux and Compaq Tru64 Unix objects are PIC.
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX='-non_shared'
13093 esac
13095 psos*)
13097 solaris*)
13098 case $cc_basename in
13099 CC*)
13100 # Sun C++ 4.2, 5.x and Centerline C++
13101 lt_prog_compiler_pic_CXX='-KPIC'
13102 lt_prog_compiler_static_CXX='-Bstatic'
13103 lt_prog_compiler_wl_CXX='-Qoption ld '
13105 gcx*)
13106 # Green Hills C++ Compiler
13107 lt_prog_compiler_pic_CXX='-PIC'
13111 esac
13113 sunos4*)
13114 case $cc_basename in
13115 CC*)
13116 # Sun C++ 4.x
13117 lt_prog_compiler_pic_CXX='-pic'
13118 lt_prog_compiler_static_CXX='-Bstatic'
13120 lcc*)
13121 # Lucid
13122 lt_prog_compiler_pic_CXX='-pic'
13126 esac
13128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13129 case $cc_basename in
13130 CC*)
13131 lt_prog_compiler_wl_CXX='-Wl,'
13132 lt_prog_compiler_pic_CXX='-KPIC'
13133 lt_prog_compiler_static_CXX='-Bstatic'
13135 esac
13137 tandem*)
13138 case $cc_basename in
13139 NCC*)
13140 # NonStop-UX NCC 3.20
13141 lt_prog_compiler_pic_CXX='-KPIC'
13145 esac
13147 vxworks*)
13150 lt_prog_compiler_can_build_shared_CXX=no
13152 esac
13155 case $host_os in
13156 # For platforms which do not support PIC, -DPIC is meaningless:
13157 *djgpp*)
13158 lt_prog_compiler_pic_CXX=
13161 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13163 esac
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13165 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13170 # Check to make sure the PIC flag actually works.
13172 if test -n "$lt_prog_compiler_pic_CXX"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13174 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13175 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 lt_cv_prog_compiler_pic_works_CXX=no
13179 ac_outfile=conftest.$ac_objext
13180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13181 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13182 # Insert the option either (1) after the last *FLAGS variable, or
13183 # (2) before a word containing "conftest.", or (3) at the end.
13184 # Note that $ac_compile itself does not contain backslashes and begins
13185 # with a dollar sign (not a hyphen), so the echo should work correctly.
13186 # The option is referenced via a variable to avoid confusing sed.
13187 lt_compile=`echo "$ac_compile" | $SED \
13188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13190 -e 's:$: $lt_compiler_flag:'`
13191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13192 (eval "$lt_compile" 2>conftest.err)
13193 ac_status=$?
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 if (exit $ac_status) && test -s "$ac_outfile"; then
13197 # The compiler can only warn and ignore the option if not recognized
13198 # So say no if there are warnings other than the usual output.
13199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13202 lt_cv_prog_compiler_pic_works_CXX=yes
13205 $RM conftest*
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13209 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13211 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13212 case $lt_prog_compiler_pic_CXX in
13213 "" | " "*) ;;
13214 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13215 esac
13216 else
13217 lt_prog_compiler_pic_CXX=
13218 lt_prog_compiler_can_build_shared_CXX=no
13226 # Check to make sure the static flag actually works.
13228 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13230 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13231 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 lt_cv_prog_compiler_static_works_CXX=no
13235 save_LDFLAGS="$LDFLAGS"
13236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13239 # The linker can only warn and ignore the option if not recognized
13240 # So say no if there are warnings
13241 if test -s conftest.err; then
13242 # Append any errors to the config.log.
13243 cat conftest.err 1>&5
13244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13246 if diff conftest.exp conftest.er2 >/dev/null; then
13247 lt_cv_prog_compiler_static_works_CXX=yes
13249 else
13250 lt_cv_prog_compiler_static_works_CXX=yes
13253 $RM -r conftest*
13254 LDFLAGS="$save_LDFLAGS"
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13258 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13260 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13262 else
13263 lt_prog_compiler_static_CXX=
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13271 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 lt_cv_prog_compiler_c_o_CXX=no
13275 $RM -r conftest 2>/dev/null
13276 mkdir conftest
13277 cd conftest
13278 mkdir out
13279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13281 lt_compiler_flag="-o out/conftest2.$ac_objext"
13282 # Insert the option either (1) after the last *FLAGS variable, or
13283 # (2) before a word containing "conftest.", or (3) at the end.
13284 # Note that $ac_compile itself does not contain backslashes and begins
13285 # with a dollar sign (not a hyphen), so the echo should work correctly.
13286 lt_compile=`echo "$ac_compile" | $SED \
13287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13289 -e 's:$: $lt_compiler_flag:'`
13290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13291 (eval "$lt_compile" 2>out/conftest.err)
13292 ac_status=$?
13293 cat out/conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13296 then
13297 # The compiler can only warn and ignore the option if not recognized
13298 # So say no if there are warnings
13299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13302 lt_cv_prog_compiler_c_o_CXX=yes
13305 chmod u+w . 2>&5
13306 $RM conftest*
13307 # SGI C++ compiler will create directory out/ii_files/ for
13308 # template instantiation
13309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13310 $RM out/* && rmdir out
13311 cd ..
13312 $RM -r conftest
13313 $RM conftest*
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13317 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13323 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 lt_cv_prog_compiler_c_o_CXX=no
13327 $RM -r conftest 2>/dev/null
13328 mkdir conftest
13329 cd conftest
13330 mkdir out
13331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13333 lt_compiler_flag="-o out/conftest2.$ac_objext"
13334 # Insert the option either (1) after the last *FLAGS variable, or
13335 # (2) before a word containing "conftest.", or (3) at the end.
13336 # Note that $ac_compile itself does not contain backslashes and begins
13337 # with a dollar sign (not a hyphen), so the echo should work correctly.
13338 lt_compile=`echo "$ac_compile" | $SED \
13339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13341 -e 's:$: $lt_compiler_flag:'`
13342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13343 (eval "$lt_compile" 2>out/conftest.err)
13344 ac_status=$?
13345 cat out/conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13348 then
13349 # The compiler can only warn and ignore the option if not recognized
13350 # So say no if there are warnings
13351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13354 lt_cv_prog_compiler_c_o_CXX=yes
13357 chmod u+w . 2>&5
13358 $RM conftest*
13359 # SGI C++ compiler will create directory out/ii_files/ for
13360 # template instantiation
13361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13362 $RM out/* && rmdir out
13363 cd ..
13364 $RM -r conftest
13365 $RM conftest*
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13369 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13374 hard_links="nottested"
13375 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13376 # do not overwrite the value of need_locks provided by the user
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13378 $as_echo_n "checking if we can lock with hard links... " >&6; }
13379 hard_links=yes
13380 $RM conftest*
13381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13382 touch conftest.a
13383 ln conftest.a conftest.b 2>&5 || hard_links=no
13384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13386 $as_echo "$hard_links" >&6; }
13387 if test "$hard_links" = no; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13389 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13390 need_locks=warn
13392 else
13393 need_locks=no
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13399 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13401 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13402 case $host_os in
13403 aix[4-9]*)
13404 # If we're using GNU nm, then we don't want the "-C" option.
13405 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13406 # Also, AIX nm treats weak defined symbols like other global defined
13407 # symbols, whereas GNU nm marks them as "W".
13408 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13409 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'
13410 else
13411 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'
13414 pw32*)
13415 export_symbols_cmds_CXX="$ltdll_cmds"
13417 cygwin* | mingw* | cegcc*)
13418 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'
13421 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13423 esac
13424 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13427 $as_echo "$ld_shlibs_CXX" >&6; }
13428 test "$ld_shlibs_CXX" = no && can_build_shared=no
13430 with_gnu_ld_CXX=$with_gnu_ld
13438 # Do we need to explicitly link libc?
13440 case "x$archive_cmds_need_lc_CXX" in
13441 x|xyes)
13442 # Assume -lc should be added
13443 archive_cmds_need_lc_CXX=yes
13445 if test "$enable_shared" = yes && test "$GCC" = yes; then
13446 case $archive_cmds_CXX in
13447 *'~'*)
13448 # FIXME: we may have to deal with multi-command sequences.
13450 '$CC '*)
13451 # Test whether the compiler implicitly links with -lc since on some
13452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13453 # to ld, don't add -lc before -lgcc.
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13456 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 $RM conftest*
13460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13463 (eval $ac_compile) 2>&5
13464 ac_status=$?
13465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13466 test $ac_status = 0; } 2>conftest.err; then
13467 soname=conftest
13468 lib=conftest
13469 libobjs=conftest.$ac_objext
13470 deplibs=
13471 wl=$lt_prog_compiler_wl_CXX
13472 pic_flag=$lt_prog_compiler_pic_CXX
13473 compiler_flags=-v
13474 linker_flags=-v
13475 verstring=
13476 output_objdir=.
13477 libname=conftest
13478 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13479 allow_undefined_flag_CXX=
13480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13481 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13482 ac_status=$?
13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }
13485 then
13486 lt_cv_archive_cmds_need_lc_CXX=no
13487 else
13488 lt_cv_archive_cmds_need_lc_CXX=yes
13490 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13491 else
13492 cat conftest.err 1>&5
13494 $RM conftest*
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13498 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13499 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13501 esac
13504 esac
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13570 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13572 library_names_spec=
13573 libname_spec='lib$name'
13574 soname_spec=
13575 shrext_cmds=".so"
13576 postinstall_cmds=
13577 postuninstall_cmds=
13578 finish_cmds=
13579 finish_eval=
13580 shlibpath_var=
13581 shlibpath_overrides_runpath=unknown
13582 version_type=none
13583 dynamic_linker="$host_os ld.so"
13584 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13585 need_lib_prefix=unknown
13586 hardcode_into_libs=no
13588 # when you set need_version to no, make sure it does not cause -set_version
13589 # flags to be left without arguments
13590 need_version=unknown
13592 case $host_os in
13593 aix3*)
13594 version_type=linux
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13596 shlibpath_var=LIBPATH
13598 # AIX 3 has no versioning support, so we append a major version to the name.
13599 soname_spec='${libname}${release}${shared_ext}$major'
13602 aix[4-9]*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 hardcode_into_libs=yes
13607 if test "$host_cpu" = ia64; then
13608 # AIX 5 supports IA64
13609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13610 shlibpath_var=LD_LIBRARY_PATH
13611 else
13612 # With GCC up to 2.95.x, collect2 would create an import file
13613 # for dependence libraries. The import file would start with
13614 # the line `#! .'. This would cause the generated library to
13615 # depend on `.', always an invalid library. This was fixed in
13616 # development snapshots of GCC prior to 3.0.
13617 case $host_os in
13618 aix4 | aix4.[01] | aix4.[01].*)
13619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13620 echo ' yes '
13621 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13623 else
13624 can_build_shared=no
13627 esac
13628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13629 # soname into executable. Probably we can add versioning support to
13630 # collect2, so additional links can be useful in future.
13631 if test "$aix_use_runtimelinking" = yes; then
13632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13633 # instead of lib<name>.a to let people know that these are not
13634 # typical AIX shared libraries.
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636 else
13637 # We preserve .a as extension for shared libraries through AIX4.2
13638 # and later when we are not doing run time linking.
13639 library_names_spec='${libname}${release}.a $libname.a'
13640 soname_spec='${libname}${release}${shared_ext}$major'
13642 shlibpath_var=LIBPATH
13646 amigaos*)
13647 case $host_cpu in
13648 powerpc)
13649 # Since July 2007 AmigaOS4 officially supports .so libraries.
13650 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653 m68k)
13654 library_names_spec='$libname.ixlibrary $libname.a'
13655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13656 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'
13658 esac
13661 beos*)
13662 library_names_spec='${libname}${shared_ext}'
13663 dynamic_linker="$host_os ld.so"
13664 shlibpath_var=LIBRARY_PATH
13667 bsdi[45]*)
13668 version_type=linux
13669 need_version=no
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13671 soname_spec='${libname}${release}${shared_ext}$major'
13672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13676 # the default ld.so.conf also contains /usr/contrib/lib and
13677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13678 # libtool to hard-code these into programs
13681 cygwin* | mingw* | pw32* | cegcc*)
13682 version_type=windows
13683 shrext_cmds=".dll"
13684 need_version=no
13685 need_lib_prefix=no
13687 case $GCC,$host_os in
13688 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13689 library_names_spec='$libname.dll.a'
13690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13691 postinstall_cmds='base_file=`basename \${file}`~
13692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13693 dldir=$destdir/`dirname \$dlpath`~
13694 test -d \$dldir || mkdir -p \$dldir~
13695 $install_prog $dir/$dlname \$dldir/$dlname~
13696 chmod a+x \$dldir/$dlname~
13697 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13698 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13701 dlpath=$dir/\$dldll~
13702 $RM \$dlpath'
13703 shlibpath_overrides_runpath=yes
13705 case $host_os in
13706 cygwin*)
13707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13708 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13711 mingw* | cegcc*)
13712 # MinGW DLLs use traditional 'lib' prefix
13713 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13715 pw32*)
13716 # pw32 DLLs use 'pw' prefix rather than 'lib'
13717 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13719 esac
13723 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13725 esac
13726 dynamic_linker='Win32 ld.exe'
13727 # FIXME: first we should search . and the directory the executable is in
13728 shlibpath_var=PATH
13731 darwin* | rhapsody*)
13732 dynamic_linker="$host_os dyld"
13733 version_type=darwin
13734 need_lib_prefix=no
13735 need_version=no
13736 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13737 soname_spec='${libname}${release}${major}$shared_ext'
13738 shlibpath_overrides_runpath=yes
13739 shlibpath_var=DYLD_LIBRARY_PATH
13740 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13745 dgux*)
13746 version_type=linux
13747 need_lib_prefix=no
13748 need_version=no
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 shlibpath_var=LD_LIBRARY_PATH
13754 freebsd* | dragonfly*)
13755 # DragonFly does not have aout. When/if they implement a new
13756 # versioning mechanism, adjust this.
13757 if test -x /usr/bin/objformat; then
13758 objformat=`/usr/bin/objformat`
13759 else
13760 case $host_os in
13761 freebsd[23].*) objformat=aout ;;
13762 *) objformat=elf ;;
13763 esac
13765 version_type=freebsd-$objformat
13766 case $version_type in
13767 freebsd-elf*)
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13769 need_version=no
13770 need_lib_prefix=no
13772 freebsd-*)
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13774 need_version=yes
13776 esac
13777 shlibpath_var=LD_LIBRARY_PATH
13778 case $host_os in
13779 freebsd2.*)
13780 shlibpath_overrides_runpath=yes
13782 freebsd3.[01]* | freebsdelf3.[01]*)
13783 shlibpath_overrides_runpath=yes
13784 hardcode_into_libs=yes
13786 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13787 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13788 shlibpath_overrides_runpath=no
13789 hardcode_into_libs=yes
13791 *) # from 4.6 on, and DragonFly
13792 shlibpath_overrides_runpath=yes
13793 hardcode_into_libs=yes
13795 esac
13798 gnu*)
13799 version_type=linux
13800 need_lib_prefix=no
13801 need_version=no
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13803 soname_spec='${libname}${release}${shared_ext}$major'
13804 shlibpath_var=LD_LIBRARY_PATH
13805 hardcode_into_libs=yes
13808 haiku*)
13809 version_type=linux
13810 need_lib_prefix=no
13811 need_version=no
13812 dynamic_linker="$host_os runtime_loader"
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13814 soname_spec='${libname}${release}${shared_ext}$major'
13815 shlibpath_var=LIBRARY_PATH
13816 shlibpath_overrides_runpath=yes
13817 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13818 hardcode_into_libs=yes
13821 hpux9* | hpux10* | hpux11*)
13822 # Give a soname corresponding to the major version so that dld.sl refuses to
13823 # link against other versions.
13824 version_type=sunos
13825 need_lib_prefix=no
13826 need_version=no
13827 case $host_cpu in
13828 ia64*)
13829 shrext_cmds='.so'
13830 hardcode_into_libs=yes
13831 dynamic_linker="$host_os dld.so"
13832 shlibpath_var=LD_LIBRARY_PATH
13833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 if test "X$HPUX_IA64_MODE" = X32; then
13837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13838 else
13839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13843 hppa*64*)
13844 shrext_cmds='.sl'
13845 hardcode_into_libs=yes
13846 dynamic_linker="$host_os dld.sl"
13847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13855 shrext_cmds='.sl'
13856 dynamic_linker="$host_os dld.sl"
13857 shlibpath_var=SHLIB_PATH
13858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13860 soname_spec='${libname}${release}${shared_ext}$major'
13862 esac
13863 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13864 postinstall_cmds='chmod 555 $lib'
13865 # or fails outright, so override atomically:
13866 install_override_mode=555
13869 interix[3-9]*)
13870 version_type=linux
13871 need_lib_prefix=no
13872 need_version=no
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=no
13878 hardcode_into_libs=yes
13881 irix5* | irix6* | nonstopux*)
13882 case $host_os in
13883 nonstopux*) version_type=nonstopux ;;
13885 if test "$lt_cv_prog_gnu_ld" = yes; then
13886 version_type=linux
13887 else
13888 version_type=irix
13889 fi ;;
13890 esac
13891 need_lib_prefix=no
13892 need_version=no
13893 soname_spec='${libname}${release}${shared_ext}$major'
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13895 case $host_os in
13896 irix5* | nonstopux*)
13897 libsuff= shlibsuff=
13900 case $LD in # libtool.m4 will add one of these switches to LD
13901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13902 libsuff= shlibsuff= libmagic=32-bit;;
13903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13904 libsuff=32 shlibsuff=N32 libmagic=N32;;
13905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13907 *) libsuff= shlibsuff= libmagic=never-match;;
13908 esac
13910 esac
13911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13912 shlibpath_overrides_runpath=no
13913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13915 hardcode_into_libs=yes
13918 # No shared lib support for Linux oldld, aout, or coff.
13919 linux*oldld* | linux*aout* | linux*coff*)
13920 dynamic_linker=no
13923 # This must be Linux ELF.
13924 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13925 version_type=linux
13926 need_lib_prefix=no
13927 need_version=no
13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13929 soname_spec='${libname}${release}${shared_ext}$major'
13930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13931 shlibpath_var=LD_LIBRARY_PATH
13932 shlibpath_overrides_runpath=no
13934 # Some binutils ld are patched to set DT_RUNPATH
13935 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 lt_cv_shlibpath_overrides_runpath=no
13939 save_LDFLAGS=$LDFLAGS
13940 save_libdir=$libdir
13941 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13942 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13947 main ()
13951 return 0;
13953 _ACEOF
13954 if ac_fn_cxx_try_link "$LINENO"; then :
13955 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13956 lt_cv_shlibpath_overrides_runpath=yes
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LDFLAGS=$save_LDFLAGS
13962 libdir=$save_libdir
13966 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13968 # This implies no fast_install, which is unacceptable.
13969 # Some rework will be needed to allow for fast_install
13970 # before this can be enabled.
13971 hardcode_into_libs=yes
13973 # Append ld.so.conf contents to the search path
13974 if test -f /etc/ld.so.conf; then
13975 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' ' '`
13976 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13979 # We used to test for /lib/ld.so.1 and disable shared libraries on
13980 # powerpc, because MkLinux only supported shared libraries with the
13981 # GNU dynamic linker. Since this was broken with cross compilers,
13982 # most powerpc-linux boxes support dynamic linking these days and
13983 # people can always --disable-shared, the test was removed, and we
13984 # assume the GNU/Linux dynamic linker is in use.
13985 dynamic_linker='GNU/Linux ld.so'
13988 netbsd*)
13989 version_type=sunos
13990 need_lib_prefix=no
13991 need_version=no
13992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13995 dynamic_linker='NetBSD (a.out) ld.so'
13996 else
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 dynamic_linker='NetBSD ld.elf_so'
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=yes
14003 hardcode_into_libs=yes
14006 newsos6)
14007 version_type=linux
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 shlibpath_overrides_runpath=yes
14013 *nto* | *qnx*)
14014 version_type=qnx
14015 need_lib_prefix=no
14016 need_version=no
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=no
14021 hardcode_into_libs=yes
14022 dynamic_linker='ldqnx.so'
14025 openbsd*)
14026 version_type=sunos
14027 sys_lib_dlsearch_path_spec="/usr/lib"
14028 need_lib_prefix=no
14029 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14030 case $host_os in
14031 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14032 *) need_version=no ;;
14033 esac
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14038 case $host_os in
14039 openbsd2.[89] | openbsd2.[89].*)
14040 shlibpath_overrides_runpath=no
14043 shlibpath_overrides_runpath=yes
14045 esac
14046 else
14047 shlibpath_overrides_runpath=yes
14051 os2*)
14052 libname_spec='$name'
14053 shrext_cmds=".dll"
14054 need_lib_prefix=no
14055 library_names_spec='$libname${shared_ext} $libname.a'
14056 dynamic_linker='OS/2 ld.exe'
14057 shlibpath_var=LIBPATH
14060 osf3* | osf4* | osf5*)
14061 version_type=osf
14062 need_lib_prefix=no
14063 need_version=no
14064 soname_spec='${libname}${release}${shared_ext}$major'
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 shlibpath_var=LD_LIBRARY_PATH
14067 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14068 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14071 rdos*)
14072 dynamic_linker=no
14075 solaris*)
14076 version_type=linux
14077 need_lib_prefix=no
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath=yes
14083 hardcode_into_libs=yes
14084 # ldd complains unless libraries are executable
14085 postinstall_cmds='chmod +x $lib'
14088 sunos4*)
14089 version_type=sunos
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14091 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath=yes
14094 if test "$with_gnu_ld" = yes; then
14095 need_lib_prefix=no
14097 need_version=yes
14100 sysv4 | sysv4.3*)
14101 version_type=linux
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 soname_spec='${libname}${release}${shared_ext}$major'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 case $host_vendor in
14106 sni)
14107 shlibpath_overrides_runpath=no
14108 need_lib_prefix=no
14109 runpath_var=LD_RUN_PATH
14111 siemens)
14112 need_lib_prefix=no
14114 motorola)
14115 need_lib_prefix=no
14116 need_version=no
14117 shlibpath_overrides_runpath=no
14118 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14120 esac
14123 sysv4*MP*)
14124 if test -d /usr/nec ;then
14125 version_type=linux
14126 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14127 soname_spec='$libname${shared_ext}.$major'
14128 shlibpath_var=LD_LIBRARY_PATH
14132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14133 version_type=freebsd-elf
14134 need_lib_prefix=no
14135 need_version=no
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=yes
14140 hardcode_into_libs=yes
14141 if test "$with_gnu_ld" = yes; then
14142 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14143 else
14144 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14145 case $host_os in
14146 sco3.2v5*)
14147 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14149 esac
14151 sys_lib_dlsearch_path_spec='/usr/lib'
14154 tpf*)
14155 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14156 version_type=linux
14157 need_lib_prefix=no
14158 need_version=no
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 shlibpath_overrides_runpath=no
14162 hardcode_into_libs=yes
14165 uts4*)
14166 version_type=linux
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14173 dynamic_linker=no
14175 esac
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14177 $as_echo "$dynamic_linker" >&6; }
14178 test "$dynamic_linker" = no && can_build_shared=no
14180 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14181 if test "$GCC" = yes; then
14182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14185 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14186 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14188 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14189 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14230 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14231 hardcode_action_CXX=
14232 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14233 test -n "$runpath_var_CXX" ||
14234 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14236 # We can hardcode non-existent directories.
14237 if test "$hardcode_direct_CXX" != no &&
14238 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14239 # have to relink, otherwise we might link with an installed library
14240 # when we should be linking with a yet-to-be-installed one
14241 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14242 test "$hardcode_minus_L_CXX" != no; then
14243 # Linking always hardcodes the temporary library directory.
14244 hardcode_action_CXX=relink
14245 else
14246 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14247 hardcode_action_CXX=immediate
14249 else
14250 # We cannot hardcode anything, or else we can only hardcode existing
14251 # directories.
14252 hardcode_action_CXX=unsupported
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14255 $as_echo "$hardcode_action_CXX" >&6; }
14257 if test "$hardcode_action_CXX" = relink ||
14258 test "$inherit_rpath_CXX" = yes; then
14259 # Fast installation is not supported
14260 enable_fast_install=no
14261 elif test "$shlibpath_overrides_runpath" = yes ||
14262 test "$enable_shared" = no; then
14263 # Fast installation is not necessary
14264 enable_fast_install=needless
14273 fi # test -n "$compiler"
14275 CC=$lt_save_CC
14276 LDCXX=$LD
14277 LD=$lt_save_LD
14278 GCC=$lt_save_GCC
14279 with_gnu_ld=$lt_save_with_gnu_ld
14280 lt_cv_path_LDCXX=$lt_cv_path_LD
14281 lt_cv_path_LD=$lt_save_path_LD
14282 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14283 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14284 fi # test "$_lt_caught_CXX_error" != yes
14286 ac_ext=c
14287 ac_cpp='$CPP $CPPFLAGS'
14288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294 visibility=
14295 if test "$GXX" = yes; then
14296 visibility=-fvisibility=hidden
14300 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14301 if test "x$ac_cv_have_decl_basename" = x""yes; then :
14302 ac_have_decl=1
14303 else
14304 ac_have_decl=0
14307 cat >>confdefs.h <<_ACEOF
14308 #define HAVE_DECL_BASENAME $ac_have_decl
14309 _ACEOF
14313 get_gcc_base_ver="cat"
14315 # Check whether --with-gcc-major-version-only was given.
14316 if test "${with_gcc_major_version_only+set}" = set; then :
14317 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14318 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
14326 if test x$with_gcc_major_version_only = xyes ; then
14327 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14328 else
14329 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14332 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/../gcc/BASE-VER'
14335 ac_ext=c
14336 ac_cpp='$CPP $CPPFLAGS'
14337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14341 WARN_FLAGS=
14342 save_CFLAGS="$CFLAGS"
14343 for real_option in -W -Wall; do
14344 # Do the check with the no- prefix removed since gcc silently
14345 # accepts any -Wno-* option on purpose
14346 case $real_option in
14347 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14348 *) option=$real_option ;;
14349 esac
14350 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14353 $as_echo_n "checking whether $CC supports $option... " >&6; }
14354 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 CFLAGS="$option"
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14362 main ()
14366 return 0;
14368 _ACEOF
14369 if ac_fn_c_try_compile "$LINENO"; then :
14370 eval "$as_acx_Woption=yes"
14371 else
14372 eval "$as_acx_Woption=no"
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 eval ac_res=\$$as_acx_Woption
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14379 $as_echo "$ac_res" >&6; }
14380 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14381 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14383 done
14384 CFLAGS="$save_CFLAGS"
14385 ac_ext=c
14386 ac_cpp='$CPP $CPPFLAGS'
14387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393 ac_ext=c
14394 ac_cpp='$CPP $CPPFLAGS'
14395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14399 WERROR=
14400 # Check whether --enable-werror-always was given.
14401 if test "${enable_werror_always+set}" = set; then :
14402 enableval=$enable_werror_always;
14403 else
14404 enable_werror_always=no
14407 if test $enable_werror_always = yes; then :
14408 WERROR="$WERROR${WERROR:+ }-Werror"
14411 ac_ext=c
14412 ac_cpp='$CPP $CPPFLAGS'
14413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14421 libsuffix=
14422 if test "$GXX" = yes; then
14423 libsuffix=`$CXX -print-multi-os-directory`
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14428 $as_echo_n "checking for socket libraries... " >&6; }
14429 if test "${libcc1_cv_lib_sockets+set}" = set; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 libcc1_cv_lib_sockets=
14433 libcc1_check_both=no
14434 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14435 if test "x$ac_cv_func_connect" = x""yes; then :
14436 libcc1_check_socket=no
14437 else
14438 libcc1_check_socket=yes
14441 if test "$libcc1_check_socket" = "yes"; then
14442 unset ac_cv_func_connect
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14444 $as_echo_n "checking for main in -lsocket... " >&6; }
14445 if test "${ac_cv_lib_socket_main+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 ac_check_lib_save_LIBS=$LIBS
14449 LIBS="-lsocket $LIBS"
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14455 main ()
14457 return main ();
14459 return 0;
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"; then :
14463 ac_cv_lib_socket_main=yes
14464 else
14465 ac_cv_lib_socket_main=no
14467 rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_check_lib_save_LIBS
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14472 $as_echo "$ac_cv_lib_socket_main" >&6; }
14473 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14474 libcc1_cv_lib_sockets="-lsocket"
14475 else
14476 libcc1_check_both=yes
14480 if test "$libcc1_check_both" = "yes"; then
14481 libcc1_old_libs=$LIBS
14482 LIBS="$LIBS -lsocket -lnsl"
14483 unset ac_cv_func_accept
14484 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14485 if test "x$ac_cv_func_accept" = x""yes; then :
14486 libcc1_check_nsl=no
14487 libcc1_cv_lib_sockets="-lsocket -lnsl"
14490 unset ac_cv_func_accept
14491 LIBS=$libcc1_old_libs
14493 unset ac_cv_func_gethostbyname
14494 libcc1_old_libs="$LIBS"
14495 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14496 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14498 else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14500 $as_echo_n "checking for main in -lnsl... " >&6; }
14501 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14503 else
14504 ac_check_lib_save_LIBS=$LIBS
14505 LIBS="-lnsl $LIBS"
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14511 main ()
14513 return main ();
14515 return 0;
14517 _ACEOF
14518 if ac_fn_c_try_link "$LINENO"; then :
14519 ac_cv_lib_nsl_main=yes
14520 else
14521 ac_cv_lib_nsl_main=no
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14525 LIBS=$ac_check_lib_save_LIBS
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14528 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14529 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14530 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14535 unset ac_cv_func_gethostbyname
14536 LIBS=$libcc1_old_libs
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14540 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14541 LIBS="$LIBS $libcc1_cv_lib_sockets"
14543 # If any of these functions are missing, simply don't bother building
14544 # this plugin.
14545 # Check for plugin support
14546 # Check whether --enable-plugin was given.
14547 if test "${enable_plugin+set}" = set; then :
14548 enableval=$enable_plugin; enable_plugin=$enableval
14549 else
14550 enable_plugin=yes; default_plugin=yes
14554 pluginlibs=
14556 case "${host}" in
14557 *-*-darwin*)
14558 if test x$build = x$host; then
14559 export_sym_check="nm${exeext} -g"
14560 elif test x$host = x$target; then
14561 export_sym_check="$gcc_cv_nm -g"
14562 else
14563 export_sym_check=
14567 if test x$build = x$host; then
14568 export_sym_check="objdump${exeext} -T"
14569 elif test x$host = x$target; then
14570 export_sym_check="$gcc_cv_objdump -T"
14571 else
14572 export_sym_check=
14575 esac
14577 if test x"$enable_plugin" = x"yes"; then
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14580 $as_echo_n "checking for exported symbols... " >&6; }
14581 if test "x$export_sym_check" != x; then
14582 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14583 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14584 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14585 : # No need to use a flag
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14587 $as_echo "yes" >&6; }
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14590 $as_echo "yes" >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14592 $as_echo_n "checking for -rdynamic... " >&6; }
14593 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14594 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14595 plugin_rdynamic=yes
14596 pluginlibs="-rdynamic"
14597 else
14598 plugin_rdynamic=no
14599 enable_plugin=no
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14602 $as_echo "$plugin_rdynamic" >&6; }
14604 else
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14606 $as_echo "unable to check" >&6; }
14609 # Check -ldl
14610 saved_LIBS="$LIBS"
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14612 $as_echo_n "checking for library containing dlopen... " >&6; }
14613 if test "${ac_cv_search_dlopen+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 ac_func_search_save_LIBS=$LIBS
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14620 /* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623 #ifdef __cplusplus
14624 extern "C"
14625 #endif
14626 char dlopen ();
14628 main ()
14630 return dlopen ();
14632 return 0;
14634 _ACEOF
14635 for ac_lib in '' dl; do
14636 if test -z "$ac_lib"; then
14637 ac_res="none required"
14638 else
14639 ac_res=-l$ac_lib
14640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14642 if ac_fn_c_try_link "$LINENO"; then :
14643 ac_cv_search_dlopen=$ac_res
14645 rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext
14647 if test "${ac_cv_search_dlopen+set}" = set; then :
14648 break
14650 done
14651 if test "${ac_cv_search_dlopen+set}" = set; then :
14653 else
14654 ac_cv_search_dlopen=no
14656 rm conftest.$ac_ext
14657 LIBS=$ac_func_search_save_LIBS
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14660 $as_echo "$ac_cv_search_dlopen" >&6; }
14661 ac_res=$ac_cv_search_dlopen
14662 if test "$ac_res" != no; then :
14663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14667 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14668 pluginlibs="$pluginlibs -ldl"
14670 LIBS="$saved_LIBS"
14672 # Check that we can build shared objects with -fPIC -shared
14673 saved_LDFLAGS="$LDFLAGS"
14674 saved_CFLAGS="$CFLAGS"
14675 case "${host}" in
14676 *-*-darwin*)
14677 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14678 CFLAGS="$CFLAGS -fPIC"
14679 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14682 CFLAGS="$CFLAGS -fPIC"
14683 LDFLAGS="$LDFLAGS -fPIC -shared"
14685 esac
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14687 $as_echo_n "checking for -fPIC -shared... " >&6; }
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 extern int X;
14692 main ()
14694 return X == 0;
14696 return 0;
14698 _ACEOF
14699 if ac_fn_c_try_link "$LINENO"; then :
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14701 $as_echo "yes" >&6; }; have_pic_shared=yes
14702 else
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }; have_pic_shared=no
14706 rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14709 pluginlibs=
14710 enable_plugin=no
14712 LDFLAGS="$saved_LDFLAGS"
14713 CFLAGS="$saved_CFLAGS"
14715 # If plugin support had been requested but not available, fail.
14716 if test x"$enable_plugin" = x"no" ; then
14717 if test x"$default_plugin" != x"yes"; then
14718 as_fn_error "
14719 Building GCC with plugin support requires a host that supports
14720 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14725 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14726 if test "x$ac_cv_func_socketpair" = x""yes; then :
14728 else
14729 enable_plugin=no
14732 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14733 if test "x$ac_cv_func_select" = x""yes; then :
14735 else
14736 enable_plugin=no
14739 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14740 if test "x$ac_cv_func_fork" = x""yes; then :
14742 else
14743 enable_plugin=no
14746 if test $enable_plugin = yes; then
14747 ENABLE_PLUGIN_TRUE=
14748 ENABLE_PLUGIN_FALSE='#'
14749 else
14750 ENABLE_PLUGIN_TRUE='#'
14751 ENABLE_PLUGIN_FALSE=
14755 ac_config_files="$ac_config_files Makefile"
14757 cat >confcache <<\_ACEOF
14758 # This file is a shell script that caches the results of configure
14759 # tests run on this system so they can be shared between configure
14760 # scripts and configure runs, see configure's option --config-cache.
14761 # It is not useful on other systems. If it contains results you don't
14762 # want to keep, you may remove or edit it.
14764 # config.status only pays attention to the cache file if you give it
14765 # the --recheck option to rerun configure.
14767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14769 # following values.
14771 _ACEOF
14773 # The following way of writing the cache mishandles newlines in values,
14774 # but we know of no workaround that is simple, portable, and efficient.
14775 # So, we kill variables containing newlines.
14776 # Ultrix sh set writes to stderr and can't be redirected directly,
14777 # and sets the high bit in the cache file unless we assign to the vars.
14779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14780 eval ac_val=\$$ac_var
14781 case $ac_val in #(
14782 *${as_nl}*)
14783 case $ac_var in #(
14784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14786 esac
14787 case $ac_var in #(
14788 _ | IFS | as_nl) ;; #(
14789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14790 *) { eval $ac_var=; unset $ac_var;} ;;
14791 esac ;;
14792 esac
14793 done
14795 (set) 2>&1 |
14796 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14797 *${as_nl}ac_space=\ *)
14798 # `set' does not quote correctly, so add quotes: double-quote
14799 # substitution turns \\\\ into \\, and sed turns \\ into \.
14800 sed -n \
14801 "s/'/'\\\\''/g;
14802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14803 ;; #(
14805 # `set' quotes correctly as required by POSIX, so do not add quotes.
14806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14808 esac |
14809 sort
14811 sed '
14812 /^ac_cv_env_/b end
14813 t clear
14814 :clear
14815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14816 t end
14817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14818 :end' >>confcache
14819 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14820 if test -w "$cache_file"; then
14821 test "x$cache_file" != "x/dev/null" &&
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14823 $as_echo "$as_me: updating cache $cache_file" >&6;}
14824 cat confcache >$cache_file
14825 else
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14827 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14830 rm -f confcache
14832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14833 # Let make expand exec_prefix.
14834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14836 DEFS=-DHAVE_CONFIG_H
14838 ac_libobjs=
14839 ac_ltlibobjs=
14840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14841 # 1. Remove the extension, and $U if already installed.
14842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14843 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14845 # will be set to the directory where LIBOBJS objects are built.
14846 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14847 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14848 done
14849 LIBOBJS=$ac_libobjs
14851 LTLIBOBJS=$ac_ltlibobjs
14854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14855 as_fn_error "conditional \"AMDEP\" was never defined.
14856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14859 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14862 if test -n "$EXEEXT"; then
14863 am__EXEEXT_TRUE=
14864 am__EXEEXT_FALSE='#'
14865 else
14866 am__EXEEXT_TRUE='#'
14867 am__EXEEXT_FALSE=
14870 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14871 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14874 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14875 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14878 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
14879 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
14880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14883 : ${CONFIG_STATUS=./config.status}
14884 ac_write_fail=0
14885 ac_clean_files_save=$ac_clean_files
14886 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14888 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14889 as_write_fail=0
14890 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14891 #! $SHELL
14892 # Generated by $as_me.
14893 # Run this file to recreate the current configuration.
14894 # Compiler output produced by configure, useful for debugging
14895 # configure, is in config.log if it exists.
14897 debug=false
14898 ac_cs_recheck=false
14899 ac_cs_silent=false
14901 SHELL=\${CONFIG_SHELL-$SHELL}
14902 export SHELL
14903 _ASEOF
14904 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14905 ## -------------------- ##
14906 ## M4sh Initialization. ##
14907 ## -------------------- ##
14909 # Be more Bourne compatible
14910 DUALCASE=1; export DUALCASE # for MKS sh
14911 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14912 emulate sh
14913 NULLCMD=:
14914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14915 # is contrary to our usage. Disable this feature.
14916 alias -g '${1+"$@"}'='"$@"'
14917 setopt NO_GLOB_SUBST
14918 else
14919 case `(set -o) 2>/dev/null` in #(
14920 *posix*) :
14921 set -o posix ;; #(
14922 *) :
14924 esac
14928 as_nl='
14930 export as_nl
14931 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14932 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14935 # Prefer a ksh shell builtin over an external printf program on Solaris,
14936 # but without wasting forks for bash or zsh.
14937 if test -z "$BASH_VERSION$ZSH_VERSION" \
14938 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14939 as_echo='print -r --'
14940 as_echo_n='print -rn --'
14941 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14942 as_echo='printf %s\n'
14943 as_echo_n='printf %s'
14944 else
14945 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14946 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14947 as_echo_n='/usr/ucb/echo -n'
14948 else
14949 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14950 as_echo_n_body='eval
14951 arg=$1;
14952 case $arg in #(
14953 *"$as_nl"*)
14954 expr "X$arg" : "X\\(.*\\)$as_nl";
14955 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14956 esac;
14957 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14959 export as_echo_n_body
14960 as_echo_n='sh -c $as_echo_n_body as_echo'
14962 export as_echo_body
14963 as_echo='sh -c $as_echo_body as_echo'
14966 # The user is always right.
14967 if test "${PATH_SEPARATOR+set}" != set; then
14968 PATH_SEPARATOR=:
14969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14971 PATH_SEPARATOR=';'
14976 # IFS
14977 # We need space, tab and new line, in precisely that order. Quoting is
14978 # there to prevent editors from complaining about space-tab.
14979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14980 # splitting by setting IFS to empty value.)
14981 IFS=" "" $as_nl"
14983 # Find who we are. Look in the path if we contain no directory separator.
14984 case $0 in #((
14985 *[\\/]* ) as_myself=$0 ;;
14986 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14987 for as_dir in $PATH
14989 IFS=$as_save_IFS
14990 test -z "$as_dir" && as_dir=.
14991 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14992 done
14993 IFS=$as_save_IFS
14996 esac
14997 # We did not find ourselves, most probably we were run as `sh COMMAND'
14998 # in which case we are not to be found in the path.
14999 if test "x$as_myself" = x; then
15000 as_myself=$0
15002 if test ! -f "$as_myself"; then
15003 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15004 exit 1
15007 # Unset variables that we do not need and which cause bugs (e.g. in
15008 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15009 # suppresses any "Segmentation fault" message there. '((' could
15010 # trigger a bug in pdksh 5.2.14.
15011 for as_var in BASH_ENV ENV MAIL MAILPATH
15012 do eval test x\${$as_var+set} = xset \
15013 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15014 done
15015 PS1='$ '
15016 PS2='> '
15017 PS4='+ '
15019 # NLS nuisances.
15020 LC_ALL=C
15021 export LC_ALL
15022 LANGUAGE=C
15023 export LANGUAGE
15025 # CDPATH.
15026 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15029 # as_fn_error ERROR [LINENO LOG_FD]
15030 # ---------------------------------
15031 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15032 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15033 # script with status $?, using 1 if that was 0.
15034 as_fn_error ()
15036 as_status=$?; test $as_status -eq 0 && as_status=1
15037 if test "$3"; then
15038 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15039 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15041 $as_echo "$as_me: error: $1" >&2
15042 as_fn_exit $as_status
15043 } # as_fn_error
15046 # as_fn_set_status STATUS
15047 # -----------------------
15048 # Set $? to STATUS, without forking.
15049 as_fn_set_status ()
15051 return $1
15052 } # as_fn_set_status
15054 # as_fn_exit STATUS
15055 # -----------------
15056 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15057 as_fn_exit ()
15059 set +e
15060 as_fn_set_status $1
15061 exit $1
15062 } # as_fn_exit
15064 # as_fn_unset VAR
15065 # ---------------
15066 # Portably unset VAR.
15067 as_fn_unset ()
15069 { eval $1=; unset $1;}
15071 as_unset=as_fn_unset
15072 # as_fn_append VAR VALUE
15073 # ----------------------
15074 # Append the text in VALUE to the end of the definition contained in VAR. Take
15075 # advantage of any shell optimizations that allow amortized linear growth over
15076 # repeated appends, instead of the typical quadratic growth present in naive
15077 # implementations.
15078 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15079 eval 'as_fn_append ()
15081 eval $1+=\$2
15083 else
15084 as_fn_append ()
15086 eval $1=\$$1\$2
15088 fi # as_fn_append
15090 # as_fn_arith ARG...
15091 # ------------------
15092 # Perform arithmetic evaluation on the ARGs, and store the result in the
15093 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15094 # must be portable across $(()) and expr.
15095 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15096 eval 'as_fn_arith ()
15098 as_val=$(( $* ))
15100 else
15101 as_fn_arith ()
15103 as_val=`expr "$@" || test $? -eq 1`
15105 fi # as_fn_arith
15108 if expr a : '\(a\)' >/dev/null 2>&1 &&
15109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15110 as_expr=expr
15111 else
15112 as_expr=false
15115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15116 as_basename=basename
15117 else
15118 as_basename=false
15121 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15122 as_dirname=dirname
15123 else
15124 as_dirname=false
15127 as_me=`$as_basename -- "$0" ||
15128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15129 X"$0" : 'X\(//\)$' \| \
15130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15131 $as_echo X/"$0" |
15132 sed '/^.*\/\([^/][^/]*\)\/*$/{
15133 s//\1/
15136 /^X\/\(\/\/\)$/{
15137 s//\1/
15140 /^X\/\(\/\).*/{
15141 s//\1/
15144 s/.*/./; q'`
15146 # Avoid depending upon Character Ranges.
15147 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15148 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15149 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15150 as_cr_digits='0123456789'
15151 as_cr_alnum=$as_cr_Letters$as_cr_digits
15153 ECHO_C= ECHO_N= ECHO_T=
15154 case `echo -n x` in #(((((
15155 -n*)
15156 case `echo 'xy\c'` in
15157 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15158 xy) ECHO_C='\c';;
15159 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15160 ECHO_T=' ';;
15161 esac;;
15163 ECHO_N='-n';;
15164 esac
15166 rm -f conf$$ conf$$.exe conf$$.file
15167 if test -d conf$$.dir; then
15168 rm -f conf$$.dir/conf$$.file
15169 else
15170 rm -f conf$$.dir
15171 mkdir conf$$.dir 2>/dev/null
15173 if (echo >conf$$.file) 2>/dev/null; then
15174 if ln -s conf$$.file conf$$ 2>/dev/null; then
15175 as_ln_s='ln -s'
15176 # ... but there are two gotchas:
15177 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15178 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15179 # In both cases, we have to default to `cp -p'.
15180 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15181 as_ln_s='cp -p'
15182 elif ln conf$$.file conf$$ 2>/dev/null; then
15183 as_ln_s=ln
15184 else
15185 as_ln_s='cp -p'
15187 else
15188 as_ln_s='cp -p'
15190 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15191 rmdir conf$$.dir 2>/dev/null
15194 # as_fn_mkdir_p
15195 # -------------
15196 # Create "$as_dir" as a directory, including parents if necessary.
15197 as_fn_mkdir_p ()
15200 case $as_dir in #(
15201 -*) as_dir=./$as_dir;;
15202 esac
15203 test -d "$as_dir" || eval $as_mkdir_p || {
15204 as_dirs=
15205 while :; do
15206 case $as_dir in #(
15207 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15208 *) as_qdir=$as_dir;;
15209 esac
15210 as_dirs="'$as_qdir' $as_dirs"
15211 as_dir=`$as_dirname -- "$as_dir" ||
15212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15213 X"$as_dir" : 'X\(//\)[^/]' \| \
15214 X"$as_dir" : 'X\(//\)$' \| \
15215 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15216 $as_echo X"$as_dir" |
15217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15218 s//\1/
15221 /^X\(\/\/\)[^/].*/{
15222 s//\1/
15225 /^X\(\/\/\)$/{
15226 s//\1/
15229 /^X\(\/\).*/{
15230 s//\1/
15233 s/.*/./; q'`
15234 test -d "$as_dir" && break
15235 done
15236 test -z "$as_dirs" || eval "mkdir $as_dirs"
15237 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15240 } # as_fn_mkdir_p
15241 if mkdir -p . 2>/dev/null; then
15242 as_mkdir_p='mkdir -p "$as_dir"'
15243 else
15244 test -d ./-p && rmdir ./-p
15245 as_mkdir_p=false
15248 if test -x / >/dev/null 2>&1; then
15249 as_test_x='test -x'
15250 else
15251 if ls -dL / >/dev/null 2>&1; then
15252 as_ls_L_option=L
15253 else
15254 as_ls_L_option=
15256 as_test_x='
15257 eval sh -c '\''
15258 if test -d "$1"; then
15259 test -d "$1/.";
15260 else
15261 case $1 in #(
15262 -*)set "./$1";;
15263 esac;
15264 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15265 ???[sx]*):;;*)false;;esac;fi
15266 '\'' sh
15269 as_executable_p=$as_test_x
15271 # Sed expression to map a string onto a valid CPP name.
15272 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15274 # Sed expression to map a string onto a valid variable name.
15275 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15278 exec 6>&1
15279 ## ----------------------------------- ##
15280 ## Main body of $CONFIG_STATUS script. ##
15281 ## ----------------------------------- ##
15282 _ASEOF
15283 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15286 # Save the log message, to keep $0 and so on meaningful, and to
15287 # report actual input values of CONFIG_FILES etc. instead of their
15288 # values after options handling.
15289 ac_log="
15290 This file was extended by libcc1 $as_me version-unused, which was
15291 generated by GNU Autoconf 2.64. Invocation command line was
15293 CONFIG_FILES = $CONFIG_FILES
15294 CONFIG_HEADERS = $CONFIG_HEADERS
15295 CONFIG_LINKS = $CONFIG_LINKS
15296 CONFIG_COMMANDS = $CONFIG_COMMANDS
15297 $ $0 $@
15299 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15302 _ACEOF
15304 case $ac_config_files in *"
15305 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15306 esac
15308 case $ac_config_headers in *"
15309 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15310 esac
15313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15314 # Files that config.status was made for.
15315 config_files="$ac_config_files"
15316 config_headers="$ac_config_headers"
15317 config_commands="$ac_config_commands"
15319 _ACEOF
15321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322 ac_cs_usage="\
15323 \`$as_me' instantiates files and other configuration actions
15324 from templates according to the current configuration. Unless the files
15325 and actions are specified as TAGs, all are instantiated by default.
15327 Usage: $0 [OPTION]... [TAG]...
15329 -h, --help print this help, then exit
15330 -V, --version print version number and configuration settings, then exit
15331 -q, --quiet, --silent
15332 do not print progress messages
15333 -d, --debug don't remove temporary files
15334 --recheck update $as_me by reconfiguring in the same conditions
15335 --file=FILE[:TEMPLATE]
15336 instantiate the configuration file FILE
15337 --header=FILE[:TEMPLATE]
15338 instantiate the configuration header FILE
15340 Configuration files:
15341 $config_files
15343 Configuration headers:
15344 $config_headers
15346 Configuration commands:
15347 $config_commands
15349 Report bugs to the package provider."
15351 _ACEOF
15352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353 ac_cs_version="\\
15354 libcc1 config.status version-unused
15355 configured by $0, generated by GNU Autoconf 2.64,
15356 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15358 Copyright (C) 2009 Free Software Foundation, Inc.
15359 This config.status script is free software; the Free Software Foundation
15360 gives unlimited permission to copy, distribute and modify it."
15362 ac_pwd='$ac_pwd'
15363 srcdir='$srcdir'
15364 INSTALL='$INSTALL'
15365 MKDIR_P='$MKDIR_P'
15366 AWK='$AWK'
15367 test -n "\$AWK" || AWK=awk
15368 _ACEOF
15370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371 # The default lists apply if the user does not specify any file.
15372 ac_need_defaults=:
15373 while test $# != 0
15375 case $1 in
15376 --*=*)
15377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15379 ac_shift=:
15382 ac_option=$1
15383 ac_optarg=$2
15384 ac_shift=shift
15386 esac
15388 case $ac_option in
15389 # Handling of the options.
15390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15391 ac_cs_recheck=: ;;
15392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15393 $as_echo "$ac_cs_version"; exit ;;
15394 --debug | --debu | --deb | --de | --d | -d )
15395 debug=: ;;
15396 --file | --fil | --fi | --f )
15397 $ac_shift
15398 case $ac_optarg in
15399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15400 esac
15401 as_fn_append CONFIG_FILES " '$ac_optarg'"
15402 ac_need_defaults=false;;
15403 --header | --heade | --head | --hea )
15404 $ac_shift
15405 case $ac_optarg in
15406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15407 esac
15408 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15409 ac_need_defaults=false;;
15410 --he | --h)
15411 # Conflict between --help and --header
15412 as_fn_error "ambiguous option: \`$1'
15413 Try \`$0 --help' for more information.";;
15414 --help | --hel | -h )
15415 $as_echo "$ac_cs_usage"; exit ;;
15416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15418 ac_cs_silent=: ;;
15420 # This is an error.
15421 -*) as_fn_error "unrecognized option: \`$1'
15422 Try \`$0 --help' for more information." ;;
15424 *) as_fn_append ac_config_targets " $1"
15425 ac_need_defaults=false ;;
15427 esac
15428 shift
15429 done
15431 ac_configure_extra_args=
15433 if $ac_cs_silent; then
15434 exec 6>/dev/null
15435 ac_configure_extra_args="$ac_configure_extra_args --silent"
15438 _ACEOF
15439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15440 if \$ac_cs_recheck; then
15441 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15442 shift
15443 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15444 CONFIG_SHELL='$SHELL'
15445 export CONFIG_SHELL
15446 exec "\$@"
15449 _ACEOF
15450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15451 exec 5>>config.log
15453 echo
15454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15455 ## Running $as_me. ##
15456 _ASBOX
15457 $as_echo "$ac_log"
15458 } >&5
15460 _ACEOF
15461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463 # INIT-COMMANDS
15465 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15468 # The HP-UX ksh and POSIX shell print the target directory to stdout
15469 # if CDPATH is set.
15470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15472 sed_quote_subst='$sed_quote_subst'
15473 double_quote_subst='$double_quote_subst'
15474 delay_variable_subst='$delay_variable_subst'
15475 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15476 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15477 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15478 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15479 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15480 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15481 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15482 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15483 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15484 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15485 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15486 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15487 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15488 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15489 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15490 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15491 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15492 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15493 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15494 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15495 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15496 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15497 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15498 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15499 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15500 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15501 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15502 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15503 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15504 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15505 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15506 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15507 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15508 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15509 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15510 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15511 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15512 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15513 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15514 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15515 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15516 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15517 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15518 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15519 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15520 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15521 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15522 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15523 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"`'
15524 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15525 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15526 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15527 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15528 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15529 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15530 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15531 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15532 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15533 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15534 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15535 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15536 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15537 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15538 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15539 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15540 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15541 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15542 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15543 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15544 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15545 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15546 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15547 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15548 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15549 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15550 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15551 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15552 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15553 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15554 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15555 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15556 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15557 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15558 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15559 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15560 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15561 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15562 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15563 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15564 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15565 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15566 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15567 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15568 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15569 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15570 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15571 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15572 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15573 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15574 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15575 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15576 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15577 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15578 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15579 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15580 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15581 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15582 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15583 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15584 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15585 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15586 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15587 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15588 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15589 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15590 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15591 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15592 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15593 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15594 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15595 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15596 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15597 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15598 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15599 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15600 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15601 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15602 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15603 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15604 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15605 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15606 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15607 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15608 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15609 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15610 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15611 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15612 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15613 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15614 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15615 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15616 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15617 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15618 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15619 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15620 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15621 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15622 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15623 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15624 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15625 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15626 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15627 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15628 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15629 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15630 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15631 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15632 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15633 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15634 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15635 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15636 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15637 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15638 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15639 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15640 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15641 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15642 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15643 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15644 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15645 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15646 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15647 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15648 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15649 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15651 LTCC='$LTCC'
15652 LTCFLAGS='$LTCFLAGS'
15653 compiler='$compiler_DEFAULT'
15655 # A function that is used when there is no print builtin or printf.
15656 func_fallback_echo ()
15658 eval 'cat <<_LTECHO_EOF
15660 _LTECHO_EOF'
15663 # Quote evaled strings.
15664 for var in SHELL \
15665 ECHO \
15666 SED \
15667 GREP \
15668 EGREP \
15669 FGREP \
15670 LD \
15671 NM \
15672 LN_S \
15673 lt_SP2NL \
15674 lt_NL2SP \
15675 reload_flag \
15676 OBJDUMP \
15677 deplibs_check_method \
15678 file_magic_cmd \
15679 AR \
15680 AR_FLAGS \
15681 STRIP \
15682 RANLIB \
15683 CC \
15684 CFLAGS \
15685 compiler \
15686 lt_cv_sys_global_symbol_pipe \
15687 lt_cv_sys_global_symbol_to_cdecl \
15688 lt_cv_sys_global_symbol_to_c_name_address \
15689 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15690 lt_prog_compiler_no_builtin_flag \
15691 lt_prog_compiler_wl \
15692 lt_prog_compiler_pic \
15693 lt_prog_compiler_static \
15694 lt_cv_prog_compiler_c_o \
15695 need_locks \
15696 DSYMUTIL \
15697 NMEDIT \
15698 LIPO \
15699 OTOOL \
15700 OTOOL64 \
15701 shrext_cmds \
15702 export_dynamic_flag_spec \
15703 whole_archive_flag_spec \
15704 compiler_needs_object \
15705 with_gnu_ld \
15706 allow_undefined_flag \
15707 no_undefined_flag \
15708 hardcode_libdir_flag_spec \
15709 hardcode_libdir_flag_spec_ld \
15710 hardcode_libdir_separator \
15711 fix_srcfile_path \
15712 exclude_expsyms \
15713 include_expsyms \
15714 file_list_spec \
15715 variables_saved_for_relink \
15716 libname_spec \
15717 library_names_spec \
15718 soname_spec \
15719 install_override_mode \
15720 finish_eval \
15721 old_striplib \
15722 striplib \
15723 compiler_lib_search_dirs \
15724 predep_objects \
15725 postdep_objects \
15726 predeps \
15727 postdeps \
15728 compiler_lib_search_path \
15729 LD_CXX \
15730 reload_flag_CXX \
15731 compiler_CXX \
15732 lt_prog_compiler_no_builtin_flag_CXX \
15733 lt_prog_compiler_wl_CXX \
15734 lt_prog_compiler_pic_CXX \
15735 lt_prog_compiler_static_CXX \
15736 lt_cv_prog_compiler_c_o_CXX \
15737 export_dynamic_flag_spec_CXX \
15738 whole_archive_flag_spec_CXX \
15739 compiler_needs_object_CXX \
15740 with_gnu_ld_CXX \
15741 allow_undefined_flag_CXX \
15742 no_undefined_flag_CXX \
15743 hardcode_libdir_flag_spec_CXX \
15744 hardcode_libdir_flag_spec_ld_CXX \
15745 hardcode_libdir_separator_CXX \
15746 fix_srcfile_path_CXX \
15747 exclude_expsyms_CXX \
15748 include_expsyms_CXX \
15749 file_list_spec_CXX \
15750 compiler_lib_search_dirs_CXX \
15751 predep_objects_CXX \
15752 postdep_objects_CXX \
15753 predeps_CXX \
15754 postdeps_CXX \
15755 compiler_lib_search_path_CXX; do
15756 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15757 *[\\\\\\\`\\"\\\$]*)
15758 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15761 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15763 esac
15764 done
15766 # Double-quote double-evaled strings.
15767 for var in reload_cmds \
15768 old_postinstall_cmds \
15769 old_postuninstall_cmds \
15770 old_archive_cmds \
15771 extract_expsyms_cmds \
15772 old_archive_from_new_cmds \
15773 old_archive_from_expsyms_cmds \
15774 archive_cmds \
15775 archive_expsym_cmds \
15776 module_cmds \
15777 module_expsym_cmds \
15778 export_symbols_cmds \
15779 prelink_cmds \
15780 postinstall_cmds \
15781 postuninstall_cmds \
15782 finish_cmds \
15783 sys_lib_search_path_spec \
15784 sys_lib_dlsearch_path_spec \
15785 reload_cmds_CXX \
15786 old_archive_cmds_CXX \
15787 old_archive_from_new_cmds_CXX \
15788 old_archive_from_expsyms_cmds_CXX \
15789 archive_cmds_CXX \
15790 archive_expsym_cmds_CXX \
15791 module_cmds_CXX \
15792 module_expsym_cmds_CXX \
15793 export_symbols_cmds_CXX \
15794 prelink_cmds_CXX; do
15795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15796 *[\\\\\\\`\\"\\\$]*)
15797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15802 esac
15803 done
15805 ac_aux_dir='$ac_aux_dir'
15806 xsi_shell='$xsi_shell'
15807 lt_shell_append='$lt_shell_append'
15809 # See if we are running on zsh, and set the options which allow our
15810 # commands through without removal of \ escapes INIT.
15811 if test -n "\${ZSH_VERSION+set}" ; then
15812 setopt NO_GLOB_SUBST
15816 PACKAGE='$PACKAGE'
15817 VERSION='$VERSION'
15818 TIMESTAMP='$TIMESTAMP'
15819 RM='$RM'
15820 ofile='$ofile'
15827 _ACEOF
15829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15831 # Handling of arguments.
15832 for ac_config_target in $ac_config_targets
15834 case $ac_config_target in
15835 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
15836 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15837 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15838 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15840 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15841 esac
15842 done
15845 # If the user did not use the arguments to specify the items to instantiate,
15846 # then the envvar interface is used. Set only those that are not.
15847 # We use the long form for the default assignment because of an extremely
15848 # bizarre bug on SunOS 4.1.3.
15849 if $ac_need_defaults; then
15850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15855 # Have a temporary directory for convenience. Make it in the build tree
15856 # simply because there is no reason against having it here, and in addition,
15857 # creating and moving files from /tmp can sometimes cause problems.
15858 # Hook for its removal unless debugging.
15859 # Note that there is a small window in which the directory will not be cleaned:
15860 # after its creation but before its name has been assigned to `$tmp'.
15861 $debug ||
15863 tmp=
15864 trap 'exit_status=$?
15865 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15867 trap 'as_fn_exit 1' 1 2 13 15
15869 # Create a (secure) tmp directory for tmp files.
15872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15873 test -n "$tmp" && test -d "$tmp"
15874 } ||
15876 tmp=./conf$$-$RANDOM
15877 (umask 077 && mkdir "$tmp")
15878 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15880 # Set up the scripts for CONFIG_FILES section.
15881 # No need to generate them if there are no CONFIG_FILES.
15882 # This happens for instance with `./config.status config.h'.
15883 if test -n "$CONFIG_FILES"; then
15886 ac_cr=`echo X | tr X '\015'`
15887 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15888 # But we know of no other shell where ac_cr would be empty at this
15889 # point, so we can use a bashism as a fallback.
15890 if test "x$ac_cr" = x; then
15891 eval ac_cr=\$\'\\r\'
15893 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15894 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15895 ac_cs_awk_cr='\r'
15896 else
15897 ac_cs_awk_cr=$ac_cr
15900 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15901 _ACEOF
15905 echo "cat >conf$$subs.awk <<_ACEOF" &&
15906 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15907 echo "_ACEOF"
15908 } >conf$$subs.sh ||
15909 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15910 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15911 ac_delim='%!_!# '
15912 for ac_last_try in false false false false false :; do
15913 . ./conf$$subs.sh ||
15914 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15916 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15917 if test $ac_delim_n = $ac_delim_num; then
15918 break
15919 elif $ac_last_try; then
15920 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15921 else
15922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15924 done
15925 rm -f conf$$subs.sh
15927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15928 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15929 _ACEOF
15930 sed -n '
15932 s/^/S["/; s/!.*/"]=/
15935 s/^[^!]*!//
15936 :repl
15937 t repl
15938 s/'"$ac_delim"'$//
15939 t delim
15942 s/\(.\{148\}\).*/\1/
15943 t more1
15944 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15947 b repl
15948 :more1
15949 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15952 s/.\{148\}//
15953 t nl
15954 :delim
15956 s/\(.\{148\}\).*/\1/
15957 t more2
15958 s/["\\]/\\&/g; s/^/"/; s/$/"/
15961 :more2
15962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15965 s/.\{148\}//
15966 t delim
15967 ' <conf$$subs.awk | sed '
15968 /^[^""]/{
15970 s/\n//
15972 ' >>$CONFIG_STATUS || ac_write_fail=1
15973 rm -f conf$$subs.awk
15974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15975 _ACAWK
15976 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15977 for (key in S) S_is_set[key] = 1
15978 FS = "\a"
15982 line = $ 0
15983 nfields = split(line, field, "@")
15984 substed = 0
15985 len = length(field[1])
15986 for (i = 2; i < nfields; i++) {
15987 key = field[i]
15988 keylen = length(key)
15989 if (S_is_set[key]) {
15990 value = S[key]
15991 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15992 len += length(value) + length(field[++i])
15993 substed = 1
15994 } else
15995 len += 1 + keylen
15998 print line
16001 _ACAWK
16002 _ACEOF
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16005 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16006 else
16008 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16009 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16010 _ACEOF
16012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16014 # trailing colons and then remove the whole line if VPATH becomes empty
16015 # (actually we leave an empty line to preserve line numbers).
16016 if test "x$srcdir" = x.; then
16017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16018 s/:*\$(srcdir):*/:/
16019 s/:*\${srcdir}:*/:/
16020 s/:*@srcdir@:*/:/
16021 s/^\([^=]*=[ ]*\):*/\1/
16022 s/:*$//
16023 s/^[^=]*=[ ]*$//
16027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16028 fi # test -n "$CONFIG_FILES"
16030 # Set up the scripts for CONFIG_HEADERS section.
16031 # No need to generate them if there are no CONFIG_HEADERS.
16032 # This happens for instance with `./config.status Makefile'.
16033 if test -n "$CONFIG_HEADERS"; then
16034 cat >"$tmp/defines.awk" <<\_ACAWK ||
16035 BEGIN {
16036 _ACEOF
16038 # Transform confdefs.h into an awk script `defines.awk', embedded as
16039 # here-document in config.status, that substitutes the proper values into
16040 # config.h.in to produce config.h.
16042 # Create a delimiter string that does not exist in confdefs.h, to ease
16043 # handling of long lines.
16044 ac_delim='%!_!# '
16045 for ac_last_try in false false :; do
16046 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16047 if test -z "$ac_t"; then
16048 break
16049 elif $ac_last_try; then
16050 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16051 else
16052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16054 done
16056 # For the awk script, D is an array of macro values keyed by name,
16057 # likewise P contains macro parameters if any. Preserve backslash
16058 # newline sequences.
16060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16061 sed -n '
16062 s/.\{148\}/&'"$ac_delim"'/g
16063 t rset
16064 :rset
16065 s/^[ ]*#[ ]*define[ ][ ]*/ /
16066 t def
16068 :def
16069 s/\\$//
16070 t bsnl
16071 s/["\\]/\\&/g
16072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16073 D["\1"]=" \3"/p
16074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16076 :bsnl
16077 s/["\\]/\\&/g
16078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16079 D["\1"]=" \3\\\\\\n"\\/p
16080 t cont
16081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16082 t cont
16084 :cont
16086 s/.\{148\}/&'"$ac_delim"'/g
16087 t clear
16088 :clear
16089 s/\\$//
16090 t bsnlc
16091 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16093 :bsnlc
16094 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16095 b cont
16096 ' <confdefs.h | sed '
16097 s/'"$ac_delim"'/"\\\
16098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 for (key in D) D_is_set[key] = 1
16102 FS = "\a"
16104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16105 line = \$ 0
16106 split(line, arg, " ")
16107 if (arg[1] == "#") {
16108 defundef = arg[2]
16109 mac1 = arg[3]
16110 } else {
16111 defundef = substr(arg[1], 2)
16112 mac1 = arg[2]
16114 split(mac1, mac2, "(") #)
16115 macro = mac2[1]
16116 prefix = substr(line, 1, index(line, defundef) - 1)
16117 if (D_is_set[macro]) {
16118 # Preserve the white space surrounding the "#".
16119 print prefix "define", macro P[macro] D[macro]
16120 next
16121 } else {
16122 # Replace #undef with comments. This is necessary, for example,
16123 # in the case of _POSIX_SOURCE, which is predefined and required
16124 # on some systems where configure will not decide to define it.
16125 if (defundef == "undef") {
16126 print "/*", prefix defundef, macro, "*/"
16127 next
16131 { print }
16132 _ACAWK
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16136 fi # test -n "$CONFIG_HEADERS"
16139 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16140 shift
16141 for ac_tag
16143 case $ac_tag in
16144 :[FHLC]) ac_mode=$ac_tag; continue;;
16145 esac
16146 case $ac_mode$ac_tag in
16147 :[FHL]*:*);;
16148 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16149 :[FH]-) ac_tag=-:-;;
16150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16151 esac
16152 ac_save_IFS=$IFS
16153 IFS=:
16154 set x $ac_tag
16155 IFS=$ac_save_IFS
16156 shift
16157 ac_file=$1
16158 shift
16160 case $ac_mode in
16161 :L) ac_source=$1;;
16162 :[FH])
16163 ac_file_inputs=
16164 for ac_f
16166 case $ac_f in
16167 -) ac_f="$tmp/stdin";;
16168 *) # Look for the file first in the build tree, then in the source tree
16169 # (if the path is not absolute). The absolute path cannot be DOS-style,
16170 # because $ac_f cannot contain `:'.
16171 test -f "$ac_f" ||
16172 case $ac_f in
16173 [\\/$]*) false;;
16174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16175 esac ||
16176 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16177 esac
16178 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16179 as_fn_append ac_file_inputs " '$ac_f'"
16180 done
16182 # Let's still pretend it is `configure' which instantiates (i.e., don't
16183 # use $as_me), people would be surprised to read:
16184 # /* config.h. Generated by config.status. */
16185 configure_input='Generated from '`
16186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16187 `' by configure.'
16188 if test x"$ac_file" != x-; then
16189 configure_input="$ac_file. $configure_input"
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16191 $as_echo "$as_me: creating $ac_file" >&6;}
16193 # Neutralize special characters interpreted by sed in replacement strings.
16194 case $configure_input in #(
16195 *\&* | *\|* | *\\* )
16196 ac_sed_conf_input=`$as_echo "$configure_input" |
16197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16198 *) ac_sed_conf_input=$configure_input;;
16199 esac
16201 case $ac_tag in
16202 *:-:* | *:-) cat >"$tmp/stdin" \
16203 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16204 esac
16206 esac
16208 ac_dir=`$as_dirname -- "$ac_file" ||
16209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16210 X"$ac_file" : 'X\(//\)[^/]' \| \
16211 X"$ac_file" : 'X\(//\)$' \| \
16212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16213 $as_echo X"$ac_file" |
16214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16215 s//\1/
16218 /^X\(\/\/\)[^/].*/{
16219 s//\1/
16222 /^X\(\/\/\)$/{
16223 s//\1/
16226 /^X\(\/\).*/{
16227 s//\1/
16230 s/.*/./; q'`
16231 as_dir="$ac_dir"; as_fn_mkdir_p
16232 ac_builddir=.
16234 case "$ac_dir" in
16235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16238 # A ".." for each directory in $ac_dir_suffix.
16239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16240 case $ac_top_builddir_sub in
16241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16243 esac ;;
16244 esac
16245 ac_abs_top_builddir=$ac_pwd
16246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16247 # for backward compatibility:
16248 ac_top_builddir=$ac_top_build_prefix
16250 case $srcdir in
16251 .) # We are building in place.
16252 ac_srcdir=.
16253 ac_top_srcdir=$ac_top_builddir_sub
16254 ac_abs_top_srcdir=$ac_pwd ;;
16255 [\\/]* | ?:[\\/]* ) # Absolute name.
16256 ac_srcdir=$srcdir$ac_dir_suffix;
16257 ac_top_srcdir=$srcdir
16258 ac_abs_top_srcdir=$srcdir ;;
16259 *) # Relative name.
16260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16261 ac_top_srcdir=$ac_top_build_prefix$srcdir
16262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16263 esac
16264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16267 case $ac_mode in
16270 # CONFIG_FILE
16273 case $INSTALL in
16274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16276 esac
16277 ac_MKDIR_P=$MKDIR_P
16278 case $MKDIR_P in
16279 [\\/$]* | ?:[\\/]* ) ;;
16280 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16281 esac
16282 _ACEOF
16284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16285 # If the template does not know about datarootdir, expand it.
16286 # FIXME: This hack should be removed a few years after 2.60.
16287 ac_datarootdir_hack=; ac_datarootdir_seen=
16288 ac_sed_dataroot='
16289 /datarootdir/ {
16293 /@datadir@/p
16294 /@docdir@/p
16295 /@infodir@/p
16296 /@localedir@/p
16297 /@mandir@/p'
16298 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16299 *datarootdir*) ac_datarootdir_seen=yes;;
16300 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16302 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16303 _ACEOF
16304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16305 ac_datarootdir_hack='
16306 s&@datadir@&$datadir&g
16307 s&@docdir@&$docdir&g
16308 s&@infodir@&$infodir&g
16309 s&@localedir@&$localedir&g
16310 s&@mandir@&$mandir&g
16311 s&\\\${datarootdir}&$datarootdir&g' ;;
16312 esac
16313 _ACEOF
16315 # Neutralize VPATH when `$srcdir' = `.'.
16316 # Shell code in configure.ac might set extrasub.
16317 # FIXME: do we really want to maintain this feature?
16318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16319 ac_sed_extra="$ac_vpsub
16320 $extrasub
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16325 s|@configure_input@|$ac_sed_conf_input|;t t
16326 s&@top_builddir@&$ac_top_builddir_sub&;t t
16327 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16328 s&@srcdir@&$ac_srcdir&;t t
16329 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16330 s&@top_srcdir@&$ac_top_srcdir&;t t
16331 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16332 s&@builddir@&$ac_builddir&;t t
16333 s&@abs_builddir@&$ac_abs_builddir&;t t
16334 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16335 s&@INSTALL@&$ac_INSTALL&;t t
16336 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16337 $ac_datarootdir_hack
16339 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16340 || as_fn_error "could not create $ac_file" "$LINENO" 5
16342 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16343 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16344 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16346 which seems to be undefined. Please make sure it is defined." >&5
16347 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16348 which seems to be undefined. Please make sure it is defined." >&2;}
16350 rm -f "$tmp/stdin"
16351 case $ac_file in
16352 -) cat "$tmp/out" && rm -f "$tmp/out";;
16353 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16354 esac \
16355 || as_fn_error "could not create $ac_file" "$LINENO" 5
16359 # CONFIG_HEADER
16361 if test x"$ac_file" != x-; then
16363 $as_echo "/* $configure_input */" \
16364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16365 } >"$tmp/config.h" \
16366 || as_fn_error "could not create $ac_file" "$LINENO" 5
16367 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16369 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16370 else
16371 rm -f "$ac_file"
16372 mv "$tmp/config.h" "$ac_file" \
16373 || as_fn_error "could not create $ac_file" "$LINENO" 5
16375 else
16376 $as_echo "/* $configure_input */" \
16377 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16378 || as_fn_error "could not create -" "$LINENO" 5
16380 # Compute "$ac_file"'s index in $config_headers.
16381 _am_arg="$ac_file"
16382 _am_stamp_count=1
16383 for _am_header in $config_headers :; do
16384 case $_am_header in
16385 $_am_arg | $_am_arg:* )
16386 break ;;
16388 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16389 esac
16390 done
16391 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16392 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16393 X"$_am_arg" : 'X\(//\)[^/]' \| \
16394 X"$_am_arg" : 'X\(//\)$' \| \
16395 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16396 $as_echo X"$_am_arg" |
16397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16398 s//\1/
16401 /^X\(\/\/\)[^/].*/{
16402 s//\1/
16405 /^X\(\/\/\)$/{
16406 s//\1/
16409 /^X\(\/\).*/{
16410 s//\1/
16413 s/.*/./; q'`/stamp-h$_am_stamp_count
16416 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16417 $as_echo "$as_me: executing $ac_file commands" >&6;}
16419 esac
16422 case $ac_file$ac_mode in
16423 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16424 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16425 # are listed without --file. Let's play safe and only enable the eval
16426 # if we detect the quoting.
16427 case $CONFIG_FILES in
16428 *\'*) eval set x "$CONFIG_FILES" ;;
16429 *) set x $CONFIG_FILES ;;
16430 esac
16431 shift
16432 for mf
16434 # Strip MF so we end up with the name of the file.
16435 mf=`echo "$mf" | sed -e 's/:.*$//'`
16436 # Check whether this is an Automake generated Makefile or not.
16437 # We used to match only the files named `Makefile.in', but
16438 # some people rename them; so instead we look at the file content.
16439 # Grep'ing the first line is not enough: some people post-process
16440 # each Makefile.in and add a new line on top of each file to say so.
16441 # Grep'ing the whole file is not good either: AIX grep has a line
16442 # limit of 2048, but all sed's we know have understand at least 4000.
16443 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16444 dirpart=`$as_dirname -- "$mf" ||
16445 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 X"$mf" : 'X\(//\)[^/]' \| \
16447 X"$mf" : 'X\(//\)$' \| \
16448 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16449 $as_echo X"$mf" |
16450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451 s//\1/
16454 /^X\(\/\/\)[^/].*/{
16455 s//\1/
16458 /^X\(\/\/\)$/{
16459 s//\1/
16462 /^X\(\/\).*/{
16463 s//\1/
16466 s/.*/./; q'`
16467 else
16468 continue
16470 # Extract the definition of DEPDIR, am__include, and am__quote
16471 # from the Makefile without running `make'.
16472 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16473 test -z "$DEPDIR" && continue
16474 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16475 test -z "am__include" && continue
16476 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16477 # When using ansi2knr, U may be empty or an underscore; expand it
16478 U=`sed -n 's/^U = //p' < "$mf"`
16479 # Find all dependency output files, they are included files with
16480 # $(DEPDIR) in their names. We invoke sed twice because it is the
16481 # simplest approach to changing $(DEPDIR) to its actual value in the
16482 # expansion.
16483 for file in `sed -n "
16484 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16485 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16486 # Make sure the directory exists.
16487 test -f "$dirpart/$file" && continue
16488 fdir=`$as_dirname -- "$file" ||
16489 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16490 X"$file" : 'X\(//\)[^/]' \| \
16491 X"$file" : 'X\(//\)$' \| \
16492 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16493 $as_echo X"$file" |
16494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16495 s//\1/
16498 /^X\(\/\/\)[^/].*/{
16499 s//\1/
16502 /^X\(\/\/\)$/{
16503 s//\1/
16506 /^X\(\/\).*/{
16507 s//\1/
16510 s/.*/./; q'`
16511 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16512 # echo "creating $dirpart/$file"
16513 echo '# dummy' > "$dirpart/$file"
16514 done
16515 done
16518 "libtool":C)
16520 # See if we are running on zsh, and set the options which allow our
16521 # commands through without removal of \ escapes.
16522 if test -n "${ZSH_VERSION+set}" ; then
16523 setopt NO_GLOB_SUBST
16526 cfgfile="${ofile}T"
16527 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16528 $RM "$cfgfile"
16530 cat <<_LT_EOF >> "$cfgfile"
16531 #! $SHELL
16533 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16534 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16536 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16538 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16539 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16540 # Written by Gordon Matzigkeit, 1996
16542 # This file is part of GNU Libtool.
16544 # GNU Libtool is free software; you can redistribute it and/or
16545 # modify it under the terms of the GNU General Public License as
16546 # published by the Free Software Foundation; either version 2 of
16547 # the License, or (at your option) any later version.
16549 # As a special exception to the GNU General Public License,
16550 # if you distribute this file as part of a program or library that
16551 # is built using GNU Libtool, you may include this file under the
16552 # same distribution terms that you use for the rest of that program.
16554 # GNU Libtool is distributed in the hope that it will be useful,
16555 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16556 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16557 # GNU General Public License for more details.
16559 # You should have received a copy of the GNU General Public License
16560 # along with GNU Libtool; see the file COPYING. If not, a copy
16561 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16562 # obtained by writing to the Free Software Foundation, Inc.,
16563 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16566 # The names of the tagged configurations supported by this script.
16567 available_tags="CXX "
16569 # ### BEGIN LIBTOOL CONFIG
16571 # Which release of libtool.m4 was used?
16572 macro_version=$macro_version
16573 macro_revision=$macro_revision
16575 # Whether or not to build static libraries.
16576 build_old_libs=$enable_static
16578 # Whether or not to build shared libraries.
16579 build_libtool_libs=$enable_shared
16581 # What type of objects to build.
16582 pic_mode=$pic_mode
16584 # Whether or not to optimize for fast installation.
16585 fast_install=$enable_fast_install
16587 # Shell to use when invoking shell scripts.
16588 SHELL=$lt_SHELL
16590 # An echo program that protects backslashes.
16591 ECHO=$lt_ECHO
16593 # The host system.
16594 host_alias=$host_alias
16595 host=$host
16596 host_os=$host_os
16598 # The build system.
16599 build_alias=$build_alias
16600 build=$build
16601 build_os=$build_os
16603 # A sed program that does not truncate output.
16604 SED=$lt_SED
16606 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16607 Xsed="\$SED -e 1s/^X//"
16609 # A grep program that handles long lines.
16610 GREP=$lt_GREP
16612 # An ERE matcher.
16613 EGREP=$lt_EGREP
16615 # A literal string matcher.
16616 FGREP=$lt_FGREP
16618 # A BSD- or MS-compatible name lister.
16619 NM=$lt_NM
16621 # Whether we need soft or hard links.
16622 LN_S=$lt_LN_S
16624 # What is the maximum length of a command?
16625 max_cmd_len=$max_cmd_len
16627 # Object file suffix (normally "o").
16628 objext=$ac_objext
16630 # Executable file suffix (normally "").
16631 exeext=$exeext
16633 # whether the shell understands "unset".
16634 lt_unset=$lt_unset
16636 # turn spaces into newlines.
16637 SP2NL=$lt_lt_SP2NL
16639 # turn newlines into spaces.
16640 NL2SP=$lt_lt_NL2SP
16642 # An object symbol dumper.
16643 OBJDUMP=$lt_OBJDUMP
16645 # Method to check whether dependent libraries are shared objects.
16646 deplibs_check_method=$lt_deplibs_check_method
16648 # Command to use when deplibs_check_method == "file_magic".
16649 file_magic_cmd=$lt_file_magic_cmd
16651 # The archiver.
16652 AR=$lt_AR
16653 AR_FLAGS=$lt_AR_FLAGS
16655 # A symbol stripping program.
16656 STRIP=$lt_STRIP
16658 # Commands used to install an old-style archive.
16659 RANLIB=$lt_RANLIB
16660 old_postinstall_cmds=$lt_old_postinstall_cmds
16661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16663 # Whether to use a lock for old archive extraction.
16664 lock_old_archive_extraction=$lock_old_archive_extraction
16666 # A C compiler.
16667 LTCC=$lt_CC
16669 # LTCC compiler flags.
16670 LTCFLAGS=$lt_CFLAGS
16672 # Take the output of nm and produce a listing of raw symbols and C names.
16673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16675 # Transform the output of nm in a proper C declaration.
16676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16678 # Transform the output of nm in a C name address pair.
16679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16681 # Transform the output of nm in a C name address pair when lib prefix is needed.
16682 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16684 # The name of the directory that contains temporary libtool files.
16685 objdir=$objdir
16687 # Used to examine libraries when file_magic_cmd begins with "file".
16688 MAGIC_CMD=$MAGIC_CMD
16690 # Must we lock files when doing compilation?
16691 need_locks=$lt_need_locks
16693 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16694 DSYMUTIL=$lt_DSYMUTIL
16696 # Tool to change global to local symbols on Mac OS X.
16697 NMEDIT=$lt_NMEDIT
16699 # Tool to manipulate fat objects and archives on Mac OS X.
16700 LIPO=$lt_LIPO
16702 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16703 OTOOL=$lt_OTOOL
16705 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16706 OTOOL64=$lt_OTOOL64
16708 # Old archive suffix (normally "a").
16709 libext=$libext
16711 # Shared library suffix (normally ".so").
16712 shrext_cmds=$lt_shrext_cmds
16714 # The commands to extract the exported symbol list from a shared archive.
16715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16717 # Variables whose values should be saved in libtool wrapper scripts and
16718 # restored at link time.
16719 variables_saved_for_relink=$lt_variables_saved_for_relink
16721 # Do we need the "lib" prefix for modules?
16722 need_lib_prefix=$need_lib_prefix
16724 # Do we need a version for libraries?
16725 need_version=$need_version
16727 # Library versioning type.
16728 version_type=$version_type
16730 # Shared library runtime path variable.
16731 runpath_var=$runpath_var
16733 # Shared library path variable.
16734 shlibpath_var=$shlibpath_var
16736 # Is shlibpath searched before the hard-coded library search path?
16737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16739 # Format of library name prefix.
16740 libname_spec=$lt_libname_spec
16742 # List of archive names. First name is the real one, the rest are links.
16743 # The last name is the one that the linker finds with -lNAME
16744 library_names_spec=$lt_library_names_spec
16746 # The coded name of the library, if different from the real name.
16747 soname_spec=$lt_soname_spec
16749 # Permission mode override for installation of shared libraries.
16750 install_override_mode=$lt_install_override_mode
16752 # Command to use after installation of a shared archive.
16753 postinstall_cmds=$lt_postinstall_cmds
16755 # Command to use after uninstallation of a shared archive.
16756 postuninstall_cmds=$lt_postuninstall_cmds
16758 # Commands used to finish a libtool library installation in a directory.
16759 finish_cmds=$lt_finish_cmds
16761 # As "finish_cmds", except a single script fragment to be evaled but
16762 # not shown.
16763 finish_eval=$lt_finish_eval
16765 # Whether we should hardcode library paths into libraries.
16766 hardcode_into_libs=$hardcode_into_libs
16768 # Compile-time system search path for libraries.
16769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16771 # Run-time system search path for libraries.
16772 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16774 # Whether dlopen is supported.
16775 dlopen_support=$enable_dlopen
16777 # Whether dlopen of programs is supported.
16778 dlopen_self=$enable_dlopen_self
16780 # Whether dlopen of statically linked programs is supported.
16781 dlopen_self_static=$enable_dlopen_self_static
16783 # Commands to strip libraries.
16784 old_striplib=$lt_old_striplib
16785 striplib=$lt_striplib
16788 # The linker used to build libraries.
16789 LD=$lt_LD
16791 # How to create reloadable object files.
16792 reload_flag=$lt_reload_flag
16793 reload_cmds=$lt_reload_cmds
16795 # Commands used to build an old-style archive.
16796 old_archive_cmds=$lt_old_archive_cmds
16798 # A language specific compiler.
16799 CC=$lt_compiler
16801 # Is the compiler the GNU compiler?
16802 with_gcc=$GCC
16804 # Compiler flag to turn off builtin functions.
16805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16807 # How to pass a linker flag through the compiler.
16808 wl=$lt_lt_prog_compiler_wl
16810 # Additional compiler flags for building library objects.
16811 pic_flag=$lt_lt_prog_compiler_pic
16813 # Compiler flag to prevent dynamic linking.
16814 link_static_flag=$lt_lt_prog_compiler_static
16816 # Does compiler simultaneously support -c and -o options?
16817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16819 # Whether or not to add -lc for building shared libraries.
16820 build_libtool_need_lc=$archive_cmds_need_lc
16822 # Whether or not to disallow shared libs when runtime libs are static.
16823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16825 # Compiler flag to allow reflexive dlopens.
16826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16828 # Compiler flag to generate shared objects directly from archives.
16829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16831 # Whether the compiler copes with passing no objects directly.
16832 compiler_needs_object=$lt_compiler_needs_object
16834 # Create an old-style archive from a shared archive.
16835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16837 # Create a temporary old-style archive to link instead of a shared archive.
16838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16840 # Commands used to build a shared archive.
16841 archive_cmds=$lt_archive_cmds
16842 archive_expsym_cmds=$lt_archive_expsym_cmds
16844 # Commands used to build a loadable module if different from building
16845 # a shared archive.
16846 module_cmds=$lt_module_cmds
16847 module_expsym_cmds=$lt_module_expsym_cmds
16849 # Whether we are building with GNU ld or not.
16850 with_gnu_ld=$lt_with_gnu_ld
16852 # Flag that allows shared libraries with undefined symbols to be built.
16853 allow_undefined_flag=$lt_allow_undefined_flag
16855 # Flag that enforces no undefined symbols.
16856 no_undefined_flag=$lt_no_undefined_flag
16858 # Flag to hardcode \$libdir into a binary during linking.
16859 # This must work even if \$libdir does not exist
16860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16862 # If ld is used when linking, flag to hardcode \$libdir into a binary
16863 # during linking. This must work even if \$libdir does not exist.
16864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16866 # Whether we need a single "-rpath" flag with a separated argument.
16867 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16869 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16870 # DIR into the resulting binary.
16871 hardcode_direct=$hardcode_direct
16873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16874 # DIR into the resulting binary and the resulting library dependency is
16875 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16876 # library is relocated.
16877 hardcode_direct_absolute=$hardcode_direct_absolute
16879 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16880 # into the resulting binary.
16881 hardcode_minus_L=$hardcode_minus_L
16883 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16884 # into the resulting binary.
16885 hardcode_shlibpath_var=$hardcode_shlibpath_var
16887 # Set to "yes" if building a shared library automatically hardcodes DIR
16888 # into the library and all subsequent libraries and executables linked
16889 # against it.
16890 hardcode_automatic=$hardcode_automatic
16892 # Set to yes if linker adds runtime paths of dependent libraries
16893 # to runtime path list.
16894 inherit_rpath=$inherit_rpath
16896 # Whether libtool must link a program against all its dependency libraries.
16897 link_all_deplibs=$link_all_deplibs
16899 # Fix the shell variable \$srcfile for the compiler.
16900 fix_srcfile_path=$lt_fix_srcfile_path
16902 # Set to "yes" if exported symbols are required.
16903 always_export_symbols=$always_export_symbols
16905 # The commands to list exported symbols.
16906 export_symbols_cmds=$lt_export_symbols_cmds
16908 # Symbols that should not be listed in the preloaded symbols.
16909 exclude_expsyms=$lt_exclude_expsyms
16911 # Symbols that must always be exported.
16912 include_expsyms=$lt_include_expsyms
16914 # Commands necessary for linking programs (against libraries) with templates.
16915 prelink_cmds=$lt_prelink_cmds
16917 # Specify filename containing input files.
16918 file_list_spec=$lt_file_list_spec
16920 # How to hardcode a shared library path into an executable.
16921 hardcode_action=$hardcode_action
16923 # The directories searched by this compiler when creating a shared library.
16924 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16926 # Dependencies to place before and after the objects being linked to
16927 # create a shared library.
16928 predep_objects=$lt_predep_objects
16929 postdep_objects=$lt_postdep_objects
16930 predeps=$lt_predeps
16931 postdeps=$lt_postdeps
16933 # The library search path used internally by the compiler when linking
16934 # a shared library.
16935 compiler_lib_search_path=$lt_compiler_lib_search_path
16937 # ### END LIBTOOL CONFIG
16939 _LT_EOF
16941 case $host_os in
16942 aix3*)
16943 cat <<\_LT_EOF >> "$cfgfile"
16944 # AIX sometimes has problems with the GCC collect2 program. For some
16945 # reason, if we set the COLLECT_NAMES environment variable, the problems
16946 # vanish in a puff of smoke.
16947 if test "X${COLLECT_NAMES+set}" != Xset; then
16948 COLLECT_NAMES=
16949 export COLLECT_NAMES
16951 _LT_EOF
16953 esac
16956 ltmain="$ac_aux_dir/ltmain.sh"
16959 # We use sed instead of cat because bash on DJGPP gets confused if
16960 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16961 # text mode, it properly converts lines to CR/LF. This bash problem
16962 # is reportedly fixed, but why not run on old versions too?
16963 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16964 || (rm -f "$cfgfile"; exit 1)
16966 case $xsi_shell in
16967 yes)
16968 cat << \_LT_EOF >> "$cfgfile"
16970 # func_dirname file append nondir_replacement
16971 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16972 # otherwise set result to NONDIR_REPLACEMENT.
16973 func_dirname ()
16975 case ${1} in
16976 */*) func_dirname_result="${1%/*}${2}" ;;
16977 * ) func_dirname_result="${3}" ;;
16978 esac
16981 # func_basename file
16982 func_basename ()
16984 func_basename_result="${1##*/}"
16987 # func_dirname_and_basename file append nondir_replacement
16988 # perform func_basename and func_dirname in a single function
16989 # call:
16990 # dirname: Compute the dirname of FILE. If nonempty,
16991 # add APPEND to the result, otherwise set result
16992 # to NONDIR_REPLACEMENT.
16993 # value returned in "$func_dirname_result"
16994 # basename: Compute filename of FILE.
16995 # value retuned in "$func_basename_result"
16996 # Implementation must be kept synchronized with func_dirname
16997 # and func_basename. For efficiency, we do not delegate to
16998 # those functions but instead duplicate the functionality here.
16999 func_dirname_and_basename ()
17001 case ${1} in
17002 */*) func_dirname_result="${1%/*}${2}" ;;
17003 * ) func_dirname_result="${3}" ;;
17004 esac
17005 func_basename_result="${1##*/}"
17008 # func_stripname prefix suffix name
17009 # strip PREFIX and SUFFIX off of NAME.
17010 # PREFIX and SUFFIX must not contain globbing or regex special
17011 # characters, hashes, percent signs, but SUFFIX may contain a leading
17012 # dot (in which case that matches only a dot).
17013 func_stripname ()
17015 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17016 # positional parameters, so assign one to ordinary parameter first.
17017 func_stripname_result=${3}
17018 func_stripname_result=${func_stripname_result#"${1}"}
17019 func_stripname_result=${func_stripname_result%"${2}"}
17022 # func_opt_split
17023 func_opt_split ()
17025 func_opt_split_opt=${1%%=*}
17026 func_opt_split_arg=${1#*=}
17029 # func_lo2o object
17030 func_lo2o ()
17032 case ${1} in
17033 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17034 *) func_lo2o_result=${1} ;;
17035 esac
17038 # func_xform libobj-or-source
17039 func_xform ()
17041 func_xform_result=${1%.*}.lo
17044 # func_arith arithmetic-term...
17045 func_arith ()
17047 func_arith_result=$(( $* ))
17050 # func_len string
17051 # STRING may not start with a hyphen.
17052 func_len ()
17054 func_len_result=${#1}
17057 _LT_EOF
17059 *) # Bourne compatible functions.
17060 cat << \_LT_EOF >> "$cfgfile"
17062 # func_dirname file append nondir_replacement
17063 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17064 # otherwise set result to NONDIR_REPLACEMENT.
17065 func_dirname ()
17067 # Extract subdirectory from the argument.
17068 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17069 if test "X$func_dirname_result" = "X${1}"; then
17070 func_dirname_result="${3}"
17071 else
17072 func_dirname_result="$func_dirname_result${2}"
17076 # func_basename file
17077 func_basename ()
17079 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17083 # func_stripname prefix suffix name
17084 # strip PREFIX and SUFFIX off of NAME.
17085 # PREFIX and SUFFIX must not contain globbing or regex special
17086 # characters, hashes, percent signs, but SUFFIX may contain a leading
17087 # dot (in which case that matches only a dot).
17088 # func_strip_suffix prefix name
17089 func_stripname ()
17091 case ${2} in
17092 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17093 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17094 esac
17097 # sed scripts:
17098 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17099 my_sed_long_arg='1s/^-[^=]*=//'
17101 # func_opt_split
17102 func_opt_split ()
17104 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17105 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17108 # func_lo2o object
17109 func_lo2o ()
17111 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17114 # func_xform libobj-or-source
17115 func_xform ()
17117 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17120 # func_arith arithmetic-term...
17121 func_arith ()
17123 func_arith_result=`expr "$@"`
17126 # func_len string
17127 # STRING may not start with a hyphen.
17128 func_len ()
17130 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17133 _LT_EOF
17134 esac
17136 case $lt_shell_append in
17137 yes)
17138 cat << \_LT_EOF >> "$cfgfile"
17140 # func_append var value
17141 # Append VALUE to the end of shell variable VAR.
17142 func_append ()
17144 eval "$1+=\$2"
17146 _LT_EOF
17149 cat << \_LT_EOF >> "$cfgfile"
17151 # func_append var value
17152 # Append VALUE to the end of shell variable VAR.
17153 func_append ()
17155 eval "$1=\$$1\$2"
17158 _LT_EOF
17160 esac
17163 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17164 || (rm -f "$cfgfile"; exit 1)
17166 mv -f "$cfgfile" "$ofile" ||
17167 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17168 chmod +x "$ofile"
17171 cat <<_LT_EOF >> "$ofile"
17173 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17175 # The linker used to build libraries.
17176 LD=$lt_LD_CXX
17178 # How to create reloadable object files.
17179 reload_flag=$lt_reload_flag_CXX
17180 reload_cmds=$lt_reload_cmds_CXX
17182 # Commands used to build an old-style archive.
17183 old_archive_cmds=$lt_old_archive_cmds_CXX
17185 # A language specific compiler.
17186 CC=$lt_compiler_CXX
17188 # Is the compiler the GNU compiler?
17189 with_gcc=$GCC_CXX
17191 # Compiler flag to turn off builtin functions.
17192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17194 # How to pass a linker flag through the compiler.
17195 wl=$lt_lt_prog_compiler_wl_CXX
17197 # Additional compiler flags for building library objects.
17198 pic_flag=$lt_lt_prog_compiler_pic_CXX
17200 # Compiler flag to prevent dynamic linking.
17201 link_static_flag=$lt_lt_prog_compiler_static_CXX
17203 # Does compiler simultaneously support -c and -o options?
17204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17206 # Whether or not to add -lc for building shared libraries.
17207 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17209 # Whether or not to disallow shared libs when runtime libs are static.
17210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17212 # Compiler flag to allow reflexive dlopens.
17213 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17215 # Compiler flag to generate shared objects directly from archives.
17216 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17218 # Whether the compiler copes with passing no objects directly.
17219 compiler_needs_object=$lt_compiler_needs_object_CXX
17221 # Create an old-style archive from a shared archive.
17222 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17224 # Create a temporary old-style archive to link instead of a shared archive.
17225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17227 # Commands used to build a shared archive.
17228 archive_cmds=$lt_archive_cmds_CXX
17229 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17231 # Commands used to build a loadable module if different from building
17232 # a shared archive.
17233 module_cmds=$lt_module_cmds_CXX
17234 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17236 # Whether we are building with GNU ld or not.
17237 with_gnu_ld=$lt_with_gnu_ld_CXX
17239 # Flag that allows shared libraries with undefined symbols to be built.
17240 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17242 # Flag that enforces no undefined symbols.
17243 no_undefined_flag=$lt_no_undefined_flag_CXX
17245 # Flag to hardcode \$libdir into a binary during linking.
17246 # This must work even if \$libdir does not exist
17247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17249 # If ld is used when linking, flag to hardcode \$libdir into a binary
17250 # during linking. This must work even if \$libdir does not exist.
17251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17253 # Whether we need a single "-rpath" flag with a separated argument.
17254 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17256 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17257 # DIR into the resulting binary.
17258 hardcode_direct=$hardcode_direct_CXX
17260 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17261 # DIR into the resulting binary and the resulting library dependency is
17262 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17263 # library is relocated.
17264 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17266 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17267 # into the resulting binary.
17268 hardcode_minus_L=$hardcode_minus_L_CXX
17270 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17271 # into the resulting binary.
17272 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17274 # Set to "yes" if building a shared library automatically hardcodes DIR
17275 # into the library and all subsequent libraries and executables linked
17276 # against it.
17277 hardcode_automatic=$hardcode_automatic_CXX
17279 # Set to yes if linker adds runtime paths of dependent libraries
17280 # to runtime path list.
17281 inherit_rpath=$inherit_rpath_CXX
17283 # Whether libtool must link a program against all its dependency libraries.
17284 link_all_deplibs=$link_all_deplibs_CXX
17286 # Fix the shell variable \$srcfile for the compiler.
17287 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17289 # Set to "yes" if exported symbols are required.
17290 always_export_symbols=$always_export_symbols_CXX
17292 # The commands to list exported symbols.
17293 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17295 # Symbols that should not be listed in the preloaded symbols.
17296 exclude_expsyms=$lt_exclude_expsyms_CXX
17298 # Symbols that must always be exported.
17299 include_expsyms=$lt_include_expsyms_CXX
17301 # Commands necessary for linking programs (against libraries) with templates.
17302 prelink_cmds=$lt_prelink_cmds_CXX
17304 # Specify filename containing input files.
17305 file_list_spec=$lt_file_list_spec_CXX
17307 # How to hardcode a shared library path into an executable.
17308 hardcode_action=$hardcode_action_CXX
17310 # The directories searched by this compiler when creating a shared library.
17311 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17313 # Dependencies to place before and after the objects being linked to
17314 # create a shared library.
17315 predep_objects=$lt_predep_objects_CXX
17316 postdep_objects=$lt_postdep_objects_CXX
17317 predeps=$lt_predeps_CXX
17318 postdeps=$lt_postdeps_CXX
17320 # The library search path used internally by the compiler when linking
17321 # a shared library.
17322 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17324 # ### END LIBTOOL TAG CONFIG: CXX
17325 _LT_EOF
17329 esac
17330 done # for ac_tag
17333 as_fn_exit 0
17334 _ACEOF
17335 ac_clean_files=$ac_clean_files_save
17337 test $ac_write_fail = 0 ||
17338 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17341 # configure is writing to config.log, and then calls config.status.
17342 # config.status does its own redirection, appending to config.log.
17343 # Unfortunately, on DOS this fails, as config.log is still kept open
17344 # by configure, so config.status won't be able to write to it; its
17345 # output is simply discarded. So we exec the FD to /dev/null,
17346 # effectively closing config.log, so it can be properly (re)opened and
17347 # appended to by config.status. When coming back to configure, we
17348 # need to make the FD available again.
17349 if test "$no_create" != yes; then
17350 ac_cs_success=:
17351 ac_config_status_args=
17352 test "$silent" = yes &&
17353 ac_config_status_args="$ac_config_status_args --quiet"
17354 exec 5>/dev/null
17355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17356 exec 5>>config.log
17357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17358 # would make configure fail if this is the last instruction.
17359 $ac_cs_success || as_fn_exit $?
17361 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17363 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}