Daily bump.
[official-gcc.git] / libvtv / configure
blob5a73f26ace70b49e248a45e29cf9485968eb35af
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
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='GNU Vtable Verification Runtime Library'
558 PACKAGE_TARNAME='libvtv'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
564 ac_unique_file="vtv_rts.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 XCFLAGS
606 libtool_VERSION
607 enable_static
608 enable_shared
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
618 ac_ct_DUMPBIN
619 DUMPBIN
621 FGREP
623 LIBTOOL
624 RANLIB
627 CCASFLAGS
628 CCAS
629 am__fastdepCXX_FALSE
630 am__fastdepCXX_TRUE
631 CXXDEPMODE
632 ac_ct_CXX
633 CXXFLAGS
635 EGREP
636 GREP
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 AMDEPBACKSLASH
642 AMDEP_FALSE
643 AMDEP_TRUE
644 am__quote
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
654 toolexeclibdir
655 toolexecdir
656 toplevel_srcdir
657 toplevel_builddir
658 libvtv_srcdir
659 libvtv_builddir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 multi_basedir
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 ENABLE_VTABLE_VERIFY_FALSE
688 ENABLE_VTABLE_VERIFY_TRUE
689 LIBSTDCXX_RAW_CXX_LDFLAGS
690 LIBSTDCXX_RAW_CXX_CXXFLAGS
691 target_noncanonical
692 target_os
693 target_vendor
694 target_cpu
695 target
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_version_specific_runtime_libs
746 enable_vtable_verify
747 enable_multilib
748 enable_maintainer_mode
749 enable_dependency_tracking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 with_gnu_ld
755 enable_libtool_lock
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
766 CXXCPP'
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
817 ac_prev=
818 ac_dashdash=
819 for ac_option
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
833 # Accept the important Cygnus configure options, so we can diagnose typos.
835 case $ac_dashdash$ac_option in
837 ac_dashdash=yes ;;
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
856 --config-cache | -C)
857 cache_file=config.cache ;;
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information."
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 esac
1174 done
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1260 /^X\(\/\/\)$/{
1261 s//\1/
1264 /^X\(\/\).*/{
1265 s//\1/
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1273 else
1274 ac_srcdir_defaulted=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1363 cat <<\_ACEOF
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1380 esac
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1388 --enable-vtable-verify Enable vtable verification feature
1389 --enable-multilib build many library versions (default)
1390 --enable-maintainer-mode enable make rules and dependencies not useful
1391 (and sometimes confusing) to the casual installer
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-static[=PKGS] build static libraries [default=yes]
1396 --enable-fast-install[=PKGS]
1397 optimize for fast installation [default=yes]
1398 --disable-libtool-lock avoid locking (might break parallel builds)
1400 Optional Packages:
1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1403 --with-pic try to use only PIC/non-PIC objects [default=use
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CPP C preprocessor
1416 CXX C++ compiler command
1417 CXXFLAGS C++ compiler flags
1418 CXXCPP C++ preprocessor
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to the package provider.
1424 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1425 General help using GNU software: <http://www.gnu.org/gethelp/>.
1426 _ACEOF
1427 ac_status=$?
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1436 ac_builddir=.
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1454 case $srcdir in
1455 .) # We are building in place.
1456 ac_srcdir=.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1463 *) # Relative name.
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1478 else
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 fi || ac_status=$?
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1482 done
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487 cat <<\_ACEOF
1488 GNU Vtable Verification Runtime Library configure 1.0
1489 generated by GNU Autoconf 2.64
1491 Copyright (C) 2009 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495 exit
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1533 ac_retval=1
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 return $ac_retval
1538 } # ac_fn_c_try_compile
1540 # ac_fn_c_try_cpp LINENO
1541 # ----------------------
1542 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_cpp ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 if { { ac_try="$ac_cpp conftest.$ac_ext"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } >/dev/null && {
1562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 }; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1575 } # ac_fn_c_try_cpp
1577 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1578 # -------------------------------------------------------
1579 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1580 # the include files in INCLUDES and setting the cache variable VAR
1581 # accordingly.
1582 ac_fn_c_check_header_mongrel ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 $as_echo_n "(cached) " >&6
1591 eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1594 else
1595 # Is the header compilable?
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1597 $as_echo_n "checking $2 usability... " >&6; }
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1601 #include <$2>
1602 _ACEOF
1603 if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_header_compiler=yes
1605 else
1606 ac_header_compiler=no
1608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1610 $as_echo "$ac_header_compiler" >&6; }
1612 # Is the header present?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1614 $as_echo_n "checking $2 presence... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_cpp "$LINENO"; then :
1620 ac_header_preproc=yes
1621 else
1622 ac_header_preproc=no
1624 rm -f conftest.err conftest.$ac_ext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1626 $as_echo "$ac_header_preproc" >&6; }
1628 # So? What about this header?
1629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 yes:no: )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1632 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 no:yes:* )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1638 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1640 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1642 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1644 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648 esac
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1653 else
1654 eval "$3=\$ac_header_compiler"
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 } # ac_fn_c_check_header_mongrel
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=$ac_status
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 return $ac_retval
1704 } # ac_fn_c_try_run
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_link ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 $as_test_x conftest$ac_exeext
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=1
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1781 } # ac_fn_c_try_link
1783 # ac_fn_c_check_func LINENO FUNC VAR
1784 # ----------------------------------
1785 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1786 ac_fn_c_check_func ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798 #define $2 innocuous_$2
1800 /* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1805 #ifdef __STDC__
1806 # include <limits.h>
1807 #else
1808 # include <assert.h>
1809 #endif
1811 #undef $2
1813 /* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816 #ifdef __cplusplus
1817 extern "C"
1818 #endif
1819 char $2 ();
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined __stub_$2 || defined __stub___$2
1824 choke me
1825 #endif
1828 main ()
1830 return $2 ();
1832 return 0;
1834 _ACEOF
1835 if ac_fn_c_try_link "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1840 rm -f core conftest.err conftest.$ac_objext \
1841 conftest$ac_exeext conftest.$ac_ext
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_c_check_func
1850 # ac_fn_cxx_try_compile LINENO
1851 # ----------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_cxx_try_compile
1888 # ac_fn_cxx_try_cpp LINENO
1889 # ------------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_cpp ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } >/dev/null && {
1910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 return $ac_retval
1923 } # ac_fn_cxx_try_cpp
1925 # ac_fn_cxx_try_link LINENO
1926 # -------------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_cxx_try_link ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 $as_test_x conftest$ac_exeext
1953 }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=1
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 return $ac_retval
1969 } # ac_fn_cxx_try_link
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1974 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1975 generated by GNU Autoconf 2.64. Invocation command line was
1977 $ $0 $@
1979 _ACEOF
1980 exec 5>>config.log
1982 cat <<_ASUNAME
1983 ## --------- ##
1984 ## Platform. ##
1985 ## --------- ##
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004 _ASUNAME
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013 IFS=$as_save_IFS
2015 } >&5
2017 cat >&5 <<_ACEOF
2020 ## ----------- ##
2021 ## Core tests. ##
2022 ## ----------- ##
2024 _ACEOF
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_configure_args=
2033 ac_configure_args0=
2034 ac_configure_args1=
2035 ac_must_keep_next=false
2036 for ac_pass in 1 2
2038 for ac_arg
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2067 as_fn_append ac_configure_args " '$ac_arg'"
2069 esac
2070 done
2071 done
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2083 echo
2085 cat <<\_ASBOX
2086 ## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##
2089 _ASBOX
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118 esac |
2119 sort
2121 echo
2123 cat <<\_ASBOX
2124 ## ----------------- ##
2125 ## Output variables. ##
2126 ## ----------------- ##
2127 _ASBOX
2128 echo
2129 for ac_var in $ac_subst_vars
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2139 if test -n "$ac_subst_files"; then
2140 cat <<\_ASBOX
2141 ## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##
2144 _ASBOX
2145 echo
2146 for ac_var in $ac_subst_files
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2157 if test -s confdefs.h; then
2158 cat <<\_ASBOX
2159 ## ----------- ##
2160 ## confdefs.h. ##
2161 ## ----------- ##
2162 _ASBOX
2163 echo
2164 cat confdefs.h
2165 echo
2167 test "$ac_signal" != 0 &&
2168 $as_echo "$as_me: caught signal $ac_signal"
2169 $as_echo "$as_me: exit $exit_status"
2170 } >&5
2171 rm -f core *.core core.conftest.* &&
2172 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173 exit $exit_status
2175 for ac_signal in 1 2 13 15; do
2176 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2177 done
2178 ac_signal=0
2180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2181 rm -f -r conftest* confdefs.h
2183 $as_echo "/* confdefs.h */" > confdefs.h
2185 # Predefined preprocessor variables.
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_NAME "$PACKAGE_NAME"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_STRING "$PACKAGE_STRING"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2205 _ACEOF
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_URL "$PACKAGE_URL"
2209 _ACEOF
2212 # Let the site file select an alternate cache file if it wants to.
2213 # Prefer an explicitly selected file to automatically selected ones.
2214 ac_site_file1=NONE
2215 ac_site_file2=NONE
2216 if test -n "$CONFIG_SITE"; then
2217 ac_site_file1=$CONFIG_SITE
2218 elif test "x$prefix" != xNONE; then
2219 ac_site_file1=$prefix/share/config.site
2220 ac_site_file2=$prefix/etc/config.site
2221 else
2222 ac_site_file1=$ac_default_prefix/share/config.site
2223 ac_site_file2=$ac_default_prefix/etc/config.site
2225 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2227 test "x$ac_site_file" = xNONE && continue
2228 if test -r "$ac_site_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231 sed 's/^/| /' "$ac_site_file" >&5
2232 . "$ac_site_file"
2234 done
2236 if test -r "$cache_file"; then
2237 # Some versions of bash will fail to source /dev/null (special
2238 # files actually), so we avoid doing that.
2239 if test -f "$cache_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2241 $as_echo "$as_me: loading cache $cache_file" >&6;}
2242 case $cache_file in
2243 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2244 *) . "./$cache_file";;
2245 esac
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2249 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 >$cache_file
2253 # Check that the precious variables saved in the cache have kept the same
2254 # value.
2255 ac_cache_corrupted=false
2256 for ac_var in $ac_precious_vars; do
2257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2258 eval ac_new_set=\$ac_env_${ac_var}_set
2259 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2260 eval ac_new_val=\$ac_env_${ac_var}_value
2261 case $ac_old_set,$ac_new_set in
2262 set,)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,set)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,);;
2272 if test "x$ac_old_val" != "x$ac_new_val"; then
2273 # differences in whitespace do not lead to failure.
2274 ac_old_val_w=`echo x $ac_old_val`
2275 ac_new_val_w=`echo x $ac_new_val`
2276 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2278 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2279 ac_cache_corrupted=:
2280 else
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2282 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2283 eval $ac_var=\$ac_old_val
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2286 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2288 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2289 fi;;
2290 esac
2291 # Pass precious variables to config.status.
2292 if test "$ac_new_set" = set; then
2293 case $ac_new_val in
2294 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 *) ac_arg=$ac_var=$ac_new_val ;;
2296 esac
2297 case " $ac_configure_args " in
2298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2299 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300 esac
2302 done
2303 if $ac_cache_corrupted; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2307 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2308 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 ## -------------------- ##
2311 ## Main body of script. ##
2312 ## -------------------- ##
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 #AC_INIT(package-unused, version-unused, libvtv)
2327 # -------
2328 # Options
2329 # -------
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2331 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2332 # Check whether --enable-version-specific-runtime-libs was given.
2333 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2334 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2335 yes) version_specific_libs=yes ;;
2336 no) version_specific_libs=no ;;
2337 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2338 esac
2339 else
2340 version_specific_libs=no
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2344 $as_echo "$version_specific_libs" >&6; }
2346 # Do not delete or change the following two lines. For why, see
2347 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2348 ac_aux_dir=
2349 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350 for ac_t in install-sh install.sh shtool; do
2351 if test -f "$ac_dir/$ac_t"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/$ac_t -c"
2354 break 2
2356 done
2357 done
2358 if test -z "$ac_aux_dir"; then
2359 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2362 # These three variables are undocumented and unsupported,
2363 # and are intended to be withdrawn in a future Autoconf release.
2364 # They can cause serious problems if a builder's source tree is in a directory
2365 # whose full name contains unusual characters.
2366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2371 # Make sure we can run config.sub.
2372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2373 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2376 $as_echo_n "checking build system type... " >&6; }
2377 if test "${ac_cv_build+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 ac_build_alias=$build_alias
2381 test "x$ac_build_alias" = x &&
2382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2383 test "x$ac_build_alias" = x &&
2384 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2386 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2390 $as_echo "$ac_cv_build" >&6; }
2391 case $ac_cv_build in
2392 *-*-*) ;;
2393 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2394 esac
2395 build=$ac_cv_build
2396 ac_save_IFS=$IFS; IFS='-'
2397 set x $ac_cv_build
2398 shift
2399 build_cpu=$1
2400 build_vendor=$2
2401 shift; shift
2402 # Remember, the first character of IFS is used to create $*,
2403 # except with old shells:
2404 build_os=$*
2405 IFS=$ac_save_IFS
2406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2410 $as_echo_n "checking host system type... " >&6; }
2411 if test "${ac_cv_host+set}" = set; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 if test "x$host_alias" = x; then
2415 ac_cv_host=$ac_cv_build
2416 else
2417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2418 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2423 $as_echo "$ac_cv_host" >&6; }
2424 case $ac_cv_host in
2425 *-*-*) ;;
2426 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2427 esac
2428 host=$ac_cv_host
2429 ac_save_IFS=$IFS; IFS='-'
2430 set x $ac_cv_host
2431 shift
2432 host_cpu=$1
2433 host_vendor=$2
2434 shift; shift
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2437 host_os=$*
2438 IFS=$ac_save_IFS
2439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2443 $as_echo_n "checking target system type... " >&6; }
2444 if test "${ac_cv_target+set}" = set; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 if test "x$target_alias" = x; then
2448 ac_cv_target=$ac_cv_host
2449 else
2450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2451 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2456 $as_echo "$ac_cv_target" >&6; }
2457 case $ac_cv_target in
2458 *-*-*) ;;
2459 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2460 esac
2461 target=$ac_cv_target
2462 ac_save_IFS=$IFS; IFS='-'
2463 set x $ac_cv_target
2464 shift
2465 target_cpu=$1
2466 target_vendor=$2
2467 shift; shift
2468 # Remember, the first character of IFS is used to create $*,
2469 # except with old shells:
2470 target_os=$*
2471 IFS=$ac_save_IFS
2472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2475 # The aliases save the names the user supplied, while $host etc.
2476 # will get canonicalized.
2477 test -n "$target_alias" &&
2478 test "$program_prefix$program_suffix$program_transform_name" = \
2479 NONENONEs,x,x, &&
2480 program_prefix=${target_alias}-
2482 target_alias=${target_alias-$host_alias}
2484 case ${build_alias} in
2485 "") build_noncanonical=${build} ;;
2486 *) build_noncanonical=${build_alias} ;;
2487 esac
2489 case ${host_alias} in
2490 "") host_noncanonical=${build_noncanonical} ;;
2491 *) host_noncanonical=${host_alias} ;;
2492 esac
2494 case ${target_alias} in
2495 "") target_noncanonical=${host_noncanonical} ;;
2496 *) target_noncanonical=${target_alias} ;;
2497 esac
2503 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2504 -I\$(top_builddir)/../libstdc++-v3/include \
2505 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2506 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2507 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2508 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2513 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
2515 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
2516 # Check whether --enable-vtable-verify was given.
2517 if test "${enable_vtable_verify+set}" = set; then :
2518 enableval=$enable_vtable_verify; case "$enableval" in
2519 yes) enable_vtable_verify=yes ;;
2520 no) enable_vtable_verify=no ;;
2521 *) enable_vtable_verify=no;;
2522 esac
2523 else
2524 enable_vtable_verify=no
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
2528 $as_echo "$enable_vtable_verify" >&6; }
2530 # See if supported.
2531 unset VTV_SUPPORTED
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2533 $as_echo_n "checking for host support for vtable verification... " >&6; }
2534 . ${srcdir}/configure.tgt
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2536 $as_echo "$VTV_SUPPORTED" >&6; }
2538 # Decide if it's usable.
2539 use_vtable_verify=no
2540 if test "x$VTV_SUPPORTED" = "xyes"; then
2541 if test "x$enable_vtable_verify" = "xyes"; then
2542 use_vtable_verify=yes
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
2544 $as_echo "$as_me: using vtable verification" >&6;}
2547 if test $use_vtable_verify = yes; then
2548 ENABLE_VTABLE_VERIFY_TRUE=
2549 ENABLE_VTABLE_VERIFY_FALSE='#'
2550 else
2551 ENABLE_VTABLE_VERIFY_TRUE='#'
2552 ENABLE_VTABLE_VERIFY_FALSE=
2556 am__api_version='1.11'
2558 # Find a good install program. We prefer a C program (faster),
2559 # so one script is as good as another. But avoid the broken or
2560 # incompatible versions:
2561 # SysV /etc/install, /usr/sbin/install
2562 # SunOS /usr/etc/install
2563 # IRIX /sbin/install
2564 # AIX /bin/install
2565 # AmigaOS /C/install, which installs bootblocks on floppy discs
2566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569 # OS/2's system install, which has a completely different semantic
2570 # ./install, which can be erroneously created by make from ./install.sh.
2571 # Reject install programs that cannot install multiple files.
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2574 if test -z "$INSTALL"; then
2575 if test "${ac_cv_path_install+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 # Account for people who put trailing slashes in PATH elements.
2584 case $as_dir/ in #((
2585 ./ | .// | /[cC]/* | \
2586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2588 /usr/ucb/* ) ;;
2590 # OSF1 and SCO ODT 3.0 have their own names for install.
2591 # Don't use installbsd from OSF since it installs stuff as root
2592 # by default.
2593 for ac_prog in ginstall scoinst install; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2596 if test $ac_prog = install &&
2597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598 # AIX install. It has an incompatible calling convention.
2600 elif test $ac_prog = install &&
2601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # program-specific install script used by HP pwplus--don't use.
2604 else
2605 rm -rf conftest.one conftest.two conftest.dir
2606 echo one > conftest.one
2607 echo two > conftest.two
2608 mkdir conftest.dir
2609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2610 test -s conftest.one && test -s conftest.two &&
2611 test -s conftest.dir/conftest.one &&
2612 test -s conftest.dir/conftest.two
2613 then
2614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2615 break 3
2619 done
2620 done
2622 esac
2624 done
2625 IFS=$as_save_IFS
2627 rm -rf conftest.one conftest.two conftest.dir
2630 if test "${ac_cv_path_install+set}" = set; then
2631 INSTALL=$ac_cv_path_install
2632 else
2633 # As a last resort, use the slow shell script. Don't cache a
2634 # value for INSTALL within a source directory, because that will
2635 # break other packages using the cache if that directory is
2636 # removed, or if the value is a relative name.
2637 INSTALL=$ac_install_sh
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2641 $as_echo "$INSTALL" >&6; }
2643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2644 # It thinks the first close brace ends the variable substitution.
2645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2652 $as_echo_n "checking whether build environment is sane... " >&6; }
2653 # Just in case
2654 sleep 1
2655 echo timestamp > conftest.file
2656 # Reject unsafe characters in $srcdir or the absolute working directory
2657 # name. Accept space and tab only in the latter.
2658 am_lf='
2660 case `pwd` in
2661 *[\\\"\#\$\&\'\`$am_lf]*)
2662 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2663 esac
2664 case $srcdir in
2665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2666 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2667 esac
2669 # Do `set' in a subshell so we don't clobber the current shell's
2670 # arguments. Must try -L first in case configure is actually a
2671 # symlink; some systems play weird games with the mod time of symlinks
2672 # (eg FreeBSD returns the mod time of the symlink's containing
2673 # directory).
2674 if (
2675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2676 if test "$*" = "X"; then
2677 # -L didn't work.
2678 set X `ls -t "$srcdir/configure" conftest.file`
2680 rm -f conftest.file
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2692 test "$2" = conftest.file
2694 then
2695 # Ok.
2697 else
2698 as_fn_error "newly created file is older than distributed files!
2699 Check your system clock" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702 $as_echo "yes" >&6; }
2703 test "$program_prefix" != NONE &&
2704 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2705 # Use a double $ so make ignores it.
2706 test "$program_suffix" != NONE &&
2707 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2708 # Double any \ or $.
2709 # By default was `s,x,x', remove it if useless.
2710 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2711 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2713 # expand $ac_aux_dir to an absolute path
2714 am_aux_dir=`cd $ac_aux_dir && pwd`
2716 if test x"${MISSING+set}" != xset; then
2717 case $am_aux_dir in
2718 *\ * | *\ *)
2719 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2721 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2722 esac
2724 # Use eval to expand $SHELL
2725 if eval "$MISSING --run true"; then
2726 am_missing_run="$MISSING --run "
2727 else
2728 am_missing_run=
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2730 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2733 if test x"${install_sh}" != xset; then
2734 case $am_aux_dir in
2735 *\ * | *\ *)
2736 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2738 install_sh="\${SHELL} $am_aux_dir/install-sh"
2739 esac
2742 # Installed binaries are usually stripped using `strip' when the user
2743 # run `make install-strip'. However `strip' might not be the right
2744 # tool to use in cross-compilation environments, therefore Automake
2745 # will honor the `STRIP' environment variable to overrule this program.
2746 if test "$cross_compiling" != no; then
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}strip; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_STRIP+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$STRIP"; then
2756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2771 IFS=$as_save_IFS
2775 STRIP=$ac_cv_prog_STRIP
2776 if test -n "$STRIP"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2778 $as_echo "$STRIP" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2786 if test -z "$ac_cv_prog_STRIP"; then
2787 ac_ct_STRIP=$STRIP
2788 # Extract the first word of "strip", so it can be a program name with args.
2789 set dummy strip; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$ac_ct_STRIP"; then
2796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_ac_ct_STRIP="strip"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2816 if test -n "$ac_ct_STRIP"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2818 $as_echo "$ac_ct_STRIP" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2824 if test "x$ac_ct_STRIP" = x; then
2825 STRIP=":"
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828 yes:)
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2832 esac
2833 STRIP=$ac_ct_STRIP
2835 else
2836 STRIP="$ac_cv_prog_STRIP"
2840 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2843 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2844 if test -z "$MKDIR_P"; then
2845 if test "${ac_cv_path_mkdir+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_prog in mkdir gmkdir; do
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2857 'mkdir (GNU coreutils) '* | \
2858 'mkdir (coreutils) '* | \
2859 'mkdir (fileutils) '4.1*)
2860 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2861 break 3;;
2862 esac
2863 done
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 if test "${ac_cv_path_mkdir+set}" = set; then
2871 MKDIR_P="$ac_cv_path_mkdir -p"
2872 else
2873 # As a last resort, use the slow shell script. Don't cache a
2874 # value for MKDIR_P within a source directory, because that will
2875 # break other packages using the cache if that directory is
2876 # removed, or if the value is a relative name.
2877 test -d ./--version && rmdir ./--version
2878 MKDIR_P="$ac_install_sh -d"
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2882 $as_echo "$MKDIR_P" >&6; }
2884 mkdir_p="$MKDIR_P"
2885 case $mkdir_p in
2886 [\\/$]* | ?:[\\/]*) ;;
2887 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2888 esac
2890 for ac_prog in gawk mawk nawk awk
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_AWK+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$AWK"; then
2900 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_AWK="$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 AWK=$ac_cv_prog_AWK
2920 if test -n "$AWK"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2922 $as_echo "$AWK" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$AWK" && break
2930 done
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2934 set x ${MAKE-make}
2935 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2936 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 cat >conftest.make <<\_ACEOF
2940 SHELL = /bin/sh
2941 all:
2942 @echo '@@@%%%=$(MAKE)=@@@%%%'
2943 _ACEOF
2944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2946 *@@@%%%=?*=@@@%%%*)
2947 eval ac_cv_prog_make_${ac_make}_set=yes;;
2949 eval ac_cv_prog_make_${ac_make}_set=no;;
2950 esac
2951 rm -f conftest.make
2953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 SET_MAKE=
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 SET_MAKE="MAKE=${MAKE-make}"
2963 rm -rf .tst 2>/dev/null
2964 mkdir .tst 2>/dev/null
2965 if test -d .tst; then
2966 am__leading_dot=.
2967 else
2968 am__leading_dot=_
2970 rmdir .tst 2>/dev/null
2972 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2973 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2974 # is not polluted with repeated "-I."
2975 am__isrc=' -I$(srcdir)'
2976 # test to see if srcdir already configured
2977 if test -f $srcdir/config.status; then
2978 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2982 # test whether we have cygpath
2983 if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2986 else
2987 CYGPATH_W=echo
2992 # Define the identity of the package.
2993 PACKAGE='libvtv'
2994 VERSION='1.0'
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE "$PACKAGE"
2999 _ACEOF
3002 cat >>confdefs.h <<_ACEOF
3003 #define VERSION "$VERSION"
3004 _ACEOF
3006 # Some tools Automake needs.
3008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3022 # We need awk for the "check" target. The system "awk" is bad on
3023 # some platforms.
3024 # Always define AMTAR for backward compatibility.
3026 AMTAR=${AMTAR-"${am_missing_run}tar"}
3028 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3034 # Default to --enable-multilib
3035 # Check whether --enable-multilib was given.
3036 if test "${enable_multilib+set}" = set; then :
3037 enableval=$enable_multilib; case "$enableval" in
3038 yes) multilib=yes ;;
3039 no) multilib=no ;;
3040 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3041 esac
3042 else
3043 multilib=yes
3047 # We may get other options which we leave undocumented:
3048 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3049 # See config-ml.in if you want the gory details.
3051 if test "$srcdir" = "."; then
3052 if test "$with_target_subdir" != "."; then
3053 multi_basedir="$srcdir/$with_multisrctop../.."
3054 else
3055 multi_basedir="$srcdir/$with_multisrctop.."
3057 else
3058 multi_basedir="$srcdir/.."
3062 # Even if the default multilib is not a cross compilation,
3063 # it may be that some of the other multilibs are.
3064 if test $cross_compiling = no && test $multilib = yes \
3065 && test "x${with_multisubdir}" != x ; then
3066 cross_compiling=maybe
3069 ac_config_commands="$ac_config_commands default-1"
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3073 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3074 # Check whether --enable-maintainer-mode was given.
3075 if test "${enable_maintainer_mode+set}" = set; then :
3076 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3077 else
3078 USE_MAINTAINER_MODE=no
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3082 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3083 if test $USE_MAINTAINER_MODE = yes; then
3084 MAINTAINER_MODE_TRUE=
3085 MAINTAINER_MODE_FALSE='#'
3086 else
3087 MAINTAINER_MODE_TRUE='#'
3088 MAINTAINER_MODE_FALSE=
3091 MAINT=$MAINTAINER_MODE_TRUE
3097 # These need to be absolute paths, yet at the same time need to
3098 # canonicalize only relative paths, because then amd will not unmount
3099 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3100 libvtv_builddir=`${PWDCMD-pwd}`
3101 case $srcdir in
3102 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3103 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3104 esac
3105 toplevel_builddir=${libvtv_builddir}/..
3106 toplevel_srcdir=${libvtv_srcdir}/..
3113 # Calculate toolexeclibdir
3114 # Also toolexecdir, though it's only used in toolexeclibdir
3115 case ${version_specific_libs} in
3116 yes)
3117 # Need the gcc compiler version to know where to install libraries
3118 # and header files if --enable-version-specific-runtime-libs option
3119 # is selected.
3120 toolexecdir='$(libdir)/gcc/$(target_alias)'
3121 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3124 if test -n "$with_cross_host" &&
3125 test x"$with_cross_host" != x"no"; then
3126 # Install a library built with a cross compiler in tooldir, not libdir.
3127 toolexecdir='$(exec_prefix)/$(target_alias)'
3128 toolexeclibdir='$(toolexecdir)/lib'
3129 else
3130 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3131 toolexeclibdir='$(libdir)'
3133 multi_os_directory=`$CC -print-multi-os-directory`
3134 case $multi_os_directory in
3135 .) ;; # Avoid trailing /.
3136 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3137 esac
3139 esac
3143 DEPDIR="${am__leading_dot}deps"
3145 ac_config_commands="$ac_config_commands depfiles"
3148 am_make=${MAKE-make}
3149 cat > confinc << 'END'
3150 am__doit:
3151 @echo this is the am__doit target
3152 .PHONY: am__doit
3154 # If we don't find an include directive, just comment out the code.
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3156 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3157 am__include="#"
3158 am__quote=
3159 _am_result=none
3160 # First try GNU make style include.
3161 echo "include confinc" > confmf
3162 # Ignore all kinds of additional output from `make'.
3163 case `$am_make -s -f confmf 2> /dev/null` in #(
3164 *the\ am__doit\ target*)
3165 am__include=include
3166 am__quote=
3167 _am_result=GNU
3169 esac
3170 # Now try BSD make style include.
3171 if test "$am__include" = "#"; then
3172 echo '.include "confinc"' > confmf
3173 case `$am_make -s -f confmf 2> /dev/null` in #(
3174 *the\ am__doit\ target*)
3175 am__include=.include
3176 am__quote="\""
3177 _am_result=BSD
3179 esac
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3184 $as_echo "$_am_result" >&6; }
3185 rm -f confinc confmf
3187 # Check whether --enable-dependency-tracking was given.
3188 if test "${enable_dependency_tracking+set}" = set; then :
3189 enableval=$enable_dependency_tracking;
3192 if test "x$enable_dependency_tracking" != xno; then
3193 am_depcomp="$ac_aux_dir/depcomp"
3194 AMDEPBACKSLASH='\'
3196 if test "x$enable_dependency_tracking" != xno; then
3197 AMDEP_TRUE=
3198 AMDEP_FALSE='#'
3199 else
3200 AMDEP_TRUE='#'
3201 AMDEP_FALSE=
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3232 done
3233 done
3234 IFS=$as_save_IFS
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3249 if test -z "$ac_cv_prog_CC"; then
3250 ac_ct_CC=$CC
3251 # Extract the first word of "gcc", so it can be a program name with args.
3252 set dummy gcc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$ac_ct_CC"; then
3259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_ac_ct_CC="gcc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3274 IFS=$as_save_IFS
3278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279 if test -n "$ac_ct_CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3281 $as_echo "$ac_ct_CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291 yes:)
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294 ac_tool_warned=yes ;;
3295 esac
3296 CC=$ac_ct_CC
3298 else
3299 CC="$ac_cv_prog_CC"
3302 if test -z "$CC"; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}cc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC="${ac_tool_prefix}cc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3325 done
3326 done
3327 IFS=$as_save_IFS
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3343 if test -z "$CC"; then
3344 # Extract the first word of "cc", so it can be a program name with args.
3345 set dummy cc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 ac_prog_rejected=no
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3363 ac_prog_rejected=yes
3364 continue
3366 ac_cv_prog_CC="cc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3370 done
3371 done
3372 IFS=$as_save_IFS
3374 if test $ac_prog_rejected = yes; then
3375 # We found a bogon in the path, so make sure we never use it.
3376 set dummy $ac_cv_prog_CC
3377 shift
3378 if test $# != 0; then
3379 # We chose a different compiler from the bogus one.
3380 # However, it has the same basename, so the bogon will be chosen
3381 # first if we set CC to just the basename; use the full file name.
3382 shift
3383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3388 CC=$ac_cv_prog_CC
3389 if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391 $as_echo "$CC" >&6; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3399 if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3401 for ac_prog in cl.exe
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 CC=$ac_cv_prog_CC
3431 if test -n "$CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433 $as_echo "$CC" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -n "$CC" && break
3441 done
3443 if test -z "$CC"; then
3444 ac_ct_CC=$CC
3445 for ac_prog in cl.exe
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464 ac_cv_prog_ac_ct_CC="$ac_prog"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3468 done
3469 done
3470 IFS=$as_save_IFS
3474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477 $as_echo "$ac_ct_CC" >&6; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3484 test -n "$ac_ct_CC" && break
3485 done
3487 if test "x$ac_ct_CC" = x; then
3488 CC=""
3489 else
3490 case $cross_compiling:$ac_tool_warned in
3491 yes:)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494 ac_tool_warned=yes ;;
3495 esac
3496 CC=$ac_ct_CC
3503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error "no acceptable C compiler found in \$PATH
3506 See \`config.log' for more details." "$LINENO" 5; }
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3510 set X $ac_compile
3511 ac_compiler=$2
3512 for ac_option in --version -v -V -qversion; do
3513 { { ac_try="$ac_compiler $ac_option >&5"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521 ac_status=$?
3522 if test -s conftest.err; then
3523 sed '10a\
3524 ... rest of stderr output deleted ...
3525 10q' conftest.err >conftest.er1
3526 cat conftest.er1 >&5
3527 rm -f conftest.er1 conftest.err
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }
3531 done
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 main ()
3541 return 0;
3543 _ACEOF
3544 ac_clean_files_save=$ac_clean_files
3545 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3546 # Try to create an executable without -o first, disregard a.out.
3547 # It will help us diagnose broken compilers, and finding out an intuition
3548 # of exeext.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3550 $as_echo_n "checking for C compiler default output file name... " >&6; }
3551 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3553 # The possible output files:
3554 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3556 ac_rmfiles=
3557 for ac_file in $ac_files
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3562 esac
3563 done
3564 rm -f $ac_rmfiles
3566 if { { ac_try="$ac_link_default"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_link_default") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; then :
3577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3580 # so that the user can short-circuit this test for compilers unknown to
3581 # Autoconf.
3582 for ac_file in $ac_files ''
3584 test -f "$ac_file" || continue
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3588 [ab].out )
3589 # We found the default executable, but exeext='' is most
3590 # certainly right.
3591 break;;
3592 *.* )
3593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3594 then :; else
3595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 # We set ac_cv_exeext here because the later test for it is not
3598 # safe: cross compilers may not add the suffix if given an `-o'
3599 # argument, so we may need to know it at that point already.
3600 # Even if this section looks crufty: it has the advantage of
3601 # actually working.
3602 break;;
3604 break;;
3605 esac
3606 done
3607 test "$ac_cv_exeext" = no && ac_cv_exeext=
3609 else
3610 ac_file=''
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3613 $as_echo "$ac_file" >&6; }
3614 if test -z "$ac_file"; then :
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 { as_fn_set_status 77
3621 as_fn_error "C compiler cannot create executables
3622 See \`config.log' for more details." "$LINENO" 5; }; }
3624 ac_exeext=$ac_cv_exeext
3626 # Check that the compiler produces executables we can run. If not, either
3627 # the compiler is broken, or we cross compile.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629 $as_echo_n "checking whether the C compiler works... " >&6; }
3630 # If not cross compiling, check that we can run a simple program.
3631 if test "$cross_compiling" != yes; then
3632 if { ac_try='./$ac_file'
3633 { { case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_try") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; }; then
3643 cross_compiling=no
3644 else
3645 if test "$cross_compiling" = maybe; then
3646 cross_compiling=yes
3647 else
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error "cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details." "$LINENO" 5; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657 $as_echo "yes" >&6; }
3659 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3660 ac_clean_files=$ac_clean_files_save
3661 # Check that the compiler produces executables we can run. If not, either
3662 # the compiler is broken, or we cross compile.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3664 $as_echo_n "checking whether we are cross compiling... " >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669 $as_echo_n "checking for suffix of executables... " >&6; }
3670 if { { ac_try="$ac_link"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe'), while it won't with
3684 # `rm'.
3685 for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 break;;
3691 * ) break;;
3692 esac
3693 done
3694 else
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error "cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." "$LINENO" 5; }
3700 rm -f conftest$ac_cv_exeext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702 $as_echo "$ac_cv_exeext" >&6; }
3704 rm -f conftest.$ac_ext
3705 EXEEXT=$ac_cv_exeext
3706 ac_exeext=$EXEEXT
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3708 $as_echo_n "checking for suffix of object files... " >&6; }
3709 if test "${ac_cv_objext+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 main ()
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.o conftest.obj
3724 if { { ac_try="$ac_compile"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_compile") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3740 break;;
3741 esac
3742 done
3743 else
3744 $as_echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error "cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details." "$LINENO" 5; }
3752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3755 $as_echo "$ac_cv_objext" >&6; }
3756 OBJEXT=$ac_cv_objext
3757 ac_objext=$OBJEXT
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3759 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3760 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3769 #ifndef __GNUC__
3770 choke me
3771 #endif
3774 return 0;
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_compiler_gnu=yes
3779 else
3780 ac_compiler_gnu=no
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3787 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3788 if test $ac_compiler_gnu = yes; then
3789 GCC=yes
3790 else
3791 GCC=
3793 ac_test_CFLAGS=${CFLAGS+set}
3794 ac_save_CFLAGS=$CFLAGS
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3796 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3797 if test "${ac_cv_prog_cc_g+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 ac_save_c_werror_flag=$ac_c_werror_flag
3801 ac_c_werror_flag=yes
3802 ac_cv_prog_cc_g=no
3803 CFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3812 return 0;
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_g=yes
3817 else
3818 CFLAGS=""
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3827 return 0;
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3832 else
3833 ac_c_werror_flag=$ac_save_c_werror_flag
3834 CFLAGS="-g"
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3843 return 0;
3845 _ACEOF
3846 if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_prog_cc_g=yes
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_c_werror_flag=$ac_save_c_werror_flag
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3857 $as_echo "$ac_cv_prog_cc_g" >&6; }
3858 if test "$ac_test_CFLAGS" = set; then
3859 CFLAGS=$ac_save_CFLAGS
3860 elif test $ac_cv_prog_cc_g = yes; then
3861 if test "$GCC" = yes; then
3862 CFLAGS="-g -O2"
3863 else
3864 CFLAGS="-g"
3866 else
3867 if test "$GCC" = yes; then
3868 CFLAGS="-O2"
3869 else
3870 CFLAGS=
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3874 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3875 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 ac_cv_prog_cc_c89=no
3879 ac_save_CC=$CC
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #include <stdarg.h>
3883 #include <stdio.h>
3884 #include <sys/types.h>
3885 #include <sys/stat.h>
3886 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887 struct buf { int x; };
3888 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889 static char *e (p, i)
3890 char **p;
3891 int i;
3893 return p[i];
3895 static char *f (char * (*g) (char **, int), char **p, ...)
3897 char *s;
3898 va_list v;
3899 va_start (v,p);
3900 s = g (p, va_arg (v,int));
3901 va_end (v);
3902 return s;
3905 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std. */
3912 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3914 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3915 inside strings and character constants. */
3916 #define FOO(x) 'x'
3917 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3919 int test (int i, double x);
3920 struct s1 {int (*f) (int a);};
3921 struct s2 {int (*f) (double a);};
3922 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3923 int argc;
3924 char **argv;
3926 main ()
3928 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3930 return 0;
3932 _ACEOF
3933 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3936 CC="$ac_save_CC $ac_arg"
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_c89=$ac_arg
3940 rm -f core conftest.err conftest.$ac_objext
3941 test "x$ac_cv_prog_cc_c89" != "xno" && break
3942 done
3943 rm -f conftest.$ac_ext
3944 CC=$ac_save_CC
3947 # AC_CACHE_VAL
3948 case "x$ac_cv_prog_cc_c89" in
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3951 $as_echo "none needed" >&6; } ;;
3952 xno)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3954 $as_echo "unsupported" >&6; } ;;
3956 CC="$CC $ac_cv_prog_cc_c89"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3958 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3959 esac
3960 if test "x$ac_cv_prog_cc_c89" != xno; then :
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 depcc="$CC" am_compiler_list=
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3973 $as_echo_n "checking dependency style of $depcc... " >&6; }
3974 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3978 # We make a subdir and do the tests there. Otherwise we can end up
3979 # making bogus files that we don't know about and never remove. For
3980 # instance it was reported that on HP-UX the gcc test will end up
3981 # making a dummy file named `D' -- because `-MD' means `put the output
3982 # in D'.
3983 mkdir conftest.dir
3984 # Copy depcomp to subdir because otherwise we won't find it if we're
3985 # using a relative directory.
3986 cp "$am_depcomp" conftest.dir
3987 cd conftest.dir
3988 # We will build objects and dependencies in a subdirectory because
3989 # it helps to detect inapplicable dependency modes. For instance
3990 # both Tru64's cc and ICC support -MD to output dependencies as a
3991 # side effect of compilation, but ICC will put the dependencies in
3992 # the current directory while Tru64 will put them in the object
3993 # directory.
3994 mkdir sub
3996 am_cv_CC_dependencies_compiler_type=none
3997 if test "$am_compiler_list" = ""; then
3998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4000 am__universal=false
4001 case " $depcc " in #(
4002 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4003 esac
4005 for depmode in $am_compiler_list; do
4006 # Setup a source with many dependencies, because some compilers
4007 # like to wrap large dependency lists on column 80 (with \), and
4008 # we should not choose a depcomp mode which is confused by this.
4010 # We need to recreate these files for each test, as the compiler may
4011 # overwrite some of them when testing with obscure command lines.
4012 # This happens at least with the AIX C compiler.
4013 : > sub/conftest.c
4014 for i in 1 2 3 4 5 6; do
4015 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4016 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4017 # Solaris 8's {/usr,}/bin/sh.
4018 touch sub/conftst$i.h
4019 done
4020 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4023 # mode. It turns out that the SunPro C++ compiler does not properly
4024 # handle `-M -o', and we need to detect this. Also, some Intel
4025 # versions had trouble with output in subdirs
4026 am__obj=sub/conftest.${OBJEXT-o}
4027 am__minus_obj="-o $am__obj"
4028 case $depmode in
4029 gcc)
4030 # This depmode causes a compiler race in universal mode.
4031 test "$am__universal" = false || continue
4033 nosideeffect)
4034 # after this tag, mechanisms are not by side-effect, so they'll
4035 # only be used when explicitly requested
4036 if test "x$enable_dependency_tracking" = xyes; then
4037 continue
4038 else
4039 break
4042 msvisualcpp | msvcmsys)
4043 # This compiler won't grok `-c -o', but also, the minuso test has
4044 # not run yet. These depmodes are late enough in the game, and
4045 # so weak that their functioning should not be impacted.
4046 am__obj=conftest.${OBJEXT-o}
4047 am__minus_obj=
4049 none) break ;;
4050 esac
4051 if depmode=$depmode \
4052 source=sub/conftest.c object=$am__obj \
4053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4054 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4055 >/dev/null 2>conftest.err &&
4056 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4059 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4060 # icc doesn't choke on unknown options, it will just issue warnings
4061 # or remarks (even with -Werror). So we grep stderr for any message
4062 # that says an option was ignored or not supported.
4063 # When given -MP, icc 7.0 and 7.1 complain thusly:
4064 # icc: Command line warning: ignoring option '-M'; no argument required
4065 # The diagnosis changed in icc 8.0:
4066 # icc: Command line remark: option '-MP' not supported
4067 if (grep 'ignoring option' conftest.err ||
4068 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4069 am_cv_CC_dependencies_compiler_type=$depmode
4070 break
4073 done
4075 cd ..
4076 rm -rf conftest.dir
4077 else
4078 am_cv_CC_dependencies_compiler_type=none
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4083 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4084 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4087 test "x$enable_dependency_tracking" != xno \
4088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4089 am__fastdepCC_TRUE=
4090 am__fastdepCC_FALSE='#'
4091 else
4092 am__fastdepCC_TRUE='#'
4093 am__fastdepCC_FALSE=
4098 ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4104 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4105 # On Suns, sometimes $CPP names a directory.
4106 if test -n "$CPP" && test -d "$CPP"; then
4107 CPP=
4109 if test -z "$CPP"; then
4110 if test "${ac_cv_prog_CPP+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 # Double quotes because CPP needs to be expanded
4114 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4116 ac_preproc_ok=false
4117 for ac_c_preproc_warn_flag in '' yes
4119 # Use a header file that comes with gcc, so configuring glibc
4120 # with a fresh cross-compiler works.
4121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122 # <limits.h> exists even on freestanding compilers.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #ifdef __STDC__
4128 # include <limits.h>
4129 #else
4130 # include <assert.h>
4131 #endif
4132 Syntax error
4133 _ACEOF
4134 if ac_fn_c_try_cpp "$LINENO"; then :
4136 else
4137 # Broken: fails on valid input.
4138 continue
4140 rm -f conftest.err conftest.$ac_ext
4142 # OK, works on sane cases. Now check whether nonexistent headers
4143 # can be detected and how.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #include <ac_nonexistent.h>
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149 # Broken: success on invalid input.
4150 continue
4151 else
4152 # Passes both tests.
4153 ac_preproc_ok=:
4154 break
4156 rm -f conftest.err conftest.$ac_ext
4158 done
4159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160 rm -f conftest.err conftest.$ac_ext
4161 if $ac_preproc_ok; then :
4162 break
4165 done
4166 ac_cv_prog_CPP=$CPP
4169 CPP=$ac_cv_prog_CPP
4170 else
4171 ac_cv_prog_CPP=$CPP
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4174 $as_echo "$CPP" >&6; }
4175 ac_preproc_ok=false
4176 for ac_c_preproc_warn_flag in '' yes
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4195 else
4196 # Broken: fails on valid input.
4197 continue
4199 rm -f conftest.err conftest.$ac_ext
4201 # OK, works on sane cases. Now check whether nonexistent headers
4202 # can be detected and how.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <ac_nonexistent.h>
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208 # Broken: success on invalid input.
4209 continue
4210 else
4211 # Passes both tests.
4212 ac_preproc_ok=:
4213 break
4215 rm -f conftest.err conftest.$ac_ext
4217 done
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then :
4222 else
4223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details." "$LINENO" 5; }
4229 ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4237 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4238 if test "${ac_cv_path_GREP+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -z "$GREP"; then
4242 ac_path_GREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in grep ggrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4253 # Check for GNU ac_path_GREP and select it if it is found.
4254 # Check for GNU $ac_path_GREP
4255 case `"$ac_path_GREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo 'GREP' >> "conftest.nl"
4267 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_GREP="$ac_path_GREP"
4273 ac_path_GREP_max=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4281 $ac_path_GREP_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_GREP"; then
4287 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289 else
4290 ac_cv_path_GREP=$GREP
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4295 $as_echo "$ac_cv_path_GREP" >&6; }
4296 GREP="$ac_cv_path_GREP"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4300 $as_echo_n "checking for egrep... " >&6; }
4301 if test "${ac_cv_path_EGREP+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4305 then ac_cv_path_EGREP="$GREP -E"
4306 else
4307 if test -z "$EGREP"; then
4308 ac_path_EGREP_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_prog in egrep; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4318 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4319 # Check for GNU ac_path_EGREP and select it if it is found.
4320 # Check for GNU $ac_path_EGREP
4321 case `"$ac_path_EGREP" --version 2>&1` in
4322 *GNU*)
4323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325 ac_count=0
4326 $as_echo_n 0123456789 >"conftest.in"
4327 while :
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 $as_echo 'EGREP' >> "conftest.nl"
4333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335 as_fn_arith $ac_count + 1 && ac_count=$as_val
4336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_EGREP="$ac_path_EGREP"
4339 ac_path_EGREP_max=$ac_count
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4343 done
4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 esac
4347 $ac_path_EGREP_found && break 3
4348 done
4349 done
4350 done
4351 IFS=$as_save_IFS
4352 if test -z "$ac_cv_path_EGREP"; then
4353 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 else
4356 ac_cv_path_EGREP=$EGREP
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4362 $as_echo "$ac_cv_path_EGREP" >&6; }
4363 EGREP="$ac_cv_path_EGREP"
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4367 $as_echo_n "checking for ANSI C header files... " >&6; }
4368 if test "${ac_cv_header_stdc+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <stdlib.h>
4374 #include <stdarg.h>
4375 #include <string.h>
4376 #include <float.h>
4379 main ()
4383 return 0;
4385 _ACEOF
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_header_stdc=yes
4388 else
4389 ac_cv_header_stdc=no
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 if test $ac_cv_header_stdc = yes; then
4394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <string.h>
4399 _ACEOF
4400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "memchr" >/dev/null 2>&1; then :
4403 else
4404 ac_cv_header_stdc=no
4406 rm -f conftest*
4410 if test $ac_cv_header_stdc = yes; then
4411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <stdlib.h>
4416 _ACEOF
4417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "free" >/dev/null 2>&1; then :
4420 else
4421 ac_cv_header_stdc=no
4423 rm -f conftest*
4427 if test $ac_cv_header_stdc = yes; then
4428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4429 if test "$cross_compiling" = yes; then :
4431 else
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <ctype.h>
4435 #include <stdlib.h>
4436 #if ((' ' & 0x0FF) == 0x020)
4437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4439 #else
4440 # define ISLOWER(c) \
4441 (('a' <= (c) && (c) <= 'i') \
4442 || ('j' <= (c) && (c) <= 'r') \
4443 || ('s' <= (c) && (c) <= 'z'))
4444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4445 #endif
4447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4449 main ()
4451 int i;
4452 for (i = 0; i < 256; i++)
4453 if (XOR (islower (i), ISLOWER (i))
4454 || toupper (i) != TOUPPER (i))
4455 return 2;
4456 return 0;
4458 _ACEOF
4459 if ac_fn_c_try_run "$LINENO"; then :
4461 else
4462 ac_cv_header_stdc=no
4464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4465 conftest.$ac_objext conftest.beam conftest.$ac_ext
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4471 $as_echo "$ac_cv_header_stdc" >&6; }
4472 if test $ac_cv_header_stdc = yes; then
4474 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4478 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4480 inttypes.h stdint.h unistd.h
4481 do :
4482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4483 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4485 eval as_val=\$$as_ac_Header
4486 if test "x$as_val" = x""yes; then :
4487 cat >>confdefs.h <<_ACEOF
4488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489 _ACEOF
4493 done
4497 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4498 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4499 MINIX=yes
4500 else
4501 MINIX=
4505 if test "$MINIX" = yes; then
4507 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4510 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4513 $as_echo "#define _MINIX 1" >>confdefs.h
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4519 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4520 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4526 # define __EXTENSIONS__ 1
4527 $ac_includes_default
4529 main ()
4533 return 0;
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"; then :
4537 ac_cv_safe_to_define___extensions__=yes
4538 else
4539 ac_cv_safe_to_define___extensions__=no
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4544 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4545 test $ac_cv_safe_to_define___extensions__ = yes &&
4546 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4548 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4550 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4552 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4554 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4558 for ac_func in __secure_getenv
4559 do :
4560 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4561 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4562 cat >>confdefs.h <<_ACEOF
4563 #define HAVE___SECURE_GETENV 1
4564 _ACEOF
4567 done
4571 for ac_func in secure_getenv
4572 do :
4573 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4574 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4575 cat >>confdefs.h <<_ACEOF
4576 #define HAVE_SECURE_GETENV 1
4577 _ACEOF
4580 done
4583 # Check for programs.
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_prog_CC+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 CC=$ac_cv_prog_CC
4620 if test -n "$CC"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622 $as_echo "$CC" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_CC"; then
4631 ac_ct_CC=$CC
4632 # Extract the first word of "gcc", so it can be a program name with args.
4633 set dummy gcc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$ac_ct_CC"; then
4640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_ac_ct_CC="gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4660 if test -n "$ac_ct_CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4662 $as_echo "$ac_ct_CC" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_CC" = x; then
4669 CC=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 CC=$ac_ct_CC
4679 else
4680 CC="$ac_cv_prog_CC"
4683 if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}cc; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_CC+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_CC="${ac_tool_prefix}cc"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4706 done
4707 done
4708 IFS=$as_save_IFS
4712 CC=$ac_cv_prog_CC
4713 if test -n "$CC"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4715 $as_echo "$CC" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4724 if test -z "$CC"; then
4725 # Extract the first word of "cc", so it can be a program name with args.
4726 set dummy cc; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 ac_prog_rejected=no
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744 ac_prog_rejected=yes
4745 continue
4747 ac_cv_prog_CC="cc"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4751 done
4752 done
4753 IFS=$as_save_IFS
4755 if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_CC
4758 shift
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set CC to just the basename; use the full file name.
4763 shift
4764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4769 CC=$ac_cv_prog_CC
4770 if test -n "$CC"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4772 $as_echo "$CC" >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4780 if test -z "$CC"; then
4781 if test -n "$ac_tool_prefix"; then
4782 for ac_prog in cl.exe
4784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_CC+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$CC"; then
4792 ac_cv_prog_CC="$CC" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 CC=$ac_cv_prog_CC
4812 if test -n "$CC"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4814 $as_echo "$CC" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4821 test -n "$CC" && break
4822 done
4824 if test -z "$CC"; then
4825 ac_ct_CC=$CC
4826 for ac_prog in cl.exe
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$ac_ct_CC"; then
4836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_ac_ct_CC="$ac_prog"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4856 if test -n "$ac_ct_CC"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4858 $as_echo "$ac_ct_CC" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4865 test -n "$ac_ct_CC" && break
4866 done
4868 if test "x$ac_ct_CC" = x; then
4869 CC=""
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877 CC=$ac_ct_CC
4884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4886 as_fn_error "no acceptable C compiler found in \$PATH
4887 See \`config.log' for more details." "$LINENO" 5; }
4889 # Provide some information about the compiler.
4890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4891 set X $ac_compile
4892 ac_compiler=$2
4893 for ac_option in --version -v -V -qversion; do
4894 { { ac_try="$ac_compiler $ac_option >&5"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900 $as_echo "$ac_try_echo"; } >&5
4901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4902 ac_status=$?
4903 if test -s conftest.err; then
4904 sed '10a\
4905 ... rest of stderr output deleted ...
4906 10q' conftest.err >conftest.er1
4907 cat conftest.er1 >&5
4908 rm -f conftest.er1 conftest.err
4910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4911 test $ac_status = 0; }
4912 done
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4915 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4916 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4923 main ()
4925 #ifndef __GNUC__
4926 choke me
4927 #endif
4930 return 0;
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_compiler_gnu=yes
4935 else
4936 ac_compiler_gnu=no
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4943 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4944 if test $ac_compiler_gnu = yes; then
4945 GCC=yes
4946 else
4947 GCC=
4949 ac_test_CFLAGS=${CFLAGS+set}
4950 ac_save_CFLAGS=$CFLAGS
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4952 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4953 if test "${ac_cv_prog_cc_g+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 ac_save_c_werror_flag=$ac_c_werror_flag
4957 ac_c_werror_flag=yes
4958 ac_cv_prog_cc_g=no
4959 CFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4964 main ()
4968 return 0;
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_cv_prog_cc_g=yes
4973 else
4974 CFLAGS=""
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4979 main ()
4983 return 0;
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4988 else
4989 ac_c_werror_flag=$ac_save_c_werror_flag
4990 CFLAGS="-g"
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4995 main ()
4999 return 0;
5001 _ACEOF
5002 if ac_fn_c_try_compile "$LINENO"; then :
5003 ac_cv_prog_cc_g=yes
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 ac_c_werror_flag=$ac_save_c_werror_flag
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5013 $as_echo "$ac_cv_prog_cc_g" >&6; }
5014 if test "$ac_test_CFLAGS" = set; then
5015 CFLAGS=$ac_save_CFLAGS
5016 elif test $ac_cv_prog_cc_g = yes; then
5017 if test "$GCC" = yes; then
5018 CFLAGS="-g -O2"
5019 else
5020 CFLAGS="-g"
5022 else
5023 if test "$GCC" = yes; then
5024 CFLAGS="-O2"
5025 else
5026 CFLAGS=
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5030 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5031 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 ac_cv_prog_cc_c89=no
5035 ac_save_CC=$CC
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 #include <stdarg.h>
5039 #include <stdio.h>
5040 #include <sys/types.h>
5041 #include <sys/stat.h>
5042 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5043 struct buf { int x; };
5044 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5045 static char *e (p, i)
5046 char **p;
5047 int i;
5049 return p[i];
5051 static char *f (char * (*g) (char **, int), char **p, ...)
5053 char *s;
5054 va_list v;
5055 va_start (v,p);
5056 s = g (p, va_arg (v,int));
5057 va_end (v);
5058 return s;
5061 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5062 function prototypes and stuff, but not '\xHH' hex character constants.
5063 These don't provoke an error unfortunately, instead are silently treated
5064 as 'x'. The following induces an error, until -std is added to get
5065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5066 array size at least. It's necessary to write '\x00'==0 to get something
5067 that's true only with -std. */
5068 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5070 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5071 inside strings and character constants. */
5072 #define FOO(x) 'x'
5073 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5075 int test (int i, double x);
5076 struct s1 {int (*f) (int a);};
5077 struct s2 {int (*f) (double a);};
5078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5079 int argc;
5080 char **argv;
5082 main ()
5084 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5086 return 0;
5088 _ACEOF
5089 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5092 CC="$ac_save_CC $ac_arg"
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 ac_cv_prog_cc_c89=$ac_arg
5096 rm -f core conftest.err conftest.$ac_objext
5097 test "x$ac_cv_prog_cc_c89" != "xno" && break
5098 done
5099 rm -f conftest.$ac_ext
5100 CC=$ac_save_CC
5103 # AC_CACHE_VAL
5104 case "x$ac_cv_prog_cc_c89" in
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5107 $as_echo "none needed" >&6; } ;;
5108 xno)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5110 $as_echo "unsupported" >&6; } ;;
5112 CC="$CC $ac_cv_prog_cc_c89"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5114 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5115 esac
5116 if test "x$ac_cv_prog_cc_c89" != xno; then :
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126 depcc="$CC" am_compiler_list=
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5129 $as_echo_n "checking dependency style of $depcc... " >&6; }
5130 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5134 # We make a subdir and do the tests there. Otherwise we can end up
5135 # making bogus files that we don't know about and never remove. For
5136 # instance it was reported that on HP-UX the gcc test will end up
5137 # making a dummy file named `D' -- because `-MD' means `put the output
5138 # in D'.
5139 mkdir conftest.dir
5140 # Copy depcomp to subdir because otherwise we won't find it if we're
5141 # using a relative directory.
5142 cp "$am_depcomp" conftest.dir
5143 cd conftest.dir
5144 # We will build objects and dependencies in a subdirectory because
5145 # it helps to detect inapplicable dependency modes. For instance
5146 # both Tru64's cc and ICC support -MD to output dependencies as a
5147 # side effect of compilation, but ICC will put the dependencies in
5148 # the current directory while Tru64 will put them in the object
5149 # directory.
5150 mkdir sub
5152 am_cv_CC_dependencies_compiler_type=none
5153 if test "$am_compiler_list" = ""; then
5154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5156 am__universal=false
5157 case " $depcc " in #(
5158 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5159 esac
5161 for depmode in $am_compiler_list; do
5162 # Setup a source with many dependencies, because some compilers
5163 # like to wrap large dependency lists on column 80 (with \), and
5164 # we should not choose a depcomp mode which is confused by this.
5166 # We need to recreate these files for each test, as the compiler may
5167 # overwrite some of them when testing with obscure command lines.
5168 # This happens at least with the AIX C compiler.
5169 : > sub/conftest.c
5170 for i in 1 2 3 4 5 6; do
5171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5172 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5173 # Solaris 8's {/usr,}/bin/sh.
5174 touch sub/conftst$i.h
5175 done
5176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5178 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5179 # mode. It turns out that the SunPro C++ compiler does not properly
5180 # handle `-M -o', and we need to detect this. Also, some Intel
5181 # versions had trouble with output in subdirs
5182 am__obj=sub/conftest.${OBJEXT-o}
5183 am__minus_obj="-o $am__obj"
5184 case $depmode in
5185 gcc)
5186 # This depmode causes a compiler race in universal mode.
5187 test "$am__universal" = false || continue
5189 nosideeffect)
5190 # after this tag, mechanisms are not by side-effect, so they'll
5191 # only be used when explicitly requested
5192 if test "x$enable_dependency_tracking" = xyes; then
5193 continue
5194 else
5195 break
5198 msvisualcpp | msvcmsys)
5199 # This compiler won't grok `-c -o', but also, the minuso test has
5200 # not run yet. These depmodes are late enough in the game, and
5201 # so weak that their functioning should not be impacted.
5202 am__obj=conftest.${OBJEXT-o}
5203 am__minus_obj=
5205 none) break ;;
5206 esac
5207 if depmode=$depmode \
5208 source=sub/conftest.c object=$am__obj \
5209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5211 >/dev/null 2>conftest.err &&
5212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5216 # icc doesn't choke on unknown options, it will just issue warnings
5217 # or remarks (even with -Werror). So we grep stderr for any message
5218 # that says an option was ignored or not supported.
5219 # When given -MP, icc 7.0 and 7.1 complain thusly:
5220 # icc: Command line warning: ignoring option '-M'; no argument required
5221 # The diagnosis changed in icc 8.0:
5222 # icc: Command line remark: option '-MP' not supported
5223 if (grep 'ignoring option' conftest.err ||
5224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5225 am_cv_CC_dependencies_compiler_type=$depmode
5226 break
5229 done
5231 cd ..
5232 rm -rf conftest.dir
5233 else
5234 am_cv_CC_dependencies_compiler_type=none
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5239 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5240 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5243 test "x$enable_dependency_tracking" != xno \
5244 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5245 am__fastdepCC_TRUE=
5246 am__fastdepCC_FALSE='#'
5247 else
5248 am__fastdepCC_TRUE='#'
5249 am__fastdepCC_FALSE=
5253 ac_ext=cpp
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258 if test -z "$CXX"; then
5259 if test -n "$CCC"; then
5260 CXX=$CCC
5261 else
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_CXX+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$CXX"; then
5273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5292 CXX=$ac_cv_prog_CXX
5293 if test -n "$CXX"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5295 $as_echo "$CXX" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5302 test -n "$CXX" && break
5303 done
5305 if test -z "$CXX"; then
5306 ac_ct_CXX=$CXX
5307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$ac_ct_CXX"; then
5317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CXX="$ac_prog"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5332 IFS=$as_save_IFS
5336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5337 if test -n "$ac_ct_CXX"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5339 $as_echo "$ac_ct_CXX" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5346 test -n "$ac_ct_CXX" && break
5347 done
5349 if test "x$ac_ct_CXX" = x; then
5350 CXX="g++"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 CXX=$ac_ct_CXX
5364 # Provide some information about the compiler.
5365 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5366 set X $ac_compile
5367 ac_compiler=$2
5368 for ac_option in --version -v -V -qversion; do
5369 { { ac_try="$ac_compiler $ac_option >&5"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5375 $as_echo "$ac_try_echo"; } >&5
5376 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5377 ac_status=$?
5378 if test -s conftest.err; then
5379 sed '10a\
5380 ... rest of stderr output deleted ...
5381 10q' conftest.err >conftest.er1
5382 cat conftest.er1 >&5
5383 rm -f conftest.er1 conftest.err
5385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5386 test $ac_status = 0; }
5387 done
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5390 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5391 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5398 main ()
5400 #ifndef __GNUC__
5401 choke me
5402 #endif
5405 return 0;
5407 _ACEOF
5408 if ac_fn_cxx_try_compile "$LINENO"; then :
5409 ac_compiler_gnu=yes
5410 else
5411 ac_compiler_gnu=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5418 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5419 if test $ac_compiler_gnu = yes; then
5420 GXX=yes
5421 else
5422 GXX=
5424 ac_test_CXXFLAGS=${CXXFLAGS+set}
5425 ac_save_CXXFLAGS=$CXXFLAGS
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5427 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5428 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5432 ac_cxx_werror_flag=yes
5433 ac_cv_prog_cxx_g=no
5434 CXXFLAGS="-g"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5439 main ()
5443 return 0;
5445 _ACEOF
5446 if ac_fn_cxx_try_compile "$LINENO"; then :
5447 ac_cv_prog_cxx_g=yes
5448 else
5449 CXXFLAGS=""
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5454 main ()
5458 return 0;
5460 _ACEOF
5461 if ac_fn_cxx_try_compile "$LINENO"; then :
5463 else
5464 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5465 CXXFLAGS="-g"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5470 main ()
5474 return 0;
5476 _ACEOF
5477 if ac_fn_cxx_try_compile "$LINENO"; then :
5478 ac_cv_prog_cxx_g=yes
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5488 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5489 if test "$ac_test_CXXFLAGS" = set; then
5490 CXXFLAGS=$ac_save_CXXFLAGS
5491 elif test $ac_cv_prog_cxx_g = yes; then
5492 if test "$GXX" = yes; then
5493 CXXFLAGS="-g -O2"
5494 else
5495 CXXFLAGS="-g"
5497 else
5498 if test "$GXX" = yes; then
5499 CXXFLAGS="-O2"
5500 else
5501 CXXFLAGS=
5504 ac_ext=c
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510 depcc="$CXX" am_compiler_list=
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5513 $as_echo_n "checking dependency style of $depcc... " >&6; }
5514 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5518 # We make a subdir and do the tests there. Otherwise we can end up
5519 # making bogus files that we don't know about and never remove. For
5520 # instance it was reported that on HP-UX the gcc test will end up
5521 # making a dummy file named `D' -- because `-MD' means `put the output
5522 # in D'.
5523 mkdir conftest.dir
5524 # Copy depcomp to subdir because otherwise we won't find it if we're
5525 # using a relative directory.
5526 cp "$am_depcomp" conftest.dir
5527 cd conftest.dir
5528 # We will build objects and dependencies in a subdirectory because
5529 # it helps to detect inapplicable dependency modes. For instance
5530 # both Tru64's cc and ICC support -MD to output dependencies as a
5531 # side effect of compilation, but ICC will put the dependencies in
5532 # the current directory while Tru64 will put them in the object
5533 # directory.
5534 mkdir sub
5536 am_cv_CXX_dependencies_compiler_type=none
5537 if test "$am_compiler_list" = ""; then
5538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5540 am__universal=false
5541 case " $depcc " in #(
5542 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5543 esac
5545 for depmode in $am_compiler_list; do
5546 # Setup a source with many dependencies, because some compilers
5547 # like to wrap large dependency lists on column 80 (with \), and
5548 # we should not choose a depcomp mode which is confused by this.
5550 # We need to recreate these files for each test, as the compiler may
5551 # overwrite some of them when testing with obscure command lines.
5552 # This happens at least with the AIX C compiler.
5553 : > sub/conftest.c
5554 for i in 1 2 3 4 5 6; do
5555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5557 # Solaris 8's {/usr,}/bin/sh.
5558 touch sub/conftst$i.h
5559 done
5560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5563 # mode. It turns out that the SunPro C++ compiler does not properly
5564 # handle `-M -o', and we need to detect this. Also, some Intel
5565 # versions had trouble with output in subdirs
5566 am__obj=sub/conftest.${OBJEXT-o}
5567 am__minus_obj="-o $am__obj"
5568 case $depmode in
5569 gcc)
5570 # This depmode causes a compiler race in universal mode.
5571 test "$am__universal" = false || continue
5573 nosideeffect)
5574 # after this tag, mechanisms are not by side-effect, so they'll
5575 # only be used when explicitly requested
5576 if test "x$enable_dependency_tracking" = xyes; then
5577 continue
5578 else
5579 break
5582 msvisualcpp | msvcmsys)
5583 # This compiler won't grok `-c -o', but also, the minuso test has
5584 # not run yet. These depmodes are late enough in the game, and
5585 # so weak that their functioning should not be impacted.
5586 am__obj=conftest.${OBJEXT-o}
5587 am__minus_obj=
5589 none) break ;;
5590 esac
5591 if depmode=$depmode \
5592 source=sub/conftest.c object=$am__obj \
5593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5595 >/dev/null 2>conftest.err &&
5596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5600 # icc doesn't choke on unknown options, it will just issue warnings
5601 # or remarks (even with -Werror). So we grep stderr for any message
5602 # that says an option was ignored or not supported.
5603 # When given -MP, icc 7.0 and 7.1 complain thusly:
5604 # icc: Command line warning: ignoring option '-M'; no argument required
5605 # The diagnosis changed in icc 8.0:
5606 # icc: Command line remark: option '-MP' not supported
5607 if (grep 'ignoring option' conftest.err ||
5608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5609 am_cv_CXX_dependencies_compiler_type=$depmode
5610 break
5613 done
5615 cd ..
5616 rm -rf conftest.dir
5617 else
5618 am_cv_CXX_dependencies_compiler_type=none
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5623 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5624 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5627 test "x$enable_dependency_tracking" != xno \
5628 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5629 am__fastdepCXX_TRUE=
5630 am__fastdepCXX_FALSE='#'
5631 else
5632 am__fastdepCXX_TRUE='#'
5633 am__fastdepCXX_FALSE=
5639 if test "x$CC" != xcc; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5641 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5644 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5646 set dummy $CC; ac_cc=`$as_echo "$2" |
5647 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5648 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5655 main ()
5659 return 0;
5661 _ACEOF
5662 # Make sure it works both with $CC and with simple cc.
5663 # We do the test twice because some compilers refuse to overwrite an
5664 # existing .o file with -o, though they will create one.
5665 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 rm -f conftest2.*
5667 if { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5687 then
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5689 if test "x$CC" != xcc; then
5690 # Test first that cc exists at all.
5691 if { ac_try='cc -c conftest.$ac_ext >&5'
5692 { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; }; then
5702 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5703 rm -f conftest2.*
5704 if { { case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709 $as_echo "$ac_try_echo"; } >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; } &&
5714 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5719 $as_echo "$ac_try_echo"; } >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; };
5724 then
5725 # cc works too.
5727 else
5728 # cc exists but doesn't like -o.
5729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5733 else
5734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5736 rm -f core conftest*
5739 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741 $as_echo "yes" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5746 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5750 # FIXME: we rely on the cache variable name because
5751 # there is no other way.
5752 set dummy $CC
5753 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5754 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5755 if test "$am_t" != yes; then
5756 # Losing compiler, so override with the script.
5757 # FIXME: It is wrong to rewrite CC.
5758 # But if we don't then we get into trouble of one sort or another.
5759 # A longer-term fix would be to have automake use am__CC in this case,
5760 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5761 CC="$am_aux_dir/compile $CC"
5769 # Newer automakes demand CCAS and CCASFLAGS.
5770 : ${CCAS='$(CC)'}
5771 : ${CCASFLAGS='$(CFLAGS)'}
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}as; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if test "${ac_cv_prog_AS+set}" = set; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 if test -n "$AS"; then
5784 ac_cv_prog_AS="$AS" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793 ac_cv_prog_AS="${ac_tool_prefix}as"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5797 done
5798 done
5799 IFS=$as_save_IFS
5803 AS=$ac_cv_prog_AS
5804 if test -n "$AS"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5806 $as_echo "$AS" >&6; }
5807 else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5814 if test -z "$ac_cv_prog_AS"; then
5815 ac_ct_AS=$AS
5816 # Extract the first word of "as", so it can be a program name with args.
5817 set dummy as; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$ac_ct_AS"; then
5824 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_ac_ct_AS="as"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5837 done
5838 done
5839 IFS=$as_save_IFS
5843 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5844 if test -n "$ac_ct_AS"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5846 $as_echo "$ac_ct_AS" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5852 if test "x$ac_ct_AS" = x; then
5853 AS=""
5854 else
5855 case $cross_compiling:$ac_tool_warned in
5856 yes:)
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859 ac_tool_warned=yes ;;
5860 esac
5861 AS=$ac_ct_AS
5863 else
5864 AS="$ac_cv_prog_AS"
5867 if test -n "$ac_tool_prefix"; then
5868 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5869 set dummy ${ac_tool_prefix}ar; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if test "${ac_cv_prog_AR+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$AR"; then
5876 ac_cv_prog_AR="$AR" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_AR="${ac_tool_prefix}ar"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 AR=$ac_cv_prog_AR
5896 if test -n "$AR"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5898 $as_echo "$AR" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 if test -z "$ac_cv_prog_AR"; then
5907 ac_ct_AR=$AR
5908 # Extract the first word of "ar", so it can be a program name with args.
5909 set dummy ar; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$ac_ct_AR"; then
5916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_AR="ar"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5931 IFS=$as_save_IFS
5935 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5936 if test -n "$ac_ct_AR"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5938 $as_echo "$ac_ct_AR" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5944 if test "x$ac_ct_AR" = x; then
5945 AR=""
5946 else
5947 case $cross_compiling:$ac_tool_warned in
5948 yes:)
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951 ac_tool_warned=yes ;;
5952 esac
5953 AR=$ac_ct_AR
5955 else
5956 AR="$ac_cv_prog_AR"
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5981 done
5982 done
5983 IFS=$as_save_IFS
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6036 if test "x$ac_ct_RANLIB" = x; then
6037 RANLIB=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045 RANLIB=$ac_ct_RANLIB
6047 else
6048 RANLIB="$ac_cv_prog_RANLIB"
6052 # Configure libtool
6053 enable_dlopen=yes
6057 case `pwd` in
6058 *\ * | *\ *)
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6060 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6061 esac
6065 macro_version='2.2.7a'
6066 macro_revision='1.3134'
6080 ltmain="$ac_aux_dir/ltmain.sh"
6082 # Backslashify metacharacters that are still active within
6083 # double-quoted strings.
6084 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6086 # Same as above, but do not quote variable references.
6087 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6089 # Sed substitution to delay expansion of an escaped shell variable in a
6090 # double_quote_subst'ed string.
6091 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6093 # Sed substitution to delay expansion of an escaped single quote.
6094 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6096 # Sed substitution to avoid accidental globbing in evaled expressions
6097 no_glob_subst='s/\*/\\\*/g'
6099 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6100 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6101 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6104 $as_echo_n "checking how to print strings... " >&6; }
6105 # Test print first, because it will be a builtin if present.
6106 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6107 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6108 ECHO='print -r --'
6109 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6110 ECHO='printf %s\n'
6111 else
6112 # Use this function as a fallback that always works.
6113 func_fallback_echo ()
6115 eval 'cat <<_LTECHO_EOF
6117 _LTECHO_EOF'
6119 ECHO='func_fallback_echo'
6122 # func_echo_all arg...
6123 # Invoke $ECHO with all args, space-separated.
6124 func_echo_all ()
6126 $ECHO ""
6129 case "$ECHO" in
6130 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6131 $as_echo "printf" >&6; } ;;
6132 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6133 $as_echo "print -r" >&6; } ;;
6134 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6135 $as_echo "cat" >&6; } ;;
6136 esac
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6153 if test "${ac_cv_path_SED+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6157 for ac_i in 1 2 3 4 5 6 7; do
6158 ac_script="$ac_script$as_nl$ac_script"
6159 done
6160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6161 { ac_script=; unset ac_script;}
6162 if test -z "$SED"; then
6163 ac_path_SED_found=false
6164 # Loop through the user's path and test for each of PROGNAME-LIST
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_prog in sed gsed; do
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6174 # Check for GNU ac_path_SED and select it if it is found.
6175 # Check for GNU $ac_path_SED
6176 case `"$ac_path_SED" --version 2>&1` in
6177 *GNU*)
6178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6180 ac_count=0
6181 $as_echo_n 0123456789 >"conftest.in"
6182 while :
6184 cat "conftest.in" "conftest.in" >"conftest.tmp"
6185 mv "conftest.tmp" "conftest.in"
6186 cp "conftest.in" "conftest.nl"
6187 $as_echo '' >> "conftest.nl"
6188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6190 as_fn_arith $ac_count + 1 && ac_count=$as_val
6191 if test $ac_count -gt ${ac_path_SED_max-0}; then
6192 # Best one so far, save it but keep looking for a better one
6193 ac_cv_path_SED="$ac_path_SED"
6194 ac_path_SED_max=$ac_count
6196 # 10*(2^10) chars as input seems more than enough
6197 test $ac_count -gt 10 && break
6198 done
6199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6200 esac
6202 $ac_path_SED_found && break 3
6203 done
6204 done
6205 done
6206 IFS=$as_save_IFS
6207 if test -z "$ac_cv_path_SED"; then
6208 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6210 else
6211 ac_cv_path_SED=$SED
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6216 $as_echo "$ac_cv_path_SED" >&6; }
6217 SED="$ac_cv_path_SED"
6218 rm -f conftest.sed
6220 test -z "$SED" && SED=sed
6221 Xsed="$SED -e 1s/^X//"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6234 $as_echo_n "checking for fgrep... " >&6; }
6235 if test "${ac_cv_path_FGREP+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6239 then ac_cv_path_FGREP="$GREP -F"
6240 else
6241 if test -z "$FGREP"; then
6242 ac_path_FGREP_found=false
6243 # Loop through the user's path and test for each of PROGNAME-LIST
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_prog in fgrep; do
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6253 # Check for GNU ac_path_FGREP and select it if it is found.
6254 # Check for GNU $ac_path_FGREP
6255 case `"$ac_path_FGREP" --version 2>&1` in
6256 *GNU*)
6257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6259 ac_count=0
6260 $as_echo_n 0123456789 >"conftest.in"
6261 while :
6263 cat "conftest.in" "conftest.in" >"conftest.tmp"
6264 mv "conftest.tmp" "conftest.in"
6265 cp "conftest.in" "conftest.nl"
6266 $as_echo 'FGREP' >> "conftest.nl"
6267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6269 as_fn_arith $ac_count + 1 && ac_count=$as_val
6270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6271 # Best one so far, save it but keep looking for a better one
6272 ac_cv_path_FGREP="$ac_path_FGREP"
6273 ac_path_FGREP_max=$ac_count
6275 # 10*(2^10) chars as input seems more than enough
6276 test $ac_count -gt 10 && break
6277 done
6278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6279 esac
6281 $ac_path_FGREP_found && break 3
6282 done
6283 done
6284 done
6285 IFS=$as_save_IFS
6286 if test -z "$ac_cv_path_FGREP"; then
6287 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6289 else
6290 ac_cv_path_FGREP=$FGREP
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6296 $as_echo "$ac_cv_path_FGREP" >&6; }
6297 FGREP="$ac_cv_path_FGREP"
6300 test -z "$GREP" && GREP=grep
6320 # Check whether --with-gnu-ld was given.
6321 if test "${with_gnu_ld+set}" = set; then :
6322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6323 else
6324 with_gnu_ld=no
6327 ac_prog=ld
6328 if test "$GCC" = yes; then
6329 # Check if gcc -print-prog-name=ld gives a path.
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6331 $as_echo_n "checking for ld used by $CC... " >&6; }
6332 case $host in
6333 *-*-mingw*)
6334 # gcc leaves a trailing carriage return which upsets mingw
6335 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6337 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6338 esac
6339 case $ac_prog in
6340 # Accept absolute paths.
6341 [\\/]* | ?:[\\/]*)
6342 re_direlt='/[^/][^/]*/\.\./'
6343 # Canonicalize the pathname of ld
6344 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6345 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6346 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6347 done
6348 test -z "$LD" && LD="$ac_prog"
6351 # If it fails, then pretend we aren't using GCC.
6352 ac_prog=ld
6355 # If it is relative, then search for the first ld in PATH.
6356 with_gnu_ld=unknown
6358 esac
6359 elif test "$with_gnu_ld" = yes; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6361 $as_echo_n "checking for GNU ld... " >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6364 $as_echo_n "checking for non-GNU ld... " >&6; }
6366 if test "${lt_cv_path_LD+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -z "$LD"; then
6370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6371 for ac_dir in $PATH; do
6372 IFS="$lt_save_ifs"
6373 test -z "$ac_dir" && ac_dir=.
6374 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6375 lt_cv_path_LD="$ac_dir/$ac_prog"
6376 # Check to see if the program is GNU ld. I'd rather use --version,
6377 # but apparently some variants of GNU ld only accept -v.
6378 # Break only if it was the GNU/non-GNU ld that we prefer.
6379 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6380 *GNU* | *'with BFD'*)
6381 test "$with_gnu_ld" != no && break
6384 test "$with_gnu_ld" != yes && break
6386 esac
6388 done
6389 IFS="$lt_save_ifs"
6390 else
6391 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6395 LD="$lt_cv_path_LD"
6396 if test -n "$LD"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6398 $as_echo "$LD" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6403 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6405 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6406 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6410 case `$LD -v 2>&1 </dev/null` in
6411 *GNU* | *'with BFD'*)
6412 lt_cv_prog_gnu_ld=yes
6415 lt_cv_prog_gnu_ld=no
6417 esac
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6420 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6421 with_gnu_ld=$lt_cv_prog_gnu_ld
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6432 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6433 if test "${lt_cv_path_NM+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$NM"; then
6437 # Let the user override the test.
6438 lt_cv_path_NM="$NM"
6439 else
6440 lt_nm_to_check="${ac_tool_prefix}nm"
6441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6442 lt_nm_to_check="$lt_nm_to_check nm"
6444 for lt_tmp_nm in $lt_nm_to_check; do
6445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6447 IFS="$lt_save_ifs"
6448 test -z "$ac_dir" && ac_dir=.
6449 tmp_nm="$ac_dir/$lt_tmp_nm"
6450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6451 # Check to see if the nm accepts a BSD-compat flag.
6452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6453 # nm: unknown option "B" ignored
6454 # Tru64's nm complains that /dev/null is an invalid object file
6455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6456 */dev/null* | *'Invalid file or object type'*)
6457 lt_cv_path_NM="$tmp_nm -B"
6458 break
6461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6462 */dev/null*)
6463 lt_cv_path_NM="$tmp_nm -p"
6464 break
6467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6468 continue # so that we can try to find one that supports BSD flags
6470 esac
6472 esac
6474 done
6475 IFS="$lt_save_ifs"
6476 done
6477 : ${lt_cv_path_NM=no}
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6481 $as_echo "$lt_cv_path_NM" >&6; }
6482 if test "$lt_cv_path_NM" != "no"; then
6483 NM="$lt_cv_path_NM"
6484 else
6485 # Didn't find any BSD compatible name lister, look for dumpbin.
6486 if test -n "$DUMPBIN"; then :
6487 # Let the user override the test.
6488 else
6489 if test -n "$ac_tool_prefix"; then
6490 for ac_prog in dumpbin "link -dump"
6492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$DUMPBIN"; then
6500 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 DUMPBIN=$ac_cv_prog_DUMPBIN
6520 if test -n "$DUMPBIN"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6522 $as_echo "$DUMPBIN" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6529 test -n "$DUMPBIN" && break
6530 done
6532 if test -z "$DUMPBIN"; then
6533 ac_ct_DUMPBIN=$DUMPBIN
6534 for ac_prog in dumpbin "link -dump"
6536 # Extract the first word of "$ac_prog", so it can be a program name with args.
6537 set dummy $ac_prog; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 if test -n "$ac_ct_DUMPBIN"; then
6544 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6557 done
6558 done
6559 IFS=$as_save_IFS
6563 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6564 if test -n "$ac_ct_DUMPBIN"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6566 $as_echo "$ac_ct_DUMPBIN" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6573 test -n "$ac_ct_DUMPBIN" && break
6574 done
6576 if test "x$ac_ct_DUMPBIN" = x; then
6577 DUMPBIN=":"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580 yes:)
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585 DUMPBIN=$ac_ct_DUMPBIN
6589 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6590 *COFF*)
6591 DUMPBIN="$DUMPBIN -symbols"
6594 DUMPBIN=:
6596 esac
6599 if test "$DUMPBIN" != ":"; then
6600 NM="$DUMPBIN"
6603 test -z "$NM" && NM=nm
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6611 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6612 if test "${lt_cv_nm_interface+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 lt_cv_nm_interface="BSD nm"
6616 echo "int some_variable = 0;" > conftest.$ac_ext
6617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6618 (eval "$ac_compile" 2>conftest.err)
6619 cat conftest.err >&5
6620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6622 cat conftest.err >&5
6623 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6624 cat conftest.out >&5
6625 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6626 lt_cv_nm_interface="MS dumpbin"
6628 rm -f conftest*
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6631 $as_echo "$lt_cv_nm_interface" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6634 $as_echo_n "checking whether ln -s works... " >&6; }
6635 LN_S=$as_ln_s
6636 if test "$LN_S" = "ln -s"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6638 $as_echo "yes" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6641 $as_echo "no, using $LN_S" >&6; }
6644 # find the maximum length of command line arguments
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6646 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6647 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6651 teststring="ABCD"
6653 case $build_os in
6654 msdosdjgpp*)
6655 # On DJGPP, this test can blow up pretty badly due to problems in libc
6656 # (any single argument exceeding 2000 bytes causes a buffer overrun
6657 # during glob expansion). Even if it were fixed, the result of this
6658 # check would be larger than it should be.
6659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6662 gnu*)
6663 # Under GNU Hurd, this test is not required because there is
6664 # no limit to the length of command line arguments.
6665 # Libtool will interpret -1 as no limit whatsoever
6666 lt_cv_sys_max_cmd_len=-1;
6669 cygwin* | mingw* | cegcc*)
6670 # On Win9x/ME, this test blows up -- it succeeds, but takes
6671 # about 5 minutes as the teststring grows exponentially.
6672 # Worse, since 9x/ME are not pre-emptively multitasking,
6673 # you end up with a "frozen" computer, even though with patience
6674 # the test eventually succeeds (with a max line length of 256k).
6675 # Instead, let's just punt: use the minimum linelength reported by
6676 # all of the supported platforms: 8192 (on NT/2K/XP).
6677 lt_cv_sys_max_cmd_len=8192;
6680 mint*)
6681 # On MiNT this can take a long time and run out of memory.
6682 lt_cv_sys_max_cmd_len=8192;
6685 amigaos*)
6686 # On AmigaOS with pdksh, this test takes hours, literally.
6687 # So we just punt and use a minimum line length of 8192.
6688 lt_cv_sys_max_cmd_len=8192;
6691 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6692 # This has been around since 386BSD, at least. Likely further.
6693 if test -x /sbin/sysctl; then
6694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6695 elif test -x /usr/sbin/sysctl; then
6696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6697 else
6698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6700 # And add a safety zone
6701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6705 interix*)
6706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6707 lt_cv_sys_max_cmd_len=196608
6710 osf*)
6711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6713 # nice to cause kernel panics so lets avoid the loop below.
6714 # First set a reasonable default.
6715 lt_cv_sys_max_cmd_len=16384
6717 if test -x /sbin/sysconfig; then
6718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6719 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6720 esac
6723 sco3.2v5*)
6724 lt_cv_sys_max_cmd_len=102400
6726 sysv5* | sco5v6* | sysv4.2uw2*)
6727 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6728 if test -n "$kargmax"; then
6729 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6730 else
6731 lt_cv_sys_max_cmd_len=32768
6735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6736 if test -n "$lt_cv_sys_max_cmd_len"; then
6737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6739 else
6740 # Make teststring a little bigger before we do anything with it.
6741 # a 1K string should be a reasonable start.
6742 for i in 1 2 3 4 5 6 7 8 ; do
6743 teststring=$teststring$teststring
6744 done
6745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6746 # If test is not a shell built-in, we'll probably end up computing a
6747 # maximum length that is only half of the actual maximum length, but
6748 # we can't tell.
6749 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6750 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6751 test $i != 17 # 1/2 MB should be enough
6753 i=`expr $i + 1`
6754 teststring=$teststring$teststring
6755 done
6756 # Only check the string length outside the loop.
6757 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6758 teststring=
6759 # Add a significant safety factor because C++ compilers can tack on
6760 # massive amounts of additional arguments before passing them to the
6761 # linker. It appears as though 1/2 is a usable value.
6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6765 esac
6769 if test -n $lt_cv_sys_max_cmd_len ; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6771 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6774 $as_echo "none" >&6; }
6776 max_cmd_len=$lt_cv_sys_max_cmd_len
6783 : ${CP="cp -f"}
6784 : ${MV="mv -f"}
6785 : ${RM="rm -f"}
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6788 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6789 # Try some XSI features
6790 xsi_shell=no
6791 ( _lt_dummy="a/b/c"
6792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6793 = c,a/b,, \
6794 && eval 'test $(( 1 + 1 )) -eq 2 \
6795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6796 && xsi_shell=yes
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6798 $as_echo "$xsi_shell" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6802 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6803 lt_shell_append=no
6804 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6805 >/dev/null 2>&1 \
6806 && lt_shell_append=yes
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6808 $as_echo "$lt_shell_append" >&6; }
6811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6812 lt_unset=unset
6813 else
6814 lt_unset=false
6821 # test EBCDIC or ASCII
6822 case `echo X|tr X '\101'` in
6823 A) # ASCII based system
6824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6825 lt_SP2NL='tr \040 \012'
6826 lt_NL2SP='tr \015\012 \040\040'
6828 *) # EBCDIC based system
6829 lt_SP2NL='tr \100 \n'
6830 lt_NL2SP='tr \r\n \100\100'
6832 esac
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6843 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6844 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 lt_cv_ld_reload_flag='-r'
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6850 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6851 reload_flag=$lt_cv_ld_reload_flag
6852 case $reload_flag in
6853 "" | " "*) ;;
6854 *) reload_flag=" $reload_flag" ;;
6855 esac
6856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6857 case $host_os in
6858 darwin*)
6859 if test "$GCC" = yes; then
6860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6861 else
6862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6865 esac
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$OBJDUMP"; then
6884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6897 done
6898 done
6899 IFS=$as_save_IFS
6903 OBJDUMP=$ac_cv_prog_OBJDUMP
6904 if test -n "$OBJDUMP"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6906 $as_echo "$OBJDUMP" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_prog_OBJDUMP"; then
6915 ac_ct_OBJDUMP=$OBJDUMP
6916 # Extract the first word of "objdump", so it can be a program name with args.
6917 set dummy objdump; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$ac_ct_OBJDUMP"; then
6924 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6944 if test -n "$ac_ct_OBJDUMP"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6946 $as_echo "$ac_ct_OBJDUMP" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$ac_ct_OBJDUMP" = x; then
6953 OBJDUMP="false"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961 OBJDUMP=$ac_ct_OBJDUMP
6963 else
6964 OBJDUMP="$ac_cv_prog_OBJDUMP"
6967 test -z "$OBJDUMP" && OBJDUMP=objdump
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6978 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6979 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 lt_cv_file_magic_cmd='$MAGIC_CMD'
6983 lt_cv_file_magic_test_file=
6984 lt_cv_deplibs_check_method='unknown'
6985 # Need to set the preceding variable on all platforms that support
6986 # interlibrary dependencies.
6987 # 'none' -- dependencies not supported.
6988 # `unknown' -- same as none, but documents that we really don't know.
6989 # 'pass_all' -- all dependencies passed with no checks.
6990 # 'test_compile' -- check by making test program.
6991 # 'file_magic [[regex]]' -- check by looking for files in library path
6992 # which responds to the $file_magic_cmd with a given extended regex.
6993 # If you have `file' or equivalent on your system and you're not sure
6994 # whether `pass_all' will *always* work, you probably want this one.
6996 case $host_os in
6997 aix[4-9]*)
6998 lt_cv_deplibs_check_method=pass_all
7001 beos*)
7002 lt_cv_deplibs_check_method=pass_all
7005 bsdi[45]*)
7006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7007 lt_cv_file_magic_cmd='/usr/bin/file -L'
7008 lt_cv_file_magic_test_file=/shlib/libc.so
7011 cygwin*)
7012 # func_win32_libid is a shell function defined in ltmain.sh
7013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7014 lt_cv_file_magic_cmd='func_win32_libid'
7017 mingw* | pw32*)
7018 # Base MSYS/MinGW do not provide the 'file' command needed by
7019 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7020 # unless we find 'file', for example because we are cross-compiling.
7021 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7022 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7024 lt_cv_file_magic_cmd='func_win32_libid'
7025 else
7026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7027 lt_cv_file_magic_cmd='$OBJDUMP -f'
7031 cegcc*)
7032 # use the weaker test based on 'objdump'. See mingw*.
7033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7034 lt_cv_file_magic_cmd='$OBJDUMP -f'
7037 darwin* | rhapsody*)
7038 lt_cv_deplibs_check_method=pass_all
7041 freebsd* | dragonfly*)
7042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7043 case $host_cpu in
7044 i*86 )
7045 # Not sure whether the presence of OpenBSD here was a mistake.
7046 # Let's accept both of them until this is cleared up.
7047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7048 lt_cv_file_magic_cmd=/usr/bin/file
7049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7051 esac
7052 else
7053 lt_cv_deplibs_check_method=pass_all
7057 gnu*)
7058 lt_cv_deplibs_check_method=pass_all
7061 haiku*)
7062 lt_cv_deplibs_check_method=pass_all
7065 hpux10.20* | hpux11*)
7066 lt_cv_file_magic_cmd=/usr/bin/file
7067 case $host_cpu in
7068 ia64*)
7069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7072 hppa*64*)
7073 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]'
7074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7080 esac
7083 interix[3-9]*)
7084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7088 irix5* | irix6* | nonstopux*)
7089 case $LD in
7090 *-32|*"-32 ") libmagic=32-bit;;
7091 *-n32|*"-n32 ") libmagic=N32;;
7092 *-64|*"-64 ") libmagic=64-bit;;
7093 *) libmagic=never-match;;
7094 esac
7095 lt_cv_deplibs_check_method=pass_all
7098 # This must be Linux ELF.
7099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7100 lt_cv_deplibs_check_method=pass_all
7103 netbsd*)
7104 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7106 else
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7111 newos6*)
7112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7113 lt_cv_file_magic_cmd=/usr/bin/file
7114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7117 *nto* | *qnx*)
7118 lt_cv_deplibs_check_method=pass_all
7121 openbsd*)
7122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7124 else
7125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7129 osf3* | osf4* | osf5*)
7130 lt_cv_deplibs_check_method=pass_all
7133 rdos*)
7134 lt_cv_deplibs_check_method=pass_all
7137 solaris*)
7138 lt_cv_deplibs_check_method=pass_all
7141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7142 lt_cv_deplibs_check_method=pass_all
7145 sysv4 | sysv4.3*)
7146 case $host_vendor in
7147 motorola)
7148 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]'
7149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7151 ncr)
7152 lt_cv_deplibs_check_method=pass_all
7154 sequent)
7155 lt_cv_file_magic_cmd='/bin/file'
7156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7158 sni)
7159 lt_cv_file_magic_cmd='/bin/file'
7160 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7161 lt_cv_file_magic_test_file=/lib/libc.so
7163 siemens)
7164 lt_cv_deplibs_check_method=pass_all
7167 lt_cv_deplibs_check_method=pass_all
7169 esac
7172 tpf*)
7173 lt_cv_deplibs_check_method=pass_all
7175 esac
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7179 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7180 file_magic_cmd=$lt_cv_file_magic_cmd
7181 deplibs_check_method=$lt_cv_deplibs_check_method
7182 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}ar; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if test "${ac_cv_prog_AR+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 if test -n "$AR"; then
7204 ac_cv_prog_AR="$AR" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_AR="${ac_tool_prefix}ar"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7217 done
7218 done
7219 IFS=$as_save_IFS
7223 AR=$ac_cv_prog_AR
7224 if test -n "$AR"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7226 $as_echo "$AR" >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7234 if test -z "$ac_cv_prog_AR"; then
7235 ac_ct_AR=$AR
7236 # Extract the first word of "ar", so it can be a program name with args.
7237 set dummy ar; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test -n "$ac_ct_AR"; then
7244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_AR="ar"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7257 done
7258 done
7259 IFS=$as_save_IFS
7263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7264 if test -n "$ac_ct_AR"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7266 $as_echo "$ac_ct_AR" >&6; }
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7272 if test "x$ac_ct_AR" = x; then
7273 AR="false"
7274 else
7275 case $cross_compiling:$ac_tool_warned in
7276 yes:)
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279 ac_tool_warned=yes ;;
7280 esac
7281 AR=$ac_ct_AR
7283 else
7284 AR="$ac_cv_prog_AR"
7287 test -z "$AR" && AR=ar
7288 test -z "$AR_FLAGS" && AR_FLAGS=cru
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}strip; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_STRIP+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 if test -n "$STRIP"; then
7309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7322 done
7323 done
7324 IFS=$as_save_IFS
7328 STRIP=$ac_cv_prog_STRIP
7329 if test -n "$STRIP"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7331 $as_echo "$STRIP" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7339 if test -z "$ac_cv_prog_STRIP"; then
7340 ac_ct_STRIP=$STRIP
7341 # Extract the first word of "strip", so it can be a program name with args.
7342 set dummy strip; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test -n "$ac_ct_STRIP"; then
7349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_STRIP="strip"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7362 done
7363 done
7364 IFS=$as_save_IFS
7368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7369 if test -n "$ac_ct_STRIP"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7371 $as_echo "$ac_ct_STRIP" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7377 if test "x$ac_ct_STRIP" = x; then
7378 STRIP=":"
7379 else
7380 case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7385 esac
7386 STRIP=$ac_ct_STRIP
7388 else
7389 STRIP="$ac_cv_prog_STRIP"
7392 test -z "$STRIP" && STRIP=:
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$RANLIB"; then
7408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7421 done
7422 done
7423 IFS=$as_save_IFS
7427 RANLIB=$ac_cv_prog_RANLIB
7428 if test -n "$RANLIB"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7430 $as_echo "$RANLIB" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7438 if test -z "$ac_cv_prog_RANLIB"; then
7439 ac_ct_RANLIB=$RANLIB
7440 # Extract the first word of "ranlib", so it can be a program name with args.
7441 set dummy ranlib; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 if test -n "$ac_ct_RANLIB"; then
7448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_ac_ct_RANLIB="ranlib"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7461 done
7462 done
7463 IFS=$as_save_IFS
7467 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7468 if test -n "$ac_ct_RANLIB"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7470 $as_echo "$ac_ct_RANLIB" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7476 if test "x$ac_ct_RANLIB" = x; then
7477 RANLIB=":"
7478 else
7479 case $cross_compiling:$ac_tool_warned in
7480 yes:)
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485 RANLIB=$ac_ct_RANLIB
7487 else
7488 RANLIB="$ac_cv_prog_RANLIB"
7491 test -z "$RANLIB" && RANLIB=:
7498 # Determine commands to create old-style static archives.
7499 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7500 old_postinstall_cmds='chmod 644 $oldlib'
7501 old_postuninstall_cmds=
7503 if test -n "$RANLIB"; then
7504 case $host_os in
7505 openbsd*)
7506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7511 esac
7512 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7515 case $host_os in
7516 darwin*)
7517 lock_old_archive_extraction=yes ;;
7519 lock_old_archive_extraction=no ;;
7520 esac
7560 # If no C compiler was specified, use CC.
7561 LTCC=${LTCC-"$CC"}
7563 # If no C compiler flags were specified, use CFLAGS.
7564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7566 # Allow CC to be a program name with arguments.
7567 compiler=$CC
7570 # Check for command to grab the raw symbol name followed by C symbol from nm.
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7572 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7577 # These are sane defaults that work on at least a few old systems.
7578 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7580 # Character class describing NM global symbol codes.
7581 symcode='[BCDEGRST]'
7583 # Regexp to match symbols that can be accessed directly from C.
7584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7586 # Define system-specific variables.
7587 case $host_os in
7588 aix*)
7589 symcode='[BCDT]'
7591 cygwin* | mingw* | pw32* | cegcc*)
7592 symcode='[ABCDGISTW]'
7594 hpux*)
7595 if test "$host_cpu" = ia64; then
7596 symcode='[ABCDEGRST]'
7599 irix* | nonstopux*)
7600 symcode='[BCDEGRST]'
7602 osf*)
7603 symcode='[BCDEGQRST]'
7605 solaris*)
7606 symcode='[BDRT]'
7608 sco3.2v5*)
7609 symcode='[DT]'
7611 sysv4.2uw2*)
7612 symcode='[DT]'
7614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7615 symcode='[ABDT]'
7617 sysv4)
7618 symcode='[DFNSTU]'
7620 esac
7622 # If we're using GNU nm, then use its standard symbol codes.
7623 case `$NM -V 2>&1` in
7624 *GNU* | *'with BFD'*)
7625 symcode='[ABCDGIRSTW]' ;;
7626 esac
7628 # Transform an extracted symbol line into a proper C declaration.
7629 # Some systems (esp. on ia64) link data and code symbols differently,
7630 # so use this general approach.
7631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7633 # Transform an extracted symbol line into symbol name and symbol address
7634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7635 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'"
7637 # Handle CRLF in mingw tool chain
7638 opt_cr=
7639 case $build_os in
7640 mingw*)
7641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7643 esac
7645 # Try without a prefix underscore, then with it.
7646 for ac_symprfx in "" "_"; do
7648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7649 symxfrm="\\1 $ac_symprfx\\2 \\2"
7651 # Write the raw and C identifiers.
7652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7653 # Fake it for dumpbin and say T for any non-static function
7654 # and D for any global variable.
7655 # Also find C++ and __fastcall symbols from MSVC++,
7656 # which start with @ or ?.
7657 lt_cv_sys_global_symbol_pipe="$AWK '"\
7658 " {last_section=section; section=\$ 3};"\
7659 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7660 " \$ 0!~/External *\|/{next};"\
7661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7662 " {if(hide[section]) next};"\
7663 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7664 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7665 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7666 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7667 " ' prfx=^$ac_symprfx"
7668 else
7669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7672 # Check to see that the pipe works correctly.
7673 pipe_works=no
7675 rm -f conftest*
7676 cat > conftest.$ac_ext <<_LT_EOF
7677 #ifdef __cplusplus
7678 extern "C" {
7679 #endif
7680 char nm_test_var;
7681 void nm_test_func(void);
7682 void nm_test_func(void){}
7683 #ifdef __cplusplus
7685 #endif
7686 int main(){nm_test_var='a';nm_test_func();return(0);}
7687 _LT_EOF
7689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7690 (eval $ac_compile) 2>&5
7691 ac_status=$?
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; }; then
7694 # Now try to grab the symbols.
7695 nlist=conftest.nm
7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7697 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7698 ac_status=$?
7699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700 test $ac_status = 0; } && test -s "$nlist"; then
7701 # Try sorting and uniquifying the output.
7702 if sort "$nlist" | uniq > "$nlist"T; then
7703 mv -f "$nlist"T "$nlist"
7704 else
7705 rm -f "$nlist"T
7708 # Make sure that we snagged all the symbols we need.
7709 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7710 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7711 cat <<_LT_EOF > conftest.$ac_ext
7712 #ifdef __cplusplus
7713 extern "C" {
7714 #endif
7716 _LT_EOF
7717 # Now generate the symbol file.
7718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7720 cat <<_LT_EOF >> conftest.$ac_ext
7722 /* The mapping between symbol names and symbols. */
7723 const struct {
7724 const char *name;
7725 void *address;
7727 lt__PROGRAM__LTX_preloaded_symbols[] =
7729 { "@PROGRAM@", (void *) 0 },
7730 _LT_EOF
7731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7732 cat <<\_LT_EOF >> conftest.$ac_ext
7733 {0, (void *) 0}
7736 /* This works around a problem in FreeBSD linker */
7737 #ifdef FREEBSD_WORKAROUND
7738 static const void *lt_preloaded_setup() {
7739 return lt__PROGRAM__LTX_preloaded_symbols;
7741 #endif
7743 #ifdef __cplusplus
7745 #endif
7746 _LT_EOF
7747 # Now try linking the two files.
7748 mv conftest.$ac_objext conftstm.$ac_objext
7749 lt_save_LIBS="$LIBS"
7750 lt_save_CFLAGS="$CFLAGS"
7751 LIBS="conftstm.$ac_objext"
7752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7754 (eval $ac_link) 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7758 pipe_works=yes
7760 LIBS="$lt_save_LIBS"
7761 CFLAGS="$lt_save_CFLAGS"
7762 else
7763 echo "cannot find nm_test_func in $nlist" >&5
7765 else
7766 echo "cannot find nm_test_var in $nlist" >&5
7768 else
7769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7771 else
7772 echo "$progname: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 rm -rf conftest* conftst*
7777 # Do not use the global_symbol_pipe unless it works.
7778 if test "$pipe_works" = yes; then
7779 break
7780 else
7781 lt_cv_sys_global_symbol_pipe=
7783 done
7787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7788 lt_cv_sys_global_symbol_to_cdecl=
7790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7792 $as_echo "failed" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7795 $as_echo "ok" >&6; }
7819 # Check whether --enable-libtool-lock was given.
7820 if test "${enable_libtool_lock+set}" = set; then :
7821 enableval=$enable_libtool_lock;
7824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7826 # Some flags need to be propagated to the compiler or linker for good
7827 # libtool support.
7828 case $host in
7829 ia64-*-hpux*)
7830 # Find out which ABI we are using.
7831 echo 'int i;' > conftest.$ac_ext
7832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7833 (eval $ac_compile) 2>&5
7834 ac_status=$?
7835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7836 test $ac_status = 0; }; then
7837 case `/usr/bin/file conftest.$ac_objext` in
7838 *ELF-32*)
7839 HPUX_IA64_MODE="32"
7841 *ELF-64*)
7842 HPUX_IA64_MODE="64"
7844 esac
7846 rm -rf conftest*
7848 *-*-irix6*)
7849 # Find out which ABI we are using.
7850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7852 (eval $ac_compile) 2>&5
7853 ac_status=$?
7854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855 test $ac_status = 0; }; then
7856 if test "$lt_cv_prog_gnu_ld" = yes; then
7857 case `/usr/bin/file conftest.$ac_objext` in
7858 *32-bit*)
7859 LD="${LD-ld} -melf32bsmip"
7861 *N32*)
7862 LD="${LD-ld} -melf32bmipn32"
7864 *64-bit*)
7865 LD="${LD-ld} -melf64bmip"
7867 esac
7868 else
7869 case `/usr/bin/file conftest.$ac_objext` in
7870 *32-bit*)
7871 LD="${LD-ld} -32"
7873 *N32*)
7874 LD="${LD-ld} -n32"
7876 *64-bit*)
7877 LD="${LD-ld} -64"
7879 esac
7882 rm -rf conftest*
7885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7887 # Find out which ABI we are using.
7888 echo 'int i;' > conftest.$ac_ext
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7891 ac_status=$?
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 case `/usr/bin/file conftest.o` in
7895 *32-bit*)
7896 case $host in
7897 x86_64-*kfreebsd*-gnu)
7898 LD="${LD-ld} -m elf_i386_fbsd"
7900 x86_64-*linux*)
7901 case `/usr/bin/file conftest.o` in
7902 *x86-64*)
7903 LD="${LD-ld} -m elf32_x86_64"
7906 LD="${LD-ld} -m elf_i386"
7908 esac
7910 powerpc64le-*linux*)
7911 LD="${LD-ld} -m elf32lppclinux"
7913 powerpc64-*linux*)
7914 LD="${LD-ld} -m elf32ppclinux"
7916 s390x-*linux*)
7917 LD="${LD-ld} -m elf_s390"
7919 sparc64-*linux*)
7920 LD="${LD-ld} -m elf32_sparc"
7922 esac
7924 *64-bit*)
7925 case $host in
7926 x86_64-*kfreebsd*-gnu)
7927 LD="${LD-ld} -m elf_x86_64_fbsd"
7929 x86_64-*linux*)
7930 LD="${LD-ld} -m elf_x86_64"
7932 powerpcle-*linux*)
7933 LD="${LD-ld} -m elf64lppc"
7935 powerpc-*linux*)
7936 LD="${LD-ld} -m elf64ppc"
7938 s390*-*linux*|s390*-*tpf*)
7939 LD="${LD-ld} -m elf64_s390"
7941 sparc*-*linux*)
7942 LD="${LD-ld} -m elf64_sparc"
7944 esac
7946 esac
7948 rm -rf conftest*
7951 *-*-sco3.2v5*)
7952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7953 SAVE_CFLAGS="$CFLAGS"
7954 CFLAGS="$CFLAGS -belf"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7957 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7970 main ()
7974 return 0;
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 lt_cv_cc_needs_belf=yes
7979 else
7980 lt_cv_cc_needs_belf=no
7982 rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 ac_ext=c
7985 ac_cpp='$CPP $CPPFLAGS'
7986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7995 CFLAGS="$SAVE_CFLAGS"
7998 sparc*-*solaris*)
7999 # Find out which ABI we are using.
8000 echo 'int i;' > conftest.$ac_ext
8001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8002 (eval $ac_compile) 2>&5
8003 ac_status=$?
8004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005 test $ac_status = 0; }; then
8006 case `/usr/bin/file conftest.o` in
8007 *64-bit*)
8008 case $lt_cv_prog_gnu_ld in
8009 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8012 LD="${LD-ld} -64"
8015 esac
8017 esac
8019 rm -rf conftest*
8021 esac
8023 need_locks="$enable_libtool_lock"
8026 case $host_os in
8027 rhapsody* | darwin*)
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$DSYMUTIL"; then
8037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8057 if test -n "$DSYMUTIL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8059 $as_echo "$DSYMUTIL" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8067 if test -z "$ac_cv_prog_DSYMUTIL"; then
8068 ac_ct_DSYMUTIL=$DSYMUTIL
8069 # Extract the first word of "dsymutil", so it can be a program name with args.
8070 set dummy dsymutil; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$ac_ct_DSYMUTIL"; then
8077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8090 done
8091 done
8092 IFS=$as_save_IFS
8096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8097 if test -n "$ac_ct_DSYMUTIL"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8105 if test "x$ac_ct_DSYMUTIL" = x; then
8106 DSYMUTIL=":"
8107 else
8108 case $cross_compiling:$ac_tool_warned in
8109 yes:)
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8112 ac_tool_warned=yes ;;
8113 esac
8114 DSYMUTIL=$ac_ct_DSYMUTIL
8116 else
8117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8120 if test -n "$ac_tool_prefix"; then
8121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$NMEDIT"; then
8129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 NMEDIT=$ac_cv_prog_NMEDIT
8149 if test -n "$NMEDIT"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8151 $as_echo "$NMEDIT" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8159 if test -z "$ac_cv_prog_NMEDIT"; then
8160 ac_ct_NMEDIT=$NMEDIT
8161 # Extract the first word of "nmedit", so it can be a program name with args.
8162 set dummy nmedit; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$ac_ct_NMEDIT"; then
8169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8182 done
8183 done
8184 IFS=$as_save_IFS
8188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8189 if test -n "$ac_ct_NMEDIT"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8191 $as_echo "$ac_ct_NMEDIT" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8197 if test "x$ac_ct_NMEDIT" = x; then
8198 NMEDIT=":"
8199 else
8200 case $cross_compiling:$ac_tool_warned in
8201 yes:)
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204 ac_tool_warned=yes ;;
8205 esac
8206 NMEDIT=$ac_ct_NMEDIT
8208 else
8209 NMEDIT="$ac_cv_prog_NMEDIT"
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_LIPO+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 if test -n "$LIPO"; then
8221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8234 done
8235 done
8236 IFS=$as_save_IFS
8240 LIPO=$ac_cv_prog_LIPO
8241 if test -n "$LIPO"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8243 $as_echo "$LIPO" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8251 if test -z "$ac_cv_prog_LIPO"; then
8252 ac_ct_LIPO=$LIPO
8253 # Extract the first word of "lipo", so it can be a program name with args.
8254 set dummy lipo; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$ac_ct_LIPO"; then
8261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8270 ac_cv_prog_ac_ct_LIPO="lipo"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8274 done
8275 done
8276 IFS=$as_save_IFS
8280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8281 if test -n "$ac_ct_LIPO"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8283 $as_echo "$ac_ct_LIPO" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8289 if test "x$ac_ct_LIPO" = x; then
8290 LIPO=":"
8291 else
8292 case $cross_compiling:$ac_tool_warned in
8293 yes:)
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8296 ac_tool_warned=yes ;;
8297 esac
8298 LIPO=$ac_ct_LIPO
8300 else
8301 LIPO="$ac_cv_prog_LIPO"
8304 if test -n "$ac_tool_prefix"; then
8305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}otool; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$OTOOL"; then
8313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8326 done
8327 done
8328 IFS=$as_save_IFS
8332 OTOOL=$ac_cv_prog_OTOOL
8333 if test -n "$OTOOL"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8335 $as_echo "$OTOOL" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8343 if test -z "$ac_cv_prog_OTOOL"; then
8344 ac_ct_OTOOL=$OTOOL
8345 # Extract the first word of "otool", so it can be a program name with args.
8346 set dummy otool; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 if test -n "$ac_ct_OTOOL"; then
8353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_ac_ct_OTOOL="otool"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8366 done
8367 done
8368 IFS=$as_save_IFS
8372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8373 if test -n "$ac_ct_OTOOL"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8375 $as_echo "$ac_ct_OTOOL" >&6; }
8376 else
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8381 if test "x$ac_ct_OTOOL" = x; then
8382 OTOOL=":"
8383 else
8384 case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390 OTOOL=$ac_ct_OTOOL
8392 else
8393 OTOOL="$ac_cv_prog_OTOOL"
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$OTOOL64"; then
8405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8424 OTOOL64=$ac_cv_prog_OTOOL64
8425 if test -n "$OTOOL64"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8427 $as_echo "$OTOOL64" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8435 if test -z "$ac_cv_prog_OTOOL64"; then
8436 ac_ct_OTOOL64=$OTOOL64
8437 # Extract the first word of "otool64", so it can be a program name with args.
8438 set dummy otool64; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 if test -n "$ac_ct_OTOOL64"; then
8445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_prog_ac_ct_OTOOL64="otool64"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8458 done
8459 done
8460 IFS=$as_save_IFS
8464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8465 if test -n "$ac_ct_OTOOL64"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8467 $as_echo "$ac_ct_OTOOL64" >&6; }
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8473 if test "x$ac_ct_OTOOL64" = x; then
8474 OTOOL64=":"
8475 else
8476 case $cross_compiling:$ac_tool_warned in
8477 yes:)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8481 esac
8482 OTOOL64=$ac_ct_OTOOL64
8484 else
8485 OTOOL64="$ac_cv_prog_OTOOL64"
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8515 $as_echo_n "checking for -single_module linker flag... " >&6; }
8516 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 lt_cv_apple_cc_single_mod=no
8520 if test -z "${LT_MULTI_MODULE}"; then
8521 # By default we will add the -single_module flag. You can override
8522 # by either setting the environment variable LT_MULTI_MODULE
8523 # non-empty at configure time, or by adding -multi_module to the
8524 # link flags.
8525 rm -rf libconftest.dylib*
8526 echo "int foo(void){return 1;}" > conftest.c
8527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8528 -dynamiclib -Wl,-single_module conftest.c" >&5
8529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8531 _lt_result=$?
8532 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8533 lt_cv_apple_cc_single_mod=yes
8534 else
8535 cat conftest.err >&5
8537 rm -rf libconftest.dylib*
8538 rm -f conftest.*
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8542 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8544 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8545 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_ld_exported_symbols_list=no
8549 save_LDFLAGS=$LDFLAGS
8550 echo "_main" > conftest.sym
8551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8556 main ()
8560 return 0;
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 lt_cv_ld_exported_symbols_list=yes
8565 else
8566 lt_cv_ld_exported_symbols_list=no
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LDFLAGS="$save_LDFLAGS"
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8576 $as_echo_n "checking for -force_load linker flag... " >&6; }
8577 if test "${lt_cv_ld_force_load+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 lt_cv_ld_force_load=no
8581 cat > conftest.c << _LT_EOF
8582 int forced_loaded() { return 2;}
8583 _LT_EOF
8584 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8585 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8586 echo "$AR cru libconftest.a conftest.o" >&5
8587 $AR cru libconftest.a conftest.o 2>&5
8588 cat > conftest.c << _LT_EOF
8589 int main() { return 0;}
8590 _LT_EOF
8591 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8592 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8593 _lt_result=$?
8594 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8595 lt_cv_ld_force_load=yes
8596 else
8597 cat conftest.err >&5
8599 rm -f conftest.err libconftest.a conftest conftest.c
8600 rm -rf conftest.dSYM
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8604 $as_echo "$lt_cv_ld_force_load" >&6; }
8605 case $host_os in
8606 rhapsody* | darwin1.[012])
8607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8608 darwin1.*)
8609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8610 darwin*) # darwin 5.x on
8611 # if running on 10.5 or later, the deployment target defaults
8612 # to the OS version, if on x86, and 10.4, the deployment
8613 # target defaults to 10.4. Don't you love it?
8614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8615 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8617 10.[012]*)
8618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8619 10.*)
8620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8621 esac
8623 esac
8624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8625 _lt_dar_single_mod='$single_module'
8627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8629 else
8630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8633 _lt_dsymutil='~$DSYMUTIL $lib || :'
8634 else
8635 _lt_dsymutil=
8638 esac
8640 for ac_header in dlfcn.h
8641 do :
8642 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8644 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8645 cat >>confdefs.h <<_ACEOF
8646 #define HAVE_DLFCN_H 1
8647 _ACEOF
8651 done
8658 # Set options
8663 enable_win32_dll=no
8666 # Check whether --enable-shared was given.
8667 if test "${enable_shared+set}" = set; then :
8668 enableval=$enable_shared; p=${PACKAGE-default}
8669 case $enableval in
8670 yes) enable_shared=yes ;;
8671 no) enable_shared=no ;;
8673 enable_shared=no
8674 # Look at the argument we got. We use all the common list separators.
8675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8676 for pkg in $enableval; do
8677 IFS="$lt_save_ifs"
8678 if test "X$pkg" = "X$p"; then
8679 enable_shared=yes
8681 done
8682 IFS="$lt_save_ifs"
8684 esac
8685 else
8686 enable_shared=yes
8697 # Check whether --enable-static was given.
8698 if test "${enable_static+set}" = set; then :
8699 enableval=$enable_static; p=${PACKAGE-default}
8700 case $enableval in
8701 yes) enable_static=yes ;;
8702 no) enable_static=no ;;
8704 enable_static=no
8705 # Look at the argument we got. We use all the common list separators.
8706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8707 for pkg in $enableval; do
8708 IFS="$lt_save_ifs"
8709 if test "X$pkg" = "X$p"; then
8710 enable_static=yes
8712 done
8713 IFS="$lt_save_ifs"
8715 esac
8716 else
8717 enable_static=yes
8729 # Check whether --with-pic was given.
8730 if test "${with_pic+set}" = set; then :
8731 withval=$with_pic; pic_mode="$withval"
8732 else
8733 pic_mode=default
8737 test -z "$pic_mode" && pic_mode=default
8745 # Check whether --enable-fast-install was given.
8746 if test "${enable_fast_install+set}" = set; then :
8747 enableval=$enable_fast_install; p=${PACKAGE-default}
8748 case $enableval in
8749 yes) enable_fast_install=yes ;;
8750 no) enable_fast_install=no ;;
8752 enable_fast_install=no
8753 # Look at the argument we got. We use all the common list separators.
8754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8755 for pkg in $enableval; do
8756 IFS="$lt_save_ifs"
8757 if test "X$pkg" = "X$p"; then
8758 enable_fast_install=yes
8760 done
8761 IFS="$lt_save_ifs"
8763 esac
8764 else
8765 enable_fast_install=yes
8778 # This can be used to rebuild libtool when needed
8779 LIBTOOL_DEPS="$ltmain"
8781 # Always use our own libtool.
8782 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8809 test -z "$LN_S" && LN_S="ln -s"
8824 if test -n "${ZSH_VERSION+set}" ; then
8825 setopt NO_GLOB_SUBST
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8829 $as_echo_n "checking for objdir... " >&6; }
8830 if test "${lt_cv_objdir+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 rm -f .libs 2>/dev/null
8834 mkdir .libs 2>/dev/null
8835 if test -d .libs; then
8836 lt_cv_objdir=.libs
8837 else
8838 # MS-DOS does not allow filenames that begin with a dot.
8839 lt_cv_objdir=_libs
8841 rmdir .libs 2>/dev/null
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8844 $as_echo "$lt_cv_objdir" >&6; }
8845 objdir=$lt_cv_objdir
8851 cat >>confdefs.h <<_ACEOF
8852 #define LT_OBJDIR "$lt_cv_objdir/"
8853 _ACEOF
8858 case $host_os in
8859 aix3*)
8860 # AIX sometimes has problems with the GCC collect2 program. For some
8861 # reason, if we set the COLLECT_NAMES environment variable, the problems
8862 # vanish in a puff of smoke.
8863 if test "X${COLLECT_NAMES+set}" != Xset; then
8864 COLLECT_NAMES=
8865 export COLLECT_NAMES
8868 esac
8870 # Global variables:
8871 ofile=libtool
8872 can_build_shared=yes
8874 # All known linkers require a `.a' archive for static linking (except MSVC,
8875 # which needs '.lib').
8876 libext=a
8878 with_gnu_ld="$lt_cv_prog_gnu_ld"
8880 old_CC="$CC"
8881 old_CFLAGS="$CFLAGS"
8883 # Set sane defaults for various variables
8884 test -z "$CC" && CC=cc
8885 test -z "$LTCC" && LTCC=$CC
8886 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8887 test -z "$LD" && LD=ld
8888 test -z "$ac_objext" && ac_objext=o
8890 for cc_temp in $compiler""; do
8891 case $cc_temp in
8892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8894 \-*) ;;
8895 *) break;;
8896 esac
8897 done
8898 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8901 # Only perform the check for file, if the check method requires it
8902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8903 case $deplibs_check_method in
8904 file_magic*)
8905 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8907 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8908 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 case $MAGIC_CMD in
8912 [\\/*] | ?:[\\/]*)
8913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8916 lt_save_MAGIC_CMD="$MAGIC_CMD"
8917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8919 for ac_dir in $ac_dummy; do
8920 IFS="$lt_save_ifs"
8921 test -z "$ac_dir" && ac_dir=.
8922 if test -f $ac_dir/${ac_tool_prefix}file; then
8923 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8924 if test -n "$file_magic_test_file"; then
8925 case $deplibs_check_method in
8926 "file_magic "*)
8927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8930 $EGREP "$file_magic_regex" > /dev/null; then
8932 else
8933 cat <<_LT_EOF 1>&2
8935 *** Warning: the command libtool uses to detect shared libraries,
8936 *** $file_magic_cmd, produces output that libtool cannot recognize.
8937 *** The result is that libtool may fail to recognize shared libraries
8938 *** as such. This will affect the creation of libtool libraries that
8939 *** depend on shared libraries, but programs linked with such libtool
8940 *** libraries will work regardless of this problem. Nevertheless, you
8941 *** may want to report the problem to your system manager and/or to
8942 *** bug-libtool@gnu.org
8944 _LT_EOF
8945 fi ;;
8946 esac
8948 break
8950 done
8951 IFS="$lt_save_ifs"
8952 MAGIC_CMD="$lt_save_MAGIC_CMD"
8954 esac
8957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8958 if test -n "$MAGIC_CMD"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8960 $as_echo "$MAGIC_CMD" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8970 if test -z "$lt_cv_path_MAGIC_CMD"; then
8971 if test -n "$ac_tool_prefix"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8973 $as_echo_n "checking for file... " >&6; }
8974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 case $MAGIC_CMD in
8978 [\\/*] | ?:[\\/]*)
8979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8982 lt_save_MAGIC_CMD="$MAGIC_CMD"
8983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8985 for ac_dir in $ac_dummy; do
8986 IFS="$lt_save_ifs"
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f $ac_dir/file; then
8989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8990 if test -n "$file_magic_test_file"; then
8991 case $deplibs_check_method in
8992 "file_magic "*)
8993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8996 $EGREP "$file_magic_regex" > /dev/null; then
8998 else
8999 cat <<_LT_EOF 1>&2
9001 *** Warning: the command libtool uses to detect shared libraries,
9002 *** $file_magic_cmd, produces output that libtool cannot recognize.
9003 *** The result is that libtool may fail to recognize shared libraries
9004 *** as such. This will affect the creation of libtool libraries that
9005 *** depend on shared libraries, but programs linked with such libtool
9006 *** libraries will work regardless of this problem. Nevertheless, you
9007 *** may want to report the problem to your system manager and/or to
9008 *** bug-libtool@gnu.org
9010 _LT_EOF
9011 fi ;;
9012 esac
9014 break
9016 done
9017 IFS="$lt_save_ifs"
9018 MAGIC_CMD="$lt_save_MAGIC_CMD"
9020 esac
9023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9024 if test -n "$MAGIC_CMD"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9026 $as_echo "$MAGIC_CMD" >&6; }
9027 else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9033 else
9034 MAGIC_CMD=:
9040 esac
9042 # Use C for the default configuration in the libtool script
9044 lt_save_CC="$CC"
9045 ac_ext=c
9046 ac_cpp='$CPP $CPPFLAGS'
9047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9052 # Source file extension for C test sources.
9053 ac_ext=c
9055 # Object file extension for compiled C test sources.
9056 objext=o
9057 objext=$objext
9059 # Code to be used in simple compile tests
9060 lt_simple_compile_test_code="int some_variable = 0;"
9062 # Code to be used in simple link tests
9063 lt_simple_link_test_code='int main(){return(0);}'
9071 # If no C compiler was specified, use CC.
9072 LTCC=${LTCC-"$CC"}
9074 # If no C compiler flags were specified, use CFLAGS.
9075 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9077 # Allow CC to be a program name with arguments.
9078 compiler=$CC
9080 # Save the default compiler, since it gets overwritten when the other
9081 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9082 compiler_DEFAULT=$CC
9084 # save warnings/boilerplate of simple test code
9085 ac_outfile=conftest.$ac_objext
9086 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9088 _lt_compiler_boilerplate=`cat conftest.err`
9089 $RM conftest*
9091 ac_outfile=conftest.$ac_objext
9092 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9094 _lt_linker_boilerplate=`cat conftest.err`
9095 $RM -r conftest*
9098 ## CAVEAT EMPTOR:
9099 ## There is no encapsulation within the following macros, do not change
9100 ## the running order or otherwise move them around unless you know exactly
9101 ## what you are doing...
9102 if test -n "$compiler"; then
9104 lt_prog_compiler_no_builtin_flag=
9106 if test "$GCC" = yes; then
9107 case $cc_basename in
9108 nvcc*)
9109 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9111 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9112 esac
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9115 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9116 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 lt_cv_prog_compiler_rtti_exceptions=no
9120 ac_outfile=conftest.$ac_objext
9121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9122 lt_compiler_flag="-fno-rtti -fno-exceptions"
9123 # Insert the option either (1) after the last *FLAGS variable, or
9124 # (2) before a word containing "conftest.", or (3) at the end.
9125 # Note that $ac_compile itself does not contain backslashes and begins
9126 # with a dollar sign (not a hyphen), so the echo should work correctly.
9127 # The option is referenced via a variable to avoid confusing sed.
9128 lt_compile=`echo "$ac_compile" | $SED \
9129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9131 -e 's:$: $lt_compiler_flag:'`
9132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9133 (eval "$lt_compile" 2>conftest.err)
9134 ac_status=$?
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 if (exit $ac_status) && test -s "$ac_outfile"; then
9138 # The compiler can only warn and ignore the option if not recognized
9139 # So say no if there are warnings other than the usual output.
9140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9143 lt_cv_prog_compiler_rtti_exceptions=yes
9146 $RM conftest*
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9150 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9152 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9153 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9154 else
9165 lt_prog_compiler_wl=
9166 lt_prog_compiler_pic=
9167 lt_prog_compiler_static=
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9172 if test "$GCC" = yes; then
9173 lt_prog_compiler_wl='-Wl,'
9174 lt_prog_compiler_static='-static'
9176 case $host_os in
9177 aix*)
9178 # All AIX code is PIC.
9179 if test "$host_cpu" = ia64; then
9180 # AIX 5 now supports IA64 processor
9181 lt_prog_compiler_static='-Bstatic'
9183 lt_prog_compiler_pic='-fPIC'
9186 amigaos*)
9187 case $host_cpu in
9188 powerpc)
9189 # see comment about AmigaOS4 .so support
9190 lt_prog_compiler_pic='-fPIC'
9192 m68k)
9193 # FIXME: we need at least 68020 code to build shared libraries, but
9194 # adding the `-m68020' flag to GCC prevents building anything better,
9195 # like `-m68040'.
9196 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9198 esac
9201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9202 # PIC is the default for these OSes.
9205 mingw* | cygwin* | pw32* | os2* | cegcc*)
9206 # This hack is so that the source file can tell whether it is being
9207 # built for inclusion in a dll (and should export symbols for example).
9208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9209 # (--disable-auto-import) libraries
9210 lt_prog_compiler_pic='-DDLL_EXPORT'
9213 darwin* | rhapsody*)
9214 # PIC is the default on this platform
9215 # Common symbols not allowed in MH_DYLIB files
9216 lt_prog_compiler_pic='-fno-common'
9219 haiku*)
9220 # PIC is the default for Haiku.
9221 # The "-static" flag exists, but is broken.
9222 lt_prog_compiler_static=
9225 hpux*)
9226 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9227 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9228 # sets the default TLS model and affects inlining.
9229 case $host_cpu in
9230 hppa*64*)
9231 # +Z the default
9234 lt_prog_compiler_pic='-fPIC'
9236 esac
9239 interix[3-9]*)
9240 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9241 # Instead, we relocate shared libraries at runtime.
9244 msdosdjgpp*)
9245 # Just because we use GCC doesn't mean we suddenly get shared libraries
9246 # on systems that don't support them.
9247 lt_prog_compiler_can_build_shared=no
9248 enable_shared=no
9251 *nto* | *qnx*)
9252 # QNX uses GNU C++, but need to define -shared option too, otherwise
9253 # it will coredump.
9254 lt_prog_compiler_pic='-fPIC -shared'
9257 sysv4*MP*)
9258 if test -d /usr/nec; then
9259 lt_prog_compiler_pic=-Kconform_pic
9264 lt_prog_compiler_pic='-fPIC'
9266 esac
9268 case $cc_basename in
9269 nvcc*) # Cuda Compiler Driver 2.2
9270 lt_prog_compiler_wl='-Xlinker '
9271 lt_prog_compiler_pic='-Xcompiler -fPIC'
9273 esac
9274 else
9275 # PORTME Check for flag to pass linker flags through the system compiler.
9276 case $host_os in
9277 aix*)
9278 lt_prog_compiler_wl='-Wl,'
9279 if test "$host_cpu" = ia64; then
9280 # AIX 5 now supports IA64 processor
9281 lt_prog_compiler_static='-Bstatic'
9282 else
9283 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9287 mingw* | cygwin* | pw32* | os2* | cegcc*)
9288 # This hack is so that the source file can tell whether it is being
9289 # built for inclusion in a dll (and should export symbols for example).
9290 lt_prog_compiler_pic='-DDLL_EXPORT'
9293 hpux9* | hpux10* | hpux11*)
9294 lt_prog_compiler_wl='-Wl,'
9295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9296 # not for PA HP-UX.
9297 case $host_cpu in
9298 hppa*64*|ia64*)
9299 # +Z the default
9302 lt_prog_compiler_pic='+Z'
9304 esac
9305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9306 lt_prog_compiler_static='${wl}-a ${wl}archive'
9309 irix5* | irix6* | nonstopux*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # PIC (with -KPIC) is the default.
9312 lt_prog_compiler_static='-non_shared'
9315 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9316 case $cc_basename in
9317 # old Intel for x86_64 which still supported -KPIC.
9318 ecc*)
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-static'
9323 # icc used to be incompatible with GCC.
9324 # ICC 10 doesn't accept -KPIC any more.
9325 icc* | ifort*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-fPIC'
9328 lt_prog_compiler_static='-static'
9330 # Lahey Fortran 8.1.
9331 lf95*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='--shared'
9334 lt_prog_compiler_static='--static'
9336 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9337 # Portland Group compilers (*not* the Pentium gcc compiler,
9338 # which looks to be a dead project)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_pic='-fpic'
9341 lt_prog_compiler_static='-Bstatic'
9343 ccc*)
9344 lt_prog_compiler_wl='-Wl,'
9345 # All Alpha code is PIC.
9346 lt_prog_compiler_static='-non_shared'
9348 xl* | bgxl* | bgf* | mpixl*)
9349 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-qpic'
9352 lt_prog_compiler_static='-qstaticlink'
9355 case `$CC -V 2>&1 | sed 5q` in
9356 *Sun\ F* | *Sun*Fortran*)
9357 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 lt_prog_compiler_wl=''
9362 *Sun\ C*)
9363 # Sun C 5.9
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 lt_prog_compiler_wl='-Wl,'
9368 esac
9370 esac
9373 newsos6)
9374 lt_prog_compiler_pic='-KPIC'
9375 lt_prog_compiler_static='-Bstatic'
9378 *nto* | *qnx*)
9379 # QNX uses GNU C++, but need to define -shared option too, otherwise
9380 # it will coredump.
9381 lt_prog_compiler_pic='-fPIC -shared'
9384 osf3* | osf4* | osf5*)
9385 lt_prog_compiler_wl='-Wl,'
9386 # All OSF/1 code is PIC.
9387 lt_prog_compiler_static='-non_shared'
9390 rdos*)
9391 lt_prog_compiler_static='-non_shared'
9394 solaris*)
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 case $cc_basename in
9398 f77* | f90* | f95*)
9399 lt_prog_compiler_wl='-Qoption ld ';;
9401 lt_prog_compiler_wl='-Wl,';;
9402 esac
9405 sunos4*)
9406 lt_prog_compiler_wl='-Qoption ld '
9407 lt_prog_compiler_pic='-PIC'
9408 lt_prog_compiler_static='-Bstatic'
9411 sysv4 | sysv4.2uw2* | sysv4.3*)
9412 lt_prog_compiler_wl='-Wl,'
9413 lt_prog_compiler_pic='-KPIC'
9414 lt_prog_compiler_static='-Bstatic'
9417 sysv4*MP*)
9418 if test -d /usr/nec ;then
9419 lt_prog_compiler_pic='-Kconform_pic'
9420 lt_prog_compiler_static='-Bstatic'
9424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9425 lt_prog_compiler_wl='-Wl,'
9426 lt_prog_compiler_pic='-KPIC'
9427 lt_prog_compiler_static='-Bstatic'
9430 unicos*)
9431 lt_prog_compiler_wl='-Wl,'
9432 lt_prog_compiler_can_build_shared=no
9435 uts4*)
9436 lt_prog_compiler_pic='-pic'
9437 lt_prog_compiler_static='-Bstatic'
9441 lt_prog_compiler_can_build_shared=no
9443 esac
9446 case $host_os in
9447 # For platforms which do not support PIC, -DPIC is meaningless:
9448 *djgpp*)
9449 lt_prog_compiler_pic=
9452 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9454 esac
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9456 $as_echo "$lt_prog_compiler_pic" >&6; }
9464 # Check to make sure the PIC flag actually works.
9466 if test -n "$lt_prog_compiler_pic"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9468 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9469 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 lt_cv_prog_compiler_pic_works=no
9473 ac_outfile=conftest.$ac_objext
9474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9475 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9476 # Insert the option either (1) after the last *FLAGS variable, or
9477 # (2) before a word containing "conftest.", or (3) at the end.
9478 # Note that $ac_compile itself does not contain backslashes and begins
9479 # with a dollar sign (not a hyphen), so the echo should work correctly.
9480 # The option is referenced via a variable to avoid confusing sed.
9481 lt_compile=`echo "$ac_compile" | $SED \
9482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9484 -e 's:$: $lt_compiler_flag:'`
9485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9486 (eval "$lt_compile" 2>conftest.err)
9487 ac_status=$?
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 if (exit $ac_status) && test -s "$ac_outfile"; then
9491 # The compiler can only warn and ignore the option if not recognized
9492 # So say no if there are warnings other than the usual output.
9493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9495 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9496 lt_cv_prog_compiler_pic_works=yes
9499 $RM conftest*
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9503 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9505 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9506 case $lt_prog_compiler_pic in
9507 "" | " "*) ;;
9508 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9509 esac
9510 else
9511 lt_prog_compiler_pic=
9512 lt_prog_compiler_can_build_shared=no
9523 # Check to make sure the static flag actually works.
9525 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9527 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9528 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 lt_cv_prog_compiler_static_works=no
9532 save_LDFLAGS="$LDFLAGS"
9533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9534 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9536 # The linker can only warn and ignore the option if not recognized
9537 # So say no if there are warnings
9538 if test -s conftest.err; then
9539 # Append any errors to the config.log.
9540 cat conftest.err 1>&5
9541 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9543 if diff conftest.exp conftest.er2 >/dev/null; then
9544 lt_cv_prog_compiler_static_works=yes
9546 else
9547 lt_cv_prog_compiler_static_works=yes
9550 $RM -r conftest*
9551 LDFLAGS="$save_LDFLAGS"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9555 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9557 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9559 else
9560 lt_prog_compiler_static=
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 lt_cv_prog_compiler_c_o=no
9575 $RM -r conftest 2>/dev/null
9576 mkdir conftest
9577 cd conftest
9578 mkdir out
9579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9581 lt_compiler_flag="-o out/conftest2.$ac_objext"
9582 # Insert the option either (1) after the last *FLAGS variable, or
9583 # (2) before a word containing "conftest.", or (3) at the end.
9584 # Note that $ac_compile itself does not contain backslashes and begins
9585 # with a dollar sign (not a hyphen), so the echo should work correctly.
9586 lt_compile=`echo "$ac_compile" | $SED \
9587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9589 -e 's:$: $lt_compiler_flag:'`
9590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9591 (eval "$lt_compile" 2>out/conftest.err)
9592 ac_status=$?
9593 cat out/conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9596 then
9597 # The compiler can only warn and ignore the option if not recognized
9598 # So say no if there are warnings
9599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9602 lt_cv_prog_compiler_c_o=yes
9605 chmod u+w . 2>&5
9606 $RM conftest*
9607 # SGI C++ compiler will create directory out/ii_files/ for
9608 # template instantiation
9609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9610 $RM out/* && rmdir out
9611 cd ..
9612 $RM -r conftest
9613 $RM conftest*
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9617 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9625 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9626 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 lt_cv_prog_compiler_c_o=no
9630 $RM -r conftest 2>/dev/null
9631 mkdir conftest
9632 cd conftest
9633 mkdir out
9634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9636 lt_compiler_flag="-o out/conftest2.$ac_objext"
9637 # Insert the option either (1) after the last *FLAGS variable, or
9638 # (2) before a word containing "conftest.", or (3) at the end.
9639 # Note that $ac_compile itself does not contain backslashes and begins
9640 # with a dollar sign (not a hyphen), so the echo should work correctly.
9641 lt_compile=`echo "$ac_compile" | $SED \
9642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9644 -e 's:$: $lt_compiler_flag:'`
9645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9646 (eval "$lt_compile" 2>out/conftest.err)
9647 ac_status=$?
9648 cat out/conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9651 then
9652 # The compiler can only warn and ignore the option if not recognized
9653 # So say no if there are warnings
9654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9657 lt_cv_prog_compiler_c_o=yes
9660 chmod u+w . 2>&5
9661 $RM conftest*
9662 # SGI C++ compiler will create directory out/ii_files/ for
9663 # template instantiation
9664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9665 $RM out/* && rmdir out
9666 cd ..
9667 $RM -r conftest
9668 $RM conftest*
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9672 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9677 hard_links="nottested"
9678 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9679 # do not overwrite the value of need_locks provided by the user
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9681 $as_echo_n "checking if we can lock with hard links... " >&6; }
9682 hard_links=yes
9683 $RM conftest*
9684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9685 touch conftest.a
9686 ln conftest.a conftest.b 2>&5 || hard_links=no
9687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9689 $as_echo "$hard_links" >&6; }
9690 if test "$hard_links" = no; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9692 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9693 need_locks=warn
9695 else
9696 need_locks=no
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9705 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9707 runpath_var=
9708 allow_undefined_flag=
9709 always_export_symbols=no
9710 archive_cmds=
9711 archive_expsym_cmds=
9712 compiler_needs_object=no
9713 enable_shared_with_static_runtimes=no
9714 export_dynamic_flag_spec=
9715 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9716 hardcode_automatic=no
9717 hardcode_direct=no
9718 hardcode_direct_absolute=no
9719 hardcode_libdir_flag_spec=
9720 hardcode_libdir_flag_spec_ld=
9721 hardcode_libdir_separator=
9722 hardcode_minus_L=no
9723 hardcode_shlibpath_var=unsupported
9724 inherit_rpath=no
9725 link_all_deplibs=unknown
9726 module_cmds=
9727 module_expsym_cmds=
9728 old_archive_from_new_cmds=
9729 old_archive_from_expsyms_cmds=
9730 thread_safe_flag_spec=
9731 whole_archive_flag_spec=
9732 # include_expsyms should be a list of space-separated symbols to be *always*
9733 # included in the symbol list
9734 include_expsyms=
9735 # exclude_expsyms can be an extended regexp of symbols to exclude
9736 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9737 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9738 # as well as any symbol that contains `d'.
9739 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9740 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9741 # platforms (ab)use it in PIC code, but their linkers get confused if
9742 # the symbol is explicitly referenced. Since portable code cannot
9743 # rely on this symbol name, it's probably fine to never include it in
9744 # preloaded symbol tables.
9745 # Exclude shared library initialization/finalization symbols.
9746 extract_expsyms_cmds=
9748 case $host_os in
9749 cygwin* | mingw* | pw32* | cegcc*)
9750 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9751 # When not using gcc, we currently assume that we are using
9752 # Microsoft Visual C++.
9753 if test "$GCC" != yes; then
9754 with_gnu_ld=no
9757 interix*)
9758 # we just hope/assume this is gcc and not c89 (= MSVC++)
9759 with_gnu_ld=yes
9761 openbsd*)
9762 with_gnu_ld=no
9764 esac
9766 ld_shlibs=yes
9768 # On some targets, GNU ld is compatible enough with the native linker
9769 # that we're better off using the native interface for both.
9770 lt_use_gnu_ld_interface=no
9771 if test "$with_gnu_ld" = yes; then
9772 case $host_os in
9773 aix*)
9774 # The AIX port of GNU ld has always aspired to compatibility
9775 # with the native linker. However, as the warning in the GNU ld
9776 # block says, versions before 2.19.5* couldn't really create working
9777 # shared libraries, regardless of the interface used.
9778 case `$LD -v 2>&1` in
9779 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9780 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9781 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9783 lt_use_gnu_ld_interface=yes
9785 esac
9788 lt_use_gnu_ld_interface=yes
9790 esac
9793 if test "$lt_use_gnu_ld_interface" = yes; then
9794 # If archive_cmds runs LD, not CC, wlarc should be empty
9795 wlarc='${wl}'
9797 # Set some defaults for GNU ld with shared library support. These
9798 # are reset later if shared libraries are not supported. Putting them
9799 # here allows them to be overridden if necessary.
9800 runpath_var=LD_RUN_PATH
9801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9802 export_dynamic_flag_spec='${wl}--export-dynamic'
9803 # ancient GNU ld didn't support --whole-archive et. al.
9804 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9805 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9806 else
9807 whole_archive_flag_spec=
9809 supports_anon_versioning=no
9810 case `$LD -v 2>&1` in
9811 *GNU\ gold*) supports_anon_versioning=yes ;;
9812 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9813 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9814 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9815 *\ 2.11.*) ;; # other 2.11 versions
9816 *) supports_anon_versioning=yes ;;
9817 esac
9819 # See if GNU ld supports shared libraries.
9820 case $host_os in
9821 aix[3-9]*)
9822 # On AIX/PPC, the GNU linker is very broken
9823 if test "$host_cpu" != ia64; then
9824 ld_shlibs=no
9825 cat <<_LT_EOF 1>&2
9827 *** Warning: the GNU linker, at least up to release 2.19, is reported
9828 *** to be unable to reliably create shared libraries on AIX.
9829 *** Therefore, libtool is disabling shared libraries support. If you
9830 *** really care for shared libraries, you may want to install binutils
9831 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9832 *** You will then need to restart the configuration process.
9834 _LT_EOF
9838 amigaos*)
9839 case $host_cpu in
9840 powerpc)
9841 # see comment about AmigaOS4 .so support
9842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843 archive_expsym_cmds=''
9845 m68k)
9846 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)'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_minus_L=yes
9850 esac
9853 beos*)
9854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9855 allow_undefined_flag=unsupported
9856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9857 # support --undefined. This deserves some investigation. FIXME
9858 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9859 else
9860 ld_shlibs=no
9864 cygwin* | mingw* | pw32* | cegcc*)
9865 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9866 # as there is no search path for DLLs.
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 export_dynamic_flag_spec='${wl}--export-all-symbols'
9869 allow_undefined_flag=unsupported
9870 always_export_symbols=no
9871 enable_shared_with_static_runtimes=yes
9872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9874 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9876 # If the export-symbols file already is a .def file (1st line
9877 # is EXPORTS), use it as is; otherwise, prepend...
9878 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9879 cp $export_symbols $output_objdir/$soname.def;
9880 else
9881 echo EXPORTS > $output_objdir/$soname.def;
9882 cat $export_symbols >> $output_objdir/$soname.def;
9884 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9885 else
9886 ld_shlibs=no
9890 haiku*)
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892 link_all_deplibs=yes
9895 interix[3-9]*)
9896 hardcode_direct=no
9897 hardcode_shlibpath_var=no
9898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9899 export_dynamic_flag_spec='${wl}-E'
9900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9901 # Instead, shared libraries are loaded at an image base (0x10000000 by
9902 # default) and relocated if they conflict, which is a slow very memory
9903 # consuming and fragmenting process. To avoid this, we pick a random,
9904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9907 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'
9910 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9911 tmp_diet=no
9912 if test "$host_os" = linux-dietlibc; then
9913 case $cc_basename in
9914 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9915 esac
9917 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9918 && test "$tmp_diet" = no
9919 then
9920 tmp_addflag=
9921 tmp_sharedflag='-shared'
9922 case $cc_basename,$host_cpu in
9923 pgcc*) # Portland Group C compiler
9924 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'
9925 tmp_addflag=' $pic_flag'
9927 pgf77* | pgf90* | pgf95* | pgfortran*)
9928 # Portland Group f77 and f90 compilers
9929 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'
9930 tmp_addflag=' $pic_flag -Mnomain' ;;
9931 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9932 tmp_addflag=' -i_dynamic' ;;
9933 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9934 tmp_addflag=' -i_dynamic -nofor_main' ;;
9935 ifc* | ifort*) # Intel Fortran compiler
9936 tmp_addflag=' -nofor_main' ;;
9937 lf95*) # Lahey Fortran 8.1
9938 whole_archive_flag_spec=
9939 tmp_sharedflag='--shared' ;;
9940 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9941 tmp_sharedflag='-qmkshrobj'
9942 tmp_addflag= ;;
9943 nvcc*) # Cuda Compiler Driver 2.2
9944 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'
9945 compiler_needs_object=yes
9947 esac
9948 case `$CC -V 2>&1 | sed 5q` in
9949 *Sun\ C*) # Sun C 5.9
9950 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'
9951 compiler_needs_object=yes
9952 tmp_sharedflag='-G' ;;
9953 *Sun\ F*) # Sun Fortran 8.3
9954 tmp_sharedflag='-G' ;;
9955 esac
9956 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 if test "x$supports_anon_versioning" = xyes; then
9959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9961 echo "local: *; };" >> $output_objdir/$libname.ver~
9962 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9965 case $cc_basename in
9966 xlf* | bgf* | bgxlf* | mpixlf*)
9967 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9968 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9969 hardcode_libdir_flag_spec=
9970 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9971 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9972 if test "x$supports_anon_versioning" = xyes; then
9973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9975 echo "local: *; };" >> $output_objdir/$libname.ver~
9976 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9979 esac
9980 else
9981 ld_shlibs=no
9985 netbsd*)
9986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9987 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9988 wlarc=
9989 else
9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9995 solaris*)
9996 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9997 ld_shlibs=no
9998 cat <<_LT_EOF 1>&2
10000 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10001 *** create shared libraries on Solaris systems. Therefore, libtool
10002 *** is disabling shared libraries support. We urge you to upgrade GNU
10003 *** binutils to release 2.9.1 or newer. Another option is to modify
10004 *** your PATH or compiler configuration so that the native linker is
10005 *** used, and then restart.
10007 _LT_EOF
10008 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10011 else
10012 ld_shlibs=no
10016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10017 case `$LD -v 2>&1` in
10018 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10019 ld_shlibs=no
10020 cat <<_LT_EOF 1>&2
10022 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10023 *** reliably create shared libraries on SCO systems. Therefore, libtool
10024 *** is disabling shared libraries support. We urge you to upgrade GNU
10025 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10026 *** your PATH or compiler configuration so that the native linker is
10027 *** used, and then restart.
10029 _LT_EOF
10032 # For security reasons, it is highly recommended that you always
10033 # use absolute paths for naming shared libraries, and exclude the
10034 # DT_RUNPATH tag from executables and libraries. But doing so
10035 # requires that you compile everything twice, which is a pain.
10036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10040 else
10041 ld_shlibs=no
10044 esac
10047 sunos4*)
10048 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10049 wlarc=
10050 hardcode_direct=yes
10051 hardcode_shlibpath_var=no
10055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058 else
10059 ld_shlibs=no
10062 esac
10064 if test "$ld_shlibs" = no; then
10065 runpath_var=
10066 hardcode_libdir_flag_spec=
10067 export_dynamic_flag_spec=
10068 whole_archive_flag_spec=
10070 else
10071 # PORTME fill in a description of your system's linker (not GNU ld)
10072 case $host_os in
10073 aix3*)
10074 allow_undefined_flag=unsupported
10075 always_export_symbols=yes
10076 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'
10077 # Note: this linker hardcodes the directories in LIBPATH if there
10078 # are no directories specified by -L.
10079 hardcode_minus_L=yes
10080 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10081 # Neither direct hardcoding nor static linking is supported with a
10082 # broken collect2.
10083 hardcode_direct=unsupported
10087 aix[4-9]*)
10088 if test "$host_cpu" = ia64; then
10089 # On IA64, the linker does run time linking by default, so we don't
10090 # have to do anything special.
10091 aix_use_runtimelinking=no
10092 exp_sym_flag='-Bexport'
10093 no_entry_flag=""
10094 else
10095 # If we're using GNU nm, then we don't want the "-C" option.
10096 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10097 # Also, AIX nm treats weak defined symbols like other global
10098 # defined symbols, whereas GNU nm marks them as "W".
10099 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10100 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'
10101 else
10102 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'
10104 aix_use_runtimelinking=no
10106 # Test if we are trying to use run time linking or normal
10107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10108 # need to do runtime linking.
10109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10110 for ld_flag in $LDFLAGS; do
10111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10112 aix_use_runtimelinking=yes
10113 break
10115 done
10117 esac
10119 exp_sym_flag='-bexport'
10120 no_entry_flag='-bnoentry'
10123 # When large executables or shared objects are built, AIX ld can
10124 # have problems creating the table of contents. If linking a library
10125 # or program results in "error TOC overflow" add -mminimal-toc to
10126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10129 archive_cmds=''
10130 hardcode_direct=yes
10131 hardcode_direct_absolute=yes
10132 hardcode_libdir_separator=':'
10133 link_all_deplibs=yes
10134 file_list_spec='${wl}-f,'
10136 if test "$GCC" = yes; then
10137 case $host_os in aix4.[012]|aix4.[012].*)
10138 # We only want to do this on AIX 4.2 and lower, the check
10139 # below for broken collect2 doesn't work under 4.3+
10140 collect2name=`${CC} -print-prog-name=collect2`
10141 if test -f "$collect2name" &&
10142 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10143 then
10144 # We have reworked collect2
10146 else
10147 # We have old collect2
10148 hardcode_direct=unsupported
10149 # It fails to find uninstalled libraries when the uninstalled
10150 # path is not listed in the libpath. Setting hardcode_minus_L
10151 # to unsupported forces relinking
10152 hardcode_minus_L=yes
10153 hardcode_libdir_flag_spec='-L$libdir'
10154 hardcode_libdir_separator=
10157 esac
10158 shared_flag='-shared'
10159 if test "$aix_use_runtimelinking" = yes; then
10160 shared_flag="$shared_flag "'${wl}-G'
10162 else
10163 # not using gcc
10164 if test "$host_cpu" = ia64; then
10165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10166 # chokes on -Wl,-G. The following line is correct:
10167 shared_flag='-G'
10168 else
10169 if test "$aix_use_runtimelinking" = yes; then
10170 shared_flag='${wl}-G'
10171 else
10172 shared_flag='${wl}-bM:SRE'
10177 export_dynamic_flag_spec='${wl}-bexpall'
10178 # It seems that -bexpall does not export symbols beginning with
10179 # underscore (_), so it is better to generate a list of symbols to export.
10180 always_export_symbols=yes
10181 if test "$aix_use_runtimelinking" = yes; then
10182 # Warning - without using the other runtime loading flags (-brtl),
10183 # -berok will link without error, but may produce a broken library.
10184 allow_undefined_flag='-berok'
10185 # Determine the default libpath from the value encoded in an
10186 # empty executable.
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10191 main ()
10195 return 0;
10197 _ACEOF
10198 if ac_fn_c_try_link "$LINENO"; then :
10200 lt_aix_libpath_sed='
10201 /Import File Strings/,/^$/ {
10202 /^0/ {
10203 s/^0 *\(.*\)$/\1/
10207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10208 # Check for a 64-bit object if we didn't find anything.
10209 if test -z "$aix_libpath"; then
10210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10217 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10218 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"
10219 else
10220 if test "$host_cpu" = ia64; then
10221 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10222 allow_undefined_flag="-z nodefs"
10223 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"
10224 else
10225 # Determine the default libpath from the value encoded in an
10226 # empty executable.
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228 /* end confdefs.h. */
10231 main ()
10235 return 0;
10237 _ACEOF
10238 if ac_fn_c_try_link "$LINENO"; then :
10240 lt_aix_libpath_sed='
10241 /Import File Strings/,/^$/ {
10242 /^0/ {
10243 s/^0 *\(.*\)$/\1/
10247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10248 # Check for a 64-bit object if we didn't find anything.
10249 if test -z "$aix_libpath"; then
10250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10257 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10258 # Warning - without using the other run time loading flags,
10259 # -berok will link without error, but may produce a broken library.
10260 no_undefined_flag=' ${wl}-bernotok'
10261 allow_undefined_flag=' ${wl}-berok'
10262 if test "$with_gnu_ld" = yes; then
10263 # We only use this code for GNU lds that support --whole-archive.
10264 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10265 else
10266 # Exported symbols can be pulled into shared objects from archives
10267 whole_archive_flag_spec='$convenience'
10269 archive_cmds_need_lc=yes
10270 # This is similar to how AIX traditionally builds its shared libraries.
10271 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'
10276 amigaos*)
10277 case $host_cpu in
10278 powerpc)
10279 # see comment about AmigaOS4 .so support
10280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281 archive_expsym_cmds=''
10283 m68k)
10284 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)'
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_minus_L=yes
10288 esac
10291 bsdi[45]*)
10292 export_dynamic_flag_spec=-rdynamic
10295 cygwin* | mingw* | pw32* | cegcc*)
10296 # When not using gcc, we currently assume that we are using
10297 # Microsoft Visual C++.
10298 # hardcode_libdir_flag_spec is actually meaningless, as there is
10299 # no search path for DLLs.
10300 hardcode_libdir_flag_spec=' '
10301 allow_undefined_flag=unsupported
10302 # Tell ltmain to make .lib files, not .a files.
10303 libext=lib
10304 # Tell ltmain to make .dll files, not .so files.
10305 shrext_cmds=".dll"
10306 # FIXME: Setting linknames here is a bad hack.
10307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10308 # The linker will automatically build a .lib file if we build a DLL.
10309 old_archive_from_new_cmds='true'
10310 # FIXME: Should let the user specify the lib program.
10311 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10312 fix_srcfile_path='`cygpath -w "$srcfile"`'
10313 enable_shared_with_static_runtimes=yes
10316 darwin* | rhapsody*)
10319 archive_cmds_need_lc=no
10320 hardcode_direct=no
10321 hardcode_automatic=yes
10322 hardcode_shlibpath_var=unsupported
10323 if test "$lt_cv_ld_force_load" = "yes"; then
10324 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\"`'
10325 else
10326 whole_archive_flag_spec=''
10328 link_all_deplibs=yes
10329 allow_undefined_flag="$_lt_dar_allow_undefined"
10330 case $cc_basename in
10331 ifort*) _lt_dar_can_shared=yes ;;
10332 *) _lt_dar_can_shared=$GCC ;;
10333 esac
10334 if test "$_lt_dar_can_shared" = "yes"; then
10335 output_verbose_link_cmd=func_echo_all
10336 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10337 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10338 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}"
10339 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}"
10341 else
10342 ld_shlibs=no
10347 dgux*)
10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_shlibpath_var=no
10353 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10354 # support. Future versions do this automatically, but an explicit c++rt0.o
10355 # does not break anything, and helps significantly (at the cost of a little
10356 # extra space).
10357 freebsd2.2*)
10358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10359 hardcode_libdir_flag_spec='-R$libdir'
10360 hardcode_direct=yes
10361 hardcode_shlibpath_var=no
10364 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10365 freebsd2.*)
10366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10367 hardcode_direct=yes
10368 hardcode_minus_L=yes
10369 hardcode_shlibpath_var=no
10372 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10373 freebsd* | dragonfly*)
10374 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10375 hardcode_libdir_flag_spec='-R$libdir'
10376 hardcode_direct=yes
10377 hardcode_shlibpath_var=no
10380 hpux9*)
10381 if test "$GCC" = yes; then
10382 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'
10383 else
10384 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'
10386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10387 hardcode_libdir_separator=:
10388 hardcode_direct=yes
10390 # hardcode_minus_L: Not really in the search PATH,
10391 # but as the default location of the library.
10392 hardcode_minus_L=yes
10393 export_dynamic_flag_spec='${wl}-E'
10396 hpux10*)
10397 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10399 else
10400 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10402 if test "$with_gnu_ld" = no; then
10403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10404 hardcode_libdir_flag_spec_ld='+b $libdir'
10405 hardcode_libdir_separator=:
10406 hardcode_direct=yes
10407 hardcode_direct_absolute=yes
10408 export_dynamic_flag_spec='${wl}-E'
10409 # hardcode_minus_L: Not really in the search PATH,
10410 # but as the default location of the library.
10411 hardcode_minus_L=yes
10415 hpux11*)
10416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10417 case $host_cpu in
10418 hppa*64*)
10419 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 ia64*)
10422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10427 esac
10428 else
10429 case $host_cpu in
10430 hppa*64*)
10431 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 ia64*)
10434 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10438 # Older versions of the 11.00 compiler do not understand -b yet
10439 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10441 $as_echo_n "checking if $CC understands -b... " >&6; }
10442 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 lt_cv_prog_compiler__b=no
10446 save_LDFLAGS="$LDFLAGS"
10447 LDFLAGS="$LDFLAGS -b"
10448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10450 # The linker can only warn and ignore the option if not recognized
10451 # So say no if there are warnings
10452 if test -s conftest.err; then
10453 # Append any errors to the config.log.
10454 cat conftest.err 1>&5
10455 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10457 if diff conftest.exp conftest.er2 >/dev/null; then
10458 lt_cv_prog_compiler__b=yes
10460 else
10461 lt_cv_prog_compiler__b=yes
10464 $RM -r conftest*
10465 LDFLAGS="$save_LDFLAGS"
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10469 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10471 if test x"$lt_cv_prog_compiler__b" = xyes; then
10472 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10473 else
10474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10478 esac
10480 if test "$with_gnu_ld" = no; then
10481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10482 hardcode_libdir_separator=:
10484 case $host_cpu in
10485 hppa*64*|ia64*)
10486 hardcode_direct=no
10487 hardcode_shlibpath_var=no
10490 hardcode_direct=yes
10491 hardcode_direct_absolute=yes
10492 export_dynamic_flag_spec='${wl}-E'
10494 # hardcode_minus_L: Not really in the search PATH,
10495 # but as the default location of the library.
10496 hardcode_minus_L=yes
10498 esac
10502 irix5* | irix6* | nonstopux*)
10503 if test "$GCC" = yes; then
10504 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'
10505 # Try to use the -exported_symbol ld option, if it does not
10506 # work, assume that -exports_file does not work either and
10507 # implicitly export all symbols.
10508 save_LDFLAGS="$LDFLAGS"
10509 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512 int foo(void) {}
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 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'
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LDFLAGS="$save_LDFLAGS"
10521 else
10522 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'
10523 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'
10525 archive_cmds_need_lc='no'
10526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10527 hardcode_libdir_separator=:
10528 inherit_rpath=yes
10529 link_all_deplibs=yes
10532 netbsd*)
10533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10535 else
10536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10538 hardcode_libdir_flag_spec='-R$libdir'
10539 hardcode_direct=yes
10540 hardcode_shlibpath_var=no
10543 newsos6)
10544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 hardcode_direct=yes
10546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10547 hardcode_libdir_separator=:
10548 hardcode_shlibpath_var=no
10551 *nto* | *qnx*)
10554 openbsd*)
10555 if test -f /usr/libexec/ld.so; then
10556 hardcode_direct=yes
10557 hardcode_shlibpath_var=no
10558 hardcode_direct_absolute=yes
10559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10563 export_dynamic_flag_spec='${wl}-E'
10564 else
10565 case $host_os in
10566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_libdir_flag_spec='-R$libdir'
10571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10574 esac
10576 else
10577 ld_shlibs=no
10581 os2*)
10582 hardcode_libdir_flag_spec='-L$libdir'
10583 hardcode_minus_L=yes
10584 allow_undefined_flag=unsupported
10585 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'
10586 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10589 osf3*)
10590 if test "$GCC" = yes; then
10591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10592 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'
10593 else
10594 allow_undefined_flag=' -expect_unresolved \*'
10595 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'
10597 archive_cmds_need_lc='no'
10598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10599 hardcode_libdir_separator=:
10602 osf4* | osf5*) # as osf3* with the addition of -msym flag
10603 if test "$GCC" = yes; then
10604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10605 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'
10606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607 else
10608 allow_undefined_flag=' -expect_unresolved \*'
10609 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'
10610 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~
10611 $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'
10613 # Both c and cxx compiler support -rpath directly
10614 hardcode_libdir_flag_spec='-rpath $libdir'
10616 archive_cmds_need_lc='no'
10617 hardcode_libdir_separator=:
10620 solaris*)
10621 no_undefined_flag=' -z defs'
10622 if test "$GCC" = yes; then
10623 wlarc='${wl}'
10624 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10626 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10627 else
10628 case `$CC -V 2>&1` in
10629 *"Compilers 5.0"*)
10630 wlarc=''
10631 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10636 wlarc='${wl}'
10637 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10639 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10641 esac
10643 hardcode_libdir_flag_spec='-R$libdir'
10644 hardcode_shlibpath_var=no
10645 case $host_os in
10646 solaris2.[0-5] | solaris2.[0-5].*) ;;
10648 # The compiler driver will combine and reorder linker options,
10649 # but understands `-z linker_flag'. GCC discards it without `$wl',
10650 # but is careful enough not to reorder.
10651 # Supported since Solaris 2.6 (maybe 2.5.1?)
10652 if test "$GCC" = yes; then
10653 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10654 else
10655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10658 esac
10659 link_all_deplibs=yes
10662 sunos4*)
10663 if test "x$host_vendor" = xsequent; then
10664 # Use $CC to link under sequent, because it throws in some extra .o
10665 # files that make .init and .fini sections work.
10666 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10667 else
10668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10670 hardcode_libdir_flag_spec='-L$libdir'
10671 hardcode_direct=yes
10672 hardcode_minus_L=yes
10673 hardcode_shlibpath_var=no
10676 sysv4)
10677 case $host_vendor in
10678 sni)
10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_direct=yes # is this really true???
10682 siemens)
10683 ## LD is ld it makes a PLAMLIB
10684 ## CC just makes a GrossModule.
10685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10686 reload_cmds='$CC -r -o $output$reload_objs'
10687 hardcode_direct=no
10689 motorola)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10693 esac
10694 runpath_var='LD_RUN_PATH'
10695 hardcode_shlibpath_var=no
10698 sysv4.3*)
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_shlibpath_var=no
10701 export_dynamic_flag_spec='-Bexport'
10704 sysv4*MP*)
10705 if test -d /usr/nec; then
10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_shlibpath_var=no
10708 runpath_var=LD_RUN_PATH
10709 hardcode_runpath_var=yes
10710 ld_shlibs=yes
10714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10715 no_undefined_flag='${wl}-z,text'
10716 archive_cmds_need_lc=no
10717 hardcode_shlibpath_var=no
10718 runpath_var='LD_RUN_PATH'
10720 if test "$GCC" = yes; then
10721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 else
10724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 sysv5* | sco3.2v5* | sco5v6*)
10730 # Note: We can NOT use -z defs as we might desire, because we do not
10731 # link with -lc, and that would cause any symbols used from libc to
10732 # always be unresolved, which means just about no library would
10733 # ever link correctly. If we're not using GNU ld we use -z text
10734 # though, which does catch some bad symbols but isn't as heavy-handed
10735 # as -z defs.
10736 no_undefined_flag='${wl}-z,text'
10737 allow_undefined_flag='${wl}-z,nodefs'
10738 archive_cmds_need_lc=no
10739 hardcode_shlibpath_var=no
10740 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10741 hardcode_libdir_separator=':'
10742 link_all_deplibs=yes
10743 export_dynamic_flag_spec='${wl}-Bexport'
10744 runpath_var='LD_RUN_PATH'
10746 if test "$GCC" = yes; then
10747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 else
10750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 uts4*)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_libdir_flag_spec='-L$libdir'
10758 hardcode_shlibpath_var=no
10762 ld_shlibs=no
10764 esac
10766 if test x$host_vendor = xsni; then
10767 case $host in
10768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10769 export_dynamic_flag_spec='${wl}-Blargedynsym'
10771 esac
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10776 $as_echo "$ld_shlibs" >&6; }
10777 test "$ld_shlibs" = no && can_build_shared=no
10779 with_gnu_ld=$with_gnu_ld
10796 # Do we need to explicitly link libc?
10798 case "x$archive_cmds_need_lc" in
10799 x|xyes)
10800 # Assume -lc should be added
10801 archive_cmds_need_lc=yes
10803 if test "$enable_shared" = yes && test "$GCC" = yes; then
10804 case $archive_cmds in
10805 *'~'*)
10806 # FIXME: we may have to deal with multi-command sequences.
10808 '$CC '*)
10809 # Test whether the compiler implicitly links with -lc since on some
10810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10811 # to ld, don't add -lc before -lgcc.
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10813 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10814 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10815 $as_echo_n "(cached) " >&6
10816 else
10817 $RM conftest*
10818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10821 (eval $ac_compile) 2>&5
10822 ac_status=$?
10823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824 test $ac_status = 0; } 2>conftest.err; then
10825 soname=conftest
10826 lib=conftest
10827 libobjs=conftest.$ac_objext
10828 deplibs=
10829 wl=$lt_prog_compiler_wl
10830 pic_flag=$lt_prog_compiler_pic
10831 compiler_flags=-v
10832 linker_flags=-v
10833 verstring=
10834 output_objdir=.
10835 libname=conftest
10836 lt_save_allow_undefined_flag=$allow_undefined_flag
10837 allow_undefined_flag=
10838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10839 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10840 ac_status=$?
10841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10842 test $ac_status = 0; }
10843 then
10844 lt_cv_archive_cmds_need_lc=no
10845 else
10846 lt_cv_archive_cmds_need_lc=yes
10848 allow_undefined_flag=$lt_save_allow_undefined_flag
10849 else
10850 cat conftest.err 1>&5
10852 $RM conftest*
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10856 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10857 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10859 esac
10862 esac
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11021 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11023 if test "$GCC" = yes; then
11024 case $host_os in
11025 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11026 *) lt_awk_arg="/^libraries:/" ;;
11027 esac
11028 case $host_os in
11029 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11030 *) lt_sed_strip_eq="s,=/,/,g" ;;
11031 esac
11032 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11033 case $lt_search_path_spec in
11034 *\;*)
11035 # if the path contains ";" then we assume it to be the separator
11036 # otherwise default to the standard path separator (i.e. ":") - it is
11037 # assumed that no part of a normal pathname contains ";" but that should
11038 # okay in the real world where ";" in dirpaths is itself problematic.
11039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11044 esac
11045 # Ok, now we have the path, separated by spaces, we can step through it
11046 # and add multilib dir if necessary.
11047 lt_tmp_lt_search_path_spec=
11048 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11049 for lt_sys_path in $lt_search_path_spec; do
11050 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11052 else
11053 test -d "$lt_sys_path" && \
11054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11056 done
11057 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11058 BEGIN {RS=" "; FS="/|\n";} {
11059 lt_foo="";
11060 lt_count=0;
11061 for (lt_i = NF; lt_i > 0; lt_i--) {
11062 if ($lt_i != "" && $lt_i != ".") {
11063 if ($lt_i == "..") {
11064 lt_count++;
11065 } else {
11066 if (lt_count == 0) {
11067 lt_foo="/" $lt_i lt_foo;
11068 } else {
11069 lt_count--;
11074 if (lt_foo != "") { lt_freq[lt_foo]++; }
11075 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11077 # AWK program above erroneously prepends '/' to C:/dos/paths
11078 # for these hosts.
11079 case $host_os in
11080 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11081 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11082 esac
11083 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11084 else
11085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11087 library_names_spec=
11088 libname_spec='lib$name'
11089 soname_spec=
11090 shrext_cmds=".so"
11091 postinstall_cmds=
11092 postuninstall_cmds=
11093 finish_cmds=
11094 finish_eval=
11095 shlibpath_var=
11096 shlibpath_overrides_runpath=unknown
11097 version_type=none
11098 dynamic_linker="$host_os ld.so"
11099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11100 need_lib_prefix=unknown
11101 hardcode_into_libs=no
11103 # when you set need_version to no, make sure it does not cause -set_version
11104 # flags to be left without arguments
11105 need_version=unknown
11107 case $host_os in
11108 aix3*)
11109 version_type=linux
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11111 shlibpath_var=LIBPATH
11113 # AIX 3 has no versioning support, so we append a major version to the name.
11114 soname_spec='${libname}${release}${shared_ext}$major'
11117 aix[4-9]*)
11118 version_type=linux
11119 need_lib_prefix=no
11120 need_version=no
11121 hardcode_into_libs=yes
11122 if test "$host_cpu" = ia64; then
11123 # AIX 5 supports IA64
11124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 else
11127 # With GCC up to 2.95.x, collect2 would create an import file
11128 # for dependence libraries. The import file would start with
11129 # the line `#! .'. This would cause the generated library to
11130 # depend on `.', always an invalid library. This was fixed in
11131 # development snapshots of GCC prior to 3.0.
11132 case $host_os in
11133 aix4 | aix4.[01] | aix4.[01].*)
11134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11135 echo ' yes '
11136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11138 else
11139 can_build_shared=no
11142 esac
11143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11144 # soname into executable. Probably we can add versioning support to
11145 # collect2, so additional links can be useful in future.
11146 if test "$aix_use_runtimelinking" = yes; then
11147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11148 # instead of lib<name>.a to let people know that these are not
11149 # typical AIX shared libraries.
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 else
11152 # We preserve .a as extension for shared libraries through AIX4.2
11153 # and later when we are not doing run time linking.
11154 library_names_spec='${libname}${release}.a $libname.a'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11157 shlibpath_var=LIBPATH
11161 amigaos*)
11162 case $host_cpu in
11163 powerpc)
11164 # Since July 2007 AmigaOS4 officially supports .so libraries.
11165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 m68k)
11169 library_names_spec='$libname.ixlibrary $libname.a'
11170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11171 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'
11173 esac
11176 beos*)
11177 library_names_spec='${libname}${shared_ext}'
11178 dynamic_linker="$host_os ld.so"
11179 shlibpath_var=LIBRARY_PATH
11182 bsdi[45]*)
11183 version_type=linux
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11191 # the default ld.so.conf also contains /usr/contrib/lib and
11192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11193 # libtool to hard-code these into programs
11196 cygwin* | mingw* | pw32* | cegcc*)
11197 version_type=windows
11198 shrext_cmds=".dll"
11199 need_version=no
11200 need_lib_prefix=no
11202 case $GCC,$host_os in
11203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11204 library_names_spec='$libname.dll.a'
11205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11206 postinstall_cmds='base_file=`basename \${file}`~
11207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11208 dldir=$destdir/`dirname \$dlpath`~
11209 test -d \$dldir || mkdir -p \$dldir~
11210 $install_prog $dir/$dlname \$dldir/$dlname~
11211 chmod a+x \$dldir/$dlname~
11212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216 dlpath=$dir/\$dldll~
11217 $RM \$dlpath'
11218 shlibpath_overrides_runpath=yes
11220 case $host_os in
11221 cygwin*)
11222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11227 mingw* | cegcc*)
11228 # MinGW DLLs use traditional 'lib' prefix
11229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11231 pw32*)
11232 # pw32 DLLs use 'pw' prefix rather than 'lib'
11233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11235 esac
11239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11241 esac
11242 dynamic_linker='Win32 ld.exe'
11243 # FIXME: first we should search . and the directory the executable is in
11244 shlibpath_var=PATH
11247 darwin* | rhapsody*)
11248 dynamic_linker="$host_os dyld"
11249 version_type=darwin
11250 need_lib_prefix=no
11251 need_version=no
11252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11253 soname_spec='${libname}${release}${major}$shared_ext'
11254 shlibpath_overrides_runpath=yes
11255 shlibpath_var=DYLD_LIBRARY_PATH
11256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11258 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11262 dgux*)
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11271 freebsd* | dragonfly*)
11272 # DragonFly does not have aout. When/if they implement a new
11273 # versioning mechanism, adjust this.
11274 if test -x /usr/bin/objformat; then
11275 objformat=`/usr/bin/objformat`
11276 else
11277 case $host_os in
11278 freebsd[23].*) objformat=aout ;;
11279 *) objformat=elf ;;
11280 esac
11282 version_type=freebsd-$objformat
11283 case $version_type in
11284 freebsd-elf*)
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11286 need_version=no
11287 need_lib_prefix=no
11289 freebsd-*)
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11291 need_version=yes
11293 esac
11294 shlibpath_var=LD_LIBRARY_PATH
11295 case $host_os in
11296 freebsd2.*)
11297 shlibpath_overrides_runpath=yes
11299 freebsd3.[01]* | freebsdelf3.[01]*)
11300 shlibpath_overrides_runpath=yes
11301 hardcode_into_libs=yes
11303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11305 shlibpath_overrides_runpath=no
11306 hardcode_into_libs=yes
11308 *) # from 4.6 on, and DragonFly
11309 shlibpath_overrides_runpath=yes
11310 hardcode_into_libs=yes
11312 esac
11315 gnu*)
11316 version_type=linux
11317 need_lib_prefix=no
11318 need_version=no
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 hardcode_into_libs=yes
11325 haiku*)
11326 version_type=linux
11327 need_lib_prefix=no
11328 need_version=no
11329 dynamic_linker="$host_os runtime_loader"
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11331 soname_spec='${libname}${release}${shared_ext}$major'
11332 shlibpath_var=LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11334 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11335 hardcode_into_libs=yes
11338 hpux9* | hpux10* | hpux11*)
11339 # Give a soname corresponding to the major version so that dld.sl refuses to
11340 # link against other versions.
11341 version_type=sunos
11342 need_lib_prefix=no
11343 need_version=no
11344 case $host_cpu in
11345 ia64*)
11346 shrext_cmds='.so'
11347 hardcode_into_libs=yes
11348 dynamic_linker="$host_os dld.so"
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 if test "X$HPUX_IA64_MODE" = X32; then
11354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11355 else
11356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360 hppa*64*)
11361 shrext_cmds='.sl'
11362 hardcode_into_libs=yes
11363 dynamic_linker="$host_os dld.sl"
11364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11372 shrext_cmds='.sl'
11373 dynamic_linker="$host_os dld.sl"
11374 shlibpath_var=SHLIB_PATH
11375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11379 esac
11380 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11381 postinstall_cmds='chmod 555 $lib'
11382 # or fails outright, so override atomically:
11383 install_override_mode=555
11386 interix[3-9]*)
11387 version_type=linux
11388 need_lib_prefix=no
11389 need_version=no
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 shlibpath_overrides_runpath=no
11395 hardcode_into_libs=yes
11398 irix5* | irix6* | nonstopux*)
11399 case $host_os in
11400 nonstopux*) version_type=nonstopux ;;
11402 if test "$lt_cv_prog_gnu_ld" = yes; then
11403 version_type=linux
11404 else
11405 version_type=irix
11406 fi ;;
11407 esac
11408 need_lib_prefix=no
11409 need_version=no
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11412 case $host_os in
11413 irix5* | nonstopux*)
11414 libsuff= shlibsuff=
11417 case $LD in # libtool.m4 will add one of these switches to LD
11418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11419 libsuff= shlibsuff= libmagic=32-bit;;
11420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11421 libsuff=32 shlibsuff=N32 libmagic=N32;;
11422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11423 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11424 *) libsuff= shlibsuff= libmagic=never-match;;
11425 esac
11427 esac
11428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11429 shlibpath_overrides_runpath=no
11430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11432 hardcode_into_libs=yes
11435 # No shared lib support for Linux oldld, aout, or coff.
11436 linux*oldld* | linux*aout* | linux*coff*)
11437 dynamic_linker=no
11440 # This must be Linux ELF.
11441 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11442 version_type=linux
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11451 # Some binutils ld are patched to set DT_RUNPATH
11452 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 lt_cv_shlibpath_overrides_runpath=no
11456 save_LDFLAGS=$LDFLAGS
11457 save_libdir=$libdir
11458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11464 main ()
11468 return 0;
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11473 lt_cv_shlibpath_overrides_runpath=yes
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LDFLAGS=$save_LDFLAGS
11479 libdir=$save_libdir
11483 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11485 # This implies no fast_install, which is unacceptable.
11486 # Some rework will be needed to allow for fast_install
11487 # before this can be enabled.
11488 hardcode_into_libs=yes
11490 # Append ld.so.conf contents to the search path
11491 if test -f /etc/ld.so.conf; then
11492 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' ' '`
11493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11496 # We used to test for /lib/ld.so.1 and disable shared libraries on
11497 # powerpc, because MkLinux only supported shared libraries with the
11498 # GNU dynamic linker. Since this was broken with cross compilers,
11499 # most powerpc-linux boxes support dynamic linking these days and
11500 # people can always --disable-shared, the test was removed, and we
11501 # assume the GNU/Linux dynamic linker is in use.
11502 dynamic_linker='GNU/Linux ld.so'
11505 netbsd*)
11506 version_type=sunos
11507 need_lib_prefix=no
11508 need_version=no
11509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11512 dynamic_linker='NetBSD (a.out) ld.so'
11513 else
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 dynamic_linker='NetBSD ld.elf_so'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11523 newsos6)
11524 version_type=linux
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11530 *nto* | *qnx*)
11531 version_type=qnx
11532 need_lib_prefix=no
11533 need_version=no
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=no
11538 hardcode_into_libs=yes
11539 dynamic_linker='ldqnx.so'
11542 openbsd*)
11543 version_type=sunos
11544 sys_lib_dlsearch_path_spec="/usr/lib"
11545 need_lib_prefix=no
11546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11547 case $host_os in
11548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11549 *) need_version=no ;;
11550 esac
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11555 case $host_os in
11556 openbsd2.[89] | openbsd2.[89].*)
11557 shlibpath_overrides_runpath=no
11560 shlibpath_overrides_runpath=yes
11562 esac
11563 else
11564 shlibpath_overrides_runpath=yes
11568 os2*)
11569 libname_spec='$name'
11570 shrext_cmds=".dll"
11571 need_lib_prefix=no
11572 library_names_spec='$libname${shared_ext} $libname.a'
11573 dynamic_linker='OS/2 ld.exe'
11574 shlibpath_var=LIBPATH
11577 osf3* | osf4* | osf5*)
11578 version_type=osf
11579 need_lib_prefix=no
11580 need_version=no
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11588 rdos*)
11589 dynamic_linker=no
11592 solaris*)
11593 version_type=linux
11594 need_lib_prefix=no
11595 need_version=no
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=yes
11600 hardcode_into_libs=yes
11601 # ldd complains unless libraries are executable
11602 postinstall_cmds='chmod +x $lib'
11605 sunos4*)
11606 version_type=sunos
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes
11611 if test "$with_gnu_ld" = yes; then
11612 need_lib_prefix=no
11614 need_version=yes
11617 sysv4 | sysv4.3*)
11618 version_type=linux
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 case $host_vendor in
11623 sni)
11624 shlibpath_overrides_runpath=no
11625 need_lib_prefix=no
11626 runpath_var=LD_RUN_PATH
11628 siemens)
11629 need_lib_prefix=no
11631 motorola)
11632 need_lib_prefix=no
11633 need_version=no
11634 shlibpath_overrides_runpath=no
11635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11637 esac
11640 sysv4*MP*)
11641 if test -d /usr/nec ;then
11642 version_type=linux
11643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11644 soname_spec='$libname${shared_ext}.$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11650 version_type=freebsd-elf
11651 need_lib_prefix=no
11652 need_version=no
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=yes
11657 hardcode_into_libs=yes
11658 if test "$with_gnu_ld" = yes; then
11659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11660 else
11661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11662 case $host_os in
11663 sco3.2v5*)
11664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11666 esac
11668 sys_lib_dlsearch_path_spec='/usr/lib'
11671 tpf*)
11672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11673 version_type=linux
11674 need_lib_prefix=no
11675 need_version=no
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=no
11679 hardcode_into_libs=yes
11682 uts4*)
11683 version_type=linux
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 soname_spec='${libname}${release}${shared_ext}$major'
11686 shlibpath_var=LD_LIBRARY_PATH
11690 dynamic_linker=no
11692 esac
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11694 $as_echo "$dynamic_linker" >&6; }
11695 test "$dynamic_linker" = no && can_build_shared=no
11697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11698 if test "$GCC" = yes; then
11699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11702 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11705 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11801 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11802 hardcode_action=
11803 if test -n "$hardcode_libdir_flag_spec" ||
11804 test -n "$runpath_var" ||
11805 test "X$hardcode_automatic" = "Xyes" ; then
11807 # We can hardcode non-existent directories.
11808 if test "$hardcode_direct" != no &&
11809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11810 # have to relink, otherwise we might link with an installed library
11811 # when we should be linking with a yet-to-be-installed one
11812 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11813 test "$hardcode_minus_L" != no; then
11814 # Linking always hardcodes the temporary library directory.
11815 hardcode_action=relink
11816 else
11817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11818 hardcode_action=immediate
11820 else
11821 # We cannot hardcode anything, or else we can only hardcode existing
11822 # directories.
11823 hardcode_action=unsupported
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11826 $as_echo "$hardcode_action" >&6; }
11828 if test "$hardcode_action" = relink ||
11829 test "$inherit_rpath" = yes; then
11830 # Fast installation is not supported
11831 enable_fast_install=no
11832 elif test "$shlibpath_overrides_runpath" = yes ||
11833 test "$enable_shared" = no; then
11834 # Fast installation is not necessary
11835 enable_fast_install=needless
11843 if test "x$enable_dlopen" != xyes; then
11844 enable_dlopen=unknown
11845 enable_dlopen_self=unknown
11846 enable_dlopen_self_static=unknown
11847 else
11848 lt_cv_dlopen=no
11849 lt_cv_dlopen_libs=
11851 case $host_os in
11852 beos*)
11853 lt_cv_dlopen="load_add_on"
11854 lt_cv_dlopen_libs=
11855 lt_cv_dlopen_self=yes
11858 mingw* | pw32* | cegcc*)
11859 lt_cv_dlopen="LoadLibrary"
11860 lt_cv_dlopen_libs=
11863 cygwin*)
11864 lt_cv_dlopen="dlopen"
11865 lt_cv_dlopen_libs=
11868 darwin*)
11869 # if libdl is installed we need to link against it
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11871 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11872 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 ac_check_lib_save_LIBS=$LIBS
11876 LIBS="-ldl $LIBS"
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char dlopen ();
11888 main ()
11890 return dlopen ();
11892 return 0;
11894 _ACEOF
11895 if ac_fn_c_try_link "$LINENO"; then :
11896 ac_cv_lib_dl_dlopen=yes
11897 else
11898 ac_cv_lib_dl_dlopen=no
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11905 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11906 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11908 else
11910 lt_cv_dlopen="dyld"
11911 lt_cv_dlopen_libs=
11912 lt_cv_dlopen_self=yes
11919 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11920 if test "x$ac_cv_func_shl_load" = x""yes; then :
11921 lt_cv_dlopen="shl_load"
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11924 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-ldld $LIBS"
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11933 /* Override any GCC internal prototype to avoid an error.
11934 Use char because int might match the return type of a GCC
11935 builtin and then its argument prototype would still apply. */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 char shl_load ();
11941 main ()
11943 return shl_load ();
11945 return 0;
11947 _ACEOF
11948 if ac_fn_c_try_link "$LINENO"; then :
11949 ac_cv_lib_dld_shl_load=yes
11950 else
11951 ac_cv_lib_dld_shl_load=no
11953 rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955 LIBS=$ac_check_lib_save_LIBS
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11958 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11959 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11960 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11961 else
11962 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11963 if test "x$ac_cv_func_dlopen" = x""yes; then :
11964 lt_cv_dlopen="dlopen"
11965 else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11967 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11968 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 ac_check_lib_save_LIBS=$LIBS
11972 LIBS="-ldl $LIBS"
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11976 /* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 char dlopen ();
11984 main ()
11986 return dlopen ();
11988 return 0;
11990 _ACEOF
11991 if ac_fn_c_try_link "$LINENO"; then :
11992 ac_cv_lib_dl_dlopen=yes
11993 else
11994 ac_cv_lib_dl_dlopen=no
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12001 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12002 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12003 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12006 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12007 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-lsvld $LIBS"
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char dlopen ();
12023 main ()
12025 return dlopen ();
12027 return 0;
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 ac_cv_lib_svld_dlopen=yes
12032 else
12033 ac_cv_lib_svld_dlopen=no
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 LIBS=$ac_check_lib_save_LIBS
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12040 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12041 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12045 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12046 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 ac_check_lib_save_LIBS=$LIBS
12050 LIBS="-ldld $LIBS"
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char dld_link ();
12062 main ()
12064 return dld_link ();
12066 return 0;
12068 _ACEOF
12069 if ac_fn_c_try_link "$LINENO"; then :
12070 ac_cv_lib_dld_dld_link=yes
12071 else
12072 ac_cv_lib_dld_dld_link=no
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12079 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12080 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12100 esac
12102 if test "x$lt_cv_dlopen" != xno; then
12103 enable_dlopen=yes
12104 else
12105 enable_dlopen=no
12108 case $lt_cv_dlopen in
12109 dlopen)
12110 save_CPPFLAGS="$CPPFLAGS"
12111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12113 save_LDFLAGS="$LDFLAGS"
12114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12116 save_LIBS="$LIBS"
12117 LIBS="$lt_cv_dlopen_libs $LIBS"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12120 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12121 if test "${lt_cv_dlopen_self+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test "$cross_compiling" = yes; then :
12125 lt_cv_dlopen_self=cross
12126 else
12127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128 lt_status=$lt_dlunknown
12129 cat > conftest.$ac_ext <<_LT_EOF
12130 #line 12099 "configure"
12131 #include "confdefs.h"
12133 #if HAVE_DLFCN_H
12134 #include <dlfcn.h>
12135 #endif
12137 #include <stdio.h>
12139 #ifdef RTLD_GLOBAL
12140 # define LT_DLGLOBAL RTLD_GLOBAL
12141 #else
12142 # ifdef DL_GLOBAL
12143 # define LT_DLGLOBAL DL_GLOBAL
12144 # else
12145 # define LT_DLGLOBAL 0
12146 # endif
12147 #endif
12149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150 find out it does not work in some platform. */
12151 #ifndef LT_DLLAZY_OR_NOW
12152 # ifdef RTLD_LAZY
12153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12154 # else
12155 # ifdef DL_LAZY
12156 # define LT_DLLAZY_OR_NOW DL_LAZY
12157 # else
12158 # ifdef RTLD_NOW
12159 # define LT_DLLAZY_OR_NOW RTLD_NOW
12160 # else
12161 # ifdef DL_NOW
12162 # define LT_DLLAZY_OR_NOW DL_NOW
12163 # else
12164 # define LT_DLLAZY_OR_NOW 0
12165 # endif
12166 # endif
12167 # endif
12168 # endif
12169 #endif
12171 /* When -fvisbility=hidden is used, assume the code has been annotated
12172 correspondingly for the symbols needed. */
12173 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12174 void fnord () __attribute__((visibility("default")));
12175 #endif
12177 void fnord () { int i=42; }
12178 int main ()
12180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12181 int status = $lt_dlunknown;
12183 if (self)
12185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12186 else
12188 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12189 else puts (dlerror ());
12191 /* dlclose (self); */
12193 else
12194 puts (dlerror ());
12196 return status;
12198 _LT_EOF
12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12200 (eval $ac_link) 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12204 (./conftest; exit; ) >&5 2>/dev/null
12205 lt_status=$?
12206 case x$lt_status in
12207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12209 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12210 esac
12211 else :
12212 # compilation failed
12213 lt_cv_dlopen_self=no
12216 rm -fr conftest*
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12221 $as_echo "$lt_cv_dlopen_self" >&6; }
12223 if test "x$lt_cv_dlopen_self" = xyes; then
12224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12226 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12227 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test "$cross_compiling" = yes; then :
12231 lt_cv_dlopen_self_static=cross
12232 else
12233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12234 lt_status=$lt_dlunknown
12235 cat > conftest.$ac_ext <<_LT_EOF
12236 #line 12205 "configure"
12237 #include "confdefs.h"
12239 #if HAVE_DLFCN_H
12240 #include <dlfcn.h>
12241 #endif
12243 #include <stdio.h>
12245 #ifdef RTLD_GLOBAL
12246 # define LT_DLGLOBAL RTLD_GLOBAL
12247 #else
12248 # ifdef DL_GLOBAL
12249 # define LT_DLGLOBAL DL_GLOBAL
12250 # else
12251 # define LT_DLGLOBAL 0
12252 # endif
12253 #endif
12255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12256 find out it does not work in some platform. */
12257 #ifndef LT_DLLAZY_OR_NOW
12258 # ifdef RTLD_LAZY
12259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12260 # else
12261 # ifdef DL_LAZY
12262 # define LT_DLLAZY_OR_NOW DL_LAZY
12263 # else
12264 # ifdef RTLD_NOW
12265 # define LT_DLLAZY_OR_NOW RTLD_NOW
12266 # else
12267 # ifdef DL_NOW
12268 # define LT_DLLAZY_OR_NOW DL_NOW
12269 # else
12270 # define LT_DLLAZY_OR_NOW 0
12271 # endif
12272 # endif
12273 # endif
12274 # endif
12275 #endif
12277 /* When -fvisbility=hidden is used, assume the code has been annotated
12278 correspondingly for the symbols needed. */
12279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12280 void fnord () __attribute__((visibility("default")));
12281 #endif
12283 void fnord () { int i=42; }
12284 int main ()
12286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12287 int status = $lt_dlunknown;
12289 if (self)
12291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12292 else
12294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12295 else puts (dlerror ());
12297 /* dlclose (self); */
12299 else
12300 puts (dlerror ());
12302 return status;
12304 _LT_EOF
12305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12306 (eval $ac_link) 2>&5
12307 ac_status=$?
12308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12309 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12310 (./conftest; exit; ) >&5 2>/dev/null
12311 lt_status=$?
12312 case x$lt_status in
12313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12316 esac
12317 else :
12318 # compilation failed
12319 lt_cv_dlopen_self_static=no
12322 rm -fr conftest*
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12327 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12330 CPPFLAGS="$save_CPPFLAGS"
12331 LDFLAGS="$save_LDFLAGS"
12332 LIBS="$save_LIBS"
12334 esac
12336 case $lt_cv_dlopen_self in
12337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12338 *) enable_dlopen_self=unknown ;;
12339 esac
12341 case $lt_cv_dlopen_self_static in
12342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12343 *) enable_dlopen_self_static=unknown ;;
12344 esac
12363 striplib=
12364 old_striplib=
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12366 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12367 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371 $as_echo "yes" >&6; }
12372 else
12373 # FIXME - insert some real tests, host_os isn't really good enough
12374 case $host_os in
12375 darwin*)
12376 if test -n "$STRIP" ; then
12377 striplib="$STRIP -x"
12378 old_striplib="$STRIP -S"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12390 esac
12404 # Report which library types will actually be built
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12406 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12408 $as_echo "$can_build_shared" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12411 $as_echo_n "checking whether to build shared libraries... " >&6; }
12412 test "$can_build_shared" = "no" && enable_shared=no
12414 # On AIX, shared libraries and static libraries use the same namespace, and
12415 # are all built from PIC.
12416 case $host_os in
12417 aix3*)
12418 test "$enable_shared" = yes && enable_static=no
12419 if test -n "$RANLIB"; then
12420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12421 postinstall_cmds='$RANLIB $lib'
12425 aix[4-9]*)
12426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12427 test "$enable_shared" = yes && enable_static=no
12430 esac
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12432 $as_echo "$enable_shared" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12435 $as_echo_n "checking whether to build static libraries... " >&6; }
12436 # Make sure either enable_shared or enable_static is yes.
12437 test "$enable_shared" = yes || enable_static=yes
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12439 $as_echo "$enable_static" >&6; }
12445 ac_ext=c
12446 ac_cpp='$CPP $CPPFLAGS'
12447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12451 CC="$lt_save_CC"
12453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12454 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12455 (test "X$CXX" != "Xg++"))) ; then
12456 ac_ext=cpp
12457 ac_cpp='$CXXCPP $CPPFLAGS'
12458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12462 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12463 if test -z "$CXXCPP"; then
12464 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 # Double quotes because CXXCPP needs to be expanded
12468 for CXXCPP in "$CXX -E" "/lib/cpp"
12470 ac_preproc_ok=false
12471 for ac_cxx_preproc_warn_flag in '' yes
12473 # Use a header file that comes with gcc, so configuring glibc
12474 # with a fresh cross-compiler works.
12475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12476 # <limits.h> exists even on freestanding compilers.
12477 # On the NeXT, cc -E runs the code through the compiler's parser,
12478 # not just through cpp. "Syntax error" is here to catch this case.
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12481 #ifdef __STDC__
12482 # include <limits.h>
12483 #else
12484 # include <assert.h>
12485 #endif
12486 Syntax error
12487 _ACEOF
12488 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490 else
12491 # Broken: fails on valid input.
12492 continue
12494 rm -f conftest.err conftest.$ac_ext
12496 # OK, works on sane cases. Now check whether nonexistent headers
12497 # can be detected and how.
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500 #include <ac_nonexistent.h>
12501 _ACEOF
12502 if ac_fn_cxx_try_cpp "$LINENO"; then :
12503 # Broken: success on invalid input.
12504 continue
12505 else
12506 # Passes both tests.
12507 ac_preproc_ok=:
12508 break
12510 rm -f conftest.err conftest.$ac_ext
12512 done
12513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12514 rm -f conftest.err conftest.$ac_ext
12515 if $ac_preproc_ok; then :
12516 break
12519 done
12520 ac_cv_prog_CXXCPP=$CXXCPP
12523 CXXCPP=$ac_cv_prog_CXXCPP
12524 else
12525 ac_cv_prog_CXXCPP=$CXXCPP
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12528 $as_echo "$CXXCPP" >&6; }
12529 ac_preproc_ok=false
12530 for ac_cxx_preproc_warn_flag in '' yes
12532 # Use a header file that comes with gcc, so configuring glibc
12533 # with a fresh cross-compiler works.
12534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12535 # <limits.h> exists even on freestanding compilers.
12536 # On the NeXT, cc -E runs the code through the compiler's parser,
12537 # not just through cpp. "Syntax error" is here to catch this case.
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540 #ifdef __STDC__
12541 # include <limits.h>
12542 #else
12543 # include <assert.h>
12544 #endif
12545 Syntax error
12546 _ACEOF
12547 if ac_fn_cxx_try_cpp "$LINENO"; then :
12549 else
12550 # Broken: fails on valid input.
12551 continue
12553 rm -f conftest.err conftest.$ac_ext
12555 # OK, works on sane cases. Now check whether nonexistent headers
12556 # can be detected and how.
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #include <ac_nonexistent.h>
12560 _ACEOF
12561 if ac_fn_cxx_try_cpp "$LINENO"; then :
12562 # Broken: success on invalid input.
12563 continue
12564 else
12565 # Passes both tests.
12566 ac_preproc_ok=:
12567 break
12569 rm -f conftest.err conftest.$ac_ext
12571 done
12572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12573 rm -f conftest.err conftest.$ac_ext
12574 if $ac_preproc_ok; then :
12576 else
12577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12579 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12580 See \`config.log' for more details." "$LINENO" 5; }
12583 ac_ext=c
12584 ac_cpp='$CPP $CPPFLAGS'
12585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12589 else
12590 _lt_caught_CXX_error=yes
12593 ac_ext=cpp
12594 ac_cpp='$CXXCPP $CPPFLAGS'
12595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12599 archive_cmds_need_lc_CXX=no
12600 allow_undefined_flag_CXX=
12601 always_export_symbols_CXX=no
12602 archive_expsym_cmds_CXX=
12603 compiler_needs_object_CXX=no
12604 export_dynamic_flag_spec_CXX=
12605 hardcode_direct_CXX=no
12606 hardcode_direct_absolute_CXX=no
12607 hardcode_libdir_flag_spec_CXX=
12608 hardcode_libdir_flag_spec_ld_CXX=
12609 hardcode_libdir_separator_CXX=
12610 hardcode_minus_L_CXX=no
12611 hardcode_shlibpath_var_CXX=unsupported
12612 hardcode_automatic_CXX=no
12613 inherit_rpath_CXX=no
12614 module_cmds_CXX=
12615 module_expsym_cmds_CXX=
12616 link_all_deplibs_CXX=unknown
12617 old_archive_cmds_CXX=$old_archive_cmds
12618 reload_flag_CXX=$reload_flag
12619 reload_cmds_CXX=$reload_cmds
12620 no_undefined_flag_CXX=
12621 whole_archive_flag_spec_CXX=
12622 enable_shared_with_static_runtimes_CXX=no
12624 # Source file extension for C++ test sources.
12625 ac_ext=cpp
12627 # Object file extension for compiled C++ test sources.
12628 objext=o
12629 objext_CXX=$objext
12631 # No sense in running all these tests if we already determined that
12632 # the CXX compiler isn't working. Some variables (like enable_shared)
12633 # are currently assumed to apply to all compilers on this platform,
12634 # and will be corrupted by setting them based on a non-working compiler.
12635 if test "$_lt_caught_CXX_error" != yes; then
12636 # Code to be used in simple compile tests
12637 lt_simple_compile_test_code="int some_variable = 0;"
12639 # Code to be used in simple link tests
12640 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12649 # If no C compiler was specified, use CC.
12650 LTCC=${LTCC-"$CC"}
12652 # If no C compiler flags were specified, use CFLAGS.
12653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12655 # Allow CC to be a program name with arguments.
12656 compiler=$CC
12659 # save warnings/boilerplate of simple test code
12660 ac_outfile=conftest.$ac_objext
12661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12663 _lt_compiler_boilerplate=`cat conftest.err`
12664 $RM conftest*
12666 ac_outfile=conftest.$ac_objext
12667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12669 _lt_linker_boilerplate=`cat conftest.err`
12670 $RM -r conftest*
12673 # Allow CC to be a program name with arguments.
12674 lt_save_CC=$CC
12675 lt_save_LD=$LD
12676 lt_save_GCC=$GCC
12677 GCC=$GXX
12678 lt_save_with_gnu_ld=$with_gnu_ld
12679 lt_save_path_LD=$lt_cv_path_LD
12680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12682 else
12683 $as_unset lt_cv_prog_gnu_ld
12685 if test -n "${lt_cv_path_LDCXX+set}"; then
12686 lt_cv_path_LD=$lt_cv_path_LDCXX
12687 else
12688 $as_unset lt_cv_path_LD
12690 test -z "${LDCXX+set}" || LD=$LDCXX
12691 CC=${CXX-"c++"}
12692 compiler=$CC
12693 compiler_CXX=$CC
12694 for cc_temp in $compiler""; do
12695 case $cc_temp in
12696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12698 \-*) ;;
12699 *) break;;
12700 esac
12701 done
12702 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12705 if test -n "$compiler"; then
12706 # We don't want -fno-exception when compiling C++ code, so set the
12707 # no_builtin_flag separately
12708 if test "$GXX" = yes; then
12709 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12710 else
12711 lt_prog_compiler_no_builtin_flag_CXX=
12714 if test "$GXX" = yes; then
12715 # Set up default GNU C++ configuration
12719 # Check whether --with-gnu-ld was given.
12720 if test "${with_gnu_ld+set}" = set; then :
12721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12722 else
12723 with_gnu_ld=no
12726 ac_prog=ld
12727 if test "$GCC" = yes; then
12728 # Check if gcc -print-prog-name=ld gives a path.
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12730 $as_echo_n "checking for ld used by $CC... " >&6; }
12731 case $host in
12732 *-*-mingw*)
12733 # gcc leaves a trailing carriage return which upsets mingw
12734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12737 esac
12738 case $ac_prog in
12739 # Accept absolute paths.
12740 [\\/]* | ?:[\\/]*)
12741 re_direlt='/[^/][^/]*/\.\./'
12742 # Canonicalize the pathname of ld
12743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12746 done
12747 test -z "$LD" && LD="$ac_prog"
12750 # If it fails, then pretend we aren't using GCC.
12751 ac_prog=ld
12754 # If it is relative, then search for the first ld in PATH.
12755 with_gnu_ld=unknown
12757 esac
12758 elif test "$with_gnu_ld" = yes; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12760 $as_echo_n "checking for GNU ld... " >&6; }
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12763 $as_echo_n "checking for non-GNU ld... " >&6; }
12765 if test "${lt_cv_path_LD+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if test -z "$LD"; then
12769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12770 for ac_dir in $PATH; do
12771 IFS="$lt_save_ifs"
12772 test -z "$ac_dir" && ac_dir=.
12773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12774 lt_cv_path_LD="$ac_dir/$ac_prog"
12775 # Check to see if the program is GNU ld. I'd rather use --version,
12776 # but apparently some variants of GNU ld only accept -v.
12777 # Break only if it was the GNU/non-GNU ld that we prefer.
12778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12779 *GNU* | *'with BFD'*)
12780 test "$with_gnu_ld" != no && break
12783 test "$with_gnu_ld" != yes && break
12785 esac
12787 done
12788 IFS="$lt_save_ifs"
12789 else
12790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12794 LD="$lt_cv_path_LD"
12795 if test -n "$LD"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12797 $as_echo "$LD" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12802 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12805 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12809 case `$LD -v 2>&1 </dev/null` in
12810 *GNU* | *'with BFD'*)
12811 lt_cv_prog_gnu_ld=yes
12814 lt_cv_prog_gnu_ld=no
12816 esac
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12820 with_gnu_ld=$lt_cv_prog_gnu_ld
12828 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12829 # archiving commands below assume that GNU ld is being used.
12830 if test "$with_gnu_ld" = yes; then
12831 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12837 # If archive_cmds runs LD, not CC, wlarc should be empty
12838 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12839 # investigate it a little bit more. (MM)
12840 wlarc='${wl}'
12842 # ancient GNU ld didn't support --whole-archive et. al.
12843 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12844 $GREP 'no-whole-archive' > /dev/null; then
12845 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12846 else
12847 whole_archive_flag_spec_CXX=
12849 else
12850 with_gnu_ld=no
12851 wlarc=
12853 # A generic and very simple default shared library creation
12854 # command for GNU C++ for the case where it uses the native
12855 # linker, instead of GNU ld. If possible, this setting should
12856 # overridden to take advantage of the native linker features on
12857 # the platform it is being used on.
12858 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12861 # Commands to make compiler produce verbose output that lists
12862 # what "hidden" libraries, object files and flags are used when
12863 # linking a shared library.
12864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12866 else
12867 GXX=no
12868 with_gnu_ld=no
12869 wlarc=
12872 # PORTME: fill in a description of your system's C++ link characteristics
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12875 ld_shlibs_CXX=yes
12876 case $host_os in
12877 aix3*)
12878 # FIXME: insert proper C++ library support
12879 ld_shlibs_CXX=no
12881 aix[4-9]*)
12882 if test "$host_cpu" = ia64; then
12883 # On IA64, the linker does run time linking by default, so we don't
12884 # have to do anything special.
12885 aix_use_runtimelinking=no
12886 exp_sym_flag='-Bexport'
12887 no_entry_flag=""
12888 else
12889 aix_use_runtimelinking=no
12891 # Test if we are trying to use run time linking or normal
12892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12893 # need to do runtime linking.
12894 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12895 for ld_flag in $LDFLAGS; do
12896 case $ld_flag in
12897 *-brtl*)
12898 aix_use_runtimelinking=yes
12899 break
12901 esac
12902 done
12904 esac
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12916 archive_cmds_CXX=''
12917 hardcode_direct_CXX=yes
12918 hardcode_direct_absolute_CXX=yes
12919 hardcode_libdir_separator_CXX=':'
12920 link_all_deplibs_CXX=yes
12921 file_list_spec_CXX='${wl}-f,'
12923 if test "$GXX" = yes; then
12924 case $host_os in aix4.[012]|aix4.[012].*)
12925 # We only want to do this on AIX 4.2 and lower, the check
12926 # below for broken collect2 doesn't work under 4.3+
12927 collect2name=`${CC} -print-prog-name=collect2`
12928 if test -f "$collect2name" &&
12929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12930 then
12931 # We have reworked collect2
12933 else
12934 # We have old collect2
12935 hardcode_direct_CXX=unsupported
12936 # It fails to find uninstalled libraries when the uninstalled
12937 # path is not listed in the libpath. Setting hardcode_minus_L
12938 # to unsupported forces relinking
12939 hardcode_minus_L_CXX=yes
12940 hardcode_libdir_flag_spec_CXX='-L$libdir'
12941 hardcode_libdir_separator_CXX=
12943 esac
12944 shared_flag='-shared'
12945 if test "$aix_use_runtimelinking" = yes; then
12946 shared_flag="$shared_flag "'${wl}-G'
12948 else
12949 # not using gcc
12950 if test "$host_cpu" = ia64; then
12951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12952 # chokes on -Wl,-G. The following line is correct:
12953 shared_flag='-G'
12954 else
12955 if test "$aix_use_runtimelinking" = yes; then
12956 shared_flag='${wl}-G'
12957 else
12958 shared_flag='${wl}-bM:SRE'
12963 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12964 # It seems that -bexpall does not export symbols beginning with
12965 # underscore (_), so it is better to generate a list of symbols to
12966 # export.
12967 always_export_symbols_CXX=yes
12968 if test "$aix_use_runtimelinking" = yes; then
12969 # Warning - without using the other runtime loading flags (-brtl),
12970 # -berok will link without error, but may produce a broken library.
12971 allow_undefined_flag_CXX='-berok'
12972 # Determine the default libpath from the value encoded in an empty
12973 # executable.
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12978 main ()
12982 return 0;
12984 _ACEOF
12985 if ac_fn_cxx_try_link "$LINENO"; then :
12987 lt_aix_libpath_sed='
12988 /Import File Strings/,/^$/ {
12989 /^0/ {
12990 s/^0 *\(.*\)$/\1/
12994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12995 # Check for a 64-bit object if we didn't find anything.
12996 if test -z "$aix_libpath"; then
12997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13000 rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13006 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"
13007 else
13008 if test "$host_cpu" = ia64; then
13009 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13010 allow_undefined_flag_CXX="-z nodefs"
13011 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"
13012 else
13013 # Determine the default libpath from the value encoded in an
13014 # empty executable.
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13019 main ()
13023 return 0;
13025 _ACEOF
13026 if ac_fn_cxx_try_link "$LINENO"; then :
13028 lt_aix_libpath_sed='
13029 /Import File Strings/,/^$/ {
13030 /^0/ {
13031 s/^0 *\(.*\)$/\1/
13035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13036 # Check for a 64-bit object if we didn't find anything.
13037 if test -z "$aix_libpath"; then
13038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13041 rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13045 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13046 # Warning - without using the other run time loading flags,
13047 # -berok will link without error, but may produce a broken library.
13048 no_undefined_flag_CXX=' ${wl}-bernotok'
13049 allow_undefined_flag_CXX=' ${wl}-berok'
13050 if test "$with_gnu_ld" = yes; then
13051 # We only use this code for GNU lds that support --whole-archive.
13052 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13053 else
13054 # Exported symbols can be pulled into shared objects from archives
13055 whole_archive_flag_spec_CXX='$convenience'
13057 archive_cmds_need_lc_CXX=yes
13058 # This is similar to how AIX traditionally builds its shared
13059 # libraries.
13060 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'
13065 beos*)
13066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13067 allow_undefined_flag_CXX=unsupported
13068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13069 # support --undefined. This deserves some investigation. FIXME
13070 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13071 else
13072 ld_shlibs_CXX=no
13076 chorus*)
13077 case $cc_basename in
13079 # FIXME: insert proper C++ library support
13080 ld_shlibs_CXX=no
13082 esac
13085 cygwin* | mingw* | pw32* | cegcc*)
13086 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13087 # as there is no search path for DLLs.
13088 hardcode_libdir_flag_spec_CXX='-L$libdir'
13089 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13090 allow_undefined_flag_CXX=unsupported
13091 always_export_symbols_CXX=no
13092 enable_shared_with_static_runtimes_CXX=yes
13094 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13095 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'
13096 # If the export-symbols file already is a .def file (1st line
13097 # is EXPORTS), use it as is; otherwise, prepend...
13098 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13099 cp $export_symbols $output_objdir/$soname.def;
13100 else
13101 echo EXPORTS > $output_objdir/$soname.def;
13102 cat $export_symbols >> $output_objdir/$soname.def;
13104 $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'
13105 else
13106 ld_shlibs_CXX=no
13109 darwin* | rhapsody*)
13112 archive_cmds_need_lc_CXX=no
13113 hardcode_direct_CXX=no
13114 hardcode_automatic_CXX=yes
13115 hardcode_shlibpath_var_CXX=unsupported
13116 if test "$lt_cv_ld_force_load" = "yes"; then
13117 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\"`'
13118 else
13119 whole_archive_flag_spec_CXX=''
13121 link_all_deplibs_CXX=yes
13122 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13123 case $cc_basename in
13124 ifort*) _lt_dar_can_shared=yes ;;
13125 *) _lt_dar_can_shared=$GCC ;;
13126 esac
13127 if test "$_lt_dar_can_shared" = "yes"; then
13128 output_verbose_link_cmd=func_echo_all
13129 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}"
13130 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13131 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}"
13132 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}"
13133 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13134 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}"
13135 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}"
13138 else
13139 ld_shlibs_CXX=no
13144 dgux*)
13145 case $cc_basename in
13146 ec++*)
13147 # FIXME: insert proper C++ library support
13148 ld_shlibs_CXX=no
13150 ghcx*)
13151 # Green Hills C++ Compiler
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13156 # FIXME: insert proper C++ library support
13157 ld_shlibs_CXX=no
13159 esac
13162 freebsd2.*)
13163 # C++ shared libraries reported to be fairly broken before
13164 # switch to ELF
13165 ld_shlibs_CXX=no
13168 freebsd-elf*)
13169 archive_cmds_need_lc_CXX=no
13172 freebsd* | dragonfly*)
13173 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13174 # conventions
13175 ld_shlibs_CXX=yes
13178 gnu*)
13181 haiku*)
13182 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13183 link_all_deplibs_CXX=yes
13186 hpux9*)
13187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13188 hardcode_libdir_separator_CXX=:
13189 export_dynamic_flag_spec_CXX='${wl}-E'
13190 hardcode_direct_CXX=yes
13191 hardcode_minus_L_CXX=yes # Not in the search PATH,
13192 # but as the default
13193 # location of the library.
13195 case $cc_basename in
13196 CC*)
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13200 aCC*)
13201 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'
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13206 # There doesn't appear to be a way to prevent this compiler from
13207 # explicitly linking system object files so we need to strip them
13208 # from the output so that they don't get included in the library
13209 # dependencies.
13210 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"'
13213 if test "$GXX" = yes; then
13214 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'
13215 else
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13220 esac
13223 hpux10*|hpux11*)
13224 if test $with_gnu_ld = no; then
13225 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13226 hardcode_libdir_separator_CXX=:
13228 case $host_cpu in
13229 hppa*64*|ia64*)
13232 export_dynamic_flag_spec_CXX='${wl}-E'
13234 esac
13236 case $host_cpu in
13237 hppa*64*|ia64*)
13238 hardcode_direct_CXX=no
13239 hardcode_shlibpath_var_CXX=no
13242 hardcode_direct_CXX=yes
13243 hardcode_direct_absolute_CXX=yes
13244 hardcode_minus_L_CXX=yes # Not in the search PATH,
13245 # but as the default
13246 # location of the library.
13248 esac
13250 case $cc_basename in
13251 CC*)
13252 # FIXME: insert proper C++ library support
13253 ld_shlibs_CXX=no
13255 aCC*)
13256 case $host_cpu in
13257 hppa*64*)
13258 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260 ia64*)
13261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13266 esac
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13271 # There doesn't appear to be a way to prevent this compiler from
13272 # explicitly linking system object files so we need to strip them
13273 # from the output so that they don't get included in the library
13274 # dependencies.
13275 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"'
13278 if test "$GXX" = yes; then
13279 if test $with_gnu_ld = no; then
13280 case $host_cpu in
13281 hppa*64*)
13282 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13284 ia64*)
13285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13288 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'
13290 esac
13292 else
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13297 esac
13300 interix[3-9]*)
13301 hardcode_direct_CXX=no
13302 hardcode_shlibpath_var_CXX=no
13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13304 export_dynamic_flag_spec_CXX='${wl}-E'
13305 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13306 # Instead, shared libraries are loaded at an image base (0x10000000 by
13307 # default) and relocated if they conflict, which is a slow very memory
13308 # consuming and fragmenting process. To avoid this, we pick a random,
13309 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13310 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13311 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'
13312 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'
13314 irix5* | irix6*)
13315 case $cc_basename in
13316 CC*)
13317 # SGI C++
13318 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'
13320 # Archives containing C++ object files must be created using
13321 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13322 # necessary to make sure instantiated templates are included
13323 # in the archive.
13324 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13327 if test "$GXX" = yes; then
13328 if test "$with_gnu_ld" = no; then
13329 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'
13330 else
13331 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'
13334 link_all_deplibs_CXX=yes
13336 esac
13337 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13338 hardcode_libdir_separator_CXX=:
13339 inherit_rpath_CXX=yes
13342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13343 case $cc_basename in
13344 KCC*)
13345 # Kuck and Associates, Inc. (KAI) C++ Compiler
13347 # KCC will only create a shared library if the output file
13348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13349 # to its proper name (with version) after linking.
13350 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'
13351 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'
13352 # Commands to make compiler produce verbose output that lists
13353 # what "hidden" libraries, object files and flags are used when
13354 # linking a shared library.
13356 # There doesn't appear to be a way to prevent this compiler from
13357 # explicitly linking system object files so we need to strip them
13358 # from the output so that they don't get included in the library
13359 # dependencies.
13360 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"'
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13365 # Archives containing C++ object files must be created using
13366 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13367 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13369 icpc* | ecpc* )
13370 # Intel C++
13371 with_gnu_ld=yes
13372 # version 8.0 and above of icpc choke on multiply defined symbols
13373 # if we add $predep_objects and $postdep_objects, however 7.1 and
13374 # earlier do not add the objects themselves.
13375 case `$CC -V 2>&1` in
13376 *"Version 7."*)
13377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13378 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'
13380 *) # Version 8.0 or newer
13381 tmp_idyn=
13382 case $host_cpu in
13383 ia64*) tmp_idyn=' -i_dynamic';;
13384 esac
13385 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386 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'
13388 esac
13389 archive_cmds_need_lc_CXX=no
13390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13392 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13394 pgCC* | pgcpp*)
13395 # Portland Group C++ compiler
13396 case `$CC -V` in
13397 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13398 prelink_cmds_CXX='tpldir=Template.dir~
13399 rm -rf $tpldir~
13400 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13401 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13402 old_archive_cmds_CXX='tpldir=Template.dir~
13403 rm -rf $tpldir~
13404 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13405 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13406 $RANLIB $oldlib'
13407 archive_cmds_CXX='tpldir=Template.dir~
13408 rm -rf $tpldir~
13409 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13410 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13411 archive_expsym_cmds_CXX='tpldir=Template.dir~
13412 rm -rf $tpldir~
13413 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13414 $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'
13416 *) # Version 6 and above use weak symbols
13417 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13418 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'
13420 esac
13422 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13424 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'
13426 cxx*)
13427 # Compaq C++
13428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13429 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'
13431 runpath_var=LD_RUN_PATH
13432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13433 hardcode_libdir_separator_CXX=:
13435 # Commands to make compiler produce verbose output that lists
13436 # what "hidden" libraries, object files and flags are used when
13437 # linking a shared library.
13439 # There doesn't appear to be a way to prevent this compiler from
13440 # explicitly linking system object files so we need to strip them
13441 # from the output so that they don't get included in the library
13442 # dependencies.
13443 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'
13445 xl* | mpixl* | bgxl*)
13446 # IBM XL 8.0 on PPC, with GNU ld
13447 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13449 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13450 if test "x$supports_anon_versioning" = xyes; then
13451 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13453 echo "local: *; };" >> $output_objdir/$libname.ver~
13454 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13458 case `$CC -V 2>&1 | sed 5q` in
13459 *Sun\ C*)
13460 # Sun C++ 5.9
13461 no_undefined_flag_CXX=' -zdefs'
13462 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13463 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'
13464 hardcode_libdir_flag_spec_CXX='-R$libdir'
13465 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'
13466 compiler_needs_object_CXX=yes
13468 # Not sure whether something based on
13469 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13470 # would be better.
13471 output_verbose_link_cmd='func_echo_all'
13473 # Archives containing C++ object files must be created using
13474 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13475 # necessary to make sure instantiated templates are included
13476 # in the archive.
13477 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13479 esac
13481 esac
13484 lynxos*)
13485 # FIXME: insert proper C++ library support
13486 ld_shlibs_CXX=no
13489 m88k*)
13490 # FIXME: insert proper C++ library support
13491 ld_shlibs_CXX=no
13494 mvs*)
13495 case $cc_basename in
13496 cxx*)
13497 # FIXME: insert proper C++ library support
13498 ld_shlibs_CXX=no
13501 # FIXME: insert proper C++ library support
13502 ld_shlibs_CXX=no
13504 esac
13507 netbsd*)
13508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13509 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13510 wlarc=
13511 hardcode_libdir_flag_spec_CXX='-R$libdir'
13512 hardcode_direct_CXX=yes
13513 hardcode_shlibpath_var_CXX=no
13515 # Workaround some broken pre-1.5 toolchains
13516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13519 *nto* | *qnx*)
13520 ld_shlibs_CXX=yes
13523 openbsd2*)
13524 # C++ shared libraries are fairly broken
13525 ld_shlibs_CXX=no
13528 openbsd*)
13529 if test -f /usr/libexec/ld.so; then
13530 hardcode_direct_CXX=yes
13531 hardcode_shlibpath_var_CXX=no
13532 hardcode_direct_absolute_CXX=yes
13533 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13536 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13537 export_dynamic_flag_spec_CXX='${wl}-E'
13538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13540 output_verbose_link_cmd=func_echo_all
13541 else
13542 ld_shlibs_CXX=no
13546 osf3* | osf4* | osf5*)
13547 case $cc_basename in
13548 KCC*)
13549 # Kuck and Associates, Inc. (KAI) C++ Compiler
13551 # KCC will only create a shared library if the output file
13552 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13553 # to its proper name (with version) after linking.
13554 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'
13556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13557 hardcode_libdir_separator_CXX=:
13559 # Archives containing C++ object files must be created using
13560 # the KAI C++ compiler.
13561 case $host in
13562 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13563 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13564 esac
13566 RCC*)
13567 # Rational C++ 2.4.1
13568 # FIXME: insert proper C++ library support
13569 ld_shlibs_CXX=no
13571 cxx*)
13572 case $host in
13573 osf3*)
13574 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13575 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'
13576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13579 allow_undefined_flag_CXX=' -expect_unresolved \*'
13580 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'
13581 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13582 echo "-hidden">> $lib.exp~
13583 $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~
13584 $RM $lib.exp'
13585 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13587 esac
13589 hardcode_libdir_separator_CXX=:
13591 # Commands to make compiler produce verbose output that lists
13592 # what "hidden" libraries, object files and flags are used when
13593 # linking a shared library.
13595 # There doesn't appear to be a way to prevent this compiler from
13596 # explicitly linking system object files so we need to strip them
13597 # from the output so that they don't get included in the library
13598 # dependencies.
13599 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"'
13602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13603 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13604 case $host in
13605 osf3*)
13606 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'
13609 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'
13611 esac
13613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13614 hardcode_libdir_separator_CXX=:
13616 # Commands to make compiler produce verbose output that lists
13617 # what "hidden" libraries, object files and flags are used when
13618 # linking a shared library.
13619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13621 else
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13626 esac
13629 psos*)
13630 # FIXME: insert proper C++ library support
13631 ld_shlibs_CXX=no
13634 sunos4*)
13635 case $cc_basename in
13636 CC*)
13637 # Sun C++ 4.x
13638 # FIXME: insert proper C++ library support
13639 ld_shlibs_CXX=no
13641 lcc*)
13642 # Lucid
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13647 # FIXME: insert proper C++ library support
13648 ld_shlibs_CXX=no
13650 esac
13653 solaris*)
13654 case $cc_basename in
13655 CC*)
13656 # Sun C++ 4.2, 5.x and Centerline C++
13657 archive_cmds_need_lc_CXX=yes
13658 no_undefined_flag_CXX=' -zdefs'
13659 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13660 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13661 $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'
13663 hardcode_libdir_flag_spec_CXX='-R$libdir'
13664 hardcode_shlibpath_var_CXX=no
13665 case $host_os in
13666 solaris2.[0-5] | solaris2.[0-5].*) ;;
13668 # The compiler driver will combine and reorder linker options,
13669 # but understands `-z linker_flag'.
13670 # Supported since Solaris 2.6 (maybe 2.5.1?)
13671 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13673 esac
13674 link_all_deplibs_CXX=yes
13676 output_verbose_link_cmd='func_echo_all'
13678 # Archives containing C++ object files must be created using
13679 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13680 # necessary to make sure instantiated templates are included
13681 # in the archive.
13682 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13684 gcx*)
13685 # Green Hills C++ Compiler
13686 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13688 # The C++ compiler must be used to create the archive.
13689 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13692 # GNU C++ compiler with Solaris linker
13693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13694 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13695 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13696 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13697 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13698 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13704 else
13705 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13706 # platform.
13707 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13709 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13711 # Commands to make compiler produce verbose output that lists
13712 # what "hidden" libraries, object files and flags are used when
13713 # linking a shared library.
13714 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13717 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13718 case $host_os in
13719 solaris2.[0-5] | solaris2.[0-5].*) ;;
13721 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13723 esac
13726 esac
13729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13730 no_undefined_flag_CXX='${wl}-z,text'
13731 archive_cmds_need_lc_CXX=no
13732 hardcode_shlibpath_var_CXX=no
13733 runpath_var='LD_RUN_PATH'
13735 case $cc_basename in
13736 CC*)
13737 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 esac
13747 sysv5* | sco3.2v5* | sco5v6*)
13748 # Note: We can NOT use -z defs as we might desire, because we do not
13749 # link with -lc, and that would cause any symbols used from libc to
13750 # always be unresolved, which means just about no library would
13751 # ever link correctly. If we're not using GNU ld we use -z text
13752 # though, which does catch some bad symbols but isn't as heavy-handed
13753 # as -z defs.
13754 no_undefined_flag_CXX='${wl}-z,text'
13755 allow_undefined_flag_CXX='${wl}-z,nodefs'
13756 archive_cmds_need_lc_CXX=no
13757 hardcode_shlibpath_var_CXX=no
13758 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13759 hardcode_libdir_separator_CXX=':'
13760 link_all_deplibs_CXX=yes
13761 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13762 runpath_var='LD_RUN_PATH'
13764 case $cc_basename in
13765 CC*)
13766 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13767 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13768 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13769 '"$old_archive_cmds_CXX"
13770 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13771 '"$reload_cmds_CXX"
13774 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 esac
13780 tandem*)
13781 case $cc_basename in
13782 NCC*)
13783 # NonStop-UX NCC 3.20
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13788 # FIXME: insert proper C++ library support
13789 ld_shlibs_CXX=no
13791 esac
13794 vxworks*)
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13800 # FIXME: insert proper C++ library support
13801 ld_shlibs_CXX=no
13803 esac
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13806 $as_echo "$ld_shlibs_CXX" >&6; }
13807 test "$ld_shlibs_CXX" = no && can_build_shared=no
13809 GCC_CXX="$GXX"
13810 LD_CXX="$LD"
13812 ## CAVEAT EMPTOR:
13813 ## There is no encapsulation within the following macros, do not change
13814 ## the running order or otherwise move them around unless you know exactly
13815 ## what you are doing...
13816 # Dependencies to place before and after the object being linked:
13817 predep_objects_CXX=
13818 postdep_objects_CXX=
13819 predeps_CXX=
13820 postdeps_CXX=
13821 compiler_lib_search_path_CXX=
13823 cat > conftest.$ac_ext <<_LT_EOF
13824 class Foo
13826 public:
13827 Foo (void) { a = 0; }
13828 private:
13829 int a;
13831 _LT_EOF
13833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13834 (eval $ac_compile) 2>&5
13835 ac_status=$?
13836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837 test $ac_status = 0; }; then
13838 # Parse the compiler output and extract the necessary
13839 # objects, libraries and library flags.
13841 # Sentinel used to keep track of whether or not we are before
13842 # the conftest object file.
13843 pre_test_object_deps_done=no
13845 for p in `eval "$output_verbose_link_cmd"`; do
13846 case $p in
13848 -L* | -R* | -l*)
13849 # Some compilers place space between "-{L,R}" and the path.
13850 # Remove the space.
13851 if test $p = "-L" ||
13852 test $p = "-R"; then
13853 prev=$p
13854 continue
13855 else
13856 prev=
13859 if test "$pre_test_object_deps_done" = no; then
13860 case $p in
13861 -L* | -R*)
13862 # Internal compiler library paths should come after those
13863 # provided the user. The postdeps already come after the
13864 # user supplied libs so there is no need to process them.
13865 if test -z "$compiler_lib_search_path_CXX"; then
13866 compiler_lib_search_path_CXX="${prev}${p}"
13867 else
13868 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13871 # The "-l" case would never come before the object being
13872 # linked, so don't bother handling this case.
13873 esac
13874 else
13875 if test -z "$postdeps_CXX"; then
13876 postdeps_CXX="${prev}${p}"
13877 else
13878 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13883 *.$objext)
13884 # This assumes that the test object file only shows up
13885 # once in the compiler output.
13886 if test "$p" = "conftest.$objext"; then
13887 pre_test_object_deps_done=yes
13888 continue
13891 if test "$pre_test_object_deps_done" = no; then
13892 if test -z "$predep_objects_CXX"; then
13893 predep_objects_CXX="$p"
13894 else
13895 predep_objects_CXX="$predep_objects_CXX $p"
13897 else
13898 if test -z "$postdep_objects_CXX"; then
13899 postdep_objects_CXX="$p"
13900 else
13901 postdep_objects_CXX="$postdep_objects_CXX $p"
13906 *) ;; # Ignore the rest.
13908 esac
13909 done
13911 # Clean up.
13912 rm -f a.out a.exe
13913 else
13914 echo "libtool.m4: error: problem compiling CXX test program"
13917 $RM -f confest.$objext
13919 # PORTME: override above test on systems where it is broken
13920 case $host_os in
13921 interix[3-9]*)
13922 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13923 # hack all around it, let's just trust "g++" to DTRT.
13924 predep_objects_CXX=
13925 postdep_objects_CXX=
13926 postdeps_CXX=
13929 linux*)
13930 case `$CC -V 2>&1 | sed 5q` in
13931 *Sun\ C*)
13932 # Sun C++ 5.9
13934 # The more standards-conforming stlport4 library is
13935 # incompatible with the Cstd library. Avoid specifying
13936 # it if it's in CXXFLAGS. Ignore libCrun as
13937 # -library=stlport4 depends on it.
13938 case " $CXX $CXXFLAGS " in
13939 *" -library=stlport4 "*)
13940 solaris_use_stlport4=yes
13942 esac
13944 if test "$solaris_use_stlport4" != yes; then
13945 postdeps_CXX='-library=Cstd -library=Crun'
13948 esac
13951 solaris*)
13952 case $cc_basename in
13953 CC*)
13954 # The more standards-conforming stlport4 library is
13955 # incompatible with the Cstd library. Avoid specifying
13956 # it if it's in CXXFLAGS. Ignore libCrun as
13957 # -library=stlport4 depends on it.
13958 case " $CXX $CXXFLAGS " in
13959 *" -library=stlport4 "*)
13960 solaris_use_stlport4=yes
13962 esac
13964 # Adding this requires a known-good setup of shared libraries for
13965 # Sun compiler versions before 5.6, else PIC objects from an old
13966 # archive will be linked into the output, leading to subtle bugs.
13967 if test "$solaris_use_stlport4" != yes; then
13968 postdeps_CXX='-library=Cstd -library=Crun'
13971 esac
13973 esac
13976 case " $postdeps_CXX " in
13977 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13978 esac
13979 compiler_lib_search_dirs_CXX=
13980 if test -n "${compiler_lib_search_path_CXX}"; then
13981 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14014 lt_prog_compiler_wl_CXX=
14015 lt_prog_compiler_pic_CXX=
14016 lt_prog_compiler_static_CXX=
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14019 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14021 # C++ specific cases for pic, static, wl, etc.
14022 if test "$GXX" = yes; then
14023 lt_prog_compiler_wl_CXX='-Wl,'
14024 lt_prog_compiler_static_CXX='-static'
14026 case $host_os in
14027 aix*)
14028 # All AIX code is PIC.
14029 if test "$host_cpu" = ia64; then
14030 # AIX 5 now supports IA64 processor
14031 lt_prog_compiler_static_CXX='-Bstatic'
14033 lt_prog_compiler_pic_CXX='-fPIC'
14036 amigaos*)
14037 case $host_cpu in
14038 powerpc)
14039 # see comment about AmigaOS4 .so support
14040 lt_prog_compiler_pic_CXX='-fPIC'
14042 m68k)
14043 # FIXME: we need at least 68020 code to build shared libraries, but
14044 # adding the `-m68020' flag to GCC prevents building anything better,
14045 # like `-m68040'.
14046 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14048 esac
14051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14052 # PIC is the default for these OSes.
14054 mingw* | cygwin* | os2* | pw32* | cegcc*)
14055 # This hack is so that the source file can tell whether it is being
14056 # built for inclusion in a dll (and should export symbols for example).
14057 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14058 # (--disable-auto-import) libraries
14059 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14061 darwin* | rhapsody*)
14062 # PIC is the default on this platform
14063 # Common symbols not allowed in MH_DYLIB files
14064 lt_prog_compiler_pic_CXX='-fno-common'
14066 *djgpp*)
14067 # DJGPP does not support shared libraries at all
14068 lt_prog_compiler_pic_CXX=
14070 haiku*)
14071 # PIC is the default for Haiku.
14072 # The "-static" flag exists, but is broken.
14073 lt_prog_compiler_static_CXX=
14075 interix[3-9]*)
14076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14077 # Instead, we relocate shared libraries at runtime.
14079 sysv4*MP*)
14080 if test -d /usr/nec; then
14081 lt_prog_compiler_pic_CXX=-Kconform_pic
14084 hpux*)
14085 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14086 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14087 # sets the default TLS model and affects inlining.
14088 case $host_cpu in
14089 hppa*64*)
14092 lt_prog_compiler_pic_CXX='-fPIC'
14094 esac
14096 *qnx* | *nto*)
14097 # QNX uses GNU C++, but need to define -shared option too, otherwise
14098 # it will coredump.
14099 lt_prog_compiler_pic_CXX='-fPIC -shared'
14102 lt_prog_compiler_pic_CXX='-fPIC'
14104 esac
14105 else
14106 case $host_os in
14107 aix[4-9]*)
14108 # All AIX code is PIC.
14109 if test "$host_cpu" = ia64; then
14110 # AIX 5 now supports IA64 processor
14111 lt_prog_compiler_static_CXX='-Bstatic'
14112 else
14113 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14116 chorus*)
14117 case $cc_basename in
14118 cxch68*)
14119 # Green Hills C++ Compiler
14120 # _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"
14122 esac
14124 dgux*)
14125 case $cc_basename in
14126 ec++*)
14127 lt_prog_compiler_pic_CXX='-KPIC'
14129 ghcx*)
14130 # Green Hills C++ Compiler
14131 lt_prog_compiler_pic_CXX='-pic'
14135 esac
14137 freebsd* | dragonfly*)
14138 # FreeBSD uses GNU C++
14140 hpux9* | hpux10* | hpux11*)
14141 case $cc_basename in
14142 CC*)
14143 lt_prog_compiler_wl_CXX='-Wl,'
14144 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14145 if test "$host_cpu" != ia64; then
14146 lt_prog_compiler_pic_CXX='+Z'
14149 aCC*)
14150 lt_prog_compiler_wl_CXX='-Wl,'
14151 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14152 case $host_cpu in
14153 hppa*64*|ia64*)
14154 # +Z the default
14157 lt_prog_compiler_pic_CXX='+Z'
14159 esac
14163 esac
14165 interix*)
14166 # This is c89, which is MS Visual C++ (no shared libs)
14167 # Anyone wants to do a port?
14169 irix5* | irix6* | nonstopux*)
14170 case $cc_basename in
14171 CC*)
14172 lt_prog_compiler_wl_CXX='-Wl,'
14173 lt_prog_compiler_static_CXX='-non_shared'
14174 # CC pic flag -KPIC is the default.
14178 esac
14180 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14181 case $cc_basename in
14182 KCC*)
14183 # KAI C++ Compiler
14184 lt_prog_compiler_wl_CXX='--backend -Wl,'
14185 lt_prog_compiler_pic_CXX='-fPIC'
14187 ecpc* )
14188 # old Intel C++ for x86_64 which still supported -KPIC.
14189 lt_prog_compiler_wl_CXX='-Wl,'
14190 lt_prog_compiler_pic_CXX='-KPIC'
14191 lt_prog_compiler_static_CXX='-static'
14193 icpc* )
14194 # Intel C++, used to be incompatible with GCC.
14195 # ICC 10 doesn't accept -KPIC any more.
14196 lt_prog_compiler_wl_CXX='-Wl,'
14197 lt_prog_compiler_pic_CXX='-fPIC'
14198 lt_prog_compiler_static_CXX='-static'
14200 pgCC* | pgcpp*)
14201 # Portland Group C++ compiler
14202 lt_prog_compiler_wl_CXX='-Wl,'
14203 lt_prog_compiler_pic_CXX='-fpic'
14204 lt_prog_compiler_static_CXX='-Bstatic'
14206 cxx*)
14207 # Compaq C++
14208 # Make sure the PIC flag is empty. It appears that all Alpha
14209 # Linux and Compaq Tru64 Unix objects are PIC.
14210 lt_prog_compiler_pic_CXX=
14211 lt_prog_compiler_static_CXX='-non_shared'
14213 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14214 # IBM XL 8.0, 9.0 on PPC and BlueGene
14215 lt_prog_compiler_wl_CXX='-Wl,'
14216 lt_prog_compiler_pic_CXX='-qpic'
14217 lt_prog_compiler_static_CXX='-qstaticlink'
14220 case `$CC -V 2>&1 | sed 5q` in
14221 *Sun\ C*)
14222 # Sun C++ 5.9
14223 lt_prog_compiler_pic_CXX='-KPIC'
14224 lt_prog_compiler_static_CXX='-Bstatic'
14225 lt_prog_compiler_wl_CXX='-Qoption ld '
14227 esac
14229 esac
14231 lynxos*)
14233 m88k*)
14235 mvs*)
14236 case $cc_basename in
14237 cxx*)
14238 lt_prog_compiler_pic_CXX='-W c,exportall'
14242 esac
14244 netbsd*)
14246 *qnx* | *nto*)
14247 # QNX uses GNU C++, but need to define -shared option too, otherwise
14248 # it will coredump.
14249 lt_prog_compiler_pic_CXX='-fPIC -shared'
14251 osf3* | osf4* | osf5*)
14252 case $cc_basename in
14253 KCC*)
14254 lt_prog_compiler_wl_CXX='--backend -Wl,'
14256 RCC*)
14257 # Rational C++ 2.4.1
14258 lt_prog_compiler_pic_CXX='-pic'
14260 cxx*)
14261 # Digital/Compaq C++
14262 lt_prog_compiler_wl_CXX='-Wl,'
14263 # Make sure the PIC flag is empty. It appears that all Alpha
14264 # Linux and Compaq Tru64 Unix objects are PIC.
14265 lt_prog_compiler_pic_CXX=
14266 lt_prog_compiler_static_CXX='-non_shared'
14270 esac
14272 psos*)
14274 solaris*)
14275 case $cc_basename in
14276 CC*)
14277 # Sun C++ 4.2, 5.x and Centerline C++
14278 lt_prog_compiler_pic_CXX='-KPIC'
14279 lt_prog_compiler_static_CXX='-Bstatic'
14280 lt_prog_compiler_wl_CXX='-Qoption ld '
14282 gcx*)
14283 # Green Hills C++ Compiler
14284 lt_prog_compiler_pic_CXX='-PIC'
14288 esac
14290 sunos4*)
14291 case $cc_basename in
14292 CC*)
14293 # Sun C++ 4.x
14294 lt_prog_compiler_pic_CXX='-pic'
14295 lt_prog_compiler_static_CXX='-Bstatic'
14297 lcc*)
14298 # Lucid
14299 lt_prog_compiler_pic_CXX='-pic'
14303 esac
14305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14306 case $cc_basename in
14307 CC*)
14308 lt_prog_compiler_wl_CXX='-Wl,'
14309 lt_prog_compiler_pic_CXX='-KPIC'
14310 lt_prog_compiler_static_CXX='-Bstatic'
14312 esac
14314 tandem*)
14315 case $cc_basename in
14316 NCC*)
14317 # NonStop-UX NCC 3.20
14318 lt_prog_compiler_pic_CXX='-KPIC'
14322 esac
14324 vxworks*)
14327 lt_prog_compiler_can_build_shared_CXX=no
14329 esac
14332 case $host_os in
14333 # For platforms which do not support PIC, -DPIC is meaningless:
14334 *djgpp*)
14335 lt_prog_compiler_pic_CXX=
14338 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14340 esac
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14342 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14347 # Check to make sure the PIC flag actually works.
14349 if test -n "$lt_prog_compiler_pic_CXX"; then
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14351 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14352 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 lt_cv_prog_compiler_pic_works_CXX=no
14356 ac_outfile=conftest.$ac_objext
14357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14358 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14359 # Insert the option either (1) after the last *FLAGS variable, or
14360 # (2) before a word containing "conftest.", or (3) at the end.
14361 # Note that $ac_compile itself does not contain backslashes and begins
14362 # with a dollar sign (not a hyphen), so the echo should work correctly.
14363 # The option is referenced via a variable to avoid confusing sed.
14364 lt_compile=`echo "$ac_compile" | $SED \
14365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14367 -e 's:$: $lt_compiler_flag:'`
14368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14369 (eval "$lt_compile" 2>conftest.err)
14370 ac_status=$?
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 if (exit $ac_status) && test -s "$ac_outfile"; then
14374 # The compiler can only warn and ignore the option if not recognized
14375 # So say no if there are warnings other than the usual output.
14376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14379 lt_cv_prog_compiler_pic_works_CXX=yes
14382 $RM conftest*
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14386 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14388 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14389 case $lt_prog_compiler_pic_CXX in
14390 "" | " "*) ;;
14391 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14392 esac
14393 else
14394 lt_prog_compiler_pic_CXX=
14395 lt_prog_compiler_can_build_shared_CXX=no
14403 # Check to make sure the static flag actually works.
14405 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14407 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14408 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 lt_cv_prog_compiler_static_works_CXX=no
14412 save_LDFLAGS="$LDFLAGS"
14413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14416 # The linker can only warn and ignore the option if not recognized
14417 # So say no if there are warnings
14418 if test -s conftest.err; then
14419 # Append any errors to the config.log.
14420 cat conftest.err 1>&5
14421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14423 if diff conftest.exp conftest.er2 >/dev/null; then
14424 lt_cv_prog_compiler_static_works_CXX=yes
14426 else
14427 lt_cv_prog_compiler_static_works_CXX=yes
14430 $RM -r conftest*
14431 LDFLAGS="$save_LDFLAGS"
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14435 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14437 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14439 else
14440 lt_prog_compiler_static_CXX=
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14448 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 lt_cv_prog_compiler_c_o_CXX=no
14452 $RM -r conftest 2>/dev/null
14453 mkdir conftest
14454 cd conftest
14455 mkdir out
14456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14458 lt_compiler_flag="-o out/conftest2.$ac_objext"
14459 # Insert the option either (1) after the last *FLAGS variable, or
14460 # (2) before a word containing "conftest.", or (3) at the end.
14461 # Note that $ac_compile itself does not contain backslashes and begins
14462 # with a dollar sign (not a hyphen), so the echo should work correctly.
14463 lt_compile=`echo "$ac_compile" | $SED \
14464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14466 -e 's:$: $lt_compiler_flag:'`
14467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14468 (eval "$lt_compile" 2>out/conftest.err)
14469 ac_status=$?
14470 cat out/conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14473 then
14474 # The compiler can only warn and ignore the option if not recognized
14475 # So say no if there are warnings
14476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14479 lt_cv_prog_compiler_c_o_CXX=yes
14482 chmod u+w . 2>&5
14483 $RM conftest*
14484 # SGI C++ compiler will create directory out/ii_files/ for
14485 # template instantiation
14486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14487 $RM out/* && rmdir out
14488 cd ..
14489 $RM -r conftest
14490 $RM conftest*
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14494 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14499 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14500 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503 lt_cv_prog_compiler_c_o_CXX=no
14504 $RM -r conftest 2>/dev/null
14505 mkdir conftest
14506 cd conftest
14507 mkdir out
14508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14510 lt_compiler_flag="-o out/conftest2.$ac_objext"
14511 # Insert the option either (1) after the last *FLAGS variable, or
14512 # (2) before a word containing "conftest.", or (3) at the end.
14513 # Note that $ac_compile itself does not contain backslashes and begins
14514 # with a dollar sign (not a hyphen), so the echo should work correctly.
14515 lt_compile=`echo "$ac_compile" | $SED \
14516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14518 -e 's:$: $lt_compiler_flag:'`
14519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14520 (eval "$lt_compile" 2>out/conftest.err)
14521 ac_status=$?
14522 cat out/conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14525 then
14526 # The compiler can only warn and ignore the option if not recognized
14527 # So say no if there are warnings
14528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14531 lt_cv_prog_compiler_c_o_CXX=yes
14534 chmod u+w . 2>&5
14535 $RM conftest*
14536 # SGI C++ compiler will create directory out/ii_files/ for
14537 # template instantiation
14538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14539 $RM out/* && rmdir out
14540 cd ..
14541 $RM -r conftest
14542 $RM conftest*
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14546 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14551 hard_links="nottested"
14552 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14553 # do not overwrite the value of need_locks provided by the user
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14555 $as_echo_n "checking if we can lock with hard links... " >&6; }
14556 hard_links=yes
14557 $RM conftest*
14558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14559 touch conftest.a
14560 ln conftest.a conftest.b 2>&5 || hard_links=no
14561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14563 $as_echo "$hard_links" >&6; }
14564 if test "$hard_links" = no; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14566 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14567 need_locks=warn
14569 else
14570 need_locks=no
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14576 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14579 case $host_os in
14580 aix[4-9]*)
14581 # If we're using GNU nm, then we don't want the "-C" option.
14582 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14583 # Also, AIX nm treats weak defined symbols like other global defined
14584 # symbols, whereas GNU nm marks them as "W".
14585 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14586 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'
14587 else
14588 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'
14591 pw32*)
14592 export_symbols_cmds_CXX="$ltdll_cmds"
14594 cygwin* | mingw* | cegcc*)
14595 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'
14598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14600 esac
14601 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14604 $as_echo "$ld_shlibs_CXX" >&6; }
14605 test "$ld_shlibs_CXX" = no && can_build_shared=no
14607 with_gnu_ld_CXX=$with_gnu_ld
14615 # Do we need to explicitly link libc?
14617 case "x$archive_cmds_need_lc_CXX" in
14618 x|xyes)
14619 # Assume -lc should be added
14620 archive_cmds_need_lc_CXX=yes
14622 if test "$enable_shared" = yes && test "$GCC" = yes; then
14623 case $archive_cmds_CXX in
14624 *'~'*)
14625 # FIXME: we may have to deal with multi-command sequences.
14627 '$CC '*)
14628 # Test whether the compiler implicitly links with -lc since on some
14629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630 # to ld, don't add -lc before -lgcc.
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14633 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 $RM conftest*
14637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14640 (eval $ac_compile) 2>&5
14641 ac_status=$?
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; } 2>conftest.err; then
14644 soname=conftest
14645 lib=conftest
14646 libobjs=conftest.$ac_objext
14647 deplibs=
14648 wl=$lt_prog_compiler_wl_CXX
14649 pic_flag=$lt_prog_compiler_pic_CXX
14650 compiler_flags=-v
14651 linker_flags=-v
14652 verstring=
14653 output_objdir=.
14654 libname=conftest
14655 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14656 allow_undefined_flag_CXX=
14657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14658 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14659 ac_status=$?
14660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661 test $ac_status = 0; }
14662 then
14663 lt_cv_archive_cmds_need_lc_CXX=no
14664 else
14665 lt_cv_archive_cmds_need_lc_CXX=yes
14667 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14668 else
14669 cat conftest.err 1>&5
14671 $RM conftest*
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14675 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14676 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14678 esac
14681 esac
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14747 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14749 library_names_spec=
14750 libname_spec='lib$name'
14751 soname_spec=
14752 shrext_cmds=".so"
14753 postinstall_cmds=
14754 postuninstall_cmds=
14755 finish_cmds=
14756 finish_eval=
14757 shlibpath_var=
14758 shlibpath_overrides_runpath=unknown
14759 version_type=none
14760 dynamic_linker="$host_os ld.so"
14761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14762 need_lib_prefix=unknown
14763 hardcode_into_libs=no
14765 # when you set need_version to no, make sure it does not cause -set_version
14766 # flags to be left without arguments
14767 need_version=unknown
14769 case $host_os in
14770 aix3*)
14771 version_type=linux
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14773 shlibpath_var=LIBPATH
14775 # AIX 3 has no versioning support, so we append a major version to the name.
14776 soname_spec='${libname}${release}${shared_ext}$major'
14779 aix[4-9]*)
14780 version_type=linux
14781 need_lib_prefix=no
14782 need_version=no
14783 hardcode_into_libs=yes
14784 if test "$host_cpu" = ia64; then
14785 # AIX 5 supports IA64
14786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 else
14789 # With GCC up to 2.95.x, collect2 would create an import file
14790 # for dependence libraries. The import file would start with
14791 # the line `#! .'. This would cause the generated library to
14792 # depend on `.', always an invalid library. This was fixed in
14793 # development snapshots of GCC prior to 3.0.
14794 case $host_os in
14795 aix4 | aix4.[01] | aix4.[01].*)
14796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14797 echo ' yes '
14798 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14800 else
14801 can_build_shared=no
14804 esac
14805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14806 # soname into executable. Probably we can add versioning support to
14807 # collect2, so additional links can be useful in future.
14808 if test "$aix_use_runtimelinking" = yes; then
14809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14810 # instead of lib<name>.a to let people know that these are not
14811 # typical AIX shared libraries.
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14813 else
14814 # We preserve .a as extension for shared libraries through AIX4.2
14815 # and later when we are not doing run time linking.
14816 library_names_spec='${libname}${release}.a $libname.a'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LIBPATH
14823 amigaos*)
14824 case $host_cpu in
14825 powerpc)
14826 # Since July 2007 AmigaOS4 officially supports .so libraries.
14827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 m68k)
14831 library_names_spec='$libname.ixlibrary $libname.a'
14832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14833 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'
14835 esac
14838 beos*)
14839 library_names_spec='${libname}${shared_ext}'
14840 dynamic_linker="$host_os ld.so"
14841 shlibpath_var=LIBRARY_PATH
14844 bsdi[45]*)
14845 version_type=linux
14846 need_version=no
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14853 # the default ld.so.conf also contains /usr/contrib/lib and
14854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14855 # libtool to hard-code these into programs
14858 cygwin* | mingw* | pw32* | cegcc*)
14859 version_type=windows
14860 shrext_cmds=".dll"
14861 need_version=no
14862 need_lib_prefix=no
14864 case $GCC,$host_os in
14865 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14866 library_names_spec='$libname.dll.a'
14867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14868 postinstall_cmds='base_file=`basename \${file}`~
14869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14870 dldir=$destdir/`dirname \$dlpath`~
14871 test -d \$dldir || mkdir -p \$dldir~
14872 $install_prog $dir/$dlname \$dldir/$dlname~
14873 chmod a+x \$dldir/$dlname~
14874 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14875 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14878 dlpath=$dir/\$dldll~
14879 $RM \$dlpath'
14880 shlibpath_overrides_runpath=yes
14882 case $host_os in
14883 cygwin*)
14884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14888 mingw* | cegcc*)
14889 # MinGW DLLs use traditional 'lib' prefix
14890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14892 pw32*)
14893 # pw32 DLLs use 'pw' prefix rather than 'lib'
14894 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14896 esac
14900 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14902 esac
14903 dynamic_linker='Win32 ld.exe'
14904 # FIXME: first we should search . and the directory the executable is in
14905 shlibpath_var=PATH
14908 darwin* | rhapsody*)
14909 dynamic_linker="$host_os dyld"
14910 version_type=darwin
14911 need_lib_prefix=no
14912 need_version=no
14913 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14914 soname_spec='${libname}${release}${major}$shared_ext'
14915 shlibpath_overrides_runpath=yes
14916 shlibpath_var=DYLD_LIBRARY_PATH
14917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14922 dgux*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14931 freebsd* | dragonfly*)
14932 # DragonFly does not have aout. When/if they implement a new
14933 # versioning mechanism, adjust this.
14934 if test -x /usr/bin/objformat; then
14935 objformat=`/usr/bin/objformat`
14936 else
14937 case $host_os in
14938 freebsd[23].*) objformat=aout ;;
14939 *) objformat=elf ;;
14940 esac
14942 version_type=freebsd-$objformat
14943 case $version_type in
14944 freebsd-elf*)
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14946 need_version=no
14947 need_lib_prefix=no
14949 freebsd-*)
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14951 need_version=yes
14953 esac
14954 shlibpath_var=LD_LIBRARY_PATH
14955 case $host_os in
14956 freebsd2.*)
14957 shlibpath_overrides_runpath=yes
14959 freebsd3.[01]* | freebsdelf3.[01]*)
14960 shlibpath_overrides_runpath=yes
14961 hardcode_into_libs=yes
14963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14965 shlibpath_overrides_runpath=no
14966 hardcode_into_libs=yes
14968 *) # from 4.6 on, and DragonFly
14969 shlibpath_overrides_runpath=yes
14970 hardcode_into_libs=yes
14972 esac
14975 gnu*)
14976 version_type=linux
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 hardcode_into_libs=yes
14985 haiku*)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
14989 dynamic_linker="$host_os runtime_loader"
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 shlibpath_var=LIBRARY_PATH
14993 shlibpath_overrides_runpath=yes
14994 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14995 hardcode_into_libs=yes
14998 hpux9* | hpux10* | hpux11*)
14999 # Give a soname corresponding to the major version so that dld.sl refuses to
15000 # link against other versions.
15001 version_type=sunos
15002 need_lib_prefix=no
15003 need_version=no
15004 case $host_cpu in
15005 ia64*)
15006 shrext_cmds='.so'
15007 hardcode_into_libs=yes
15008 dynamic_linker="$host_os dld.so"
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 if test "X$HPUX_IA64_MODE" = X32; then
15014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15015 else
15016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15020 hppa*64*)
15021 shrext_cmds='.sl'
15022 hardcode_into_libs=yes
15023 dynamic_linker="$host_os dld.sl"
15024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15032 shrext_cmds='.sl'
15033 dynamic_linker="$host_os dld.sl"
15034 shlibpath_var=SHLIB_PATH
15035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15039 esac
15040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15041 postinstall_cmds='chmod 555 $lib'
15042 # or fails outright, so override atomically:
15043 install_override_mode=555
15046 interix[3-9]*)
15047 version_type=linux
15048 need_lib_prefix=no
15049 need_version=no
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=no
15055 hardcode_into_libs=yes
15058 irix5* | irix6* | nonstopux*)
15059 case $host_os in
15060 nonstopux*) version_type=nonstopux ;;
15062 if test "$lt_cv_prog_gnu_ld" = yes; then
15063 version_type=linux
15064 else
15065 version_type=irix
15066 fi ;;
15067 esac
15068 need_lib_prefix=no
15069 need_version=no
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15072 case $host_os in
15073 irix5* | nonstopux*)
15074 libsuff= shlibsuff=
15077 case $LD in # libtool.m4 will add one of these switches to LD
15078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15079 libsuff= shlibsuff= libmagic=32-bit;;
15080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15081 libsuff=32 shlibsuff=N32 libmagic=N32;;
15082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15084 *) libsuff= shlibsuff= libmagic=never-match;;
15085 esac
15087 esac
15088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15089 shlibpath_overrides_runpath=no
15090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15092 hardcode_into_libs=yes
15095 # No shared lib support for Linux oldld, aout, or coff.
15096 linux*oldld* | linux*aout* | linux*coff*)
15097 dynamic_linker=no
15100 # This must be Linux ELF.
15101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15111 # Some binutils ld are patched to set DT_RUNPATH
15112 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 lt_cv_shlibpath_overrides_runpath=no
15116 save_LDFLAGS=$LDFLAGS
15117 save_libdir=$libdir
15118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15124 main ()
15128 return 0;
15130 _ACEOF
15131 if ac_fn_cxx_try_link "$LINENO"; then :
15132 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15133 lt_cv_shlibpath_overrides_runpath=yes
15136 rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LDFLAGS=$save_LDFLAGS
15139 libdir=$save_libdir
15143 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15145 # This implies no fast_install, which is unacceptable.
15146 # Some rework will be needed to allow for fast_install
15147 # before this can be enabled.
15148 hardcode_into_libs=yes
15150 # Append ld.so.conf contents to the search path
15151 if test -f /etc/ld.so.conf; then
15152 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' ' '`
15153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15156 # We used to test for /lib/ld.so.1 and disable shared libraries on
15157 # powerpc, because MkLinux only supported shared libraries with the
15158 # GNU dynamic linker. Since this was broken with cross compilers,
15159 # most powerpc-linux boxes support dynamic linking these days and
15160 # people can always --disable-shared, the test was removed, and we
15161 # assume the GNU/Linux dynamic linker is in use.
15162 dynamic_linker='GNU/Linux ld.so'
15165 netbsd*)
15166 version_type=sunos
15167 need_lib_prefix=no
15168 need_version=no
15169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15172 dynamic_linker='NetBSD (a.out) ld.so'
15173 else
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 dynamic_linker='NetBSD ld.elf_so'
15178 shlibpath_var=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath=yes
15180 hardcode_into_libs=yes
15183 newsos6)
15184 version_type=linux
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 shlibpath_overrides_runpath=yes
15190 *nto* | *qnx*)
15191 version_type=qnx
15192 need_lib_prefix=no
15193 need_version=no
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=no
15198 hardcode_into_libs=yes
15199 dynamic_linker='ldqnx.so'
15202 openbsd*)
15203 version_type=sunos
15204 sys_lib_dlsearch_path_spec="/usr/lib"
15205 need_lib_prefix=no
15206 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15207 case $host_os in
15208 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15209 *) need_version=no ;;
15210 esac
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15215 case $host_os in
15216 openbsd2.[89] | openbsd2.[89].*)
15217 shlibpath_overrides_runpath=no
15220 shlibpath_overrides_runpath=yes
15222 esac
15223 else
15224 shlibpath_overrides_runpath=yes
15228 os2*)
15229 libname_spec='$name'
15230 shrext_cmds=".dll"
15231 need_lib_prefix=no
15232 library_names_spec='$libname${shared_ext} $libname.a'
15233 dynamic_linker='OS/2 ld.exe'
15234 shlibpath_var=LIBPATH
15237 osf3* | osf4* | osf5*)
15238 version_type=osf
15239 need_lib_prefix=no
15240 need_version=no
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 shlibpath_var=LD_LIBRARY_PATH
15244 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15245 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15248 rdos*)
15249 dynamic_linker=no
15252 solaris*)
15253 version_type=linux
15254 need_lib_prefix=no
15255 need_version=no
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 shlibpath_overrides_runpath=yes
15260 hardcode_into_libs=yes
15261 # ldd complains unless libraries are executable
15262 postinstall_cmds='chmod +x $lib'
15265 sunos4*)
15266 version_type=sunos
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 shlibpath_overrides_runpath=yes
15271 if test "$with_gnu_ld" = yes; then
15272 need_lib_prefix=no
15274 need_version=yes
15277 sysv4 | sysv4.3*)
15278 version_type=linux
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 case $host_vendor in
15283 sni)
15284 shlibpath_overrides_runpath=no
15285 need_lib_prefix=no
15286 runpath_var=LD_RUN_PATH
15288 siemens)
15289 need_lib_prefix=no
15291 motorola)
15292 need_lib_prefix=no
15293 need_version=no
15294 shlibpath_overrides_runpath=no
15295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15297 esac
15300 sysv4*MP*)
15301 if test -d /usr/nec ;then
15302 version_type=linux
15303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15304 soname_spec='$libname${shared_ext}.$major'
15305 shlibpath_var=LD_LIBRARY_PATH
15309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15310 version_type=freebsd-elf
15311 need_lib_prefix=no
15312 need_version=no
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 shlibpath_overrides_runpath=yes
15317 hardcode_into_libs=yes
15318 if test "$with_gnu_ld" = yes; then
15319 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15320 else
15321 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15322 case $host_os in
15323 sco3.2v5*)
15324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15326 esac
15328 sys_lib_dlsearch_path_spec='/usr/lib'
15331 tpf*)
15332 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15333 version_type=linux
15334 need_lib_prefix=no
15335 need_version=no
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15342 uts4*)
15343 version_type=linux
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15350 dynamic_linker=no
15352 esac
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15354 $as_echo "$dynamic_linker" >&6; }
15355 test "$dynamic_linker" = no && can_build_shared=no
15357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15358 if test "$GCC" = yes; then
15359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15362 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15363 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15365 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15366 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15407 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15408 hardcode_action_CXX=
15409 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15410 test -n "$runpath_var_CXX" ||
15411 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15413 # We can hardcode non-existent directories.
15414 if test "$hardcode_direct_CXX" != no &&
15415 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15416 # have to relink, otherwise we might link with an installed library
15417 # when we should be linking with a yet-to-be-installed one
15418 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15419 test "$hardcode_minus_L_CXX" != no; then
15420 # Linking always hardcodes the temporary library directory.
15421 hardcode_action_CXX=relink
15422 else
15423 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15424 hardcode_action_CXX=immediate
15426 else
15427 # We cannot hardcode anything, or else we can only hardcode existing
15428 # directories.
15429 hardcode_action_CXX=unsupported
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15432 $as_echo "$hardcode_action_CXX" >&6; }
15434 if test "$hardcode_action_CXX" = relink ||
15435 test "$inherit_rpath_CXX" = yes; then
15436 # Fast installation is not supported
15437 enable_fast_install=no
15438 elif test "$shlibpath_overrides_runpath" = yes ||
15439 test "$enable_shared" = no; then
15440 # Fast installation is not necessary
15441 enable_fast_install=needless
15450 fi # test -n "$compiler"
15452 CC=$lt_save_CC
15453 LDCXX=$LD
15454 LD=$lt_save_LD
15455 GCC=$lt_save_GCC
15456 with_gnu_ld=$lt_save_with_gnu_ld
15457 lt_cv_path_LDCXX=$lt_cv_path_LD
15458 lt_cv_path_LD=$lt_save_path_LD
15459 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15460 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15461 fi # test "$_lt_caught_CXX_error" != yes
15463 ac_ext=c
15464 ac_cpp='$CPP $CPPFLAGS'
15465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15481 ac_config_commands="$ac_config_commands libtool"
15486 # Only expand once:
15492 # For libtool versioning info, format is CURRENT:REVISION:AGE
15493 libtool_VERSION=1:0:0
15496 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15499 if test "${multilib}" = "yes"; then
15500 multilib_arg="--enable-multilib"
15501 else
15502 multilib_arg=
15505 ac_config_files="$ac_config_files Makefile"
15508 if test "x$VTV_SUPPORTED" = "xyes"; then
15509 ac_config_files="$ac_config_files testsuite/Makefile"
15513 cat >confcache <<\_ACEOF
15514 # This file is a shell script that caches the results of configure
15515 # tests run on this system so they can be shared between configure
15516 # scripts and configure runs, see configure's option --config-cache.
15517 # It is not useful on other systems. If it contains results you don't
15518 # want to keep, you may remove or edit it.
15520 # config.status only pays attention to the cache file if you give it
15521 # the --recheck option to rerun configure.
15523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15525 # following values.
15527 _ACEOF
15529 # The following way of writing the cache mishandles newlines in values,
15530 # but we know of no workaround that is simple, portable, and efficient.
15531 # So, we kill variables containing newlines.
15532 # Ultrix sh set writes to stderr and can't be redirected directly,
15533 # and sets the high bit in the cache file unless we assign to the vars.
15535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15536 eval ac_val=\$$ac_var
15537 case $ac_val in #(
15538 *${as_nl}*)
15539 case $ac_var in #(
15540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15542 esac
15543 case $ac_var in #(
15544 _ | IFS | as_nl) ;; #(
15545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15546 *) { eval $ac_var=; unset $ac_var;} ;;
15547 esac ;;
15548 esac
15549 done
15551 (set) 2>&1 |
15552 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15553 *${as_nl}ac_space=\ *)
15554 # `set' does not quote correctly, so add quotes: double-quote
15555 # substitution turns \\\\ into \\, and sed turns \\ into \.
15556 sed -n \
15557 "s/'/'\\\\''/g;
15558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15559 ;; #(
15561 # `set' quotes correctly as required by POSIX, so do not add quotes.
15562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15564 esac |
15565 sort
15567 sed '
15568 /^ac_cv_env_/b end
15569 t clear
15570 :clear
15571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15572 t end
15573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15574 :end' >>confcache
15575 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15576 if test -w "$cache_file"; then
15577 test "x$cache_file" != "x/dev/null" &&
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15579 $as_echo "$as_me: updating cache $cache_file" >&6;}
15580 cat confcache >$cache_file
15581 else
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15586 rm -f confcache
15588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15589 # Let make expand exec_prefix.
15590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15592 # Transform confdefs.h into DEFS.
15593 # Protect against shell expansion while executing Makefile rules.
15594 # Protect against Makefile macro expansion.
15596 # If the first sed substitution is executed (which looks for macros that
15597 # take arguments), then branch to the quote section. Otherwise,
15598 # look for a macro that doesn't take arguments.
15599 ac_script='
15600 :mline
15601 /\\$/{
15603 s,\\\n,,
15604 b mline
15606 t clear
15607 :clear
15608 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15609 t quote
15610 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15611 t quote
15612 b any
15613 :quote
15614 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15615 s/\[/\\&/g
15616 s/\]/\\&/g
15617 s/\$/$$/g
15619 :any
15622 s/^\n//
15623 s/\n/ /g
15627 DEFS=`sed -n "$ac_script" confdefs.h`
15630 ac_libobjs=
15631 ac_ltlibobjs=
15632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15633 # 1. Remove the extension, and $U if already installed.
15634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15637 # will be set to the directory where LIBOBJS objects are built.
15638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15640 done
15641 LIBOBJS=$ac_libobjs
15643 LTLIBOBJS=$ac_ltlibobjs
15646 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15647 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 if test -n "$EXEEXT"; then
15651 am__EXEEXT_TRUE=
15652 am__EXEEXT_FALSE='#'
15653 else
15654 am__EXEEXT_TRUE='#'
15655 am__EXEEXT_FALSE=
15658 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15659 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15663 as_fn_error "conditional \"AMDEP\" was never defined.
15664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15667 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15671 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15675 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679 : ${CONFIG_STATUS=./config.status}
15680 ac_write_fail=0
15681 ac_clean_files_save=$ac_clean_files
15682 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15684 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15685 as_write_fail=0
15686 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15687 #! $SHELL
15688 # Generated by $as_me.
15689 # Run this file to recreate the current configuration.
15690 # Compiler output produced by configure, useful for debugging
15691 # configure, is in config.log if it exists.
15693 debug=false
15694 ac_cs_recheck=false
15695 ac_cs_silent=false
15697 SHELL=\${CONFIG_SHELL-$SHELL}
15698 export SHELL
15699 _ASEOF
15700 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15701 ## -------------------- ##
15702 ## M4sh Initialization. ##
15703 ## -------------------- ##
15705 # Be more Bourne compatible
15706 DUALCASE=1; export DUALCASE # for MKS sh
15707 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15708 emulate sh
15709 NULLCMD=:
15710 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15711 # is contrary to our usage. Disable this feature.
15712 alias -g '${1+"$@"}'='"$@"'
15713 setopt NO_GLOB_SUBST
15714 else
15715 case `(set -o) 2>/dev/null` in #(
15716 *posix*) :
15717 set -o posix ;; #(
15718 *) :
15720 esac
15724 as_nl='
15726 export as_nl
15727 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15728 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15731 # Prefer a ksh shell builtin over an external printf program on Solaris,
15732 # but without wasting forks for bash or zsh.
15733 if test -z "$BASH_VERSION$ZSH_VERSION" \
15734 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15735 as_echo='print -r --'
15736 as_echo_n='print -rn --'
15737 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15738 as_echo='printf %s\n'
15739 as_echo_n='printf %s'
15740 else
15741 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15742 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15743 as_echo_n='/usr/ucb/echo -n'
15744 else
15745 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15746 as_echo_n_body='eval
15747 arg=$1;
15748 case $arg in #(
15749 *"$as_nl"*)
15750 expr "X$arg" : "X\\(.*\\)$as_nl";
15751 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15752 esac;
15753 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15755 export as_echo_n_body
15756 as_echo_n='sh -c $as_echo_n_body as_echo'
15758 export as_echo_body
15759 as_echo='sh -c $as_echo_body as_echo'
15762 # The user is always right.
15763 if test "${PATH_SEPARATOR+set}" != set; then
15764 PATH_SEPARATOR=:
15765 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15766 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15767 PATH_SEPARATOR=';'
15772 # IFS
15773 # We need space, tab and new line, in precisely that order. Quoting is
15774 # there to prevent editors from complaining about space-tab.
15775 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15776 # splitting by setting IFS to empty value.)
15777 IFS=" "" $as_nl"
15779 # Find who we are. Look in the path if we contain no directory separator.
15780 case $0 in #((
15781 *[\\/]* ) as_myself=$0 ;;
15782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783 for as_dir in $PATH
15785 IFS=$as_save_IFS
15786 test -z "$as_dir" && as_dir=.
15787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15788 done
15789 IFS=$as_save_IFS
15792 esac
15793 # We did not find ourselves, most probably we were run as `sh COMMAND'
15794 # in which case we are not to be found in the path.
15795 if test "x$as_myself" = x; then
15796 as_myself=$0
15798 if test ! -f "$as_myself"; then
15799 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15800 exit 1
15803 # Unset variables that we do not need and which cause bugs (e.g. in
15804 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15805 # suppresses any "Segmentation fault" message there. '((' could
15806 # trigger a bug in pdksh 5.2.14.
15807 for as_var in BASH_ENV ENV MAIL MAILPATH
15808 do eval test x\${$as_var+set} = xset \
15809 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15810 done
15811 PS1='$ '
15812 PS2='> '
15813 PS4='+ '
15815 # NLS nuisances.
15816 LC_ALL=C
15817 export LC_ALL
15818 LANGUAGE=C
15819 export LANGUAGE
15821 # CDPATH.
15822 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15825 # as_fn_error ERROR [LINENO LOG_FD]
15826 # ---------------------------------
15827 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15828 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15829 # script with status $?, using 1 if that was 0.
15830 as_fn_error ()
15832 as_status=$?; test $as_status -eq 0 && as_status=1
15833 if test "$3"; then
15834 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15835 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15837 $as_echo "$as_me: error: $1" >&2
15838 as_fn_exit $as_status
15839 } # as_fn_error
15842 # as_fn_set_status STATUS
15843 # -----------------------
15844 # Set $? to STATUS, without forking.
15845 as_fn_set_status ()
15847 return $1
15848 } # as_fn_set_status
15850 # as_fn_exit STATUS
15851 # -----------------
15852 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15853 as_fn_exit ()
15855 set +e
15856 as_fn_set_status $1
15857 exit $1
15858 } # as_fn_exit
15860 # as_fn_unset VAR
15861 # ---------------
15862 # Portably unset VAR.
15863 as_fn_unset ()
15865 { eval $1=; unset $1;}
15867 as_unset=as_fn_unset
15868 # as_fn_append VAR VALUE
15869 # ----------------------
15870 # Append the text in VALUE to the end of the definition contained in VAR. Take
15871 # advantage of any shell optimizations that allow amortized linear growth over
15872 # repeated appends, instead of the typical quadratic growth present in naive
15873 # implementations.
15874 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15875 eval 'as_fn_append ()
15877 eval $1+=\$2
15879 else
15880 as_fn_append ()
15882 eval $1=\$$1\$2
15884 fi # as_fn_append
15886 # as_fn_arith ARG...
15887 # ------------------
15888 # Perform arithmetic evaluation on the ARGs, and store the result in the
15889 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15890 # must be portable across $(()) and expr.
15891 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15892 eval 'as_fn_arith ()
15894 as_val=$(( $* ))
15896 else
15897 as_fn_arith ()
15899 as_val=`expr "$@" || test $? -eq 1`
15901 fi # as_fn_arith
15904 if expr a : '\(a\)' >/dev/null 2>&1 &&
15905 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15906 as_expr=expr
15907 else
15908 as_expr=false
15911 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15912 as_basename=basename
15913 else
15914 as_basename=false
15917 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15918 as_dirname=dirname
15919 else
15920 as_dirname=false
15923 as_me=`$as_basename -- "$0" ||
15924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15925 X"$0" : 'X\(//\)$' \| \
15926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15927 $as_echo X/"$0" |
15928 sed '/^.*\/\([^/][^/]*\)\/*$/{
15929 s//\1/
15932 /^X\/\(\/\/\)$/{
15933 s//\1/
15936 /^X\/\(\/\).*/{
15937 s//\1/
15940 s/.*/./; q'`
15942 # Avoid depending upon Character Ranges.
15943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15946 as_cr_digits='0123456789'
15947 as_cr_alnum=$as_cr_Letters$as_cr_digits
15949 ECHO_C= ECHO_N= ECHO_T=
15950 case `echo -n x` in #(((((
15951 -n*)
15952 case `echo 'xy\c'` in
15953 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15954 xy) ECHO_C='\c';;
15955 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15956 ECHO_T=' ';;
15957 esac;;
15959 ECHO_N='-n';;
15960 esac
15962 rm -f conf$$ conf$$.exe conf$$.file
15963 if test -d conf$$.dir; then
15964 rm -f conf$$.dir/conf$$.file
15965 else
15966 rm -f conf$$.dir
15967 mkdir conf$$.dir 2>/dev/null
15969 if (echo >conf$$.file) 2>/dev/null; then
15970 if ln -s conf$$.file conf$$ 2>/dev/null; then
15971 as_ln_s='ln -s'
15972 # ... but there are two gotchas:
15973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15975 # In both cases, we have to default to `cp -p'.
15976 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15977 as_ln_s='cp -p'
15978 elif ln conf$$.file conf$$ 2>/dev/null; then
15979 as_ln_s=ln
15980 else
15981 as_ln_s='cp -p'
15983 else
15984 as_ln_s='cp -p'
15986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15987 rmdir conf$$.dir 2>/dev/null
15990 # as_fn_mkdir_p
15991 # -------------
15992 # Create "$as_dir" as a directory, including parents if necessary.
15993 as_fn_mkdir_p ()
15996 case $as_dir in #(
15997 -*) as_dir=./$as_dir;;
15998 esac
15999 test -d "$as_dir" || eval $as_mkdir_p || {
16000 as_dirs=
16001 while :; do
16002 case $as_dir in #(
16003 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16004 *) as_qdir=$as_dir;;
16005 esac
16006 as_dirs="'$as_qdir' $as_dirs"
16007 as_dir=`$as_dirname -- "$as_dir" ||
16008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16009 X"$as_dir" : 'X\(//\)[^/]' \| \
16010 X"$as_dir" : 'X\(//\)$' \| \
16011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16012 $as_echo X"$as_dir" |
16013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16014 s//\1/
16017 /^X\(\/\/\)[^/].*/{
16018 s//\1/
16021 /^X\(\/\/\)$/{
16022 s//\1/
16025 /^X\(\/\).*/{
16026 s//\1/
16029 s/.*/./; q'`
16030 test -d "$as_dir" && break
16031 done
16032 test -z "$as_dirs" || eval "mkdir $as_dirs"
16033 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16036 } # as_fn_mkdir_p
16037 if mkdir -p . 2>/dev/null; then
16038 as_mkdir_p='mkdir -p "$as_dir"'
16039 else
16040 test -d ./-p && rmdir ./-p
16041 as_mkdir_p=false
16044 if test -x / >/dev/null 2>&1; then
16045 as_test_x='test -x'
16046 else
16047 if ls -dL / >/dev/null 2>&1; then
16048 as_ls_L_option=L
16049 else
16050 as_ls_L_option=
16052 as_test_x='
16053 eval sh -c '\''
16054 if test -d "$1"; then
16055 test -d "$1/.";
16056 else
16057 case $1 in #(
16058 -*)set "./$1";;
16059 esac;
16060 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16061 ???[sx]*):;;*)false;;esac;fi
16062 '\'' sh
16065 as_executable_p=$as_test_x
16067 # Sed expression to map a string onto a valid CPP name.
16068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16070 # Sed expression to map a string onto a valid variable name.
16071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16074 exec 6>&1
16075 ## ----------------------------------- ##
16076 ## Main body of $CONFIG_STATUS script. ##
16077 ## ----------------------------------- ##
16078 _ASEOF
16079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082 # Save the log message, to keep $0 and so on meaningful, and to
16083 # report actual input values of CONFIG_FILES etc. instead of their
16084 # values after options handling.
16085 ac_log="
16086 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16087 generated by GNU Autoconf 2.64. Invocation command line was
16089 CONFIG_FILES = $CONFIG_FILES
16090 CONFIG_HEADERS = $CONFIG_HEADERS
16091 CONFIG_LINKS = $CONFIG_LINKS
16092 CONFIG_COMMANDS = $CONFIG_COMMANDS
16093 $ $0 $@
16095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16098 _ACEOF
16100 case $ac_config_files in *"
16101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16102 esac
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 # Files that config.status was made for.
16108 config_files="$ac_config_files"
16109 config_commands="$ac_config_commands"
16111 _ACEOF
16113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16114 ac_cs_usage="\
16115 \`$as_me' instantiates files and other configuration actions
16116 from templates according to the current configuration. Unless the files
16117 and actions are specified as TAGs, all are instantiated by default.
16119 Usage: $0 [OPTION]... [TAG]...
16121 -h, --help print this help, then exit
16122 -V, --version print version number and configuration settings, then exit
16123 -q, --quiet, --silent
16124 do not print progress messages
16125 -d, --debug don't remove temporary files
16126 --recheck update $as_me by reconfiguring in the same conditions
16127 --file=FILE[:TEMPLATE]
16128 instantiate the configuration file FILE
16130 Configuration files:
16131 $config_files
16133 Configuration commands:
16134 $config_commands
16136 Report bugs to the package provider.
16137 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16138 General help using GNU software: <http://www.gnu.org/gethelp/>."
16140 _ACEOF
16141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16142 ac_cs_version="\\
16143 GNU Vtable Verification Runtime Library config.status 1.0
16144 configured by $0, generated by GNU Autoconf 2.64,
16145 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16147 Copyright (C) 2009 Free Software Foundation, Inc.
16148 This config.status script is free software; the Free Software Foundation
16149 gives unlimited permission to copy, distribute and modify it."
16151 ac_pwd='$ac_pwd'
16152 srcdir='$srcdir'
16153 INSTALL='$INSTALL'
16154 MKDIR_P='$MKDIR_P'
16155 AWK='$AWK'
16156 test -n "\$AWK" || AWK=awk
16157 _ACEOF
16159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16160 # The default lists apply if the user does not specify any file.
16161 ac_need_defaults=:
16162 while test $# != 0
16164 case $1 in
16165 --*=*)
16166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16168 ac_shift=:
16171 ac_option=$1
16172 ac_optarg=$2
16173 ac_shift=shift
16175 esac
16177 case $ac_option in
16178 # Handling of the options.
16179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16180 ac_cs_recheck=: ;;
16181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16182 $as_echo "$ac_cs_version"; exit ;;
16183 --debug | --debu | --deb | --de | --d | -d )
16184 debug=: ;;
16185 --file | --fil | --fi | --f )
16186 $ac_shift
16187 case $ac_optarg in
16188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16189 esac
16190 as_fn_append CONFIG_FILES " '$ac_optarg'"
16191 ac_need_defaults=false;;
16192 --he | --h | --help | --hel | -h )
16193 $as_echo "$ac_cs_usage"; exit ;;
16194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16195 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16196 ac_cs_silent=: ;;
16198 # This is an error.
16199 -*) as_fn_error "unrecognized option: \`$1'
16200 Try \`$0 --help' for more information." ;;
16202 *) as_fn_append ac_config_targets " $1"
16203 ac_need_defaults=false ;;
16205 esac
16206 shift
16207 done
16209 ac_configure_extra_args=
16211 if $ac_cs_silent; then
16212 exec 6>/dev/null
16213 ac_configure_extra_args="$ac_configure_extra_args --silent"
16216 _ACEOF
16217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16218 if \$ac_cs_recheck; then
16219 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16220 shift
16221 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16222 CONFIG_SHELL='$SHELL'
16223 export CONFIG_SHELL
16224 exec "\$@"
16227 _ACEOF
16228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229 exec 5>>config.log
16231 echo
16232 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16233 ## Running $as_me. ##
16234 _ASBOX
16235 $as_echo "$ac_log"
16236 } >&5
16238 _ACEOF
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16241 # INIT-COMMANDS
16244 srcdir="$srcdir"
16245 host="$host"
16246 target="$target"
16247 with_multisubdir="$with_multisubdir"
16248 with_multisrctop="$with_multisrctop"
16249 with_target_subdir="$with_target_subdir"
16250 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16251 multi_basedir="$multi_basedir"
16252 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16253 CC="$CC"
16254 CXX="$CXX"
16255 GFORTRAN="$GFORTRAN"
16256 GCJ="$GCJ"
16257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16260 # The HP-UX ksh and POSIX shell print the target directory to stdout
16261 # if CDPATH is set.
16262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16264 sed_quote_subst='$sed_quote_subst'
16265 double_quote_subst='$double_quote_subst'
16266 delay_variable_subst='$delay_variable_subst'
16267 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16268 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16269 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16270 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16271 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16272 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16273 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16274 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16275 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16276 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16277 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16278 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16279 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16280 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16281 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16282 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16283 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16284 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16285 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16286 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16287 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16288 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16289 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16290 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16291 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16292 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16293 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16294 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16295 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16296 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16297 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16298 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16299 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16300 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16301 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16302 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16303 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16304 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16305 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16306 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16307 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16308 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16309 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16310 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16311 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16312 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16313 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16314 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16315 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"`'
16316 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16317 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16318 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16319 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16320 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16321 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16322 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16323 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16324 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16325 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16326 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16327 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16328 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16329 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16330 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16331 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16332 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16333 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16334 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16335 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16336 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16337 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16338 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16339 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16340 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16341 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16342 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16343 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16344 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16345 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16346 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16347 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16348 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16349 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16350 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16351 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16352 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16353 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16354 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16355 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16356 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16357 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16358 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16359 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16360 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16361 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16362 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16363 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16364 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16365 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16366 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16367 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16368 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16369 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16370 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16371 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16372 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16373 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16374 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16375 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16376 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16377 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16378 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16379 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16380 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16381 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16382 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16383 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16384 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16385 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16386 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16387 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16388 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16389 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16390 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16391 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16392 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16393 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16394 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16395 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16396 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16397 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16398 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16399 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16400 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16401 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16402 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16403 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16404 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16405 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16406 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16407 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16408 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16409 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16410 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16411 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16412 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16413 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16414 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16415 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16416 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16417 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16418 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16419 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16420 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16421 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16422 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16423 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16424 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16425 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16426 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16427 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16428 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16429 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16430 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16431 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16432 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16433 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16434 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16435 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16436 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16437 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16438 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16439 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16440 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16441 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16443 LTCC='$LTCC'
16444 LTCFLAGS='$LTCFLAGS'
16445 compiler='$compiler_DEFAULT'
16447 # A function that is used when there is no print builtin or printf.
16448 func_fallback_echo ()
16450 eval 'cat <<_LTECHO_EOF
16452 _LTECHO_EOF'
16455 # Quote evaled strings.
16456 for var in SHELL \
16457 ECHO \
16458 SED \
16459 GREP \
16460 EGREP \
16461 FGREP \
16462 LD \
16463 NM \
16464 LN_S \
16465 lt_SP2NL \
16466 lt_NL2SP \
16467 reload_flag \
16468 OBJDUMP \
16469 deplibs_check_method \
16470 file_magic_cmd \
16471 AR \
16472 AR_FLAGS \
16473 STRIP \
16474 RANLIB \
16475 CC \
16476 CFLAGS \
16477 compiler \
16478 lt_cv_sys_global_symbol_pipe \
16479 lt_cv_sys_global_symbol_to_cdecl \
16480 lt_cv_sys_global_symbol_to_c_name_address \
16481 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16482 lt_prog_compiler_no_builtin_flag \
16483 lt_prog_compiler_wl \
16484 lt_prog_compiler_pic \
16485 lt_prog_compiler_static \
16486 lt_cv_prog_compiler_c_o \
16487 need_locks \
16488 DSYMUTIL \
16489 NMEDIT \
16490 LIPO \
16491 OTOOL \
16492 OTOOL64 \
16493 shrext_cmds \
16494 export_dynamic_flag_spec \
16495 whole_archive_flag_spec \
16496 compiler_needs_object \
16497 with_gnu_ld \
16498 allow_undefined_flag \
16499 no_undefined_flag \
16500 hardcode_libdir_flag_spec \
16501 hardcode_libdir_flag_spec_ld \
16502 hardcode_libdir_separator \
16503 fix_srcfile_path \
16504 exclude_expsyms \
16505 include_expsyms \
16506 file_list_spec \
16507 variables_saved_for_relink \
16508 libname_spec \
16509 library_names_spec \
16510 soname_spec \
16511 install_override_mode \
16512 finish_eval \
16513 old_striplib \
16514 striplib \
16515 compiler_lib_search_dirs \
16516 predep_objects \
16517 postdep_objects \
16518 predeps \
16519 postdeps \
16520 compiler_lib_search_path \
16521 LD_CXX \
16522 reload_flag_CXX \
16523 compiler_CXX \
16524 lt_prog_compiler_no_builtin_flag_CXX \
16525 lt_prog_compiler_wl_CXX \
16526 lt_prog_compiler_pic_CXX \
16527 lt_prog_compiler_static_CXX \
16528 lt_cv_prog_compiler_c_o_CXX \
16529 export_dynamic_flag_spec_CXX \
16530 whole_archive_flag_spec_CXX \
16531 compiler_needs_object_CXX \
16532 with_gnu_ld_CXX \
16533 allow_undefined_flag_CXX \
16534 no_undefined_flag_CXX \
16535 hardcode_libdir_flag_spec_CXX \
16536 hardcode_libdir_flag_spec_ld_CXX \
16537 hardcode_libdir_separator_CXX \
16538 fix_srcfile_path_CXX \
16539 exclude_expsyms_CXX \
16540 include_expsyms_CXX \
16541 file_list_spec_CXX \
16542 compiler_lib_search_dirs_CXX \
16543 predep_objects_CXX \
16544 postdep_objects_CXX \
16545 predeps_CXX \
16546 postdeps_CXX \
16547 compiler_lib_search_path_CXX; do
16548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16549 *[\\\\\\\`\\"\\\$]*)
16550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16555 esac
16556 done
16558 # Double-quote double-evaled strings.
16559 for var in reload_cmds \
16560 old_postinstall_cmds \
16561 old_postuninstall_cmds \
16562 old_archive_cmds \
16563 extract_expsyms_cmds \
16564 old_archive_from_new_cmds \
16565 old_archive_from_expsyms_cmds \
16566 archive_cmds \
16567 archive_expsym_cmds \
16568 module_cmds \
16569 module_expsym_cmds \
16570 export_symbols_cmds \
16571 prelink_cmds \
16572 postinstall_cmds \
16573 postuninstall_cmds \
16574 finish_cmds \
16575 sys_lib_search_path_spec \
16576 sys_lib_dlsearch_path_spec \
16577 reload_cmds_CXX \
16578 old_archive_cmds_CXX \
16579 old_archive_from_new_cmds_CXX \
16580 old_archive_from_expsyms_cmds_CXX \
16581 archive_cmds_CXX \
16582 archive_expsym_cmds_CXX \
16583 module_cmds_CXX \
16584 module_expsym_cmds_CXX \
16585 export_symbols_cmds_CXX \
16586 prelink_cmds_CXX; do
16587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16588 *[\\\\\\\`\\"\\\$]*)
16589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16594 esac
16595 done
16597 ac_aux_dir='$ac_aux_dir'
16598 xsi_shell='$xsi_shell'
16599 lt_shell_append='$lt_shell_append'
16601 # See if we are running on zsh, and set the options which allow our
16602 # commands through without removal of \ escapes INIT.
16603 if test -n "\${ZSH_VERSION+set}" ; then
16604 setopt NO_GLOB_SUBST
16608 PACKAGE='$PACKAGE'
16609 VERSION='$VERSION'
16610 TIMESTAMP='$TIMESTAMP'
16611 RM='$RM'
16612 ofile='$ofile'
16619 _ACEOF
16621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16623 # Handling of arguments.
16624 for ac_config_target in $ac_config_targets
16626 case $ac_config_target in
16627 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16628 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16629 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16630 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16631 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16633 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16634 esac
16635 done
16638 # If the user did not use the arguments to specify the items to instantiate,
16639 # then the envvar interface is used. Set only those that are not.
16640 # We use the long form for the default assignment because of an extremely
16641 # bizarre bug on SunOS 4.1.3.
16642 if $ac_need_defaults; then
16643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16647 # Have a temporary directory for convenience. Make it in the build tree
16648 # simply because there is no reason against having it here, and in addition,
16649 # creating and moving files from /tmp can sometimes cause problems.
16650 # Hook for its removal unless debugging.
16651 # Note that there is a small window in which the directory will not be cleaned:
16652 # after its creation but before its name has been assigned to `$tmp'.
16653 $debug ||
16655 tmp=
16656 trap 'exit_status=$?
16657 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16659 trap 'as_fn_exit 1' 1 2 13 15
16661 # Create a (secure) tmp directory for tmp files.
16664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16665 test -n "$tmp" && test -d "$tmp"
16666 } ||
16668 tmp=./conf$$-$RANDOM
16669 (umask 077 && mkdir "$tmp")
16670 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16672 # Set up the scripts for CONFIG_FILES section.
16673 # No need to generate them if there are no CONFIG_FILES.
16674 # This happens for instance with `./config.status config.h'.
16675 if test -n "$CONFIG_FILES"; then
16678 ac_cr=`echo X | tr X '\015'`
16679 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16680 # But we know of no other shell where ac_cr would be empty at this
16681 # point, so we can use a bashism as a fallback.
16682 if test "x$ac_cr" = x; then
16683 eval ac_cr=\$\'\\r\'
16685 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16686 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16687 ac_cs_awk_cr='\r'
16688 else
16689 ac_cs_awk_cr=$ac_cr
16692 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16693 _ACEOF
16697 echo "cat >conf$$subs.awk <<_ACEOF" &&
16698 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16699 echo "_ACEOF"
16700 } >conf$$subs.sh ||
16701 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16702 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16703 ac_delim='%!_!# '
16704 for ac_last_try in false false false false false :; do
16705 . ./conf$$subs.sh ||
16706 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16708 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16709 if test $ac_delim_n = $ac_delim_num; then
16710 break
16711 elif $ac_last_try; then
16712 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16713 else
16714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16716 done
16717 rm -f conf$$subs.sh
16719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16720 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16721 _ACEOF
16722 sed -n '
16724 s/^/S["/; s/!.*/"]=/
16727 s/^[^!]*!//
16728 :repl
16729 t repl
16730 s/'"$ac_delim"'$//
16731 t delim
16734 s/\(.\{148\}\).*/\1/
16735 t more1
16736 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16739 b repl
16740 :more1
16741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16744 s/.\{148\}//
16745 t nl
16746 :delim
16748 s/\(.\{148\}\).*/\1/
16749 t more2
16750 s/["\\]/\\&/g; s/^/"/; s/$/"/
16753 :more2
16754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16757 s/.\{148\}//
16758 t delim
16759 ' <conf$$subs.awk | sed '
16760 /^[^""]/{
16762 s/\n//
16764 ' >>$CONFIG_STATUS || ac_write_fail=1
16765 rm -f conf$$subs.awk
16766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16767 _ACAWK
16768 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16769 for (key in S) S_is_set[key] = 1
16770 FS = "\a"
16774 line = $ 0
16775 nfields = split(line, field, "@")
16776 substed = 0
16777 len = length(field[1])
16778 for (i = 2; i < nfields; i++) {
16779 key = field[i]
16780 keylen = length(key)
16781 if (S_is_set[key]) {
16782 value = S[key]
16783 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16784 len += length(value) + length(field[++i])
16785 substed = 1
16786 } else
16787 len += 1 + keylen
16790 print line
16793 _ACAWK
16794 _ACEOF
16795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16796 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16797 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16798 else
16800 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16801 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16802 _ACEOF
16804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16806 # trailing colons and then remove the whole line if VPATH becomes empty
16807 # (actually we leave an empty line to preserve line numbers).
16808 if test "x$srcdir" = x.; then
16809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16810 s/:*\$(srcdir):*/:/
16811 s/:*\${srcdir}:*/:/
16812 s/:*@srcdir@:*/:/
16813 s/^\([^=]*=[ ]*\):*/\1/
16814 s/:*$//
16815 s/^[^=]*=[ ]*$//
16819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16820 fi # test -n "$CONFIG_FILES"
16823 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16824 shift
16825 for ac_tag
16827 case $ac_tag in
16828 :[FHLC]) ac_mode=$ac_tag; continue;;
16829 esac
16830 case $ac_mode$ac_tag in
16831 :[FHL]*:*);;
16832 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16833 :[FH]-) ac_tag=-:-;;
16834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16835 esac
16836 ac_save_IFS=$IFS
16837 IFS=:
16838 set x $ac_tag
16839 IFS=$ac_save_IFS
16840 shift
16841 ac_file=$1
16842 shift
16844 case $ac_mode in
16845 :L) ac_source=$1;;
16846 :[FH])
16847 ac_file_inputs=
16848 for ac_f
16850 case $ac_f in
16851 -) ac_f="$tmp/stdin";;
16852 *) # Look for the file first in the build tree, then in the source tree
16853 # (if the path is not absolute). The absolute path cannot be DOS-style,
16854 # because $ac_f cannot contain `:'.
16855 test -f "$ac_f" ||
16856 case $ac_f in
16857 [\\/$]*) false;;
16858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16859 esac ||
16860 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16861 esac
16862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16863 as_fn_append ac_file_inputs " '$ac_f'"
16864 done
16866 # Let's still pretend it is `configure' which instantiates (i.e., don't
16867 # use $as_me), people would be surprised to read:
16868 # /* config.h. Generated by config.status. */
16869 configure_input='Generated from '`
16870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16871 `' by configure.'
16872 if test x"$ac_file" != x-; then
16873 configure_input="$ac_file. $configure_input"
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16875 $as_echo "$as_me: creating $ac_file" >&6;}
16877 # Neutralize special characters interpreted by sed in replacement strings.
16878 case $configure_input in #(
16879 *\&* | *\|* | *\\* )
16880 ac_sed_conf_input=`$as_echo "$configure_input" |
16881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16882 *) ac_sed_conf_input=$configure_input;;
16883 esac
16885 case $ac_tag in
16886 *:-:* | *:-) cat >"$tmp/stdin" \
16887 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16888 esac
16890 esac
16892 ac_dir=`$as_dirname -- "$ac_file" ||
16893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16894 X"$ac_file" : 'X\(//\)[^/]' \| \
16895 X"$ac_file" : 'X\(//\)$' \| \
16896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16897 $as_echo X"$ac_file" |
16898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16899 s//\1/
16902 /^X\(\/\/\)[^/].*/{
16903 s//\1/
16906 /^X\(\/\/\)$/{
16907 s//\1/
16910 /^X\(\/\).*/{
16911 s//\1/
16914 s/.*/./; q'`
16915 as_dir="$ac_dir"; as_fn_mkdir_p
16916 ac_builddir=.
16918 case "$ac_dir" in
16919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16922 # A ".." for each directory in $ac_dir_suffix.
16923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16924 case $ac_top_builddir_sub in
16925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16927 esac ;;
16928 esac
16929 ac_abs_top_builddir=$ac_pwd
16930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16931 # for backward compatibility:
16932 ac_top_builddir=$ac_top_build_prefix
16934 case $srcdir in
16935 .) # We are building in place.
16936 ac_srcdir=.
16937 ac_top_srcdir=$ac_top_builddir_sub
16938 ac_abs_top_srcdir=$ac_pwd ;;
16939 [\\/]* | ?:[\\/]* ) # Absolute name.
16940 ac_srcdir=$srcdir$ac_dir_suffix;
16941 ac_top_srcdir=$srcdir
16942 ac_abs_top_srcdir=$srcdir ;;
16943 *) # Relative name.
16944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16945 ac_top_srcdir=$ac_top_build_prefix$srcdir
16946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16947 esac
16948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16951 case $ac_mode in
16954 # CONFIG_FILE
16957 case $INSTALL in
16958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16960 esac
16961 ac_MKDIR_P=$MKDIR_P
16962 case $MKDIR_P in
16963 [\\/$]* | ?:[\\/]* ) ;;
16964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16965 esac
16966 _ACEOF
16968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16969 # If the template does not know about datarootdir, expand it.
16970 # FIXME: This hack should be removed a few years after 2.60.
16971 ac_datarootdir_hack=; ac_datarootdir_seen=
16972 ac_sed_dataroot='
16973 /datarootdir/ {
16977 /@datadir@/p
16978 /@docdir@/p
16979 /@infodir@/p
16980 /@localedir@/p
16981 /@mandir@/p'
16982 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16983 *datarootdir*) ac_datarootdir_seen=yes;;
16984 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16986 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16987 _ACEOF
16988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16989 ac_datarootdir_hack='
16990 s&@datadir@&$datadir&g
16991 s&@docdir@&$docdir&g
16992 s&@infodir@&$infodir&g
16993 s&@localedir@&$localedir&g
16994 s&@mandir@&$mandir&g
16995 s&\\\${datarootdir}&$datarootdir&g' ;;
16996 esac
16997 _ACEOF
16999 # Neutralize VPATH when `$srcdir' = `.'.
17000 # Shell code in configure.ac might set extrasub.
17001 # FIXME: do we really want to maintain this feature?
17002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17003 ac_sed_extra="$ac_vpsub
17004 $extrasub
17005 _ACEOF
17006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17009 s|@configure_input@|$ac_sed_conf_input|;t t
17010 s&@top_builddir@&$ac_top_builddir_sub&;t t
17011 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17012 s&@srcdir@&$ac_srcdir&;t t
17013 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17014 s&@top_srcdir@&$ac_top_srcdir&;t t
17015 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17016 s&@builddir@&$ac_builddir&;t t
17017 s&@abs_builddir@&$ac_abs_builddir&;t t
17018 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17019 s&@INSTALL@&$ac_INSTALL&;t t
17020 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17021 $ac_datarootdir_hack
17023 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17024 || as_fn_error "could not create $ac_file" "$LINENO" 5
17026 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17027 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17030 which seems to be undefined. Please make sure it is defined." >&5
17031 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17032 which seems to be undefined. Please make sure it is defined." >&2;}
17034 rm -f "$tmp/stdin"
17035 case $ac_file in
17036 -) cat "$tmp/out" && rm -f "$tmp/out";;
17037 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17038 esac \
17039 || as_fn_error "could not create $ac_file" "$LINENO" 5
17043 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17044 $as_echo "$as_me: executing $ac_file commands" >&6;}
17046 esac
17049 case $ac_file$ac_mode in
17050 "default-1":C)
17051 # Only add multilib support code if we just rebuilt the top-level
17052 # Makefile.
17053 case " $CONFIG_FILES " in
17054 *" Makefile "*)
17055 ac_file=Makefile . ${multi_basedir}/config-ml.in
17057 esac ;;
17058 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17059 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17060 # are listed without --file. Let's play safe and only enable the eval
17061 # if we detect the quoting.
17062 case $CONFIG_FILES in
17063 *\'*) eval set x "$CONFIG_FILES" ;;
17064 *) set x $CONFIG_FILES ;;
17065 esac
17066 shift
17067 for mf
17069 # Strip MF so we end up with the name of the file.
17070 mf=`echo "$mf" | sed -e 's/:.*$//'`
17071 # Check whether this is an Automake generated Makefile or not.
17072 # We used to match only the files named `Makefile.in', but
17073 # some people rename them; so instead we look at the file content.
17074 # Grep'ing the first line is not enough: some people post-process
17075 # each Makefile.in and add a new line on top of each file to say so.
17076 # Grep'ing the whole file is not good either: AIX grep has a line
17077 # limit of 2048, but all sed's we know have understand at least 4000.
17078 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17079 dirpart=`$as_dirname -- "$mf" ||
17080 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17081 X"$mf" : 'X\(//\)[^/]' \| \
17082 X"$mf" : 'X\(//\)$' \| \
17083 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17084 $as_echo X"$mf" |
17085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17086 s//\1/
17089 /^X\(\/\/\)[^/].*/{
17090 s//\1/
17093 /^X\(\/\/\)$/{
17094 s//\1/
17097 /^X\(\/\).*/{
17098 s//\1/
17101 s/.*/./; q'`
17102 else
17103 continue
17105 # Extract the definition of DEPDIR, am__include, and am__quote
17106 # from the Makefile without running `make'.
17107 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17108 test -z "$DEPDIR" && continue
17109 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17110 test -z "am__include" && continue
17111 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17112 # When using ansi2knr, U may be empty or an underscore; expand it
17113 U=`sed -n 's/^U = //p' < "$mf"`
17114 # Find all dependency output files, they are included files with
17115 # $(DEPDIR) in their names. We invoke sed twice because it is the
17116 # simplest approach to changing $(DEPDIR) to its actual value in the
17117 # expansion.
17118 for file in `sed -n "
17119 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17120 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17121 # Make sure the directory exists.
17122 test -f "$dirpart/$file" && continue
17123 fdir=`$as_dirname -- "$file" ||
17124 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17125 X"$file" : 'X\(//\)[^/]' \| \
17126 X"$file" : 'X\(//\)$' \| \
17127 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17128 $as_echo X"$file" |
17129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17130 s//\1/
17133 /^X\(\/\/\)[^/].*/{
17134 s//\1/
17137 /^X\(\/\/\)$/{
17138 s//\1/
17141 /^X\(\/\).*/{
17142 s//\1/
17145 s/.*/./; q'`
17146 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17147 # echo "creating $dirpart/$file"
17148 echo '# dummy' > "$dirpart/$file"
17149 done
17150 done
17153 "libtool":C)
17155 # See if we are running on zsh, and set the options which allow our
17156 # commands through without removal of \ escapes.
17157 if test -n "${ZSH_VERSION+set}" ; then
17158 setopt NO_GLOB_SUBST
17161 cfgfile="${ofile}T"
17162 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17163 $RM "$cfgfile"
17165 cat <<_LT_EOF >> "$cfgfile"
17166 #! $SHELL
17168 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17169 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17170 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17171 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17173 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17174 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17175 # Written by Gordon Matzigkeit, 1996
17177 # This file is part of GNU Libtool.
17179 # GNU Libtool is free software; you can redistribute it and/or
17180 # modify it under the terms of the GNU General Public License as
17181 # published by the Free Software Foundation; either version 2 of
17182 # the License, or (at your option) any later version.
17184 # As a special exception to the GNU General Public License,
17185 # if you distribute this file as part of a program or library that
17186 # is built using GNU Libtool, you may include this file under the
17187 # same distribution terms that you use for the rest of that program.
17189 # GNU Libtool is distributed in the hope that it will be useful,
17190 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17191 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17192 # GNU General Public License for more details.
17194 # You should have received a copy of the GNU General Public License
17195 # along with GNU Libtool; see the file COPYING. If not, a copy
17196 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17197 # obtained by writing to the Free Software Foundation, Inc.,
17198 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17201 # The names of the tagged configurations supported by this script.
17202 available_tags="CXX "
17204 # ### BEGIN LIBTOOL CONFIG
17206 # Which release of libtool.m4 was used?
17207 macro_version=$macro_version
17208 macro_revision=$macro_revision
17210 # Whether or not to build shared libraries.
17211 build_libtool_libs=$enable_shared
17213 # Whether or not to build static libraries.
17214 build_old_libs=$enable_static
17216 # What type of objects to build.
17217 pic_mode=$pic_mode
17219 # Whether or not to optimize for fast installation.
17220 fast_install=$enable_fast_install
17222 # Shell to use when invoking shell scripts.
17223 SHELL=$lt_SHELL
17225 # An echo program that protects backslashes.
17226 ECHO=$lt_ECHO
17228 # The host system.
17229 host_alias=$host_alias
17230 host=$host
17231 host_os=$host_os
17233 # The build system.
17234 build_alias=$build_alias
17235 build=$build
17236 build_os=$build_os
17238 # A sed program that does not truncate output.
17239 SED=$lt_SED
17241 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17242 Xsed="\$SED -e 1s/^X//"
17244 # A grep program that handles long lines.
17245 GREP=$lt_GREP
17247 # An ERE matcher.
17248 EGREP=$lt_EGREP
17250 # A literal string matcher.
17251 FGREP=$lt_FGREP
17253 # A BSD- or MS-compatible name lister.
17254 NM=$lt_NM
17256 # Whether we need soft or hard links.
17257 LN_S=$lt_LN_S
17259 # What is the maximum length of a command?
17260 max_cmd_len=$max_cmd_len
17262 # Object file suffix (normally "o").
17263 objext=$ac_objext
17265 # Executable file suffix (normally "").
17266 exeext=$exeext
17268 # whether the shell understands "unset".
17269 lt_unset=$lt_unset
17271 # turn spaces into newlines.
17272 SP2NL=$lt_lt_SP2NL
17274 # turn newlines into spaces.
17275 NL2SP=$lt_lt_NL2SP
17277 # An object symbol dumper.
17278 OBJDUMP=$lt_OBJDUMP
17280 # Method to check whether dependent libraries are shared objects.
17281 deplibs_check_method=$lt_deplibs_check_method
17283 # Command to use when deplibs_check_method == "file_magic".
17284 file_magic_cmd=$lt_file_magic_cmd
17286 # The archiver.
17287 AR=$lt_AR
17288 AR_FLAGS=$lt_AR_FLAGS
17290 # A symbol stripping program.
17291 STRIP=$lt_STRIP
17293 # Commands used to install an old-style archive.
17294 RANLIB=$lt_RANLIB
17295 old_postinstall_cmds=$lt_old_postinstall_cmds
17296 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17298 # Whether to use a lock for old archive extraction.
17299 lock_old_archive_extraction=$lock_old_archive_extraction
17301 # A C compiler.
17302 LTCC=$lt_CC
17304 # LTCC compiler flags.
17305 LTCFLAGS=$lt_CFLAGS
17307 # Take the output of nm and produce a listing of raw symbols and C names.
17308 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17310 # Transform the output of nm in a proper C declaration.
17311 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17313 # Transform the output of nm in a C name address pair.
17314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17316 # Transform the output of nm in a C name address pair when lib prefix is needed.
17317 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17319 # The name of the directory that contains temporary libtool files.
17320 objdir=$objdir
17322 # Used to examine libraries when file_magic_cmd begins with "file".
17323 MAGIC_CMD=$MAGIC_CMD
17325 # Must we lock files when doing compilation?
17326 need_locks=$lt_need_locks
17328 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17329 DSYMUTIL=$lt_DSYMUTIL
17331 # Tool to change global to local symbols on Mac OS X.
17332 NMEDIT=$lt_NMEDIT
17334 # Tool to manipulate fat objects and archives on Mac OS X.
17335 LIPO=$lt_LIPO
17337 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17338 OTOOL=$lt_OTOOL
17340 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17341 OTOOL64=$lt_OTOOL64
17343 # Old archive suffix (normally "a").
17344 libext=$libext
17346 # Shared library suffix (normally ".so").
17347 shrext_cmds=$lt_shrext_cmds
17349 # The commands to extract the exported symbol list from a shared archive.
17350 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17352 # Variables whose values should be saved in libtool wrapper scripts and
17353 # restored at link time.
17354 variables_saved_for_relink=$lt_variables_saved_for_relink
17356 # Do we need the "lib" prefix for modules?
17357 need_lib_prefix=$need_lib_prefix
17359 # Do we need a version for libraries?
17360 need_version=$need_version
17362 # Library versioning type.
17363 version_type=$version_type
17365 # Shared library runtime path variable.
17366 runpath_var=$runpath_var
17368 # Shared library path variable.
17369 shlibpath_var=$shlibpath_var
17371 # Is shlibpath searched before the hard-coded library search path?
17372 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17374 # Format of library name prefix.
17375 libname_spec=$lt_libname_spec
17377 # List of archive names. First name is the real one, the rest are links.
17378 # The last name is the one that the linker finds with -lNAME
17379 library_names_spec=$lt_library_names_spec
17381 # The coded name of the library, if different from the real name.
17382 soname_spec=$lt_soname_spec
17384 # Permission mode override for installation of shared libraries.
17385 install_override_mode=$lt_install_override_mode
17387 # Command to use after installation of a shared archive.
17388 postinstall_cmds=$lt_postinstall_cmds
17390 # Command to use after uninstallation of a shared archive.
17391 postuninstall_cmds=$lt_postuninstall_cmds
17393 # Commands used to finish a libtool library installation in a directory.
17394 finish_cmds=$lt_finish_cmds
17396 # As "finish_cmds", except a single script fragment to be evaled but
17397 # not shown.
17398 finish_eval=$lt_finish_eval
17400 # Whether we should hardcode library paths into libraries.
17401 hardcode_into_libs=$hardcode_into_libs
17403 # Compile-time system search path for libraries.
17404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17406 # Run-time system search path for libraries.
17407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17409 # Whether dlopen is supported.
17410 dlopen_support=$enable_dlopen
17412 # Whether dlopen of programs is supported.
17413 dlopen_self=$enable_dlopen_self
17415 # Whether dlopen of statically linked programs is supported.
17416 dlopen_self_static=$enable_dlopen_self_static
17418 # Commands to strip libraries.
17419 old_striplib=$lt_old_striplib
17420 striplib=$lt_striplib
17423 # The linker used to build libraries.
17424 LD=$lt_LD
17426 # How to create reloadable object files.
17427 reload_flag=$lt_reload_flag
17428 reload_cmds=$lt_reload_cmds
17430 # Commands used to build an old-style archive.
17431 old_archive_cmds=$lt_old_archive_cmds
17433 # A language specific compiler.
17434 CC=$lt_compiler
17436 # Is the compiler the GNU compiler?
17437 with_gcc=$GCC
17439 # Compiler flag to turn off builtin functions.
17440 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17442 # How to pass a linker flag through the compiler.
17443 wl=$lt_lt_prog_compiler_wl
17445 # Additional compiler flags for building library objects.
17446 pic_flag=$lt_lt_prog_compiler_pic
17448 # Compiler flag to prevent dynamic linking.
17449 link_static_flag=$lt_lt_prog_compiler_static
17451 # Does compiler simultaneously support -c and -o options?
17452 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17454 # Whether or not to add -lc for building shared libraries.
17455 build_libtool_need_lc=$archive_cmds_need_lc
17457 # Whether or not to disallow shared libs when runtime libs are static.
17458 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17460 # Compiler flag to allow reflexive dlopens.
17461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17463 # Compiler flag to generate shared objects directly from archives.
17464 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17466 # Whether the compiler copes with passing no objects directly.
17467 compiler_needs_object=$lt_compiler_needs_object
17469 # Create an old-style archive from a shared archive.
17470 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17472 # Create a temporary old-style archive to link instead of a shared archive.
17473 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17475 # Commands used to build a shared archive.
17476 archive_cmds=$lt_archive_cmds
17477 archive_expsym_cmds=$lt_archive_expsym_cmds
17479 # Commands used to build a loadable module if different from building
17480 # a shared archive.
17481 module_cmds=$lt_module_cmds
17482 module_expsym_cmds=$lt_module_expsym_cmds
17484 # Whether we are building with GNU ld or not.
17485 with_gnu_ld=$lt_with_gnu_ld
17487 # Flag that allows shared libraries with undefined symbols to be built.
17488 allow_undefined_flag=$lt_allow_undefined_flag
17490 # Flag that enforces no undefined symbols.
17491 no_undefined_flag=$lt_no_undefined_flag
17493 # Flag to hardcode \$libdir into a binary during linking.
17494 # This must work even if \$libdir does not exist
17495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17497 # If ld is used when linking, flag to hardcode \$libdir into a binary
17498 # during linking. This must work even if \$libdir does not exist.
17499 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17501 # Whether we need a single "-rpath" flag with a separated argument.
17502 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17504 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17505 # DIR into the resulting binary.
17506 hardcode_direct=$hardcode_direct
17508 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17509 # DIR into the resulting binary and the resulting library dependency is
17510 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17511 # library is relocated.
17512 hardcode_direct_absolute=$hardcode_direct_absolute
17514 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17515 # into the resulting binary.
17516 hardcode_minus_L=$hardcode_minus_L
17518 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17519 # into the resulting binary.
17520 hardcode_shlibpath_var=$hardcode_shlibpath_var
17522 # Set to "yes" if building a shared library automatically hardcodes DIR
17523 # into the library and all subsequent libraries and executables linked
17524 # against it.
17525 hardcode_automatic=$hardcode_automatic
17527 # Set to yes if linker adds runtime paths of dependent libraries
17528 # to runtime path list.
17529 inherit_rpath=$inherit_rpath
17531 # Whether libtool must link a program against all its dependency libraries.
17532 link_all_deplibs=$link_all_deplibs
17534 # Fix the shell variable \$srcfile for the compiler.
17535 fix_srcfile_path=$lt_fix_srcfile_path
17537 # Set to "yes" if exported symbols are required.
17538 always_export_symbols=$always_export_symbols
17540 # The commands to list exported symbols.
17541 export_symbols_cmds=$lt_export_symbols_cmds
17543 # Symbols that should not be listed in the preloaded symbols.
17544 exclude_expsyms=$lt_exclude_expsyms
17546 # Symbols that must always be exported.
17547 include_expsyms=$lt_include_expsyms
17549 # Commands necessary for linking programs (against libraries) with templates.
17550 prelink_cmds=$lt_prelink_cmds
17552 # Specify filename containing input files.
17553 file_list_spec=$lt_file_list_spec
17555 # How to hardcode a shared library path into an executable.
17556 hardcode_action=$hardcode_action
17558 # The directories searched by this compiler when creating a shared library.
17559 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17561 # Dependencies to place before and after the objects being linked to
17562 # create a shared library.
17563 predep_objects=$lt_predep_objects
17564 postdep_objects=$lt_postdep_objects
17565 predeps=$lt_predeps
17566 postdeps=$lt_postdeps
17568 # The library search path used internally by the compiler when linking
17569 # a shared library.
17570 compiler_lib_search_path=$lt_compiler_lib_search_path
17572 # ### END LIBTOOL CONFIG
17574 _LT_EOF
17576 case $host_os in
17577 aix3*)
17578 cat <<\_LT_EOF >> "$cfgfile"
17579 # AIX sometimes has problems with the GCC collect2 program. For some
17580 # reason, if we set the COLLECT_NAMES environment variable, the problems
17581 # vanish in a puff of smoke.
17582 if test "X${COLLECT_NAMES+set}" != Xset; then
17583 COLLECT_NAMES=
17584 export COLLECT_NAMES
17586 _LT_EOF
17588 esac
17591 ltmain="$ac_aux_dir/ltmain.sh"
17594 # We use sed instead of cat because bash on DJGPP gets confused if
17595 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17596 # text mode, it properly converts lines to CR/LF. This bash problem
17597 # is reportedly fixed, but why not run on old versions too?
17598 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17599 || (rm -f "$cfgfile"; exit 1)
17601 case $xsi_shell in
17602 yes)
17603 cat << \_LT_EOF >> "$cfgfile"
17605 # func_dirname file append nondir_replacement
17606 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17607 # otherwise set result to NONDIR_REPLACEMENT.
17608 func_dirname ()
17610 case ${1} in
17611 */*) func_dirname_result="${1%/*}${2}" ;;
17612 * ) func_dirname_result="${3}" ;;
17613 esac
17616 # func_basename file
17617 func_basename ()
17619 func_basename_result="${1##*/}"
17622 # func_dirname_and_basename file append nondir_replacement
17623 # perform func_basename and func_dirname in a single function
17624 # call:
17625 # dirname: Compute the dirname of FILE. If nonempty,
17626 # add APPEND to the result, otherwise set result
17627 # to NONDIR_REPLACEMENT.
17628 # value returned in "$func_dirname_result"
17629 # basename: Compute filename of FILE.
17630 # value retuned in "$func_basename_result"
17631 # Implementation must be kept synchronized with func_dirname
17632 # and func_basename. For efficiency, we do not delegate to
17633 # those functions but instead duplicate the functionality here.
17634 func_dirname_and_basename ()
17636 case ${1} in
17637 */*) func_dirname_result="${1%/*}${2}" ;;
17638 * ) func_dirname_result="${3}" ;;
17639 esac
17640 func_basename_result="${1##*/}"
17643 # func_stripname prefix suffix name
17644 # strip PREFIX and SUFFIX off of NAME.
17645 # PREFIX and SUFFIX must not contain globbing or regex special
17646 # characters, hashes, percent signs, but SUFFIX may contain a leading
17647 # dot (in which case that matches only a dot).
17648 func_stripname ()
17650 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17651 # positional parameters, so assign one to ordinary parameter first.
17652 func_stripname_result=${3}
17653 func_stripname_result=${func_stripname_result#"${1}"}
17654 func_stripname_result=${func_stripname_result%"${2}"}
17657 # func_opt_split
17658 func_opt_split ()
17660 func_opt_split_opt=${1%%=*}
17661 func_opt_split_arg=${1#*=}
17664 # func_lo2o object
17665 func_lo2o ()
17667 case ${1} in
17668 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17669 *) func_lo2o_result=${1} ;;
17670 esac
17673 # func_xform libobj-or-source
17674 func_xform ()
17676 func_xform_result=${1%.*}.lo
17679 # func_arith arithmetic-term...
17680 func_arith ()
17682 func_arith_result=$(( $* ))
17685 # func_len string
17686 # STRING may not start with a hyphen.
17687 func_len ()
17689 func_len_result=${#1}
17692 _LT_EOF
17694 *) # Bourne compatible functions.
17695 cat << \_LT_EOF >> "$cfgfile"
17697 # func_dirname file append nondir_replacement
17698 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17699 # otherwise set result to NONDIR_REPLACEMENT.
17700 func_dirname ()
17702 # Extract subdirectory from the argument.
17703 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17704 if test "X$func_dirname_result" = "X${1}"; then
17705 func_dirname_result="${3}"
17706 else
17707 func_dirname_result="$func_dirname_result${2}"
17711 # func_basename file
17712 func_basename ()
17714 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17718 # func_stripname prefix suffix name
17719 # strip PREFIX and SUFFIX off of NAME.
17720 # PREFIX and SUFFIX must not contain globbing or regex special
17721 # characters, hashes, percent signs, but SUFFIX may contain a leading
17722 # dot (in which case that matches only a dot).
17723 # func_strip_suffix prefix name
17724 func_stripname ()
17726 case ${2} in
17727 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17728 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17729 esac
17732 # sed scripts:
17733 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17734 my_sed_long_arg='1s/^-[^=]*=//'
17736 # func_opt_split
17737 func_opt_split ()
17739 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17740 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17743 # func_lo2o object
17744 func_lo2o ()
17746 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17749 # func_xform libobj-or-source
17750 func_xform ()
17752 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17755 # func_arith arithmetic-term...
17756 func_arith ()
17758 func_arith_result=`expr "$@"`
17761 # func_len string
17762 # STRING may not start with a hyphen.
17763 func_len ()
17765 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17768 _LT_EOF
17769 esac
17771 case $lt_shell_append in
17772 yes)
17773 cat << \_LT_EOF >> "$cfgfile"
17775 # func_append var value
17776 # Append VALUE to the end of shell variable VAR.
17777 func_append ()
17779 eval "$1+=\$2"
17781 _LT_EOF
17784 cat << \_LT_EOF >> "$cfgfile"
17786 # func_append var value
17787 # Append VALUE to the end of shell variable VAR.
17788 func_append ()
17790 eval "$1=\$$1\$2"
17793 _LT_EOF
17795 esac
17798 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17799 || (rm -f "$cfgfile"; exit 1)
17801 mv -f "$cfgfile" "$ofile" ||
17802 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17803 chmod +x "$ofile"
17806 cat <<_LT_EOF >> "$ofile"
17808 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17810 # The linker used to build libraries.
17811 LD=$lt_LD_CXX
17813 # How to create reloadable object files.
17814 reload_flag=$lt_reload_flag_CXX
17815 reload_cmds=$lt_reload_cmds_CXX
17817 # Commands used to build an old-style archive.
17818 old_archive_cmds=$lt_old_archive_cmds_CXX
17820 # A language specific compiler.
17821 CC=$lt_compiler_CXX
17823 # Is the compiler the GNU compiler?
17824 with_gcc=$GCC_CXX
17826 # Compiler flag to turn off builtin functions.
17827 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17829 # How to pass a linker flag through the compiler.
17830 wl=$lt_lt_prog_compiler_wl_CXX
17832 # Additional compiler flags for building library objects.
17833 pic_flag=$lt_lt_prog_compiler_pic_CXX
17835 # Compiler flag to prevent dynamic linking.
17836 link_static_flag=$lt_lt_prog_compiler_static_CXX
17838 # Does compiler simultaneously support -c and -o options?
17839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17841 # Whether or not to add -lc for building shared libraries.
17842 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17844 # Whether or not to disallow shared libs when runtime libs are static.
17845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17847 # Compiler flag to allow reflexive dlopens.
17848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17850 # Compiler flag to generate shared objects directly from archives.
17851 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17853 # Whether the compiler copes with passing no objects directly.
17854 compiler_needs_object=$lt_compiler_needs_object_CXX
17856 # Create an old-style archive from a shared archive.
17857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17859 # Create a temporary old-style archive to link instead of a shared archive.
17860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17862 # Commands used to build a shared archive.
17863 archive_cmds=$lt_archive_cmds_CXX
17864 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17866 # Commands used to build a loadable module if different from building
17867 # a shared archive.
17868 module_cmds=$lt_module_cmds_CXX
17869 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17871 # Whether we are building with GNU ld or not.
17872 with_gnu_ld=$lt_with_gnu_ld_CXX
17874 # Flag that allows shared libraries with undefined symbols to be built.
17875 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17877 # Flag that enforces no undefined symbols.
17878 no_undefined_flag=$lt_no_undefined_flag_CXX
17880 # Flag to hardcode \$libdir into a binary during linking.
17881 # This must work even if \$libdir does not exist
17882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17884 # If ld is used when linking, flag to hardcode \$libdir into a binary
17885 # during linking. This must work even if \$libdir does not exist.
17886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17888 # Whether we need a single "-rpath" flag with a separated argument.
17889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17891 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17892 # DIR into the resulting binary.
17893 hardcode_direct=$hardcode_direct_CXX
17895 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17896 # DIR into the resulting binary and the resulting library dependency is
17897 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17898 # library is relocated.
17899 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17901 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17902 # into the resulting binary.
17903 hardcode_minus_L=$hardcode_minus_L_CXX
17905 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17906 # into the resulting binary.
17907 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17909 # Set to "yes" if building a shared library automatically hardcodes DIR
17910 # into the library and all subsequent libraries and executables linked
17911 # against it.
17912 hardcode_automatic=$hardcode_automatic_CXX
17914 # Set to yes if linker adds runtime paths of dependent libraries
17915 # to runtime path list.
17916 inherit_rpath=$inherit_rpath_CXX
17918 # Whether libtool must link a program against all its dependency libraries.
17919 link_all_deplibs=$link_all_deplibs_CXX
17921 # Fix the shell variable \$srcfile for the compiler.
17922 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17924 # Set to "yes" if exported symbols are required.
17925 always_export_symbols=$always_export_symbols_CXX
17927 # The commands to list exported symbols.
17928 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17930 # Symbols that should not be listed in the preloaded symbols.
17931 exclude_expsyms=$lt_exclude_expsyms_CXX
17933 # Symbols that must always be exported.
17934 include_expsyms=$lt_include_expsyms_CXX
17936 # Commands necessary for linking programs (against libraries) with templates.
17937 prelink_cmds=$lt_prelink_cmds_CXX
17939 # Specify filename containing input files.
17940 file_list_spec=$lt_file_list_spec_CXX
17942 # How to hardcode a shared library path into an executable.
17943 hardcode_action=$hardcode_action_CXX
17945 # The directories searched by this compiler when creating a shared library.
17946 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17948 # Dependencies to place before and after the objects being linked to
17949 # create a shared library.
17950 predep_objects=$lt_predep_objects_CXX
17951 postdep_objects=$lt_postdep_objects_CXX
17952 predeps=$lt_predeps_CXX
17953 postdeps=$lt_postdeps_CXX
17955 # The library search path used internally by the compiler when linking
17956 # a shared library.
17957 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17959 # ### END LIBTOOL TAG CONFIG: CXX
17960 _LT_EOF
17963 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17964 s!`test -f '$<' || echo '$(srcdir)/'`!!
17965 _EOF
17966 sed -f vpsed$$ $ac_file > tmp$$
17967 mv tmp$$ $ac_file
17968 rm vpsed$$
17969 echo 'MULTISUBDIR =' >> $ac_file
17970 ml_norecursion=yes
17971 . ${multi_basedir}/config-ml.in
17972 { ml_norecursion=; unset ml_norecursion;}
17975 esac
17976 done # for ac_tag
17979 as_fn_exit 0
17980 _ACEOF
17981 ac_clean_files=$ac_clean_files_save
17983 test $ac_write_fail = 0 ||
17984 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17987 # configure is writing to config.log, and then calls config.status.
17988 # config.status does its own redirection, appending to config.log.
17989 # Unfortunately, on DOS this fails, as config.log is still kept open
17990 # by configure, so config.status won't be able to write to it; its
17991 # output is simply discarded. So we exec the FD to /dev/null,
17992 # effectively closing config.log, so it can be properly (re)opened and
17993 # appended to by config.status. When coming back to configure, we
17994 # need to make the FD available again.
17995 if test "$no_create" != yes; then
17996 ac_cs_success=:
17997 ac_config_status_args=
17998 test "$silent" = yes &&
17999 ac_config_status_args="$ac_config_status_args --quiet"
18000 exec 5>/dev/null
18001 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18002 exec 5>>config.log
18003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18004 # would make configure fail if this is the last instruction.
18005 $ac_cs_success || as_fn_exit $?
18007 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18009 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}