2015-03-02 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / libcc1 / configure
blobc1fd40357385e92845156c1b9c340d7713da1b30
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 gcc_version
612 visibility
613 CXXCPP
614 am__fastdepCXX_FALSE
615 am__fastdepCXX_TRUE
616 CXXDEPMODE
617 ac_ct_CXX
618 CXXFLAGS
620 OTOOL64
621 OTOOL
622 LIPO
623 NMEDIT
624 DSYMUTIL
625 RANLIB
627 OBJDUMP
628 LN_S
630 ac_ct_DUMPBIN
631 DUMPBIN
633 FGREP
635 LIBTOOL
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 AMDEPBACKSLASH
643 AMDEP_FALSE
644 AMDEP_TRUE
645 am__quote
646 am__include
647 DEPDIR
648 am__untar
649 am__tar
650 AMTAR
651 am__leading_dot
652 SET_MAKE
654 mkdir_p
655 MKDIR_P
656 INSTALL_STRIP_PROGRAM
657 STRIP
658 install_sh
659 MAKEINFO
660 AUTOHEADER
661 AUTOMAKE
662 AUTOCONF
663 ACLOCAL
664 VERSION
665 PACKAGE
666 CYGPATH_W
667 am__isrc
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 target_subdir
672 host_subdir
673 build_subdir
674 build_libsubdir
675 target_noncanonical
676 EGREP
677 GREP
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 with_build_libsubdir
740 enable_dependency_tracking
741 enable_maintainer_mode
742 enable_static
743 enable_shared
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 enable_libtool_lock
748 enable_werror_always
749 enable_plugin
751 ac_precious_vars='build_alias
752 host_alias
753 target_alias
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
761 CXXFLAGS
763 CXXCPP
764 GMPINC'
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
815 ac_prev=
816 ac_dashdash=
817 for ac_option
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
835 ac_dashdash=yes ;;
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
854 --config-cache | -C)
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) as_fn_error "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information."
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 esac
1172 done
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error "missing argument to $ac_option"
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used." >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229 test "$silent" = yes && exec 6>/dev/null
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error "pwd does not report name of working directory"
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1258 /^X\(\/\/\)$/{
1259 s//\1/
1262 /^X\(\/\).*/{
1263 s//\1/
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1271 else
1272 ac_srcdir_defaulted=no
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1361 cat <<\_ACEOF
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1372 _ACEOF
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of libcc1 version-unused:";;
1378 esac
1379 cat <<\_ACEOF
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --enable-static[=PKGS] build static libraries [default=no]
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-fast-install[=PKGS]
1392 optimize for fast installation [default=yes]
1393 --disable-libtool-lock avoid locking (might break parallel builds)
1394 --enable-werror-always enable -Werror despite compiler version
1395 --enable-plugin enable plugin support
1397 Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-build-libsubdir=DIR Directory where to find libraries for build system
1401 --with-pic try to use only PIC/non-PIC objects [default=use
1402 both]
1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1414 CXX C++ compiler command
1415 CXXFLAGS C++ compiler flags
1416 CXXCPP C++ preprocessor
1417 GMPINC How to find GMP include files
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 Report bugs to the package provider.
1423 _ACEOF
1424 ac_status=$?
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 libcc1 configure version-unused
1486 generated by GNU Autoconf 2.64
1488 Copyright (C) 2009 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1530 ac_retval=1
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 return $ac_retval
1535 } # ac_fn_c_try_compile
1537 # ac_fn_c_try_cpp LINENO
1538 # ----------------------
1539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_cpp ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if { { ac_try="$ac_cpp conftest.$ac_ext"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } >/dev/null && {
1559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 }; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1567 ac_retval=1
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 return $ac_retval
1572 } # ac_fn_c_try_cpp
1574 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1575 # -------------------------------------------------------
1576 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1577 # the include files in INCLUDES and setting the cache variable VAR
1578 # accordingly.
1579 ac_fn_c_check_header_mongrel ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 $as_echo_n "(cached) " >&6
1588 eval ac_res=\$$3
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 else
1592 # Is the header compilable?
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1594 $as_echo_n "checking $2 usability... " >&6; }
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 ac_header_compiler=yes
1602 else
1603 ac_header_compiler=no
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1607 $as_echo "$ac_header_compiler" >&6; }
1609 # Is the header present?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1611 $as_echo_n "checking $2 presence... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_cpp "$LINENO"; then :
1617 ac_header_preproc=yes
1618 else
1619 ac_header_preproc=no
1621 rm -f conftest.err conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1623 $as_echo "$ac_header_preproc" >&6; }
1625 # So? What about this header?
1626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627 yes:no: )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1629 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633 no:yes:* )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1635 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1637 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1639 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1641 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 esac
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 eval "$3=\$ac_header_compiler"
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 } # ac_fn_c_check_header_mongrel
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695 ac_retval=$ac_status
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 return $ac_retval
1701 } # ac_fn_c_try_run
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 } # ac_fn_c_check_header_compile
1734 # ac_fn_c_try_link LINENO
1735 # -----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_link ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest$ac_exeext
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest$ac_exeext && {
1760 test "$cross_compiling" = yes ||
1761 $as_test_x conftest$ac_exeext
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=1
1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772 # interfere with the next link command; also delete a directory that is
1773 # left behind by Apple's compiler. We do this before executing the actions.
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 return $ac_retval
1778 } # ac_fn_c_try_link
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795 #define $2 innocuous_$2
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $2 (); below.
1799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1800 <limits.h> exists even on freestanding compilers. */
1802 #ifdef __STDC__
1803 # include <limits.h>
1804 #else
1805 # include <assert.h>
1806 #endif
1808 #undef $2
1810 /* Override any GCC internal prototype to avoid an error.
1811 Use char because int might match the return type of a GCC
1812 builtin and then its argument prototype would still apply. */
1813 #ifdef __cplusplus
1814 extern "C"
1815 #endif
1816 char $2 ();
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined __stub_$2 || defined __stub___$2
1821 choke me
1822 #endif
1825 main ()
1827 return $2 ();
1829 return 0;
1831 _ACEOF
1832 if ac_fn_c_try_link "$LINENO"; then :
1833 eval "$3=yes"
1834 else
1835 eval "$3=no"
1837 rm -f core conftest.err conftest.$ac_objext \
1838 conftest$ac_exeext conftest.$ac_ext
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 } # ac_fn_c_check_func
1847 # ac_fn_cxx_try_compile LINENO
1848 # ----------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1878 ac_retval=1
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 return $ac_retval
1883 } # ac_fn_cxx_try_compile
1885 # ac_fn_cxx_try_cpp LINENO
1886 # ------------------------
1887 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_cxx_try_cpp ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } >/dev/null && {
1907 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1908 test ! -s conftest.err
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=1
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 return $ac_retval
1920 } # ac_fn_cxx_try_cpp
1922 # ac_fn_cxx_try_link LINENO
1923 # -------------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_cxx_try_link ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext conftest$ac_exeext
1929 if { { ac_try="$ac_link"
1930 case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest$ac_exeext && {
1948 test "$cross_compiling" = yes ||
1949 $as_test_x conftest$ac_exeext
1950 }; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_retval=1
1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1960 # interfere with the next link command; also delete a directory that is
1961 # left behind by Apple's compiler. We do this before executing the actions.
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 return $ac_retval
1966 } # ac_fn_cxx_try_link
1968 # ac_fn_c_check_decl LINENO SYMBOL VAR
1969 # ------------------------------------
1970 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1971 ac_fn_c_check_decl ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 as_decl_name=`echo $2|sed 's/ *(.*//'`
1975 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1977 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1978 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 main ()
1987 #ifndef $as_decl_name
1988 #ifdef __cplusplus
1989 (void) $as_decl_use;
1990 #else
1991 (void) $as_decl_name;
1992 #endif
1993 #endif
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$3=yes"
2001 else
2002 eval "$3=no"
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 } # ac_fn_c_check_decl
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2016 It was created by libcc1 $as_me version-unused, which was
2017 generated by GNU Autoconf 2.64. Invocation command line was
2019 $ $0 $@
2021 _ACEOF
2022 exec 5>>config.log
2024 cat <<_ASUNAME
2025 ## --------- ##
2026 ## Platform. ##
2027 ## --------- ##
2029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2041 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2046 _ASUNAME
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 $as_echo "PATH: $as_dir"
2054 done
2055 IFS=$as_save_IFS
2057 } >&5
2059 cat >&5 <<_ACEOF
2062 ## ----------- ##
2063 ## Core tests. ##
2064 ## ----------- ##
2066 _ACEOF
2069 # Keep a trace of the command line.
2070 # Strip out --no-create and --no-recursion so they do not pile up.
2071 # Strip out --silent because we don't want to record it for future runs.
2072 # Also quote any args containing shell meta-characters.
2073 # Make two passes to allow for proper duplicate-argument suppression.
2074 ac_configure_args=
2075 ac_configure_args0=
2076 ac_configure_args1=
2077 ac_must_keep_next=false
2078 for ac_pass in 1 2
2080 for ac_arg
2082 case $ac_arg in
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2086 continue ;;
2087 *\'*)
2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 esac
2090 case $ac_pass in
2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2093 as_fn_append ac_configure_args1 " '$ac_arg'"
2094 if test $ac_must_keep_next = true; then
2095 ac_must_keep_next=false # Got value, back to normal.
2096 else
2097 case $ac_arg in
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104 esac
2106 -* ) ac_must_keep_next=true ;;
2107 esac
2109 as_fn_append ac_configure_args " '$ac_arg'"
2111 esac
2112 done
2113 done
2114 { ac_configure_args0=; unset ac_configure_args0;}
2115 { ac_configure_args1=; unset ac_configure_args1;}
2117 # When interrupted or exit'd, cleanup temporary files, and complete
2118 # config.log. We remove comments because anyway the quotes in there
2119 # would cause problems or look ugly.
2120 # WARNING: Use '\'' to represent an apostrophe within the trap.
2121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122 trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2125 echo
2127 cat <<\_ASBOX
2128 ## ---------------- ##
2129 ## Cache variables. ##
2130 ## ---------------- ##
2131 _ASBOX
2132 echo
2133 # The following way of writing the cache mishandles newlines in values,
2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in #(
2138 *${as_nl}*)
2139 case $ac_var in #(
2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 esac
2143 case $ac_var in #(
2144 _ | IFS | as_nl) ;; #(
2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146 *) { eval $ac_var=; unset $ac_var;} ;;
2147 esac ;;
2148 esac
2149 done
2150 (set) 2>&1 |
2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152 *${as_nl}ac_space=\ *)
2153 sed -n \
2154 "s/'\''/'\''\\\\'\'''\''/g;
2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 ;; #(
2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2160 esac |
2161 sort
2163 echo
2165 cat <<\_ASBOX
2166 ## ----------------- ##
2167 ## Output variables. ##
2168 ## ----------------- ##
2169 _ASBOX
2170 echo
2171 for ac_var in $ac_subst_vars
2173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
2178 done | sort
2179 echo
2181 if test -n "$ac_subst_files"; then
2182 cat <<\_ASBOX
2183 ## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##
2186 _ASBOX
2187 echo
2188 for ac_var in $ac_subst_files
2190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 $as_echo "$ac_var='\''$ac_val'\''"
2195 done | sort
2196 echo
2199 if test -s confdefs.h; then
2200 cat <<\_ASBOX
2201 ## ----------- ##
2202 ## confdefs.h. ##
2203 ## ----------- ##
2204 _ASBOX
2205 echo
2206 cat confdefs.h
2207 echo
2209 test "$ac_signal" != 0 &&
2210 $as_echo "$as_me: caught signal $ac_signal"
2211 $as_echo "$as_me: exit $exit_status"
2212 } >&5
2213 rm -f core *.core core.conftest.* &&
2214 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215 exit $exit_status
2217 for ac_signal in 1 2 13 15; do
2218 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219 done
2220 ac_signal=0
2222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2223 rm -f -r conftest* confdefs.h
2225 $as_echo "/* confdefs.h */" > confdefs.h
2227 # Predefined preprocessor variables.
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_NAME "$PACKAGE_NAME"
2231 _ACEOF
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2235 _ACEOF
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2239 _ACEOF
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_STRING "$PACKAGE_STRING"
2243 _ACEOF
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247 _ACEOF
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_URL "$PACKAGE_URL"
2251 _ACEOF
2254 # Let the site file select an alternate cache file if it wants to.
2255 # Prefer an explicitly selected file to automatically selected ones.
2256 ac_site_file1=NONE
2257 ac_site_file2=NONE
2258 if test -n "$CONFIG_SITE"; then
2259 ac_site_file1=$CONFIG_SITE
2260 elif test "x$prefix" != xNONE; then
2261 ac_site_file1=$prefix/share/config.site
2262 ac_site_file2=$prefix/etc/config.site
2263 else
2264 ac_site_file1=$ac_default_prefix/share/config.site
2265 ac_site_file2=$ac_default_prefix/etc/config.site
2267 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2269 test "x$ac_site_file" = xNONE && continue
2270 if test -r "$ac_site_file"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2272 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2273 sed 's/^/| /' "$ac_site_file" >&5
2274 . "$ac_site_file"
2276 done
2278 if test -r "$cache_file"; then
2279 # Some versions of bash will fail to source /dev/null (special
2280 # files actually), so we avoid doing that.
2281 if test -f "$cache_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283 $as_echo "$as_me: loading cache $cache_file" >&6;}
2284 case $cache_file in
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
2287 esac
2289 else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292 >$cache_file
2295 # Check that the precious variables saved in the cache have kept the same
2296 # value.
2297 ac_cache_corrupted=false
2298 for ac_var in $ac_precious_vars; do
2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
2303 case $ac_old_set,$ac_new_set in
2304 set,)
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2306 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2308 ,set)
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2310 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2312 ,);;
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
2315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x $ac_old_val`
2317 ac_new_val_w=`echo x $ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2321 ac_cache_corrupted=:
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2324 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 fi;;
2332 esac
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2335 case $ac_new_val in
2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 *) ac_arg=$ac_var=$ac_new_val ;;
2338 esac
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2342 esac
2344 done
2345 if $ac_cache_corrupted; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2352 ## -------------------- ##
2353 ## Main body of script. ##
2354 ## -------------------- ##
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2370 ac_aux_dir=
2371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2372 for ac_t in install-sh install.sh shtool; do
2373 if test -f "$ac_dir/$ac_t"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/$ac_t -c"
2376 break 2
2378 done
2379 done
2380 if test -z "$ac_aux_dir"; then
2381 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2393 # Make sure we can run config.sub.
2394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2395 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2398 $as_echo_n "checking build system type... " >&6; }
2399 if test "${ac_cv_build+set}" = set; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 ac_build_alias=$build_alias
2403 test "x$ac_build_alias" = x &&
2404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2405 test "x$ac_build_alias" = x &&
2406 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2408 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2412 $as_echo "$ac_cv_build" >&6; }
2413 case $ac_cv_build in
2414 *-*-*) ;;
2415 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2416 esac
2417 build=$ac_cv_build
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_build
2420 shift
2421 build_cpu=$1
2422 build_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 build_os=$*
2427 IFS=$ac_save_IFS
2428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2432 $as_echo_n "checking host system type... " >&6; }
2433 if test "${ac_cv_host+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test "x$host_alias" = x; then
2437 ac_cv_host=$ac_cv_build
2438 else
2439 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2440 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2445 $as_echo "$ac_cv_host" >&6; }
2446 case $ac_cv_host in
2447 *-*-*) ;;
2448 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2449 esac
2450 host=$ac_cv_host
2451 ac_save_IFS=$IFS; IFS='-'
2452 set x $ac_cv_host
2453 shift
2454 host_cpu=$1
2455 host_vendor=$2
2456 shift; shift
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2459 host_os=$*
2460 IFS=$ac_save_IFS
2461 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2465 $as_echo_n "checking target system type... " >&6; }
2466 if test "${ac_cv_target+set}" = set; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test "x$target_alias" = x; then
2470 ac_cv_target=$ac_cv_host
2471 else
2472 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2473 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2478 $as_echo "$ac_cv_target" >&6; }
2479 case $ac_cv_target in
2480 *-*-*) ;;
2481 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2482 esac
2483 target=$ac_cv_target
2484 ac_save_IFS=$IFS; IFS='-'
2485 set x $ac_cv_target
2486 shift
2487 target_cpu=$1
2488 target_vendor=$2
2489 shift; shift
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2492 target_os=$*
2493 IFS=$ac_save_IFS
2494 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2497 # The aliases save the names the user supplied, while $host etc.
2498 # will get canonicalized.
2499 test -n "$target_alias" &&
2500 test "$program_prefix$program_suffix$program_transform_name" = \
2501 NONENONEs,x,x, &&
2502 program_prefix=${target_alias}-
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if test "${ac_cv_prog_CC+set}" = set; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2531 done
2532 done
2533 IFS=$as_save_IFS
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2540 $as_echo "$CC" >&6; }
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2548 if test -z "$ac_cv_prog_CC"; then
2549 ac_ct_CC=$CC
2550 # Extract the first word of "gcc", so it can be a program name with args.
2551 set dummy gcc; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 if test -n "$ac_ct_CC"; then
2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_ac_ct_CC="gcc"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2571 done
2572 done
2573 IFS=$as_save_IFS
2577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2578 if test -n "$ac_ct_CC"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2580 $as_echo "$ac_ct_CC" >&6; }
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2586 if test "x$ac_ct_CC" = x; then
2587 CC=""
2588 else
2589 case $cross_compiling:$ac_tool_warned in
2590 yes:)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593 ac_tool_warned=yes ;;
2594 esac
2595 CC=$ac_ct_CC
2597 else
2598 CC="$ac_cv_prog_CC"
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}cc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_CC="${ac_tool_prefix}cc"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2624 done
2625 done
2626 IFS=$as_save_IFS
2630 CC=$ac_cv_prog_CC
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2642 if test -z "$CC"; then
2643 # Extract the first word of "cc", so it can be a program name with args.
2644 set dummy cc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_CC+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 ac_prog_rejected=no
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2662 ac_prog_rejected=yes
2663 continue
2665 ac_cv_prog_CC="cc"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2669 done
2670 done
2671 IFS=$as_save_IFS
2673 if test $ac_prog_rejected = yes; then
2674 # We found a bogon in the path, so make sure we never use it.
2675 set dummy $ac_cv_prog_CC
2676 shift
2677 if test $# != 0; then
2678 # We chose a different compiler from the bogus one.
2679 # However, it has the same basename, so the bogon will be chosen
2680 # first if we set CC to just the basename; use the full file name.
2681 shift
2682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2690 $as_echo "$CC" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2698 if test -z "$CC"; then
2699 if test -n "$ac_tool_prefix"; then
2700 for ac_prog in cl.exe
2702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_CC+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2739 test -n "$CC" && break
2740 done
2742 if test -z "$CC"; then
2743 ac_ct_CC=$CC
2744 for ac_prog in cl.exe
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_ac_ct_CC="$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2767 done
2768 done
2769 IFS=$as_save_IFS
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2776 $as_echo "$ac_ct_CC" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2783 test -n "$ac_ct_CC" && break
2784 done
2786 if test "x$ac_ct_CC" = x; then
2787 CC=""
2788 else
2789 case $cross_compiling:$ac_tool_warned in
2790 yes:)
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795 CC=$ac_ct_CC
2802 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804 as_fn_error "no acceptable C compiler found in \$PATH
2805 See \`config.log' for more details." "$LINENO" 5; }
2807 # Provide some information about the compiler.
2808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2809 set X $ac_compile
2810 ac_compiler=$2
2811 for ac_option in --version -v -V -qversion; do
2812 { { ac_try="$ac_compiler $ac_option >&5"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2818 $as_echo "$ac_try_echo"; } >&5
2819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2820 ac_status=$?
2821 if test -s conftest.err; then
2822 sed '10a\
2823 ... rest of stderr output deleted ...
2824 10q' conftest.err >conftest.er1
2825 cat conftest.er1 >&5
2826 rm -f conftest.er1 conftest.err
2828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; }
2830 done
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2836 main ()
2840 return 0;
2842 _ACEOF
2843 ac_clean_files_save=$ac_clean_files
2844 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2845 # Try to create an executable without -o first, disregard a.out.
2846 # It will help us diagnose broken compilers, and finding out an intuition
2847 # of exeext.
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2849 $as_echo_n "checking for C compiler default output file name... " >&6; }
2850 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2852 # The possible output files:
2853 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2855 ac_rmfiles=
2856 for ac_file in $ac_files
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2860 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2861 esac
2862 done
2863 rm -f $ac_rmfiles
2865 if { { ac_try="$ac_link_default"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_link_default") 2>&5
2873 ac_status=$?
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }; then :
2876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2877 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2878 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2879 # so that the user can short-circuit this test for compilers unknown to
2880 # Autoconf.
2881 for ac_file in $ac_files ''
2883 test -f "$ac_file" || continue
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2887 [ab].out )
2888 # We found the default executable, but exeext='' is most
2889 # certainly right.
2890 break;;
2891 *.* )
2892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2893 then :; else
2894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896 # We set ac_cv_exeext here because the later test for it is not
2897 # safe: cross compilers may not add the suffix if given an `-o'
2898 # argument, so we may need to know it at that point already.
2899 # Even if this section looks crufty: it has the advantage of
2900 # actually working.
2901 break;;
2903 break;;
2904 esac
2905 done
2906 test "$ac_cv_exeext" = no && ac_cv_exeext=
2908 else
2909 ac_file=''
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2912 $as_echo "$ac_file" >&6; }
2913 if test -z "$ac_file"; then :
2914 $as_echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919 { as_fn_set_status 77
2920 as_fn_error "C compiler cannot create executables
2921 See \`config.log' for more details." "$LINENO" 5; }; }
2923 ac_exeext=$ac_cv_exeext
2925 # Check that the compiler produces executables we can run. If not, either
2926 # the compiler is broken, or we cross compile.
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2928 $as_echo_n "checking whether the C compiler works... " >&6; }
2929 # If not cross compiling, check that we can run a simple program.
2930 if test "$cross_compiling" != yes; then
2931 if { ac_try='./$ac_file'
2932 { { case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_try") 2>&5
2939 ac_status=$?
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }; }; then
2942 cross_compiling=no
2943 else
2944 if test "$cross_compiling" = maybe; then
2945 cross_compiling=yes
2946 else
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error "cannot run C compiled programs.
2950 If you meant to cross compile, use \`--host'.
2951 See \`config.log' for more details." "$LINENO" 5; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2956 $as_echo "yes" >&6; }
2958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2959 ac_clean_files=$ac_clean_files_save
2960 # Check that the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2963 $as_echo_n "checking whether we are cross compiling... " >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2965 $as_echo "$cross_compiling" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2968 $as_echo_n "checking for suffix of executables... " >&6; }
2969 if { { ac_try="$ac_link"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_link") 2>&5
2977 ac_status=$?
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }; then :
2980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2982 # work properly (i.e., refer to `conftest.exe'), while it won't with
2983 # `rm'.
2984 for ac_file in conftest.exe conftest conftest.*; do
2985 test -f "$ac_file" || continue
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 break;;
2990 * ) break;;
2991 esac
2992 done
2993 else
2994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error "cannot compute suffix of executables: cannot compile and link
2997 See \`config.log' for more details." "$LINENO" 5; }
2999 rm -f conftest$ac_cv_exeext
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3001 $as_echo "$ac_cv_exeext" >&6; }
3003 rm -f conftest.$ac_ext
3004 EXEEXT=$ac_cv_exeext
3005 ac_exeext=$EXEEXT
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3007 $as_echo_n "checking for suffix of object files... " >&6; }
3008 if test "${ac_cv_objext+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h. */
3015 main ()
3019 return 0;
3021 _ACEOF
3022 rm -f conftest.o conftest.obj
3023 if { { ac_try="$ac_compile"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_compile") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 for ac_file in conftest.o conftest.obj conftest.*; do
3035 test -f "$ac_file" || continue;
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3039 break;;
3040 esac
3041 done
3042 else
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error "cannot compute suffix of object files: cannot compile
3049 See \`config.log' for more details." "$LINENO" 5; }
3051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3054 $as_echo "$ac_cv_objext" >&6; }
3055 OBJEXT=$ac_cv_objext
3056 ac_objext=$OBJEXT
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3059 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3066 main ()
3068 #ifndef __GNUC__
3069 choke me
3070 #endif
3073 return 0;
3075 _ACEOF
3076 if ac_fn_c_try_compile "$LINENO"; then :
3077 ac_compiler_gnu=yes
3078 else
3079 ac_compiler_gnu=no
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3087 if test $ac_compiler_gnu = yes; then
3088 GCC=yes
3089 else
3090 GCC=
3092 ac_test_CFLAGS=${CFLAGS+set}
3093 ac_save_CFLAGS=$CFLAGS
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3096 if test "${ac_cv_prog_cc_g+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 ac_save_c_werror_flag=$ac_c_werror_flag
3100 ac_c_werror_flag=yes
3101 ac_cv_prog_cc_g=no
3102 CFLAGS="-g"
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3107 main ()
3111 return 0;
3113 _ACEOF
3114 if ac_fn_c_try_compile "$LINENO"; then :
3115 ac_cv_prog_cc_g=yes
3116 else
3117 CFLAGS=""
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3122 main ()
3126 return 0;
3128 _ACEOF
3129 if ac_fn_c_try_compile "$LINENO"; then :
3131 else
3132 ac_c_werror_flag=$ac_save_c_werror_flag
3133 CFLAGS="-g"
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3138 main ()
3142 return 0;
3144 _ACEOF
3145 if ac_fn_c_try_compile "$LINENO"; then :
3146 ac_cv_prog_cc_g=yes
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 ac_c_werror_flag=$ac_save_c_werror_flag
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3156 $as_echo "$ac_cv_prog_cc_g" >&6; }
3157 if test "$ac_test_CFLAGS" = set; then
3158 CFLAGS=$ac_save_CFLAGS
3159 elif test $ac_cv_prog_cc_g = yes; then
3160 if test "$GCC" = yes; then
3161 CFLAGS="-g -O2"
3162 else
3163 CFLAGS="-g"
3165 else
3166 if test "$GCC" = yes; then
3167 CFLAGS="-O2"
3168 else
3169 CFLAGS=
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3174 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_cv_prog_cc_c89=no
3178 ac_save_CC=$CC
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3181 #include <stdarg.h>
3182 #include <stdio.h>
3183 #include <sys/types.h>
3184 #include <sys/stat.h>
3185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3186 struct buf { int x; };
3187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3188 static char *e (p, i)
3189 char **p;
3190 int i;
3192 return p[i];
3194 static char *f (char * (*g) (char **, int), char **p, ...)
3196 char *s;
3197 va_list v;
3198 va_start (v,p);
3199 s = g (p, va_arg (v,int));
3200 va_end (v);
3201 return s;
3204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3205 function prototypes and stuff, but not '\xHH' hex character constants.
3206 These don't provoke an error unfortunately, instead are silently treated
3207 as 'x'. The following induces an error, until -std is added to get
3208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3209 array size at least. It's necessary to write '\x00'==0 to get something
3210 that's true only with -std. */
3211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3214 inside strings and character constants. */
3215 #define FOO(x) 'x'
3216 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3218 int test (int i, double x);
3219 struct s1 {int (*f) (int a);};
3220 struct s2 {int (*f) (double a);};
3221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3222 int argc;
3223 char **argv;
3225 main ()
3227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3229 return 0;
3231 _ACEOF
3232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3235 CC="$ac_save_CC $ac_arg"
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_cv_prog_cc_c89=$ac_arg
3239 rm -f core conftest.err conftest.$ac_objext
3240 test "x$ac_cv_prog_cc_c89" != "xno" && break
3241 done
3242 rm -f conftest.$ac_ext
3243 CC=$ac_save_CC
3246 # AC_CACHE_VAL
3247 case "x$ac_cv_prog_cc_c89" in
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3250 $as_echo "none needed" >&6; } ;;
3251 xno)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3253 $as_echo "unsupported" >&6; } ;;
3255 CC="$CC $ac_cv_prog_cc_c89"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3257 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3258 esac
3259 if test "x$ac_cv_prog_cc_c89" != xno; then :
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3276 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3277 # On Suns, sometimes $CPP names a directory.
3278 if test -n "$CPP" && test -d "$CPP"; then
3279 CPP=
3281 if test -z "$CPP"; then
3282 if test "${ac_cv_prog_CPP+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 # Double quotes because CPP needs to be expanded
3286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3288 ac_preproc_ok=false
3289 for ac_c_preproc_warn_flag in '' yes
3291 # Use a header file that comes with gcc, so configuring glibc
3292 # with a fresh cross-compiler works.
3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294 # <limits.h> exists even on freestanding compilers.
3295 # On the NeXT, cc -E runs the code through the compiler's parser,
3296 # not just through cpp. "Syntax error" is here to catch this case.
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3299 #ifdef __STDC__
3300 # include <limits.h>
3301 #else
3302 # include <assert.h>
3303 #endif
3304 Syntax error
3305 _ACEOF
3306 if ac_fn_c_try_cpp "$LINENO"; then :
3308 else
3309 # Broken: fails on valid input.
3310 continue
3312 rm -f conftest.err conftest.$ac_ext
3314 # OK, works on sane cases. Now check whether nonexistent headers
3315 # can be detected and how.
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 #include <ac_nonexistent.h>
3319 _ACEOF
3320 if ac_fn_c_try_cpp "$LINENO"; then :
3321 # Broken: success on invalid input.
3322 continue
3323 else
3324 # Passes both tests.
3325 ac_preproc_ok=:
3326 break
3328 rm -f conftest.err conftest.$ac_ext
3330 done
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then :
3334 break
3337 done
3338 ac_cv_prog_CPP=$CPP
3341 CPP=$ac_cv_prog_CPP
3342 else
3343 ac_cv_prog_CPP=$CPP
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3346 $as_echo "$CPP" >&6; }
3347 ac_preproc_ok=false
3348 for ac_c_preproc_warn_flag in '' yes
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363 Syntax error
3364 _ACEOF
3365 if ac_fn_c_try_cpp "$LINENO"; then :
3367 else
3368 # Broken: fails on valid input.
3369 continue
3371 rm -f conftest.err conftest.$ac_ext
3373 # OK, works on sane cases. Now check whether nonexistent headers
3374 # can be detected and how.
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if ac_fn_c_try_cpp "$LINENO"; then :
3380 # Broken: success on invalid input.
3381 continue
3382 else
3383 # Passes both tests.
3384 ac_preproc_ok=:
3385 break
3387 rm -f conftest.err conftest.$ac_ext
3389 done
3390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391 rm -f conftest.err conftest.$ac_ext
3392 if $ac_preproc_ok; then :
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3398 See \`config.log' for more details." "$LINENO" 5; }
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3409 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3410 if test "${ac_cv_path_GREP+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -z "$GREP"; then
3414 ac_path_GREP_found=false
3415 # Loop through the user's path and test for each of PROGNAME-LIST
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_prog in grep ggrep; do
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3424 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3425 # Check for GNU ac_path_GREP and select it if it is found.
3426 # Check for GNU $ac_path_GREP
3427 case `"$ac_path_GREP" --version 2>&1` in
3428 *GNU*)
3429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3431 ac_count=0
3432 $as_echo_n 0123456789 >"conftest.in"
3433 while :
3435 cat "conftest.in" "conftest.in" >"conftest.tmp"
3436 mv "conftest.tmp" "conftest.in"
3437 cp "conftest.in" "conftest.nl"
3438 $as_echo 'GREP' >> "conftest.nl"
3439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3441 as_fn_arith $ac_count + 1 && ac_count=$as_val
3442 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3443 # Best one so far, save it but keep looking for a better one
3444 ac_cv_path_GREP="$ac_path_GREP"
3445 ac_path_GREP_max=$ac_count
3447 # 10*(2^10) chars as input seems more than enough
3448 test $ac_count -gt 10 && break
3449 done
3450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3451 esac
3453 $ac_path_GREP_found && break 3
3454 done
3455 done
3456 done
3457 IFS=$as_save_IFS
3458 if test -z "$ac_cv_path_GREP"; then
3459 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3461 else
3462 ac_cv_path_GREP=$GREP
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3467 $as_echo "$ac_cv_path_GREP" >&6; }
3468 GREP="$ac_cv_path_GREP"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3472 $as_echo_n "checking for egrep... " >&6; }
3473 if test "${ac_cv_path_EGREP+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3477 then ac_cv_path_EGREP="$GREP -E"
3478 else
3479 if test -z "$EGREP"; then
3480 ac_path_EGREP_found=false
3481 # Loop through the user's path and test for each of PROGNAME-LIST
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_prog in egrep; do
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3490 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3491 # Check for GNU ac_path_EGREP and select it if it is found.
3492 # Check for GNU $ac_path_EGREP
3493 case `"$ac_path_EGREP" --version 2>&1` in
3494 *GNU*)
3495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3497 ac_count=0
3498 $as_echo_n 0123456789 >"conftest.in"
3499 while :
3501 cat "conftest.in" "conftest.in" >"conftest.tmp"
3502 mv "conftest.tmp" "conftest.in"
3503 cp "conftest.in" "conftest.nl"
3504 $as_echo 'EGREP' >> "conftest.nl"
3505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3507 as_fn_arith $ac_count + 1 && ac_count=$as_val
3508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3509 # Best one so far, save it but keep looking for a better one
3510 ac_cv_path_EGREP="$ac_path_EGREP"
3511 ac_path_EGREP_max=$ac_count
3513 # 10*(2^10) chars as input seems more than enough
3514 test $ac_count -gt 10 && break
3515 done
3516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3517 esac
3519 $ac_path_EGREP_found && break 3
3520 done
3521 done
3522 done
3523 IFS=$as_save_IFS
3524 if test -z "$ac_cv_path_EGREP"; then
3525 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3527 else
3528 ac_cv_path_EGREP=$EGREP
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3534 $as_echo "$ac_cv_path_EGREP" >&6; }
3535 EGREP="$ac_cv_path_EGREP"
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3539 $as_echo_n "checking for ANSI C header files... " >&6; }
3540 if test "${ac_cv_header_stdc+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdlib.h>
3546 #include <stdarg.h>
3547 #include <string.h>
3548 #include <float.h>
3551 main ()
3555 return 0;
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_header_stdc=yes
3560 else
3561 ac_cv_header_stdc=no
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 if test $ac_cv_header_stdc = yes; then
3566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <string.h>
3571 _ACEOF
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 $EGREP "memchr" >/dev/null 2>&1; then :
3575 else
3576 ac_cv_header_stdc=no
3578 rm -f conftest*
3582 if test $ac_cv_header_stdc = yes; then
3583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586 #include <stdlib.h>
3588 _ACEOF
3589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3590 $EGREP "free" >/dev/null 2>&1; then :
3592 else
3593 ac_cv_header_stdc=no
3595 rm -f conftest*
3599 if test $ac_cv_header_stdc = yes; then
3600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3601 if test "$cross_compiling" = yes; then :
3603 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <ctype.h>
3607 #include <stdlib.h>
3608 #if ((' ' & 0x0FF) == 0x020)
3609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3611 #else
3612 # define ISLOWER(c) \
3613 (('a' <= (c) && (c) <= 'i') \
3614 || ('j' <= (c) && (c) <= 'r') \
3615 || ('s' <= (c) && (c) <= 'z'))
3616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3617 #endif
3619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3621 main ()
3623 int i;
3624 for (i = 0; i < 256; i++)
3625 if (XOR (islower (i), ISLOWER (i))
3626 || toupper (i) != TOUPPER (i))
3627 return 2;
3628 return 0;
3630 _ACEOF
3631 if ac_fn_c_try_run "$LINENO"; then :
3633 else
3634 ac_cv_header_stdc=no
3636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3637 conftest.$ac_objext conftest.beam conftest.$ac_ext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3643 $as_echo "$ac_cv_header_stdc" >&6; }
3644 if test $ac_cv_header_stdc = yes; then
3646 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3651 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3652 inttypes.h stdint.h unistd.h
3653 do :
3654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3655 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3657 eval as_val=\$$as_ac_Header
3658 if test "x$as_val" = x""yes; then :
3659 cat >>confdefs.h <<_ACEOF
3660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3661 _ACEOF
3665 done
3669 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3670 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3671 MINIX=yes
3672 else
3673 MINIX=
3677 if test "$MINIX" = yes; then
3679 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3682 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3685 $as_echo "#define _MINIX 1" >>confdefs.h
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3691 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3692 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3698 # define __EXTENSIONS__ 1
3699 $ac_includes_default
3701 main ()
3705 return 0;
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709 ac_cv_safe_to_define___extensions__=yes
3710 else
3711 ac_cv_safe_to_define___extensions__=no
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3716 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3717 test $ac_cv_safe_to_define___extensions__ = yes &&
3718 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3720 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3722 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3724 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3726 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3729 # Determine the noncanonical target name, for directory use.
3730 case ${build_alias} in
3731 "") build_noncanonical=${build} ;;
3732 *) build_noncanonical=${build_alias} ;;
3733 esac
3735 case ${host_alias} in
3736 "") host_noncanonical=${build_noncanonical} ;;
3737 *) host_noncanonical=${host_alias} ;;
3738 esac
3740 case ${target_alias} in
3741 "") target_noncanonical=${host_noncanonical} ;;
3742 *) target_noncanonical=${target_alias} ;;
3743 esac
3748 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3749 # have matching libraries, they should use host libraries: Makefile.tpl
3750 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3751 # However, they still use the build modules, because the corresponding
3752 # host modules (e.g. bison) are only built for the host when bootstrap
3753 # finishes. So:
3754 # - build_subdir is where we find build modules, and never changes.
3755 # - build_libsubdir is where we find build libraries, and can be overridden.
3757 # Prefix 'build-' so this never conflicts with target_subdir.
3758 build_subdir="build-${build_noncanonical}"
3760 # Check whether --with-build-libsubdir was given.
3761 if test "${with_build_libsubdir+set}" = set; then :
3762 withval=$with_build_libsubdir; build_libsubdir="$withval"
3763 else
3764 build_libsubdir="$build_subdir"
3767 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3768 if ( test $srcdir = . && test -d gcc ) \
3769 || test -d $srcdir/../host-${host_noncanonical}; then
3770 host_subdir="host-${host_noncanonical}"
3771 else
3772 host_subdir=.
3774 # No prefix.
3775 target_subdir=${target_noncanonical}
3778 # 1.11.1: Require that version of automake.
3779 # foreign: Don't require README, INSTALL, NEWS, etc.
3780 # no-define: Don't define PACKAGE and VERSION.
3781 # -Wall: Issue all automake warnings.
3782 # -Wno-portability: Don't warn about constructs supported by GNU make.
3783 # (because GCC requires GNU make anyhow).
3784 am__api_version='1.11'
3786 # Find a good install program. We prefer a C program (faster),
3787 # so one script is as good as another. But avoid the broken or
3788 # incompatible versions:
3789 # SysV /etc/install, /usr/sbin/install
3790 # SunOS /usr/etc/install
3791 # IRIX /sbin/install
3792 # AIX /bin/install
3793 # AmigaOS /C/install, which installs bootblocks on floppy discs
3794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797 # OS/2's system install, which has a completely different semantic
3798 # ./install, which can be erroneously created by make from ./install.sh.
3799 # Reject install programs that cannot install multiple files.
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3802 if test -z "$INSTALL"; then
3803 if test "${ac_cv_path_install+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 # Account for people who put trailing slashes in PATH elements.
3812 case $as_dir/ in #((
3813 ./ | .// | /[cC]/* | \
3814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3816 /usr/ucb/* ) ;;
3818 # OSF1 and SCO ODT 3.0 have their own names for install.
3819 # Don't use installbsd from OSF since it installs stuff as root
3820 # by default.
3821 for ac_prog in ginstall scoinst install; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3824 if test $ac_prog = install &&
3825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # AIX install. It has an incompatible calling convention.
3828 elif test $ac_prog = install &&
3829 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3830 # program-specific install script used by HP pwplus--don't use.
3832 else
3833 rm -rf conftest.one conftest.two conftest.dir
3834 echo one > conftest.one
3835 echo two > conftest.two
3836 mkdir conftest.dir
3837 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3838 test -s conftest.one && test -s conftest.two &&
3839 test -s conftest.dir/conftest.one &&
3840 test -s conftest.dir/conftest.two
3841 then
3842 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3843 break 3
3847 done
3848 done
3850 esac
3852 done
3853 IFS=$as_save_IFS
3855 rm -rf conftest.one conftest.two conftest.dir
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL=$ac_cv_path_install
3860 else
3861 # As a last resort, use the slow shell script. Don't cache a
3862 # value for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the value is a relative name.
3865 INSTALL=$ac_install_sh
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3869 $as_echo "$INSTALL" >&6; }
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3880 $as_echo_n "checking whether build environment is sane... " >&6; }
3881 # Just in case
3882 sleep 1
3883 echo timestamp > conftest.file
3884 # Reject unsafe characters in $srcdir or the absolute working directory
3885 # name. Accept space and tab only in the latter.
3886 am_lf='
3888 case `pwd` in
3889 *[\\\"\#\$\&\'\`$am_lf]*)
3890 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3891 esac
3892 case $srcdir in
3893 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3894 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3895 esac
3897 # Do `set' in a subshell so we don't clobber the current shell's
3898 # arguments. Must try -L first in case configure is actually a
3899 # symlink; some systems play weird games with the mod time of symlinks
3900 # (eg FreeBSD returns the mod time of the symlink's containing
3901 # directory).
3902 if (
3903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3904 if test "$*" = "X"; then
3905 # -L didn't work.
3906 set X `ls -t "$srcdir/configure" conftest.file`
3908 rm -f conftest.file
3909 if test "$*" != "X $srcdir/configure conftest.file" \
3910 && test "$*" != "X conftest.file $srcdir/configure"; then
3912 # If neither matched, then we have a broken ls. This can happen
3913 # if, for instance, CONFIG_SHELL is bash and it inherits a
3914 # broken ls alias from the environment. This has actually
3915 # happened. Such a system could not be considered "sane".
3916 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3917 alias in your environment" "$LINENO" 5
3920 test "$2" = conftest.file
3922 then
3923 # Ok.
3925 else
3926 as_fn_error "newly created file is older than distributed files!
3927 Check your system clock" "$LINENO" 5
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3930 $as_echo "yes" >&6; }
3931 test "$program_prefix" != NONE &&
3932 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3933 # Use a double $ so make ignores it.
3934 test "$program_suffix" != NONE &&
3935 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3936 # Double any \ or $.
3937 # By default was `s,x,x', remove it if useless.
3938 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3939 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3941 # expand $ac_aux_dir to an absolute path
3942 am_aux_dir=`cd $ac_aux_dir && pwd`
3944 if test x"${MISSING+set}" != xset; then
3945 case $am_aux_dir in
3946 *\ * | *\ *)
3947 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3949 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3950 esac
3952 # Use eval to expand $SHELL
3953 if eval "$MISSING --run true"; then
3954 am_missing_run="$MISSING --run "
3955 else
3956 am_missing_run=
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3958 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3961 if test x"${install_sh}" != xset; then
3962 case $am_aux_dir in
3963 *\ * | *\ *)
3964 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3966 install_sh="\${SHELL} $am_aux_dir/install-sh"
3967 esac
3970 # Installed binaries are usually stripped using `strip' when the user
3971 # run `make install-strip'. However `strip' might not be the right
3972 # tool to use in cross-compilation environments, therefore Automake
3973 # will honor the `STRIP' environment variable to overrule this program.
3974 if test "$cross_compiling" != no; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}strip; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_STRIP+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$STRIP"; then
3984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
3999 IFS=$as_save_IFS
4003 STRIP=$ac_cv_prog_STRIP
4004 if test -n "$STRIP"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4006 $as_echo "$STRIP" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4014 if test -z "$ac_cv_prog_STRIP"; then
4015 ac_ct_STRIP=$STRIP
4016 # Extract the first word of "strip", so it can be a program name with args.
4017 set dummy strip; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$ac_ct_STRIP"; then
4024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_ac_ct_STRIP="strip"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4043 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4044 if test -n "$ac_ct_STRIP"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4046 $as_echo "$ac_ct_STRIP" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4052 if test "x$ac_ct_STRIP" = x; then
4053 STRIP=":"
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059 ac_tool_warned=yes ;;
4060 esac
4061 STRIP=$ac_ct_STRIP
4063 else
4064 STRIP="$ac_cv_prog_STRIP"
4068 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4071 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4072 if test -z "$MKDIR_P"; then
4073 if test "${ac_cv_path_mkdir+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in mkdir gmkdir; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4084 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4085 'mkdir (GNU coreutils) '* | \
4086 'mkdir (coreutils) '* | \
4087 'mkdir (fileutils) '4.1*)
4088 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4089 break 3;;
4090 esac
4091 done
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 if test "${ac_cv_path_mkdir+set}" = set; then
4099 MKDIR_P="$ac_cv_path_mkdir -p"
4100 else
4101 # As a last resort, use the slow shell script. Don't cache a
4102 # value for MKDIR_P within a source directory, because that will
4103 # break other packages using the cache if that directory is
4104 # removed, or if the value is a relative name.
4105 test -d ./--version && rmdir ./--version
4106 MKDIR_P="$ac_install_sh -d"
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4110 $as_echo "$MKDIR_P" >&6; }
4112 mkdir_p="$MKDIR_P"
4113 case $mkdir_p in
4114 [\\/$]* | ?:[\\/]*) ;;
4115 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4116 esac
4118 for ac_prog in gawk mawk nawk awk
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_AWK+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$AWK"; then
4128 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_AWK="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4143 IFS=$as_save_IFS
4147 AWK=$ac_cv_prog_AWK
4148 if test -n "$AWK"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4150 $as_echo "$AWK" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$AWK" && break
4158 done
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4162 set x ${MAKE-make}
4163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 cat >conftest.make <<\_ACEOF
4168 SHELL = /bin/sh
4169 all:
4170 @echo '@@@%%%=$(MAKE)=@@@%%%'
4171 _ACEOF
4172 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4174 *@@@%%%=?*=@@@%%%*)
4175 eval ac_cv_prog_make_${ac_make}_set=yes;;
4177 eval ac_cv_prog_make_${ac_make}_set=no;;
4178 esac
4179 rm -f conftest.make
4181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 $as_echo "yes" >&6; }
4184 SET_MAKE=
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188 SET_MAKE="MAKE=${MAKE-make}"
4191 rm -rf .tst 2>/dev/null
4192 mkdir .tst 2>/dev/null
4193 if test -d .tst; then
4194 am__leading_dot=.
4195 else
4196 am__leading_dot=_
4198 rmdir .tst 2>/dev/null
4200 DEPDIR="${am__leading_dot}deps"
4202 ac_config_commands="$ac_config_commands depfiles"
4205 am_make=${MAKE-make}
4206 cat > confinc << 'END'
4207 am__doit:
4208 @echo this is the am__doit target
4209 .PHONY: am__doit
4211 # If we don't find an include directive, just comment out the code.
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4214 am__include="#"
4215 am__quote=
4216 _am_result=none
4217 # First try GNU make style include.
4218 echo "include confinc" > confmf
4219 # Ignore all kinds of additional output from `make'.
4220 case `$am_make -s -f confmf 2> /dev/null` in #(
4221 *the\ am__doit\ target*)
4222 am__include=include
4223 am__quote=
4224 _am_result=GNU
4226 esac
4227 # Now try BSD make style include.
4228 if test "$am__include" = "#"; then
4229 echo '.include "confinc"' > confmf
4230 case `$am_make -s -f confmf 2> /dev/null` in #(
4231 *the\ am__doit\ target*)
4232 am__include=.include
4233 am__quote="\""
4234 _am_result=BSD
4236 esac
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4241 $as_echo "$_am_result" >&6; }
4242 rm -f confinc confmf
4244 # Check whether --enable-dependency-tracking was given.
4245 if test "${enable_dependency_tracking+set}" = set; then :
4246 enableval=$enable_dependency_tracking;
4249 if test "x$enable_dependency_tracking" != xno; then
4250 am_depcomp="$ac_aux_dir/depcomp"
4251 AMDEPBACKSLASH='\'
4253 if test "x$enable_dependency_tracking" != xno; then
4254 AMDEP_TRUE=
4255 AMDEP_FALSE='#'
4256 else
4257 AMDEP_TRUE='#'
4258 AMDEP_FALSE=
4262 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4263 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4264 # is not polluted with repeated "-I."
4265 am__isrc=' -I$(srcdir)'
4266 # test to see if srcdir already configured
4267 if test -f $srcdir/config.status; then
4268 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4272 # test whether we have cygpath
4273 if test -z "$CYGPATH_W"; then
4274 if (cygpath --version) >/dev/null 2>/dev/null; then
4275 CYGPATH_W='cygpath -w'
4276 else
4277 CYGPATH_W=echo
4282 # Define the identity of the package.
4283 PACKAGE='libcc1'
4284 VERSION='version-unused'
4287 # Some tools Automake needs.
4289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4303 # We need awk for the "check" target. The system "awk" is bad on
4304 # some platforms.
4305 # Always define AMTAR for backward compatibility.
4307 AMTAR=${AMTAR-"${am_missing_run}tar"}
4309 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4314 depcc="$CC" am_compiler_list=
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4317 $as_echo_n "checking dependency style of $depcc... " >&6; }
4318 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322 # We make a subdir and do the tests there. Otherwise we can end up
4323 # making bogus files that we don't know about and never remove. For
4324 # instance it was reported that on HP-UX the gcc test will end up
4325 # making a dummy file named `D' -- because `-MD' means `put the output
4326 # in D'.
4327 mkdir conftest.dir
4328 # Copy depcomp to subdir because otherwise we won't find it if we're
4329 # using a relative directory.
4330 cp "$am_depcomp" conftest.dir
4331 cd conftest.dir
4332 # We will build objects and dependencies in a subdirectory because
4333 # it helps to detect inapplicable dependency modes. For instance
4334 # both Tru64's cc and ICC support -MD to output dependencies as a
4335 # side effect of compilation, but ICC will put the dependencies in
4336 # the current directory while Tru64 will put them in the object
4337 # directory.
4338 mkdir sub
4340 am_cv_CC_dependencies_compiler_type=none
4341 if test "$am_compiler_list" = ""; then
4342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4344 am__universal=false
4345 case " $depcc " in #(
4346 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4347 esac
4349 for depmode in $am_compiler_list; do
4350 # Setup a source with many dependencies, because some compilers
4351 # like to wrap large dependency lists on column 80 (with \), and
4352 # we should not choose a depcomp mode which is confused by this.
4354 # We need to recreate these files for each test, as the compiler may
4355 # overwrite some of them when testing with obscure command lines.
4356 # This happens at least with the AIX C compiler.
4357 : > sub/conftest.c
4358 for i in 1 2 3 4 5 6; do
4359 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4360 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4361 # Solaris 8's {/usr,}/bin/sh.
4362 touch sub/conftst$i.h
4363 done
4364 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367 # mode. It turns out that the SunPro C++ compiler does not properly
4368 # handle `-M -o', and we need to detect this. Also, some Intel
4369 # versions had trouble with output in subdirs
4370 am__obj=sub/conftest.${OBJEXT-o}
4371 am__minus_obj="-o $am__obj"
4372 case $depmode in
4373 gcc)
4374 # This depmode causes a compiler race in universal mode.
4375 test "$am__universal" = false || continue
4377 nosideeffect)
4378 # after this tag, mechanisms are not by side-effect, so they'll
4379 # only be used when explicitly requested
4380 if test "x$enable_dependency_tracking" = xyes; then
4381 continue
4382 else
4383 break
4386 msvisualcpp | msvcmsys)
4387 # This compiler won't grok `-c -o', but also, the minuso test has
4388 # not run yet. These depmodes are late enough in the game, and
4389 # so weak that their functioning should not be impacted.
4390 am__obj=conftest.${OBJEXT-o}
4391 am__minus_obj=
4393 none) break ;;
4394 esac
4395 if depmode=$depmode \
4396 source=sub/conftest.c object=$am__obj \
4397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4398 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4399 >/dev/null 2>conftest.err &&
4400 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4401 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4402 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4403 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4404 # icc doesn't choke on unknown options, it will just issue warnings
4405 # or remarks (even with -Werror). So we grep stderr for any message
4406 # that says an option was ignored or not supported.
4407 # When given -MP, icc 7.0 and 7.1 complain thusly:
4408 # icc: Command line warning: ignoring option '-M'; no argument required
4409 # The diagnosis changed in icc 8.0:
4410 # icc: Command line remark: option '-MP' not supported
4411 if (grep 'ignoring option' conftest.err ||
4412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4413 am_cv_CC_dependencies_compiler_type=$depmode
4414 break
4417 done
4419 cd ..
4420 rm -rf conftest.dir
4421 else
4422 am_cv_CC_dependencies_compiler_type=none
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4427 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4428 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4431 test "x$enable_dependency_tracking" != xno \
4432 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4433 am__fastdepCC_TRUE=
4434 am__fastdepCC_FALSE='#'
4435 else
4436 am__fastdepCC_TRUE='#'
4437 am__fastdepCC_FALSE=
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4444 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4445 # Check whether --enable-maintainer-mode was given.
4446 if test "${enable_maintainer_mode+set}" = set; then :
4447 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4448 else
4449 USE_MAINTAINER_MODE=no
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4453 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4454 if test $USE_MAINTAINER_MODE = yes; then
4455 MAINTAINER_MODE_TRUE=
4456 MAINTAINER_MODE_FALSE='#'
4457 else
4458 MAINTAINER_MODE_TRUE='#'
4459 MAINTAINER_MODE_FALSE=
4462 MAINT=$MAINTAINER_MODE_TRUE
4466 case `pwd` in
4467 *\ * | *\ *)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4469 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4470 esac
4474 macro_version='2.2.7a'
4475 macro_revision='1.3134'
4489 ltmain="$ac_aux_dir/ltmain.sh"
4491 # Backslashify metacharacters that are still active within
4492 # double-quoted strings.
4493 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4495 # Same as above, but do not quote variable references.
4496 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4498 # Sed substitution to delay expansion of an escaped shell variable in a
4499 # double_quote_subst'ed string.
4500 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4502 # Sed substitution to delay expansion of an escaped single quote.
4503 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4505 # Sed substitution to avoid accidental globbing in evaled expressions
4506 no_glob_subst='s/\*/\\\*/g'
4508 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4509 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4510 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4513 $as_echo_n "checking how to print strings... " >&6; }
4514 # Test print first, because it will be a builtin if present.
4515 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4516 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4517 ECHO='print -r --'
4518 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4519 ECHO='printf %s\n'
4520 else
4521 # Use this function as a fallback that always works.
4522 func_fallback_echo ()
4524 eval 'cat <<_LTECHO_EOF
4526 _LTECHO_EOF'
4528 ECHO='func_fallback_echo'
4531 # func_echo_all arg...
4532 # Invoke $ECHO with all args, space-separated.
4533 func_echo_all ()
4535 $ECHO ""
4538 case "$ECHO" in
4539 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4540 $as_echo "printf" >&6; } ;;
4541 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4542 $as_echo "print -r" >&6; } ;;
4543 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4544 $as_echo "cat" >&6; } ;;
4545 esac
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4561 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4562 if test "${ac_cv_path_SED+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4566 for ac_i in 1 2 3 4 5 6 7; do
4567 ac_script="$ac_script$as_nl$ac_script"
4568 done
4569 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4570 { ac_script=; unset ac_script;}
4571 if test -z "$SED"; then
4572 ac_path_SED_found=false
4573 # Loop through the user's path and test for each of PROGNAME-LIST
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in sed gsed; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4582 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4583 # Check for GNU ac_path_SED and select it if it is found.
4584 # Check for GNU $ac_path_SED
4585 case `"$ac_path_SED" --version 2>&1` in
4586 *GNU*)
4587 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4589 ac_count=0
4590 $as_echo_n 0123456789 >"conftest.in"
4591 while :
4593 cat "conftest.in" "conftest.in" >"conftest.tmp"
4594 mv "conftest.tmp" "conftest.in"
4595 cp "conftest.in" "conftest.nl"
4596 $as_echo '' >> "conftest.nl"
4597 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599 as_fn_arith $ac_count + 1 && ac_count=$as_val
4600 if test $ac_count -gt ${ac_path_SED_max-0}; then
4601 # Best one so far, save it but keep looking for a better one
4602 ac_cv_path_SED="$ac_path_SED"
4603 ac_path_SED_max=$ac_count
4605 # 10*(2^10) chars as input seems more than enough
4606 test $ac_count -gt 10 && break
4607 done
4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 esac
4611 $ac_path_SED_found && break 3
4612 done
4613 done
4614 done
4615 IFS=$as_save_IFS
4616 if test -z "$ac_cv_path_SED"; then
4617 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4619 else
4620 ac_cv_path_SED=$SED
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4625 $as_echo "$ac_cv_path_SED" >&6; }
4626 SED="$ac_cv_path_SED"
4627 rm -f conftest.sed
4629 test -z "$SED" && SED=sed
4630 Xsed="$SED -e 1s/^X//"
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4643 $as_echo_n "checking for fgrep... " >&6; }
4644 if test "${ac_cv_path_FGREP+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4648 then ac_cv_path_FGREP="$GREP -F"
4649 else
4650 if test -z "$FGREP"; then
4651 ac_path_FGREP_found=false
4652 # Loop through the user's path and test for each of PROGNAME-LIST
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_prog in fgrep; do
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4661 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4662 # Check for GNU ac_path_FGREP and select it if it is found.
4663 # Check for GNU $ac_path_FGREP
4664 case `"$ac_path_FGREP" --version 2>&1` in
4665 *GNU*)
4666 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4668 ac_count=0
4669 $as_echo_n 0123456789 >"conftest.in"
4670 while :
4672 cat "conftest.in" "conftest.in" >"conftest.tmp"
4673 mv "conftest.tmp" "conftest.in"
4674 cp "conftest.in" "conftest.nl"
4675 $as_echo 'FGREP' >> "conftest.nl"
4676 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4678 as_fn_arith $ac_count + 1 && ac_count=$as_val
4679 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4680 # Best one so far, save it but keep looking for a better one
4681 ac_cv_path_FGREP="$ac_path_FGREP"
4682 ac_path_FGREP_max=$ac_count
4684 # 10*(2^10) chars as input seems more than enough
4685 test $ac_count -gt 10 && break
4686 done
4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688 esac
4690 $ac_path_FGREP_found && break 3
4691 done
4692 done
4693 done
4694 IFS=$as_save_IFS
4695 if test -z "$ac_cv_path_FGREP"; then
4696 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4698 else
4699 ac_cv_path_FGREP=$FGREP
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4705 $as_echo "$ac_cv_path_FGREP" >&6; }
4706 FGREP="$ac_cv_path_FGREP"
4709 test -z "$GREP" && GREP=grep
4729 # Check whether --with-gnu-ld was given.
4730 if test "${with_gnu_ld+set}" = set; then :
4731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4732 else
4733 with_gnu_ld=no
4736 ac_prog=ld
4737 if test "$GCC" = yes; then
4738 # Check if gcc -print-prog-name=ld gives a path.
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4740 $as_echo_n "checking for ld used by $CC... " >&6; }
4741 case $host in
4742 *-*-mingw*)
4743 # gcc leaves a trailing carriage return which upsets mingw
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4747 esac
4748 case $ac_prog in
4749 # Accept absolute paths.
4750 [\\/]* | ?:[\\/]*)
4751 re_direlt='/[^/][^/]*/\.\./'
4752 # Canonicalize the pathname of ld
4753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4756 done
4757 test -z "$LD" && LD="$ac_prog"
4760 # If it fails, then pretend we aren't using GCC.
4761 ac_prog=ld
4764 # If it is relative, then search for the first ld in PATH.
4765 with_gnu_ld=unknown
4767 esac
4768 elif test "$with_gnu_ld" = yes; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4770 $as_echo_n "checking for GNU ld... " >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4773 $as_echo_n "checking for non-GNU ld... " >&6; }
4775 if test "${lt_cv_path_LD+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -z "$LD"; then
4779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4780 for ac_dir in $PATH; do
4781 IFS="$lt_save_ifs"
4782 test -z "$ac_dir" && ac_dir=.
4783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4784 lt_cv_path_LD="$ac_dir/$ac_prog"
4785 # Check to see if the program is GNU ld. I'd rather use --version,
4786 # but apparently some variants of GNU ld only accept -v.
4787 # Break only if it was the GNU/non-GNU ld that we prefer.
4788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4789 *GNU* | *'with BFD'*)
4790 test "$with_gnu_ld" != no && break
4793 test "$with_gnu_ld" != yes && break
4795 esac
4797 done
4798 IFS="$lt_save_ifs"
4799 else
4800 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4804 LD="$lt_cv_path_LD"
4805 if test -n "$LD"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4807 $as_echo "$LD" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4812 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4815 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4819 case `$LD -v 2>&1 </dev/null` in
4820 *GNU* | *'with BFD'*)
4821 lt_cv_prog_gnu_ld=yes
4824 lt_cv_prog_gnu_ld=no
4826 esac
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4829 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4830 with_gnu_ld=$lt_cv_prog_gnu_ld
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4841 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4842 if test "${lt_cv_path_NM+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$NM"; then
4846 # Let the user override the test.
4847 lt_cv_path_NM="$NM"
4848 else
4849 lt_nm_to_check="${ac_tool_prefix}nm"
4850 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4851 lt_nm_to_check="$lt_nm_to_check nm"
4853 for lt_tmp_nm in $lt_nm_to_check; do
4854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4855 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4856 IFS="$lt_save_ifs"
4857 test -z "$ac_dir" && ac_dir=.
4858 tmp_nm="$ac_dir/$lt_tmp_nm"
4859 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4860 # Check to see if the nm accepts a BSD-compat flag.
4861 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4862 # nm: unknown option "B" ignored
4863 # Tru64's nm complains that /dev/null is an invalid object file
4864 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4865 */dev/null* | *'Invalid file or object type'*)
4866 lt_cv_path_NM="$tmp_nm -B"
4867 break
4870 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4871 */dev/null*)
4872 lt_cv_path_NM="$tmp_nm -p"
4873 break
4876 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4877 continue # so that we can try to find one that supports BSD flags
4879 esac
4881 esac
4883 done
4884 IFS="$lt_save_ifs"
4885 done
4886 : ${lt_cv_path_NM=no}
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4890 $as_echo "$lt_cv_path_NM" >&6; }
4891 if test "$lt_cv_path_NM" != "no"; then
4892 NM="$lt_cv_path_NM"
4893 else
4894 # Didn't find any BSD compatible name lister, look for dumpbin.
4895 if test -n "$DUMPBIN"; then :
4896 # Let the user override the test.
4897 else
4898 if test -n "$ac_tool_prefix"; then
4899 for ac_prog in dumpbin "link -dump"
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$DUMPBIN"; then
4909 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4924 IFS=$as_save_IFS
4928 DUMPBIN=$ac_cv_prog_DUMPBIN
4929 if test -n "$DUMPBIN"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4931 $as_echo "$DUMPBIN" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4938 test -n "$DUMPBIN" && break
4939 done
4941 if test -z "$DUMPBIN"; then
4942 ac_ct_DUMPBIN=$DUMPBIN
4943 for ac_prog in dumpbin "link -dump"
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$ac_ct_DUMPBIN"; then
4953 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4973 if test -n "$ac_ct_DUMPBIN"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4975 $as_echo "$ac_ct_DUMPBIN" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$ac_ct_DUMPBIN" && break
4983 done
4985 if test "x$ac_ct_DUMPBIN" = x; then
4986 DUMPBIN=":"
4987 else
4988 case $cross_compiling:$ac_tool_warned in
4989 yes:)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994 DUMPBIN=$ac_ct_DUMPBIN
4998 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4999 *COFF*)
5000 DUMPBIN="$DUMPBIN -symbols"
5003 DUMPBIN=:
5005 esac
5008 if test "$DUMPBIN" != ":"; then
5009 NM="$DUMPBIN"
5012 test -z "$NM" && NM=nm
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5021 if test "${lt_cv_nm_interface+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 lt_cv_nm_interface="BSD nm"
5025 echo "int some_variable = 0;" > conftest.$ac_ext
5026 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5027 (eval "$ac_compile" 2>conftest.err)
5028 cat conftest.err >&5
5029 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5030 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5031 cat conftest.err >&5
5032 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5033 cat conftest.out >&5
5034 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5035 lt_cv_nm_interface="MS dumpbin"
5037 rm -f conftest*
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5040 $as_echo "$lt_cv_nm_interface" >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5043 $as_echo_n "checking whether ln -s works... " >&6; }
5044 LN_S=$as_ln_s
5045 if test "$LN_S" = "ln -s"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 $as_echo "yes" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5050 $as_echo "no, using $LN_S" >&6; }
5053 # find the maximum length of command line arguments
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5056 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5060 teststring="ABCD"
5062 case $build_os in
5063 msdosdjgpp*)
5064 # On DJGPP, this test can blow up pretty badly due to problems in libc
5065 # (any single argument exceeding 2000 bytes causes a buffer overrun
5066 # during glob expansion). Even if it were fixed, the result of this
5067 # check would be larger than it should be.
5068 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5071 gnu*)
5072 # Under GNU Hurd, this test is not required because there is
5073 # no limit to the length of command line arguments.
5074 # Libtool will interpret -1 as no limit whatsoever
5075 lt_cv_sys_max_cmd_len=-1;
5078 cygwin* | mingw* | cegcc*)
5079 # On Win9x/ME, this test blows up -- it succeeds, but takes
5080 # about 5 minutes as the teststring grows exponentially.
5081 # Worse, since 9x/ME are not pre-emptively multitasking,
5082 # you end up with a "frozen" computer, even though with patience
5083 # the test eventually succeeds (with a max line length of 256k).
5084 # Instead, let's just punt: use the minimum linelength reported by
5085 # all of the supported platforms: 8192 (on NT/2K/XP).
5086 lt_cv_sys_max_cmd_len=8192;
5089 mint*)
5090 # On MiNT this can take a long time and run out of memory.
5091 lt_cv_sys_max_cmd_len=8192;
5094 amigaos*)
5095 # On AmigaOS with pdksh, this test takes hours, literally.
5096 # So we just punt and use a minimum line length of 8192.
5097 lt_cv_sys_max_cmd_len=8192;
5100 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5101 # This has been around since 386BSD, at least. Likely further.
5102 if test -x /sbin/sysctl; then
5103 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5104 elif test -x /usr/sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5106 else
5107 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5109 # And add a safety zone
5110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114 interix*)
5115 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5116 lt_cv_sys_max_cmd_len=196608
5119 osf*)
5120 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5121 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5122 # nice to cause kernel panics so lets avoid the loop below.
5123 # First set a reasonable default.
5124 lt_cv_sys_max_cmd_len=16384
5126 if test -x /sbin/sysconfig; then
5127 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5128 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5129 esac
5132 sco3.2v5*)
5133 lt_cv_sys_max_cmd_len=102400
5135 sysv5* | sco5v6* | sysv4.2uw2*)
5136 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5137 if test -n "$kargmax"; then
5138 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5139 else
5140 lt_cv_sys_max_cmd_len=32768
5144 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5145 if test -n "$lt_cv_sys_max_cmd_len"; then
5146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5148 else
5149 # Make teststring a little bigger before we do anything with it.
5150 # a 1K string should be a reasonable start.
5151 for i in 1 2 3 4 5 6 7 8 ; do
5152 teststring=$teststring$teststring
5153 done
5154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5155 # If test is not a shell built-in, we'll probably end up computing a
5156 # maximum length that is only half of the actual maximum length, but
5157 # we can't tell.
5158 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5159 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5160 test $i != 17 # 1/2 MB should be enough
5162 i=`expr $i + 1`
5163 teststring=$teststring$teststring
5164 done
5165 # Only check the string length outside the loop.
5166 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5167 teststring=
5168 # Add a significant safety factor because C++ compilers can tack on
5169 # massive amounts of additional arguments before passing them to the
5170 # linker. It appears as though 1/2 is a usable value.
5171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5174 esac
5178 if test -n $lt_cv_sys_max_cmd_len ; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5180 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5183 $as_echo "none" >&6; }
5185 max_cmd_len=$lt_cv_sys_max_cmd_len
5192 : ${CP="cp -f"}
5193 : ${MV="mv -f"}
5194 : ${RM="rm -f"}
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5197 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5198 # Try some XSI features
5199 xsi_shell=no
5200 ( _lt_dummy="a/b/c"
5201 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5202 = c,a/b,, \
5203 && eval 'test $(( 1 + 1 )) -eq 2 \
5204 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5205 && xsi_shell=yes
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5207 $as_echo "$xsi_shell" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5211 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5212 lt_shell_append=no
5213 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5214 >/dev/null 2>&1 \
5215 && lt_shell_append=yes
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5217 $as_echo "$lt_shell_append" >&6; }
5220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5221 lt_unset=unset
5222 else
5223 lt_unset=false
5230 # test EBCDIC or ASCII
5231 case `echo X|tr X '\101'` in
5232 A) # ASCII based system
5233 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5234 lt_SP2NL='tr \040 \012'
5235 lt_NL2SP='tr \015\012 \040\040'
5237 *) # EBCDIC based system
5238 lt_SP2NL='tr \100 \n'
5239 lt_NL2SP='tr \r\n \100\100'
5241 esac
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5252 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5253 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 lt_cv_ld_reload_flag='-r'
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5259 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5260 reload_flag=$lt_cv_ld_reload_flag
5261 case $reload_flag in
5262 "" | " "*) ;;
5263 *) reload_flag=" $reload_flag" ;;
5264 esac
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5266 case $host_os in
5267 darwin*)
5268 if test "$GCC" = yes; then
5269 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5270 else
5271 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274 esac
5284 if test -n "$ac_tool_prefix"; then
5285 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5286 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$OBJDUMP"; then
5293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5306 done
5307 done
5308 IFS=$as_save_IFS
5312 OBJDUMP=$ac_cv_prog_OBJDUMP
5313 if test -n "$OBJDUMP"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5315 $as_echo "$OBJDUMP" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5323 if test -z "$ac_cv_prog_OBJDUMP"; then
5324 ac_ct_OBJDUMP=$OBJDUMP
5325 # Extract the first word of "objdump", so it can be a program name with args.
5326 set dummy objdump; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$ac_ct_OBJDUMP"; then
5333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5353 if test -n "$ac_ct_OBJDUMP"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5355 $as_echo "$ac_ct_OBJDUMP" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5361 if test "x$ac_ct_OBJDUMP" = x; then
5362 OBJDUMP="false"
5363 else
5364 case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370 OBJDUMP=$ac_ct_OBJDUMP
5372 else
5373 OBJDUMP="$ac_cv_prog_OBJDUMP"
5376 test -z "$OBJDUMP" && OBJDUMP=objdump
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5387 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5388 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 lt_cv_file_magic_cmd='$MAGIC_CMD'
5392 lt_cv_file_magic_test_file=
5393 lt_cv_deplibs_check_method='unknown'
5394 # Need to set the preceding variable on all platforms that support
5395 # interlibrary dependencies.
5396 # 'none' -- dependencies not supported.
5397 # `unknown' -- same as none, but documents that we really don't know.
5398 # 'pass_all' -- all dependencies passed with no checks.
5399 # 'test_compile' -- check by making test program.
5400 # 'file_magic [[regex]]' -- check by looking for files in library path
5401 # which responds to the $file_magic_cmd with a given extended regex.
5402 # If you have `file' or equivalent on your system and you're not sure
5403 # whether `pass_all' will *always* work, you probably want this one.
5405 case $host_os in
5406 aix[4-9]*)
5407 lt_cv_deplibs_check_method=pass_all
5410 beos*)
5411 lt_cv_deplibs_check_method=pass_all
5414 bsdi[45]*)
5415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5416 lt_cv_file_magic_cmd='/usr/bin/file -L'
5417 lt_cv_file_magic_test_file=/shlib/libc.so
5420 cygwin*)
5421 # func_win32_libid is a shell function defined in ltmain.sh
5422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5423 lt_cv_file_magic_cmd='func_win32_libid'
5426 mingw* | pw32*)
5427 # Base MSYS/MinGW do not provide the 'file' command needed by
5428 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5429 # unless we find 'file', for example because we are cross-compiling.
5430 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5431 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5432 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5433 lt_cv_file_magic_cmd='func_win32_libid'
5434 else
5435 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5436 lt_cv_file_magic_cmd='$OBJDUMP -f'
5440 cegcc*)
5441 # use the weaker test based on 'objdump'. See mingw*.
5442 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5443 lt_cv_file_magic_cmd='$OBJDUMP -f'
5446 darwin* | rhapsody*)
5447 lt_cv_deplibs_check_method=pass_all
5450 freebsd* | dragonfly*)
5451 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5452 case $host_cpu in
5453 i*86 )
5454 # Not sure whether the presence of OpenBSD here was a mistake.
5455 # Let's accept both of them until this is cleared up.
5456 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5457 lt_cv_file_magic_cmd=/usr/bin/file
5458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5460 esac
5461 else
5462 lt_cv_deplibs_check_method=pass_all
5466 gnu*)
5467 lt_cv_deplibs_check_method=pass_all
5470 haiku*)
5471 lt_cv_deplibs_check_method=pass_all
5474 hpux10.20* | hpux11*)
5475 lt_cv_file_magic_cmd=/usr/bin/file
5476 case $host_cpu in
5477 ia64*)
5478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5479 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5481 hppa*64*)
5482 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]'
5483 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5487 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5489 esac
5492 interix[3-9]*)
5493 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5497 irix5* | irix6* | nonstopux*)
5498 case $LD in
5499 *-32|*"-32 ") libmagic=32-bit;;
5500 *-n32|*"-n32 ") libmagic=N32;;
5501 *-64|*"-64 ") libmagic=64-bit;;
5502 *) libmagic=never-match;;
5503 esac
5504 lt_cv_deplibs_check_method=pass_all
5507 # This must be Linux ELF.
5508 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5509 lt_cv_deplibs_check_method=pass_all
5512 netbsd*)
5513 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5515 else
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5520 newos6*)
5521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5522 lt_cv_file_magic_cmd=/usr/bin/file
5523 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5526 *nto* | *qnx*)
5527 lt_cv_deplibs_check_method=pass_all
5530 openbsd*)
5531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5533 else
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5538 osf3* | osf4* | osf5*)
5539 lt_cv_deplibs_check_method=pass_all
5542 rdos*)
5543 lt_cv_deplibs_check_method=pass_all
5546 solaris*)
5547 lt_cv_deplibs_check_method=pass_all
5550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5551 lt_cv_deplibs_check_method=pass_all
5554 sysv4 | sysv4.3*)
5555 case $host_vendor in
5556 motorola)
5557 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]'
5558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5560 ncr)
5561 lt_cv_deplibs_check_method=pass_all
5563 sequent)
5564 lt_cv_file_magic_cmd='/bin/file'
5565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5567 sni)
5568 lt_cv_file_magic_cmd='/bin/file'
5569 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5570 lt_cv_file_magic_test_file=/lib/libc.so
5572 siemens)
5573 lt_cv_deplibs_check_method=pass_all
5576 lt_cv_deplibs_check_method=pass_all
5578 esac
5581 tpf*)
5582 lt_cv_deplibs_check_method=pass_all
5584 esac
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5588 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5589 file_magic_cmd=$lt_cv_file_magic_cmd
5590 deplibs_check_method=$lt_cv_deplibs_check_method
5591 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5604 if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}ar; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if test "${ac_cv_prog_AR+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if test -n "$AR"; then
5613 ac_cv_prog_AR="$AR" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_AR="${ac_tool_prefix}ar"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5626 done
5627 done
5628 IFS=$as_save_IFS
5632 AR=$ac_cv_prog_AR
5633 if test -n "$AR"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5635 $as_echo "$AR" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5643 if test -z "$ac_cv_prog_AR"; then
5644 ac_ct_AR=$AR
5645 # Extract the first word of "ar", so it can be a program name with args.
5646 set dummy ar; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$ac_ct_AR"; then
5653 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_ac_ct_AR="ar"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5666 done
5667 done
5668 IFS=$as_save_IFS
5672 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5673 if test -n "$ac_ct_AR"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5675 $as_echo "$ac_ct_AR" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5681 if test "x$ac_ct_AR" = x; then
5682 AR="false"
5683 else
5684 case $cross_compiling:$ac_tool_warned in
5685 yes:)
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688 ac_tool_warned=yes ;;
5689 esac
5690 AR=$ac_ct_AR
5692 else
5693 AR="$ac_cv_prog_AR"
5696 test -z "$AR" && AR=ar
5697 test -z "$AR_FLAGS" && AR_FLAGS=cru
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}strip; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if test "${ac_cv_prog_STRIP+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -n "$STRIP"; then
5718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5731 done
5732 done
5733 IFS=$as_save_IFS
5737 STRIP=$ac_cv_prog_STRIP
5738 if test -n "$STRIP"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5740 $as_echo "$STRIP" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5748 if test -z "$ac_cv_prog_STRIP"; then
5749 ac_ct_STRIP=$STRIP
5750 # Extract the first word of "strip", so it can be a program name with args.
5751 set dummy strip; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$ac_ct_STRIP"; then
5758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_prog_ac_ct_STRIP="strip"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5771 done
5772 done
5773 IFS=$as_save_IFS
5777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5778 if test -n "$ac_ct_STRIP"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5780 $as_echo "$ac_ct_STRIP" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5786 if test "x$ac_ct_STRIP" = x; then
5787 STRIP=":"
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793 ac_tool_warned=yes ;;
5794 esac
5795 STRIP=$ac_ct_STRIP
5797 else
5798 STRIP="$ac_cv_prog_STRIP"
5801 test -z "$STRIP" && STRIP=:
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$RANLIB"; then
5817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5830 done
5831 done
5832 IFS=$as_save_IFS
5836 RANLIB=$ac_cv_prog_RANLIB
5837 if test -n "$RANLIB"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5839 $as_echo "$RANLIB" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848 ac_ct_RANLIB=$RANLIB
5849 # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_RANLIB="ranlib"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5870 done
5871 done
5872 IFS=$as_save_IFS
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5879 $as_echo "$ac_ct_RANLIB" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5885 if test "x$ac_ct_RANLIB" = x; then
5886 RANLIB=":"
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894 RANLIB=$ac_ct_RANLIB
5896 else
5897 RANLIB="$ac_cv_prog_RANLIB"
5900 test -z "$RANLIB" && RANLIB=:
5907 # Determine commands to create old-style static archives.
5908 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5909 old_postinstall_cmds='chmod 644 $oldlib'
5910 old_postuninstall_cmds=
5912 if test -n "$RANLIB"; then
5913 case $host_os in
5914 openbsd*)
5915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5920 esac
5921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5924 case $host_os in
5925 darwin*)
5926 lock_old_archive_extraction=yes ;;
5928 lock_old_archive_extraction=no ;;
5929 esac
5969 # If no C compiler was specified, use CC.
5970 LTCC=${LTCC-"$CC"}
5972 # If no C compiler flags were specified, use CFLAGS.
5973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5975 # Allow CC to be a program name with arguments.
5976 compiler=$CC
5979 # Check for command to grab the raw symbol name followed by C symbol from nm.
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5981 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5982 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5986 # These are sane defaults that work on at least a few old systems.
5987 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5989 # Character class describing NM global symbol codes.
5990 symcode='[BCDEGRST]'
5992 # Regexp to match symbols that can be accessed directly from C.
5993 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5995 # Define system-specific variables.
5996 case $host_os in
5997 aix*)
5998 symcode='[BCDT]'
6000 cygwin* | mingw* | pw32* | cegcc*)
6001 symcode='[ABCDGISTW]'
6003 hpux*)
6004 if test "$host_cpu" = ia64; then
6005 symcode='[ABCDEGRST]'
6008 irix* | nonstopux*)
6009 symcode='[BCDEGRST]'
6011 osf*)
6012 symcode='[BCDEGQRST]'
6014 solaris*)
6015 symcode='[BDRT]'
6017 sco3.2v5*)
6018 symcode='[DT]'
6020 sysv4.2uw2*)
6021 symcode='[DT]'
6023 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6024 symcode='[ABDT]'
6026 sysv4)
6027 symcode='[DFNSTU]'
6029 esac
6031 # If we're using GNU nm, then use its standard symbol codes.
6032 case `$NM -V 2>&1` in
6033 *GNU* | *'with BFD'*)
6034 symcode='[ABCDGIRSTW]' ;;
6035 esac
6037 # Transform an extracted symbol line into a proper C declaration.
6038 # Some systems (esp. on ia64) link data and code symbols differently,
6039 # so use this general approach.
6040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6042 # Transform an extracted symbol line into symbol name and symbol address
6043 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6044 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'"
6046 # Handle CRLF in mingw tool chain
6047 opt_cr=
6048 case $build_os in
6049 mingw*)
6050 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6052 esac
6054 # Try without a prefix underscore, then with it.
6055 for ac_symprfx in "" "_"; do
6057 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6058 symxfrm="\\1 $ac_symprfx\\2 \\2"
6060 # Write the raw and C identifiers.
6061 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6062 # Fake it for dumpbin and say T for any non-static function
6063 # and D for any global variable.
6064 # Also find C++ and __fastcall symbols from MSVC++,
6065 # which start with @ or ?.
6066 lt_cv_sys_global_symbol_pipe="$AWK '"\
6067 " {last_section=section; section=\$ 3};"\
6068 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6069 " \$ 0!~/External *\|/{next};"\
6070 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6071 " {if(hide[section]) next};"\
6072 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6073 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6074 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6075 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6076 " ' prfx=^$ac_symprfx"
6077 else
6078 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6081 # Check to see that the pipe works correctly.
6082 pipe_works=no
6084 rm -f conftest*
6085 cat > conftest.$ac_ext <<_LT_EOF
6086 #ifdef __cplusplus
6087 extern "C" {
6088 #endif
6089 char nm_test_var;
6090 void nm_test_func(void);
6091 void nm_test_func(void){}
6092 #ifdef __cplusplus
6094 #endif
6095 int main(){nm_test_var='a';nm_test_func();return(0);}
6096 _LT_EOF
6098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099 (eval $ac_compile) 2>&5
6100 ac_status=$?
6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; then
6103 # Now try to grab the symbols.
6104 nlist=conftest.nm
6105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6106 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6107 ac_status=$?
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; } && test -s "$nlist"; then
6110 # Try sorting and uniquifying the output.
6111 if sort "$nlist" | uniq > "$nlist"T; then
6112 mv -f "$nlist"T "$nlist"
6113 else
6114 rm -f "$nlist"T
6117 # Make sure that we snagged all the symbols we need.
6118 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6119 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6120 cat <<_LT_EOF > conftest.$ac_ext
6121 #ifdef __cplusplus
6122 extern "C" {
6123 #endif
6125 _LT_EOF
6126 # Now generate the symbol file.
6127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6129 cat <<_LT_EOF >> conftest.$ac_ext
6131 /* The mapping between symbol names and symbols. */
6132 const struct {
6133 const char *name;
6134 void *address;
6136 lt__PROGRAM__LTX_preloaded_symbols[] =
6138 { "@PROGRAM@", (void *) 0 },
6139 _LT_EOF
6140 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6141 cat <<\_LT_EOF >> conftest.$ac_ext
6142 {0, (void *) 0}
6145 /* This works around a problem in FreeBSD linker */
6146 #ifdef FREEBSD_WORKAROUND
6147 static const void *lt_preloaded_setup() {
6148 return lt__PROGRAM__LTX_preloaded_symbols;
6150 #endif
6152 #ifdef __cplusplus
6154 #endif
6155 _LT_EOF
6156 # Now try linking the two files.
6157 mv conftest.$ac_objext conftstm.$ac_objext
6158 lt_save_LIBS="$LIBS"
6159 lt_save_CFLAGS="$CFLAGS"
6160 LIBS="conftstm.$ac_objext"
6161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6163 (eval $ac_link) 2>&5
6164 ac_status=$?
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6167 pipe_works=yes
6169 LIBS="$lt_save_LIBS"
6170 CFLAGS="$lt_save_CFLAGS"
6171 else
6172 echo "cannot find nm_test_func in $nlist" >&5
6174 else
6175 echo "cannot find nm_test_var in $nlist" >&5
6177 else
6178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6180 else
6181 echo "$progname: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6184 rm -rf conftest* conftst*
6186 # Do not use the global_symbol_pipe unless it works.
6187 if test "$pipe_works" = yes; then
6188 break
6189 else
6190 lt_cv_sys_global_symbol_pipe=
6192 done
6196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6197 lt_cv_sys_global_symbol_to_cdecl=
6199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6201 $as_echo "failed" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6204 $as_echo "ok" >&6; }
6228 # Check whether --enable-libtool-lock was given.
6229 if test "${enable_libtool_lock+set}" = set; then :
6230 enableval=$enable_libtool_lock;
6233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6235 # Some flags need to be propagated to the compiler or linker for good
6236 # libtool support.
6237 case $host in
6238 ia64-*-hpux*)
6239 # Find out which ABI we are using.
6240 echo 'int i;' > conftest.$ac_ext
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242 (eval $ac_compile) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; }; then
6246 case `/usr/bin/file conftest.$ac_objext` in
6247 *ELF-32*)
6248 HPUX_IA64_MODE="32"
6250 *ELF-64*)
6251 HPUX_IA64_MODE="64"
6253 esac
6255 rm -rf conftest*
6257 *-*-irix6*)
6258 # Find out which ABI we are using.
6259 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261 (eval $ac_compile) 2>&5
6262 ac_status=$?
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; then
6265 if test "$lt_cv_prog_gnu_ld" = yes; then
6266 case `/usr/bin/file conftest.$ac_objext` in
6267 *32-bit*)
6268 LD="${LD-ld} -melf32bsmip"
6270 *N32*)
6271 LD="${LD-ld} -melf32bmipn32"
6273 *64-bit*)
6274 LD="${LD-ld} -melf64bmip"
6276 esac
6277 else
6278 case `/usr/bin/file conftest.$ac_objext` in
6279 *32-bit*)
6280 LD="${LD-ld} -32"
6282 *N32*)
6283 LD="${LD-ld} -n32"
6285 *64-bit*)
6286 LD="${LD-ld} -64"
6288 esac
6291 rm -rf conftest*
6294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6296 # Find out which ABI we are using.
6297 echo 'int i;' > conftest.$ac_ext
6298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299 (eval $ac_compile) 2>&5
6300 ac_status=$?
6301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302 test $ac_status = 0; }; then
6303 case `/usr/bin/file conftest.o` in
6304 *32-bit*)
6305 case $host in
6306 x86_64-*kfreebsd*-gnu)
6307 LD="${LD-ld} -m elf_i386_fbsd"
6309 x86_64-*linux*)
6310 case `/usr/bin/file conftest.o` in
6311 *x86-64*)
6312 LD="${LD-ld} -m elf32_x86_64"
6315 LD="${LD-ld} -m elf_i386"
6317 esac
6319 powerpc64le-*linux*)
6320 LD="${LD-ld} -m elf32lppclinux"
6322 powerpc64-*linux*)
6323 LD="${LD-ld} -m elf32ppclinux"
6325 s390x-*linux*)
6326 LD="${LD-ld} -m elf_s390"
6328 sparc64-*linux*)
6329 LD="${LD-ld} -m elf32_sparc"
6331 esac
6333 *64-bit*)
6334 case $host in
6335 x86_64-*kfreebsd*-gnu)
6336 LD="${LD-ld} -m elf_x86_64_fbsd"
6338 x86_64-*linux*)
6339 LD="${LD-ld} -m elf_x86_64"
6341 powerpcle-*linux*)
6342 LD="${LD-ld} -m elf64lppc"
6344 powerpc-*linux*)
6345 LD="${LD-ld} -m elf64ppc"
6347 s390*-*linux*|s390*-*tpf*)
6348 LD="${LD-ld} -m elf64_s390"
6350 sparc*-*linux*)
6351 LD="${LD-ld} -m elf64_sparc"
6353 esac
6355 esac
6357 rm -rf conftest*
6360 *-*-sco3.2v5*)
6361 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6362 SAVE_CFLAGS="$CFLAGS"
6363 CFLAGS="$CFLAGS -belf"
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6365 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6366 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 ac_ext=c
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6379 main ()
6383 return 0;
6385 _ACEOF
6386 if ac_fn_c_try_link "$LINENO"; then :
6387 lt_cv_cc_needs_belf=yes
6388 else
6389 lt_cv_cc_needs_belf=no
6391 rm -f core conftest.err conftest.$ac_objext \
6392 conftest$ac_exeext conftest.$ac_ext
6393 ac_ext=c
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6401 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6404 CFLAGS="$SAVE_CFLAGS"
6407 sparc*-*solaris*)
6408 # Find out which ABI we are using.
6409 echo 'int i;' > conftest.$ac_ext
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 case `/usr/bin/file conftest.o` in
6416 *64-bit*)
6417 case $lt_cv_prog_gnu_ld in
6418 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6420 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6421 LD="${LD-ld} -64"
6424 esac
6426 esac
6428 rm -rf conftest*
6430 esac
6432 need_locks="$enable_libtool_lock"
6435 case $host_os in
6436 rhapsody* | darwin*)
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$DSYMUTIL"; then
6446 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6459 done
6460 done
6461 IFS=$as_save_IFS
6465 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6466 if test -n "$DSYMUTIL"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6468 $as_echo "$DSYMUTIL" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6476 if test -z "$ac_cv_prog_DSYMUTIL"; then
6477 ac_ct_DSYMUTIL=$DSYMUTIL
6478 # Extract the first word of "dsymutil", so it can be a program name with args.
6479 set dummy dsymutil; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_DSYMUTIL"; then
6486 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6499 done
6500 done
6501 IFS=$as_save_IFS
6505 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6506 if test -n "$ac_ct_DSYMUTIL"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6508 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6514 if test "x$ac_ct_DSYMUTIL" = x; then
6515 DSYMUTIL=":"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523 DSYMUTIL=$ac_ct_DSYMUTIL
6525 else
6526 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$NMEDIT"; then
6538 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6551 done
6552 done
6553 IFS=$as_save_IFS
6557 NMEDIT=$ac_cv_prog_NMEDIT
6558 if test -n "$NMEDIT"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6560 $as_echo "$NMEDIT" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6568 if test -z "$ac_cv_prog_NMEDIT"; then
6569 ac_ct_NMEDIT=$NMEDIT
6570 # Extract the first word of "nmedit", so it can be a program name with args.
6571 set dummy nmedit; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$ac_ct_NMEDIT"; then
6578 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6591 done
6592 done
6593 IFS=$as_save_IFS
6597 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6598 if test -n "$ac_ct_NMEDIT"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6600 $as_echo "$ac_ct_NMEDIT" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6606 if test "x$ac_ct_NMEDIT" = x; then
6607 NMEDIT=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 NMEDIT=$ac_ct_NMEDIT
6617 else
6618 NMEDIT="$ac_cv_prog_NMEDIT"
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_LIPO+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$LIPO"; then
6630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6643 done
6644 done
6645 IFS=$as_save_IFS
6649 LIPO=$ac_cv_prog_LIPO
6650 if test -n "$LIPO"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6652 $as_echo "$LIPO" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6660 if test -z "$ac_cv_prog_LIPO"; then
6661 ac_ct_LIPO=$LIPO
6662 # Extract the first word of "lipo", so it can be a program name with args.
6663 set dummy lipo; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$ac_ct_LIPO"; then
6670 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_LIPO="lipo"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6683 done
6684 done
6685 IFS=$as_save_IFS
6689 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6690 if test -n "$ac_ct_LIPO"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6692 $as_echo "$ac_ct_LIPO" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6698 if test "x$ac_ct_LIPO" = x; then
6699 LIPO=":"
6700 else
6701 case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707 LIPO=$ac_ct_LIPO
6709 else
6710 LIPO="$ac_cv_prog_LIPO"
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}otool; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$OTOOL"; then
6722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6735 done
6736 done
6737 IFS=$as_save_IFS
6741 OTOOL=$ac_cv_prog_OTOOL
6742 if test -n "$OTOOL"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6744 $as_echo "$OTOOL" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6752 if test -z "$ac_cv_prog_OTOOL"; then
6753 ac_ct_OTOOL=$OTOOL
6754 # Extract the first word of "otool", so it can be a program name with args.
6755 set dummy otool; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$ac_ct_OTOOL"; then
6762 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_ac_ct_OTOOL="otool"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6775 done
6776 done
6777 IFS=$as_save_IFS
6781 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6782 if test -n "$ac_ct_OTOOL"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6784 $as_echo "$ac_ct_OTOOL" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6790 if test "x$ac_ct_OTOOL" = x; then
6791 OTOOL=":"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799 OTOOL=$ac_ct_OTOOL
6801 else
6802 OTOOL="$ac_cv_prog_OTOOL"
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$OTOOL64"; then
6814 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6827 done
6828 done
6829 IFS=$as_save_IFS
6833 OTOOL64=$ac_cv_prog_OTOOL64
6834 if test -n "$OTOOL64"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6836 $as_echo "$OTOOL64" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6844 if test -z "$ac_cv_prog_OTOOL64"; then
6845 ac_ct_OTOOL64=$OTOOL64
6846 # Extract the first word of "otool64", so it can be a program name with args.
6847 set dummy otool64; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$ac_ct_OTOOL64"; then
6854 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_ac_ct_OTOOL64="otool64"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6867 done
6868 done
6869 IFS=$as_save_IFS
6873 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6874 if test -n "$ac_ct_OTOOL64"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6876 $as_echo "$ac_ct_OTOOL64" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6882 if test "x$ac_ct_OTOOL64" = x; then
6883 OTOOL64=":"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891 OTOOL64=$ac_ct_OTOOL64
6893 else
6894 OTOOL64="$ac_cv_prog_OTOOL64"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6924 $as_echo_n "checking for -single_module linker flag... " >&6; }
6925 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 lt_cv_apple_cc_single_mod=no
6929 if test -z "${LT_MULTI_MODULE}"; then
6930 # By default we will add the -single_module flag. You can override
6931 # by either setting the environment variable LT_MULTI_MODULE
6932 # non-empty at configure time, or by adding -multi_module to the
6933 # link flags.
6934 rm -rf libconftest.dylib*
6935 echo "int foo(void){return 1;}" > conftest.c
6936 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937 -dynamiclib -Wl,-single_module conftest.c" >&5
6938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6940 _lt_result=$?
6941 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6942 lt_cv_apple_cc_single_mod=yes
6943 else
6944 cat conftest.err >&5
6946 rm -rf libconftest.dylib*
6947 rm -f conftest.*
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6951 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6953 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6954 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 lt_cv_ld_exported_symbols_list=no
6958 save_LDFLAGS=$LDFLAGS
6959 echo "_main" > conftest.sym
6960 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6965 main ()
6969 return 0;
6971 _ACEOF
6972 if ac_fn_c_try_link "$LINENO"; then :
6973 lt_cv_ld_exported_symbols_list=yes
6974 else
6975 lt_cv_ld_exported_symbols_list=no
6977 rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 LDFLAGS="$save_LDFLAGS"
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6983 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6985 $as_echo_n "checking for -force_load linker flag... " >&6; }
6986 if test "${lt_cv_ld_force_load+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 lt_cv_ld_force_load=no
6990 cat > conftest.c << _LT_EOF
6991 int forced_loaded() { return 2;}
6992 _LT_EOF
6993 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6994 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6995 echo "$AR cru libconftest.a conftest.o" >&5
6996 $AR cru libconftest.a conftest.o 2>&5
6997 cat > conftest.c << _LT_EOF
6998 int main() { return 0;}
6999 _LT_EOF
7000 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7001 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7002 _lt_result=$?
7003 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7004 lt_cv_ld_force_load=yes
7005 else
7006 cat conftest.err >&5
7008 rm -f conftest.err libconftest.a conftest conftest.c
7009 rm -rf conftest.dSYM
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7013 $as_echo "$lt_cv_ld_force_load" >&6; }
7014 case $host_os in
7015 rhapsody* | darwin1.[012])
7016 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7017 darwin1.*)
7018 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7019 darwin*) # darwin 5.x on
7020 # if running on 10.5 or later, the deployment target defaults
7021 # to the OS version, if on x86, and 10.4, the deployment
7022 # target defaults to 10.4. Don't you love it?
7023 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7024 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7025 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7026 10.[012][,.]*)
7027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7028 10.*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 esac
7032 esac
7033 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7034 _lt_dar_single_mod='$single_module'
7036 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7037 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7038 else
7039 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7041 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7042 _lt_dsymutil='~$DSYMUTIL $lib || :'
7043 else
7044 _lt_dsymutil=
7047 esac
7049 for ac_header in dlfcn.h
7050 do :
7051 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7053 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7054 cat >>confdefs.h <<_ACEOF
7055 #define HAVE_DLFCN_H 1
7056 _ACEOF
7060 done
7066 # Set options
7067 # Check whether --enable-static was given.
7068 if test "${enable_static+set}" = set; then :
7069 enableval=$enable_static; p=${PACKAGE-default}
7070 case $enableval in
7071 yes) enable_static=yes ;;
7072 no) enable_static=no ;;
7074 enable_static=no
7075 # Look at the argument we got. We use all the common list separators.
7076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7077 for pkg in $enableval; do
7078 IFS="$lt_save_ifs"
7079 if test "X$pkg" = "X$p"; then
7080 enable_static=yes
7082 done
7083 IFS="$lt_save_ifs"
7085 esac
7086 else
7087 enable_static=no
7099 enable_dlopen=no
7102 enable_win32_dll=no
7105 # Check whether --enable-shared was given.
7106 if test "${enable_shared+set}" = set; then :
7107 enableval=$enable_shared; p=${PACKAGE-default}
7108 case $enableval in
7109 yes) enable_shared=yes ;;
7110 no) enable_shared=no ;;
7112 enable_shared=no
7113 # Look at the argument we got. We use all the common list separators.
7114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7115 for pkg in $enableval; do
7116 IFS="$lt_save_ifs"
7117 if test "X$pkg" = "X$p"; then
7118 enable_shared=yes
7120 done
7121 IFS="$lt_save_ifs"
7123 esac
7124 else
7125 enable_shared=yes
7138 # Check whether --with-pic was given.
7139 if test "${with_pic+set}" = set; then :
7140 withval=$with_pic; pic_mode="$withval"
7141 else
7142 pic_mode=default
7146 test -z "$pic_mode" && pic_mode=default
7154 # Check whether --enable-fast-install was given.
7155 if test "${enable_fast_install+set}" = set; then :
7156 enableval=$enable_fast_install; p=${PACKAGE-default}
7157 case $enableval in
7158 yes) enable_fast_install=yes ;;
7159 no) enable_fast_install=no ;;
7161 enable_fast_install=no
7162 # Look at the argument we got. We use all the common list separators.
7163 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7164 for pkg in $enableval; do
7165 IFS="$lt_save_ifs"
7166 if test "X$pkg" = "X$p"; then
7167 enable_fast_install=yes
7169 done
7170 IFS="$lt_save_ifs"
7172 esac
7173 else
7174 enable_fast_install=yes
7187 # This can be used to rebuild libtool when needed
7188 LIBTOOL_DEPS="$ltmain"
7190 # Always use our own libtool.
7191 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7218 test -z "$LN_S" && LN_S="ln -s"
7233 if test -n "${ZSH_VERSION+set}" ; then
7234 setopt NO_GLOB_SUBST
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7238 $as_echo_n "checking for objdir... " >&6; }
7239 if test "${lt_cv_objdir+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 rm -f .libs 2>/dev/null
7243 mkdir .libs 2>/dev/null
7244 if test -d .libs; then
7245 lt_cv_objdir=.libs
7246 else
7247 # MS-DOS does not allow filenames that begin with a dot.
7248 lt_cv_objdir=_libs
7250 rmdir .libs 2>/dev/null
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7253 $as_echo "$lt_cv_objdir" >&6; }
7254 objdir=$lt_cv_objdir
7260 cat >>confdefs.h <<_ACEOF
7261 #define LT_OBJDIR "$lt_cv_objdir/"
7262 _ACEOF
7267 case $host_os in
7268 aix3*)
7269 # AIX sometimes has problems with the GCC collect2 program. For some
7270 # reason, if we set the COLLECT_NAMES environment variable, the problems
7271 # vanish in a puff of smoke.
7272 if test "X${COLLECT_NAMES+set}" != Xset; then
7273 COLLECT_NAMES=
7274 export COLLECT_NAMES
7277 esac
7279 # Global variables:
7280 ofile=libtool
7281 can_build_shared=yes
7283 # All known linkers require a `.a' archive for static linking (except MSVC,
7284 # which needs '.lib').
7285 libext=a
7287 with_gnu_ld="$lt_cv_prog_gnu_ld"
7289 old_CC="$CC"
7290 old_CFLAGS="$CFLAGS"
7292 # Set sane defaults for various variables
7293 test -z "$CC" && CC=cc
7294 test -z "$LTCC" && LTCC=$CC
7295 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7296 test -z "$LD" && LD=ld
7297 test -z "$ac_objext" && ac_objext=o
7299 for cc_temp in $compiler""; do
7300 case $cc_temp in
7301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7303 \-*) ;;
7304 *) break;;
7305 esac
7306 done
7307 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7310 # Only perform the check for file, if the check method requires it
7311 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7312 case $deplibs_check_method in
7313 file_magic*)
7314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7316 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7317 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 case $MAGIC_CMD in
7321 [\\/*] | ?:[\\/]*)
7322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7325 lt_save_MAGIC_CMD="$MAGIC_CMD"
7326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7328 for ac_dir in $ac_dummy; do
7329 IFS="$lt_save_ifs"
7330 test -z "$ac_dir" && ac_dir=.
7331 if test -f $ac_dir/${ac_tool_prefix}file; then
7332 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7333 if test -n "$file_magic_test_file"; then
7334 case $deplibs_check_method in
7335 "file_magic "*)
7336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7339 $EGREP "$file_magic_regex" > /dev/null; then
7341 else
7342 cat <<_LT_EOF 1>&2
7344 *** Warning: the command libtool uses to detect shared libraries,
7345 *** $file_magic_cmd, produces output that libtool cannot recognize.
7346 *** The result is that libtool may fail to recognize shared libraries
7347 *** as such. This will affect the creation of libtool libraries that
7348 *** depend on shared libraries, but programs linked with such libtool
7349 *** libraries will work regardless of this problem. Nevertheless, you
7350 *** may want to report the problem to your system manager and/or to
7351 *** bug-libtool@gnu.org
7353 _LT_EOF
7354 fi ;;
7355 esac
7357 break
7359 done
7360 IFS="$lt_save_ifs"
7361 MAGIC_CMD="$lt_save_MAGIC_CMD"
7363 esac
7366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7367 if test -n "$MAGIC_CMD"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7369 $as_echo "$MAGIC_CMD" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7379 if test -z "$lt_cv_path_MAGIC_CMD"; then
7380 if test -n "$ac_tool_prefix"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7382 $as_echo_n "checking for file... " >&6; }
7383 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 case $MAGIC_CMD in
7387 [\\/*] | ?:[\\/]*)
7388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391 lt_save_MAGIC_CMD="$MAGIC_CMD"
7392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7394 for ac_dir in $ac_dummy; do
7395 IFS="$lt_save_ifs"
7396 test -z "$ac_dir" && ac_dir=.
7397 if test -f $ac_dir/file; then
7398 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7399 if test -n "$file_magic_test_file"; then
7400 case $deplibs_check_method in
7401 "file_magic "*)
7402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7405 $EGREP "$file_magic_regex" > /dev/null; then
7407 else
7408 cat <<_LT_EOF 1>&2
7410 *** Warning: the command libtool uses to detect shared libraries,
7411 *** $file_magic_cmd, produces output that libtool cannot recognize.
7412 *** The result is that libtool may fail to recognize shared libraries
7413 *** as such. This will affect the creation of libtool libraries that
7414 *** depend on shared libraries, but programs linked with such libtool
7415 *** libraries will work regardless of this problem. Nevertheless, you
7416 *** may want to report the problem to your system manager and/or to
7417 *** bug-libtool@gnu.org
7419 _LT_EOF
7420 fi ;;
7421 esac
7423 break
7425 done
7426 IFS="$lt_save_ifs"
7427 MAGIC_CMD="$lt_save_MAGIC_CMD"
7429 esac
7432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433 if test -n "$MAGIC_CMD"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7435 $as_echo "$MAGIC_CMD" >&6; }
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7442 else
7443 MAGIC_CMD=:
7449 esac
7451 # Use C for the default configuration in the libtool script
7453 lt_save_CC="$CC"
7454 ac_ext=c
7455 ac_cpp='$CPP $CPPFLAGS'
7456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461 # Source file extension for C test sources.
7462 ac_ext=c
7464 # Object file extension for compiled C test sources.
7465 objext=o
7466 objext=$objext
7468 # Code to be used in simple compile tests
7469 lt_simple_compile_test_code="int some_variable = 0;"
7471 # Code to be used in simple link tests
7472 lt_simple_link_test_code='int main(){return(0);}'
7480 # If no C compiler was specified, use CC.
7481 LTCC=${LTCC-"$CC"}
7483 # If no C compiler flags were specified, use CFLAGS.
7484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7486 # Allow CC to be a program name with arguments.
7487 compiler=$CC
7489 # Save the default compiler, since it gets overwritten when the other
7490 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7491 compiler_DEFAULT=$CC
7493 # save warnings/boilerplate of simple test code
7494 ac_outfile=conftest.$ac_objext
7495 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7496 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7497 _lt_compiler_boilerplate=`cat conftest.err`
7498 $RM conftest*
7500 ac_outfile=conftest.$ac_objext
7501 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7502 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7503 _lt_linker_boilerplate=`cat conftest.err`
7504 $RM -r conftest*
7507 ## CAVEAT EMPTOR:
7508 ## There is no encapsulation within the following macros, do not change
7509 ## the running order or otherwise move them around unless you know exactly
7510 ## what you are doing...
7511 if test -n "$compiler"; then
7513 lt_prog_compiler_no_builtin_flag=
7515 if test "$GCC" = yes; then
7516 case $cc_basename in
7517 nvcc*)
7518 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7520 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7521 esac
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7524 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 lt_cv_prog_compiler_rtti_exceptions=no
7529 ac_outfile=conftest.$ac_objext
7530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531 lt_compiler_flag="-fno-rtti -fno-exceptions"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 # The option is referenced via a variable to avoid confusing sed.
7537 lt_compile=`echo "$ac_compile" | $SED \
7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540 -e 's:$: $lt_compiler_flag:'`
7541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7542 (eval "$lt_compile" 2>conftest.err)
7543 ac_status=$?
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 if (exit $ac_status) && test -s "$ac_outfile"; then
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings other than the usual output.
7549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_rtti_exceptions=yes
7555 $RM conftest*
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7559 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7563 else
7574 lt_prog_compiler_wl=
7575 lt_prog_compiler_pic=
7576 lt_prog_compiler_static=
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7581 if test "$GCC" = yes; then
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_static='-static'
7585 case $host_os in
7586 aix*)
7587 # All AIX code is PIC.
7588 if test "$host_cpu" = ia64; then
7589 # AIX 5 now supports IA64 processor
7590 lt_prog_compiler_static='-Bstatic'
7592 lt_prog_compiler_pic='-fPIC'
7595 amigaos*)
7596 case $host_cpu in
7597 powerpc)
7598 # see comment about AmigaOS4 .so support
7599 lt_prog_compiler_pic='-fPIC'
7601 m68k)
7602 # FIXME: we need at least 68020 code to build shared libraries, but
7603 # adding the `-m68020' flag to GCC prevents building anything better,
7604 # like `-m68040'.
7605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7607 esac
7610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7611 # PIC is the default for these OSes.
7614 mingw* | cygwin* | pw32* | os2* | cegcc*)
7615 # This hack is so that the source file can tell whether it is being
7616 # built for inclusion in a dll (and should export symbols for example).
7617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7618 # (--disable-auto-import) libraries
7619 lt_prog_compiler_pic='-DDLL_EXPORT'
7622 darwin* | rhapsody*)
7623 # PIC is the default on this platform
7624 # Common symbols not allowed in MH_DYLIB files
7625 lt_prog_compiler_pic='-fno-common'
7628 haiku*)
7629 # PIC is the default for Haiku.
7630 # The "-static" flag exists, but is broken.
7631 lt_prog_compiler_static=
7634 hpux*)
7635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7637 # sets the default TLS model and affects inlining.
7638 case $host_cpu in
7639 hppa*64*)
7640 # +Z the default
7643 lt_prog_compiler_pic='-fPIC'
7645 esac
7648 interix[3-9]*)
7649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7650 # Instead, we relocate shared libraries at runtime.
7653 msdosdjgpp*)
7654 # Just because we use GCC doesn't mean we suddenly get shared libraries
7655 # on systems that don't support them.
7656 lt_prog_compiler_can_build_shared=no
7657 enable_shared=no
7660 *nto* | *qnx*)
7661 # QNX uses GNU C++, but need to define -shared option too, otherwise
7662 # it will coredump.
7663 lt_prog_compiler_pic='-fPIC -shared'
7666 sysv4*MP*)
7667 if test -d /usr/nec; then
7668 lt_prog_compiler_pic=-Kconform_pic
7673 lt_prog_compiler_pic='-fPIC'
7675 esac
7677 case $cc_basename in
7678 nvcc*) # Cuda Compiler Driver 2.2
7679 lt_prog_compiler_wl='-Xlinker '
7680 lt_prog_compiler_pic='-Xcompiler -fPIC'
7682 esac
7683 else
7684 # PORTME Check for flag to pass linker flags through the system compiler.
7685 case $host_os in
7686 aix*)
7687 lt_prog_compiler_wl='-Wl,'
7688 if test "$host_cpu" = ia64; then
7689 # AIX 5 now supports IA64 processor
7690 lt_prog_compiler_static='-Bstatic'
7691 else
7692 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7696 mingw* | cygwin* | pw32* | os2* | cegcc*)
7697 # This hack is so that the source file can tell whether it is being
7698 # built for inclusion in a dll (and should export symbols for example).
7699 lt_prog_compiler_pic='-DDLL_EXPORT'
7702 hpux9* | hpux10* | hpux11*)
7703 lt_prog_compiler_wl='-Wl,'
7704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7705 # not for PA HP-UX.
7706 case $host_cpu in
7707 hppa*64*|ia64*)
7708 # +Z the default
7711 lt_prog_compiler_pic='+Z'
7713 esac
7714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7715 lt_prog_compiler_static='${wl}-a ${wl}archive'
7718 irix5* | irix6* | nonstopux*)
7719 lt_prog_compiler_wl='-Wl,'
7720 # PIC (with -KPIC) is the default.
7721 lt_prog_compiler_static='-non_shared'
7724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7725 case $cc_basename in
7726 # old Intel for x86_64 which still supported -KPIC.
7727 ecc*)
7728 lt_prog_compiler_wl='-Wl,'
7729 lt_prog_compiler_pic='-KPIC'
7730 lt_prog_compiler_static='-static'
7732 # icc used to be incompatible with GCC.
7733 # ICC 10 doesn't accept -KPIC any more.
7734 icc* | ifort*)
7735 lt_prog_compiler_wl='-Wl,'
7736 lt_prog_compiler_pic='-fPIC'
7737 lt_prog_compiler_static='-static'
7739 # Lahey Fortran 8.1.
7740 lf95*)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='--shared'
7743 lt_prog_compiler_static='--static'
7745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7746 # Portland Group compilers (*not* the Pentium gcc compiler,
7747 # which looks to be a dead project)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_pic='-fpic'
7750 lt_prog_compiler_static='-Bstatic'
7752 ccc*)
7753 lt_prog_compiler_wl='-Wl,'
7754 # All Alpha code is PIC.
7755 lt_prog_compiler_static='-non_shared'
7757 xl* | bgxl* | bgf* | mpixl*)
7758 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_pic='-qpic'
7761 lt_prog_compiler_static='-qstaticlink'
7764 case `$CC -V 2>&1 | sed 5q` in
7765 *Sun\ F* | *Sun*Fortran*)
7766 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7767 lt_prog_compiler_pic='-KPIC'
7768 lt_prog_compiler_static='-Bstatic'
7769 lt_prog_compiler_wl=''
7771 *Sun\ C*)
7772 # Sun C 5.9
7773 lt_prog_compiler_pic='-KPIC'
7774 lt_prog_compiler_static='-Bstatic'
7775 lt_prog_compiler_wl='-Wl,'
7777 esac
7779 esac
7782 newsos6)
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7787 *nto* | *qnx*)
7788 # QNX uses GNU C++, but need to define -shared option too, otherwise
7789 # it will coredump.
7790 lt_prog_compiler_pic='-fPIC -shared'
7793 osf3* | osf4* | osf5*)
7794 lt_prog_compiler_wl='-Wl,'
7795 # All OSF/1 code is PIC.
7796 lt_prog_compiler_static='-non_shared'
7799 rdos*)
7800 lt_prog_compiler_static='-non_shared'
7803 solaris*)
7804 lt_prog_compiler_pic='-KPIC'
7805 lt_prog_compiler_static='-Bstatic'
7806 case $cc_basename in
7807 f77* | f90* | f95*)
7808 lt_prog_compiler_wl='-Qoption ld ';;
7810 lt_prog_compiler_wl='-Wl,';;
7811 esac
7814 sunos4*)
7815 lt_prog_compiler_wl='-Qoption ld '
7816 lt_prog_compiler_pic='-PIC'
7817 lt_prog_compiler_static='-Bstatic'
7820 sysv4 | sysv4.2uw2* | sysv4.3*)
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7826 sysv4*MP*)
7827 if test -d /usr/nec ;then
7828 lt_prog_compiler_pic='-Kconform_pic'
7829 lt_prog_compiler_static='-Bstatic'
7833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7834 lt_prog_compiler_wl='-Wl,'
7835 lt_prog_compiler_pic='-KPIC'
7836 lt_prog_compiler_static='-Bstatic'
7839 unicos*)
7840 lt_prog_compiler_wl='-Wl,'
7841 lt_prog_compiler_can_build_shared=no
7844 uts4*)
7845 lt_prog_compiler_pic='-pic'
7846 lt_prog_compiler_static='-Bstatic'
7850 lt_prog_compiler_can_build_shared=no
7852 esac
7855 case $host_os in
7856 # For platforms which do not support PIC, -DPIC is meaningless:
7857 *djgpp*)
7858 lt_prog_compiler_pic=
7861 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7863 esac
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7865 $as_echo "$lt_prog_compiler_pic" >&6; }
7873 # Check to make sure the PIC flag actually works.
7875 if test -n "$lt_prog_compiler_pic"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7877 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7878 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 lt_cv_prog_compiler_pic_works=no
7882 ac_outfile=conftest.$ac_objext
7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7885 # Insert the option either (1) after the last *FLAGS variable, or
7886 # (2) before a word containing "conftest.", or (3) at the end.
7887 # Note that $ac_compile itself does not contain backslashes and begins
7888 # with a dollar sign (not a hyphen), so the echo should work correctly.
7889 # The option is referenced via a variable to avoid confusing sed.
7890 lt_compile=`echo "$ac_compile" | $SED \
7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893 -e 's:$: $lt_compiler_flag:'`
7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7895 (eval "$lt_compile" 2>conftest.err)
7896 ac_status=$?
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 if (exit $ac_status) && test -s "$ac_outfile"; then
7900 # The compiler can only warn and ignore the option if not recognized
7901 # So say no if there are warnings other than the usual output.
7902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7905 lt_cv_prog_compiler_pic_works=yes
7908 $RM conftest*
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7912 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7914 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7915 case $lt_prog_compiler_pic in
7916 "" | " "*) ;;
7917 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7918 esac
7919 else
7920 lt_prog_compiler_pic=
7921 lt_prog_compiler_can_build_shared=no
7932 # Check to make sure the static flag actually works.
7934 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7936 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7937 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 lt_cv_prog_compiler_static_works=no
7941 save_LDFLAGS="$LDFLAGS"
7942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7945 # The linker can only warn and ignore the option if not recognized
7946 # So say no if there are warnings
7947 if test -s conftest.err; then
7948 # Append any errors to the config.log.
7949 cat conftest.err 1>&5
7950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7952 if diff conftest.exp conftest.er2 >/dev/null; then
7953 lt_cv_prog_compiler_static_works=yes
7955 else
7956 lt_cv_prog_compiler_static_works=yes
7959 $RM -r conftest*
7960 LDFLAGS="$save_LDFLAGS"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7964 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7966 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7968 else
7969 lt_prog_compiler_static=
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7979 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7980 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 lt_cv_prog_compiler_c_o=no
7984 $RM -r conftest 2>/dev/null
7985 mkdir conftest
7986 cd conftest
7987 mkdir out
7988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7990 lt_compiler_flag="-o out/conftest2.$ac_objext"
7991 # Insert the option either (1) after the last *FLAGS variable, or
7992 # (2) before a word containing "conftest.", or (3) at the end.
7993 # Note that $ac_compile itself does not contain backslashes and begins
7994 # with a dollar sign (not a hyphen), so the echo should work correctly.
7995 lt_compile=`echo "$ac_compile" | $SED \
7996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998 -e 's:$: $lt_compiler_flag:'`
7999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8000 (eval "$lt_compile" 2>out/conftest.err)
8001 ac_status=$?
8002 cat out/conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005 then
8006 # The compiler can only warn and ignore the option if not recognized
8007 # So say no if there are warnings
8008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011 lt_cv_prog_compiler_c_o=yes
8014 chmod u+w . 2>&5
8015 $RM conftest*
8016 # SGI C++ compiler will create directory out/ii_files/ for
8017 # template instantiation
8018 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8019 $RM out/* && rmdir out
8020 cd ..
8021 $RM -r conftest
8022 $RM conftest*
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8026 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8035 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 lt_cv_prog_compiler_c_o=no
8039 $RM -r conftest 2>/dev/null
8040 mkdir conftest
8041 cd conftest
8042 mkdir out
8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8045 lt_compiler_flag="-o out/conftest2.$ac_objext"
8046 # Insert the option either (1) after the last *FLAGS variable, or
8047 # (2) before a word containing "conftest.", or (3) at the end.
8048 # Note that $ac_compile itself does not contain backslashes and begins
8049 # with a dollar sign (not a hyphen), so the echo should work correctly.
8050 lt_compile=`echo "$ac_compile" | $SED \
8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053 -e 's:$: $lt_compiler_flag:'`
8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8055 (eval "$lt_compile" 2>out/conftest.err)
8056 ac_status=$?
8057 cat out/conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060 then
8061 # The compiler can only warn and ignore the option if not recognized
8062 # So say no if there are warnings
8063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066 lt_cv_prog_compiler_c_o=yes
8069 chmod u+w . 2>&5
8070 $RM conftest*
8071 # SGI C++ compiler will create directory out/ii_files/ for
8072 # template instantiation
8073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8074 $RM out/* && rmdir out
8075 cd ..
8076 $RM -r conftest
8077 $RM conftest*
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8081 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8086 hard_links="nottested"
8087 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8088 # do not overwrite the value of need_locks provided by the user
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8090 $as_echo_n "checking if we can lock with hard links... " >&6; }
8091 hard_links=yes
8092 $RM conftest*
8093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8094 touch conftest.a
8095 ln conftest.a conftest.b 2>&5 || hard_links=no
8096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8098 $as_echo "$hard_links" >&6; }
8099 if test "$hard_links" = no; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8101 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8102 need_locks=warn
8104 else
8105 need_locks=no
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8114 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8116 runpath_var=
8117 allow_undefined_flag=
8118 always_export_symbols=no
8119 archive_cmds=
8120 archive_expsym_cmds=
8121 compiler_needs_object=no
8122 enable_shared_with_static_runtimes=no
8123 export_dynamic_flag_spec=
8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8125 hardcode_automatic=no
8126 hardcode_direct=no
8127 hardcode_direct_absolute=no
8128 hardcode_libdir_flag_spec=
8129 hardcode_libdir_flag_spec_ld=
8130 hardcode_libdir_separator=
8131 hardcode_minus_L=no
8132 hardcode_shlibpath_var=unsupported
8133 inherit_rpath=no
8134 link_all_deplibs=unknown
8135 module_cmds=
8136 module_expsym_cmds=
8137 old_archive_from_new_cmds=
8138 old_archive_from_expsyms_cmds=
8139 thread_safe_flag_spec=
8140 whole_archive_flag_spec=
8141 # include_expsyms should be a list of space-separated symbols to be *always*
8142 # included in the symbol list
8143 include_expsyms=
8144 # exclude_expsyms can be an extended regexp of symbols to exclude
8145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8147 # as well as any symbol that contains `d'.
8148 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8150 # platforms (ab)use it in PIC code, but their linkers get confused if
8151 # the symbol is explicitly referenced. Since portable code cannot
8152 # rely on this symbol name, it's probably fine to never include it in
8153 # preloaded symbol tables.
8154 # Exclude shared library initialization/finalization symbols.
8155 extract_expsyms_cmds=
8157 case $host_os in
8158 cygwin* | mingw* | pw32* | cegcc*)
8159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8160 # When not using gcc, we currently assume that we are using
8161 # Microsoft Visual C++.
8162 if test "$GCC" != yes; then
8163 with_gnu_ld=no
8166 interix*)
8167 # we just hope/assume this is gcc and not c89 (= MSVC++)
8168 with_gnu_ld=yes
8170 openbsd*)
8171 with_gnu_ld=no
8173 esac
8175 ld_shlibs=yes
8177 # On some targets, GNU ld is compatible enough with the native linker
8178 # that we're better off using the native interface for both.
8179 lt_use_gnu_ld_interface=no
8180 if test "$with_gnu_ld" = yes; then
8181 case $host_os in
8182 aix*)
8183 # The AIX port of GNU ld has always aspired to compatibility
8184 # with the native linker. However, as the warning in the GNU ld
8185 # block says, versions before 2.19.5* couldn't really create working
8186 # shared libraries, regardless of the interface used.
8187 case `$LD -v 2>&1` in
8188 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8189 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8190 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8192 lt_use_gnu_ld_interface=yes
8194 esac
8197 lt_use_gnu_ld_interface=yes
8199 esac
8202 if test "$lt_use_gnu_ld_interface" = yes; then
8203 # If archive_cmds runs LD, not CC, wlarc should be empty
8204 wlarc='${wl}'
8206 # Set some defaults for GNU ld with shared library support. These
8207 # are reset later if shared libraries are not supported. Putting them
8208 # here allows them to be overridden if necessary.
8209 runpath_var=LD_RUN_PATH
8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8211 export_dynamic_flag_spec='${wl}--export-dynamic'
8212 # ancient GNU ld didn't support --whole-archive et. al.
8213 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8214 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8215 else
8216 whole_archive_flag_spec=
8218 supports_anon_versioning=no
8219 case `$LD -v 2>&1` in
8220 *GNU\ gold*) supports_anon_versioning=yes ;;
8221 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8222 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8223 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8224 *\ 2.11.*) ;; # other 2.11 versions
8225 *) supports_anon_versioning=yes ;;
8226 esac
8228 # See if GNU ld supports shared libraries.
8229 case $host_os in
8230 aix[3-9]*)
8231 # On AIX/PPC, the GNU linker is very broken
8232 if test "$host_cpu" != ia64; then
8233 ld_shlibs=no
8234 cat <<_LT_EOF 1>&2
8236 *** Warning: the GNU linker, at least up to release 2.19, is reported
8237 *** to be unable to reliably create shared libraries on AIX.
8238 *** Therefore, libtool is disabling shared libraries support. If you
8239 *** really care for shared libraries, you may want to install binutils
8240 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8241 *** You will then need to restart the configuration process.
8243 _LT_EOF
8247 amigaos*)
8248 case $host_cpu in
8249 powerpc)
8250 # see comment about AmigaOS4 .so support
8251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252 archive_expsym_cmds=''
8254 m68k)
8255 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)'
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 hardcode_minus_L=yes
8259 esac
8262 beos*)
8263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8264 allow_undefined_flag=unsupported
8265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8266 # support --undefined. This deserves some investigation. FIXME
8267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268 else
8269 ld_shlibs=no
8273 cygwin* | mingw* | pw32* | cegcc*)
8274 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8275 # as there is no search path for DLLs.
8276 hardcode_libdir_flag_spec='-L$libdir'
8277 export_dynamic_flag_spec='${wl}--export-all-symbols'
8278 allow_undefined_flag=unsupported
8279 always_export_symbols=no
8280 enable_shared_with_static_runtimes=yes
8281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8283 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285 # If the export-symbols file already is a .def file (1st line
8286 # is EXPORTS), use it as is; otherwise, prepend...
8287 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8288 cp $export_symbols $output_objdir/$soname.def;
8289 else
8290 echo EXPORTS > $output_objdir/$soname.def;
8291 cat $export_symbols >> $output_objdir/$soname.def;
8293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294 else
8295 ld_shlibs=no
8299 haiku*)
8300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 link_all_deplibs=yes
8304 interix[3-9]*)
8305 hardcode_direct=no
8306 hardcode_shlibpath_var=no
8307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8308 export_dynamic_flag_spec='${wl}-E'
8309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8310 # Instead, shared libraries are loaded at an image base (0x10000000 by
8311 # default) and relocated if they conflict, which is a slow very memory
8312 # consuming and fragmenting process. To avoid this, we pick a random,
8313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8314 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8316 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'
8319 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8320 tmp_diet=no
8321 if test "$host_os" = linux-dietlibc; then
8322 case $cc_basename in
8323 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8324 esac
8326 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8327 && test "$tmp_diet" = no
8328 then
8329 tmp_addflag=' $pic_flag'
8330 tmp_sharedflag='-shared'
8331 case $cc_basename,$host_cpu in
8332 pgcc*) # Portland Group C compiler
8333 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'
8334 tmp_addflag=' $pic_flag'
8336 pgf77* | pgf90* | pgf95* | pgfortran*)
8337 # Portland Group f77 and f90 compilers
8338 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'
8339 tmp_addflag=' $pic_flag -Mnomain' ;;
8340 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8341 tmp_addflag=' -i_dynamic' ;;
8342 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8343 tmp_addflag=' -i_dynamic -nofor_main' ;;
8344 ifc* | ifort*) # Intel Fortran compiler
8345 tmp_addflag=' -nofor_main' ;;
8346 lf95*) # Lahey Fortran 8.1
8347 whole_archive_flag_spec=
8348 tmp_sharedflag='--shared' ;;
8349 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8350 tmp_sharedflag='-qmkshrobj'
8351 tmp_addflag= ;;
8352 nvcc*) # Cuda Compiler Driver 2.2
8353 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'
8354 compiler_needs_object=yes
8356 esac
8357 case `$CC -V 2>&1 | sed 5q` in
8358 *Sun\ C*) # Sun C 5.9
8359 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'
8360 compiler_needs_object=yes
8361 tmp_sharedflag='-G' ;;
8362 *Sun\ F*) # Sun Fortran 8.3
8363 tmp_sharedflag='-G' ;;
8364 esac
8365 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8367 if test "x$supports_anon_versioning" = xyes; then
8368 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8370 echo "local: *; };" >> $output_objdir/$libname.ver~
8371 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8374 case $cc_basename in
8375 xlf* | bgf* | bgxlf* | mpixlf*)
8376 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8377 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8378 hardcode_libdir_flag_spec=
8379 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8380 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8381 if test "x$supports_anon_versioning" = xyes; then
8382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8384 echo "local: *; };" >> $output_objdir/$libname.ver~
8385 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8388 esac
8389 else
8390 ld_shlibs=no
8394 netbsd*)
8395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8396 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8397 wlarc=
8398 else
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8404 solaris*)
8405 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8406 ld_shlibs=no
8407 cat <<_LT_EOF 1>&2
8409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8410 *** create shared libraries on Solaris systems. Therefore, libtool
8411 *** is disabling shared libraries support. We urge you to upgrade GNU
8412 *** binutils to release 2.9.1 or newer. Another option is to modify
8413 *** your PATH or compiler configuration so that the native linker is
8414 *** used, and then restart.
8416 _LT_EOF
8417 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8420 else
8421 ld_shlibs=no
8425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8426 case `$LD -v 2>&1` in
8427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8428 ld_shlibs=no
8429 cat <<_LT_EOF 1>&2
8431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8432 *** reliably create shared libraries on SCO systems. Therefore, libtool
8433 *** is disabling shared libraries support. We urge you to upgrade GNU
8434 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8435 *** your PATH or compiler configuration so that the native linker is
8436 *** used, and then restart.
8438 _LT_EOF
8441 # For security reasons, it is highly recommended that you always
8442 # use absolute paths for naming shared libraries, and exclude the
8443 # DT_RUNPATH tag from executables and libraries. But doing so
8444 # requires that you compile everything twice, which is a pain.
8445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8449 else
8450 ld_shlibs=no
8453 esac
8456 sunos4*)
8457 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8458 wlarc=
8459 hardcode_direct=yes
8460 hardcode_shlibpath_var=no
8464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8467 else
8468 ld_shlibs=no
8471 esac
8473 if test "$ld_shlibs" = no; then
8474 runpath_var=
8475 hardcode_libdir_flag_spec=
8476 export_dynamic_flag_spec=
8477 whole_archive_flag_spec=
8479 else
8480 # PORTME fill in a description of your system's linker (not GNU ld)
8481 case $host_os in
8482 aix3*)
8483 allow_undefined_flag=unsupported
8484 always_export_symbols=yes
8485 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'
8486 # Note: this linker hardcodes the directories in LIBPATH if there
8487 # are no directories specified by -L.
8488 hardcode_minus_L=yes
8489 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8490 # Neither direct hardcoding nor static linking is supported with a
8491 # broken collect2.
8492 hardcode_direct=unsupported
8496 aix[4-9]*)
8497 if test "$host_cpu" = ia64; then
8498 # On IA64, the linker does run time linking by default, so we don't
8499 # have to do anything special.
8500 aix_use_runtimelinking=no
8501 exp_sym_flag='-Bexport'
8502 no_entry_flag=""
8503 else
8504 # If we're using GNU nm, then we don't want the "-C" option.
8505 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8506 # Also, AIX nm treats weak defined symbols like other global
8507 # defined symbols, whereas GNU nm marks them as "W".
8508 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8509 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'
8510 else
8511 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8513 aix_use_runtimelinking=no
8515 # Test if we are trying to use run time linking or normal
8516 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8517 # need to do runtime linking.
8518 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8519 for ld_flag in $LDFLAGS; do
8520 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8521 aix_use_runtimelinking=yes
8522 break
8524 done
8526 esac
8528 exp_sym_flag='-bexport'
8529 no_entry_flag='-bnoentry'
8532 # When large executables or shared objects are built, AIX ld can
8533 # have problems creating the table of contents. If linking a library
8534 # or program results in "error TOC overflow" add -mminimal-toc to
8535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8538 archive_cmds=''
8539 hardcode_direct=yes
8540 hardcode_direct_absolute=yes
8541 hardcode_libdir_separator=':'
8542 link_all_deplibs=yes
8543 file_list_spec='${wl}-f,'
8545 if test "$GCC" = yes; then
8546 case $host_os in aix4.[012]|aix4.[012].*)
8547 # We only want to do this on AIX 4.2 and lower, the check
8548 # below for broken collect2 doesn't work under 4.3+
8549 collect2name=`${CC} -print-prog-name=collect2`
8550 if test -f "$collect2name" &&
8551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8552 then
8553 # We have reworked collect2
8555 else
8556 # We have old collect2
8557 hardcode_direct=unsupported
8558 # It fails to find uninstalled libraries when the uninstalled
8559 # path is not listed in the libpath. Setting hardcode_minus_L
8560 # to unsupported forces relinking
8561 hardcode_minus_L=yes
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_libdir_separator=
8566 esac
8567 shared_flag='-shared'
8568 if test "$aix_use_runtimelinking" = yes; then
8569 shared_flag="$shared_flag "'${wl}-G'
8571 else
8572 # not using gcc
8573 if test "$host_cpu" = ia64; then
8574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8575 # chokes on -Wl,-G. The following line is correct:
8576 shared_flag='-G'
8577 else
8578 if test "$aix_use_runtimelinking" = yes; then
8579 shared_flag='${wl}-G'
8580 else
8581 shared_flag='${wl}-bM:SRE'
8586 export_dynamic_flag_spec='${wl}-bexpall'
8587 # It seems that -bexpall does not export symbols beginning with
8588 # underscore (_), so it is better to generate a list of symbols to export.
8589 always_export_symbols=yes
8590 if test "$aix_use_runtimelinking" = yes; then
8591 # Warning - without using the other runtime loading flags (-brtl),
8592 # -berok will link without error, but may produce a broken library.
8593 allow_undefined_flag='-berok'
8594 # Determine the default libpath from the value encoded in an
8595 # empty executable.
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8600 main ()
8604 return 0;
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8609 lt_aix_libpath_sed='
8610 /Import File Strings/,/^$/ {
8611 /^0/ {
8612 s/^0 *\(.*\)$/\1/
8616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8617 # Check for a 64-bit object if we didn't find anything.
8618 if test -z "$aix_libpath"; then
8619 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8627 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"
8628 else
8629 if test "$host_cpu" = ia64; then
8630 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8631 allow_undefined_flag="-z nodefs"
8632 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"
8633 else
8634 # Determine the default libpath from the value encoded in an
8635 # empty executable.
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8640 main ()
8644 return 0;
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"; then :
8649 lt_aix_libpath_sed='
8650 /Import File Strings/,/^$/ {
8651 /^0/ {
8652 s/^0 *\(.*\)$/\1/
8656 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8657 # Check for a 64-bit object if we didn't find anything.
8658 if test -z "$aix_libpath"; then
8659 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8662 rm -f core conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8664 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8667 # Warning - without using the other run time loading flags,
8668 # -berok will link without error, but may produce a broken library.
8669 no_undefined_flag=' ${wl}-bernotok'
8670 allow_undefined_flag=' ${wl}-berok'
8671 if test "$with_gnu_ld" = yes; then
8672 # We only use this code for GNU lds that support --whole-archive.
8673 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8674 else
8675 # Exported symbols can be pulled into shared objects from archives
8676 whole_archive_flag_spec='$convenience'
8678 archive_cmds_need_lc=yes
8679 # This is similar to how AIX traditionally builds its shared libraries.
8680 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'
8685 amigaos*)
8686 case $host_cpu in
8687 powerpc)
8688 # see comment about AmigaOS4 .so support
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds=''
8692 m68k)
8693 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)'
8694 hardcode_libdir_flag_spec='-L$libdir'
8695 hardcode_minus_L=yes
8697 esac
8700 bsdi[45]*)
8701 export_dynamic_flag_spec=-rdynamic
8704 cygwin* | mingw* | pw32* | cegcc*)
8705 # When not using gcc, we currently assume that we are using
8706 # Microsoft Visual C++.
8707 # hardcode_libdir_flag_spec is actually meaningless, as there is
8708 # no search path for DLLs.
8709 hardcode_libdir_flag_spec=' '
8710 allow_undefined_flag=unsupported
8711 # Tell ltmain to make .lib files, not .a files.
8712 libext=lib
8713 # Tell ltmain to make .dll files, not .so files.
8714 shrext_cmds=".dll"
8715 # FIXME: Setting linknames here is a bad hack.
8716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8717 # The linker will automatically build a .lib file if we build a DLL.
8718 old_archive_from_new_cmds='true'
8719 # FIXME: Should let the user specify the lib program.
8720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8721 fix_srcfile_path='`cygpath -w "$srcfile"`'
8722 enable_shared_with_static_runtimes=yes
8725 darwin* | rhapsody*)
8728 archive_cmds_need_lc=no
8729 hardcode_direct=no
8730 hardcode_automatic=yes
8731 hardcode_shlibpath_var=unsupported
8732 if test "$lt_cv_ld_force_load" = "yes"; then
8733 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\"`'
8734 else
8735 whole_archive_flag_spec=''
8737 link_all_deplibs=yes
8738 allow_undefined_flag="$_lt_dar_allow_undefined"
8739 case $cc_basename in
8740 ifort*) _lt_dar_can_shared=yes ;;
8741 *) _lt_dar_can_shared=$GCC ;;
8742 esac
8743 if test "$_lt_dar_can_shared" = "yes"; then
8744 output_verbose_link_cmd=func_echo_all
8745 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8746 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8747 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}"
8748 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}"
8750 else
8751 ld_shlibs=no
8756 dgux*)
8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 hardcode_shlibpath_var=no
8762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8763 # support. Future versions do this automatically, but an explicit c++rt0.o
8764 # does not break anything, and helps significantly (at the cost of a little
8765 # extra space).
8766 freebsd2.2*)
8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8768 hardcode_libdir_flag_spec='-R$libdir'
8769 hardcode_direct=yes
8770 hardcode_shlibpath_var=no
8773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8774 freebsd2.*)
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_direct=yes
8777 hardcode_minus_L=yes
8778 hardcode_shlibpath_var=no
8781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8782 freebsd* | dragonfly*)
8783 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8784 hardcode_libdir_flag_spec='-R$libdir'
8785 hardcode_direct=yes
8786 hardcode_shlibpath_var=no
8789 hpux9*)
8790 if test "$GCC" = yes; then
8791 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'
8792 else
8793 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'
8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796 hardcode_libdir_separator=:
8797 hardcode_direct=yes
8799 # hardcode_minus_L: Not really in the search PATH,
8800 # but as the default location of the library.
8801 hardcode_minus_L=yes
8802 export_dynamic_flag_spec='${wl}-E'
8805 hpux10*)
8806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8808 else
8809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8811 if test "$with_gnu_ld" = no; then
8812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8813 hardcode_libdir_flag_spec_ld='+b $libdir'
8814 hardcode_libdir_separator=:
8815 hardcode_direct=yes
8816 hardcode_direct_absolute=yes
8817 export_dynamic_flag_spec='${wl}-E'
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8824 hpux11*)
8825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8826 case $host_cpu in
8827 hppa*64*)
8828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 ia64*)
8831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836 esac
8837 else
8838 case $host_cpu in
8839 hppa*64*)
8840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 ia64*)
8843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8847 # Older versions of the 11.00 compiler do not understand -b yet
8848 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8850 $as_echo_n "checking if $CC understands -b... " >&6; }
8851 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 lt_cv_prog_compiler__b=no
8855 save_LDFLAGS="$LDFLAGS"
8856 LDFLAGS="$LDFLAGS -b"
8857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8859 # The linker can only warn and ignore the option if not recognized
8860 # So say no if there are warnings
8861 if test -s conftest.err; then
8862 # Append any errors to the config.log.
8863 cat conftest.err 1>&5
8864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler__b=yes
8869 else
8870 lt_cv_prog_compiler__b=yes
8873 $RM -r conftest*
8874 LDFLAGS="$save_LDFLAGS"
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8878 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8880 if test x"$lt_cv_prog_compiler__b" = xyes; then
8881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8882 else
8883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8887 esac
8889 if test "$with_gnu_ld" = no; then
8890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891 hardcode_libdir_separator=:
8893 case $host_cpu in
8894 hppa*64*|ia64*)
8895 hardcode_direct=no
8896 hardcode_shlibpath_var=no
8899 hardcode_direct=yes
8900 hardcode_direct_absolute=yes
8901 export_dynamic_flag_spec='${wl}-E'
8903 # hardcode_minus_L: Not really in the search PATH,
8904 # but as the default location of the library.
8905 hardcode_minus_L=yes
8907 esac
8911 irix5* | irix6* | nonstopux*)
8912 if test "$GCC" = yes; then
8913 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'
8914 # Try to use the -exported_symbol ld option, if it does not
8915 # work, assume that -exports_file does not work either and
8916 # implicitly export all symbols.
8917 save_LDFLAGS="$LDFLAGS"
8918 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 int foo(void) {}
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 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'
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 LDFLAGS="$save_LDFLAGS"
8930 else
8931 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'
8932 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'
8934 archive_cmds_need_lc='no'
8935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936 hardcode_libdir_separator=:
8937 inherit_rpath=yes
8938 link_all_deplibs=yes
8941 netbsd*)
8942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8944 else
8945 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8947 hardcode_libdir_flag_spec='-R$libdir'
8948 hardcode_direct=yes
8949 hardcode_shlibpath_var=no
8952 newsos6)
8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_direct=yes
8955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8956 hardcode_libdir_separator=:
8957 hardcode_shlibpath_var=no
8960 *nto* | *qnx*)
8963 openbsd*)
8964 if test -f /usr/libexec/ld.so; then
8965 hardcode_direct=yes
8966 hardcode_shlibpath_var=no
8967 hardcode_direct_absolute=yes
8968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8970 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8972 export_dynamic_flag_spec='${wl}-E'
8973 else
8974 case $host_os in
8975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8977 hardcode_libdir_flag_spec='-R$libdir'
8980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8983 esac
8985 else
8986 ld_shlibs=no
8990 os2*)
8991 hardcode_libdir_flag_spec='-L$libdir'
8992 hardcode_minus_L=yes
8993 allow_undefined_flag=unsupported
8994 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'
8995 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8998 osf3*)
8999 if test "$GCC" = yes; then
9000 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9001 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'
9002 else
9003 allow_undefined_flag=' -expect_unresolved \*'
9004 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'
9006 archive_cmds_need_lc='no'
9007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008 hardcode_libdir_separator=:
9011 osf4* | osf5*) # as osf3* with the addition of -msym flag
9012 if test "$GCC" = yes; then
9013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9014 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'
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 else
9017 allow_undefined_flag=' -expect_unresolved \*'
9018 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'
9019 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~
9020 $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'
9022 # Both c and cxx compiler support -rpath directly
9023 hardcode_libdir_flag_spec='-rpath $libdir'
9025 archive_cmds_need_lc='no'
9026 hardcode_libdir_separator=:
9029 solaris*)
9030 no_undefined_flag=' -z defs'
9031 if test "$GCC" = yes; then
9032 wlarc='${wl}'
9033 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9035 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9036 else
9037 case `$CC -V 2>&1` in
9038 *"Compilers 5.0"*)
9039 wlarc=''
9040 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9042 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9045 wlarc='${wl}'
9046 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9048 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9050 esac
9052 hardcode_libdir_flag_spec='-R$libdir'
9053 hardcode_shlibpath_var=no
9054 case $host_os in
9055 solaris2.[0-5] | solaris2.[0-5].*) ;;
9057 # The compiler driver will combine and reorder linker options,
9058 # but understands `-z linker_flag'. GCC discards it without `$wl',
9059 # but is careful enough not to reorder.
9060 # Supported since Solaris 2.6 (maybe 2.5.1?)
9061 if test "$GCC" = yes; then
9062 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9063 else
9064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9067 esac
9068 link_all_deplibs=yes
9071 sunos4*)
9072 if test "x$host_vendor" = xsequent; then
9073 # Use $CC to link under sequent, because it throws in some extra .o
9074 # files that make .init and .fini sections work.
9075 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9076 else
9077 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_direct=yes
9081 hardcode_minus_L=yes
9082 hardcode_shlibpath_var=no
9085 sysv4)
9086 case $host_vendor in
9087 sni)
9088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9089 hardcode_direct=yes # is this really true???
9091 siemens)
9092 ## LD is ld it makes a PLAMLIB
9093 ## CC just makes a GrossModule.
9094 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9095 reload_cmds='$CC -r -o $output$reload_objs'
9096 hardcode_direct=no
9098 motorola)
9099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9102 esac
9103 runpath_var='LD_RUN_PATH'
9104 hardcode_shlibpath_var=no
9107 sysv4.3*)
9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109 hardcode_shlibpath_var=no
9110 export_dynamic_flag_spec='-Bexport'
9113 sysv4*MP*)
9114 if test -d /usr/nec; then
9115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9116 hardcode_shlibpath_var=no
9117 runpath_var=LD_RUN_PATH
9118 hardcode_runpath_var=yes
9119 ld_shlibs=yes
9123 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9124 no_undefined_flag='${wl}-z,text'
9125 archive_cmds_need_lc=no
9126 hardcode_shlibpath_var=no
9127 runpath_var='LD_RUN_PATH'
9129 if test "$GCC" = yes; then
9130 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 else
9133 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 sysv5* | sco3.2v5* | sco5v6*)
9139 # Note: We can NOT use -z defs as we might desire, because we do not
9140 # link with -lc, and that would cause any symbols used from libc to
9141 # always be unresolved, which means just about no library would
9142 # ever link correctly. If we're not using GNU ld we use -z text
9143 # though, which does catch some bad symbols but isn't as heavy-handed
9144 # as -z defs.
9145 no_undefined_flag='${wl}-z,text'
9146 allow_undefined_flag='${wl}-z,nodefs'
9147 archive_cmds_need_lc=no
9148 hardcode_shlibpath_var=no
9149 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9150 hardcode_libdir_separator=':'
9151 link_all_deplibs=yes
9152 export_dynamic_flag_spec='${wl}-Bexport'
9153 runpath_var='LD_RUN_PATH'
9155 if test "$GCC" = yes; then
9156 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9158 else
9159 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9164 uts4*)
9165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9166 hardcode_libdir_flag_spec='-L$libdir'
9167 hardcode_shlibpath_var=no
9171 ld_shlibs=no
9173 esac
9175 if test x$host_vendor = xsni; then
9176 case $host in
9177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9178 export_dynamic_flag_spec='${wl}-Blargedynsym'
9180 esac
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9185 $as_echo "$ld_shlibs" >&6; }
9186 test "$ld_shlibs" = no && can_build_shared=no
9188 with_gnu_ld=$with_gnu_ld
9205 # Do we need to explicitly link libc?
9207 case "x$archive_cmds_need_lc" in
9208 x|xyes)
9209 # Assume -lc should be added
9210 archive_cmds_need_lc=yes
9212 if test "$enable_shared" = yes && test "$GCC" = yes; then
9213 case $archive_cmds in
9214 *'~'*)
9215 # FIXME: we may have to deal with multi-command sequences.
9217 '$CC '*)
9218 # Test whether the compiler implicitly links with -lc since on some
9219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9220 # to ld, don't add -lc before -lgcc.
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9222 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9223 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 $RM conftest*
9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9230 (eval $ac_compile) 2>&5
9231 ac_status=$?
9232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9233 test $ac_status = 0; } 2>conftest.err; then
9234 soname=conftest
9235 lib=conftest
9236 libobjs=conftest.$ac_objext
9237 deplibs=
9238 wl=$lt_prog_compiler_wl
9239 pic_flag=$lt_prog_compiler_pic
9240 compiler_flags=-v
9241 linker_flags=-v
9242 verstring=
9243 output_objdir=.
9244 libname=conftest
9245 lt_save_allow_undefined_flag=$allow_undefined_flag
9246 allow_undefined_flag=
9247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9248 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9249 ac_status=$?
9250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9251 test $ac_status = 0; }
9252 then
9253 lt_cv_archive_cmds_need_lc=no
9254 else
9255 lt_cv_archive_cmds_need_lc=yes
9257 allow_undefined_flag=$lt_save_allow_undefined_flag
9258 else
9259 cat conftest.err 1>&5
9261 $RM conftest*
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9265 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9266 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9268 esac
9271 esac
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9430 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9432 if test "$GCC" = yes; then
9433 case $host_os in
9434 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9435 *) lt_awk_arg="/^libraries:/" ;;
9436 esac
9437 case $host_os in
9438 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9439 *) lt_sed_strip_eq="s,=/,/,g" ;;
9440 esac
9441 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9442 case $lt_search_path_spec in
9443 *\;*)
9444 # if the path contains ";" then we assume it to be the separator
9445 # otherwise default to the standard path separator (i.e. ":") - it is
9446 # assumed that no part of a normal pathname contains ";" but that should
9447 # okay in the real world where ";" in dirpaths is itself problematic.
9448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9453 esac
9454 # Ok, now we have the path, separated by spaces, we can step through it
9455 # and add multilib dir if necessary.
9456 lt_tmp_lt_search_path_spec=
9457 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9458 for lt_sys_path in $lt_search_path_spec; do
9459 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9460 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9461 else
9462 test -d "$lt_sys_path" && \
9463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9465 done
9466 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9467 BEGIN {RS=" "; FS="/|\n";} {
9468 lt_foo="";
9469 lt_count=0;
9470 for (lt_i = NF; lt_i > 0; lt_i--) {
9471 if ($lt_i != "" && $lt_i != ".") {
9472 if ($lt_i == "..") {
9473 lt_count++;
9474 } else {
9475 if (lt_count == 0) {
9476 lt_foo="/" $lt_i lt_foo;
9477 } else {
9478 lt_count--;
9483 if (lt_foo != "") { lt_freq[lt_foo]++; }
9484 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9486 # AWK program above erroneously prepends '/' to C:/dos/paths
9487 # for these hosts.
9488 case $host_os in
9489 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9490 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9491 esac
9492 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9493 else
9494 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9496 library_names_spec=
9497 libname_spec='lib$name'
9498 soname_spec=
9499 shrext_cmds=".so"
9500 postinstall_cmds=
9501 postuninstall_cmds=
9502 finish_cmds=
9503 finish_eval=
9504 shlibpath_var=
9505 shlibpath_overrides_runpath=unknown
9506 version_type=none
9507 dynamic_linker="$host_os ld.so"
9508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9509 need_lib_prefix=unknown
9510 hardcode_into_libs=no
9512 # when you set need_version to no, make sure it does not cause -set_version
9513 # flags to be left without arguments
9514 need_version=unknown
9516 case $host_os in
9517 aix3*)
9518 version_type=linux
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9520 shlibpath_var=LIBPATH
9522 # AIX 3 has no versioning support, so we append a major version to the name.
9523 soname_spec='${libname}${release}${shared_ext}$major'
9526 aix[4-9]*)
9527 version_type=linux
9528 need_lib_prefix=no
9529 need_version=no
9530 hardcode_into_libs=yes
9531 if test "$host_cpu" = ia64; then
9532 # AIX 5 supports IA64
9533 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 else
9536 # With GCC up to 2.95.x, collect2 would create an import file
9537 # for dependence libraries. The import file would start with
9538 # the line `#! .'. This would cause the generated library to
9539 # depend on `.', always an invalid library. This was fixed in
9540 # development snapshots of GCC prior to 3.0.
9541 case $host_os in
9542 aix4 | aix4.[01] | aix4.[01].*)
9543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9544 echo ' yes '
9545 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9547 else
9548 can_build_shared=no
9551 esac
9552 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9553 # soname into executable. Probably we can add versioning support to
9554 # collect2, so additional links can be useful in future.
9555 if test "$aix_use_runtimelinking" = yes; then
9556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9557 # instead of lib<name>.a to let people know that these are not
9558 # typical AIX shared libraries.
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 else
9561 # We preserve .a as extension for shared libraries through AIX4.2
9562 # and later when we are not doing run time linking.
9563 library_names_spec='${libname}${release}.a $libname.a'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9566 shlibpath_var=LIBPATH
9570 amigaos*)
9571 case $host_cpu in
9572 powerpc)
9573 # Since July 2007 AmigaOS4 officially supports .so libraries.
9574 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577 m68k)
9578 library_names_spec='$libname.ixlibrary $libname.a'
9579 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9580 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'
9582 esac
9585 beos*)
9586 library_names_spec='${libname}${shared_ext}'
9587 dynamic_linker="$host_os ld.so"
9588 shlibpath_var=LIBRARY_PATH
9591 bsdi[45]*)
9592 version_type=linux
9593 need_version=no
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9599 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9600 # the default ld.so.conf also contains /usr/contrib/lib and
9601 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9602 # libtool to hard-code these into programs
9605 cygwin* | mingw* | pw32* | cegcc*)
9606 version_type=windows
9607 shrext_cmds=".dll"
9608 need_version=no
9609 need_lib_prefix=no
9611 case $GCC,$host_os in
9612 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9613 library_names_spec='$libname.dll.a'
9614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9615 postinstall_cmds='base_file=`basename \${file}`~
9616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9617 dldir=$destdir/`dirname \$dlpath`~
9618 test -d \$dldir || mkdir -p \$dldir~
9619 $install_prog $dir/$dlname \$dldir/$dlname~
9620 chmod a+x \$dldir/$dlname~
9621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9625 dlpath=$dir/\$dldll~
9626 $RM \$dlpath'
9627 shlibpath_overrides_runpath=yes
9629 case $host_os in
9630 cygwin*)
9631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9636 mingw* | cegcc*)
9637 # MinGW DLLs use traditional 'lib' prefix
9638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9640 pw32*)
9641 # pw32 DLLs use 'pw' prefix rather than 'lib'
9642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644 esac
9648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9650 esac
9651 dynamic_linker='Win32 ld.exe'
9652 # FIXME: first we should search . and the directory the executable is in
9653 shlibpath_var=PATH
9656 darwin* | rhapsody*)
9657 dynamic_linker="$host_os dyld"
9658 version_type=darwin
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9662 soname_spec='${libname}${release}${major}$shared_ext'
9663 shlibpath_overrides_runpath=yes
9664 shlibpath_var=DYLD_LIBRARY_PATH
9665 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9667 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9671 dgux*)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9680 freebsd* | dragonfly*)
9681 # DragonFly does not have aout. When/if they implement a new
9682 # versioning mechanism, adjust this.
9683 if test -x /usr/bin/objformat; then
9684 objformat=`/usr/bin/objformat`
9685 else
9686 case $host_os in
9687 freebsd[23].*) objformat=aout ;;
9688 *) objformat=elf ;;
9689 esac
9691 version_type=freebsd-$objformat
9692 case $version_type in
9693 freebsd-elf*)
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9695 need_version=no
9696 need_lib_prefix=no
9698 freebsd-*)
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9700 need_version=yes
9702 esac
9703 shlibpath_var=LD_LIBRARY_PATH
9704 case $host_os in
9705 freebsd2.*)
9706 shlibpath_overrides_runpath=yes
9708 freebsd3.[01]* | freebsdelf3.[01]*)
9709 shlibpath_overrides_runpath=yes
9710 hardcode_into_libs=yes
9712 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9713 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9714 shlibpath_overrides_runpath=no
9715 hardcode_into_libs=yes
9717 *) # from 4.6 on, and DragonFly
9718 shlibpath_overrides_runpath=yes
9719 hardcode_into_libs=yes
9721 esac
9724 gnu*)
9725 version_type=linux
9726 need_lib_prefix=no
9727 need_version=no
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 hardcode_into_libs=yes
9734 haiku*)
9735 version_type=linux
9736 need_lib_prefix=no
9737 need_version=no
9738 dynamic_linker="$host_os runtime_loader"
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9744 hardcode_into_libs=yes
9747 hpux9* | hpux10* | hpux11*)
9748 # Give a soname corresponding to the major version so that dld.sl refuses to
9749 # link against other versions.
9750 version_type=sunos
9751 need_lib_prefix=no
9752 need_version=no
9753 case $host_cpu in
9754 ia64*)
9755 shrext_cmds='.so'
9756 hardcode_into_libs=yes
9757 dynamic_linker="$host_os dld.so"
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9761 soname_spec='${libname}${release}${shared_ext}$major'
9762 if test "X$HPUX_IA64_MODE" = X32; then
9763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9764 else
9765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9769 hppa*64*)
9770 shrext_cmds='.sl'
9771 hardcode_into_libs=yes
9772 dynamic_linker="$host_os dld.sl"
9773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9781 shrext_cmds='.sl'
9782 dynamic_linker="$host_os dld.sl"
9783 shlibpath_var=SHLIB_PATH
9784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9788 esac
9789 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9790 postinstall_cmds='chmod 555 $lib'
9791 # or fails outright, so override atomically:
9792 install_override_mode=555
9795 interix[3-9]*)
9796 version_type=linux
9797 need_lib_prefix=no
9798 need_version=no
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 shlibpath_overrides_runpath=no
9804 hardcode_into_libs=yes
9807 irix5* | irix6* | nonstopux*)
9808 case $host_os in
9809 nonstopux*) version_type=nonstopux ;;
9811 if test "$lt_cv_prog_gnu_ld" = yes; then
9812 version_type=linux
9813 else
9814 version_type=irix
9815 fi ;;
9816 esac
9817 need_lib_prefix=no
9818 need_version=no
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9821 case $host_os in
9822 irix5* | nonstopux*)
9823 libsuff= shlibsuff=
9826 case $LD in # libtool.m4 will add one of these switches to LD
9827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9828 libsuff= shlibsuff= libmagic=32-bit;;
9829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9830 libsuff=32 shlibsuff=N32 libmagic=N32;;
9831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9832 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9833 *) libsuff= shlibsuff= libmagic=never-match;;
9834 esac
9836 esac
9837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9838 shlibpath_overrides_runpath=no
9839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9841 hardcode_into_libs=yes
9844 # No shared lib support for Linux oldld, aout, or coff.
9845 linux*oldld* | linux*aout* | linux*coff*)
9846 dynamic_linker=no
9849 # This must be Linux ELF.
9850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9851 version_type=linux
9852 need_lib_prefix=no
9853 need_version=no
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=no
9860 # Some binutils ld are patched to set DT_RUNPATH
9861 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 lt_cv_shlibpath_overrides_runpath=no
9865 save_LDFLAGS=$LDFLAGS
9866 save_libdir=$libdir
9867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9873 main ()
9877 return 0;
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"; then :
9881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9882 lt_cv_shlibpath_overrides_runpath=yes
9885 rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 LDFLAGS=$save_LDFLAGS
9888 libdir=$save_libdir
9892 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9894 # This implies no fast_install, which is unacceptable.
9895 # Some rework will be needed to allow for fast_install
9896 # before this can be enabled.
9897 hardcode_into_libs=yes
9899 # Append ld.so.conf contents to the search path
9900 if test -f /etc/ld.so.conf; then
9901 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' ' '`
9902 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9905 # We used to test for /lib/ld.so.1 and disable shared libraries on
9906 # powerpc, because MkLinux only supported shared libraries with the
9907 # GNU dynamic linker. Since this was broken with cross compilers,
9908 # most powerpc-linux boxes support dynamic linking these days and
9909 # people can always --disable-shared, the test was removed, and we
9910 # assume the GNU/Linux dynamic linker is in use.
9911 dynamic_linker='GNU/Linux ld.so'
9914 netbsd*)
9915 version_type=sunos
9916 need_lib_prefix=no
9917 need_version=no
9918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9921 dynamic_linker='NetBSD (a.out) ld.so'
9922 else
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 dynamic_linker='NetBSD ld.elf_so'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9932 newsos6)
9933 version_type=linux
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 shlibpath_overrides_runpath=yes
9939 *nto* | *qnx*)
9940 version_type=qnx
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 shlibpath_overrides_runpath=no
9947 hardcode_into_libs=yes
9948 dynamic_linker='ldqnx.so'
9951 openbsd*)
9952 version_type=sunos
9953 sys_lib_dlsearch_path_spec="/usr/lib"
9954 need_lib_prefix=no
9955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9956 case $host_os in
9957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9958 *) need_version=no ;;
9959 esac
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9964 case $host_os in
9965 openbsd2.[89] | openbsd2.[89].*)
9966 shlibpath_overrides_runpath=no
9969 shlibpath_overrides_runpath=yes
9971 esac
9972 else
9973 shlibpath_overrides_runpath=yes
9977 os2*)
9978 libname_spec='$name'
9979 shrext_cmds=".dll"
9980 need_lib_prefix=no
9981 library_names_spec='$libname${shared_ext} $libname.a'
9982 dynamic_linker='OS/2 ld.exe'
9983 shlibpath_var=LIBPATH
9986 osf3* | osf4* | osf5*)
9987 version_type=osf
9988 need_lib_prefix=no
9989 need_version=no
9990 soname_spec='${libname}${release}${shared_ext}$major'
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 shlibpath_var=LD_LIBRARY_PATH
9993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9997 rdos*)
9998 dynamic_linker=no
10001 solaris*)
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=yes
10009 hardcode_into_libs=yes
10010 # ldd complains unless libraries are executable
10011 postinstall_cmds='chmod +x $lib'
10014 sunos4*)
10015 version_type=sunos
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes
10020 if test "$with_gnu_ld" = yes; then
10021 need_lib_prefix=no
10023 need_version=yes
10026 sysv4 | sysv4.3*)
10027 version_type=linux
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 case $host_vendor in
10032 sni)
10033 shlibpath_overrides_runpath=no
10034 need_lib_prefix=no
10035 runpath_var=LD_RUN_PATH
10037 siemens)
10038 need_lib_prefix=no
10040 motorola)
10041 need_lib_prefix=no
10042 need_version=no
10043 shlibpath_overrides_runpath=no
10044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10046 esac
10049 sysv4*MP*)
10050 if test -d /usr/nec ;then
10051 version_type=linux
10052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10053 soname_spec='$libname${shared_ext}.$major'
10054 shlibpath_var=LD_LIBRARY_PATH
10058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10059 version_type=freebsd-elf
10060 need_lib_prefix=no
10061 need_version=no
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10067 if test "$with_gnu_ld" = yes; then
10068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10069 else
10070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10071 case $host_os in
10072 sco3.2v5*)
10073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10075 esac
10077 sys_lib_dlsearch_path_spec='/usr/lib'
10080 tpf*)
10081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10082 version_type=linux
10083 need_lib_prefix=no
10084 need_version=no
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath=no
10088 hardcode_into_libs=yes
10091 uts4*)
10092 version_type=linux
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 shlibpath_var=LD_LIBRARY_PATH
10099 dynamic_linker=no
10101 esac
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10103 $as_echo "$dynamic_linker" >&6; }
10104 test "$dynamic_linker" = no && can_build_shared=no
10106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10107 if test "$GCC" = yes; then
10108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10111 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10114 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10210 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10211 hardcode_action=
10212 if test -n "$hardcode_libdir_flag_spec" ||
10213 test -n "$runpath_var" ||
10214 test "X$hardcode_automatic" = "Xyes" ; then
10216 # We can hardcode non-existent directories.
10217 if test "$hardcode_direct" != no &&
10218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10219 # have to relink, otherwise we might link with an installed library
10220 # when we should be linking with a yet-to-be-installed one
10221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10222 test "$hardcode_minus_L" != no; then
10223 # Linking always hardcodes the temporary library directory.
10224 hardcode_action=relink
10225 else
10226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10227 hardcode_action=immediate
10229 else
10230 # We cannot hardcode anything, or else we can only hardcode existing
10231 # directories.
10232 hardcode_action=unsupported
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10235 $as_echo "$hardcode_action" >&6; }
10237 if test "$hardcode_action" = relink ||
10238 test "$inherit_rpath" = yes; then
10239 # Fast installation is not supported
10240 enable_fast_install=no
10241 elif test "$shlibpath_overrides_runpath" = yes ||
10242 test "$enable_shared" = no; then
10243 # Fast installation is not necessary
10244 enable_fast_install=needless
10252 if test "x$enable_dlopen" != xyes; then
10253 enable_dlopen=unknown
10254 enable_dlopen_self=unknown
10255 enable_dlopen_self_static=unknown
10256 else
10257 lt_cv_dlopen=no
10258 lt_cv_dlopen_libs=
10260 case $host_os in
10261 beos*)
10262 lt_cv_dlopen="load_add_on"
10263 lt_cv_dlopen_libs=
10264 lt_cv_dlopen_self=yes
10267 mingw* | pw32* | cegcc*)
10268 lt_cv_dlopen="LoadLibrary"
10269 lt_cv_dlopen_libs=
10272 cygwin*)
10273 lt_cv_dlopen="dlopen"
10274 lt_cv_dlopen_libs=
10277 darwin*)
10278 # if libdl is installed we need to link against it
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 ac_check_lib_save_LIBS=$LIBS
10285 LIBS="-ldl $LIBS"
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char dlopen ();
10297 main ()
10299 return dlopen ();
10301 return 0;
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 ac_cv_lib_dl_dlopen=yes
10306 else
10307 ac_cv_lib_dl_dlopen=no
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10315 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10317 else
10319 lt_cv_dlopen="dyld"
10320 lt_cv_dlopen_libs=
10321 lt_cv_dlopen_self=yes
10328 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10329 if test "x$ac_cv_func_shl_load" = x""yes; then :
10330 lt_cv_dlopen="shl_load"
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10333 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10334 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-ldld $LIBS"
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char shl_load ();
10350 main ()
10352 return shl_load ();
10354 return 0;
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 ac_cv_lib_dld_shl_load=yes
10359 else
10360 ac_cv_lib_dld_shl_load=no
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 LIBS=$ac_check_lib_save_LIBS
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10367 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10368 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10370 else
10371 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10372 if test "x$ac_cv_func_dlopen" = x""yes; then :
10373 lt_cv_dlopen="dlopen"
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-ldl $LIBS"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 char dlopen ();
10393 main ()
10395 return dlopen ();
10397 return 0;
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 ac_cv_lib_dl_dlopen=yes
10402 else
10403 ac_cv_lib_dl_dlopen=no
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 LIBS=$ac_check_lib_save_LIBS
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10411 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10413 else
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10415 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10416 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 ac_check_lib_save_LIBS=$LIBS
10420 LIBS="-lsvld $LIBS"
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char dlopen ();
10432 main ()
10434 return dlopen ();
10436 return 0;
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 ac_cv_lib_svld_dlopen=yes
10441 else
10442 ac_cv_lib_svld_dlopen=no
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 LIBS=$ac_check_lib_save_LIBS
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10449 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10450 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10454 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10455 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 ac_check_lib_save_LIBS=$LIBS
10459 LIBS="-ldld $LIBS"
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 char dld_link ();
10471 main ()
10473 return dld_link ();
10475 return 0;
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"; then :
10479 ac_cv_lib_dld_dld_link=yes
10480 else
10481 ac_cv_lib_dld_dld_link=no
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10485 LIBS=$ac_check_lib_save_LIBS
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10488 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10489 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10509 esac
10511 if test "x$lt_cv_dlopen" != xno; then
10512 enable_dlopen=yes
10513 else
10514 enable_dlopen=no
10517 case $lt_cv_dlopen in
10518 dlopen)
10519 save_CPPFLAGS="$CPPFLAGS"
10520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10522 save_LDFLAGS="$LDFLAGS"
10523 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10525 save_LIBS="$LIBS"
10526 LIBS="$lt_cv_dlopen_libs $LIBS"
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10529 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10530 if test "${lt_cv_dlopen_self+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 if test "$cross_compiling" = yes; then :
10534 lt_cv_dlopen_self=cross
10535 else
10536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537 lt_status=$lt_dlunknown
10538 cat > conftest.$ac_ext <<_LT_EOF
10539 #line 10539 "configure"
10540 #include "confdefs.h"
10542 #if HAVE_DLFCN_H
10543 #include <dlfcn.h>
10544 #endif
10546 #include <stdio.h>
10548 #ifdef RTLD_GLOBAL
10549 # define LT_DLGLOBAL RTLD_GLOBAL
10550 #else
10551 # ifdef DL_GLOBAL
10552 # define LT_DLGLOBAL DL_GLOBAL
10553 # else
10554 # define LT_DLGLOBAL 0
10555 # endif
10556 #endif
10558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559 find out it does not work in some platform. */
10560 #ifndef LT_DLLAZY_OR_NOW
10561 # ifdef RTLD_LAZY
10562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10563 # else
10564 # ifdef DL_LAZY
10565 # define LT_DLLAZY_OR_NOW DL_LAZY
10566 # else
10567 # ifdef RTLD_NOW
10568 # define LT_DLLAZY_OR_NOW RTLD_NOW
10569 # else
10570 # ifdef DL_NOW
10571 # define LT_DLLAZY_OR_NOW DL_NOW
10572 # else
10573 # define LT_DLLAZY_OR_NOW 0
10574 # endif
10575 # endif
10576 # endif
10577 # endif
10578 #endif
10580 /* When -fvisbility=hidden is used, assume the code has been annotated
10581 correspondingly for the symbols needed. */
10582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10583 void fnord () __attribute__((visibility("default")));
10584 #endif
10586 void fnord () { int i=42; }
10587 int main ()
10589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10590 int status = $lt_dlunknown;
10592 if (self)
10594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10595 else
10597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10598 else puts (dlerror ());
10600 /* dlclose (self); */
10602 else
10603 puts (dlerror ());
10605 return status;
10607 _LT_EOF
10608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10609 (eval $ac_link) 2>&5
10610 ac_status=$?
10611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10613 (./conftest; exit; ) >&5 2>/dev/null
10614 lt_status=$?
10615 case x$lt_status in
10616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10618 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10619 esac
10620 else :
10621 # compilation failed
10622 lt_cv_dlopen_self=no
10625 rm -fr conftest*
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10630 $as_echo "$lt_cv_dlopen_self" >&6; }
10632 if test "x$lt_cv_dlopen_self" = xyes; then
10633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10635 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10636 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 if test "$cross_compiling" = yes; then :
10640 lt_cv_dlopen_self_static=cross
10641 else
10642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10643 lt_status=$lt_dlunknown
10644 cat > conftest.$ac_ext <<_LT_EOF
10645 #line 10645 "configure"
10646 #include "confdefs.h"
10648 #if HAVE_DLFCN_H
10649 #include <dlfcn.h>
10650 #endif
10652 #include <stdio.h>
10654 #ifdef RTLD_GLOBAL
10655 # define LT_DLGLOBAL RTLD_GLOBAL
10656 #else
10657 # ifdef DL_GLOBAL
10658 # define LT_DLGLOBAL DL_GLOBAL
10659 # else
10660 # define LT_DLGLOBAL 0
10661 # endif
10662 #endif
10664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10665 find out it does not work in some platform. */
10666 #ifndef LT_DLLAZY_OR_NOW
10667 # ifdef RTLD_LAZY
10668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10669 # else
10670 # ifdef DL_LAZY
10671 # define LT_DLLAZY_OR_NOW DL_LAZY
10672 # else
10673 # ifdef RTLD_NOW
10674 # define LT_DLLAZY_OR_NOW RTLD_NOW
10675 # else
10676 # ifdef DL_NOW
10677 # define LT_DLLAZY_OR_NOW DL_NOW
10678 # else
10679 # define LT_DLLAZY_OR_NOW 0
10680 # endif
10681 # endif
10682 # endif
10683 # endif
10684 #endif
10686 /* When -fvisbility=hidden is used, assume the code has been annotated
10687 correspondingly for the symbols needed. */
10688 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10689 void fnord () __attribute__((visibility("default")));
10690 #endif
10692 void fnord () { int i=42; }
10693 int main ()
10695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10696 int status = $lt_dlunknown;
10698 if (self)
10700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10701 else
10703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10704 else puts (dlerror ());
10706 /* dlclose (self); */
10708 else
10709 puts (dlerror ());
10711 return status;
10713 _LT_EOF
10714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10715 (eval $ac_link) 2>&5
10716 ac_status=$?
10717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10719 (./conftest; exit; ) >&5 2>/dev/null
10720 lt_status=$?
10721 case x$lt_status in
10722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10725 esac
10726 else :
10727 # compilation failed
10728 lt_cv_dlopen_self_static=no
10731 rm -fr conftest*
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10736 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10739 CPPFLAGS="$save_CPPFLAGS"
10740 LDFLAGS="$save_LDFLAGS"
10741 LIBS="$save_LIBS"
10743 esac
10745 case $lt_cv_dlopen_self in
10746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10747 *) enable_dlopen_self=unknown ;;
10748 esac
10750 case $lt_cv_dlopen_self_static in
10751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10752 *) enable_dlopen_self_static=unknown ;;
10753 esac
10772 striplib=
10773 old_striplib=
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10775 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10776 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10777 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10778 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10780 $as_echo "yes" >&6; }
10781 else
10782 # FIXME - insert some real tests, host_os isn't really good enough
10783 case $host_os in
10784 darwin*)
10785 if test -n "$STRIP" ; then
10786 striplib="$STRIP -x"
10787 old_striplib="$STRIP -S"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789 $as_echo "yes" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10799 esac
10813 # Report which library types will actually be built
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10815 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10817 $as_echo "$can_build_shared" >&6; }
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10820 $as_echo_n "checking whether to build shared libraries... " >&6; }
10821 test "$can_build_shared" = "no" && enable_shared=no
10823 # On AIX, shared libraries and static libraries use the same namespace, and
10824 # are all built from PIC.
10825 case $host_os in
10826 aix3*)
10827 test "$enable_shared" = yes && enable_static=no
10828 if test -n "$RANLIB"; then
10829 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10830 postinstall_cmds='$RANLIB $lib'
10834 aix[4-9]*)
10835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10836 test "$enable_shared" = yes && enable_static=no
10839 esac
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10841 $as_echo "$enable_shared" >&6; }
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10844 $as_echo_n "checking whether to build static libraries... " >&6; }
10845 # Make sure either enable_shared or enable_static is yes.
10846 test "$enable_shared" = yes || enable_static=yes
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10848 $as_echo "$enable_static" >&6; }
10854 ac_ext=c
10855 ac_cpp='$CPP $CPPFLAGS'
10856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10860 CC="$lt_save_CC"
10874 ac_config_commands="$ac_config_commands libtool"
10879 # Only expand once:
10883 ac_ext=cpp
10884 ac_cpp='$CXXCPP $CPPFLAGS'
10885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10888 if test -z "$CXX"; then
10889 if test -n "$CCC"; then
10890 CXX=$CCC
10891 else
10892 if test -n "$ac_tool_prefix"; then
10893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898 $as_echo_n "checking for $ac_word... " >&6; }
10899 if test "${ac_cv_prog_CXX+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 if test -n "$CXX"; then
10903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10904 else
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10916 done
10917 done
10918 IFS=$as_save_IFS
10922 CXX=$ac_cv_prog_CXX
10923 if test -n "$CXX"; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10925 $as_echo "$CXX" >&6; }
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10932 test -n "$CXX" && break
10933 done
10935 if test -z "$CXX"; then
10936 ac_ct_CXX=$CXX
10937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10939 # Extract the first word of "$ac_prog", so it can be a program name with args.
10940 set dummy $ac_prog; ac_word=$2
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942 $as_echo_n "checking for $ac_word... " >&6; }
10943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 if test -n "$ac_ct_CXX"; then
10947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10948 else
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956 ac_cv_prog_ac_ct_CXX="$ac_prog"
10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10960 done
10961 done
10962 IFS=$as_save_IFS
10966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10967 if test -n "$ac_ct_CXX"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10969 $as_echo "$ac_ct_CXX" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10976 test -n "$ac_ct_CXX" && break
10977 done
10979 if test "x$ac_ct_CXX" = x; then
10980 CXX="g++"
10981 else
10982 case $cross_compiling:$ac_tool_warned in
10983 yes:)
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10986 ac_tool_warned=yes ;;
10987 esac
10988 CXX=$ac_ct_CXX
10994 # Provide some information about the compiler.
10995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10996 set X $ac_compile
10997 ac_compiler=$2
10998 for ac_option in --version -v -V -qversion; do
10999 { { ac_try="$ac_compiler $ac_option >&5"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11005 $as_echo "$ac_try_echo"; } >&5
11006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11007 ac_status=$?
11008 if test -s conftest.err; then
11009 sed '10a\
11010 ... rest of stderr output deleted ...
11011 10q' conftest.err >conftest.er1
11012 cat conftest.er1 >&5
11013 rm -f conftest.er1 conftest.err
11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016 test $ac_status = 0; }
11017 done
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11020 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11021 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11028 main ()
11030 #ifndef __GNUC__
11031 choke me
11032 #endif
11035 return 0;
11037 _ACEOF
11038 if ac_fn_cxx_try_compile "$LINENO"; then :
11039 ac_compiler_gnu=yes
11040 else
11041 ac_compiler_gnu=no
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11048 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11049 if test $ac_compiler_gnu = yes; then
11050 GXX=yes
11051 else
11052 GXX=
11054 ac_test_CXXFLAGS=${CXXFLAGS+set}
11055 ac_save_CXXFLAGS=$CXXFLAGS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11057 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11058 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11062 ac_cxx_werror_flag=yes
11063 ac_cv_prog_cxx_g=no
11064 CXXFLAGS="-g"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11069 main ()
11073 return 0;
11075 _ACEOF
11076 if ac_fn_cxx_try_compile "$LINENO"; then :
11077 ac_cv_prog_cxx_g=yes
11078 else
11079 CXXFLAGS=""
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11084 main ()
11088 return 0;
11090 _ACEOF
11091 if ac_fn_cxx_try_compile "$LINENO"; then :
11093 else
11094 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11095 CXXFLAGS="-g"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11100 main ()
11104 return 0;
11106 _ACEOF
11107 if ac_fn_cxx_try_compile "$LINENO"; then :
11108 ac_cv_prog_cxx_g=yes
11110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11118 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11119 if test "$ac_test_CXXFLAGS" = set; then
11120 CXXFLAGS=$ac_save_CXXFLAGS
11121 elif test $ac_cv_prog_cxx_g = yes; then
11122 if test "$GXX" = yes; then
11123 CXXFLAGS="-g -O2"
11124 else
11125 CXXFLAGS="-g"
11127 else
11128 if test "$GXX" = yes; then
11129 CXXFLAGS="-O2"
11130 else
11131 CXXFLAGS=
11134 ac_ext=c
11135 ac_cpp='$CPP $CPPFLAGS'
11136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11140 depcc="$CXX" am_compiler_list=
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11143 $as_echo_n "checking dependency style of $depcc... " >&6; }
11144 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11148 # We make a subdir and do the tests there. Otherwise we can end up
11149 # making bogus files that we don't know about and never remove. For
11150 # instance it was reported that on HP-UX the gcc test will end up
11151 # making a dummy file named `D' -- because `-MD' means `put the output
11152 # in D'.
11153 mkdir conftest.dir
11154 # Copy depcomp to subdir because otherwise we won't find it if we're
11155 # using a relative directory.
11156 cp "$am_depcomp" conftest.dir
11157 cd conftest.dir
11158 # We will build objects and dependencies in a subdirectory because
11159 # it helps to detect inapplicable dependency modes. For instance
11160 # both Tru64's cc and ICC support -MD to output dependencies as a
11161 # side effect of compilation, but ICC will put the dependencies in
11162 # the current directory while Tru64 will put them in the object
11163 # directory.
11164 mkdir sub
11166 am_cv_CXX_dependencies_compiler_type=none
11167 if test "$am_compiler_list" = ""; then
11168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11170 am__universal=false
11171 case " $depcc " in #(
11172 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11173 esac
11175 for depmode in $am_compiler_list; do
11176 # Setup a source with many dependencies, because some compilers
11177 # like to wrap large dependency lists on column 80 (with \), and
11178 # we should not choose a depcomp mode which is confused by this.
11180 # We need to recreate these files for each test, as the compiler may
11181 # overwrite some of them when testing with obscure command lines.
11182 # This happens at least with the AIX C compiler.
11183 : > sub/conftest.c
11184 for i in 1 2 3 4 5 6; do
11185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11187 # Solaris 8's {/usr,}/bin/sh.
11188 touch sub/conftst$i.h
11189 done
11190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11192 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11193 # mode. It turns out that the SunPro C++ compiler does not properly
11194 # handle `-M -o', and we need to detect this. Also, some Intel
11195 # versions had trouble with output in subdirs
11196 am__obj=sub/conftest.${OBJEXT-o}
11197 am__minus_obj="-o $am__obj"
11198 case $depmode in
11199 gcc)
11200 # This depmode causes a compiler race in universal mode.
11201 test "$am__universal" = false || continue
11203 nosideeffect)
11204 # after this tag, mechanisms are not by side-effect, so they'll
11205 # only be used when explicitly requested
11206 if test "x$enable_dependency_tracking" = xyes; then
11207 continue
11208 else
11209 break
11212 msvisualcpp | msvcmsys)
11213 # This compiler won't grok `-c -o', but also, the minuso test has
11214 # not run yet. These depmodes are late enough in the game, and
11215 # so weak that their functioning should not be impacted.
11216 am__obj=conftest.${OBJEXT-o}
11217 am__minus_obj=
11219 none) break ;;
11220 esac
11221 if depmode=$depmode \
11222 source=sub/conftest.c object=$am__obj \
11223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11224 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11225 >/dev/null 2>conftest.err &&
11226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11228 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11230 # icc doesn't choke on unknown options, it will just issue warnings
11231 # or remarks (even with -Werror). So we grep stderr for any message
11232 # that says an option was ignored or not supported.
11233 # When given -MP, icc 7.0 and 7.1 complain thusly:
11234 # icc: Command line warning: ignoring option '-M'; no argument required
11235 # The diagnosis changed in icc 8.0:
11236 # icc: Command line remark: option '-MP' not supported
11237 if (grep 'ignoring option' conftest.err ||
11238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11239 am_cv_CXX_dependencies_compiler_type=$depmode
11240 break
11243 done
11245 cd ..
11246 rm -rf conftest.dir
11247 else
11248 am_cv_CXX_dependencies_compiler_type=none
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11253 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11254 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11257 test "x$enable_dependency_tracking" != xno \
11258 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11259 am__fastdepCXX_TRUE=
11260 am__fastdepCXX_FALSE='#'
11261 else
11262 am__fastdepCXX_TRUE='#'
11263 am__fastdepCXX_FALSE=
11267 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11268 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11269 (test "X$CXX" != "Xg++"))) ; then
11270 ac_ext=cpp
11271 ac_cpp='$CXXCPP $CPPFLAGS'
11272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11276 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11277 if test -z "$CXXCPP"; then
11278 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 # Double quotes because CXXCPP needs to be expanded
11282 for CXXCPP in "$CXX -E" "/lib/cpp"
11284 ac_preproc_ok=false
11285 for ac_cxx_preproc_warn_flag in '' yes
11287 # Use a header file that comes with gcc, so configuring glibc
11288 # with a fresh cross-compiler works.
11289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290 # <limits.h> exists even on freestanding compilers.
11291 # On the NeXT, cc -E runs the code through the compiler's parser,
11292 # not just through cpp. "Syntax error" is here to catch this case.
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295 #ifdef __STDC__
11296 # include <limits.h>
11297 #else
11298 # include <assert.h>
11299 #endif
11300 Syntax error
11301 _ACEOF
11302 if ac_fn_cxx_try_cpp "$LINENO"; then :
11304 else
11305 # Broken: fails on valid input.
11306 continue
11308 rm -f conftest.err conftest.$ac_ext
11310 # OK, works on sane cases. Now check whether nonexistent headers
11311 # can be detected and how.
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314 #include <ac_nonexistent.h>
11315 _ACEOF
11316 if ac_fn_cxx_try_cpp "$LINENO"; then :
11317 # Broken: success on invalid input.
11318 continue
11319 else
11320 # Passes both tests.
11321 ac_preproc_ok=:
11322 break
11324 rm -f conftest.err conftest.$ac_ext
11326 done
11327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11328 rm -f conftest.err conftest.$ac_ext
11329 if $ac_preproc_ok; then :
11330 break
11333 done
11334 ac_cv_prog_CXXCPP=$CXXCPP
11337 CXXCPP=$ac_cv_prog_CXXCPP
11338 else
11339 ac_cv_prog_CXXCPP=$CXXCPP
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11342 $as_echo "$CXXCPP" >&6; }
11343 ac_preproc_ok=false
11344 for ac_cxx_preproc_warn_flag in '' yes
11346 # Use a header file that comes with gcc, so configuring glibc
11347 # with a fresh cross-compiler works.
11348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11349 # <limits.h> exists even on freestanding compilers.
11350 # On the NeXT, cc -E runs the code through the compiler's parser,
11351 # not just through cpp. "Syntax error" is here to catch this case.
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #ifdef __STDC__
11355 # include <limits.h>
11356 #else
11357 # include <assert.h>
11358 #endif
11359 Syntax error
11360 _ACEOF
11361 if ac_fn_cxx_try_cpp "$LINENO"; then :
11363 else
11364 # Broken: fails on valid input.
11365 continue
11367 rm -f conftest.err conftest.$ac_ext
11369 # OK, works on sane cases. Now check whether nonexistent headers
11370 # can be detected and how.
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373 #include <ac_nonexistent.h>
11374 _ACEOF
11375 if ac_fn_cxx_try_cpp "$LINENO"; then :
11376 # Broken: success on invalid input.
11377 continue
11378 else
11379 # Passes both tests.
11380 ac_preproc_ok=:
11381 break
11383 rm -f conftest.err conftest.$ac_ext
11385 done
11386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11387 rm -f conftest.err conftest.$ac_ext
11388 if $ac_preproc_ok; then :
11390 else
11391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11393 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11394 See \`config.log' for more details." "$LINENO" 5; }
11397 ac_ext=c
11398 ac_cpp='$CPP $CPPFLAGS'
11399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403 else
11404 _lt_caught_CXX_error=yes
11407 ac_ext=cpp
11408 ac_cpp='$CXXCPP $CPPFLAGS'
11409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11413 archive_cmds_need_lc_CXX=no
11414 allow_undefined_flag_CXX=
11415 always_export_symbols_CXX=no
11416 archive_expsym_cmds_CXX=
11417 compiler_needs_object_CXX=no
11418 export_dynamic_flag_spec_CXX=
11419 hardcode_direct_CXX=no
11420 hardcode_direct_absolute_CXX=no
11421 hardcode_libdir_flag_spec_CXX=
11422 hardcode_libdir_flag_spec_ld_CXX=
11423 hardcode_libdir_separator_CXX=
11424 hardcode_minus_L_CXX=no
11425 hardcode_shlibpath_var_CXX=unsupported
11426 hardcode_automatic_CXX=no
11427 inherit_rpath_CXX=no
11428 module_cmds_CXX=
11429 module_expsym_cmds_CXX=
11430 link_all_deplibs_CXX=unknown
11431 old_archive_cmds_CXX=$old_archive_cmds
11432 reload_flag_CXX=$reload_flag
11433 reload_cmds_CXX=$reload_cmds
11434 no_undefined_flag_CXX=
11435 whole_archive_flag_spec_CXX=
11436 enable_shared_with_static_runtimes_CXX=no
11438 # Source file extension for C++ test sources.
11439 ac_ext=cpp
11441 # Object file extension for compiled C++ test sources.
11442 objext=o
11443 objext_CXX=$objext
11445 # No sense in running all these tests if we already determined that
11446 # the CXX compiler isn't working. Some variables (like enable_shared)
11447 # are currently assumed to apply to all compilers on this platform,
11448 # and will be corrupted by setting them based on a non-working compiler.
11449 if test "$_lt_caught_CXX_error" != yes; then
11450 # Code to be used in simple compile tests
11451 lt_simple_compile_test_code="int some_variable = 0;"
11453 # Code to be used in simple link tests
11454 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11463 # If no C compiler was specified, use CC.
11464 LTCC=${LTCC-"$CC"}
11466 # If no C compiler flags were specified, use CFLAGS.
11467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11469 # Allow CC to be a program name with arguments.
11470 compiler=$CC
11473 # save warnings/boilerplate of simple test code
11474 ac_outfile=conftest.$ac_objext
11475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11477 _lt_compiler_boilerplate=`cat conftest.err`
11478 $RM conftest*
11480 ac_outfile=conftest.$ac_objext
11481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11483 _lt_linker_boilerplate=`cat conftest.err`
11484 $RM -r conftest*
11487 # Allow CC to be a program name with arguments.
11488 lt_save_CC=$CC
11489 lt_save_LD=$LD
11490 lt_save_GCC=$GCC
11491 GCC=$GXX
11492 lt_save_with_gnu_ld=$with_gnu_ld
11493 lt_save_path_LD=$lt_cv_path_LD
11494 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11495 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11496 else
11497 $as_unset lt_cv_prog_gnu_ld
11499 if test -n "${lt_cv_path_LDCXX+set}"; then
11500 lt_cv_path_LD=$lt_cv_path_LDCXX
11501 else
11502 $as_unset lt_cv_path_LD
11504 test -z "${LDCXX+set}" || LD=$LDCXX
11505 CC=${CXX-"c++"}
11506 compiler=$CC
11507 compiler_CXX=$CC
11508 for cc_temp in $compiler""; do
11509 case $cc_temp in
11510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11512 \-*) ;;
11513 *) break;;
11514 esac
11515 done
11516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11519 if test -n "$compiler"; then
11520 # We don't want -fno-exception when compiling C++ code, so set the
11521 # no_builtin_flag separately
11522 if test "$GXX" = yes; then
11523 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11524 else
11525 lt_prog_compiler_no_builtin_flag_CXX=
11528 if test "$GXX" = yes; then
11529 # Set up default GNU C++ configuration
11533 # Check whether --with-gnu-ld was given.
11534 if test "${with_gnu_ld+set}" = set; then :
11535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11536 else
11537 with_gnu_ld=no
11540 ac_prog=ld
11541 if test "$GCC" = yes; then
11542 # Check if gcc -print-prog-name=ld gives a path.
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11544 $as_echo_n "checking for ld used by $CC... " >&6; }
11545 case $host in
11546 *-*-mingw*)
11547 # gcc leaves a trailing carriage return which upsets mingw
11548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11551 esac
11552 case $ac_prog in
11553 # Accept absolute paths.
11554 [\\/]* | ?:[\\/]*)
11555 re_direlt='/[^/][^/]*/\.\./'
11556 # Canonicalize the pathname of ld
11557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11560 done
11561 test -z "$LD" && LD="$ac_prog"
11564 # If it fails, then pretend we aren't using GCC.
11565 ac_prog=ld
11568 # If it is relative, then search for the first ld in PATH.
11569 with_gnu_ld=unknown
11571 esac
11572 elif test "$with_gnu_ld" = yes; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11574 $as_echo_n "checking for GNU ld... " >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11577 $as_echo_n "checking for non-GNU ld... " >&6; }
11579 if test "${lt_cv_path_LD+set}" = set; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 if test -z "$LD"; then
11583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11584 for ac_dir in $PATH; do
11585 IFS="$lt_save_ifs"
11586 test -z "$ac_dir" && ac_dir=.
11587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11588 lt_cv_path_LD="$ac_dir/$ac_prog"
11589 # Check to see if the program is GNU ld. I'd rather use --version,
11590 # but apparently some variants of GNU ld only accept -v.
11591 # Break only if it was the GNU/non-GNU ld that we prefer.
11592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11593 *GNU* | *'with BFD'*)
11594 test "$with_gnu_ld" != no && break
11597 test "$with_gnu_ld" != yes && break
11599 esac
11601 done
11602 IFS="$lt_save_ifs"
11603 else
11604 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11608 LD="$lt_cv_path_LD"
11609 if test -n "$LD"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11611 $as_echo "$LD" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11616 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11619 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11623 case `$LD -v 2>&1 </dev/null` in
11624 *GNU* | *'with BFD'*)
11625 lt_cv_prog_gnu_ld=yes
11628 lt_cv_prog_gnu_ld=no
11630 esac
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11633 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11634 with_gnu_ld=$lt_cv_prog_gnu_ld
11642 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11643 # archiving commands below assume that GNU ld is being used.
11644 if test "$with_gnu_ld" = yes; then
11645 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11646 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'
11648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11651 # If archive_cmds runs LD, not CC, wlarc should be empty
11652 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11653 # investigate it a little bit more. (MM)
11654 wlarc='${wl}'
11656 # ancient GNU ld didn't support --whole-archive et. al.
11657 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11658 $GREP 'no-whole-archive' > /dev/null; then
11659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11660 else
11661 whole_archive_flag_spec_CXX=
11663 else
11664 with_gnu_ld=no
11665 wlarc=
11667 # A generic and very simple default shared library creation
11668 # command for GNU C++ for the case where it uses the native
11669 # linker, instead of GNU ld. If possible, this setting should
11670 # overridden to take advantage of the native linker features on
11671 # the platform it is being used on.
11672 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11675 # Commands to make compiler produce verbose output that lists
11676 # what "hidden" libraries, object files and flags are used when
11677 # linking a shared library.
11678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11680 else
11681 GXX=no
11682 with_gnu_ld=no
11683 wlarc=
11686 # PORTME: fill in a description of your system's C++ link characteristics
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11688 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11689 ld_shlibs_CXX=yes
11690 case $host_os in
11691 aix3*)
11692 # FIXME: insert proper C++ library support
11693 ld_shlibs_CXX=no
11695 aix[4-9]*)
11696 if test "$host_cpu" = ia64; then
11697 # On IA64, the linker does run time linking by default, so we don't
11698 # have to do anything special.
11699 aix_use_runtimelinking=no
11700 exp_sym_flag='-Bexport'
11701 no_entry_flag=""
11702 else
11703 aix_use_runtimelinking=no
11705 # Test if we are trying to use run time linking or normal
11706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11707 # need to do runtime linking.
11708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11709 for ld_flag in $LDFLAGS; do
11710 case $ld_flag in
11711 *-brtl*)
11712 aix_use_runtimelinking=yes
11713 break
11715 esac
11716 done
11718 esac
11720 exp_sym_flag='-bexport'
11721 no_entry_flag='-bnoentry'
11724 # When large executables or shared objects are built, AIX ld can
11725 # have problems creating the table of contents. If linking a library
11726 # or program results in "error TOC overflow" add -mminimal-toc to
11727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11730 archive_cmds_CXX=''
11731 hardcode_direct_CXX=yes
11732 hardcode_direct_absolute_CXX=yes
11733 hardcode_libdir_separator_CXX=':'
11734 link_all_deplibs_CXX=yes
11735 file_list_spec_CXX='${wl}-f,'
11737 if test "$GXX" = yes; then
11738 case $host_os in aix4.[012]|aix4.[012].*)
11739 # We only want to do this on AIX 4.2 and lower, the check
11740 # below for broken collect2 doesn't work under 4.3+
11741 collect2name=`${CC} -print-prog-name=collect2`
11742 if test -f "$collect2name" &&
11743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11744 then
11745 # We have reworked collect2
11747 else
11748 # We have old collect2
11749 hardcode_direct_CXX=unsupported
11750 # It fails to find uninstalled libraries when the uninstalled
11751 # path is not listed in the libpath. Setting hardcode_minus_L
11752 # to unsupported forces relinking
11753 hardcode_minus_L_CXX=yes
11754 hardcode_libdir_flag_spec_CXX='-L$libdir'
11755 hardcode_libdir_separator_CXX=
11757 esac
11758 shared_flag='-shared'
11759 if test "$aix_use_runtimelinking" = yes; then
11760 shared_flag="$shared_flag "'${wl}-G'
11762 else
11763 # not using gcc
11764 if test "$host_cpu" = ia64; then
11765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11766 # chokes on -Wl,-G. The following line is correct:
11767 shared_flag='-G'
11768 else
11769 if test "$aix_use_runtimelinking" = yes; then
11770 shared_flag='${wl}-G'
11771 else
11772 shared_flag='${wl}-bM:SRE'
11777 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11778 # It seems that -bexpall does not export symbols beginning with
11779 # underscore (_), so it is better to generate a list of symbols to
11780 # export.
11781 always_export_symbols_CXX=yes
11782 if test "$aix_use_runtimelinking" = yes; then
11783 # Warning - without using the other runtime loading flags (-brtl),
11784 # -berok will link without error, but may produce a broken library.
11785 allow_undefined_flag_CXX='-berok'
11786 # Determine the default libpath from the value encoded in an empty
11787 # executable.
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11792 main ()
11796 return 0;
11798 _ACEOF
11799 if ac_fn_cxx_try_link "$LINENO"; then :
11801 lt_aix_libpath_sed='
11802 /Import File Strings/,/^$/ {
11803 /^0/ {
11804 s/^0 *\(.*\)$/\1/
11808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11809 # Check for a 64-bit object if we didn't find anything.
11810 if test -z "$aix_libpath"; then
11811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11820 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"
11821 else
11822 if test "$host_cpu" = ia64; then
11823 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11824 allow_undefined_flag_CXX="-z nodefs"
11825 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"
11826 else
11827 # Determine the default libpath from the value encoded in an
11828 # empty executable.
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11833 main ()
11837 return 0;
11839 _ACEOF
11840 if ac_fn_cxx_try_link "$LINENO"; then :
11842 lt_aix_libpath_sed='
11843 /Import File Strings/,/^$/ {
11844 /^0/ {
11845 s/^0 *\(.*\)$/\1/
11849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11850 # Check for a 64-bit object if we didn't find anything.
11851 if test -z "$aix_libpath"; then
11852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11859 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11860 # Warning - without using the other run time loading flags,
11861 # -berok will link without error, but may produce a broken library.
11862 no_undefined_flag_CXX=' ${wl}-bernotok'
11863 allow_undefined_flag_CXX=' ${wl}-berok'
11864 if test "$with_gnu_ld" = yes; then
11865 # We only use this code for GNU lds that support --whole-archive.
11866 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11867 else
11868 # Exported symbols can be pulled into shared objects from archives
11869 whole_archive_flag_spec_CXX='$convenience'
11871 archive_cmds_need_lc_CXX=yes
11872 # This is similar to how AIX traditionally builds its shared
11873 # libraries.
11874 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'
11879 beos*)
11880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11881 allow_undefined_flag_CXX=unsupported
11882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11883 # support --undefined. This deserves some investigation. FIXME
11884 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11885 else
11886 ld_shlibs_CXX=no
11890 chorus*)
11891 case $cc_basename in
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11896 esac
11899 cygwin* | mingw* | pw32* | cegcc*)
11900 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11901 # as there is no search path for DLLs.
11902 hardcode_libdir_flag_spec_CXX='-L$libdir'
11903 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11904 allow_undefined_flag_CXX=unsupported
11905 always_export_symbols_CXX=no
11906 enable_shared_with_static_runtimes_CXX=yes
11908 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11909 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'
11910 # If the export-symbols file already is a .def file (1st line
11911 # is EXPORTS), use it as is; otherwise, prepend...
11912 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11913 cp $export_symbols $output_objdir/$soname.def;
11914 else
11915 echo EXPORTS > $output_objdir/$soname.def;
11916 cat $export_symbols >> $output_objdir/$soname.def;
11918 $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'
11919 else
11920 ld_shlibs_CXX=no
11923 darwin* | rhapsody*)
11926 archive_cmds_need_lc_CXX=no
11927 hardcode_direct_CXX=no
11928 hardcode_automatic_CXX=yes
11929 hardcode_shlibpath_var_CXX=unsupported
11930 if test "$lt_cv_ld_force_load" = "yes"; then
11931 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\"`'
11932 else
11933 whole_archive_flag_spec_CXX=''
11935 link_all_deplibs_CXX=yes
11936 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11937 case $cc_basename in
11938 ifort*) _lt_dar_can_shared=yes ;;
11939 *) _lt_dar_can_shared=$GCC ;;
11940 esac
11941 if test "$_lt_dar_can_shared" = "yes"; then
11942 output_verbose_link_cmd=func_echo_all
11943 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}"
11944 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11945 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}"
11946 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}"
11947 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11948 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}"
11949 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}"
11952 else
11953 ld_shlibs_CXX=no
11958 dgux*)
11959 case $cc_basename in
11960 ec++*)
11961 # FIXME: insert proper C++ library support
11962 ld_shlibs_CXX=no
11964 ghcx*)
11965 # Green Hills C++ Compiler
11966 # FIXME: insert proper C++ library support
11967 ld_shlibs_CXX=no
11970 # FIXME: insert proper C++ library support
11971 ld_shlibs_CXX=no
11973 esac
11976 freebsd2.*)
11977 # C++ shared libraries reported to be fairly broken before
11978 # switch to ELF
11979 ld_shlibs_CXX=no
11982 freebsd-elf*)
11983 archive_cmds_need_lc_CXX=no
11986 freebsd* | dragonfly*)
11987 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11988 # conventions
11989 ld_shlibs_CXX=yes
11992 gnu*)
11995 haiku*)
11996 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11997 link_all_deplibs_CXX=yes
12000 hpux9*)
12001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12002 hardcode_libdir_separator_CXX=:
12003 export_dynamic_flag_spec_CXX='${wl}-E'
12004 hardcode_direct_CXX=yes
12005 hardcode_minus_L_CXX=yes # Not in the search PATH,
12006 # but as the default
12007 # location of the library.
12009 case $cc_basename in
12010 CC*)
12011 # FIXME: insert proper C++ library support
12012 ld_shlibs_CXX=no
12014 aCC*)
12015 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'
12016 # Commands to make compiler produce verbose output that lists
12017 # what "hidden" libraries, object files and flags are used when
12018 # linking a shared library.
12020 # There doesn't appear to be a way to prevent this compiler from
12021 # explicitly linking system object files so we need to strip them
12022 # from the output so that they don't get included in the library
12023 # dependencies.
12024 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"'
12027 if test "$GXX" = yes; then
12028 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'
12029 else
12030 # FIXME: insert proper C++ library support
12031 ld_shlibs_CXX=no
12034 esac
12037 hpux10*|hpux11*)
12038 if test $with_gnu_ld = no; then
12039 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12040 hardcode_libdir_separator_CXX=:
12042 case $host_cpu in
12043 hppa*64*|ia64*)
12046 export_dynamic_flag_spec_CXX='${wl}-E'
12048 esac
12050 case $host_cpu in
12051 hppa*64*|ia64*)
12052 hardcode_direct_CXX=no
12053 hardcode_shlibpath_var_CXX=no
12056 hardcode_direct_CXX=yes
12057 hardcode_direct_absolute_CXX=yes
12058 hardcode_minus_L_CXX=yes # Not in the search PATH,
12059 # but as the default
12060 # location of the library.
12062 esac
12064 case $cc_basename in
12065 CC*)
12066 # FIXME: insert proper C++ library support
12067 ld_shlibs_CXX=no
12069 aCC*)
12070 case $host_cpu in
12071 hppa*64*)
12072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074 ia64*)
12075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12080 esac
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12088 # dependencies.
12089 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"'
12092 if test "$GXX" = yes; then
12093 if test $with_gnu_ld = no; then
12094 case $host_cpu in
12095 hppa*64*)
12096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12098 ia64*)
12099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12102 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'
12104 esac
12106 else
12107 # FIXME: insert proper C++ library support
12108 ld_shlibs_CXX=no
12111 esac
12114 interix[3-9]*)
12115 hardcode_direct_CXX=no
12116 hardcode_shlibpath_var_CXX=no
12117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12118 export_dynamic_flag_spec_CXX='${wl}-E'
12119 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12120 # Instead, shared libraries are loaded at an image base (0x10000000 by
12121 # default) and relocated if they conflict, which is a slow very memory
12122 # consuming and fragmenting process. To avoid this, we pick a random,
12123 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12124 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12125 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'
12126 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'
12128 irix5* | irix6*)
12129 case $cc_basename in
12130 CC*)
12131 # SGI C++
12132 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'
12134 # Archives containing C++ object files must be created using
12135 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12136 # necessary to make sure instantiated templates are included
12137 # in the archive.
12138 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12141 if test "$GXX" = yes; then
12142 if test "$with_gnu_ld" = no; then
12143 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'
12144 else
12145 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'
12148 link_all_deplibs_CXX=yes
12150 esac
12151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12152 hardcode_libdir_separator_CXX=:
12153 inherit_rpath_CXX=yes
12156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12157 case $cc_basename in
12158 KCC*)
12159 # Kuck and Associates, Inc. (KAI) C++ Compiler
12161 # KCC will only create a shared library if the output file
12162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12163 # to its proper name (with version) after linking.
12164 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'
12165 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'
12166 # Commands to make compiler produce verbose output that lists
12167 # what "hidden" libraries, object files and flags are used when
12168 # linking a shared library.
12170 # There doesn't appear to be a way to prevent this compiler from
12171 # explicitly linking system object files so we need to strip them
12172 # from the output so that they don't get included in the library
12173 # dependencies.
12174 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"'
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12179 # Archives containing C++ object files must be created using
12180 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12181 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12183 icpc* | ecpc* )
12184 # Intel C++
12185 with_gnu_ld=yes
12186 # version 8.0 and above of icpc choke on multiply defined symbols
12187 # if we add $predep_objects and $postdep_objects, however 7.1 and
12188 # earlier do not add the objects themselves.
12189 case `$CC -V 2>&1` in
12190 *"Version 7."*)
12191 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192 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'
12194 *) # Version 8.0 or newer
12195 tmp_idyn=
12196 case $host_cpu in
12197 ia64*) tmp_idyn=' -i_dynamic';;
12198 esac
12199 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12200 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'
12202 esac
12203 archive_cmds_need_lc_CXX=no
12204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12206 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12208 pgCC* | pgcpp*)
12209 # Portland Group C++ compiler
12210 case `$CC -V` in
12211 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12212 prelink_cmds_CXX='tpldir=Template.dir~
12213 rm -rf $tpldir~
12214 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12215 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12216 old_archive_cmds_CXX='tpldir=Template.dir~
12217 rm -rf $tpldir~
12218 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12219 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12220 $RANLIB $oldlib'
12221 archive_cmds_CXX='tpldir=Template.dir~
12222 rm -rf $tpldir~
12223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12224 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12225 archive_expsym_cmds_CXX='tpldir=Template.dir~
12226 rm -rf $tpldir~
12227 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12228 $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'
12230 *) # Version 6 and above use weak symbols
12231 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12232 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'
12234 esac
12236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12238 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'
12240 cxx*)
12241 # Compaq C++
12242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243 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'
12245 runpath_var=LD_RUN_PATH
12246 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12247 hardcode_libdir_separator_CXX=:
12249 # Commands to make compiler produce verbose output that lists
12250 # what "hidden" libraries, object files and flags are used when
12251 # linking a shared library.
12253 # There doesn't appear to be a way to prevent this compiler from
12254 # explicitly linking system object files so we need to strip them
12255 # from the output so that they don't get included in the library
12256 # dependencies.
12257 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'
12259 xl* | mpixl* | bgxl*)
12260 # IBM XL 8.0 on PPC, with GNU ld
12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264 if test "x$supports_anon_versioning" = xyes; then
12265 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12267 echo "local: *; };" >> $output_objdir/$libname.ver~
12268 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12272 case `$CC -V 2>&1 | sed 5q` in
12273 *Sun\ C*)
12274 # Sun C++ 5.9
12275 no_undefined_flag_CXX=' -zdefs'
12276 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12277 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'
12278 hardcode_libdir_flag_spec_CXX='-R$libdir'
12279 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'
12280 compiler_needs_object_CXX=yes
12282 # Not sure whether something based on
12283 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12284 # would be better.
12285 output_verbose_link_cmd='func_echo_all'
12287 # Archives containing C++ object files must be created using
12288 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12289 # necessary to make sure instantiated templates are included
12290 # in the archive.
12291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12293 esac
12295 esac
12298 lynxos*)
12299 # FIXME: insert proper C++ library support
12300 ld_shlibs_CXX=no
12303 m88k*)
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12308 mvs*)
12309 case $cc_basename in
12310 cxx*)
12311 # FIXME: insert proper C++ library support
12312 ld_shlibs_CXX=no
12315 # FIXME: insert proper C++ library support
12316 ld_shlibs_CXX=no
12318 esac
12321 netbsd*)
12322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12323 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12324 wlarc=
12325 hardcode_libdir_flag_spec_CXX='-R$libdir'
12326 hardcode_direct_CXX=yes
12327 hardcode_shlibpath_var_CXX=no
12329 # Workaround some broken pre-1.5 toolchains
12330 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12333 *nto* | *qnx*)
12334 ld_shlibs_CXX=yes
12337 openbsd2*)
12338 # C++ shared libraries are fairly broken
12339 ld_shlibs_CXX=no
12342 openbsd*)
12343 if test -f /usr/libexec/ld.so; then
12344 hardcode_direct_CXX=yes
12345 hardcode_shlibpath_var_CXX=no
12346 hardcode_direct_absolute_CXX=yes
12347 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12350 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12351 export_dynamic_flag_spec_CXX='${wl}-E'
12352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12354 output_verbose_link_cmd=func_echo_all
12355 else
12356 ld_shlibs_CXX=no
12360 osf3* | osf4* | osf5*)
12361 case $cc_basename in
12362 KCC*)
12363 # Kuck and Associates, Inc. (KAI) C++ Compiler
12365 # KCC will only create a shared library if the output file
12366 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12367 # to its proper name (with version) after linking.
12368 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'
12370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12371 hardcode_libdir_separator_CXX=:
12373 # Archives containing C++ object files must be created using
12374 # the KAI C++ compiler.
12375 case $host in
12376 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12377 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12378 esac
12380 RCC*)
12381 # Rational C++ 2.4.1
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12385 cxx*)
12386 case $host in
12387 osf3*)
12388 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12389 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'
12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12393 allow_undefined_flag_CXX=' -expect_unresolved \*'
12394 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'
12395 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12396 echo "-hidden">> $lib.exp~
12397 $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~
12398 $RM $lib.exp'
12399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12401 esac
12403 hardcode_libdir_separator_CXX=:
12405 # Commands to make compiler produce verbose output that lists
12406 # what "hidden" libraries, object files and flags are used when
12407 # linking a shared library.
12409 # There doesn't appear to be a way to prevent this compiler from
12410 # explicitly linking system object files so we need to strip them
12411 # from the output so that they don't get included in the library
12412 # dependencies.
12413 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"'
12416 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12417 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12418 case $host in
12419 osf3*)
12420 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'
12423 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'
12425 esac
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 hardcode_libdir_separator_CXX=:
12430 # Commands to make compiler produce verbose output that lists
12431 # what "hidden" libraries, object files and flags are used when
12432 # linking a shared library.
12433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12435 else
12436 # FIXME: insert proper C++ library support
12437 ld_shlibs_CXX=no
12440 esac
12443 psos*)
12444 # FIXME: insert proper C++ library support
12445 ld_shlibs_CXX=no
12448 sunos4*)
12449 case $cc_basename in
12450 CC*)
12451 # Sun C++ 4.x
12452 # FIXME: insert proper C++ library support
12453 ld_shlibs_CXX=no
12455 lcc*)
12456 # Lucid
12457 # FIXME: insert proper C++ library support
12458 ld_shlibs_CXX=no
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12464 esac
12467 solaris*)
12468 case $cc_basename in
12469 CC*)
12470 # Sun C++ 4.2, 5.x and Centerline C++
12471 archive_cmds_need_lc_CXX=yes
12472 no_undefined_flag_CXX=' -zdefs'
12473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12474 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12475 $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'
12477 hardcode_libdir_flag_spec_CXX='-R$libdir'
12478 hardcode_shlibpath_var_CXX=no
12479 case $host_os in
12480 solaris2.[0-5] | solaris2.[0-5].*) ;;
12482 # The compiler driver will combine and reorder linker options,
12483 # but understands `-z linker_flag'.
12484 # Supported since Solaris 2.6 (maybe 2.5.1?)
12485 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12487 esac
12488 link_all_deplibs_CXX=yes
12490 output_verbose_link_cmd='func_echo_all'
12492 # Archives containing C++ object files must be created using
12493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12494 # necessary to make sure instantiated templates are included
12495 # in the archive.
12496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12498 gcx*)
12499 # Green Hills C++ Compiler
12500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12502 # The C++ compiler must be used to create the archive.
12503 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12506 # GNU C++ compiler with Solaris linker
12507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12508 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12509 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12510 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12511 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12512 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12514 # Commands to make compiler produce verbose output that lists
12515 # what "hidden" libraries, object files and flags are used when
12516 # linking a shared library.
12517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12518 else
12519 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12520 # platform.
12521 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12522 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12523 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12528 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12531 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12532 case $host_os in
12533 solaris2.[0-5] | solaris2.[0-5].*) ;;
12535 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12537 esac
12540 esac
12543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12544 no_undefined_flag_CXX='${wl}-z,text'
12545 archive_cmds_need_lc_CXX=no
12546 hardcode_shlibpath_var_CXX=no
12547 runpath_var='LD_RUN_PATH'
12549 case $cc_basename in
12550 CC*)
12551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12558 esac
12561 sysv5* | sco3.2v5* | sco5v6*)
12562 # Note: We can NOT use -z defs as we might desire, because we do not
12563 # link with -lc, and that would cause any symbols used from libc to
12564 # always be unresolved, which means just about no library would
12565 # ever link correctly. If we're not using GNU ld we use -z text
12566 # though, which does catch some bad symbols but isn't as heavy-handed
12567 # as -z defs.
12568 no_undefined_flag_CXX='${wl}-z,text'
12569 allow_undefined_flag_CXX='${wl}-z,nodefs'
12570 archive_cmds_need_lc_CXX=no
12571 hardcode_shlibpath_var_CXX=no
12572 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12573 hardcode_libdir_separator_CXX=':'
12574 link_all_deplibs_CXX=yes
12575 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12576 runpath_var='LD_RUN_PATH'
12578 case $cc_basename in
12579 CC*)
12580 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12583 '"$old_archive_cmds_CXX"
12584 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12585 '"$reload_cmds_CXX"
12588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12591 esac
12594 tandem*)
12595 case $cc_basename in
12596 NCC*)
12597 # NonStop-UX NCC 3.20
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12605 esac
12608 vxworks*)
12609 # FIXME: insert proper C++ library support
12610 ld_shlibs_CXX=no
12614 # FIXME: insert proper C++ library support
12615 ld_shlibs_CXX=no
12617 esac
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12620 $as_echo "$ld_shlibs_CXX" >&6; }
12621 test "$ld_shlibs_CXX" = no && can_build_shared=no
12623 GCC_CXX="$GXX"
12624 LD_CXX="$LD"
12626 ## CAVEAT EMPTOR:
12627 ## There is no encapsulation within the following macros, do not change
12628 ## the running order or otherwise move them around unless you know exactly
12629 ## what you are doing...
12630 # Dependencies to place before and after the object being linked:
12631 predep_objects_CXX=
12632 postdep_objects_CXX=
12633 predeps_CXX=
12634 postdeps_CXX=
12635 compiler_lib_search_path_CXX=
12637 cat > conftest.$ac_ext <<_LT_EOF
12638 class Foo
12640 public:
12641 Foo (void) { a = 0; }
12642 private:
12643 int a;
12645 _LT_EOF
12647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12648 (eval $ac_compile) 2>&5
12649 ac_status=$?
12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12651 test $ac_status = 0; }; then
12652 # Parse the compiler output and extract the necessary
12653 # objects, libraries and library flags.
12655 # Sentinel used to keep track of whether or not we are before
12656 # the conftest object file.
12657 pre_test_object_deps_done=no
12659 for p in `eval "$output_verbose_link_cmd"`; do
12660 case $p in
12662 -L* | -R* | -l*)
12663 # Some compilers place space between "-{L,R}" and the path.
12664 # Remove the space.
12665 if test $p = "-L" ||
12666 test $p = "-R"; then
12667 prev=$p
12668 continue
12669 else
12670 prev=
12673 if test "$pre_test_object_deps_done" = no; then
12674 case $p in
12675 -L* | -R*)
12676 # Internal compiler library paths should come after those
12677 # provided the user. The postdeps already come after the
12678 # user supplied libs so there is no need to process them.
12679 if test -z "$compiler_lib_search_path_CXX"; then
12680 compiler_lib_search_path_CXX="${prev}${p}"
12681 else
12682 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12685 # The "-l" case would never come before the object being
12686 # linked, so don't bother handling this case.
12687 esac
12688 else
12689 if test -z "$postdeps_CXX"; then
12690 postdeps_CXX="${prev}${p}"
12691 else
12692 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12697 *.$objext)
12698 # This assumes that the test object file only shows up
12699 # once in the compiler output.
12700 if test "$p" = "conftest.$objext"; then
12701 pre_test_object_deps_done=yes
12702 continue
12705 if test "$pre_test_object_deps_done" = no; then
12706 if test -z "$predep_objects_CXX"; then
12707 predep_objects_CXX="$p"
12708 else
12709 predep_objects_CXX="$predep_objects_CXX $p"
12711 else
12712 if test -z "$postdep_objects_CXX"; then
12713 postdep_objects_CXX="$p"
12714 else
12715 postdep_objects_CXX="$postdep_objects_CXX $p"
12720 *) ;; # Ignore the rest.
12722 esac
12723 done
12725 # Clean up.
12726 rm -f a.out a.exe
12727 else
12728 echo "libtool.m4: error: problem compiling CXX test program"
12731 $RM -f confest.$objext
12733 # PORTME: override above test on systems where it is broken
12734 case $host_os in
12735 interix[3-9]*)
12736 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12737 # hack all around it, let's just trust "g++" to DTRT.
12738 predep_objects_CXX=
12739 postdep_objects_CXX=
12740 postdeps_CXX=
12743 linux*)
12744 case `$CC -V 2>&1 | sed 5q` in
12745 *Sun\ C*)
12746 # Sun C++ 5.9
12748 # The more standards-conforming stlport4 library is
12749 # incompatible with the Cstd library. Avoid specifying
12750 # it if it's in CXXFLAGS. Ignore libCrun as
12751 # -library=stlport4 depends on it.
12752 case " $CXX $CXXFLAGS " in
12753 *" -library=stlport4 "*)
12754 solaris_use_stlport4=yes
12756 esac
12758 if test "$solaris_use_stlport4" != yes; then
12759 postdeps_CXX='-library=Cstd -library=Crun'
12762 esac
12765 solaris*)
12766 case $cc_basename in
12767 CC*)
12768 # The more standards-conforming stlport4 library is
12769 # incompatible with the Cstd library. Avoid specifying
12770 # it if it's in CXXFLAGS. Ignore libCrun as
12771 # -library=stlport4 depends on it.
12772 case " $CXX $CXXFLAGS " in
12773 *" -library=stlport4 "*)
12774 solaris_use_stlport4=yes
12776 esac
12778 # Adding this requires a known-good setup of shared libraries for
12779 # Sun compiler versions before 5.6, else PIC objects from an old
12780 # archive will be linked into the output, leading to subtle bugs.
12781 if test "$solaris_use_stlport4" != yes; then
12782 postdeps_CXX='-library=Cstd -library=Crun'
12785 esac
12787 esac
12790 case " $postdeps_CXX " in
12791 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12792 esac
12793 compiler_lib_search_dirs_CXX=
12794 if test -n "${compiler_lib_search_path_CXX}"; then
12795 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12828 lt_prog_compiler_wl_CXX=
12829 lt_prog_compiler_pic_CXX=
12830 lt_prog_compiler_static_CXX=
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12833 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12835 # C++ specific cases for pic, static, wl, etc.
12836 if test "$GXX" = yes; then
12837 lt_prog_compiler_wl_CXX='-Wl,'
12838 lt_prog_compiler_static_CXX='-static'
12840 case $host_os in
12841 aix*)
12842 # All AIX code is PIC.
12843 if test "$host_cpu" = ia64; then
12844 # AIX 5 now supports IA64 processor
12845 lt_prog_compiler_static_CXX='-Bstatic'
12847 lt_prog_compiler_pic_CXX='-fPIC'
12850 amigaos*)
12851 case $host_cpu in
12852 powerpc)
12853 # see comment about AmigaOS4 .so support
12854 lt_prog_compiler_pic_CXX='-fPIC'
12856 m68k)
12857 # FIXME: we need at least 68020 code to build shared libraries, but
12858 # adding the `-m68020' flag to GCC prevents building anything better,
12859 # like `-m68040'.
12860 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12862 esac
12865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12866 # PIC is the default for these OSes.
12868 mingw* | cygwin* | os2* | pw32* | cegcc*)
12869 # This hack is so that the source file can tell whether it is being
12870 # built for inclusion in a dll (and should export symbols for example).
12871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12872 # (--disable-auto-import) libraries
12873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12875 darwin* | rhapsody*)
12876 # PIC is the default on this platform
12877 # Common symbols not allowed in MH_DYLIB files
12878 lt_prog_compiler_pic_CXX='-fno-common'
12880 *djgpp*)
12881 # DJGPP does not support shared libraries at all
12882 lt_prog_compiler_pic_CXX=
12884 haiku*)
12885 # PIC is the default for Haiku.
12886 # The "-static" flag exists, but is broken.
12887 lt_prog_compiler_static_CXX=
12889 interix[3-9]*)
12890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12891 # Instead, we relocate shared libraries at runtime.
12893 sysv4*MP*)
12894 if test -d /usr/nec; then
12895 lt_prog_compiler_pic_CXX=-Kconform_pic
12898 hpux*)
12899 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12900 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12901 # sets the default TLS model and affects inlining.
12902 case $host_cpu in
12903 hppa*64*)
12906 lt_prog_compiler_pic_CXX='-fPIC'
12908 esac
12910 *qnx* | *nto*)
12911 # QNX uses GNU C++, but need to define -shared option too, otherwise
12912 # it will coredump.
12913 lt_prog_compiler_pic_CXX='-fPIC -shared'
12916 lt_prog_compiler_pic_CXX='-fPIC'
12918 esac
12919 else
12920 case $host_os in
12921 aix[4-9]*)
12922 # All AIX code is PIC.
12923 if test "$host_cpu" = ia64; then
12924 # AIX 5 now supports IA64 processor
12925 lt_prog_compiler_static_CXX='-Bstatic'
12926 else
12927 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12930 chorus*)
12931 case $cc_basename in
12932 cxch68*)
12933 # Green Hills C++ Compiler
12934 # _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"
12936 esac
12938 dgux*)
12939 case $cc_basename in
12940 ec++*)
12941 lt_prog_compiler_pic_CXX='-KPIC'
12943 ghcx*)
12944 # Green Hills C++ Compiler
12945 lt_prog_compiler_pic_CXX='-pic'
12949 esac
12951 freebsd* | dragonfly*)
12952 # FreeBSD uses GNU C++
12954 hpux9* | hpux10* | hpux11*)
12955 case $cc_basename in
12956 CC*)
12957 lt_prog_compiler_wl_CXX='-Wl,'
12958 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12959 if test "$host_cpu" != ia64; then
12960 lt_prog_compiler_pic_CXX='+Z'
12963 aCC*)
12964 lt_prog_compiler_wl_CXX='-Wl,'
12965 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12966 case $host_cpu in
12967 hppa*64*|ia64*)
12968 # +Z the default
12971 lt_prog_compiler_pic_CXX='+Z'
12973 esac
12977 esac
12979 interix*)
12980 # This is c89, which is MS Visual C++ (no shared libs)
12981 # Anyone wants to do a port?
12983 irix5* | irix6* | nonstopux*)
12984 case $cc_basename in
12985 CC*)
12986 lt_prog_compiler_wl_CXX='-Wl,'
12987 lt_prog_compiler_static_CXX='-non_shared'
12988 # CC pic flag -KPIC is the default.
12992 esac
12994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12995 case $cc_basename in
12996 KCC*)
12997 # KAI C++ Compiler
12998 lt_prog_compiler_wl_CXX='--backend -Wl,'
12999 lt_prog_compiler_pic_CXX='-fPIC'
13001 ecpc* )
13002 # old Intel C++ for x86_64 which still supported -KPIC.
13003 lt_prog_compiler_wl_CXX='-Wl,'
13004 lt_prog_compiler_pic_CXX='-KPIC'
13005 lt_prog_compiler_static_CXX='-static'
13007 icpc* )
13008 # Intel C++, used to be incompatible with GCC.
13009 # ICC 10 doesn't accept -KPIC any more.
13010 lt_prog_compiler_wl_CXX='-Wl,'
13011 lt_prog_compiler_pic_CXX='-fPIC'
13012 lt_prog_compiler_static_CXX='-static'
13014 pgCC* | pgcpp*)
13015 # Portland Group C++ compiler
13016 lt_prog_compiler_wl_CXX='-Wl,'
13017 lt_prog_compiler_pic_CXX='-fpic'
13018 lt_prog_compiler_static_CXX='-Bstatic'
13020 cxx*)
13021 # Compaq C++
13022 # Make sure the PIC flag is empty. It appears that all Alpha
13023 # Linux and Compaq Tru64 Unix objects are PIC.
13024 lt_prog_compiler_pic_CXX=
13025 lt_prog_compiler_static_CXX='-non_shared'
13027 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13028 # IBM XL 8.0, 9.0 on PPC and BlueGene
13029 lt_prog_compiler_wl_CXX='-Wl,'
13030 lt_prog_compiler_pic_CXX='-qpic'
13031 lt_prog_compiler_static_CXX='-qstaticlink'
13034 case `$CC -V 2>&1 | sed 5q` in
13035 *Sun\ C*)
13036 # Sun C++ 5.9
13037 lt_prog_compiler_pic_CXX='-KPIC'
13038 lt_prog_compiler_static_CXX='-Bstatic'
13039 lt_prog_compiler_wl_CXX='-Qoption ld '
13041 esac
13043 esac
13045 lynxos*)
13047 m88k*)
13049 mvs*)
13050 case $cc_basename in
13051 cxx*)
13052 lt_prog_compiler_pic_CXX='-W c,exportall'
13056 esac
13058 netbsd*)
13060 *qnx* | *nto*)
13061 # QNX uses GNU C++, but need to define -shared option too, otherwise
13062 # it will coredump.
13063 lt_prog_compiler_pic_CXX='-fPIC -shared'
13065 osf3* | osf4* | osf5*)
13066 case $cc_basename in
13067 KCC*)
13068 lt_prog_compiler_wl_CXX='--backend -Wl,'
13070 RCC*)
13071 # Rational C++ 2.4.1
13072 lt_prog_compiler_pic_CXX='-pic'
13074 cxx*)
13075 # Digital/Compaq C++
13076 lt_prog_compiler_wl_CXX='-Wl,'
13077 # Make sure the PIC flag is empty. It appears that all Alpha
13078 # Linux and Compaq Tru64 Unix objects are PIC.
13079 lt_prog_compiler_pic_CXX=
13080 lt_prog_compiler_static_CXX='-non_shared'
13084 esac
13086 psos*)
13088 solaris*)
13089 case $cc_basename in
13090 CC*)
13091 # Sun C++ 4.2, 5.x and Centerline C++
13092 lt_prog_compiler_pic_CXX='-KPIC'
13093 lt_prog_compiler_static_CXX='-Bstatic'
13094 lt_prog_compiler_wl_CXX='-Qoption ld '
13096 gcx*)
13097 # Green Hills C++ Compiler
13098 lt_prog_compiler_pic_CXX='-PIC'
13102 esac
13104 sunos4*)
13105 case $cc_basename in
13106 CC*)
13107 # Sun C++ 4.x
13108 lt_prog_compiler_pic_CXX='-pic'
13109 lt_prog_compiler_static_CXX='-Bstatic'
13111 lcc*)
13112 # Lucid
13113 lt_prog_compiler_pic_CXX='-pic'
13117 esac
13119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13120 case $cc_basename in
13121 CC*)
13122 lt_prog_compiler_wl_CXX='-Wl,'
13123 lt_prog_compiler_pic_CXX='-KPIC'
13124 lt_prog_compiler_static_CXX='-Bstatic'
13126 esac
13128 tandem*)
13129 case $cc_basename in
13130 NCC*)
13131 # NonStop-UX NCC 3.20
13132 lt_prog_compiler_pic_CXX='-KPIC'
13136 esac
13138 vxworks*)
13141 lt_prog_compiler_can_build_shared_CXX=no
13143 esac
13146 case $host_os in
13147 # For platforms which do not support PIC, -DPIC is meaningless:
13148 *djgpp*)
13149 lt_prog_compiler_pic_CXX=
13152 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13154 esac
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13156 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13161 # Check to make sure the PIC flag actually works.
13163 if test -n "$lt_prog_compiler_pic_CXX"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13165 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13166 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 lt_cv_prog_compiler_pic_works_CXX=no
13170 ac_outfile=conftest.$ac_objext
13171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13172 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13173 # Insert the option either (1) after the last *FLAGS variable, or
13174 # (2) before a word containing "conftest.", or (3) at the end.
13175 # Note that $ac_compile itself does not contain backslashes and begins
13176 # with a dollar sign (not a hyphen), so the echo should work correctly.
13177 # The option is referenced via a variable to avoid confusing sed.
13178 lt_compile=`echo "$ac_compile" | $SED \
13179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13181 -e 's:$: $lt_compiler_flag:'`
13182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13183 (eval "$lt_compile" 2>conftest.err)
13184 ac_status=$?
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 if (exit $ac_status) && test -s "$ac_outfile"; then
13188 # The compiler can only warn and ignore the option if not recognized
13189 # So say no if there are warnings other than the usual output.
13190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13193 lt_cv_prog_compiler_pic_works_CXX=yes
13196 $RM conftest*
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13200 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13202 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13203 case $lt_prog_compiler_pic_CXX in
13204 "" | " "*) ;;
13205 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13206 esac
13207 else
13208 lt_prog_compiler_pic_CXX=
13209 lt_prog_compiler_can_build_shared_CXX=no
13217 # Check to make sure the static flag actually works.
13219 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13221 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13222 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 lt_cv_prog_compiler_static_works_CXX=no
13226 save_LDFLAGS="$LDFLAGS"
13227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13230 # The linker can only warn and ignore the option if not recognized
13231 # So say no if there are warnings
13232 if test -s conftest.err; then
13233 # Append any errors to the config.log.
13234 cat conftest.err 1>&5
13235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13237 if diff conftest.exp conftest.er2 >/dev/null; then
13238 lt_cv_prog_compiler_static_works_CXX=yes
13240 else
13241 lt_cv_prog_compiler_static_works_CXX=yes
13244 $RM -r conftest*
13245 LDFLAGS="$save_LDFLAGS"
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13249 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13251 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13253 else
13254 lt_prog_compiler_static_CXX=
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13262 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 lt_cv_prog_compiler_c_o_CXX=no
13266 $RM -r conftest 2>/dev/null
13267 mkdir conftest
13268 cd conftest
13269 mkdir out
13270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13272 lt_compiler_flag="-o out/conftest2.$ac_objext"
13273 # Insert the option either (1) after the last *FLAGS variable, or
13274 # (2) before a word containing "conftest.", or (3) at the end.
13275 # Note that $ac_compile itself does not contain backslashes and begins
13276 # with a dollar sign (not a hyphen), so the echo should work correctly.
13277 lt_compile=`echo "$ac_compile" | $SED \
13278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13280 -e 's:$: $lt_compiler_flag:'`
13281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13282 (eval "$lt_compile" 2>out/conftest.err)
13283 ac_status=$?
13284 cat out/conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13287 then
13288 # The compiler can only warn and ignore the option if not recognized
13289 # So say no if there are warnings
13290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13293 lt_cv_prog_compiler_c_o_CXX=yes
13296 chmod u+w . 2>&5
13297 $RM conftest*
13298 # SGI C++ compiler will create directory out/ii_files/ for
13299 # template instantiation
13300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13301 $RM out/* && rmdir out
13302 cd ..
13303 $RM -r conftest
13304 $RM conftest*
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13308 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13314 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 lt_cv_prog_compiler_c_o_CXX=no
13318 $RM -r conftest 2>/dev/null
13319 mkdir conftest
13320 cd conftest
13321 mkdir out
13322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13324 lt_compiler_flag="-o out/conftest2.$ac_objext"
13325 # Insert the option either (1) after the last *FLAGS variable, or
13326 # (2) before a word containing "conftest.", or (3) at the end.
13327 # Note that $ac_compile itself does not contain backslashes and begins
13328 # with a dollar sign (not a hyphen), so the echo should work correctly.
13329 lt_compile=`echo "$ac_compile" | $SED \
13330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13332 -e 's:$: $lt_compiler_flag:'`
13333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13334 (eval "$lt_compile" 2>out/conftest.err)
13335 ac_status=$?
13336 cat out/conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13339 then
13340 # The compiler can only warn and ignore the option if not recognized
13341 # So say no if there are warnings
13342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13345 lt_cv_prog_compiler_c_o_CXX=yes
13348 chmod u+w . 2>&5
13349 $RM conftest*
13350 # SGI C++ compiler will create directory out/ii_files/ for
13351 # template instantiation
13352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13353 $RM out/* && rmdir out
13354 cd ..
13355 $RM -r conftest
13356 $RM conftest*
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13360 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13365 hard_links="nottested"
13366 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13367 # do not overwrite the value of need_locks provided by the user
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13369 $as_echo_n "checking if we can lock with hard links... " >&6; }
13370 hard_links=yes
13371 $RM conftest*
13372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13373 touch conftest.a
13374 ln conftest.a conftest.b 2>&5 || hard_links=no
13375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13377 $as_echo "$hard_links" >&6; }
13378 if test "$hard_links" = no; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13380 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13381 need_locks=warn
13383 else
13384 need_locks=no
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13390 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13393 case $host_os in
13394 aix[4-9]*)
13395 # If we're using GNU nm, then we don't want the "-C" option.
13396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13397 # Also, AIX nm treats weak defined symbols like other global defined
13398 # symbols, whereas GNU nm marks them as "W".
13399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13400 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'
13401 else
13402 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13405 pw32*)
13406 export_symbols_cmds_CXX="$ltdll_cmds"
13408 cygwin* | mingw* | cegcc*)
13409 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'
13412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13414 esac
13415 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13418 $as_echo "$ld_shlibs_CXX" >&6; }
13419 test "$ld_shlibs_CXX" = no && can_build_shared=no
13421 with_gnu_ld_CXX=$with_gnu_ld
13429 # Do we need to explicitly link libc?
13431 case "x$archive_cmds_need_lc_CXX" in
13432 x|xyes)
13433 # Assume -lc should be added
13434 archive_cmds_need_lc_CXX=yes
13436 if test "$enable_shared" = yes && test "$GCC" = yes; then
13437 case $archive_cmds_CXX in
13438 *'~'*)
13439 # FIXME: we may have to deal with multi-command sequences.
13441 '$CC '*)
13442 # Test whether the compiler implicitly links with -lc since on some
13443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13444 # to ld, don't add -lc before -lgcc.
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13446 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13447 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 $RM conftest*
13451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13454 (eval $ac_compile) 2>&5
13455 ac_status=$?
13456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457 test $ac_status = 0; } 2>conftest.err; then
13458 soname=conftest
13459 lib=conftest
13460 libobjs=conftest.$ac_objext
13461 deplibs=
13462 wl=$lt_prog_compiler_wl_CXX
13463 pic_flag=$lt_prog_compiler_pic_CXX
13464 compiler_flags=-v
13465 linker_flags=-v
13466 verstring=
13467 output_objdir=.
13468 libname=conftest
13469 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13470 allow_undefined_flag_CXX=
13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13472 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13473 ac_status=$?
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }
13476 then
13477 lt_cv_archive_cmds_need_lc_CXX=no
13478 else
13479 lt_cv_archive_cmds_need_lc_CXX=yes
13481 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13482 else
13483 cat conftest.err 1>&5
13485 $RM conftest*
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13489 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13490 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13492 esac
13495 esac
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13563 library_names_spec=
13564 libname_spec='lib$name'
13565 soname_spec=
13566 shrext_cmds=".so"
13567 postinstall_cmds=
13568 postuninstall_cmds=
13569 finish_cmds=
13570 finish_eval=
13571 shlibpath_var=
13572 shlibpath_overrides_runpath=unknown
13573 version_type=none
13574 dynamic_linker="$host_os ld.so"
13575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13576 need_lib_prefix=unknown
13577 hardcode_into_libs=no
13579 # when you set need_version to no, make sure it does not cause -set_version
13580 # flags to be left without arguments
13581 need_version=unknown
13583 case $host_os in
13584 aix3*)
13585 version_type=linux
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13587 shlibpath_var=LIBPATH
13589 # AIX 3 has no versioning support, so we append a major version to the name.
13590 soname_spec='${libname}${release}${shared_ext}$major'
13593 aix[4-9]*)
13594 version_type=linux
13595 need_lib_prefix=no
13596 need_version=no
13597 hardcode_into_libs=yes
13598 if test "$host_cpu" = ia64; then
13599 # AIX 5 supports IA64
13600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13601 shlibpath_var=LD_LIBRARY_PATH
13602 else
13603 # With GCC up to 2.95.x, collect2 would create an import file
13604 # for dependence libraries. The import file would start with
13605 # the line `#! .'. This would cause the generated library to
13606 # depend on `.', always an invalid library. This was fixed in
13607 # development snapshots of GCC prior to 3.0.
13608 case $host_os in
13609 aix4 | aix4.[01] | aix4.[01].*)
13610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13611 echo ' yes '
13612 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13614 else
13615 can_build_shared=no
13618 esac
13619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13620 # soname into executable. Probably we can add versioning support to
13621 # collect2, so additional links can be useful in future.
13622 if test "$aix_use_runtimelinking" = yes; then
13623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13624 # instead of lib<name>.a to let people know that these are not
13625 # typical AIX shared libraries.
13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627 else
13628 # We preserve .a as extension for shared libraries through AIX4.2
13629 # and later when we are not doing run time linking.
13630 library_names_spec='${libname}${release}.a $libname.a'
13631 soname_spec='${libname}${release}${shared_ext}$major'
13633 shlibpath_var=LIBPATH
13637 amigaos*)
13638 case $host_cpu in
13639 powerpc)
13640 # Since July 2007 AmigaOS4 officially supports .so libraries.
13641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644 m68k)
13645 library_names_spec='$libname.ixlibrary $libname.a'
13646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13647 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'
13649 esac
13652 beos*)
13653 library_names_spec='${libname}${shared_ext}'
13654 dynamic_linker="$host_os ld.so"
13655 shlibpath_var=LIBRARY_PATH
13658 bsdi[45]*)
13659 version_type=linux
13660 need_version=no
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13664 shlibpath_var=LD_LIBRARY_PATH
13665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13667 # the default ld.so.conf also contains /usr/contrib/lib and
13668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13669 # libtool to hard-code these into programs
13672 cygwin* | mingw* | pw32* | cegcc*)
13673 version_type=windows
13674 shrext_cmds=".dll"
13675 need_version=no
13676 need_lib_prefix=no
13678 case $GCC,$host_os in
13679 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13680 library_names_spec='$libname.dll.a'
13681 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13682 postinstall_cmds='base_file=`basename \${file}`~
13683 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13684 dldir=$destdir/`dirname \$dlpath`~
13685 test -d \$dldir || mkdir -p \$dldir~
13686 $install_prog $dir/$dlname \$dldir/$dlname~
13687 chmod a+x \$dldir/$dlname~
13688 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13689 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13692 dlpath=$dir/\$dldll~
13693 $RM \$dlpath'
13694 shlibpath_overrides_runpath=yes
13696 case $host_os in
13697 cygwin*)
13698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13702 mingw* | cegcc*)
13703 # MinGW DLLs use traditional 'lib' prefix
13704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13706 pw32*)
13707 # pw32 DLLs use 'pw' prefix rather than 'lib'
13708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13710 esac
13714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13716 esac
13717 dynamic_linker='Win32 ld.exe'
13718 # FIXME: first we should search . and the directory the executable is in
13719 shlibpath_var=PATH
13722 darwin* | rhapsody*)
13723 dynamic_linker="$host_os dyld"
13724 version_type=darwin
13725 need_lib_prefix=no
13726 need_version=no
13727 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13728 soname_spec='${libname}${release}${major}$shared_ext'
13729 shlibpath_overrides_runpath=yes
13730 shlibpath_var=DYLD_LIBRARY_PATH
13731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13736 dgux*)
13737 version_type=linux
13738 need_lib_prefix=no
13739 need_version=no
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13745 freebsd* | dragonfly*)
13746 # DragonFly does not have aout. When/if they implement a new
13747 # versioning mechanism, adjust this.
13748 if test -x /usr/bin/objformat; then
13749 objformat=`/usr/bin/objformat`
13750 else
13751 case $host_os in
13752 freebsd[23].*) objformat=aout ;;
13753 *) objformat=elf ;;
13754 esac
13756 version_type=freebsd-$objformat
13757 case $version_type in
13758 freebsd-elf*)
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13760 need_version=no
13761 need_lib_prefix=no
13763 freebsd-*)
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13765 need_version=yes
13767 esac
13768 shlibpath_var=LD_LIBRARY_PATH
13769 case $host_os in
13770 freebsd2.*)
13771 shlibpath_overrides_runpath=yes
13773 freebsd3.[01]* | freebsdelf3.[01]*)
13774 shlibpath_overrides_runpath=yes
13775 hardcode_into_libs=yes
13777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13779 shlibpath_overrides_runpath=no
13780 hardcode_into_libs=yes
13782 *) # from 4.6 on, and DragonFly
13783 shlibpath_overrides_runpath=yes
13784 hardcode_into_libs=yes
13786 esac
13789 gnu*)
13790 version_type=linux
13791 need_lib_prefix=no
13792 need_version=no
13793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13794 soname_spec='${libname}${release}${shared_ext}$major'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 hardcode_into_libs=yes
13799 haiku*)
13800 version_type=linux
13801 need_lib_prefix=no
13802 need_version=no
13803 dynamic_linker="$host_os runtime_loader"
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 shlibpath_var=LIBRARY_PATH
13807 shlibpath_overrides_runpath=yes
13808 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13809 hardcode_into_libs=yes
13812 hpux9* | hpux10* | hpux11*)
13813 # Give a soname corresponding to the major version so that dld.sl refuses to
13814 # link against other versions.
13815 version_type=sunos
13816 need_lib_prefix=no
13817 need_version=no
13818 case $host_cpu in
13819 ia64*)
13820 shrext_cmds='.so'
13821 hardcode_into_libs=yes
13822 dynamic_linker="$host_os dld.so"
13823 shlibpath_var=LD_LIBRARY_PATH
13824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 if test "X$HPUX_IA64_MODE" = X32; then
13828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13829 else
13830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13834 hppa*64*)
13835 shrext_cmds='.sl'
13836 hardcode_into_libs=yes
13837 dynamic_linker="$host_os dld.sl"
13838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841 soname_spec='${libname}${release}${shared_ext}$major'
13842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13846 shrext_cmds='.sl'
13847 dynamic_linker="$host_os dld.sl"
13848 shlibpath_var=SHLIB_PATH
13849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851 soname_spec='${libname}${release}${shared_ext}$major'
13853 esac
13854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13855 postinstall_cmds='chmod 555 $lib'
13856 # or fails outright, so override atomically:
13857 install_override_mode=555
13860 interix[3-9]*)
13861 version_type=linux
13862 need_lib_prefix=no
13863 need_version=no
13864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13865 soname_spec='${libname}${release}${shared_ext}$major'
13866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13867 shlibpath_var=LD_LIBRARY_PATH
13868 shlibpath_overrides_runpath=no
13869 hardcode_into_libs=yes
13872 irix5* | irix6* | nonstopux*)
13873 case $host_os in
13874 nonstopux*) version_type=nonstopux ;;
13876 if test "$lt_cv_prog_gnu_ld" = yes; then
13877 version_type=linux
13878 else
13879 version_type=irix
13880 fi ;;
13881 esac
13882 need_lib_prefix=no
13883 need_version=no
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13886 case $host_os in
13887 irix5* | nonstopux*)
13888 libsuff= shlibsuff=
13891 case $LD in # libtool.m4 will add one of these switches to LD
13892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13893 libsuff= shlibsuff= libmagic=32-bit;;
13894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13895 libsuff=32 shlibsuff=N32 libmagic=N32;;
13896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13898 *) libsuff= shlibsuff= libmagic=never-match;;
13899 esac
13901 esac
13902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13903 shlibpath_overrides_runpath=no
13904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13906 hardcode_into_libs=yes
13909 # No shared lib support for Linux oldld, aout, or coff.
13910 linux*oldld* | linux*aout* | linux*coff*)
13911 dynamic_linker=no
13914 # This must be Linux ELF.
13915 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13916 version_type=linux
13917 need_lib_prefix=no
13918 need_version=no
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 shlibpath_overrides_runpath=no
13925 # Some binutils ld are patched to set DT_RUNPATH
13926 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 lt_cv_shlibpath_overrides_runpath=no
13930 save_LDFLAGS=$LDFLAGS
13931 save_libdir=$libdir
13932 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13933 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13938 main ()
13942 return 0;
13944 _ACEOF
13945 if ac_fn_cxx_try_link "$LINENO"; then :
13946 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13947 lt_cv_shlibpath_overrides_runpath=yes
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LDFLAGS=$save_LDFLAGS
13953 libdir=$save_libdir
13957 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13959 # This implies no fast_install, which is unacceptable.
13960 # Some rework will be needed to allow for fast_install
13961 # before this can be enabled.
13962 hardcode_into_libs=yes
13964 # Append ld.so.conf contents to the search path
13965 if test -f /etc/ld.so.conf; then
13966 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' ' '`
13967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13970 # We used to test for /lib/ld.so.1 and disable shared libraries on
13971 # powerpc, because MkLinux only supported shared libraries with the
13972 # GNU dynamic linker. Since this was broken with cross compilers,
13973 # most powerpc-linux boxes support dynamic linking these days and
13974 # people can always --disable-shared, the test was removed, and we
13975 # assume the GNU/Linux dynamic linker is in use.
13976 dynamic_linker='GNU/Linux ld.so'
13979 netbsd*)
13980 version_type=sunos
13981 need_lib_prefix=no
13982 need_version=no
13983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13986 dynamic_linker='NetBSD (a.out) ld.so'
13987 else
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 dynamic_linker='NetBSD ld.elf_so'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 shlibpath_overrides_runpath=yes
13994 hardcode_into_libs=yes
13997 newsos6)
13998 version_type=linux
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 shlibpath_var=LD_LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes
14004 *nto* | *qnx*)
14005 version_type=qnx
14006 need_lib_prefix=no
14007 need_version=no
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 soname_spec='${libname}${release}${shared_ext}$major'
14010 shlibpath_var=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath=no
14012 hardcode_into_libs=yes
14013 dynamic_linker='ldqnx.so'
14016 openbsd*)
14017 version_type=sunos
14018 sys_lib_dlsearch_path_spec="/usr/lib"
14019 need_lib_prefix=no
14020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14021 case $host_os in
14022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14023 *) need_version=no ;;
14024 esac
14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14029 case $host_os in
14030 openbsd2.[89] | openbsd2.[89].*)
14031 shlibpath_overrides_runpath=no
14034 shlibpath_overrides_runpath=yes
14036 esac
14037 else
14038 shlibpath_overrides_runpath=yes
14042 os2*)
14043 libname_spec='$name'
14044 shrext_cmds=".dll"
14045 need_lib_prefix=no
14046 library_names_spec='$libname${shared_ext} $libname.a'
14047 dynamic_linker='OS/2 ld.exe'
14048 shlibpath_var=LIBPATH
14051 osf3* | osf4* | osf5*)
14052 version_type=osf
14053 need_lib_prefix=no
14054 need_version=no
14055 soname_spec='${libname}${release}${shared_ext}$major'
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14062 rdos*)
14063 dynamic_linker=no
14066 solaris*)
14067 version_type=linux
14068 need_lib_prefix=no
14069 need_version=no
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes
14074 hardcode_into_libs=yes
14075 # ldd complains unless libraries are executable
14076 postinstall_cmds='chmod +x $lib'
14079 sunos4*)
14080 version_type=sunos
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085 if test "$with_gnu_ld" = yes; then
14086 need_lib_prefix=no
14088 need_version=yes
14091 sysv4 | sysv4.3*)
14092 version_type=linux
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 soname_spec='${libname}${release}${shared_ext}$major'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 case $host_vendor in
14097 sni)
14098 shlibpath_overrides_runpath=no
14099 need_lib_prefix=no
14100 runpath_var=LD_RUN_PATH
14102 siemens)
14103 need_lib_prefix=no
14105 motorola)
14106 need_lib_prefix=no
14107 need_version=no
14108 shlibpath_overrides_runpath=no
14109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14111 esac
14114 sysv4*MP*)
14115 if test -d /usr/nec ;then
14116 version_type=linux
14117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14118 soname_spec='$libname${shared_ext}.$major'
14119 shlibpath_var=LD_LIBRARY_PATH
14123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14124 version_type=freebsd-elf
14125 need_lib_prefix=no
14126 need_version=no
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=yes
14131 hardcode_into_libs=yes
14132 if test "$with_gnu_ld" = yes; then
14133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14134 else
14135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14136 case $host_os in
14137 sco3.2v5*)
14138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14140 esac
14142 sys_lib_dlsearch_path_spec='/usr/lib'
14145 tpf*)
14146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14147 version_type=linux
14148 need_lib_prefix=no
14149 need_version=no
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 shlibpath_overrides_runpath=no
14153 hardcode_into_libs=yes
14156 uts4*)
14157 version_type=linux
14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14159 soname_spec='${libname}${release}${shared_ext}$major'
14160 shlibpath_var=LD_LIBRARY_PATH
14164 dynamic_linker=no
14166 esac
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14168 $as_echo "$dynamic_linker" >&6; }
14169 test "$dynamic_linker" = no && can_build_shared=no
14171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14172 if test "$GCC" = yes; then
14173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14176 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14179 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14222 hardcode_action_CXX=
14223 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14224 test -n "$runpath_var_CXX" ||
14225 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14227 # We can hardcode non-existent directories.
14228 if test "$hardcode_direct_CXX" != no &&
14229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14230 # have to relink, otherwise we might link with an installed library
14231 # when we should be linking with a yet-to-be-installed one
14232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14233 test "$hardcode_minus_L_CXX" != no; then
14234 # Linking always hardcodes the temporary library directory.
14235 hardcode_action_CXX=relink
14236 else
14237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14238 hardcode_action_CXX=immediate
14240 else
14241 # We cannot hardcode anything, or else we can only hardcode existing
14242 # directories.
14243 hardcode_action_CXX=unsupported
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14246 $as_echo "$hardcode_action_CXX" >&6; }
14248 if test "$hardcode_action_CXX" = relink ||
14249 test "$inherit_rpath_CXX" = yes; then
14250 # Fast installation is not supported
14251 enable_fast_install=no
14252 elif test "$shlibpath_overrides_runpath" = yes ||
14253 test "$enable_shared" = no; then
14254 # Fast installation is not necessary
14255 enable_fast_install=needless
14264 fi # test -n "$compiler"
14266 CC=$lt_save_CC
14267 LDCXX=$LD
14268 LD=$lt_save_LD
14269 GCC=$lt_save_GCC
14270 with_gnu_ld=$lt_save_with_gnu_ld
14271 lt_cv_path_LDCXX=$lt_cv_path_LD
14272 lt_cv_path_LD=$lt_save_path_LD
14273 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14274 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14275 fi # test "$_lt_caught_CXX_error" != yes
14277 ac_ext=c
14278 ac_cpp='$CPP $CPPFLAGS'
14279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285 visibility=
14286 if test "$GXX" = yes; then
14287 visibility=-fvisibility=hidden
14291 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14292 if test "x$ac_cv_have_decl_basename" = x""yes; then :
14293 ac_have_decl=1
14294 else
14295 ac_have_decl=0
14298 cat >>confdefs.h <<_ACEOF
14299 #define HAVE_DECL_BASENAME $ac_have_decl
14300 _ACEOF
14303 gcc_version=`cat $srcdir/../gcc/BASE-VER`
14306 WARN_FLAGS=
14307 save_CFLAGS="$CFLAGS"
14308 for real_option in -W -Wall; do
14309 # Do the check with the no- prefix removed since gcc silently
14310 # accepts any -Wno-* option on purpose
14311 case $real_option in
14312 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14313 *) option=$real_option ;;
14314 esac
14315 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14318 $as_echo_n "checking whether $CC supports $option... " >&6; }
14319 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 CFLAGS="$option"
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14327 main ()
14331 return 0;
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 eval "$as_acx_Woption=yes"
14336 else
14337 eval "$as_acx_Woption=no"
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 eval ac_res=\$$as_acx_Woption
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14344 $as_echo "$ac_res" >&6; }
14345 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14346 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14348 done
14349 CFLAGS="$save_CFLAGS"
14352 WERROR=
14353 # Check whether --enable-werror-always was given.
14354 if test "${enable_werror_always+set}" = set; then :
14355 enableval=$enable_werror_always;
14356 else
14357 enable_werror_always=no
14360 if test $enable_werror_always = yes; then :
14361 WERROR="$WERROR${WERROR:+ }-Werror"
14368 libsuffix=
14369 if test "$GXX" = yes; then
14370 libsuffix=`$CXX -print-multi-os-directory`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14375 $as_echo_n "checking for socket libraries... " >&6; }
14376 if test "${libcc1_cv_lib_sockets+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 libcc1_cv_lib_sockets=
14380 libcc1_check_both=no
14381 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14382 if test "x$ac_cv_func_connect" = x""yes; then :
14383 libcc1_check_socket=no
14384 else
14385 libcc1_check_socket=yes
14388 if test "$libcc1_check_socket" = "yes"; then
14389 unset ac_cv_func_connect
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14391 $as_echo_n "checking for main in -lsocket... " >&6; }
14392 if test "${ac_cv_lib_socket_main+set}" = set; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-lsocket $LIBS"
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14402 main ()
14404 return main ();
14406 return 0;
14408 _ACEOF
14409 if ac_fn_c_try_link "$LINENO"; then :
14410 ac_cv_lib_socket_main=yes
14411 else
14412 ac_cv_lib_socket_main=no
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14416 LIBS=$ac_check_lib_save_LIBS
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14419 $as_echo "$ac_cv_lib_socket_main" >&6; }
14420 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14421 libcc1_cv_lib_sockets="-lsocket"
14422 else
14423 libcc1_check_both=yes
14427 if test "$libcc1_check_both" = "yes"; then
14428 libcc1_old_libs=$LIBS
14429 LIBS="$LIBS -lsocket -lnsl"
14430 unset ac_cv_func_accept
14431 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14432 if test "x$ac_cv_func_accept" = x""yes; then :
14433 libcc1_check_nsl=no
14434 libcc1_cv_lib_sockets="-lsocket -lnsl"
14437 unset ac_cv_func_accept
14438 LIBS=$libcc1_old_libs
14440 unset ac_cv_func_gethostbyname
14441 libcc1_old_libs="$LIBS"
14442 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14443 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14445 else
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14447 $as_echo_n "checking for main in -lnsl... " >&6; }
14448 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 ac_check_lib_save_LIBS=$LIBS
14452 LIBS="-lnsl $LIBS"
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14458 main ()
14460 return main ();
14462 return 0;
14464 _ACEOF
14465 if ac_fn_c_try_link "$LINENO"; then :
14466 ac_cv_lib_nsl_main=yes
14467 else
14468 ac_cv_lib_nsl_main=no
14470 rm -f core conftest.err conftest.$ac_objext \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14475 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14476 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14477 libcc1_cv_lib_sockets="$libcc1_cv_lib_sockets -lnsl"
14482 unset ac_cv_func_gethostbyname
14483 LIBS=$libcc1_old_libs
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14487 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14488 LIBS="$LIBS $libcc1_cv_lib_sockets"
14490 # If any of these functions are missing, simply don't bother building
14491 # this plugin.
14492 # Check for plugin support
14493 # Check whether --enable-plugin was given.
14494 if test "${enable_plugin+set}" = set; then :
14495 enableval=$enable_plugin; enable_plugin=$enableval
14496 else
14497 enable_plugin=yes; default_plugin=yes
14501 pluginlibs=
14503 case "${host}" in
14504 *-*-darwin*)
14505 if test x$build = x$host; then
14506 export_sym_check="nm${exeext} -g"
14507 elif test x$host = x$target; then
14508 export_sym_check="$gcc_cv_nm -g"
14509 else
14510 export_sym_check=
14514 if test x$build = x$host; then
14515 export_sym_check="objdump${exeext} -T"
14516 elif test x$host = x$target; then
14517 export_sym_check="$gcc_cv_objdump -T"
14518 else
14519 export_sym_check=
14522 esac
14524 if test x"$enable_plugin" = x"yes"; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14527 $as_echo_n "checking for exported symbols... " >&6; }
14528 if test "x$export_sym_check" != x; then
14529 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14530 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14531 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14532 : # No need to use a flag
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14534 $as_echo "yes" >&6; }
14535 else
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14537 $as_echo "yes" >&6; }
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14539 $as_echo_n "checking for -rdynamic... " >&6; }
14540 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
14541 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
14542 plugin_rdynamic=yes
14543 pluginlibs="-rdynamic"
14544 else
14545 plugin_rdynamic=no
14546 enable_plugin=no
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14549 $as_echo "$plugin_rdynamic" >&6; }
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14553 $as_echo "unable to check" >&6; }
14556 # Check -ldl
14557 saved_LIBS="$LIBS"
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14559 $as_echo_n "checking for library containing dlopen... " >&6; }
14560 if test "${ac_cv_search_dlopen+set}" = set; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 ac_func_search_save_LIBS=$LIBS
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14567 /* Override any GCC internal prototype to avoid an error.
14568 Use char because int might match the return type of a GCC
14569 builtin and then its argument prototype would still apply. */
14570 #ifdef __cplusplus
14571 extern "C"
14572 #endif
14573 char dlopen ();
14575 main ()
14577 return dlopen ();
14579 return 0;
14581 _ACEOF
14582 for ac_lib in '' dl; do
14583 if test -z "$ac_lib"; then
14584 ac_res="none required"
14585 else
14586 ac_res=-l$ac_lib
14587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14589 if ac_fn_c_try_link "$LINENO"; then :
14590 ac_cv_search_dlopen=$ac_res
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext
14594 if test "${ac_cv_search_dlopen+set}" = set; then :
14595 break
14597 done
14598 if test "${ac_cv_search_dlopen+set}" = set; then :
14600 else
14601 ac_cv_search_dlopen=no
14603 rm conftest.$ac_ext
14604 LIBS=$ac_func_search_save_LIBS
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14607 $as_echo "$ac_cv_search_dlopen" >&6; }
14608 ac_res=$ac_cv_search_dlopen
14609 if test "$ac_res" != no; then :
14610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14614 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
14615 pluginlibs="$pluginlibs -ldl"
14617 LIBS="$saved_LIBS"
14619 # Check that we can build shared objects with -fPIC -shared
14620 saved_LDFLAGS="$LDFLAGS"
14621 saved_CFLAGS="$CFLAGS"
14622 case "${host}" in
14623 *-*-darwin*)
14624 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14625 CFLAGS="$CFLAGS -fPIC"
14626 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
14629 CFLAGS="$CFLAGS -fPIC"
14630 LDFLAGS="$LDFLAGS -fPIC -shared"
14632 esac
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14634 $as_echo_n "checking for -fPIC -shared... " >&6; }
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637 extern int X;
14639 main ()
14641 return X == 0;
14643 return 0;
14645 _ACEOF
14646 if ac_fn_c_try_link "$LINENO"; then :
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648 $as_echo "yes" >&6; }; have_pic_shared=yes
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 $as_echo "no" >&6; }; have_pic_shared=no
14653 rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext conftest.$ac_ext
14655 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
14656 pluginlibs=
14657 enable_plugin=no
14659 LDFLAGS="$saved_LDFLAGS"
14660 CFLAGS="$saved_CFLAGS"
14662 # If plugin support had been requested but not available, fail.
14663 if test x"$enable_plugin" = x"no" ; then
14664 if test x"$default_plugin" != x"yes"; then
14665 as_fn_error "
14666 Building GCC with plugin support requires a host that supports
14667 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14672 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
14673 if test "x$ac_cv_func_socketpair" = x""yes; then :
14675 else
14676 enable_plugin=no
14679 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14680 if test "x$ac_cv_func_select" = x""yes; then :
14682 else
14683 enable_plugin=no
14686 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
14687 if test "x$ac_cv_func_fork" = x""yes; then :
14689 else
14690 enable_plugin=no
14693 if test $enable_plugin = yes; then
14694 ENABLE_PLUGIN_TRUE=
14695 ENABLE_PLUGIN_FALSE='#'
14696 else
14697 ENABLE_PLUGIN_TRUE='#'
14698 ENABLE_PLUGIN_FALSE=
14702 ac_config_files="$ac_config_files Makefile"
14704 cat >confcache <<\_ACEOF
14705 # This file is a shell script that caches the results of configure
14706 # tests run on this system so they can be shared between configure
14707 # scripts and configure runs, see configure's option --config-cache.
14708 # It is not useful on other systems. If it contains results you don't
14709 # want to keep, you may remove or edit it.
14711 # config.status only pays attention to the cache file if you give it
14712 # the --recheck option to rerun configure.
14714 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14715 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14716 # following values.
14718 _ACEOF
14720 # The following way of writing the cache mishandles newlines in values,
14721 # but we know of no workaround that is simple, portable, and efficient.
14722 # So, we kill variables containing newlines.
14723 # Ultrix sh set writes to stderr and can't be redirected directly,
14724 # and sets the high bit in the cache file unless we assign to the vars.
14726 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14727 eval ac_val=\$$ac_var
14728 case $ac_val in #(
14729 *${as_nl}*)
14730 case $ac_var in #(
14731 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14732 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14733 esac
14734 case $ac_var in #(
14735 _ | IFS | as_nl) ;; #(
14736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14737 *) { eval $ac_var=; unset $ac_var;} ;;
14738 esac ;;
14739 esac
14740 done
14742 (set) 2>&1 |
14743 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14744 *${as_nl}ac_space=\ *)
14745 # `set' does not quote correctly, so add quotes: double-quote
14746 # substitution turns \\\\ into \\, and sed turns \\ into \.
14747 sed -n \
14748 "s/'/'\\\\''/g;
14749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14750 ;; #(
14752 # `set' quotes correctly as required by POSIX, so do not add quotes.
14753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14755 esac |
14756 sort
14758 sed '
14759 /^ac_cv_env_/b end
14760 t clear
14761 :clear
14762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14763 t end
14764 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14765 :end' >>confcache
14766 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14767 if test -w "$cache_file"; then
14768 test "x$cache_file" != "x/dev/null" &&
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14770 $as_echo "$as_me: updating cache $cache_file" >&6;}
14771 cat confcache >$cache_file
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14774 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14777 rm -f confcache
14779 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14780 # Let make expand exec_prefix.
14781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14783 DEFS=-DHAVE_CONFIG_H
14785 ac_libobjs=
14786 ac_ltlibobjs=
14787 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14788 # 1. Remove the extension, and $U if already installed.
14789 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14790 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14791 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14792 # will be set to the directory where LIBOBJS objects are built.
14793 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14794 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14795 done
14796 LIBOBJS=$ac_libobjs
14798 LTLIBOBJS=$ac_ltlibobjs
14801 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14802 as_fn_error "conditional \"AMDEP\" was never defined.
14803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14805 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14806 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14809 if test -n "$EXEEXT"; then
14810 am__EXEEXT_TRUE=
14811 am__EXEEXT_FALSE='#'
14812 else
14813 am__EXEEXT_TRUE='#'
14814 am__EXEEXT_FALSE=
14817 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14818 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14821 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14822 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14825 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
14826 as_fn_error "conditional \"ENABLE_PLUGIN\" was never defined.
14827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14830 : ${CONFIG_STATUS=./config.status}
14831 ac_write_fail=0
14832 ac_clean_files_save=$ac_clean_files
14833 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14835 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14836 as_write_fail=0
14837 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14838 #! $SHELL
14839 # Generated by $as_me.
14840 # Run this file to recreate the current configuration.
14841 # Compiler output produced by configure, useful for debugging
14842 # configure, is in config.log if it exists.
14844 debug=false
14845 ac_cs_recheck=false
14846 ac_cs_silent=false
14848 SHELL=\${CONFIG_SHELL-$SHELL}
14849 export SHELL
14850 _ASEOF
14851 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14852 ## -------------------- ##
14853 ## M4sh Initialization. ##
14854 ## -------------------- ##
14856 # Be more Bourne compatible
14857 DUALCASE=1; export DUALCASE # for MKS sh
14858 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14859 emulate sh
14860 NULLCMD=:
14861 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14862 # is contrary to our usage. Disable this feature.
14863 alias -g '${1+"$@"}'='"$@"'
14864 setopt NO_GLOB_SUBST
14865 else
14866 case `(set -o) 2>/dev/null` in #(
14867 *posix*) :
14868 set -o posix ;; #(
14869 *) :
14871 esac
14875 as_nl='
14877 export as_nl
14878 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14879 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14880 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14881 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14882 # Prefer a ksh shell builtin over an external printf program on Solaris,
14883 # but without wasting forks for bash or zsh.
14884 if test -z "$BASH_VERSION$ZSH_VERSION" \
14885 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14886 as_echo='print -r --'
14887 as_echo_n='print -rn --'
14888 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14889 as_echo='printf %s\n'
14890 as_echo_n='printf %s'
14891 else
14892 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14893 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14894 as_echo_n='/usr/ucb/echo -n'
14895 else
14896 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14897 as_echo_n_body='eval
14898 arg=$1;
14899 case $arg in #(
14900 *"$as_nl"*)
14901 expr "X$arg" : "X\\(.*\\)$as_nl";
14902 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14903 esac;
14904 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14906 export as_echo_n_body
14907 as_echo_n='sh -c $as_echo_n_body as_echo'
14909 export as_echo_body
14910 as_echo='sh -c $as_echo_body as_echo'
14913 # The user is always right.
14914 if test "${PATH_SEPARATOR+set}" != set; then
14915 PATH_SEPARATOR=:
14916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14918 PATH_SEPARATOR=';'
14923 # IFS
14924 # We need space, tab and new line, in precisely that order. Quoting is
14925 # there to prevent editors from complaining about space-tab.
14926 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14927 # splitting by setting IFS to empty value.)
14928 IFS=" "" $as_nl"
14930 # Find who we are. Look in the path if we contain no directory separator.
14931 case $0 in #((
14932 *[\\/]* ) as_myself=$0 ;;
14933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14934 for as_dir in $PATH
14936 IFS=$as_save_IFS
14937 test -z "$as_dir" && as_dir=.
14938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14939 done
14940 IFS=$as_save_IFS
14943 esac
14944 # We did not find ourselves, most probably we were run as `sh COMMAND'
14945 # in which case we are not to be found in the path.
14946 if test "x$as_myself" = x; then
14947 as_myself=$0
14949 if test ! -f "$as_myself"; then
14950 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14951 exit 1
14954 # Unset variables that we do not need and which cause bugs (e.g. in
14955 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14956 # suppresses any "Segmentation fault" message there. '((' could
14957 # trigger a bug in pdksh 5.2.14.
14958 for as_var in BASH_ENV ENV MAIL MAILPATH
14959 do eval test x\${$as_var+set} = xset \
14960 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14961 done
14962 PS1='$ '
14963 PS2='> '
14964 PS4='+ '
14966 # NLS nuisances.
14967 LC_ALL=C
14968 export LC_ALL
14969 LANGUAGE=C
14970 export LANGUAGE
14972 # CDPATH.
14973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14976 # as_fn_error ERROR [LINENO LOG_FD]
14977 # ---------------------------------
14978 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14979 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14980 # script with status $?, using 1 if that was 0.
14981 as_fn_error ()
14983 as_status=$?; test $as_status -eq 0 && as_status=1
14984 if test "$3"; then
14985 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14986 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14988 $as_echo "$as_me: error: $1" >&2
14989 as_fn_exit $as_status
14990 } # as_fn_error
14993 # as_fn_set_status STATUS
14994 # -----------------------
14995 # Set $? to STATUS, without forking.
14996 as_fn_set_status ()
14998 return $1
14999 } # as_fn_set_status
15001 # as_fn_exit STATUS
15002 # -----------------
15003 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15004 as_fn_exit ()
15006 set +e
15007 as_fn_set_status $1
15008 exit $1
15009 } # as_fn_exit
15011 # as_fn_unset VAR
15012 # ---------------
15013 # Portably unset VAR.
15014 as_fn_unset ()
15016 { eval $1=; unset $1;}
15018 as_unset=as_fn_unset
15019 # as_fn_append VAR VALUE
15020 # ----------------------
15021 # Append the text in VALUE to the end of the definition contained in VAR. Take
15022 # advantage of any shell optimizations that allow amortized linear growth over
15023 # repeated appends, instead of the typical quadratic growth present in naive
15024 # implementations.
15025 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15026 eval 'as_fn_append ()
15028 eval $1+=\$2
15030 else
15031 as_fn_append ()
15033 eval $1=\$$1\$2
15035 fi # as_fn_append
15037 # as_fn_arith ARG...
15038 # ------------------
15039 # Perform arithmetic evaluation on the ARGs, and store the result in the
15040 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15041 # must be portable across $(()) and expr.
15042 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15043 eval 'as_fn_arith ()
15045 as_val=$(( $* ))
15047 else
15048 as_fn_arith ()
15050 as_val=`expr "$@" || test $? -eq 1`
15052 fi # as_fn_arith
15055 if expr a : '\(a\)' >/dev/null 2>&1 &&
15056 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15057 as_expr=expr
15058 else
15059 as_expr=false
15062 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15063 as_basename=basename
15064 else
15065 as_basename=false
15068 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15069 as_dirname=dirname
15070 else
15071 as_dirname=false
15074 as_me=`$as_basename -- "$0" ||
15075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15076 X"$0" : 'X\(//\)$' \| \
15077 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15078 $as_echo X/"$0" |
15079 sed '/^.*\/\([^/][^/]*\)\/*$/{
15080 s//\1/
15083 /^X\/\(\/\/\)$/{
15084 s//\1/
15087 /^X\/\(\/\).*/{
15088 s//\1/
15091 s/.*/./; q'`
15093 # Avoid depending upon Character Ranges.
15094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15097 as_cr_digits='0123456789'
15098 as_cr_alnum=$as_cr_Letters$as_cr_digits
15100 ECHO_C= ECHO_N= ECHO_T=
15101 case `echo -n x` in #(((((
15102 -n*)
15103 case `echo 'xy\c'` in
15104 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15105 xy) ECHO_C='\c';;
15106 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15107 ECHO_T=' ';;
15108 esac;;
15110 ECHO_N='-n';;
15111 esac
15113 rm -f conf$$ conf$$.exe conf$$.file
15114 if test -d conf$$.dir; then
15115 rm -f conf$$.dir/conf$$.file
15116 else
15117 rm -f conf$$.dir
15118 mkdir conf$$.dir 2>/dev/null
15120 if (echo >conf$$.file) 2>/dev/null; then
15121 if ln -s conf$$.file conf$$ 2>/dev/null; then
15122 as_ln_s='ln -s'
15123 # ... but there are two gotchas:
15124 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15125 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15126 # In both cases, we have to default to `cp -p'.
15127 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15128 as_ln_s='cp -p'
15129 elif ln conf$$.file conf$$ 2>/dev/null; then
15130 as_ln_s=ln
15131 else
15132 as_ln_s='cp -p'
15134 else
15135 as_ln_s='cp -p'
15137 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15138 rmdir conf$$.dir 2>/dev/null
15141 # as_fn_mkdir_p
15142 # -------------
15143 # Create "$as_dir" as a directory, including parents if necessary.
15144 as_fn_mkdir_p ()
15147 case $as_dir in #(
15148 -*) as_dir=./$as_dir;;
15149 esac
15150 test -d "$as_dir" || eval $as_mkdir_p || {
15151 as_dirs=
15152 while :; do
15153 case $as_dir in #(
15154 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15155 *) as_qdir=$as_dir;;
15156 esac
15157 as_dirs="'$as_qdir' $as_dirs"
15158 as_dir=`$as_dirname -- "$as_dir" ||
15159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15160 X"$as_dir" : 'X\(//\)[^/]' \| \
15161 X"$as_dir" : 'X\(//\)$' \| \
15162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15163 $as_echo X"$as_dir" |
15164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15165 s//\1/
15168 /^X\(\/\/\)[^/].*/{
15169 s//\1/
15172 /^X\(\/\/\)$/{
15173 s//\1/
15176 /^X\(\/\).*/{
15177 s//\1/
15180 s/.*/./; q'`
15181 test -d "$as_dir" && break
15182 done
15183 test -z "$as_dirs" || eval "mkdir $as_dirs"
15184 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15187 } # as_fn_mkdir_p
15188 if mkdir -p . 2>/dev/null; then
15189 as_mkdir_p='mkdir -p "$as_dir"'
15190 else
15191 test -d ./-p && rmdir ./-p
15192 as_mkdir_p=false
15195 if test -x / >/dev/null 2>&1; then
15196 as_test_x='test -x'
15197 else
15198 if ls -dL / >/dev/null 2>&1; then
15199 as_ls_L_option=L
15200 else
15201 as_ls_L_option=
15203 as_test_x='
15204 eval sh -c '\''
15205 if test -d "$1"; then
15206 test -d "$1/.";
15207 else
15208 case $1 in #(
15209 -*)set "./$1";;
15210 esac;
15211 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15212 ???[sx]*):;;*)false;;esac;fi
15213 '\'' sh
15216 as_executable_p=$as_test_x
15218 # Sed expression to map a string onto a valid CPP name.
15219 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15221 # Sed expression to map a string onto a valid variable name.
15222 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15225 exec 6>&1
15226 ## ----------------------------------- ##
15227 ## Main body of $CONFIG_STATUS script. ##
15228 ## ----------------------------------- ##
15229 _ASEOF
15230 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233 # Save the log message, to keep $0 and so on meaningful, and to
15234 # report actual input values of CONFIG_FILES etc. instead of their
15235 # values after options handling.
15236 ac_log="
15237 This file was extended by libcc1 $as_me version-unused, which was
15238 generated by GNU Autoconf 2.64. Invocation command line was
15240 CONFIG_FILES = $CONFIG_FILES
15241 CONFIG_HEADERS = $CONFIG_HEADERS
15242 CONFIG_LINKS = $CONFIG_LINKS
15243 CONFIG_COMMANDS = $CONFIG_COMMANDS
15244 $ $0 $@
15246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15249 _ACEOF
15251 case $ac_config_files in *"
15252 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15253 esac
15255 case $ac_config_headers in *"
15256 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15257 esac
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 # Files that config.status was made for.
15262 config_files="$ac_config_files"
15263 config_headers="$ac_config_headers"
15264 config_commands="$ac_config_commands"
15266 _ACEOF
15268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15269 ac_cs_usage="\
15270 \`$as_me' instantiates files and other configuration actions
15271 from templates according to the current configuration. Unless the files
15272 and actions are specified as TAGs, all are instantiated by default.
15274 Usage: $0 [OPTION]... [TAG]...
15276 -h, --help print this help, then exit
15277 -V, --version print version number and configuration settings, then exit
15278 -q, --quiet, --silent
15279 do not print progress messages
15280 -d, --debug don't remove temporary files
15281 --recheck update $as_me by reconfiguring in the same conditions
15282 --file=FILE[:TEMPLATE]
15283 instantiate the configuration file FILE
15284 --header=FILE[:TEMPLATE]
15285 instantiate the configuration header FILE
15287 Configuration files:
15288 $config_files
15290 Configuration headers:
15291 $config_headers
15293 Configuration commands:
15294 $config_commands
15296 Report bugs to the package provider."
15298 _ACEOF
15299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15300 ac_cs_version="\\
15301 libcc1 config.status version-unused
15302 configured by $0, generated by GNU Autoconf 2.64,
15303 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15305 Copyright (C) 2009 Free Software Foundation, Inc.
15306 This config.status script is free software; the Free Software Foundation
15307 gives unlimited permission to copy, distribute and modify it."
15309 ac_pwd='$ac_pwd'
15310 srcdir='$srcdir'
15311 INSTALL='$INSTALL'
15312 MKDIR_P='$MKDIR_P'
15313 AWK='$AWK'
15314 test -n "\$AWK" || AWK=awk
15315 _ACEOF
15317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15318 # The default lists apply if the user does not specify any file.
15319 ac_need_defaults=:
15320 while test $# != 0
15322 case $1 in
15323 --*=*)
15324 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15326 ac_shift=:
15329 ac_option=$1
15330 ac_optarg=$2
15331 ac_shift=shift
15333 esac
15335 case $ac_option in
15336 # Handling of the options.
15337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15338 ac_cs_recheck=: ;;
15339 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15340 $as_echo "$ac_cs_version"; exit ;;
15341 --debug | --debu | --deb | --de | --d | -d )
15342 debug=: ;;
15343 --file | --fil | --fi | --f )
15344 $ac_shift
15345 case $ac_optarg in
15346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15347 esac
15348 as_fn_append CONFIG_FILES " '$ac_optarg'"
15349 ac_need_defaults=false;;
15350 --header | --heade | --head | --hea )
15351 $ac_shift
15352 case $ac_optarg in
15353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15354 esac
15355 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15356 ac_need_defaults=false;;
15357 --he | --h)
15358 # Conflict between --help and --header
15359 as_fn_error "ambiguous option: \`$1'
15360 Try \`$0 --help' for more information.";;
15361 --help | --hel | -h )
15362 $as_echo "$ac_cs_usage"; exit ;;
15363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15365 ac_cs_silent=: ;;
15367 # This is an error.
15368 -*) as_fn_error "unrecognized option: \`$1'
15369 Try \`$0 --help' for more information." ;;
15371 *) as_fn_append ac_config_targets " $1"
15372 ac_need_defaults=false ;;
15374 esac
15375 shift
15376 done
15378 ac_configure_extra_args=
15380 if $ac_cs_silent; then
15381 exec 6>/dev/null
15382 ac_configure_extra_args="$ac_configure_extra_args --silent"
15385 _ACEOF
15386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15387 if \$ac_cs_recheck; then
15388 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15389 shift
15390 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15391 CONFIG_SHELL='$SHELL'
15392 export CONFIG_SHELL
15393 exec "\$@"
15396 _ACEOF
15397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15398 exec 5>>config.log
15400 echo
15401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15402 ## Running $as_me. ##
15403 _ASBOX
15404 $as_echo "$ac_log"
15405 } >&5
15407 _ACEOF
15408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15410 # INIT-COMMANDS
15412 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15415 # The HP-UX ksh and POSIX shell print the target directory to stdout
15416 # if CDPATH is set.
15417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15419 sed_quote_subst='$sed_quote_subst'
15420 double_quote_subst='$double_quote_subst'
15421 delay_variable_subst='$delay_variable_subst'
15422 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15423 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15424 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15425 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15426 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15427 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15428 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15429 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15430 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15431 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15432 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15433 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15434 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15435 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15436 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15437 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15438 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15439 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15440 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15441 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15442 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15443 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15444 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15445 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15446 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15447 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15448 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15449 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15450 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15451 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15452 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15453 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15454 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15455 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15456 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15457 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15458 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15459 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15460 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15461 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15462 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15463 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15464 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15465 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15466 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15467 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15468 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15469 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15470 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"`'
15471 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15472 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15473 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15474 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15475 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15476 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15477 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15478 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15479 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15480 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15481 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15482 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15483 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15484 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15485 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15486 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15487 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15488 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15489 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15490 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15491 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15492 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15493 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15494 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15495 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15496 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15497 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15498 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15499 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15500 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15501 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15502 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15503 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15504 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15505 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15506 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15507 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15508 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15509 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15510 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15511 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15512 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15513 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15514 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15515 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15516 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15517 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15518 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15519 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15520 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15521 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15522 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15523 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15524 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15525 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15526 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15527 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15528 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15529 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15530 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15531 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15532 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15533 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15534 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15535 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15536 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15537 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15538 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15539 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15540 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15541 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15542 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15543 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15544 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15545 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15546 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15547 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15548 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15549 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15550 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15551 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15552 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15553 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15554 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15555 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15556 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15557 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15558 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15559 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15560 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15561 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15562 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15563 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15564 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15565 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15566 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15567 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15568 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15569 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15570 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15571 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15572 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15573 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15574 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15575 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15576 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15577 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15578 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15579 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15580 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15581 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15582 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15583 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15584 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15585 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15586 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15587 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15588 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15589 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15590 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15591 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15592 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15593 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15594 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15595 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15596 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15598 LTCC='$LTCC'
15599 LTCFLAGS='$LTCFLAGS'
15600 compiler='$compiler_DEFAULT'
15602 # A function that is used when there is no print builtin or printf.
15603 func_fallback_echo ()
15605 eval 'cat <<_LTECHO_EOF
15607 _LTECHO_EOF'
15610 # Quote evaled strings.
15611 for var in SHELL \
15612 ECHO \
15613 SED \
15614 GREP \
15615 EGREP \
15616 FGREP \
15617 LD \
15618 NM \
15619 LN_S \
15620 lt_SP2NL \
15621 lt_NL2SP \
15622 reload_flag \
15623 OBJDUMP \
15624 deplibs_check_method \
15625 file_magic_cmd \
15626 AR \
15627 AR_FLAGS \
15628 STRIP \
15629 RANLIB \
15630 CC \
15631 CFLAGS \
15632 compiler \
15633 lt_cv_sys_global_symbol_pipe \
15634 lt_cv_sys_global_symbol_to_cdecl \
15635 lt_cv_sys_global_symbol_to_c_name_address \
15636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15637 lt_prog_compiler_no_builtin_flag \
15638 lt_prog_compiler_wl \
15639 lt_prog_compiler_pic \
15640 lt_prog_compiler_static \
15641 lt_cv_prog_compiler_c_o \
15642 need_locks \
15643 DSYMUTIL \
15644 NMEDIT \
15645 LIPO \
15646 OTOOL \
15647 OTOOL64 \
15648 shrext_cmds \
15649 export_dynamic_flag_spec \
15650 whole_archive_flag_spec \
15651 compiler_needs_object \
15652 with_gnu_ld \
15653 allow_undefined_flag \
15654 no_undefined_flag \
15655 hardcode_libdir_flag_spec \
15656 hardcode_libdir_flag_spec_ld \
15657 hardcode_libdir_separator \
15658 fix_srcfile_path \
15659 exclude_expsyms \
15660 include_expsyms \
15661 file_list_spec \
15662 variables_saved_for_relink \
15663 libname_spec \
15664 library_names_spec \
15665 soname_spec \
15666 install_override_mode \
15667 finish_eval \
15668 old_striplib \
15669 striplib \
15670 compiler_lib_search_dirs \
15671 predep_objects \
15672 postdep_objects \
15673 predeps \
15674 postdeps \
15675 compiler_lib_search_path \
15676 LD_CXX \
15677 reload_flag_CXX \
15678 compiler_CXX \
15679 lt_prog_compiler_no_builtin_flag_CXX \
15680 lt_prog_compiler_wl_CXX \
15681 lt_prog_compiler_pic_CXX \
15682 lt_prog_compiler_static_CXX \
15683 lt_cv_prog_compiler_c_o_CXX \
15684 export_dynamic_flag_spec_CXX \
15685 whole_archive_flag_spec_CXX \
15686 compiler_needs_object_CXX \
15687 with_gnu_ld_CXX \
15688 allow_undefined_flag_CXX \
15689 no_undefined_flag_CXX \
15690 hardcode_libdir_flag_spec_CXX \
15691 hardcode_libdir_flag_spec_ld_CXX \
15692 hardcode_libdir_separator_CXX \
15693 fix_srcfile_path_CXX \
15694 exclude_expsyms_CXX \
15695 include_expsyms_CXX \
15696 file_list_spec_CXX \
15697 compiler_lib_search_dirs_CXX \
15698 predep_objects_CXX \
15699 postdep_objects_CXX \
15700 predeps_CXX \
15701 postdeps_CXX \
15702 compiler_lib_search_path_CXX; do
15703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15704 *[\\\\\\\`\\"\\\$]*)
15705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15710 esac
15711 done
15713 # Double-quote double-evaled strings.
15714 for var in reload_cmds \
15715 old_postinstall_cmds \
15716 old_postuninstall_cmds \
15717 old_archive_cmds \
15718 extract_expsyms_cmds \
15719 old_archive_from_new_cmds \
15720 old_archive_from_expsyms_cmds \
15721 archive_cmds \
15722 archive_expsym_cmds \
15723 module_cmds \
15724 module_expsym_cmds \
15725 export_symbols_cmds \
15726 prelink_cmds \
15727 postinstall_cmds \
15728 postuninstall_cmds \
15729 finish_cmds \
15730 sys_lib_search_path_spec \
15731 sys_lib_dlsearch_path_spec \
15732 reload_cmds_CXX \
15733 old_archive_cmds_CXX \
15734 old_archive_from_new_cmds_CXX \
15735 old_archive_from_expsyms_cmds_CXX \
15736 archive_cmds_CXX \
15737 archive_expsym_cmds_CXX \
15738 module_cmds_CXX \
15739 module_expsym_cmds_CXX \
15740 export_symbols_cmds_CXX \
15741 prelink_cmds_CXX; do
15742 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15743 *[\\\\\\\`\\"\\\$]*)
15744 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15747 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15749 esac
15750 done
15752 ac_aux_dir='$ac_aux_dir'
15753 xsi_shell='$xsi_shell'
15754 lt_shell_append='$lt_shell_append'
15756 # See if we are running on zsh, and set the options which allow our
15757 # commands through without removal of \ escapes INIT.
15758 if test -n "\${ZSH_VERSION+set}" ; then
15759 setopt NO_GLOB_SUBST
15763 PACKAGE='$PACKAGE'
15764 VERSION='$VERSION'
15765 TIMESTAMP='$TIMESTAMP'
15766 RM='$RM'
15767 ofile='$ofile'
15774 _ACEOF
15776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15778 # Handling of arguments.
15779 for ac_config_target in $ac_config_targets
15781 case $ac_config_target in
15782 "cc1plugin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cc1plugin-config.h" ;;
15783 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15784 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15787 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15788 esac
15789 done
15792 # If the user did not use the arguments to specify the items to instantiate,
15793 # then the envvar interface is used. Set only those that are not.
15794 # We use the long form for the default assignment because of an extremely
15795 # bizarre bug on SunOS 4.1.3.
15796 if $ac_need_defaults; then
15797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15802 # Have a temporary directory for convenience. Make it in the build tree
15803 # simply because there is no reason against having it here, and in addition,
15804 # creating and moving files from /tmp can sometimes cause problems.
15805 # Hook for its removal unless debugging.
15806 # Note that there is a small window in which the directory will not be cleaned:
15807 # after its creation but before its name has been assigned to `$tmp'.
15808 $debug ||
15810 tmp=
15811 trap 'exit_status=$?
15812 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15814 trap 'as_fn_exit 1' 1 2 13 15
15816 # Create a (secure) tmp directory for tmp files.
15819 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15820 test -n "$tmp" && test -d "$tmp"
15821 } ||
15823 tmp=./conf$$-$RANDOM
15824 (umask 077 && mkdir "$tmp")
15825 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15827 # Set up the scripts for CONFIG_FILES section.
15828 # No need to generate them if there are no CONFIG_FILES.
15829 # This happens for instance with `./config.status config.h'.
15830 if test -n "$CONFIG_FILES"; then
15833 ac_cr=`echo X | tr X '\015'`
15834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15835 # But we know of no other shell where ac_cr would be empty at this
15836 # point, so we can use a bashism as a fallback.
15837 if test "x$ac_cr" = x; then
15838 eval ac_cr=\$\'\\r\'
15840 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15842 ac_cs_awk_cr='\r'
15843 else
15844 ac_cs_awk_cr=$ac_cr
15847 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15848 _ACEOF
15852 echo "cat >conf$$subs.awk <<_ACEOF" &&
15853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15854 echo "_ACEOF"
15855 } >conf$$subs.sh ||
15856 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15858 ac_delim='%!_!# '
15859 for ac_last_try in false false false false false :; do
15860 . ./conf$$subs.sh ||
15861 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15863 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15864 if test $ac_delim_n = $ac_delim_num; then
15865 break
15866 elif $ac_last_try; then
15867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15868 else
15869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15871 done
15872 rm -f conf$$subs.sh
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15876 _ACEOF
15877 sed -n '
15879 s/^/S["/; s/!.*/"]=/
15882 s/^[^!]*!//
15883 :repl
15884 t repl
15885 s/'"$ac_delim"'$//
15886 t delim
15889 s/\(.\{148\}\).*/\1/
15890 t more1
15891 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15894 b repl
15895 :more1
15896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15899 s/.\{148\}//
15900 t nl
15901 :delim
15903 s/\(.\{148\}\).*/\1/
15904 t more2
15905 s/["\\]/\\&/g; s/^/"/; s/$/"/
15908 :more2
15909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15912 s/.\{148\}//
15913 t delim
15914 ' <conf$$subs.awk | sed '
15915 /^[^""]/{
15917 s/\n//
15919 ' >>$CONFIG_STATUS || ac_write_fail=1
15920 rm -f conf$$subs.awk
15921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15922 _ACAWK
15923 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15924 for (key in S) S_is_set[key] = 1
15925 FS = "\a"
15929 line = $ 0
15930 nfields = split(line, field, "@")
15931 substed = 0
15932 len = length(field[1])
15933 for (i = 2; i < nfields; i++) {
15934 key = field[i]
15935 keylen = length(key)
15936 if (S_is_set[key]) {
15937 value = S[key]
15938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15939 len += length(value) + length(field[++i])
15940 substed = 1
15941 } else
15942 len += 1 + keylen
15945 print line
15948 _ACAWK
15949 _ACEOF
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15952 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15953 else
15955 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15956 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15957 _ACEOF
15959 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15960 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15961 # trailing colons and then remove the whole line if VPATH becomes empty
15962 # (actually we leave an empty line to preserve line numbers).
15963 if test "x$srcdir" = x.; then
15964 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15965 s/:*\$(srcdir):*/:/
15966 s/:*\${srcdir}:*/:/
15967 s/:*@srcdir@:*/:/
15968 s/^\([^=]*=[ ]*\):*/\1/
15969 s/:*$//
15970 s/^[^=]*=[ ]*$//
15974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15975 fi # test -n "$CONFIG_FILES"
15977 # Set up the scripts for CONFIG_HEADERS section.
15978 # No need to generate them if there are no CONFIG_HEADERS.
15979 # This happens for instance with `./config.status Makefile'.
15980 if test -n "$CONFIG_HEADERS"; then
15981 cat >"$tmp/defines.awk" <<\_ACAWK ||
15982 BEGIN {
15983 _ACEOF
15985 # Transform confdefs.h into an awk script `defines.awk', embedded as
15986 # here-document in config.status, that substitutes the proper values into
15987 # config.h.in to produce config.h.
15989 # Create a delimiter string that does not exist in confdefs.h, to ease
15990 # handling of long lines.
15991 ac_delim='%!_!# '
15992 for ac_last_try in false false :; do
15993 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15994 if test -z "$ac_t"; then
15995 break
15996 elif $ac_last_try; then
15997 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15998 else
15999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16001 done
16003 # For the awk script, D is an array of macro values keyed by name,
16004 # likewise P contains macro parameters if any. Preserve backslash
16005 # newline sequences.
16007 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16008 sed -n '
16009 s/.\{148\}/&'"$ac_delim"'/g
16010 t rset
16011 :rset
16012 s/^[ ]*#[ ]*define[ ][ ]*/ /
16013 t def
16015 :def
16016 s/\\$//
16017 t bsnl
16018 s/["\\]/\\&/g
16019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16020 D["\1"]=" \3"/p
16021 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16023 :bsnl
16024 s/["\\]/\\&/g
16025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16026 D["\1"]=" \3\\\\\\n"\\/p
16027 t cont
16028 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16029 t cont
16031 :cont
16033 s/.\{148\}/&'"$ac_delim"'/g
16034 t clear
16035 :clear
16036 s/\\$//
16037 t bsnlc
16038 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16040 :bsnlc
16041 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16042 b cont
16043 ' <confdefs.h | sed '
16044 s/'"$ac_delim"'/"\\\
16045 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16048 for (key in D) D_is_set[key] = 1
16049 FS = "\a"
16051 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16052 line = \$ 0
16053 split(line, arg, " ")
16054 if (arg[1] == "#") {
16055 defundef = arg[2]
16056 mac1 = arg[3]
16057 } else {
16058 defundef = substr(arg[1], 2)
16059 mac1 = arg[2]
16061 split(mac1, mac2, "(") #)
16062 macro = mac2[1]
16063 prefix = substr(line, 1, index(line, defundef) - 1)
16064 if (D_is_set[macro]) {
16065 # Preserve the white space surrounding the "#".
16066 print prefix "define", macro P[macro] D[macro]
16067 next
16068 } else {
16069 # Replace #undef with comments. This is necessary, for example,
16070 # in the case of _POSIX_SOURCE, which is predefined and required
16071 # on some systems where configure will not decide to define it.
16072 if (defundef == "undef") {
16073 print "/*", prefix defundef, macro, "*/"
16074 next
16078 { print }
16079 _ACAWK
16080 _ACEOF
16081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16083 fi # test -n "$CONFIG_HEADERS"
16086 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16087 shift
16088 for ac_tag
16090 case $ac_tag in
16091 :[FHLC]) ac_mode=$ac_tag; continue;;
16092 esac
16093 case $ac_mode$ac_tag in
16094 :[FHL]*:*);;
16095 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16096 :[FH]-) ac_tag=-:-;;
16097 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16098 esac
16099 ac_save_IFS=$IFS
16100 IFS=:
16101 set x $ac_tag
16102 IFS=$ac_save_IFS
16103 shift
16104 ac_file=$1
16105 shift
16107 case $ac_mode in
16108 :L) ac_source=$1;;
16109 :[FH])
16110 ac_file_inputs=
16111 for ac_f
16113 case $ac_f in
16114 -) ac_f="$tmp/stdin";;
16115 *) # Look for the file first in the build tree, then in the source tree
16116 # (if the path is not absolute). The absolute path cannot be DOS-style,
16117 # because $ac_f cannot contain `:'.
16118 test -f "$ac_f" ||
16119 case $ac_f in
16120 [\\/$]*) false;;
16121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16122 esac ||
16123 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16124 esac
16125 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16126 as_fn_append ac_file_inputs " '$ac_f'"
16127 done
16129 # Let's still pretend it is `configure' which instantiates (i.e., don't
16130 # use $as_me), people would be surprised to read:
16131 # /* config.h. Generated by config.status. */
16132 configure_input='Generated from '`
16133 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16134 `' by configure.'
16135 if test x"$ac_file" != x-; then
16136 configure_input="$ac_file. $configure_input"
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16138 $as_echo "$as_me: creating $ac_file" >&6;}
16140 # Neutralize special characters interpreted by sed in replacement strings.
16141 case $configure_input in #(
16142 *\&* | *\|* | *\\* )
16143 ac_sed_conf_input=`$as_echo "$configure_input" |
16144 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16145 *) ac_sed_conf_input=$configure_input;;
16146 esac
16148 case $ac_tag in
16149 *:-:* | *:-) cat >"$tmp/stdin" \
16150 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16151 esac
16153 esac
16155 ac_dir=`$as_dirname -- "$ac_file" ||
16156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16157 X"$ac_file" : 'X\(//\)[^/]' \| \
16158 X"$ac_file" : 'X\(//\)$' \| \
16159 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16160 $as_echo X"$ac_file" |
16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16162 s//\1/
16165 /^X\(\/\/\)[^/].*/{
16166 s//\1/
16169 /^X\(\/\/\)$/{
16170 s//\1/
16173 /^X\(\/\).*/{
16174 s//\1/
16177 s/.*/./; q'`
16178 as_dir="$ac_dir"; as_fn_mkdir_p
16179 ac_builddir=.
16181 case "$ac_dir" in
16182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16185 # A ".." for each directory in $ac_dir_suffix.
16186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16187 case $ac_top_builddir_sub in
16188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16190 esac ;;
16191 esac
16192 ac_abs_top_builddir=$ac_pwd
16193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16194 # for backward compatibility:
16195 ac_top_builddir=$ac_top_build_prefix
16197 case $srcdir in
16198 .) # We are building in place.
16199 ac_srcdir=.
16200 ac_top_srcdir=$ac_top_builddir_sub
16201 ac_abs_top_srcdir=$ac_pwd ;;
16202 [\\/]* | ?:[\\/]* ) # Absolute name.
16203 ac_srcdir=$srcdir$ac_dir_suffix;
16204 ac_top_srcdir=$srcdir
16205 ac_abs_top_srcdir=$srcdir ;;
16206 *) # Relative name.
16207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16208 ac_top_srcdir=$ac_top_build_prefix$srcdir
16209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16210 esac
16211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16214 case $ac_mode in
16217 # CONFIG_FILE
16220 case $INSTALL in
16221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16223 esac
16224 ac_MKDIR_P=$MKDIR_P
16225 case $MKDIR_P in
16226 [\\/$]* | ?:[\\/]* ) ;;
16227 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16228 esac
16229 _ACEOF
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16232 # If the template does not know about datarootdir, expand it.
16233 # FIXME: This hack should be removed a few years after 2.60.
16234 ac_datarootdir_hack=; ac_datarootdir_seen=
16235 ac_sed_dataroot='
16236 /datarootdir/ {
16240 /@datadir@/p
16241 /@docdir@/p
16242 /@infodir@/p
16243 /@localedir@/p
16244 /@mandir@/p'
16245 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16246 *datarootdir*) ac_datarootdir_seen=yes;;
16247 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16249 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16250 _ACEOF
16251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16252 ac_datarootdir_hack='
16253 s&@datadir@&$datadir&g
16254 s&@docdir@&$docdir&g
16255 s&@infodir@&$infodir&g
16256 s&@localedir@&$localedir&g
16257 s&@mandir@&$mandir&g
16258 s&\\\${datarootdir}&$datarootdir&g' ;;
16259 esac
16260 _ACEOF
16262 # Neutralize VPATH when `$srcdir' = `.'.
16263 # Shell code in configure.ac might set extrasub.
16264 # FIXME: do we really want to maintain this feature?
16265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16266 ac_sed_extra="$ac_vpsub
16267 $extrasub
16268 _ACEOF
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16272 s|@configure_input@|$ac_sed_conf_input|;t t
16273 s&@top_builddir@&$ac_top_builddir_sub&;t t
16274 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16275 s&@srcdir@&$ac_srcdir&;t t
16276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16277 s&@top_srcdir@&$ac_top_srcdir&;t t
16278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16279 s&@builddir@&$ac_builddir&;t t
16280 s&@abs_builddir@&$ac_abs_builddir&;t t
16281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16282 s&@INSTALL@&$ac_INSTALL&;t t
16283 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16284 $ac_datarootdir_hack
16286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16287 || as_fn_error "could not create $ac_file" "$LINENO" 5
16289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16293 which seems to be undefined. Please make sure it is defined." >&5
16294 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16295 which seems to be undefined. Please make sure it is defined." >&2;}
16297 rm -f "$tmp/stdin"
16298 case $ac_file in
16299 -) cat "$tmp/out" && rm -f "$tmp/out";;
16300 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16301 esac \
16302 || as_fn_error "could not create $ac_file" "$LINENO" 5
16306 # CONFIG_HEADER
16308 if test x"$ac_file" != x-; then
16310 $as_echo "/* $configure_input */" \
16311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16312 } >"$tmp/config.h" \
16313 || as_fn_error "could not create $ac_file" "$LINENO" 5
16314 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16316 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16317 else
16318 rm -f "$ac_file"
16319 mv "$tmp/config.h" "$ac_file" \
16320 || as_fn_error "could not create $ac_file" "$LINENO" 5
16322 else
16323 $as_echo "/* $configure_input */" \
16324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16325 || as_fn_error "could not create -" "$LINENO" 5
16327 # Compute "$ac_file"'s index in $config_headers.
16328 _am_arg="$ac_file"
16329 _am_stamp_count=1
16330 for _am_header in $config_headers :; do
16331 case $_am_header in
16332 $_am_arg | $_am_arg:* )
16333 break ;;
16335 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16336 esac
16337 done
16338 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16339 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16340 X"$_am_arg" : 'X\(//\)[^/]' \| \
16341 X"$_am_arg" : 'X\(//\)$' \| \
16342 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16343 $as_echo X"$_am_arg" |
16344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16345 s//\1/
16348 /^X\(\/\/\)[^/].*/{
16349 s//\1/
16352 /^X\(\/\/\)$/{
16353 s//\1/
16356 /^X\(\/\).*/{
16357 s//\1/
16360 s/.*/./; q'`/stamp-h$_am_stamp_count
16363 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16364 $as_echo "$as_me: executing $ac_file commands" >&6;}
16366 esac
16369 case $ac_file$ac_mode in
16370 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16371 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16372 # are listed without --file. Let's play safe and only enable the eval
16373 # if we detect the quoting.
16374 case $CONFIG_FILES in
16375 *\'*) eval set x "$CONFIG_FILES" ;;
16376 *) set x $CONFIG_FILES ;;
16377 esac
16378 shift
16379 for mf
16381 # Strip MF so we end up with the name of the file.
16382 mf=`echo "$mf" | sed -e 's/:.*$//'`
16383 # Check whether this is an Automake generated Makefile or not.
16384 # We used to match only the files named `Makefile.in', but
16385 # some people rename them; so instead we look at the file content.
16386 # Grep'ing the first line is not enough: some people post-process
16387 # each Makefile.in and add a new line on top of each file to say so.
16388 # Grep'ing the whole file is not good either: AIX grep has a line
16389 # limit of 2048, but all sed's we know have understand at least 4000.
16390 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16391 dirpart=`$as_dirname -- "$mf" ||
16392 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16393 X"$mf" : 'X\(//\)[^/]' \| \
16394 X"$mf" : 'X\(//\)$' \| \
16395 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16396 $as_echo X"$mf" |
16397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16398 s//\1/
16401 /^X\(\/\/\)[^/].*/{
16402 s//\1/
16405 /^X\(\/\/\)$/{
16406 s//\1/
16409 /^X\(\/\).*/{
16410 s//\1/
16413 s/.*/./; q'`
16414 else
16415 continue
16417 # Extract the definition of DEPDIR, am__include, and am__quote
16418 # from the Makefile without running `make'.
16419 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16420 test -z "$DEPDIR" && continue
16421 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16422 test -z "am__include" && continue
16423 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16424 # When using ansi2knr, U may be empty or an underscore; expand it
16425 U=`sed -n 's/^U = //p' < "$mf"`
16426 # Find all dependency output files, they are included files with
16427 # $(DEPDIR) in their names. We invoke sed twice because it is the
16428 # simplest approach to changing $(DEPDIR) to its actual value in the
16429 # expansion.
16430 for file in `sed -n "
16431 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16432 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16433 # Make sure the directory exists.
16434 test -f "$dirpart/$file" && continue
16435 fdir=`$as_dirname -- "$file" ||
16436 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16437 X"$file" : 'X\(//\)[^/]' \| \
16438 X"$file" : 'X\(//\)$' \| \
16439 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16440 $as_echo X"$file" |
16441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16442 s//\1/
16445 /^X\(\/\/\)[^/].*/{
16446 s//\1/
16449 /^X\(\/\/\)$/{
16450 s//\1/
16453 /^X\(\/\).*/{
16454 s//\1/
16457 s/.*/./; q'`
16458 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16459 # echo "creating $dirpart/$file"
16460 echo '# dummy' > "$dirpart/$file"
16461 done
16462 done
16465 "libtool":C)
16467 # See if we are running on zsh, and set the options which allow our
16468 # commands through without removal of \ escapes.
16469 if test -n "${ZSH_VERSION+set}" ; then
16470 setopt NO_GLOB_SUBST
16473 cfgfile="${ofile}T"
16474 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16475 $RM "$cfgfile"
16477 cat <<_LT_EOF >> "$cfgfile"
16478 #! $SHELL
16480 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16481 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16483 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16485 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16486 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16487 # Written by Gordon Matzigkeit, 1996
16489 # This file is part of GNU Libtool.
16491 # GNU Libtool is free software; you can redistribute it and/or
16492 # modify it under the terms of the GNU General Public License as
16493 # published by the Free Software Foundation; either version 2 of
16494 # the License, or (at your option) any later version.
16496 # As a special exception to the GNU General Public License,
16497 # if you distribute this file as part of a program or library that
16498 # is built using GNU Libtool, you may include this file under the
16499 # same distribution terms that you use for the rest of that program.
16501 # GNU Libtool is distributed in the hope that it will be useful,
16502 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16503 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16504 # GNU General Public License for more details.
16506 # You should have received a copy of the GNU General Public License
16507 # along with GNU Libtool; see the file COPYING. If not, a copy
16508 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16509 # obtained by writing to the Free Software Foundation, Inc.,
16510 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16513 # The names of the tagged configurations supported by this script.
16514 available_tags="CXX "
16516 # ### BEGIN LIBTOOL CONFIG
16518 # Which release of libtool.m4 was used?
16519 macro_version=$macro_version
16520 macro_revision=$macro_revision
16522 # Whether or not to build static libraries.
16523 build_old_libs=$enable_static
16525 # Whether or not to build shared libraries.
16526 build_libtool_libs=$enable_shared
16528 # What type of objects to build.
16529 pic_mode=$pic_mode
16531 # Whether or not to optimize for fast installation.
16532 fast_install=$enable_fast_install
16534 # Shell to use when invoking shell scripts.
16535 SHELL=$lt_SHELL
16537 # An echo program that protects backslashes.
16538 ECHO=$lt_ECHO
16540 # The host system.
16541 host_alias=$host_alias
16542 host=$host
16543 host_os=$host_os
16545 # The build system.
16546 build_alias=$build_alias
16547 build=$build
16548 build_os=$build_os
16550 # A sed program that does not truncate output.
16551 SED=$lt_SED
16553 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16554 Xsed="\$SED -e 1s/^X//"
16556 # A grep program that handles long lines.
16557 GREP=$lt_GREP
16559 # An ERE matcher.
16560 EGREP=$lt_EGREP
16562 # A literal string matcher.
16563 FGREP=$lt_FGREP
16565 # A BSD- or MS-compatible name lister.
16566 NM=$lt_NM
16568 # Whether we need soft or hard links.
16569 LN_S=$lt_LN_S
16571 # What is the maximum length of a command?
16572 max_cmd_len=$max_cmd_len
16574 # Object file suffix (normally "o").
16575 objext=$ac_objext
16577 # Executable file suffix (normally "").
16578 exeext=$exeext
16580 # whether the shell understands "unset".
16581 lt_unset=$lt_unset
16583 # turn spaces into newlines.
16584 SP2NL=$lt_lt_SP2NL
16586 # turn newlines into spaces.
16587 NL2SP=$lt_lt_NL2SP
16589 # An object symbol dumper.
16590 OBJDUMP=$lt_OBJDUMP
16592 # Method to check whether dependent libraries are shared objects.
16593 deplibs_check_method=$lt_deplibs_check_method
16595 # Command to use when deplibs_check_method == "file_magic".
16596 file_magic_cmd=$lt_file_magic_cmd
16598 # The archiver.
16599 AR=$lt_AR
16600 AR_FLAGS=$lt_AR_FLAGS
16602 # A symbol stripping program.
16603 STRIP=$lt_STRIP
16605 # Commands used to install an old-style archive.
16606 RANLIB=$lt_RANLIB
16607 old_postinstall_cmds=$lt_old_postinstall_cmds
16608 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16610 # Whether to use a lock for old archive extraction.
16611 lock_old_archive_extraction=$lock_old_archive_extraction
16613 # A C compiler.
16614 LTCC=$lt_CC
16616 # LTCC compiler flags.
16617 LTCFLAGS=$lt_CFLAGS
16619 # Take the output of nm and produce a listing of raw symbols and C names.
16620 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16622 # Transform the output of nm in a proper C declaration.
16623 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16625 # Transform the output of nm in a C name address pair.
16626 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16628 # Transform the output of nm in a C name address pair when lib prefix is needed.
16629 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16631 # The name of the directory that contains temporary libtool files.
16632 objdir=$objdir
16634 # Used to examine libraries when file_magic_cmd begins with "file".
16635 MAGIC_CMD=$MAGIC_CMD
16637 # Must we lock files when doing compilation?
16638 need_locks=$lt_need_locks
16640 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16641 DSYMUTIL=$lt_DSYMUTIL
16643 # Tool to change global to local symbols on Mac OS X.
16644 NMEDIT=$lt_NMEDIT
16646 # Tool to manipulate fat objects and archives on Mac OS X.
16647 LIPO=$lt_LIPO
16649 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16650 OTOOL=$lt_OTOOL
16652 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16653 OTOOL64=$lt_OTOOL64
16655 # Old archive suffix (normally "a").
16656 libext=$libext
16658 # Shared library suffix (normally ".so").
16659 shrext_cmds=$lt_shrext_cmds
16661 # The commands to extract the exported symbol list from a shared archive.
16662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16664 # Variables whose values should be saved in libtool wrapper scripts and
16665 # restored at link time.
16666 variables_saved_for_relink=$lt_variables_saved_for_relink
16668 # Do we need the "lib" prefix for modules?
16669 need_lib_prefix=$need_lib_prefix
16671 # Do we need a version for libraries?
16672 need_version=$need_version
16674 # Library versioning type.
16675 version_type=$version_type
16677 # Shared library runtime path variable.
16678 runpath_var=$runpath_var
16680 # Shared library path variable.
16681 shlibpath_var=$shlibpath_var
16683 # Is shlibpath searched before the hard-coded library search path?
16684 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16686 # Format of library name prefix.
16687 libname_spec=$lt_libname_spec
16689 # List of archive names. First name is the real one, the rest are links.
16690 # The last name is the one that the linker finds with -lNAME
16691 library_names_spec=$lt_library_names_spec
16693 # The coded name of the library, if different from the real name.
16694 soname_spec=$lt_soname_spec
16696 # Permission mode override for installation of shared libraries.
16697 install_override_mode=$lt_install_override_mode
16699 # Command to use after installation of a shared archive.
16700 postinstall_cmds=$lt_postinstall_cmds
16702 # Command to use after uninstallation of a shared archive.
16703 postuninstall_cmds=$lt_postuninstall_cmds
16705 # Commands used to finish a libtool library installation in a directory.
16706 finish_cmds=$lt_finish_cmds
16708 # As "finish_cmds", except a single script fragment to be evaled but
16709 # not shown.
16710 finish_eval=$lt_finish_eval
16712 # Whether we should hardcode library paths into libraries.
16713 hardcode_into_libs=$hardcode_into_libs
16715 # Compile-time system search path for libraries.
16716 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16718 # Run-time system search path for libraries.
16719 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16721 # Whether dlopen is supported.
16722 dlopen_support=$enable_dlopen
16724 # Whether dlopen of programs is supported.
16725 dlopen_self=$enable_dlopen_self
16727 # Whether dlopen of statically linked programs is supported.
16728 dlopen_self_static=$enable_dlopen_self_static
16730 # Commands to strip libraries.
16731 old_striplib=$lt_old_striplib
16732 striplib=$lt_striplib
16735 # The linker used to build libraries.
16736 LD=$lt_LD
16738 # How to create reloadable object files.
16739 reload_flag=$lt_reload_flag
16740 reload_cmds=$lt_reload_cmds
16742 # Commands used to build an old-style archive.
16743 old_archive_cmds=$lt_old_archive_cmds
16745 # A language specific compiler.
16746 CC=$lt_compiler
16748 # Is the compiler the GNU compiler?
16749 with_gcc=$GCC
16751 # Compiler flag to turn off builtin functions.
16752 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16754 # How to pass a linker flag through the compiler.
16755 wl=$lt_lt_prog_compiler_wl
16757 # Additional compiler flags for building library objects.
16758 pic_flag=$lt_lt_prog_compiler_pic
16760 # Compiler flag to prevent dynamic linking.
16761 link_static_flag=$lt_lt_prog_compiler_static
16763 # Does compiler simultaneously support -c and -o options?
16764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16766 # Whether or not to add -lc for building shared libraries.
16767 build_libtool_need_lc=$archive_cmds_need_lc
16769 # Whether or not to disallow shared libs when runtime libs are static.
16770 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16772 # Compiler flag to allow reflexive dlopens.
16773 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16775 # Compiler flag to generate shared objects directly from archives.
16776 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16778 # Whether the compiler copes with passing no objects directly.
16779 compiler_needs_object=$lt_compiler_needs_object
16781 # Create an old-style archive from a shared archive.
16782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16784 # Create a temporary old-style archive to link instead of a shared archive.
16785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16787 # Commands used to build a shared archive.
16788 archive_cmds=$lt_archive_cmds
16789 archive_expsym_cmds=$lt_archive_expsym_cmds
16791 # Commands used to build a loadable module if different from building
16792 # a shared archive.
16793 module_cmds=$lt_module_cmds
16794 module_expsym_cmds=$lt_module_expsym_cmds
16796 # Whether we are building with GNU ld or not.
16797 with_gnu_ld=$lt_with_gnu_ld
16799 # Flag that allows shared libraries with undefined symbols to be built.
16800 allow_undefined_flag=$lt_allow_undefined_flag
16802 # Flag that enforces no undefined symbols.
16803 no_undefined_flag=$lt_no_undefined_flag
16805 # Flag to hardcode \$libdir into a binary during linking.
16806 # This must work even if \$libdir does not exist
16807 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16809 # If ld is used when linking, flag to hardcode \$libdir into a binary
16810 # during linking. This must work even if \$libdir does not exist.
16811 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16813 # Whether we need a single "-rpath" flag with a separated argument.
16814 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16817 # DIR into the resulting binary.
16818 hardcode_direct=$hardcode_direct
16820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16821 # DIR into the resulting binary and the resulting library dependency is
16822 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16823 # library is relocated.
16824 hardcode_direct_absolute=$hardcode_direct_absolute
16826 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16827 # into the resulting binary.
16828 hardcode_minus_L=$hardcode_minus_L
16830 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16831 # into the resulting binary.
16832 hardcode_shlibpath_var=$hardcode_shlibpath_var
16834 # Set to "yes" if building a shared library automatically hardcodes DIR
16835 # into the library and all subsequent libraries and executables linked
16836 # against it.
16837 hardcode_automatic=$hardcode_automatic
16839 # Set to yes if linker adds runtime paths of dependent libraries
16840 # to runtime path list.
16841 inherit_rpath=$inherit_rpath
16843 # Whether libtool must link a program against all its dependency libraries.
16844 link_all_deplibs=$link_all_deplibs
16846 # Fix the shell variable \$srcfile for the compiler.
16847 fix_srcfile_path=$lt_fix_srcfile_path
16849 # Set to "yes" if exported symbols are required.
16850 always_export_symbols=$always_export_symbols
16852 # The commands to list exported symbols.
16853 export_symbols_cmds=$lt_export_symbols_cmds
16855 # Symbols that should not be listed in the preloaded symbols.
16856 exclude_expsyms=$lt_exclude_expsyms
16858 # Symbols that must always be exported.
16859 include_expsyms=$lt_include_expsyms
16861 # Commands necessary for linking programs (against libraries) with templates.
16862 prelink_cmds=$lt_prelink_cmds
16864 # Specify filename containing input files.
16865 file_list_spec=$lt_file_list_spec
16867 # How to hardcode a shared library path into an executable.
16868 hardcode_action=$hardcode_action
16870 # The directories searched by this compiler when creating a shared library.
16871 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16873 # Dependencies to place before and after the objects being linked to
16874 # create a shared library.
16875 predep_objects=$lt_predep_objects
16876 postdep_objects=$lt_postdep_objects
16877 predeps=$lt_predeps
16878 postdeps=$lt_postdeps
16880 # The library search path used internally by the compiler when linking
16881 # a shared library.
16882 compiler_lib_search_path=$lt_compiler_lib_search_path
16884 # ### END LIBTOOL CONFIG
16886 _LT_EOF
16888 case $host_os in
16889 aix3*)
16890 cat <<\_LT_EOF >> "$cfgfile"
16891 # AIX sometimes has problems with the GCC collect2 program. For some
16892 # reason, if we set the COLLECT_NAMES environment variable, the problems
16893 # vanish in a puff of smoke.
16894 if test "X${COLLECT_NAMES+set}" != Xset; then
16895 COLLECT_NAMES=
16896 export COLLECT_NAMES
16898 _LT_EOF
16900 esac
16903 ltmain="$ac_aux_dir/ltmain.sh"
16906 # We use sed instead of cat because bash on DJGPP gets confused if
16907 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16908 # text mode, it properly converts lines to CR/LF. This bash problem
16909 # is reportedly fixed, but why not run on old versions too?
16910 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16911 || (rm -f "$cfgfile"; exit 1)
16913 case $xsi_shell in
16914 yes)
16915 cat << \_LT_EOF >> "$cfgfile"
16917 # func_dirname file append nondir_replacement
16918 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16919 # otherwise set result to NONDIR_REPLACEMENT.
16920 func_dirname ()
16922 case ${1} in
16923 */*) func_dirname_result="${1%/*}${2}" ;;
16924 * ) func_dirname_result="${3}" ;;
16925 esac
16928 # func_basename file
16929 func_basename ()
16931 func_basename_result="${1##*/}"
16934 # func_dirname_and_basename file append nondir_replacement
16935 # perform func_basename and func_dirname in a single function
16936 # call:
16937 # dirname: Compute the dirname of FILE. If nonempty,
16938 # add APPEND to the result, otherwise set result
16939 # to NONDIR_REPLACEMENT.
16940 # value returned in "$func_dirname_result"
16941 # basename: Compute filename of FILE.
16942 # value retuned in "$func_basename_result"
16943 # Implementation must be kept synchronized with func_dirname
16944 # and func_basename. For efficiency, we do not delegate to
16945 # those functions but instead duplicate the functionality here.
16946 func_dirname_and_basename ()
16948 case ${1} in
16949 */*) func_dirname_result="${1%/*}${2}" ;;
16950 * ) func_dirname_result="${3}" ;;
16951 esac
16952 func_basename_result="${1##*/}"
16955 # func_stripname prefix suffix name
16956 # strip PREFIX and SUFFIX off of NAME.
16957 # PREFIX and SUFFIX must not contain globbing or regex special
16958 # characters, hashes, percent signs, but SUFFIX may contain a leading
16959 # dot (in which case that matches only a dot).
16960 func_stripname ()
16962 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16963 # positional parameters, so assign one to ordinary parameter first.
16964 func_stripname_result=${3}
16965 func_stripname_result=${func_stripname_result#"${1}"}
16966 func_stripname_result=${func_stripname_result%"${2}"}
16969 # func_opt_split
16970 func_opt_split ()
16972 func_opt_split_opt=${1%%=*}
16973 func_opt_split_arg=${1#*=}
16976 # func_lo2o object
16977 func_lo2o ()
16979 case ${1} in
16980 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16981 *) func_lo2o_result=${1} ;;
16982 esac
16985 # func_xform libobj-or-source
16986 func_xform ()
16988 func_xform_result=${1%.*}.lo
16991 # func_arith arithmetic-term...
16992 func_arith ()
16994 func_arith_result=$(( $* ))
16997 # func_len string
16998 # STRING may not start with a hyphen.
16999 func_len ()
17001 func_len_result=${#1}
17004 _LT_EOF
17006 *) # Bourne compatible functions.
17007 cat << \_LT_EOF >> "$cfgfile"
17009 # func_dirname file append nondir_replacement
17010 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17011 # otherwise set result to NONDIR_REPLACEMENT.
17012 func_dirname ()
17014 # Extract subdirectory from the argument.
17015 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17016 if test "X$func_dirname_result" = "X${1}"; then
17017 func_dirname_result="${3}"
17018 else
17019 func_dirname_result="$func_dirname_result${2}"
17023 # func_basename file
17024 func_basename ()
17026 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17030 # func_stripname prefix suffix name
17031 # strip PREFIX and SUFFIX off of NAME.
17032 # PREFIX and SUFFIX must not contain globbing or regex special
17033 # characters, hashes, percent signs, but SUFFIX may contain a leading
17034 # dot (in which case that matches only a dot).
17035 # func_strip_suffix prefix name
17036 func_stripname ()
17038 case ${2} in
17039 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17040 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17041 esac
17044 # sed scripts:
17045 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17046 my_sed_long_arg='1s/^-[^=]*=//'
17048 # func_opt_split
17049 func_opt_split ()
17051 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17052 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17055 # func_lo2o object
17056 func_lo2o ()
17058 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17061 # func_xform libobj-or-source
17062 func_xform ()
17064 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17067 # func_arith arithmetic-term...
17068 func_arith ()
17070 func_arith_result=`expr "$@"`
17073 # func_len string
17074 # STRING may not start with a hyphen.
17075 func_len ()
17077 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17080 _LT_EOF
17081 esac
17083 case $lt_shell_append in
17084 yes)
17085 cat << \_LT_EOF >> "$cfgfile"
17087 # func_append var value
17088 # Append VALUE to the end of shell variable VAR.
17089 func_append ()
17091 eval "$1+=\$2"
17093 _LT_EOF
17096 cat << \_LT_EOF >> "$cfgfile"
17098 # func_append var value
17099 # Append VALUE to the end of shell variable VAR.
17100 func_append ()
17102 eval "$1=\$$1\$2"
17105 _LT_EOF
17107 esac
17110 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17111 || (rm -f "$cfgfile"; exit 1)
17113 mv -f "$cfgfile" "$ofile" ||
17114 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17115 chmod +x "$ofile"
17118 cat <<_LT_EOF >> "$ofile"
17120 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17122 # The linker used to build libraries.
17123 LD=$lt_LD_CXX
17125 # How to create reloadable object files.
17126 reload_flag=$lt_reload_flag_CXX
17127 reload_cmds=$lt_reload_cmds_CXX
17129 # Commands used to build an old-style archive.
17130 old_archive_cmds=$lt_old_archive_cmds_CXX
17132 # A language specific compiler.
17133 CC=$lt_compiler_CXX
17135 # Is the compiler the GNU compiler?
17136 with_gcc=$GCC_CXX
17138 # Compiler flag to turn off builtin functions.
17139 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17141 # How to pass a linker flag through the compiler.
17142 wl=$lt_lt_prog_compiler_wl_CXX
17144 # Additional compiler flags for building library objects.
17145 pic_flag=$lt_lt_prog_compiler_pic_CXX
17147 # Compiler flag to prevent dynamic linking.
17148 link_static_flag=$lt_lt_prog_compiler_static_CXX
17150 # Does compiler simultaneously support -c and -o options?
17151 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17153 # Whether or not to add -lc for building shared libraries.
17154 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17156 # Whether or not to disallow shared libs when runtime libs are static.
17157 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17159 # Compiler flag to allow reflexive dlopens.
17160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17162 # Compiler flag to generate shared objects directly from archives.
17163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17165 # Whether the compiler copes with passing no objects directly.
17166 compiler_needs_object=$lt_compiler_needs_object_CXX
17168 # Create an old-style archive from a shared archive.
17169 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17171 # Create a temporary old-style archive to link instead of a shared archive.
17172 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17174 # Commands used to build a shared archive.
17175 archive_cmds=$lt_archive_cmds_CXX
17176 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17178 # Commands used to build a loadable module if different from building
17179 # a shared archive.
17180 module_cmds=$lt_module_cmds_CXX
17181 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17183 # Whether we are building with GNU ld or not.
17184 with_gnu_ld=$lt_with_gnu_ld_CXX
17186 # Flag that allows shared libraries with undefined symbols to be built.
17187 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17189 # Flag that enforces no undefined symbols.
17190 no_undefined_flag=$lt_no_undefined_flag_CXX
17192 # Flag to hardcode \$libdir into a binary during linking.
17193 # This must work even if \$libdir does not exist
17194 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17196 # If ld is used when linking, flag to hardcode \$libdir into a binary
17197 # during linking. This must work even if \$libdir does not exist.
17198 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17200 # Whether we need a single "-rpath" flag with a separated argument.
17201 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17204 # DIR into the resulting binary.
17205 hardcode_direct=$hardcode_direct_CXX
17207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17208 # DIR into the resulting binary and the resulting library dependency is
17209 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17210 # library is relocated.
17211 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17213 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17214 # into the resulting binary.
17215 hardcode_minus_L=$hardcode_minus_L_CXX
17217 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17218 # into the resulting binary.
17219 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17221 # Set to "yes" if building a shared library automatically hardcodes DIR
17222 # into the library and all subsequent libraries and executables linked
17223 # against it.
17224 hardcode_automatic=$hardcode_automatic_CXX
17226 # Set to yes if linker adds runtime paths of dependent libraries
17227 # to runtime path list.
17228 inherit_rpath=$inherit_rpath_CXX
17230 # Whether libtool must link a program against all its dependency libraries.
17231 link_all_deplibs=$link_all_deplibs_CXX
17233 # Fix the shell variable \$srcfile for the compiler.
17234 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17236 # Set to "yes" if exported symbols are required.
17237 always_export_symbols=$always_export_symbols_CXX
17239 # The commands to list exported symbols.
17240 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17242 # Symbols that should not be listed in the preloaded symbols.
17243 exclude_expsyms=$lt_exclude_expsyms_CXX
17245 # Symbols that must always be exported.
17246 include_expsyms=$lt_include_expsyms_CXX
17248 # Commands necessary for linking programs (against libraries) with templates.
17249 prelink_cmds=$lt_prelink_cmds_CXX
17251 # Specify filename containing input files.
17252 file_list_spec=$lt_file_list_spec_CXX
17254 # How to hardcode a shared library path into an executable.
17255 hardcode_action=$hardcode_action_CXX
17257 # The directories searched by this compiler when creating a shared library.
17258 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17260 # Dependencies to place before and after the objects being linked to
17261 # create a shared library.
17262 predep_objects=$lt_predep_objects_CXX
17263 postdep_objects=$lt_postdep_objects_CXX
17264 predeps=$lt_predeps_CXX
17265 postdeps=$lt_postdeps_CXX
17267 # The library search path used internally by the compiler when linking
17268 # a shared library.
17269 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17271 # ### END LIBTOOL TAG CONFIG: CXX
17272 _LT_EOF
17276 esac
17277 done # for ac_tag
17280 as_fn_exit 0
17281 _ACEOF
17282 ac_clean_files=$ac_clean_files_save
17284 test $ac_write_fail = 0 ||
17285 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17288 # configure is writing to config.log, and then calls config.status.
17289 # config.status does its own redirection, appending to config.log.
17290 # Unfortunately, on DOS this fails, as config.log is still kept open
17291 # by configure, so config.status won't be able to write to it; its
17292 # output is simply discarded. So we exec the FD to /dev/null,
17293 # effectively closing config.log, so it can be properly (re)opened and
17294 # appended to by config.status. When coming back to configure, we
17295 # need to make the FD available again.
17296 if test "$no_create" != yes; then
17297 ac_cs_success=:
17298 ac_config_status_args=
17299 test "$silent" = yes &&
17300 ac_config_status_args="$ac_config_status_args --quiet"
17301 exec 5>/dev/null
17302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17303 exec 5>>config.log
17304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17305 # would make configure fail if this is the last instruction.
17306 $ac_cs_success || as_fn_exit $?
17308 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17310 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}