Daily bump.
[official-gcc.git] / libvtv / configure
bloba7211b87f829f21ed9585419fc2de4f3e150acd3
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 VTV_CYGMIN_FALSE
606 VTV_CYGMIN_TRUE
607 XCFLAGS
608 libtool_VERSION
609 enable_static
610 enable_shared
611 lt_host_flags
612 CXXCPP
613 OTOOL64
614 OTOOL
615 LIPO
616 NMEDIT
617 DSYMUTIL
618 OBJDUMP
619 LN_S
621 ac_ct_DUMPBIN
622 DUMPBIN
624 FGREP
626 LIBTOOL
627 RANLIB
630 CCASFLAGS
631 CCAS
632 am__fastdepCXX_FALSE
633 am__fastdepCXX_TRUE
634 CXXDEPMODE
635 ac_ct_CXX
636 CXXFLAGS
638 EGREP
639 GREP
641 am__fastdepCC_FALSE
642 am__fastdepCC_TRUE
643 CCDEPMODE
644 AMDEPBACKSLASH
645 AMDEP_FALSE
646 AMDEP_TRUE
647 am__quote
648 am__include
649 DEPDIR
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
657 toolexeclibdir
658 toolexecdir
659 toplevel_srcdir
660 toplevel_builddir
661 libvtv_srcdir
662 libvtv_builddir
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 multi_basedir
667 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 ENABLE_VTABLE_VERIFY_FALSE
691 ENABLE_VTABLE_VERIFY_TRUE
692 LIBSTDCXX_RAW_CXX_LDFLAGS
693 LIBSTDCXX_RAW_CXX_CXXFLAGS
694 target_noncanonical
695 target_os
696 target_vendor
697 target_cpu
698 target
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 enable_version_specific_runtime_libs
749 enable_vtable_verify
750 enable_multilib
751 enable_maintainer_mode
752 enable_dependency_tracking
753 enable_shared
754 enable_static
755 with_pic
756 enable_fast_install
757 with_gnu_ld
758 enable_libtool_lock
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
769 CXXCPP'
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
820 ac_prev=
821 ac_dashdash=
822 for ac_option
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
831 case $ac_option in
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *) ac_optarg=yes ;;
834 esac
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
840 ac_dashdash=yes ;;
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
859 --config-cache | -C)
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information."
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 esac
1177 done
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1263 /^X\(\/\/\)$/{
1264 s//\1/
1267 /^X\(\/\).*/{
1268 s//\1/
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1276 else
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1286 pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1320 Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364 _ACEOF
1366 cat <<\_ACEOF
1368 Program names:
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373 System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1377 _ACEOF
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1383 esac
1384 cat <<\_ACEOF
1386 Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1391 --enable-vtable-verify Enable vtable verification feature
1392 --enable-multilib build many library versions (default)
1393 --enable-maintainer-mode enable make rules and dependencies not useful
1394 (and sometimes confusing) to the casual installer
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --enable-shared[=PKGS] build shared libraries [default=yes]
1398 --enable-static[=PKGS] build static libraries [default=yes]
1399 --enable-fast-install[=PKGS]
1400 optimize for fast installation [default=yes]
1401 --disable-libtool-lock avoid locking (might break parallel builds)
1403 Optional Packages:
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-pic try to use only PIC/non-PIC objects [default=use
1407 both]
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1419 CXX C++ compiler command
1420 CXXFLAGS C++ compiler flags
1421 CXXCPP C++ preprocessor
1423 Use these variables to override the choices made by `configure' or to help
1424 it to find libraries and programs with nonstandard names/locations.
1426 Report bugs to the package provider.
1427 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1428 General help using GNU software: <http://www.gnu.org/gethelp/>.
1429 _ACEOF
1430 ac_status=$?
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 GNU Vtable Verification Runtime Library configure 1.0
1492 generated by GNU Autoconf 2.64
1494 Copyright (C) 2009 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1536 ac_retval=1
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_c_try_cpp LINENO
1544 # ----------------------
1545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_cpp ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 if { { ac_try="$ac_cpp conftest.$ac_ext"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } >/dev/null && {
1565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 }; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1573 ac_retval=1
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1578 } # ac_fn_c_try_cpp
1580 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1581 # -------------------------------------------------------
1582 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1583 # the include files in INCLUDES and setting the cache variable VAR
1584 # accordingly.
1585 ac_fn_c_check_header_mongrel ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590 $as_echo_n "checking for $2... " >&6; }
1591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1592 $as_echo_n "(cached) " >&6
1594 eval ac_res=\$$3
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597 else
1598 # Is the header compilable?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1600 $as_echo_n "checking $2 usability... " >&6; }
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1604 #include <$2>
1605 _ACEOF
1606 if ac_fn_c_try_compile "$LINENO"; then :
1607 ac_header_compiler=yes
1608 else
1609 ac_header_compiler=no
1611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1613 $as_echo "$ac_header_compiler" >&6; }
1615 # Is the header present?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1617 $as_echo_n "checking $2 presence... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_cpp "$LINENO"; then :
1623 ac_header_preproc=yes
1624 else
1625 ac_header_preproc=no
1627 rm -f conftest.err conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1629 $as_echo "$ac_header_preproc" >&6; }
1631 # So? What about this header?
1632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1633 yes:no: )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1635 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639 no:yes:* )
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1641 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1643 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1645 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1647 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651 esac
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1655 $as_echo_n "(cached) " >&6
1656 else
1657 eval "$3=\$ac_header_compiler"
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 } # ac_fn_c_check_header_mongrel
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1671 ac_fn_c_try_run ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=$ac_status
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 return $ac_retval
1707 } # ac_fn_c_try_run
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 eval "$3=yes"
1728 else
1729 eval "$3=no"
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 } # ac_fn_c_check_header_compile
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 $as_test_x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1774 ac_retval=1
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1784 } # ac_fn_c_try_link
1786 # ac_fn_c_check_func LINENO FUNC VAR
1787 # ----------------------------------
1788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1789 ac_fn_c_check_func ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801 #define $2 innocuous_$2
1803 /* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1808 #ifdef __STDC__
1809 # include <limits.h>
1810 #else
1811 # include <assert.h>
1812 #endif
1814 #undef $2
1816 /* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819 #ifdef __cplusplus
1820 extern "C"
1821 #endif
1822 char $2 ();
1823 /* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826 #if defined __stub_$2 || defined __stub___$2
1827 choke me
1828 #endif
1831 main ()
1833 return $2 ();
1835 return 0;
1837 _ACEOF
1838 if ac_fn_c_try_link "$LINENO"; then :
1839 eval "$3=yes"
1840 else
1841 eval "$3=no"
1843 rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_c_check_func
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_cxx_try_cpp LINENO
1892 # ------------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_cpp ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1926 } # ac_fn_cxx_try_cpp
1928 # ac_fn_cxx_try_link LINENO
1929 # -------------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_cxx_try_link ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=1
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 return $ac_retval
1972 } # ac_fn_cxx_try_link
1973 cat >config.log <<_ACEOF
1974 This file contains any messages produced by compilers while
1975 running configure, to aid debugging if configure makes a mistake.
1977 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1978 generated by GNU Autoconf 2.64. Invocation command line was
1980 $ $0 $@
1982 _ACEOF
1983 exec 5>>config.log
1985 cat <<_ASUNAME
1986 ## --------- ##
1987 ## Platform. ##
1988 ## --------- ##
1990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1999 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2000 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2003 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2004 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2005 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2007 _ASUNAME
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
2014 $as_echo "PATH: $as_dir"
2015 done
2016 IFS=$as_save_IFS
2018 } >&5
2020 cat >&5 <<_ACEOF
2023 ## ----------- ##
2024 ## Core tests. ##
2025 ## ----------- ##
2027 _ACEOF
2030 # Keep a trace of the command line.
2031 # Strip out --no-create and --no-recursion so they do not pile up.
2032 # Strip out --silent because we don't want to record it for future runs.
2033 # Also quote any args containing shell meta-characters.
2034 # Make two passes to allow for proper duplicate-argument suppression.
2035 ac_configure_args=
2036 ac_configure_args0=
2037 ac_configure_args1=
2038 ac_must_keep_next=false
2039 for ac_pass in 1 2
2041 for ac_arg
2043 case $ac_arg in
2044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046 | -silent | --silent | --silen | --sile | --sil)
2047 continue ;;
2048 *\'*)
2049 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 esac
2051 case $ac_pass in
2052 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2054 as_fn_append ac_configure_args1 " '$ac_arg'"
2055 if test $ac_must_keep_next = true; then
2056 ac_must_keep_next=false # Got value, back to normal.
2057 else
2058 case $ac_arg in
2059 *=* | --config-cache | -C | -disable-* | --disable-* \
2060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062 | -with-* | --with-* | -without-* | --without-* | --x)
2063 case "$ac_configure_args0 " in
2064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 esac
2067 -* ) ac_must_keep_next=true ;;
2068 esac
2070 as_fn_append ac_configure_args " '$ac_arg'"
2072 esac
2073 done
2074 done
2075 { ac_configure_args0=; unset ac_configure_args0;}
2076 { ac_configure_args1=; unset ac_configure_args1;}
2078 # When interrupted or exit'd, cleanup temporary files, and complete
2079 # config.log. We remove comments because anyway the quotes in there
2080 # would cause problems or look ugly.
2081 # WARNING: Use '\'' to represent an apostrophe within the trap.
2082 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083 trap 'exit_status=$?
2084 # Save into config.log some information that might help in debugging.
2086 echo
2088 cat <<\_ASBOX
2089 ## ---------------- ##
2090 ## Cache variables. ##
2091 ## ---------------- ##
2092 _ASBOX
2093 echo
2094 # The following way of writing the cache mishandles newlines in values,
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in #(
2099 *${as_nl}*)
2100 case $ac_var in #(
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 esac
2104 case $ac_var in #(
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2108 esac ;;
2109 esac
2110 done
2111 (set) 2>&1 |
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2114 sed -n \
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 ;; #(
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121 esac |
2122 sort
2124 echo
2126 cat <<\_ASBOX
2127 ## ----------------- ##
2128 ## Output variables. ##
2129 ## ----------------- ##
2130 _ASBOX
2131 echo
2132 for ac_var in $ac_subst_vars
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
2139 done | sort
2140 echo
2142 if test -n "$ac_subst_files"; then
2143 cat <<\_ASBOX
2144 ## ------------------- ##
2145 ## File substitutions. ##
2146 ## ------------------- ##
2147 _ASBOX
2148 echo
2149 for ac_var in $ac_subst_files
2151 eval ac_val=\$$ac_var
2152 case $ac_val in
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154 esac
2155 $as_echo "$ac_var='\''$ac_val'\''"
2156 done | sort
2157 echo
2160 if test -s confdefs.h; then
2161 cat <<\_ASBOX
2162 ## ----------- ##
2163 ## confdefs.h. ##
2164 ## ----------- ##
2165 _ASBOX
2166 echo
2167 cat confdefs.h
2168 echo
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2173 } >&5
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 exit $exit_status
2178 for ac_signal in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2180 done
2181 ac_signal=0
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest* confdefs.h
2186 $as_echo "/* confdefs.h */" > confdefs.h
2188 # Predefined preprocessor variables.
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2192 _ACEOF
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196 _ACEOF
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2200 _ACEOF
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2204 _ACEOF
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208 _ACEOF
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2212 _ACEOF
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2217 ac_site_file1=NONE
2218 ac_site_file2=NONE
2219 if test -n "$CONFIG_SITE"; then
2220 ac_site_file1=$CONFIG_SITE
2221 elif test "x$prefix" != xNONE; then
2222 ac_site_file1=$prefix/share/config.site
2223 ac_site_file2=$prefix/etc/config.site
2224 else
2225 ac_site_file1=$ac_default_prefix/share/config.site
2226 ac_site_file2=$ac_default_prefix/etc/config.site
2228 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2230 test "x$ac_site_file" = xNONE && continue
2231 if test -r "$ac_site_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2234 sed 's/^/| /' "$ac_site_file" >&5
2235 . "$ac_site_file"
2237 done
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special
2241 # files actually), so we avoid doing that.
2242 if test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2253 >$cache_file
2256 # Check that the precious variables saved in the cache have kept the same
2257 # value.
2258 ac_cache_corrupted=false
2259 for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2265 set,)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,set)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,);;
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 fi;;
2293 esac
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2296 case $ac_new_val in
2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg=$ac_var=$ac_new_val ;;
2299 esac
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303 esac
2305 done
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327 #AC_INIT(package-unused, version-unused, libvtv)
2330 # -------
2331 # Options
2332 # -------
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2334 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2335 # Check whether --enable-version-specific-runtime-libs was given.
2336 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2337 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2338 yes) version_specific_libs=yes ;;
2339 no) version_specific_libs=no ;;
2340 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2341 esac
2342 else
2343 version_specific_libs=no
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2347 $as_echo "$version_specific_libs" >&6; }
2349 # Do not delete or change the following two lines. For why, see
2350 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2351 ac_aux_dir=
2352 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2353 for ac_t in install-sh install.sh shtool; do
2354 if test -f "$ac_dir/$ac_t"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/$ac_t -c"
2357 break 2
2359 done
2360 done
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if test "${ac_cv_build+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2413 $as_echo_n "checking host system type... " >&6; }
2414 if test "${ac_cv_host+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test "x$host_alias" = x; then
2418 ac_cv_host=$ac_cv_build
2419 else
2420 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2421 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2426 $as_echo "$ac_cv_host" >&6; }
2427 case $ac_cv_host in
2428 *-*-*) ;;
2429 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2430 esac
2431 host=$ac_cv_host
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_host
2434 shift
2435 host_cpu=$1
2436 host_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 host_os=$*
2441 IFS=$ac_save_IFS
2442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2446 $as_echo_n "checking target system type... " >&6; }
2447 if test "${ac_cv_target+set}" = set; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test "x$target_alias" = x; then
2451 ac_cv_target=$ac_cv_host
2452 else
2453 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2454 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2459 $as_echo "$ac_cv_target" >&6; }
2460 case $ac_cv_target in
2461 *-*-*) ;;
2462 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2463 esac
2464 target=$ac_cv_target
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_target
2467 shift
2468 target_cpu=$1
2469 target_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 target_os=$*
2474 IFS=$ac_save_IFS
2475 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2478 # The aliases save the names the user supplied, while $host etc.
2479 # will get canonicalized.
2480 test -n "$target_alias" &&
2481 test "$program_prefix$program_suffix$program_transform_name" = \
2482 NONENONEs,x,x, &&
2483 program_prefix=${target_alias}-
2485 target_alias=${target_alias-$host_alias}
2487 case ${build_alias} in
2488 "") build_noncanonical=${build} ;;
2489 *) build_noncanonical=${build_alias} ;;
2490 esac
2492 case ${host_alias} in
2493 "") host_noncanonical=${build_noncanonical} ;;
2494 *) host_noncanonical=${host_alias} ;;
2495 esac
2497 case ${target_alias} in
2498 "") target_noncanonical=${host_noncanonical} ;;
2499 *) target_noncanonical=${target_alias} ;;
2500 esac
2506 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2507 -I\$(top_builddir)/../libstdc++-v3/include \
2508 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2509 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2510 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2511 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2516 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
2518 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
2519 # Check whether --enable-vtable-verify was given.
2520 if test "${enable_vtable_verify+set}" = set; then :
2521 enableval=$enable_vtable_verify; case "$enableval" in
2522 yes) enable_vtable_verify=yes ;;
2523 no) enable_vtable_verify=no ;;
2524 *) enable_vtable_verify=no;;
2525 esac
2526 else
2527 enable_vtable_verify=no
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
2531 $as_echo "$enable_vtable_verify" >&6; }
2533 # See if supported.
2534 unset VTV_SUPPORTED
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2536 $as_echo_n "checking for host support for vtable verification... " >&6; }
2537 . ${srcdir}/configure.tgt
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2539 $as_echo "$VTV_SUPPORTED" >&6; }
2541 # Decide if it's usable.
2542 use_vtable_verify=no
2543 if test "x$VTV_SUPPORTED" = "xyes"; then
2544 if test "x$enable_vtable_verify" = "xyes"; then
2545 use_vtable_verify=yes
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
2547 $as_echo "$as_me: using vtable verification" >&6;}
2550 if test $use_vtable_verify = yes; then
2551 ENABLE_VTABLE_VERIFY_TRUE=
2552 ENABLE_VTABLE_VERIFY_FALSE='#'
2553 else
2554 ENABLE_VTABLE_VERIFY_TRUE='#'
2555 ENABLE_VTABLE_VERIFY_FALSE=
2559 am__api_version='1.11'
2561 # Find a good install program. We prefer a C program (faster),
2562 # so one script is as good as another. But avoid the broken or
2563 # incompatible versions:
2564 # SysV /etc/install, /usr/sbin/install
2565 # SunOS /usr/etc/install
2566 # IRIX /sbin/install
2567 # AIX /bin/install
2568 # AmigaOS /C/install, which installs bootblocks on floppy discs
2569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572 # OS/2's system install, which has a completely different semantic
2573 # ./install, which can be erroneously created by make from ./install.sh.
2574 # Reject install programs that cannot install multiple files.
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2577 if test -z "$INSTALL"; then
2578 if test "${ac_cv_path_install+set}" = set; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2587 case $as_dir/ in #((
2588 ./ | .// | /[cC]/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591 /usr/ucb/* ) ;;
2593 # OSF1 and SCO ODT 3.0 have their own names for install.
2594 # Don't use installbsd from OSF since it installs stuff as root
2595 # by default.
2596 for ac_prog in ginstall scoinst install; do
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2599 if test $ac_prog = install &&
2600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # AIX install. It has an incompatible calling convention.
2603 elif test $ac_prog = install &&
2604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # program-specific install script used by HP pwplus--don't use.
2607 else
2608 rm -rf conftest.one conftest.two conftest.dir
2609 echo one > conftest.one
2610 echo two > conftest.two
2611 mkdir conftest.dir
2612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613 test -s conftest.one && test -s conftest.two &&
2614 test -s conftest.dir/conftest.one &&
2615 test -s conftest.dir/conftest.two
2616 then
2617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618 break 3
2622 done
2623 done
2625 esac
2627 done
2628 IFS=$as_save_IFS
2630 rm -rf conftest.one conftest.two conftest.dir
2633 if test "${ac_cv_path_install+set}" = set; then
2634 INSTALL=$ac_cv_path_install
2635 else
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for INSTALL within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 INSTALL=$ac_install_sh
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644 $as_echo "$INSTALL" >&6; }
2646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647 # It thinks the first close brace ends the variable substitution.
2648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655 $as_echo_n "checking whether build environment is sane... " >&6; }
2656 # Just in case
2657 sleep 1
2658 echo timestamp > conftest.file
2659 # Reject unsafe characters in $srcdir or the absolute working directory
2660 # name. Accept space and tab only in the latter.
2661 am_lf='
2663 case `pwd` in
2664 *[\\\"\#\$\&\'\`$am_lf]*)
2665 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2666 esac
2667 case $srcdir in
2668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2669 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2670 esac
2672 # Do `set' in a subshell so we don't clobber the current shell's
2673 # arguments. Must try -L first in case configure is actually a
2674 # symlink; some systems play weird games with the mod time of symlinks
2675 # (eg FreeBSD returns the mod time of the symlink's containing
2676 # directory).
2677 if (
2678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679 if test "$*" = "X"; then
2680 # -L didn't work.
2681 set X `ls -t "$srcdir/configure" conftest.file`
2683 rm -f conftest.file
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2695 test "$2" = conftest.file
2697 then
2698 # Ok.
2700 else
2701 as_fn_error "newly created file is older than distributed files!
2702 Check your system clock" "$LINENO" 5
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2705 $as_echo "yes" >&6; }
2706 test "$program_prefix" != NONE &&
2707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708 # Use a double $ so make ignores it.
2709 test "$program_suffix" != NONE &&
2710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711 # Double any \ or $.
2712 # By default was `s,x,x', remove it if useless.
2713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2716 # expand $ac_aux_dir to an absolute path
2717 am_aux_dir=`cd $ac_aux_dir && pwd`
2719 if test x"${MISSING+set}" != xset; then
2720 case $am_aux_dir in
2721 *\ * | *\ *)
2722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725 esac
2727 # Use eval to expand $SHELL
2728 if eval "$MISSING --run true"; then
2729 am_missing_run="$MISSING --run "
2730 else
2731 am_missing_run=
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2733 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2736 if test x"${install_sh}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2741 install_sh="\${SHELL} $am_aux_dir/install-sh"
2742 esac
2745 # Installed binaries are usually stripped using `strip' when the user
2746 # run `make install-strip'. However `strip' might not be the right
2747 # tool to use in cross-compilation environments, therefore Automake
2748 # will honor the `STRIP' environment variable to overrule this program.
2749 if test "$cross_compiling" != no; then
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}strip; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_STRIP+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$STRIP"; then
2759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 STRIP=$ac_cv_prog_STRIP
2779 if test -n "$STRIP"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781 $as_echo "$STRIP" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2789 if test -z "$ac_cv_prog_STRIP"; then
2790 ac_ct_STRIP=$STRIP
2791 # Extract the first word of "strip", so it can be a program name with args.
2792 set dummy strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$ac_ct_STRIP"; then
2799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_ac_ct_STRIP="strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819 if test -n "$ac_ct_STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821 $as_echo "$ac_ct_STRIP" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2827 if test "x$ac_ct_STRIP" = x; then
2828 STRIP=":"
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 STRIP=$ac_ct_STRIP
2838 else
2839 STRIP="$ac_cv_prog_STRIP"
2843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847 if test -z "$MKDIR_P"; then
2848 if test "${ac_cv_path_mkdir+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_prog in mkdir gmkdir; do
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860 'mkdir (GNU coreutils) '* | \
2861 'mkdir (coreutils) '* | \
2862 'mkdir (fileutils) '4.1*)
2863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864 break 3;;
2865 esac
2866 done
2867 done
2868 done
2869 IFS=$as_save_IFS
2873 if test "${ac_cv_path_mkdir+set}" = set; then
2874 MKDIR_P="$ac_cv_path_mkdir -p"
2875 else
2876 # As a last resort, use the slow shell script. Don't cache a
2877 # value for MKDIR_P within a source directory, because that will
2878 # break other packages using the cache if that directory is
2879 # removed, or if the value is a relative name.
2880 test -d ./--version && rmdir ./--version
2881 MKDIR_P="$ac_install_sh -d"
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885 $as_echo "$MKDIR_P" >&6; }
2887 mkdir_p="$MKDIR_P"
2888 case $mkdir_p in
2889 [\\/$]* | ?:[\\/]*) ;;
2890 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2891 esac
2893 for ac_prog in gawk mawk nawk awk
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_AWK+set}" = set; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$AWK"; then
2903 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_AWK="$ac_prog"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 AWK=$ac_cv_prog_AWK
2923 if test -n "$AWK"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2925 $as_echo "$AWK" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2932 test -n "$AWK" && break
2933 done
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2936 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2937 set x ${MAKE-make}
2938 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2939 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 cat >conftest.make <<\_ACEOF
2943 SHELL = /bin/sh
2944 all:
2945 @echo '@@@%%%=$(MAKE)=@@@%%%'
2946 _ACEOF
2947 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2948 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2949 *@@@%%%=?*=@@@%%%*)
2950 eval ac_cv_prog_make_${ac_make}_set=yes;;
2952 eval ac_cv_prog_make_${ac_make}_set=no;;
2953 esac
2954 rm -f conftest.make
2956 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2959 SET_MAKE=
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 SET_MAKE="MAKE=${MAKE-make}"
2966 rm -rf .tst 2>/dev/null
2967 mkdir .tst 2>/dev/null
2968 if test -d .tst; then
2969 am__leading_dot=.
2970 else
2971 am__leading_dot=_
2973 rmdir .tst 2>/dev/null
2975 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2976 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2977 # is not polluted with repeated "-I."
2978 am__isrc=' -I$(srcdir)'
2979 # test to see if srcdir already configured
2980 if test -f $srcdir/config.status; then
2981 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2985 # test whether we have cygpath
2986 if test -z "$CYGPATH_W"; then
2987 if (cygpath --version) >/dev/null 2>/dev/null; then
2988 CYGPATH_W='cygpath -w'
2989 else
2990 CYGPATH_W=echo
2995 # Define the identity of the package.
2996 PACKAGE='libvtv'
2997 VERSION='1.0'
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE "$PACKAGE"
3002 _ACEOF
3005 cat >>confdefs.h <<_ACEOF
3006 #define VERSION "$VERSION"
3007 _ACEOF
3009 # Some tools Automake needs.
3011 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3014 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3017 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3020 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3023 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3025 # We need awk for the "check" target. The system "awk" is bad on
3026 # some platforms.
3027 # Always define AMTAR for backward compatibility.
3029 AMTAR=${AMTAR-"${am_missing_run}tar"}
3031 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3037 # Default to --enable-multilib
3038 # Check whether --enable-multilib was given.
3039 if test "${enable_multilib+set}" = set; then :
3040 enableval=$enable_multilib; case "$enableval" in
3041 yes) multilib=yes ;;
3042 no) multilib=no ;;
3043 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3044 esac
3045 else
3046 multilib=yes
3050 # We may get other options which we leave undocumented:
3051 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3052 # See config-ml.in if you want the gory details.
3054 if test "$srcdir" = "."; then
3055 if test "$with_target_subdir" != "."; then
3056 multi_basedir="$srcdir/$with_multisrctop../.."
3057 else
3058 multi_basedir="$srcdir/$with_multisrctop.."
3060 else
3061 multi_basedir="$srcdir/.."
3065 # Even if the default multilib is not a cross compilation,
3066 # it may be that some of the other multilibs are.
3067 if test $cross_compiling = no && test $multilib = yes \
3068 && test "x${with_multisubdir}" != x ; then
3069 cross_compiling=maybe
3072 ac_config_commands="$ac_config_commands default-1"
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3076 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3077 # Check whether --enable-maintainer-mode was given.
3078 if test "${enable_maintainer_mode+set}" = set; then :
3079 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3080 else
3081 USE_MAINTAINER_MODE=no
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3085 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3086 if test $USE_MAINTAINER_MODE = yes; then
3087 MAINTAINER_MODE_TRUE=
3088 MAINTAINER_MODE_FALSE='#'
3089 else
3090 MAINTAINER_MODE_TRUE='#'
3091 MAINTAINER_MODE_FALSE=
3094 MAINT=$MAINTAINER_MODE_TRUE
3100 # These need to be absolute paths, yet at the same time need to
3101 # canonicalize only relative paths, because then amd will not unmount
3102 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3103 libvtv_builddir=`${PWDCMD-pwd}`
3104 case $srcdir in
3105 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3106 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3107 esac
3108 toplevel_builddir=${libvtv_builddir}/..
3109 toplevel_srcdir=${libvtv_srcdir}/..
3116 # Calculate toolexeclibdir
3117 # Also toolexecdir, though it's only used in toolexeclibdir
3118 case ${version_specific_libs} in
3119 yes)
3120 # Need the gcc compiler version to know where to install libraries
3121 # and header files if --enable-version-specific-runtime-libs option
3122 # is selected.
3123 toolexecdir='$(libdir)/gcc/$(target_alias)'
3124 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3127 if test -n "$with_cross_host" &&
3128 test x"$with_cross_host" != x"no"; then
3129 # Install a library built with a cross compiler in tooldir, not libdir.
3130 toolexecdir='$(exec_prefix)/$(target_alias)'
3131 toolexeclibdir='$(toolexecdir)/lib'
3132 else
3133 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3134 toolexeclibdir='$(libdir)'
3136 multi_os_directory=`$CC -print-multi-os-directory`
3137 case $multi_os_directory in
3138 .) ;; # Avoid trailing /.
3139 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3140 esac
3142 esac
3146 DEPDIR="${am__leading_dot}deps"
3148 ac_config_commands="$ac_config_commands depfiles"
3151 am_make=${MAKE-make}
3152 cat > confinc << 'END'
3153 am__doit:
3154 @echo this is the am__doit target
3155 .PHONY: am__doit
3157 # If we don't find an include directive, just comment out the code.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3159 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3160 am__include="#"
3161 am__quote=
3162 _am_result=none
3163 # First try GNU make style include.
3164 echo "include confinc" > confmf
3165 # Ignore all kinds of additional output from `make'.
3166 case `$am_make -s -f confmf 2> /dev/null` in #(
3167 *the\ am__doit\ target*)
3168 am__include=include
3169 am__quote=
3170 _am_result=GNU
3172 esac
3173 # Now try BSD make style include.
3174 if test "$am__include" = "#"; then
3175 echo '.include "confinc"' > confmf
3176 case `$am_make -s -f confmf 2> /dev/null` in #(
3177 *the\ am__doit\ target*)
3178 am__include=.include
3179 am__quote="\""
3180 _am_result=BSD
3182 esac
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3187 $as_echo "$_am_result" >&6; }
3188 rm -f confinc confmf
3190 # Check whether --enable-dependency-tracking was given.
3191 if test "${enable_dependency_tracking+set}" = set; then :
3192 enableval=$enable_dependency_tracking;
3195 if test "x$enable_dependency_tracking" != xno; then
3196 am_depcomp="$ac_aux_dir/depcomp"
3197 AMDEPBACKSLASH='\'
3199 if test "x$enable_dependency_tracking" != xno; then
3200 AMDEP_TRUE=
3201 AMDEP_FALSE='#'
3202 else
3203 AMDEP_TRUE='#'
3204 AMDEP_FALSE=
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3235 done
3236 done
3237 IFS=$as_save_IFS
3241 CC=$ac_cv_prog_CC
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3252 if test -z "$ac_cv_prog_CC"; then
3253 ac_ct_CC=$CC
3254 # Extract the first word of "gcc", so it can be a program name with args.
3255 set dummy gcc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$ac_ct_CC"; then
3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271 ac_cv_prog_ac_ct_CC="gcc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3275 done
3276 done
3277 IFS=$as_save_IFS
3281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282 if test -n "$ac_ct_CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284 $as_echo "$ac_ct_CC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3290 if test "x$ac_ct_CC" = x; then
3291 CC=""
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294 yes:)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3298 esac
3299 CC=$ac_ct_CC
3301 else
3302 CC="$ac_cv_prog_CC"
3305 if test -z "$CC"; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}cc; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if test "${ac_cv_prog_CC+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 if test -n "$CC"; then
3315 ac_cv_prog_CC="$CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_prog_CC="${ac_tool_prefix}cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3328 done
3329 done
3330 IFS=$as_save_IFS
3334 CC=$ac_cv_prog_CC
3335 if test -n "$CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 $as_echo "$CC" >&6; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3346 if test -z "$CC"; then
3347 # Extract the first word of "cc", so it can be a program name with args.
3348 set dummy cc; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if test "${ac_cv_prog_CC+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 ac_prog_rejected=no
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3366 ac_prog_rejected=yes
3367 continue
3369 ac_cv_prog_CC="cc"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3375 IFS=$as_save_IFS
3377 if test $ac_prog_rejected = yes; then
3378 # We found a bogon in the path, so make sure we never use it.
3379 set dummy $ac_cv_prog_CC
3380 shift
3381 if test $# != 0; then
3382 # We chose a different compiler from the bogus one.
3383 # However, it has the same basename, so the bogon will be chosen
3384 # first if we set CC to just the basename; use the full file name.
3385 shift
3386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 for ac_prog in cl.exe
3406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_CC+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3427 done
3428 done
3429 IFS=$as_save_IFS
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$CC" && break
3444 done
3446 if test -z "$CC"; then
3447 ac_ct_CC=$CC
3448 for ac_prog in cl.exe
3450 # Extract the first word of "$ac_prog", so it can be a program name with args.
3451 set dummy $ac_prog; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_ac_ct_CC="$ac_prog"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3471 done
3472 done
3473 IFS=$as_save_IFS
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 $as_echo "$ac_ct_CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3487 test -n "$ac_ct_CC" && break
3488 done
3490 if test "x$ac_ct_CC" = x; then
3491 CC=""
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 CC=$ac_ct_CC
3506 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error "no acceptable C compiler found in \$PATH
3509 See \`config.log' for more details." "$LINENO" 5; }
3511 # Provide some information about the compiler.
3512 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3513 set X $ac_compile
3514 ac_compiler=$2
3515 for ac_option in --version -v -V -qversion; do
3516 { { ac_try="$ac_compiler $ac_option >&5"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3524 ac_status=$?
3525 if test -s conftest.err; then
3526 sed '10a\
3527 ... rest of stderr output deleted ...
3528 10q' conftest.err >conftest.er1
3529 cat conftest.er1 >&5
3530 rm -f conftest.er1 conftest.err
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3534 done
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 ac_clean_files_save=$ac_clean_files
3548 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3549 # Try to create an executable without -o first, disregard a.out.
3550 # It will help us diagnose broken compilers, and finding out an intuition
3551 # of exeext.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3553 $as_echo_n "checking for C compiler default output file name... " >&6; }
3554 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3556 # The possible output files:
3557 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3559 ac_rmfiles=
3560 for ac_file in $ac_files
3562 case $ac_file in
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3565 esac
3566 done
3567 rm -f $ac_rmfiles
3569 if { { ac_try="$ac_link_default"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link_default") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3581 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3582 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3583 # so that the user can short-circuit this test for compilers unknown to
3584 # Autoconf.
3585 for ac_file in $ac_files ''
3587 test -f "$ac_file" || continue
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3591 [ab].out )
3592 # We found the default executable, but exeext='' is most
3593 # certainly right.
3594 break;;
3595 *.* )
3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3597 then :; else
3598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 # We set ac_cv_exeext here because the later test for it is not
3601 # safe: cross compilers may not add the suffix if given an `-o'
3602 # argument, so we may need to know it at that point already.
3603 # Even if this section looks crufty: it has the advantage of
3604 # actually working.
3605 break;;
3607 break;;
3608 esac
3609 done
3610 test "$ac_cv_exeext" = no && ac_cv_exeext=
3612 else
3613 ac_file=''
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3616 $as_echo "$ac_file" >&6; }
3617 if test -z "$ac_file"; then :
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 { as_fn_set_status 77
3624 as_fn_error "C compiler cannot create executables
3625 See \`config.log' for more details." "$LINENO" 5; }; }
3627 ac_exeext=$ac_cv_exeext
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3632 $as_echo_n "checking whether the C compiler works... " >&6; }
3633 # If not cross compiling, check that we can run a simple program.
3634 if test "$cross_compiling" != yes; then
3635 if { ac_try='./$ac_file'
3636 { { case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_try") 2>&5
3643 ac_status=$?
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }; }; then
3646 cross_compiling=no
3647 else
3648 if test "$cross_compiling" = maybe; then
3649 cross_compiling=yes
3650 else
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error "cannot run C compiled programs.
3654 If you meant to cross compile, use \`--host'.
3655 See \`config.log' for more details." "$LINENO" 5; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3662 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3663 ac_clean_files=$ac_clean_files_save
3664 # Check that the compiler produces executables we can run. If not, either
3665 # the compiler is broken, or we cross compile.
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3667 $as_echo_n "checking whether we are cross compiling... " >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669 $as_echo "$cross_compiling" >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3672 $as_echo_n "checking for suffix of executables... " >&6; }
3673 if { { ac_try="$ac_link"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_link") 2>&5
3681 ac_status=$?
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; then :
3684 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3685 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3686 # work properly (i.e., refer to `conftest.exe'), while it won't with
3687 # `rm'.
3688 for ac_file in conftest.exe conftest conftest.*; do
3689 test -f "$ac_file" || continue
3690 case $ac_file in
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3693 break;;
3694 * ) break;;
3695 esac
3696 done
3697 else
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error "cannot compute suffix of executables: cannot compile and link
3701 See \`config.log' for more details." "$LINENO" 5; }
3703 rm -f conftest$ac_cv_exeext
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3705 $as_echo "$ac_cv_exeext" >&6; }
3707 rm -f conftest.$ac_ext
3708 EXEEXT=$ac_cv_exeext
3709 ac_exeext=$EXEEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3711 $as_echo_n "checking for suffix of object files... " >&6; }
3712 if test "${ac_cv_objext+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3719 main ()
3723 return 0;
3725 _ACEOF
3726 rm -f conftest.o conftest.obj
3727 if { { ac_try="$ac_compile"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_compile") 2>&5
3735 ac_status=$?
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; then :
3738 for ac_file in conftest.o conftest.obj conftest.*; do
3739 test -f "$ac_file" || continue;
3740 case $ac_file in
3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3742 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3743 break;;
3744 esac
3745 done
3746 else
3747 $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "cannot compute suffix of object files: cannot compile
3753 See \`config.log' for more details." "$LINENO" 5; }
3755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3758 $as_echo "$ac_cv_objext" >&6; }
3759 OBJEXT=$ac_cv_objext
3760 ac_objext=$OBJEXT
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3763 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3770 main ()
3772 #ifndef __GNUC__
3773 choke me
3774 #endif
3777 return 0;
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781 ac_compiler_gnu=yes
3782 else
3783 ac_compiler_gnu=no
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3791 if test $ac_compiler_gnu = yes; then
3792 GCC=yes
3793 else
3794 GCC=
3796 ac_test_CFLAGS=${CFLAGS+set}
3797 ac_save_CFLAGS=$CFLAGS
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3800 if test "${ac_cv_prog_cc_g+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 ac_save_c_werror_flag=$ac_c_werror_flag
3804 ac_c_werror_flag=yes
3805 ac_cv_prog_cc_g=no
3806 CFLAGS="-g"
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3811 main ()
3815 return 0;
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_cv_prog_cc_g=yes
3820 else
3821 CFLAGS=""
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3826 main ()
3830 return 0;
3832 _ACEOF
3833 if ac_fn_c_try_compile "$LINENO"; then :
3835 else
3836 ac_c_werror_flag=$ac_save_c_werror_flag
3837 CFLAGS="-g"
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3842 main ()
3846 return 0;
3848 _ACEOF
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_prog_cc_g=yes
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_c_werror_flag=$ac_save_c_werror_flag
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3860 $as_echo "$ac_cv_prog_cc_g" >&6; }
3861 if test "$ac_test_CFLAGS" = set; then
3862 CFLAGS=$ac_save_CFLAGS
3863 elif test $ac_cv_prog_cc_g = yes; then
3864 if test "$GCC" = yes; then
3865 CFLAGS="-g -O2"
3866 else
3867 CFLAGS="-g"
3869 else
3870 if test "$GCC" = yes; then
3871 CFLAGS="-O2"
3872 else
3873 CFLAGS=
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3878 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 ac_cv_prog_cc_c89=no
3882 ac_save_CC=$CC
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885 #include <stdarg.h>
3886 #include <stdio.h>
3887 #include <sys/types.h>
3888 #include <sys/stat.h>
3889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3890 struct buf { int x; };
3891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3892 static char *e (p, i)
3893 char **p;
3894 int i;
3896 return p[i];
3898 static char *f (char * (*g) (char **, int), char **p, ...)
3900 char *s;
3901 va_list v;
3902 va_start (v,p);
3903 s = g (p, va_arg (v,int));
3904 va_end (v);
3905 return s;
3908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3909 function prototypes and stuff, but not '\xHH' hex character constants.
3910 These don't provoke an error unfortunately, instead are silently treated
3911 as 'x'. The following induces an error, until -std is added to get
3912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3913 array size at least. It's necessary to write '\x00'==0 to get something
3914 that's true only with -std. */
3915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3917 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3918 inside strings and character constants. */
3919 #define FOO(x) 'x'
3920 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3922 int test (int i, double x);
3923 struct s1 {int (*f) (int a);};
3924 struct s2 {int (*f) (double a);};
3925 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3926 int argc;
3927 char **argv;
3929 main ()
3931 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3933 return 0;
3935 _ACEOF
3936 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3937 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3939 CC="$ac_save_CC $ac_arg"
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941 ac_cv_prog_cc_c89=$ac_arg
3943 rm -f core conftest.err conftest.$ac_objext
3944 test "x$ac_cv_prog_cc_c89" != "xno" && break
3945 done
3946 rm -f conftest.$ac_ext
3947 CC=$ac_save_CC
3950 # AC_CACHE_VAL
3951 case "x$ac_cv_prog_cc_c89" in
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3954 $as_echo "none needed" >&6; } ;;
3955 xno)
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3957 $as_echo "unsupported" >&6; } ;;
3959 CC="$CC $ac_cv_prog_cc_c89"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3961 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3962 esac
3963 if test "x$ac_cv_prog_cc_c89" != xno; then :
3967 ac_ext=c
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 depcc="$CC" am_compiler_list=
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3976 $as_echo_n "checking dependency style of $depcc... " >&6; }
3977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3981 # We make a subdir and do the tests there. Otherwise we can end up
3982 # making bogus files that we don't know about and never remove. For
3983 # instance it was reported that on HP-UX the gcc test will end up
3984 # making a dummy file named `D' -- because `-MD' means `put the output
3985 # in D'.
3986 mkdir conftest.dir
3987 # Copy depcomp to subdir because otherwise we won't find it if we're
3988 # using a relative directory.
3989 cp "$am_depcomp" conftest.dir
3990 cd conftest.dir
3991 # We will build objects and dependencies in a subdirectory because
3992 # it helps to detect inapplicable dependency modes. For instance
3993 # both Tru64's cc and ICC support -MD to output dependencies as a
3994 # side effect of compilation, but ICC will put the dependencies in
3995 # the current directory while Tru64 will put them in the object
3996 # directory.
3997 mkdir sub
3999 am_cv_CC_dependencies_compiler_type=none
4000 if test "$am_compiler_list" = ""; then
4001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4003 am__universal=false
4004 case " $depcc " in #(
4005 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4006 esac
4008 for depmode in $am_compiler_list; do
4009 # Setup a source with many dependencies, because some compilers
4010 # like to wrap large dependency lists on column 80 (with \), and
4011 # we should not choose a depcomp mode which is confused by this.
4013 # We need to recreate these files for each test, as the compiler may
4014 # overwrite some of them when testing with obscure command lines.
4015 # This happens at least with the AIX C compiler.
4016 : > sub/conftest.c
4017 for i in 1 2 3 4 5 6; do
4018 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4019 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4020 # Solaris 8's {/usr,}/bin/sh.
4021 touch sub/conftst$i.h
4022 done
4023 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4025 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4026 # mode. It turns out that the SunPro C++ compiler does not properly
4027 # handle `-M -o', and we need to detect this. Also, some Intel
4028 # versions had trouble with output in subdirs
4029 am__obj=sub/conftest.${OBJEXT-o}
4030 am__minus_obj="-o $am__obj"
4031 case $depmode in
4032 gcc)
4033 # This depmode causes a compiler race in universal mode.
4034 test "$am__universal" = false || continue
4036 nosideeffect)
4037 # after this tag, mechanisms are not by side-effect, so they'll
4038 # only be used when explicitly requested
4039 if test "x$enable_dependency_tracking" = xyes; then
4040 continue
4041 else
4042 break
4045 msvisualcpp | msvcmsys)
4046 # This compiler won't grok `-c -o', but also, the minuso test has
4047 # not run yet. These depmodes are late enough in the game, and
4048 # so weak that their functioning should not be impacted.
4049 am__obj=conftest.${OBJEXT-o}
4050 am__minus_obj=
4052 none) break ;;
4053 esac
4054 if depmode=$depmode \
4055 source=sub/conftest.c object=$am__obj \
4056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4057 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4058 >/dev/null 2>conftest.err &&
4059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4063 # icc doesn't choke on unknown options, it will just issue warnings
4064 # or remarks (even with -Werror). So we grep stderr for any message
4065 # that says an option was ignored or not supported.
4066 # When given -MP, icc 7.0 and 7.1 complain thusly:
4067 # icc: Command line warning: ignoring option '-M'; no argument required
4068 # The diagnosis changed in icc 8.0:
4069 # icc: Command line remark: option '-MP' not supported
4070 if (grep 'ignoring option' conftest.err ||
4071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4072 am_cv_CC_dependencies_compiler_type=$depmode
4073 break
4076 done
4078 cd ..
4079 rm -rf conftest.dir
4080 else
4081 am_cv_CC_dependencies_compiler_type=none
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4086 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4087 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4090 test "x$enable_dependency_tracking" != xno \
4091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4092 am__fastdepCC_TRUE=
4093 am__fastdepCC_FALSE='#'
4094 else
4095 am__fastdepCC_TRUE='#'
4096 am__fastdepCC_FALSE=
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4107 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4108 # On Suns, sometimes $CPP names a directory.
4109 if test -n "$CPP" && test -d "$CPP"; then
4110 CPP=
4112 if test -z "$CPP"; then
4113 if test "${ac_cv_prog_CPP+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 # Double quotes because CPP needs to be expanded
4117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4119 ac_preproc_ok=false
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #ifdef __STDC__
4131 # include <limits.h>
4132 #else
4133 # include <assert.h>
4134 #endif
4135 Syntax error
4136 _ACEOF
4137 if ac_fn_c_try_cpp "$LINENO"; then :
4139 else
4140 # Broken: fails on valid input.
4141 continue
4143 rm -f conftest.err conftest.$ac_ext
4145 # OK, works on sane cases. Now check whether nonexistent headers
4146 # can be detected and how.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <ac_nonexistent.h>
4150 _ACEOF
4151 if ac_fn_c_try_cpp "$LINENO"; then :
4152 # Broken: success on invalid input.
4153 continue
4154 else
4155 # Passes both tests.
4156 ac_preproc_ok=:
4157 break
4159 rm -f conftest.err conftest.$ac_ext
4161 done
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then :
4165 break
4168 done
4169 ac_cv_prog_CPP=$CPP
4172 CPP=$ac_cv_prog_CPP
4173 else
4174 ac_cv_prog_CPP=$CPP
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4178 ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #ifdef __STDC__
4190 # include <limits.h>
4191 #else
4192 # include <assert.h>
4193 #endif
4194 Syntax error
4195 _ACEOF
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4198 else
4199 # Broken: fails on valid input.
4200 continue
4202 rm -f conftest.err conftest.$ac_ext
4204 # OK, works on sane cases. Now check whether nonexistent headers
4205 # can be detected and how.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <ac_nonexistent.h>
4209 _ACEOF
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4211 # Broken: success on invalid input.
4212 continue
4213 else
4214 # Passes both tests.
4215 ac_preproc_ok=:
4216 break
4218 rm -f conftest.err conftest.$ac_ext
4220 done
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then :
4225 else
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4229 See \`config.log' for more details." "$LINENO" 5; }
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4240 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4241 if test "${ac_cv_path_GREP+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 if test -z "$GREP"; then
4245 ac_path_GREP_found=false
4246 # Loop through the user's path and test for each of PROGNAME-LIST
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_prog in grep ggrep; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4255 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4256 # Check for GNU ac_path_GREP and select it if it is found.
4257 # Check for GNU $ac_path_GREP
4258 case `"$ac_path_GREP" --version 2>&1` in
4259 *GNU*)
4260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4262 ac_count=0
4263 $as_echo_n 0123456789 >"conftest.in"
4264 while :
4266 cat "conftest.in" "conftest.in" >"conftest.tmp"
4267 mv "conftest.tmp" "conftest.in"
4268 cp "conftest.in" "conftest.nl"
4269 $as_echo 'GREP' >> "conftest.nl"
4270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4272 as_fn_arith $ac_count + 1 && ac_count=$as_val
4273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4274 # Best one so far, save it but keep looking for a better one
4275 ac_cv_path_GREP="$ac_path_GREP"
4276 ac_path_GREP_max=$ac_count
4278 # 10*(2^10) chars as input seems more than enough
4279 test $ac_count -gt 10 && break
4280 done
4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4282 esac
4284 $ac_path_GREP_found && break 3
4285 done
4286 done
4287 done
4288 IFS=$as_save_IFS
4289 if test -z "$ac_cv_path_GREP"; then
4290 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4292 else
4293 ac_cv_path_GREP=$GREP
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4298 $as_echo "$ac_cv_path_GREP" >&6; }
4299 GREP="$ac_cv_path_GREP"
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4303 $as_echo_n "checking for egrep... " >&6; }
4304 if test "${ac_cv_path_EGREP+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4308 then ac_cv_path_EGREP="$GREP -E"
4309 else
4310 if test -z "$EGREP"; then
4311 ac_path_EGREP_found=false
4312 # Loop through the user's path and test for each of PROGNAME-LIST
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_prog in egrep; do
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4321 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4322 # Check for GNU ac_path_EGREP and select it if it is found.
4323 # Check for GNU $ac_path_EGREP
4324 case `"$ac_path_EGREP" --version 2>&1` in
4325 *GNU*)
4326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4328 ac_count=0
4329 $as_echo_n 0123456789 >"conftest.in"
4330 while :
4332 cat "conftest.in" "conftest.in" >"conftest.tmp"
4333 mv "conftest.tmp" "conftest.in"
4334 cp "conftest.in" "conftest.nl"
4335 $as_echo 'EGREP' >> "conftest.nl"
4336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338 as_fn_arith $ac_count + 1 && ac_count=$as_val
4339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4340 # Best one so far, save it but keep looking for a better one
4341 ac_cv_path_EGREP="$ac_path_EGREP"
4342 ac_path_EGREP_max=$ac_count
4344 # 10*(2^10) chars as input seems more than enough
4345 test $ac_count -gt 10 && break
4346 done
4347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348 esac
4350 $ac_path_EGREP_found && break 3
4351 done
4352 done
4353 done
4354 IFS=$as_save_IFS
4355 if test -z "$ac_cv_path_EGREP"; then
4356 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4358 else
4359 ac_cv_path_EGREP=$EGREP
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4365 $as_echo "$ac_cv_path_EGREP" >&6; }
4366 EGREP="$ac_cv_path_EGREP"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4370 $as_echo_n "checking for ANSI C header files... " >&6; }
4371 if test "${ac_cv_header_stdc+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 #include <stdlib.h>
4377 #include <stdarg.h>
4378 #include <string.h>
4379 #include <float.h>
4382 main ()
4386 return 0;
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_header_stdc=yes
4391 else
4392 ac_cv_header_stdc=no
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 if test $ac_cv_header_stdc = yes; then
4397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400 #include <string.h>
4402 _ACEOF
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404 $EGREP "memchr" >/dev/null 2>&1; then :
4406 else
4407 ac_cv_header_stdc=no
4409 rm -f conftest*
4413 if test $ac_cv_header_stdc = yes; then
4414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <stdlib.h>
4419 _ACEOF
4420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421 $EGREP "free" >/dev/null 2>&1; then :
4423 else
4424 ac_cv_header_stdc=no
4426 rm -f conftest*
4430 if test $ac_cv_header_stdc = yes; then
4431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4432 if test "$cross_compiling" = yes; then :
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <ctype.h>
4438 #include <stdlib.h>
4439 #if ((' ' & 0x0FF) == 0x020)
4440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4442 #else
4443 # define ISLOWER(c) \
4444 (('a' <= (c) && (c) <= 'i') \
4445 || ('j' <= (c) && (c) <= 'r') \
4446 || ('s' <= (c) && (c) <= 'z'))
4447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4448 #endif
4450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4452 main ()
4454 int i;
4455 for (i = 0; i < 256; i++)
4456 if (XOR (islower (i), ISLOWER (i))
4457 || toupper (i) != TOUPPER (i))
4458 return 2;
4459 return 0;
4461 _ACEOF
4462 if ac_fn_c_try_run "$LINENO"; then :
4464 else
4465 ac_cv_header_stdc=no
4467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4468 conftest.$ac_objext conftest.beam conftest.$ac_ext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4474 $as_echo "$ac_cv_header_stdc" >&6; }
4475 if test $ac_cv_header_stdc = yes; then
4477 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4482 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4483 inttypes.h stdint.h unistd.h
4484 do :
4485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4488 eval as_val=\$$as_ac_Header
4489 if test "x$as_val" = x""yes; then :
4490 cat >>confdefs.h <<_ACEOF
4491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4492 _ACEOF
4496 done
4500 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4501 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4502 MINIX=yes
4503 else
4504 MINIX=
4508 if test "$MINIX" = yes; then
4510 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4513 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4516 $as_echo "#define _MINIX 1" >>confdefs.h
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4522 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4523 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4529 # define __EXTENSIONS__ 1
4530 $ac_includes_default
4532 main ()
4536 return 0;
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 ac_cv_safe_to_define___extensions__=yes
4541 else
4542 ac_cv_safe_to_define___extensions__=no
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4547 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4548 test $ac_cv_safe_to_define___extensions__ = yes &&
4549 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4551 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4553 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4555 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4557 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4561 for ac_func in __secure_getenv
4562 do :
4563 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4564 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4565 cat >>confdefs.h <<_ACEOF
4566 #define HAVE___SECURE_GETENV 1
4567 _ACEOF
4570 done
4574 for ac_func in secure_getenv
4575 do :
4576 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4577 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4578 cat >>confdefs.h <<_ACEOF
4579 #define HAVE_SECURE_GETENV 1
4580 _ACEOF
4583 done
4586 # Check for programs.
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 if test -n "$ac_tool_prefix"; then
4595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_CC+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$CC"; then
4603 ac_cv_prog_CC="$CC" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 CC=$ac_cv_prog_CC
4623 if test -n "$CC"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4625 $as_echo "$CC" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4633 if test -z "$ac_cv_prog_CC"; then
4634 ac_ct_CC=$CC
4635 # Extract the first word of "gcc", so it can be a program name with args.
4636 set dummy gcc; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$ac_ct_CC"; then
4643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_ac_ct_CC="gcc"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4658 IFS=$as_save_IFS
4662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4663 if test -n "$ac_ct_CC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4665 $as_echo "$ac_ct_CC" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4671 if test "x$ac_ct_CC" = x; then
4672 CC=""
4673 else
4674 case $cross_compiling:$ac_tool_warned in
4675 yes:)
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned=yes ;;
4679 esac
4680 CC=$ac_ct_CC
4682 else
4683 CC="$ac_cv_prog_CC"
4686 if test -z "$CC"; then
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4689 set dummy ${ac_tool_prefix}cc; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_prog_CC+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 if test -n "$CC"; then
4696 ac_cv_prog_CC="$CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_CC="${ac_tool_prefix}cc"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4715 CC=$ac_cv_prog_CC
4716 if test -n "$CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4718 $as_echo "$CC" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4727 if test -z "$CC"; then
4728 # Extract the first word of "cc", so it can be a program name with args.
4729 set dummy cc; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if test "${ac_cv_prog_CC+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if test -n "$CC"; then
4736 ac_cv_prog_CC="$CC" # Let the user override the test.
4737 else
4738 ac_prog_rejected=no
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4747 ac_prog_rejected=yes
4748 continue
4750 ac_cv_prog_CC="cc"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4754 done
4755 done
4756 IFS=$as_save_IFS
4758 if test $ac_prog_rejected = yes; then
4759 # We found a bogon in the path, so make sure we never use it.
4760 set dummy $ac_cv_prog_CC
4761 shift
4762 if test $# != 0; then
4763 # We chose a different compiler from the bogus one.
4764 # However, it has the same basename, so the bogon will be chosen
4765 # first if we set CC to just the basename; use the full file name.
4766 shift
4767 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4772 CC=$ac_cv_prog_CC
4773 if test -n "$CC"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4775 $as_echo "$CC" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4783 if test -z "$CC"; then
4784 if test -n "$ac_tool_prefix"; then
4785 for ac_prog in cl.exe
4787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_CC+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$CC"; then
4795 ac_cv_prog_CC="$CC" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 CC=$ac_cv_prog_CC
4815 if test -n "$CC"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4817 $as_echo "$CC" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$CC" && break
4825 done
4827 if test -z "$CC"; then
4828 ac_ct_CC=$CC
4829 for ac_prog in cl.exe
4831 # Extract the first word of "$ac_prog", so it can be a program name with args.
4832 set dummy $ac_prog; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 if test -n "$ac_ct_CC"; then
4839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_ac_ct_CC="$ac_prog"
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4852 done
4853 done
4854 IFS=$as_save_IFS
4858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4859 if test -n "$ac_ct_CC"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4861 $as_echo "$ac_ct_CC" >&6; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4868 test -n "$ac_ct_CC" && break
4869 done
4871 if test "x$ac_ct_CC" = x; then
4872 CC=""
4873 else
4874 case $cross_compiling:$ac_tool_warned in
4875 yes:)
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4878 ac_tool_warned=yes ;;
4879 esac
4880 CC=$ac_ct_CC
4887 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4889 as_fn_error "no acceptable C compiler found in \$PATH
4890 See \`config.log' for more details." "$LINENO" 5; }
4892 # Provide some information about the compiler.
4893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4894 set X $ac_compile
4895 ac_compiler=$2
4896 for ac_option in --version -v -V -qversion; do
4897 { { ac_try="$ac_compiler $ac_option >&5"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4905 ac_status=$?
4906 if test -s conftest.err; then
4907 sed '10a\
4908 ... rest of stderr output deleted ...
4909 10q' conftest.err >conftest.er1
4910 cat conftest.er1 >&5
4911 rm -f conftest.er1 conftest.err
4913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4914 test $ac_status = 0; }
4915 done
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4918 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4919 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4926 main ()
4928 #ifndef __GNUC__
4929 choke me
4930 #endif
4933 return 0;
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 ac_compiler_gnu=yes
4938 else
4939 ac_compiler_gnu=no
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4946 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4947 if test $ac_compiler_gnu = yes; then
4948 GCC=yes
4949 else
4950 GCC=
4952 ac_test_CFLAGS=${CFLAGS+set}
4953 ac_save_CFLAGS=$CFLAGS
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4955 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4956 if test "${ac_cv_prog_cc_g+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 ac_save_c_werror_flag=$ac_c_werror_flag
4960 ac_c_werror_flag=yes
4961 ac_cv_prog_cc_g=no
4962 CFLAGS="-g"
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4967 main ()
4971 return 0;
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 ac_cv_prog_cc_g=yes
4976 else
4977 CFLAGS=""
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4982 main ()
4986 return 0;
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"; then :
4991 else
4992 ac_c_werror_flag=$ac_save_c_werror_flag
4993 CFLAGS="-g"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4998 main ()
5002 return 0;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 ac_cv_prog_cc_g=yes
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_c_werror_flag=$ac_save_c_werror_flag
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5016 $as_echo "$ac_cv_prog_cc_g" >&6; }
5017 if test "$ac_test_CFLAGS" = set; then
5018 CFLAGS=$ac_save_CFLAGS
5019 elif test $ac_cv_prog_cc_g = yes; then
5020 if test "$GCC" = yes; then
5021 CFLAGS="-g -O2"
5022 else
5023 CFLAGS="-g"
5025 else
5026 if test "$GCC" = yes; then
5027 CFLAGS="-O2"
5028 else
5029 CFLAGS=
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5033 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5034 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 ac_cv_prog_cc_c89=no
5038 ac_save_CC=$CC
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 #include <stdarg.h>
5042 #include <stdio.h>
5043 #include <sys/types.h>
5044 #include <sys/stat.h>
5045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5046 struct buf { int x; };
5047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5048 static char *e (p, i)
5049 char **p;
5050 int i;
5052 return p[i];
5054 static char *f (char * (*g) (char **, int), char **p, ...)
5056 char *s;
5057 va_list v;
5058 va_start (v,p);
5059 s = g (p, va_arg (v,int));
5060 va_end (v);
5061 return s;
5064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5065 function prototypes and stuff, but not '\xHH' hex character constants.
5066 These don't provoke an error unfortunately, instead are silently treated
5067 as 'x'. The following induces an error, until -std is added to get
5068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5069 array size at least. It's necessary to write '\x00'==0 to get something
5070 that's true only with -std. */
5071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5074 inside strings and character constants. */
5075 #define FOO(x) 'x'
5076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5078 int test (int i, double x);
5079 struct s1 {int (*f) (int a);};
5080 struct s2 {int (*f) (double a);};
5081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082 int argc;
5083 char **argv;
5085 main ()
5087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5089 return 0;
5091 _ACEOF
5092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5095 CC="$ac_save_CC $ac_arg"
5096 if ac_fn_c_try_compile "$LINENO"; then :
5097 ac_cv_prog_cc_c89=$ac_arg
5099 rm -f core conftest.err conftest.$ac_objext
5100 test "x$ac_cv_prog_cc_c89" != "xno" && break
5101 done
5102 rm -f conftest.$ac_ext
5103 CC=$ac_save_CC
5106 # AC_CACHE_VAL
5107 case "x$ac_cv_prog_cc_c89" in
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5110 $as_echo "none needed" >&6; } ;;
5111 xno)
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5113 $as_echo "unsupported" >&6; } ;;
5115 CC="$CC $ac_cv_prog_cc_c89"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5117 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5118 esac
5119 if test "x$ac_cv_prog_cc_c89" != xno; then :
5123 ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129 depcc="$CC" am_compiler_list=
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5132 $as_echo_n "checking dependency style of $depcc... " >&6; }
5133 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5137 # We make a subdir and do the tests there. Otherwise we can end up
5138 # making bogus files that we don't know about and never remove. For
5139 # instance it was reported that on HP-UX the gcc test will end up
5140 # making a dummy file named `D' -- because `-MD' means `put the output
5141 # in D'.
5142 mkdir conftest.dir
5143 # Copy depcomp to subdir because otherwise we won't find it if we're
5144 # using a relative directory.
5145 cp "$am_depcomp" conftest.dir
5146 cd conftest.dir
5147 # We will build objects and dependencies in a subdirectory because
5148 # it helps to detect inapplicable dependency modes. For instance
5149 # both Tru64's cc and ICC support -MD to output dependencies as a
5150 # side effect of compilation, but ICC will put the dependencies in
5151 # the current directory while Tru64 will put them in the object
5152 # directory.
5153 mkdir sub
5155 am_cv_CC_dependencies_compiler_type=none
5156 if test "$am_compiler_list" = ""; then
5157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5159 am__universal=false
5160 case " $depcc " in #(
5161 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5162 esac
5164 for depmode in $am_compiler_list; do
5165 # Setup a source with many dependencies, because some compilers
5166 # like to wrap large dependency lists on column 80 (with \), and
5167 # we should not choose a depcomp mode which is confused by this.
5169 # We need to recreate these files for each test, as the compiler may
5170 # overwrite some of them when testing with obscure command lines.
5171 # This happens at least with the AIX C compiler.
5172 : > sub/conftest.c
5173 for i in 1 2 3 4 5 6; do
5174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5176 # Solaris 8's {/usr,}/bin/sh.
5177 touch sub/conftst$i.h
5178 done
5179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5181 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5182 # mode. It turns out that the SunPro C++ compiler does not properly
5183 # handle `-M -o', and we need to detect this. Also, some Intel
5184 # versions had trouble with output in subdirs
5185 am__obj=sub/conftest.${OBJEXT-o}
5186 am__minus_obj="-o $am__obj"
5187 case $depmode in
5188 gcc)
5189 # This depmode causes a compiler race in universal mode.
5190 test "$am__universal" = false || continue
5192 nosideeffect)
5193 # after this tag, mechanisms are not by side-effect, so they'll
5194 # only be used when explicitly requested
5195 if test "x$enable_dependency_tracking" = xyes; then
5196 continue
5197 else
5198 break
5201 msvisualcpp | msvcmsys)
5202 # This compiler won't grok `-c -o', but also, the minuso test has
5203 # not run yet. These depmodes are late enough in the game, and
5204 # so weak that their functioning should not be impacted.
5205 am__obj=conftest.${OBJEXT-o}
5206 am__minus_obj=
5208 none) break ;;
5209 esac
5210 if depmode=$depmode \
5211 source=sub/conftest.c object=$am__obj \
5212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5214 >/dev/null 2>conftest.err &&
5215 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5217 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5219 # icc doesn't choke on unknown options, it will just issue warnings
5220 # or remarks (even with -Werror). So we grep stderr for any message
5221 # that says an option was ignored or not supported.
5222 # When given -MP, icc 7.0 and 7.1 complain thusly:
5223 # icc: Command line warning: ignoring option '-M'; no argument required
5224 # The diagnosis changed in icc 8.0:
5225 # icc: Command line remark: option '-MP' not supported
5226 if (grep 'ignoring option' conftest.err ||
5227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5228 am_cv_CC_dependencies_compiler_type=$depmode
5229 break
5232 done
5234 cd ..
5235 rm -rf conftest.dir
5236 else
5237 am_cv_CC_dependencies_compiler_type=none
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5242 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5243 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5246 test "x$enable_dependency_tracking" != xno \
5247 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5248 am__fastdepCC_TRUE=
5249 am__fastdepCC_FALSE='#'
5250 else
5251 am__fastdepCC_TRUE='#'
5252 am__fastdepCC_FALSE=
5256 ac_ext=cpp
5257 ac_cpp='$CXXCPP $CPPFLAGS'
5258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5261 if test -z "$CXX"; then
5262 if test -n "$CCC"; then
5263 CXX=$CCC
5264 else
5265 if test -n "$ac_tool_prefix"; then
5266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if test "${ac_cv_prog_CXX+set}" = set; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$CXX"; then
5276 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 CXX=$ac_cv_prog_CXX
5296 if test -n "$CXX"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5298 $as_echo "$CXX" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5305 test -n "$CXX" && break
5306 done
5308 if test -z "$CXX"; then
5309 ac_ct_CXX=$CXX
5310 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5312 # Extract the first word of "$ac_prog", so it can be a program name with args.
5313 set dummy $ac_prog; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$ac_ct_CXX"; then
5320 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_ac_ct_CXX="$ac_prog"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5335 IFS=$as_save_IFS
5339 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5340 if test -n "$ac_ct_CXX"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5342 $as_echo "$ac_ct_CXX" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5349 test -n "$ac_ct_CXX" && break
5350 done
5352 if test "x$ac_ct_CXX" = x; then
5353 CXX="g++"
5354 else
5355 case $cross_compiling:$ac_tool_warned in
5356 yes:)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5359 ac_tool_warned=yes ;;
5360 esac
5361 CXX=$ac_ct_CXX
5367 # Provide some information about the compiler.
5368 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5369 set X $ac_compile
5370 ac_compiler=$2
5371 for ac_option in --version -v -V -qversion; do
5372 { { ac_try="$ac_compiler $ac_option >&5"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5378 $as_echo "$ac_try_echo"; } >&5
5379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5380 ac_status=$?
5381 if test -s conftest.err; then
5382 sed '10a\
5383 ... rest of stderr output deleted ...
5384 10q' conftest.err >conftest.er1
5385 cat conftest.er1 >&5
5386 rm -f conftest.er1 conftest.err
5388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5389 test $ac_status = 0; }
5390 done
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5393 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5394 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5401 main ()
5403 #ifndef __GNUC__
5404 choke me
5405 #endif
5408 return 0;
5410 _ACEOF
5411 if ac_fn_cxx_try_compile "$LINENO"; then :
5412 ac_compiler_gnu=yes
5413 else
5414 ac_compiler_gnu=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5421 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5422 if test $ac_compiler_gnu = yes; then
5423 GXX=yes
5424 else
5425 GXX=
5427 ac_test_CXXFLAGS=${CXXFLAGS+set}
5428 ac_save_CXXFLAGS=$CXXFLAGS
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5430 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5431 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5435 ac_cxx_werror_flag=yes
5436 ac_cv_prog_cxx_g=no
5437 CXXFLAGS="-g"
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5442 main ()
5446 return 0;
5448 _ACEOF
5449 if ac_fn_cxx_try_compile "$LINENO"; then :
5450 ac_cv_prog_cxx_g=yes
5451 else
5452 CXXFLAGS=""
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5457 main ()
5461 return 0;
5463 _ACEOF
5464 if ac_fn_cxx_try_compile "$LINENO"; then :
5466 else
5467 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5468 CXXFLAGS="-g"
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5473 main ()
5477 return 0;
5479 _ACEOF
5480 if ac_fn_cxx_try_compile "$LINENO"; then :
5481 ac_cv_prog_cxx_g=yes
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5491 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5492 if test "$ac_test_CXXFLAGS" = set; then
5493 CXXFLAGS=$ac_save_CXXFLAGS
5494 elif test $ac_cv_prog_cxx_g = yes; then
5495 if test "$GXX" = yes; then
5496 CXXFLAGS="-g -O2"
5497 else
5498 CXXFLAGS="-g"
5500 else
5501 if test "$GXX" = yes; then
5502 CXXFLAGS="-O2"
5503 else
5504 CXXFLAGS=
5507 ac_ext=c
5508 ac_cpp='$CPP $CPPFLAGS'
5509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 depcc="$CXX" am_compiler_list=
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5516 $as_echo_n "checking dependency style of $depcc... " >&6; }
5517 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5521 # We make a subdir and do the tests there. Otherwise we can end up
5522 # making bogus files that we don't know about and never remove. For
5523 # instance it was reported that on HP-UX the gcc test will end up
5524 # making a dummy file named `D' -- because `-MD' means `put the output
5525 # in D'.
5526 mkdir conftest.dir
5527 # Copy depcomp to subdir because otherwise we won't find it if we're
5528 # using a relative directory.
5529 cp "$am_depcomp" conftest.dir
5530 cd conftest.dir
5531 # We will build objects and dependencies in a subdirectory because
5532 # it helps to detect inapplicable dependency modes. For instance
5533 # both Tru64's cc and ICC support -MD to output dependencies as a
5534 # side effect of compilation, but ICC will put the dependencies in
5535 # the current directory while Tru64 will put them in the object
5536 # directory.
5537 mkdir sub
5539 am_cv_CXX_dependencies_compiler_type=none
5540 if test "$am_compiler_list" = ""; then
5541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5543 am__universal=false
5544 case " $depcc " in #(
5545 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5546 esac
5548 for depmode in $am_compiler_list; do
5549 # Setup a source with many dependencies, because some compilers
5550 # like to wrap large dependency lists on column 80 (with \), and
5551 # we should not choose a depcomp mode which is confused by this.
5553 # We need to recreate these files for each test, as the compiler may
5554 # overwrite some of them when testing with obscure command lines.
5555 # This happens at least with the AIX C compiler.
5556 : > sub/conftest.c
5557 for i in 1 2 3 4 5 6; do
5558 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5559 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5560 # Solaris 8's {/usr,}/bin/sh.
5561 touch sub/conftst$i.h
5562 done
5563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5565 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5566 # mode. It turns out that the SunPro C++ compiler does not properly
5567 # handle `-M -o', and we need to detect this. Also, some Intel
5568 # versions had trouble with output in subdirs
5569 am__obj=sub/conftest.${OBJEXT-o}
5570 am__minus_obj="-o $am__obj"
5571 case $depmode in
5572 gcc)
5573 # This depmode causes a compiler race in universal mode.
5574 test "$am__universal" = false || continue
5576 nosideeffect)
5577 # after this tag, mechanisms are not by side-effect, so they'll
5578 # only be used when explicitly requested
5579 if test "x$enable_dependency_tracking" = xyes; then
5580 continue
5581 else
5582 break
5585 msvisualcpp | msvcmsys)
5586 # This compiler won't grok `-c -o', but also, the minuso test has
5587 # not run yet. These depmodes are late enough in the game, and
5588 # so weak that their functioning should not be impacted.
5589 am__obj=conftest.${OBJEXT-o}
5590 am__minus_obj=
5592 none) break ;;
5593 esac
5594 if depmode=$depmode \
5595 source=sub/conftest.c object=$am__obj \
5596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5597 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5598 >/dev/null 2>conftest.err &&
5599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5601 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5603 # icc doesn't choke on unknown options, it will just issue warnings
5604 # or remarks (even with -Werror). So we grep stderr for any message
5605 # that says an option was ignored or not supported.
5606 # When given -MP, icc 7.0 and 7.1 complain thusly:
5607 # icc: Command line warning: ignoring option '-M'; no argument required
5608 # The diagnosis changed in icc 8.0:
5609 # icc: Command line remark: option '-MP' not supported
5610 if (grep 'ignoring option' conftest.err ||
5611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5612 am_cv_CXX_dependencies_compiler_type=$depmode
5613 break
5616 done
5618 cd ..
5619 rm -rf conftest.dir
5620 else
5621 am_cv_CXX_dependencies_compiler_type=none
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5626 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5627 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5630 test "x$enable_dependency_tracking" != xno \
5631 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5632 am__fastdepCXX_TRUE=
5633 am__fastdepCXX_FALSE='#'
5634 else
5635 am__fastdepCXX_TRUE='#'
5636 am__fastdepCXX_FALSE=
5642 if test "x$CC" != xcc; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5644 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5647 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5649 set dummy $CC; ac_cc=`$as_echo "$2" |
5650 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5651 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5658 main ()
5662 return 0;
5664 _ACEOF
5665 # Make sure it works both with $CC and with simple cc.
5666 # We do the test twice because some compilers refuse to overwrite an
5667 # existing .o file with -o, though they will create one.
5668 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5669 rm -f conftest2.*
5670 if { { case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5675 $as_echo "$ac_try_echo"; } >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; } &&
5680 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5685 $as_echo "$ac_try_echo"; } >&5
5686 (eval "$ac_try") 2>&5
5687 ac_status=$?
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; };
5690 then
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5692 if test "x$CC" != xcc; then
5693 # Test first that cc exists at all.
5694 if { ac_try='cc -c conftest.$ac_ext >&5'
5695 { { case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700 $as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; }; }; then
5705 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5706 rm -f conftest2.*
5707 if { { case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712 $as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; } &&
5717 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5722 $as_echo "$ac_try_echo"; } >&5
5723 (eval "$ac_try") 2>&5
5724 ac_status=$?
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; };
5727 then
5728 # cc works too.
5730 else
5731 # cc exists but doesn't like -o.
5732 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5736 else
5737 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5739 rm -f core conftest*
5742 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744 $as_echo "yes" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5749 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5753 # FIXME: we rely on the cache variable name because
5754 # there is no other way.
5755 set dummy $CC
5756 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5757 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5758 if test "$am_t" != yes; then
5759 # Losing compiler, so override with the script.
5760 # FIXME: It is wrong to rewrite CC.
5761 # But if we don't then we get into trouble of one sort or another.
5762 # A longer-term fix would be to have automake use am__CC in this case,
5763 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5764 CC="$am_aux_dir/compile $CC"
5772 # Newer automakes demand CCAS and CCASFLAGS.
5773 : ${CCAS='$(CC)'}
5774 : ${CCASFLAGS='$(CFLAGS)'}
5778 if test -n "$ac_tool_prefix"; then
5779 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5780 set dummy ${ac_tool_prefix}as; ac_word=$2
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 $as_echo_n "checking for $ac_word... " >&6; }
5783 if test "${ac_cv_prog_AS+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 if test -n "$AS"; then
5787 ac_cv_prog_AS="$AS" # Let the user override the test.
5788 else
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_prog_AS="${ac_tool_prefix}as"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5800 done
5801 done
5802 IFS=$as_save_IFS
5806 AS=$ac_cv_prog_AS
5807 if test -n "$AS"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5809 $as_echo "$AS" >&6; }
5810 else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5817 if test -z "$ac_cv_prog_AS"; then
5818 ac_ct_AS=$AS
5819 # Extract the first word of "as", so it can be a program name with args.
5820 set dummy as; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$ac_ct_AS"; then
5827 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_ac_ct_AS="as"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5840 done
5841 done
5842 IFS=$as_save_IFS
5846 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5847 if test -n "$ac_ct_AS"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5849 $as_echo "$ac_ct_AS" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5855 if test "x$ac_ct_AS" = x; then
5856 AS=""
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859 yes:)
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862 ac_tool_warned=yes ;;
5863 esac
5864 AS=$ac_ct_AS
5866 else
5867 AS="$ac_cv_prog_AS"
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}ar; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_AR+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test -n "$AR"; then
5879 ac_cv_prog_AR="$AR" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_AR="${ac_tool_prefix}ar"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5892 done
5893 done
5894 IFS=$as_save_IFS
5898 AR=$ac_cv_prog_AR
5899 if test -n "$AR"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5901 $as_echo "$AR" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5909 if test -z "$ac_cv_prog_AR"; then
5910 ac_ct_AR=$AR
5911 # Extract the first word of "ar", so it can be a program name with args.
5912 set dummy ar; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$ac_ct_AR"; then
5919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_ac_ct_AR="ar"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5932 done
5933 done
5934 IFS=$as_save_IFS
5938 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5939 if test -n "$ac_ct_AR"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5941 $as_echo "$ac_ct_AR" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5947 if test "x$ac_ct_AR" = x; then
5948 AR=""
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956 AR=$ac_ct_AR
5958 else
5959 AR="$ac_cv_prog_AR"
5962 if test -n "$ac_tool_prefix"; then
5963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if test -n "$RANLIB"; then
5971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5984 done
5985 done
5986 IFS=$as_save_IFS
5990 RANLIB=$ac_cv_prog_RANLIB
5991 if test -n "$RANLIB"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5993 $as_echo "$RANLIB" >&6; }
5994 else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
6001 if test -z "$ac_cv_prog_RANLIB"; then
6002 ac_ct_RANLIB=$RANLIB
6003 # Extract the first word of "ranlib", so it can be a program name with args.
6004 set dummy ranlib; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$ac_ct_RANLIB"; then
6011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_ac_ct_RANLIB="ranlib"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6024 done
6025 done
6026 IFS=$as_save_IFS
6030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6031 if test -n "$ac_ct_RANLIB"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6033 $as_echo "$ac_ct_RANLIB" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6039 if test "x$ac_ct_RANLIB" = x; then
6040 RANLIB=":"
6041 else
6042 case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048 RANLIB=$ac_ct_RANLIB
6050 else
6051 RANLIB="$ac_cv_prog_RANLIB"
6055 # Configure libtool
6056 enable_dlopen=yes
6060 case `pwd` in
6061 *\ * | *\ *)
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6063 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6064 esac
6068 macro_version='2.2.7a'
6069 macro_revision='1.3134'
6083 ltmain="$ac_aux_dir/ltmain.sh"
6085 # Backslashify metacharacters that are still active within
6086 # double-quoted strings.
6087 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6089 # Same as above, but do not quote variable references.
6090 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6092 # Sed substitution to delay expansion of an escaped shell variable in a
6093 # double_quote_subst'ed string.
6094 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6096 # Sed substitution to delay expansion of an escaped single quote.
6097 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6099 # Sed substitution to avoid accidental globbing in evaled expressions
6100 no_glob_subst='s/\*/\\\*/g'
6102 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6103 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6107 $as_echo_n "checking how to print strings... " >&6; }
6108 # Test print first, because it will be a builtin if present.
6109 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6110 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6111 ECHO='print -r --'
6112 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6113 ECHO='printf %s\n'
6114 else
6115 # Use this function as a fallback that always works.
6116 func_fallback_echo ()
6118 eval 'cat <<_LTECHO_EOF
6120 _LTECHO_EOF'
6122 ECHO='func_fallback_echo'
6125 # func_echo_all arg...
6126 # Invoke $ECHO with all args, space-separated.
6127 func_echo_all ()
6129 $ECHO ""
6132 case "$ECHO" in
6133 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6134 $as_echo "printf" >&6; } ;;
6135 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6136 $as_echo "print -r" >&6; } ;;
6137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6138 $as_echo "cat" >&6; } ;;
6139 esac
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6155 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6156 if test "${ac_cv_path_SED+set}" = set; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6160 for ac_i in 1 2 3 4 5 6 7; do
6161 ac_script="$ac_script$as_nl$ac_script"
6162 done
6163 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6164 { ac_script=; unset ac_script;}
6165 if test -z "$SED"; then
6166 ac_path_SED_found=false
6167 # Loop through the user's path and test for each of PROGNAME-LIST
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_prog in sed gsed; do
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6176 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6177 # Check for GNU ac_path_SED and select it if it is found.
6178 # Check for GNU $ac_path_SED
6179 case `"$ac_path_SED" --version 2>&1` in
6180 *GNU*)
6181 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6183 ac_count=0
6184 $as_echo_n 0123456789 >"conftest.in"
6185 while :
6187 cat "conftest.in" "conftest.in" >"conftest.tmp"
6188 mv "conftest.tmp" "conftest.in"
6189 cp "conftest.in" "conftest.nl"
6190 $as_echo '' >> "conftest.nl"
6191 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6193 as_fn_arith $ac_count + 1 && ac_count=$as_val
6194 if test $ac_count -gt ${ac_path_SED_max-0}; then
6195 # Best one so far, save it but keep looking for a better one
6196 ac_cv_path_SED="$ac_path_SED"
6197 ac_path_SED_max=$ac_count
6199 # 10*(2^10) chars as input seems more than enough
6200 test $ac_count -gt 10 && break
6201 done
6202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6203 esac
6205 $ac_path_SED_found && break 3
6206 done
6207 done
6208 done
6209 IFS=$as_save_IFS
6210 if test -z "$ac_cv_path_SED"; then
6211 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6213 else
6214 ac_cv_path_SED=$SED
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6219 $as_echo "$ac_cv_path_SED" >&6; }
6220 SED="$ac_cv_path_SED"
6221 rm -f conftest.sed
6223 test -z "$SED" && SED=sed
6224 Xsed="$SED -e 1s/^X//"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6237 $as_echo_n "checking for fgrep... " >&6; }
6238 if test "${ac_cv_path_FGREP+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6242 then ac_cv_path_FGREP="$GREP -F"
6243 else
6244 if test -z "$FGREP"; then
6245 ac_path_FGREP_found=false
6246 # Loop through the user's path and test for each of PROGNAME-LIST
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_prog in fgrep; do
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6255 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6256 # Check for GNU ac_path_FGREP and select it if it is found.
6257 # Check for GNU $ac_path_FGREP
6258 case `"$ac_path_FGREP" --version 2>&1` in
6259 *GNU*)
6260 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6262 ac_count=0
6263 $as_echo_n 0123456789 >"conftest.in"
6264 while :
6266 cat "conftest.in" "conftest.in" >"conftest.tmp"
6267 mv "conftest.tmp" "conftest.in"
6268 cp "conftest.in" "conftest.nl"
6269 $as_echo 'FGREP' >> "conftest.nl"
6270 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6272 as_fn_arith $ac_count + 1 && ac_count=$as_val
6273 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6274 # Best one so far, save it but keep looking for a better one
6275 ac_cv_path_FGREP="$ac_path_FGREP"
6276 ac_path_FGREP_max=$ac_count
6278 # 10*(2^10) chars as input seems more than enough
6279 test $ac_count -gt 10 && break
6280 done
6281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6282 esac
6284 $ac_path_FGREP_found && break 3
6285 done
6286 done
6287 done
6288 IFS=$as_save_IFS
6289 if test -z "$ac_cv_path_FGREP"; then
6290 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6292 else
6293 ac_cv_path_FGREP=$FGREP
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6299 $as_echo "$ac_cv_path_FGREP" >&6; }
6300 FGREP="$ac_cv_path_FGREP"
6303 test -z "$GREP" && GREP=grep
6323 # Check whether --with-gnu-ld was given.
6324 if test "${with_gnu_ld+set}" = set; then :
6325 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6326 else
6327 with_gnu_ld=no
6330 ac_prog=ld
6331 if test "$GCC" = yes; then
6332 # Check if gcc -print-prog-name=ld gives a path.
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6334 $as_echo_n "checking for ld used by $CC... " >&6; }
6335 case $host in
6336 *-*-mingw*)
6337 # gcc leaves a trailing carriage return which upsets mingw
6338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6341 esac
6342 case $ac_prog in
6343 # Accept absolute paths.
6344 [\\/]* | ?:[\\/]*)
6345 re_direlt='/[^/][^/]*/\.\./'
6346 # Canonicalize the pathname of ld
6347 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6348 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6349 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6350 done
6351 test -z "$LD" && LD="$ac_prog"
6354 # If it fails, then pretend we aren't using GCC.
6355 ac_prog=ld
6358 # If it is relative, then search for the first ld in PATH.
6359 with_gnu_ld=unknown
6361 esac
6362 elif test "$with_gnu_ld" = yes; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6364 $as_echo_n "checking for GNU ld... " >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6367 $as_echo_n "checking for non-GNU ld... " >&6; }
6369 if test "${lt_cv_path_LD+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -z "$LD"; then
6373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6374 for ac_dir in $PATH; do
6375 IFS="$lt_save_ifs"
6376 test -z "$ac_dir" && ac_dir=.
6377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6378 lt_cv_path_LD="$ac_dir/$ac_prog"
6379 # Check to see if the program is GNU ld. I'd rather use --version,
6380 # but apparently some variants of GNU ld only accept -v.
6381 # Break only if it was the GNU/non-GNU ld that we prefer.
6382 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6383 *GNU* | *'with BFD'*)
6384 test "$with_gnu_ld" != no && break
6387 test "$with_gnu_ld" != yes && break
6389 esac
6391 done
6392 IFS="$lt_save_ifs"
6393 else
6394 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6398 LD="$lt_cv_path_LD"
6399 if test -n "$LD"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6401 $as_echo "$LD" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6406 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6409 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6413 case `$LD -v 2>&1 </dev/null` in
6414 *GNU* | *'with BFD'*)
6415 lt_cv_prog_gnu_ld=yes
6418 lt_cv_prog_gnu_ld=no
6420 esac
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6423 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6424 with_gnu_ld=$lt_cv_prog_gnu_ld
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6435 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6436 if test "${lt_cv_path_NM+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$NM"; then
6440 # Let the user override the test.
6441 lt_cv_path_NM="$NM"
6442 else
6443 lt_nm_to_check="${ac_tool_prefix}nm"
6444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6445 lt_nm_to_check="$lt_nm_to_check nm"
6447 for lt_tmp_nm in $lt_nm_to_check; do
6448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6450 IFS="$lt_save_ifs"
6451 test -z "$ac_dir" && ac_dir=.
6452 tmp_nm="$ac_dir/$lt_tmp_nm"
6453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6454 # Check to see if the nm accepts a BSD-compat flag.
6455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6456 # nm: unknown option "B" ignored
6457 # Tru64's nm complains that /dev/null is an invalid object file
6458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6459 */dev/null* | *'Invalid file or object type'*)
6460 lt_cv_path_NM="$tmp_nm -B"
6461 break
6464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6465 */dev/null*)
6466 lt_cv_path_NM="$tmp_nm -p"
6467 break
6470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6471 continue # so that we can try to find one that supports BSD flags
6473 esac
6475 esac
6477 done
6478 IFS="$lt_save_ifs"
6479 done
6480 : ${lt_cv_path_NM=no}
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6484 $as_echo "$lt_cv_path_NM" >&6; }
6485 if test "$lt_cv_path_NM" != "no"; then
6486 NM="$lt_cv_path_NM"
6487 else
6488 # Didn't find any BSD compatible name lister, look for dumpbin.
6489 if test -n "$DUMPBIN"; then :
6490 # Let the user override the test.
6491 else
6492 if test -n "$ac_tool_prefix"; then
6493 for ac_prog in dumpbin "link -dump"
6495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$DUMPBIN"; then
6503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6516 done
6517 done
6518 IFS=$as_save_IFS
6522 DUMPBIN=$ac_cv_prog_DUMPBIN
6523 if test -n "$DUMPBIN"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6525 $as_echo "$DUMPBIN" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6532 test -n "$DUMPBIN" && break
6533 done
6535 if test -z "$DUMPBIN"; then
6536 ac_ct_DUMPBIN=$DUMPBIN
6537 for ac_prog in dumpbin "link -dump"
6539 # Extract the first word of "$ac_prog", so it can be a program name with args.
6540 set dummy $ac_prog; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$ac_ct_DUMPBIN"; then
6547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6560 done
6561 done
6562 IFS=$as_save_IFS
6566 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6567 if test -n "$ac_ct_DUMPBIN"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6569 $as_echo "$ac_ct_DUMPBIN" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6576 test -n "$ac_ct_DUMPBIN" && break
6577 done
6579 if test "x$ac_ct_DUMPBIN" = x; then
6580 DUMPBIN=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588 DUMPBIN=$ac_ct_DUMPBIN
6592 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6593 *COFF*)
6594 DUMPBIN="$DUMPBIN -symbols"
6597 DUMPBIN=:
6599 esac
6602 if test "$DUMPBIN" != ":"; then
6603 NM="$DUMPBIN"
6606 test -z "$NM" && NM=nm
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6614 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6615 if test "${lt_cv_nm_interface+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 lt_cv_nm_interface="BSD nm"
6619 echo "int some_variable = 0;" > conftest.$ac_ext
6620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6621 (eval "$ac_compile" 2>conftest.err)
6622 cat conftest.err >&5
6623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6625 cat conftest.err >&5
6626 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6627 cat conftest.out >&5
6628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6629 lt_cv_nm_interface="MS dumpbin"
6631 rm -f conftest*
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6634 $as_echo "$lt_cv_nm_interface" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6637 $as_echo_n "checking whether ln -s works... " >&6; }
6638 LN_S=$as_ln_s
6639 if test "$LN_S" = "ln -s"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6641 $as_echo "yes" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6644 $as_echo "no, using $LN_S" >&6; }
6647 # find the maximum length of command line arguments
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6649 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6650 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6654 teststring="ABCD"
6656 case $build_os in
6657 msdosdjgpp*)
6658 # On DJGPP, this test can blow up pretty badly due to problems in libc
6659 # (any single argument exceeding 2000 bytes causes a buffer overrun
6660 # during glob expansion). Even if it were fixed, the result of this
6661 # check would be larger than it should be.
6662 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6665 gnu*)
6666 # Under GNU Hurd, this test is not required because there is
6667 # no limit to the length of command line arguments.
6668 # Libtool will interpret -1 as no limit whatsoever
6669 lt_cv_sys_max_cmd_len=-1;
6672 cygwin* | mingw* | cegcc*)
6673 # On Win9x/ME, this test blows up -- it succeeds, but takes
6674 # about 5 minutes as the teststring grows exponentially.
6675 # Worse, since 9x/ME are not pre-emptively multitasking,
6676 # you end up with a "frozen" computer, even though with patience
6677 # the test eventually succeeds (with a max line length of 256k).
6678 # Instead, let's just punt: use the minimum linelength reported by
6679 # all of the supported platforms: 8192 (on NT/2K/XP).
6680 lt_cv_sys_max_cmd_len=8192;
6683 mint*)
6684 # On MiNT this can take a long time and run out of memory.
6685 lt_cv_sys_max_cmd_len=8192;
6688 amigaos*)
6689 # On AmigaOS with pdksh, this test takes hours, literally.
6690 # So we just punt and use a minimum line length of 8192.
6691 lt_cv_sys_max_cmd_len=8192;
6694 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6695 # This has been around since 386BSD, at least. Likely further.
6696 if test -x /sbin/sysctl; then
6697 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6698 elif test -x /usr/sbin/sysctl; then
6699 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6700 else
6701 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6703 # And add a safety zone
6704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6708 interix*)
6709 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6710 lt_cv_sys_max_cmd_len=196608
6713 osf*)
6714 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6715 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6716 # nice to cause kernel panics so lets avoid the loop below.
6717 # First set a reasonable default.
6718 lt_cv_sys_max_cmd_len=16384
6720 if test -x /sbin/sysconfig; then
6721 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6722 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6723 esac
6726 sco3.2v5*)
6727 lt_cv_sys_max_cmd_len=102400
6729 sysv5* | sco5v6* | sysv4.2uw2*)
6730 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6731 if test -n "$kargmax"; then
6732 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6733 else
6734 lt_cv_sys_max_cmd_len=32768
6738 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6739 if test -n "$lt_cv_sys_max_cmd_len"; then
6740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6742 else
6743 # Make teststring a little bigger before we do anything with it.
6744 # a 1K string should be a reasonable start.
6745 for i in 1 2 3 4 5 6 7 8 ; do
6746 teststring=$teststring$teststring
6747 done
6748 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6749 # If test is not a shell built-in, we'll probably end up computing a
6750 # maximum length that is only half of the actual maximum length, but
6751 # we can't tell.
6752 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6753 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6754 test $i != 17 # 1/2 MB should be enough
6756 i=`expr $i + 1`
6757 teststring=$teststring$teststring
6758 done
6759 # Only check the string length outside the loop.
6760 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6761 teststring=
6762 # Add a significant safety factor because C++ compilers can tack on
6763 # massive amounts of additional arguments before passing them to the
6764 # linker. It appears as though 1/2 is a usable value.
6765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6768 esac
6772 if test -n $lt_cv_sys_max_cmd_len ; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6774 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6777 $as_echo "none" >&6; }
6779 max_cmd_len=$lt_cv_sys_max_cmd_len
6786 : ${CP="cp -f"}
6787 : ${MV="mv -f"}
6788 : ${RM="rm -f"}
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6791 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6792 # Try some XSI features
6793 xsi_shell=no
6794 ( _lt_dummy="a/b/c"
6795 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6796 = c,a/b,, \
6797 && eval 'test $(( 1 + 1 )) -eq 2 \
6798 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6799 && xsi_shell=yes
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6801 $as_echo "$xsi_shell" >&6; }
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6805 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6806 lt_shell_append=no
6807 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6808 >/dev/null 2>&1 \
6809 && lt_shell_append=yes
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6811 $as_echo "$lt_shell_append" >&6; }
6814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6815 lt_unset=unset
6816 else
6817 lt_unset=false
6824 # test EBCDIC or ASCII
6825 case `echo X|tr X '\101'` in
6826 A) # ASCII based system
6827 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6828 lt_SP2NL='tr \040 \012'
6829 lt_NL2SP='tr \015\012 \040\040'
6831 *) # EBCDIC based system
6832 lt_SP2NL='tr \100 \n'
6833 lt_NL2SP='tr \r\n \100\100'
6835 esac
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6847 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 lt_cv_ld_reload_flag='-r'
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6854 reload_flag=$lt_cv_ld_reload_flag
6855 case $reload_flag in
6856 "" | " "*) ;;
6857 *) reload_flag=" $reload_flag" ;;
6858 esac
6859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6860 case $host_os in
6861 darwin*)
6862 if test "$GCC" = yes; then
6863 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6864 else
6865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6868 esac
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$OBJDUMP"; then
6887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6906 OBJDUMP=$ac_cv_prog_OBJDUMP
6907 if test -n "$OBJDUMP"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6909 $as_echo "$OBJDUMP" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6917 if test -z "$ac_cv_prog_OBJDUMP"; then
6918 ac_ct_OBJDUMP=$OBJDUMP
6919 # Extract the first word of "objdump", so it can be a program name with args.
6920 set dummy objdump; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$ac_ct_OBJDUMP"; then
6927 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6946 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6947 if test -n "$ac_ct_OBJDUMP"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6949 $as_echo "$ac_ct_OBJDUMP" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6955 if test "x$ac_ct_OBJDUMP" = x; then
6956 OBJDUMP="false"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6963 esac
6964 OBJDUMP=$ac_ct_OBJDUMP
6966 else
6967 OBJDUMP="$ac_cv_prog_OBJDUMP"
6970 test -z "$OBJDUMP" && OBJDUMP=objdump
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6981 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6982 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 lt_cv_file_magic_cmd='$MAGIC_CMD'
6986 lt_cv_file_magic_test_file=
6987 lt_cv_deplibs_check_method='unknown'
6988 # Need to set the preceding variable on all platforms that support
6989 # interlibrary dependencies.
6990 # 'none' -- dependencies not supported.
6991 # `unknown' -- same as none, but documents that we really don't know.
6992 # 'pass_all' -- all dependencies passed with no checks.
6993 # 'test_compile' -- check by making test program.
6994 # 'file_magic [[regex]]' -- check by looking for files in library path
6995 # which responds to the $file_magic_cmd with a given extended regex.
6996 # If you have `file' or equivalent on your system and you're not sure
6997 # whether `pass_all' will *always* work, you probably want this one.
6999 case $host_os in
7000 aix[4-9]*)
7001 lt_cv_deplibs_check_method=pass_all
7004 beos*)
7005 lt_cv_deplibs_check_method=pass_all
7008 bsdi[45]*)
7009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7010 lt_cv_file_magic_cmd='/usr/bin/file -L'
7011 lt_cv_file_magic_test_file=/shlib/libc.so
7014 cygwin*)
7015 # func_win32_libid is a shell function defined in ltmain.sh
7016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7017 lt_cv_file_magic_cmd='func_win32_libid'
7020 mingw* | pw32*)
7021 # Base MSYS/MinGW do not provide the 'file' command needed by
7022 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7023 # unless we find 'file', for example because we are cross-compiling.
7024 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7025 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7027 lt_cv_file_magic_cmd='func_win32_libid'
7028 else
7029 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7030 lt_cv_file_magic_cmd='$OBJDUMP -f'
7034 cegcc*)
7035 # use the weaker test based on 'objdump'. See mingw*.
7036 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7037 lt_cv_file_magic_cmd='$OBJDUMP -f'
7040 darwin* | rhapsody*)
7041 lt_cv_deplibs_check_method=pass_all
7044 freebsd* | dragonfly*)
7045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7046 case $host_cpu in
7047 i*86 )
7048 # Not sure whether the presence of OpenBSD here was a mistake.
7049 # Let's accept both of them until this is cleared up.
7050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7051 lt_cv_file_magic_cmd=/usr/bin/file
7052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7054 esac
7055 else
7056 lt_cv_deplibs_check_method=pass_all
7060 gnu*)
7061 lt_cv_deplibs_check_method=pass_all
7064 haiku*)
7065 lt_cv_deplibs_check_method=pass_all
7068 hpux10.20* | hpux11*)
7069 lt_cv_file_magic_cmd=/usr/bin/file
7070 case $host_cpu in
7071 ia64*)
7072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7075 hppa*64*)
7076 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]'
7077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7081 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7083 esac
7086 interix[3-9]*)
7087 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7091 irix5* | irix6* | nonstopux*)
7092 case $LD in
7093 *-32|*"-32 ") libmagic=32-bit;;
7094 *-n32|*"-n32 ") libmagic=N32;;
7095 *-64|*"-64 ") libmagic=64-bit;;
7096 *) libmagic=never-match;;
7097 esac
7098 lt_cv_deplibs_check_method=pass_all
7101 # This must be Linux ELF.
7102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7103 lt_cv_deplibs_check_method=pass_all
7106 netbsd*)
7107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7109 else
7110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7114 newos6*)
7115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7116 lt_cv_file_magic_cmd=/usr/bin/file
7117 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7120 *nto* | *qnx*)
7121 lt_cv_deplibs_check_method=pass_all
7124 openbsd*)
7125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7127 else
7128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7132 osf3* | osf4* | osf5*)
7133 lt_cv_deplibs_check_method=pass_all
7136 rdos*)
7137 lt_cv_deplibs_check_method=pass_all
7140 solaris*)
7141 lt_cv_deplibs_check_method=pass_all
7144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7145 lt_cv_deplibs_check_method=pass_all
7148 sysv4 | sysv4.3*)
7149 case $host_vendor in
7150 motorola)
7151 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]'
7152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7154 ncr)
7155 lt_cv_deplibs_check_method=pass_all
7157 sequent)
7158 lt_cv_file_magic_cmd='/bin/file'
7159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7161 sni)
7162 lt_cv_file_magic_cmd='/bin/file'
7163 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7164 lt_cv_file_magic_test_file=/lib/libc.so
7166 siemens)
7167 lt_cv_deplibs_check_method=pass_all
7170 lt_cv_deplibs_check_method=pass_all
7172 esac
7175 tpf*)
7176 lt_cv_deplibs_check_method=pass_all
7178 esac
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7182 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7183 file_magic_cmd=$lt_cv_file_magic_cmd
7184 deplibs_check_method=$lt_cv_deplibs_check_method
7185 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7198 if test -n "$ac_tool_prefix"; then
7199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}ar; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if test "${ac_cv_prog_AR+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 if test -n "$AR"; then
7207 ac_cv_prog_AR="$AR" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_AR="${ac_tool_prefix}ar"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7220 done
7221 done
7222 IFS=$as_save_IFS
7226 AR=$ac_cv_prog_AR
7227 if test -n "$AR"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7229 $as_echo "$AR" >&6; }
7230 else
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7237 if test -z "$ac_cv_prog_AR"; then
7238 ac_ct_AR=$AR
7239 # Extract the first word of "ar", so it can be a program name with args.
7240 set dummy ar; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 if test -n "$ac_ct_AR"; then
7247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_prog_ac_ct_AR="ar"
7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7260 done
7261 done
7262 IFS=$as_save_IFS
7266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7267 if test -n "$ac_ct_AR"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7269 $as_echo "$ac_ct_AR" >&6; }
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7275 if test "x$ac_ct_AR" = x; then
7276 AR="false"
7277 else
7278 case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284 AR=$ac_ct_AR
7286 else
7287 AR="$ac_cv_prog_AR"
7290 test -z "$AR" && AR=ar
7291 test -z "$AR_FLAGS" && AR_FLAGS=cru
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}strip; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if test "${ac_cv_prog_STRIP+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$STRIP"; then
7312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7325 done
7326 done
7327 IFS=$as_save_IFS
7331 STRIP=$ac_cv_prog_STRIP
7332 if test -n "$STRIP"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7334 $as_echo "$STRIP" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7342 if test -z "$ac_cv_prog_STRIP"; then
7343 ac_ct_STRIP=$STRIP
7344 # Extract the first word of "strip", so it can be a program name with args.
7345 set dummy strip; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$ac_ct_STRIP"; then
7352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_ac_ct_STRIP="strip"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7367 IFS=$as_save_IFS
7371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7372 if test -n "$ac_ct_STRIP"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7374 $as_echo "$ac_ct_STRIP" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 if test "x$ac_ct_STRIP" = x; then
7381 STRIP=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 STRIP=$ac_ct_STRIP
7391 else
7392 STRIP="$ac_cv_prog_STRIP"
7395 test -z "$STRIP" && STRIP=:
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$RANLIB"; then
7411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7424 done
7425 done
7426 IFS=$as_save_IFS
7430 RANLIB=$ac_cv_prog_RANLIB
7431 if test -n "$RANLIB"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7433 $as_echo "$RANLIB" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7441 if test -z "$ac_cv_prog_RANLIB"; then
7442 ac_ct_RANLIB=$RANLIB
7443 # Extract the first word of "ranlib", so it can be a program name with args.
7444 set dummy ranlib; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$ac_ct_RANLIB"; then
7451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_ac_ct_RANLIB="ranlib"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7464 done
7465 done
7466 IFS=$as_save_IFS
7470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7471 if test -n "$ac_ct_RANLIB"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7473 $as_echo "$ac_ct_RANLIB" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7479 if test "x$ac_ct_RANLIB" = x; then
7480 RANLIB=":"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488 RANLIB=$ac_ct_RANLIB
7490 else
7491 RANLIB="$ac_cv_prog_RANLIB"
7494 test -z "$RANLIB" && RANLIB=:
7501 # Determine commands to create old-style static archives.
7502 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7503 old_postinstall_cmds='chmod 644 $oldlib'
7504 old_postuninstall_cmds=
7506 if test -n "$RANLIB"; then
7507 case $host_os in
7508 openbsd*)
7509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7514 esac
7515 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7518 case $host_os in
7519 darwin*)
7520 lock_old_archive_extraction=yes ;;
7522 lock_old_archive_extraction=no ;;
7523 esac
7563 # If no C compiler was specified, use CC.
7564 LTCC=${LTCC-"$CC"}
7566 # If no C compiler flags were specified, use CFLAGS.
7567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7569 # Allow CC to be a program name with arguments.
7570 compiler=$CC
7573 # Check for command to grab the raw symbol name followed by C symbol from nm.
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7576 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7580 # These are sane defaults that work on at least a few old systems.
7581 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7583 # Character class describing NM global symbol codes.
7584 symcode='[BCDEGRST]'
7586 # Regexp to match symbols that can be accessed directly from C.
7587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7589 # Define system-specific variables.
7590 case $host_os in
7591 aix*)
7592 symcode='[BCDT]'
7594 cygwin* | mingw* | pw32* | cegcc*)
7595 symcode='[ABCDGISTW]'
7597 hpux*)
7598 if test "$host_cpu" = ia64; then
7599 symcode='[ABCDEGRST]'
7602 irix* | nonstopux*)
7603 symcode='[BCDEGRST]'
7605 osf*)
7606 symcode='[BCDEGQRST]'
7608 solaris*)
7609 symcode='[BDRT]'
7611 sco3.2v5*)
7612 symcode='[DT]'
7614 sysv4.2uw2*)
7615 symcode='[DT]'
7617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7618 symcode='[ABDT]'
7620 sysv4)
7621 symcode='[DFNSTU]'
7623 esac
7625 # If we're using GNU nm, then use its standard symbol codes.
7626 case `$NM -V 2>&1` in
7627 *GNU* | *'with BFD'*)
7628 symcode='[ABCDGIRSTW]' ;;
7629 esac
7631 # Transform an extracted symbol line into a proper C declaration.
7632 # Some systems (esp. on ia64) link data and code symbols differently,
7633 # so use this general approach.
7634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7636 # Transform an extracted symbol line into symbol name and symbol address
7637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7638 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'"
7640 # Handle CRLF in mingw tool chain
7641 opt_cr=
7642 case $build_os in
7643 mingw*)
7644 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7646 esac
7648 # Try without a prefix underscore, then with it.
7649 for ac_symprfx in "" "_"; do
7651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7652 symxfrm="\\1 $ac_symprfx\\2 \\2"
7654 # Write the raw and C identifiers.
7655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7656 # Fake it for dumpbin and say T for any non-static function
7657 # and D for any global variable.
7658 # Also find C++ and __fastcall symbols from MSVC++,
7659 # which start with @ or ?.
7660 lt_cv_sys_global_symbol_pipe="$AWK '"\
7661 " {last_section=section; section=\$ 3};"\
7662 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7663 " \$ 0!~/External *\|/{next};"\
7664 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7665 " {if(hide[section]) next};"\
7666 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7667 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7668 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7669 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7670 " ' prfx=^$ac_symprfx"
7671 else
7672 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7675 # Check to see that the pipe works correctly.
7676 pipe_works=no
7678 rm -f conftest*
7679 cat > conftest.$ac_ext <<_LT_EOF
7680 #ifdef __cplusplus
7681 extern "C" {
7682 #endif
7683 char nm_test_var;
7684 void nm_test_func(void);
7685 void nm_test_func(void){}
7686 #ifdef __cplusplus
7688 #endif
7689 int main(){nm_test_var='a';nm_test_func();return(0);}
7690 _LT_EOF
7692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7693 (eval $ac_compile) 2>&5
7694 ac_status=$?
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; }; then
7697 # Now try to grab the symbols.
7698 nlist=conftest.nm
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7700 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7701 ac_status=$?
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; } && test -s "$nlist"; then
7704 # Try sorting and uniquifying the output.
7705 if sort "$nlist" | uniq > "$nlist"T; then
7706 mv -f "$nlist"T "$nlist"
7707 else
7708 rm -f "$nlist"T
7711 # Make sure that we snagged all the symbols we need.
7712 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7713 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7714 cat <<_LT_EOF > conftest.$ac_ext
7715 #ifdef __cplusplus
7716 extern "C" {
7717 #endif
7719 _LT_EOF
7720 # Now generate the symbol file.
7721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7723 cat <<_LT_EOF >> conftest.$ac_ext
7725 /* The mapping between symbol names and symbols. */
7726 const struct {
7727 const char *name;
7728 void *address;
7730 lt__PROGRAM__LTX_preloaded_symbols[] =
7732 { "@PROGRAM@", (void *) 0 },
7733 _LT_EOF
7734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7735 cat <<\_LT_EOF >> conftest.$ac_ext
7736 {0, (void *) 0}
7739 /* This works around a problem in FreeBSD linker */
7740 #ifdef FREEBSD_WORKAROUND
7741 static const void *lt_preloaded_setup() {
7742 return lt__PROGRAM__LTX_preloaded_symbols;
7744 #endif
7746 #ifdef __cplusplus
7748 #endif
7749 _LT_EOF
7750 # Now try linking the two files.
7751 mv conftest.$ac_objext conftstm.$ac_objext
7752 lt_save_LIBS="$LIBS"
7753 lt_save_CFLAGS="$CFLAGS"
7754 LIBS="conftstm.$ac_objext"
7755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7757 (eval $ac_link) 2>&5
7758 ac_status=$?
7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7761 pipe_works=yes
7763 LIBS="$lt_save_LIBS"
7764 CFLAGS="$lt_save_CFLAGS"
7765 else
7766 echo "cannot find nm_test_func in $nlist" >&5
7768 else
7769 echo "cannot find nm_test_var in $nlist" >&5
7771 else
7772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7774 else
7775 echo "$progname: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7778 rm -rf conftest* conftst*
7780 # Do not use the global_symbol_pipe unless it works.
7781 if test "$pipe_works" = yes; then
7782 break
7783 else
7784 lt_cv_sys_global_symbol_pipe=
7786 done
7790 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7791 lt_cv_sys_global_symbol_to_cdecl=
7793 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7795 $as_echo "failed" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7798 $as_echo "ok" >&6; }
7822 # Check whether --enable-libtool-lock was given.
7823 if test "${enable_libtool_lock+set}" = set; then :
7824 enableval=$enable_libtool_lock;
7827 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7829 # Some flags need to be propagated to the compiler or linker for good
7830 # libtool support.
7831 case $host in
7832 ia64-*-hpux*)
7833 # Find out which ABI we are using.
7834 echo 'int i;' > conftest.$ac_ext
7835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7836 (eval $ac_compile) 2>&5
7837 ac_status=$?
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }; then
7840 case `/usr/bin/file conftest.$ac_objext` in
7841 *ELF-32*)
7842 HPUX_IA64_MODE="32"
7844 *ELF-64*)
7845 HPUX_IA64_MODE="64"
7847 esac
7849 rm -rf conftest*
7851 *-*-irix6*)
7852 # Find out which ABI we are using.
7853 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7855 (eval $ac_compile) 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; }; then
7859 if test "$lt_cv_prog_gnu_ld" = yes; then
7860 case `/usr/bin/file conftest.$ac_objext` in
7861 *32-bit*)
7862 LD="${LD-ld} -melf32bsmip"
7864 *N32*)
7865 LD="${LD-ld} -melf32bmipn32"
7867 *64-bit*)
7868 LD="${LD-ld} -melf64bmip"
7870 esac
7871 else
7872 case `/usr/bin/file conftest.$ac_objext` in
7873 *32-bit*)
7874 LD="${LD-ld} -32"
7876 *N32*)
7877 LD="${LD-ld} -n32"
7879 *64-bit*)
7880 LD="${LD-ld} -64"
7882 esac
7885 rm -rf conftest*
7888 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7889 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7890 # Find out which ABI we are using.
7891 echo 'int i;' > conftest.$ac_ext
7892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7893 (eval $ac_compile) 2>&5
7894 ac_status=$?
7895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896 test $ac_status = 0; }; then
7897 case `/usr/bin/file conftest.o` in
7898 *32-bit*)
7899 case $host in
7900 x86_64-*kfreebsd*-gnu)
7901 LD="${LD-ld} -m elf_i386_fbsd"
7903 x86_64-*linux*)
7904 case `/usr/bin/file conftest.o` in
7905 *x86-64*)
7906 LD="${LD-ld} -m elf32_x86_64"
7909 LD="${LD-ld} -m elf_i386"
7911 esac
7913 powerpc64le-*linux*)
7914 LD="${LD-ld} -m elf32lppclinux"
7916 powerpc64-*linux*)
7917 LD="${LD-ld} -m elf32ppclinux"
7919 s390x-*linux*)
7920 LD="${LD-ld} -m elf_s390"
7922 sparc64-*linux*)
7923 LD="${LD-ld} -m elf32_sparc"
7925 esac
7927 *64-bit*)
7928 case $host in
7929 x86_64-*kfreebsd*-gnu)
7930 LD="${LD-ld} -m elf_x86_64_fbsd"
7932 x86_64-*linux*)
7933 LD="${LD-ld} -m elf_x86_64"
7935 powerpcle-*linux*)
7936 LD="${LD-ld} -m elf64lppc"
7938 powerpc-*linux*)
7939 LD="${LD-ld} -m elf64ppc"
7941 s390*-*linux*|s390*-*tpf*)
7942 LD="${LD-ld} -m elf64_s390"
7944 sparc*-*linux*)
7945 LD="${LD-ld} -m elf64_sparc"
7947 esac
7949 esac
7951 rm -rf conftest*
7954 *-*-sco3.2v5*)
7955 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7956 SAVE_CFLAGS="$CFLAGS"
7957 CFLAGS="$CFLAGS -belf"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7959 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7960 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 ac_ext=c
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7973 main ()
7977 return 0;
7979 _ACEOF
7980 if ac_fn_c_try_link "$LINENO"; then :
7981 lt_cv_cc_needs_belf=yes
7982 else
7983 lt_cv_cc_needs_belf=no
7985 rm -f core conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7987 ac_ext=c
7988 ac_cpp='$CPP $CPPFLAGS'
7989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7995 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7996 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7997 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7998 CFLAGS="$SAVE_CFLAGS"
8001 sparc*-*solaris*)
8002 # Find out which ABI we are using.
8003 echo 'int i;' > conftest.$ac_ext
8004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8005 (eval $ac_compile) 2>&5
8006 ac_status=$?
8007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8008 test $ac_status = 0; }; then
8009 case `/usr/bin/file conftest.o` in
8010 *64-bit*)
8011 case $lt_cv_prog_gnu_ld in
8012 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8014 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8015 LD="${LD-ld} -64"
8018 esac
8020 esac
8022 rm -rf conftest*
8024 esac
8026 need_locks="$enable_libtool_lock"
8029 case $host_os in
8030 rhapsody* | darwin*)
8031 if test -n "$ac_tool_prefix"; then
8032 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8033 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$DSYMUTIL"; then
8040 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8053 done
8054 done
8055 IFS=$as_save_IFS
8059 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8060 if test -n "$DSYMUTIL"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8062 $as_echo "$DSYMUTIL" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8070 if test -z "$ac_cv_prog_DSYMUTIL"; then
8071 ac_ct_DSYMUTIL=$DSYMUTIL
8072 # Extract the first word of "dsymutil", so it can be a program name with args.
8073 set dummy dsymutil; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$ac_ct_DSYMUTIL"; then
8080 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8093 done
8094 done
8095 IFS=$as_save_IFS
8099 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8100 if test -n "$ac_ct_DSYMUTIL"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8102 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8108 if test "x$ac_ct_DSYMUTIL" = x; then
8109 DSYMUTIL=":"
8110 else
8111 case $cross_compiling:$ac_tool_warned in
8112 yes:)
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8115 ac_tool_warned=yes ;;
8116 esac
8117 DSYMUTIL=$ac_ct_DSYMUTIL
8119 else
8120 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8123 if test -n "$ac_tool_prefix"; then
8124 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8125 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$NMEDIT"; then
8132 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8145 done
8146 done
8147 IFS=$as_save_IFS
8151 NMEDIT=$ac_cv_prog_NMEDIT
8152 if test -n "$NMEDIT"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8154 $as_echo "$NMEDIT" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8162 if test -z "$ac_cv_prog_NMEDIT"; then
8163 ac_ct_NMEDIT=$NMEDIT
8164 # Extract the first word of "nmedit", so it can be a program name with args.
8165 set dummy nmedit; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 if test -n "$ac_ct_NMEDIT"; then
8172 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 break 2
8185 done
8186 done
8187 IFS=$as_save_IFS
8191 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8192 if test -n "$ac_ct_NMEDIT"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8194 $as_echo "$ac_ct_NMEDIT" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8200 if test "x$ac_ct_NMEDIT" = x; then
8201 NMEDIT=":"
8202 else
8203 case $cross_compiling:$ac_tool_warned in
8204 yes:)
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207 ac_tool_warned=yes ;;
8208 esac
8209 NMEDIT=$ac_ct_NMEDIT
8211 else
8212 NMEDIT="$ac_cv_prog_NMEDIT"
8215 if test -n "$ac_tool_prefix"; then
8216 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8217 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_LIPO+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$LIPO"; then
8224 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8243 LIPO=$ac_cv_prog_LIPO
8244 if test -n "$LIPO"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8246 $as_echo "$LIPO" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8254 if test -z "$ac_cv_prog_LIPO"; then
8255 ac_ct_LIPO=$LIPO
8256 # Extract the first word of "lipo", so it can be a program name with args.
8257 set dummy lipo; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$ac_ct_LIPO"; then
8264 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_ac_ct_LIPO="lipo"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8277 done
8278 done
8279 IFS=$as_save_IFS
8283 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8284 if test -n "$ac_ct_LIPO"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8286 $as_echo "$ac_ct_LIPO" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8292 if test "x$ac_ct_LIPO" = x; then
8293 LIPO=":"
8294 else
8295 case $cross_compiling:$ac_tool_warned in
8296 yes:)
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8299 ac_tool_warned=yes ;;
8300 esac
8301 LIPO=$ac_ct_LIPO
8303 else
8304 LIPO="$ac_cv_prog_LIPO"
8307 if test -n "$ac_tool_prefix"; then
8308 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}otool; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$OTOOL"; then
8316 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8329 done
8330 done
8331 IFS=$as_save_IFS
8335 OTOOL=$ac_cv_prog_OTOOL
8336 if test -n "$OTOOL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8338 $as_echo "$OTOOL" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8346 if test -z "$ac_cv_prog_OTOOL"; then
8347 ac_ct_OTOOL=$OTOOL
8348 # Extract the first word of "otool", so it can be a program name with args.
8349 set dummy otool; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$ac_ct_OTOOL"; then
8356 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_prog_ac_ct_OTOOL="otool"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8369 done
8370 done
8371 IFS=$as_save_IFS
8375 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8376 if test -n "$ac_ct_OTOOL"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8378 $as_echo "$ac_ct_OTOOL" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8384 if test "x$ac_ct_OTOOL" = x; then
8385 OTOOL=":"
8386 else
8387 case $cross_compiling:$ac_tool_warned in
8388 yes:)
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8392 esac
8393 OTOOL=$ac_ct_OTOOL
8395 else
8396 OTOOL="$ac_cv_prog_OTOOL"
8399 if test -n "$ac_tool_prefix"; then
8400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$OTOOL64"; then
8408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8421 done
8422 done
8423 IFS=$as_save_IFS
8427 OTOOL64=$ac_cv_prog_OTOOL64
8428 if test -n "$OTOOL64"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8430 $as_echo "$OTOOL64" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8438 if test -z "$ac_cv_prog_OTOOL64"; then
8439 ac_ct_OTOOL64=$OTOOL64
8440 # Extract the first word of "otool64", so it can be a program name with args.
8441 set dummy otool64; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 if test -n "$ac_ct_OTOOL64"; then
8448 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8449 else
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_prog_ac_ct_OTOOL64="otool64"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8461 done
8462 done
8463 IFS=$as_save_IFS
8467 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8468 if test -n "$ac_ct_OTOOL64"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8470 $as_echo "$ac_ct_OTOOL64" >&6; }
8471 else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8476 if test "x$ac_ct_OTOOL64" = x; then
8477 OTOOL64=":"
8478 else
8479 case $cross_compiling:$ac_tool_warned in
8480 yes:)
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8483 ac_tool_warned=yes ;;
8484 esac
8485 OTOOL64=$ac_ct_OTOOL64
8487 else
8488 OTOOL64="$ac_cv_prog_OTOOL64"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8518 $as_echo_n "checking for -single_module linker flag... " >&6; }
8519 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_apple_cc_single_mod=no
8523 if test -z "${LT_MULTI_MODULE}"; then
8524 # By default we will add the -single_module flag. You can override
8525 # by either setting the environment variable LT_MULTI_MODULE
8526 # non-empty at configure time, or by adding -multi_module to the
8527 # link flags.
8528 rm -rf libconftest.dylib*
8529 echo "int foo(void){return 1;}" > conftest.c
8530 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8531 -dynamiclib -Wl,-single_module conftest.c" >&5
8532 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8533 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8534 _lt_result=$?
8535 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8536 lt_cv_apple_cc_single_mod=yes
8537 else
8538 cat conftest.err >&5
8540 rm -rf libconftest.dylib*
8541 rm -f conftest.*
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8545 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8547 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8548 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 lt_cv_ld_exported_symbols_list=no
8552 save_LDFLAGS=$LDFLAGS
8553 echo "_main" > conftest.sym
8554 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8559 main ()
8563 return 0;
8565 _ACEOF
8566 if ac_fn_c_try_link "$LINENO"; then :
8567 lt_cv_ld_exported_symbols_list=yes
8568 else
8569 lt_cv_ld_exported_symbols_list=no
8571 rm -f core conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LDFLAGS="$save_LDFLAGS"
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8577 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8579 $as_echo_n "checking for -force_load linker flag... " >&6; }
8580 if test "${lt_cv_ld_force_load+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 lt_cv_ld_force_load=no
8584 cat > conftest.c << _LT_EOF
8585 int forced_loaded() { return 2;}
8586 _LT_EOF
8587 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8588 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8589 echo "$AR cru libconftest.a conftest.o" >&5
8590 $AR cru libconftest.a conftest.o 2>&5
8591 cat > conftest.c << _LT_EOF
8592 int main() { return 0;}
8593 _LT_EOF
8594 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8595 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8596 _lt_result=$?
8597 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8598 lt_cv_ld_force_load=yes
8599 else
8600 cat conftest.err >&5
8602 rm -f conftest.err libconftest.a conftest conftest.c
8603 rm -rf conftest.dSYM
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8607 $as_echo "$lt_cv_ld_force_load" >&6; }
8608 case $host_os in
8609 rhapsody* | darwin1.[012])
8610 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8611 darwin1.*)
8612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8613 darwin*) # darwin 5.x on
8614 # if running on 10.5 or later, the deployment target defaults
8615 # to the OS version, if on x86, and 10.4, the deployment
8616 # target defaults to 10.4. Don't you love it?
8617 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8618 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8620 10.[012][,.]*)
8621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8622 10.*)
8623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8624 esac
8626 esac
8627 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8628 _lt_dar_single_mod='$single_module'
8630 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8631 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8632 else
8633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8635 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8636 _lt_dsymutil='~$DSYMUTIL $lib || :'
8637 else
8638 _lt_dsymutil=
8641 esac
8643 for ac_header in dlfcn.h
8644 do :
8645 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8647 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8648 cat >>confdefs.h <<_ACEOF
8649 #define HAVE_DLFCN_H 1
8650 _ACEOF
8654 done
8661 # Set options
8666 enable_win32_dll=no
8669 # Check whether --enable-shared was given.
8670 if test "${enable_shared+set}" = set; then :
8671 enableval=$enable_shared; p=${PACKAGE-default}
8672 case $enableval in
8673 yes) enable_shared=yes ;;
8674 no) enable_shared=no ;;
8676 enable_shared=no
8677 # Look at the argument we got. We use all the common list separators.
8678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8679 for pkg in $enableval; do
8680 IFS="$lt_save_ifs"
8681 if test "X$pkg" = "X$p"; then
8682 enable_shared=yes
8684 done
8685 IFS="$lt_save_ifs"
8687 esac
8688 else
8689 enable_shared=yes
8700 # Check whether --enable-static was given.
8701 if test "${enable_static+set}" = set; then :
8702 enableval=$enable_static; p=${PACKAGE-default}
8703 case $enableval in
8704 yes) enable_static=yes ;;
8705 no) enable_static=no ;;
8707 enable_static=no
8708 # Look at the argument we got. We use all the common list separators.
8709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8710 for pkg in $enableval; do
8711 IFS="$lt_save_ifs"
8712 if test "X$pkg" = "X$p"; then
8713 enable_static=yes
8715 done
8716 IFS="$lt_save_ifs"
8718 esac
8719 else
8720 enable_static=yes
8732 # Check whether --with-pic was given.
8733 if test "${with_pic+set}" = set; then :
8734 withval=$with_pic; pic_mode="$withval"
8735 else
8736 pic_mode=default
8740 test -z "$pic_mode" && pic_mode=default
8748 # Check whether --enable-fast-install was given.
8749 if test "${enable_fast_install+set}" = set; then :
8750 enableval=$enable_fast_install; p=${PACKAGE-default}
8751 case $enableval in
8752 yes) enable_fast_install=yes ;;
8753 no) enable_fast_install=no ;;
8755 enable_fast_install=no
8756 # Look at the argument we got. We use all the common list separators.
8757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8758 for pkg in $enableval; do
8759 IFS="$lt_save_ifs"
8760 if test "X$pkg" = "X$p"; then
8761 enable_fast_install=yes
8763 done
8764 IFS="$lt_save_ifs"
8766 esac
8767 else
8768 enable_fast_install=yes
8781 # This can be used to rebuild libtool when needed
8782 LIBTOOL_DEPS="$ltmain"
8784 # Always use our own libtool.
8785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8812 test -z "$LN_S" && LN_S="ln -s"
8827 if test -n "${ZSH_VERSION+set}" ; then
8828 setopt NO_GLOB_SUBST
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8832 $as_echo_n "checking for objdir... " >&6; }
8833 if test "${lt_cv_objdir+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 rm -f .libs 2>/dev/null
8837 mkdir .libs 2>/dev/null
8838 if test -d .libs; then
8839 lt_cv_objdir=.libs
8840 else
8841 # MS-DOS does not allow filenames that begin with a dot.
8842 lt_cv_objdir=_libs
8844 rmdir .libs 2>/dev/null
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8847 $as_echo "$lt_cv_objdir" >&6; }
8848 objdir=$lt_cv_objdir
8854 cat >>confdefs.h <<_ACEOF
8855 #define LT_OBJDIR "$lt_cv_objdir/"
8856 _ACEOF
8861 case $host_os in
8862 aix3*)
8863 # AIX sometimes has problems with the GCC collect2 program. For some
8864 # reason, if we set the COLLECT_NAMES environment variable, the problems
8865 # vanish in a puff of smoke.
8866 if test "X${COLLECT_NAMES+set}" != Xset; then
8867 COLLECT_NAMES=
8868 export COLLECT_NAMES
8871 esac
8873 # Global variables:
8874 ofile=libtool
8875 can_build_shared=yes
8877 # All known linkers require a `.a' archive for static linking (except MSVC,
8878 # which needs '.lib').
8879 libext=a
8881 with_gnu_ld="$lt_cv_prog_gnu_ld"
8883 old_CC="$CC"
8884 old_CFLAGS="$CFLAGS"
8886 # Set sane defaults for various variables
8887 test -z "$CC" && CC=cc
8888 test -z "$LTCC" && LTCC=$CC
8889 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8890 test -z "$LD" && LD=ld
8891 test -z "$ac_objext" && ac_objext=o
8893 for cc_temp in $compiler""; do
8894 case $cc_temp in
8895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8897 \-*) ;;
8898 *) break;;
8899 esac
8900 done
8901 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8904 # Only perform the check for file, if the check method requires it
8905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8906 case $deplibs_check_method in
8907 file_magic*)
8908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8910 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 case $MAGIC_CMD in
8915 [\\/*] | ?:[\\/]*)
8916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8919 lt_save_MAGIC_CMD="$MAGIC_CMD"
8920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8922 for ac_dir in $ac_dummy; do
8923 IFS="$lt_save_ifs"
8924 test -z "$ac_dir" && ac_dir=.
8925 if test -f $ac_dir/${ac_tool_prefix}file; then
8926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8927 if test -n "$file_magic_test_file"; then
8928 case $deplibs_check_method in
8929 "file_magic "*)
8930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8933 $EGREP "$file_magic_regex" > /dev/null; then
8935 else
8936 cat <<_LT_EOF 1>&2
8938 *** Warning: the command libtool uses to detect shared libraries,
8939 *** $file_magic_cmd, produces output that libtool cannot recognize.
8940 *** The result is that libtool may fail to recognize shared libraries
8941 *** as such. This will affect the creation of libtool libraries that
8942 *** depend on shared libraries, but programs linked with such libtool
8943 *** libraries will work regardless of this problem. Nevertheless, you
8944 *** may want to report the problem to your system manager and/or to
8945 *** bug-libtool@gnu.org
8947 _LT_EOF
8948 fi ;;
8949 esac
8951 break
8953 done
8954 IFS="$lt_save_ifs"
8955 MAGIC_CMD="$lt_save_MAGIC_CMD"
8957 esac
8960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8961 if test -n "$MAGIC_CMD"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8963 $as_echo "$MAGIC_CMD" >&6; }
8964 else
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8973 if test -z "$lt_cv_path_MAGIC_CMD"; then
8974 if test -n "$ac_tool_prefix"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8976 $as_echo_n "checking for file... " >&6; }
8977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 case $MAGIC_CMD in
8981 [\\/*] | ?:[\\/]*)
8982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8985 lt_save_MAGIC_CMD="$MAGIC_CMD"
8986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8988 for ac_dir in $ac_dummy; do
8989 IFS="$lt_save_ifs"
8990 test -z "$ac_dir" && ac_dir=.
8991 if test -f $ac_dir/file; then
8992 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8993 if test -n "$file_magic_test_file"; then
8994 case $deplibs_check_method in
8995 "file_magic "*)
8996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8999 $EGREP "$file_magic_regex" > /dev/null; then
9001 else
9002 cat <<_LT_EOF 1>&2
9004 *** Warning: the command libtool uses to detect shared libraries,
9005 *** $file_magic_cmd, produces output that libtool cannot recognize.
9006 *** The result is that libtool may fail to recognize shared libraries
9007 *** as such. This will affect the creation of libtool libraries that
9008 *** depend on shared libraries, but programs linked with such libtool
9009 *** libraries will work regardless of this problem. Nevertheless, you
9010 *** may want to report the problem to your system manager and/or to
9011 *** bug-libtool@gnu.org
9013 _LT_EOF
9014 fi ;;
9015 esac
9017 break
9019 done
9020 IFS="$lt_save_ifs"
9021 MAGIC_CMD="$lt_save_MAGIC_CMD"
9023 esac
9026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9027 if test -n "$MAGIC_CMD"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9029 $as_echo "$MAGIC_CMD" >&6; }
9030 else
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9036 else
9037 MAGIC_CMD=:
9043 esac
9045 # Use C for the default configuration in the libtool script
9047 lt_save_CC="$CC"
9048 ac_ext=c
9049 ac_cpp='$CPP $CPPFLAGS'
9050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9055 # Source file extension for C test sources.
9056 ac_ext=c
9058 # Object file extension for compiled C test sources.
9059 objext=o
9060 objext=$objext
9062 # Code to be used in simple compile tests
9063 lt_simple_compile_test_code="int some_variable = 0;"
9065 # Code to be used in simple link tests
9066 lt_simple_link_test_code='int main(){return(0);}'
9074 # If no C compiler was specified, use CC.
9075 LTCC=${LTCC-"$CC"}
9077 # If no C compiler flags were specified, use CFLAGS.
9078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9080 # Allow CC to be a program name with arguments.
9081 compiler=$CC
9083 # Save the default compiler, since it gets overwritten when the other
9084 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9085 compiler_DEFAULT=$CC
9087 # save warnings/boilerplate of simple test code
9088 ac_outfile=conftest.$ac_objext
9089 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9090 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9091 _lt_compiler_boilerplate=`cat conftest.err`
9092 $RM conftest*
9094 ac_outfile=conftest.$ac_objext
9095 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9096 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9097 _lt_linker_boilerplate=`cat conftest.err`
9098 $RM -r conftest*
9101 ## CAVEAT EMPTOR:
9102 ## There is no encapsulation within the following macros, do not change
9103 ## the running order or otherwise move them around unless you know exactly
9104 ## what you are doing...
9105 if test -n "$compiler"; then
9107 lt_prog_compiler_no_builtin_flag=
9109 if test "$GCC" = yes; then
9110 case $cc_basename in
9111 nvcc*)
9112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9115 esac
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 lt_cv_prog_compiler_rtti_exceptions=no
9123 ac_outfile=conftest.$ac_objext
9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9125 lt_compiler_flag="-fno-rtti -fno-exceptions"
9126 # Insert the option either (1) after the last *FLAGS variable, or
9127 # (2) before a word containing "conftest.", or (3) at the end.
9128 # Note that $ac_compile itself does not contain backslashes and begins
9129 # with a dollar sign (not a hyphen), so the echo should work correctly.
9130 # The option is referenced via a variable to avoid confusing sed.
9131 lt_compile=`echo "$ac_compile" | $SED \
9132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9134 -e 's:$: $lt_compiler_flag:'`
9135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9136 (eval "$lt_compile" 2>conftest.err)
9137 ac_status=$?
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 if (exit $ac_status) && test -s "$ac_outfile"; then
9141 # The compiler can only warn and ignore the option if not recognized
9142 # So say no if there are warnings other than the usual output.
9143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9146 lt_cv_prog_compiler_rtti_exceptions=yes
9149 $RM conftest*
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9157 else
9168 lt_prog_compiler_wl=
9169 lt_prog_compiler_pic=
9170 lt_prog_compiler_static=
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9173 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9175 if test "$GCC" = yes; then
9176 lt_prog_compiler_wl='-Wl,'
9177 lt_prog_compiler_static='-static'
9179 case $host_os in
9180 aix*)
9181 # All AIX code is PIC.
9182 if test "$host_cpu" = ia64; then
9183 # AIX 5 now supports IA64 processor
9184 lt_prog_compiler_static='-Bstatic'
9186 lt_prog_compiler_pic='-fPIC'
9189 amigaos*)
9190 case $host_cpu in
9191 powerpc)
9192 # see comment about AmigaOS4 .so support
9193 lt_prog_compiler_pic='-fPIC'
9195 m68k)
9196 # FIXME: we need at least 68020 code to build shared libraries, but
9197 # adding the `-m68020' flag to GCC prevents building anything better,
9198 # like `-m68040'.
9199 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9201 esac
9204 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9205 # PIC is the default for these OSes.
9208 mingw* | cygwin* | pw32* | os2* | cegcc*)
9209 # This hack is so that the source file can tell whether it is being
9210 # built for inclusion in a dll (and should export symbols for example).
9211 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9212 # (--disable-auto-import) libraries
9213 lt_prog_compiler_pic='-DDLL_EXPORT'
9216 darwin* | rhapsody*)
9217 # PIC is the default on this platform
9218 # Common symbols not allowed in MH_DYLIB files
9219 lt_prog_compiler_pic='-fno-common'
9222 haiku*)
9223 # PIC is the default for Haiku.
9224 # The "-static" flag exists, but is broken.
9225 lt_prog_compiler_static=
9228 hpux*)
9229 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9230 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9231 # sets the default TLS model and affects inlining.
9232 case $host_cpu in
9233 hppa*64*)
9234 # +Z the default
9237 lt_prog_compiler_pic='-fPIC'
9239 esac
9242 interix[3-9]*)
9243 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9244 # Instead, we relocate shared libraries at runtime.
9247 msdosdjgpp*)
9248 # Just because we use GCC doesn't mean we suddenly get shared libraries
9249 # on systems that don't support them.
9250 lt_prog_compiler_can_build_shared=no
9251 enable_shared=no
9254 *nto* | *qnx*)
9255 # QNX uses GNU C++, but need to define -shared option too, otherwise
9256 # it will coredump.
9257 lt_prog_compiler_pic='-fPIC -shared'
9260 sysv4*MP*)
9261 if test -d /usr/nec; then
9262 lt_prog_compiler_pic=-Kconform_pic
9267 lt_prog_compiler_pic='-fPIC'
9269 esac
9271 case $cc_basename in
9272 nvcc*) # Cuda Compiler Driver 2.2
9273 lt_prog_compiler_wl='-Xlinker '
9274 lt_prog_compiler_pic='-Xcompiler -fPIC'
9276 esac
9277 else
9278 # PORTME Check for flag to pass linker flags through the system compiler.
9279 case $host_os in
9280 aix*)
9281 lt_prog_compiler_wl='-Wl,'
9282 if test "$host_cpu" = ia64; then
9283 # AIX 5 now supports IA64 processor
9284 lt_prog_compiler_static='-Bstatic'
9285 else
9286 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9290 mingw* | cygwin* | pw32* | os2* | cegcc*)
9291 # This hack is so that the source file can tell whether it is being
9292 # built for inclusion in a dll (and should export symbols for example).
9293 lt_prog_compiler_pic='-DDLL_EXPORT'
9296 hpux9* | hpux10* | hpux11*)
9297 lt_prog_compiler_wl='-Wl,'
9298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9299 # not for PA HP-UX.
9300 case $host_cpu in
9301 hppa*64*|ia64*)
9302 # +Z the default
9305 lt_prog_compiler_pic='+Z'
9307 esac
9308 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9309 lt_prog_compiler_static='${wl}-a ${wl}archive'
9312 irix5* | irix6* | nonstopux*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # PIC (with -KPIC) is the default.
9315 lt_prog_compiler_static='-non_shared'
9318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9319 case $cc_basename in
9320 # old Intel for x86_64 which still supported -KPIC.
9321 ecc*)
9322 lt_prog_compiler_wl='-Wl,'
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-static'
9326 # icc used to be incompatible with GCC.
9327 # ICC 10 doesn't accept -KPIC any more.
9328 icc* | ifort*)
9329 lt_prog_compiler_wl='-Wl,'
9330 lt_prog_compiler_pic='-fPIC'
9331 lt_prog_compiler_static='-static'
9333 # Lahey Fortran 8.1.
9334 lf95*)
9335 lt_prog_compiler_wl='-Wl,'
9336 lt_prog_compiler_pic='--shared'
9337 lt_prog_compiler_static='--static'
9339 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9340 # Portland Group compilers (*not* the Pentium gcc compiler,
9341 # which looks to be a dead project)
9342 lt_prog_compiler_wl='-Wl,'
9343 lt_prog_compiler_pic='-fpic'
9344 lt_prog_compiler_static='-Bstatic'
9346 ccc*)
9347 lt_prog_compiler_wl='-Wl,'
9348 # All Alpha code is PIC.
9349 lt_prog_compiler_static='-non_shared'
9351 xl* | bgxl* | bgf* | mpixl*)
9352 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_pic='-qpic'
9355 lt_prog_compiler_static='-qstaticlink'
9358 case `$CC -V 2>&1 | sed 5q` in
9359 *Sun\ F* | *Sun*Fortran*)
9360 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9361 lt_prog_compiler_pic='-KPIC'
9362 lt_prog_compiler_static='-Bstatic'
9363 lt_prog_compiler_wl=''
9365 *Sun\ C*)
9366 # Sun C 5.9
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9369 lt_prog_compiler_wl='-Wl,'
9371 esac
9373 esac
9376 newsos6)
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9381 *nto* | *qnx*)
9382 # QNX uses GNU C++, but need to define -shared option too, otherwise
9383 # it will coredump.
9384 lt_prog_compiler_pic='-fPIC -shared'
9387 osf3* | osf4* | osf5*)
9388 lt_prog_compiler_wl='-Wl,'
9389 # All OSF/1 code is PIC.
9390 lt_prog_compiler_static='-non_shared'
9393 rdos*)
9394 lt_prog_compiler_static='-non_shared'
9397 solaris*)
9398 lt_prog_compiler_pic='-KPIC'
9399 lt_prog_compiler_static='-Bstatic'
9400 case $cc_basename in
9401 f77* | f90* | f95*)
9402 lt_prog_compiler_wl='-Qoption ld ';;
9404 lt_prog_compiler_wl='-Wl,';;
9405 esac
9408 sunos4*)
9409 lt_prog_compiler_wl='-Qoption ld '
9410 lt_prog_compiler_pic='-PIC'
9411 lt_prog_compiler_static='-Bstatic'
9414 sysv4 | sysv4.2uw2* | sysv4.3*)
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-KPIC'
9417 lt_prog_compiler_static='-Bstatic'
9420 sysv4*MP*)
9421 if test -d /usr/nec ;then
9422 lt_prog_compiler_pic='-Kconform_pic'
9423 lt_prog_compiler_static='-Bstatic'
9427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9428 lt_prog_compiler_wl='-Wl,'
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9433 unicos*)
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_can_build_shared=no
9438 uts4*)
9439 lt_prog_compiler_pic='-pic'
9440 lt_prog_compiler_static='-Bstatic'
9444 lt_prog_compiler_can_build_shared=no
9446 esac
9449 case $host_os in
9450 # For platforms which do not support PIC, -DPIC is meaningless:
9451 *djgpp*)
9452 lt_prog_compiler_pic=
9455 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9457 esac
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9459 $as_echo "$lt_prog_compiler_pic" >&6; }
9467 # Check to make sure the PIC flag actually works.
9469 if test -n "$lt_prog_compiler_pic"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9472 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 lt_cv_prog_compiler_pic_works=no
9476 ac_outfile=conftest.$ac_objext
9477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9479 # Insert the option either (1) after the last *FLAGS variable, or
9480 # (2) before a word containing "conftest.", or (3) at the end.
9481 # Note that $ac_compile itself does not contain backslashes and begins
9482 # with a dollar sign (not a hyphen), so the echo should work correctly.
9483 # The option is referenced via a variable to avoid confusing sed.
9484 lt_compile=`echo "$ac_compile" | $SED \
9485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9487 -e 's:$: $lt_compiler_flag:'`
9488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9489 (eval "$lt_compile" 2>conftest.err)
9490 ac_status=$?
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 if (exit $ac_status) && test -s "$ac_outfile"; then
9494 # The compiler can only warn and ignore the option if not recognized
9495 # So say no if there are warnings other than the usual output.
9496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9499 lt_cv_prog_compiler_pic_works=yes
9502 $RM conftest*
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9509 case $lt_prog_compiler_pic in
9510 "" | " "*) ;;
9511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9512 esac
9513 else
9514 lt_prog_compiler_pic=
9515 lt_prog_compiler_can_build_shared=no
9526 # Check to make sure the static flag actually works.
9528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9531 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 lt_cv_prog_compiler_static_works=no
9535 save_LDFLAGS="$LDFLAGS"
9536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9539 # The linker can only warn and ignore the option if not recognized
9540 # So say no if there are warnings
9541 if test -s conftest.err; then
9542 # Append any errors to the config.log.
9543 cat conftest.err 1>&5
9544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9546 if diff conftest.exp conftest.er2 >/dev/null; then
9547 lt_cv_prog_compiler_static_works=yes
9549 else
9550 lt_cv_prog_compiler_static_works=yes
9553 $RM -r conftest*
9554 LDFLAGS="$save_LDFLAGS"
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9558 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9560 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9562 else
9563 lt_prog_compiler_static=
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9574 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 lt_cv_prog_compiler_c_o=no
9578 $RM -r conftest 2>/dev/null
9579 mkdir conftest
9580 cd conftest
9581 mkdir out
9582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584 lt_compiler_flag="-o out/conftest2.$ac_objext"
9585 # Insert the option either (1) after the last *FLAGS variable, or
9586 # (2) before a word containing "conftest.", or (3) at the end.
9587 # Note that $ac_compile itself does not contain backslashes and begins
9588 # with a dollar sign (not a hyphen), so the echo should work correctly.
9589 lt_compile=`echo "$ac_compile" | $SED \
9590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9592 -e 's:$: $lt_compiler_flag:'`
9593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9594 (eval "$lt_compile" 2>out/conftest.err)
9595 ac_status=$?
9596 cat out/conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9599 then
9600 # The compiler can only warn and ignore the option if not recognized
9601 # So say no if there are warnings
9602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9605 lt_cv_prog_compiler_c_o=yes
9608 chmod u+w . 2>&5
9609 $RM conftest*
9610 # SGI C++ compiler will create directory out/ii_files/ for
9611 # template instantiation
9612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9613 $RM out/* && rmdir out
9614 cd ..
9615 $RM -r conftest
9616 $RM conftest*
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 lt_cv_prog_compiler_c_o=no
9633 $RM -r conftest 2>/dev/null
9634 mkdir conftest
9635 cd conftest
9636 mkdir out
9637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9639 lt_compiler_flag="-o out/conftest2.$ac_objext"
9640 # Insert the option either (1) after the last *FLAGS variable, or
9641 # (2) before a word containing "conftest.", or (3) at the end.
9642 # Note that $ac_compile itself does not contain backslashes and begins
9643 # with a dollar sign (not a hyphen), so the echo should work correctly.
9644 lt_compile=`echo "$ac_compile" | $SED \
9645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9647 -e 's:$: $lt_compiler_flag:'`
9648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9649 (eval "$lt_compile" 2>out/conftest.err)
9650 ac_status=$?
9651 cat out/conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9654 then
9655 # The compiler can only warn and ignore the option if not recognized
9656 # So say no if there are warnings
9657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9660 lt_cv_prog_compiler_c_o=yes
9663 chmod u+w . 2>&5
9664 $RM conftest*
9665 # SGI C++ compiler will create directory out/ii_files/ for
9666 # template instantiation
9667 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9668 $RM out/* && rmdir out
9669 cd ..
9670 $RM -r conftest
9671 $RM conftest*
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9675 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9680 hard_links="nottested"
9681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9682 # do not overwrite the value of need_locks provided by the user
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9684 $as_echo_n "checking if we can lock with hard links... " >&6; }
9685 hard_links=yes
9686 $RM conftest*
9687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9688 touch conftest.a
9689 ln conftest.a conftest.b 2>&5 || hard_links=no
9690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9692 $as_echo "$hard_links" >&6; }
9693 if test "$hard_links" = no; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9695 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9696 need_locks=warn
9698 else
9699 need_locks=no
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9708 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9710 runpath_var=
9711 allow_undefined_flag=
9712 always_export_symbols=no
9713 archive_cmds=
9714 archive_expsym_cmds=
9715 compiler_needs_object=no
9716 enable_shared_with_static_runtimes=no
9717 export_dynamic_flag_spec=
9718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9719 hardcode_automatic=no
9720 hardcode_direct=no
9721 hardcode_direct_absolute=no
9722 hardcode_libdir_flag_spec=
9723 hardcode_libdir_flag_spec_ld=
9724 hardcode_libdir_separator=
9725 hardcode_minus_L=no
9726 hardcode_shlibpath_var=unsupported
9727 inherit_rpath=no
9728 link_all_deplibs=unknown
9729 module_cmds=
9730 module_expsym_cmds=
9731 old_archive_from_new_cmds=
9732 old_archive_from_expsyms_cmds=
9733 thread_safe_flag_spec=
9734 whole_archive_flag_spec=
9735 # include_expsyms should be a list of space-separated symbols to be *always*
9736 # included in the symbol list
9737 include_expsyms=
9738 # exclude_expsyms can be an extended regexp of symbols to exclude
9739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9741 # as well as any symbol that contains `d'.
9742 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9744 # platforms (ab)use it in PIC code, but their linkers get confused if
9745 # the symbol is explicitly referenced. Since portable code cannot
9746 # rely on this symbol name, it's probably fine to never include it in
9747 # preloaded symbol tables.
9748 # Exclude shared library initialization/finalization symbols.
9749 extract_expsyms_cmds=
9751 case $host_os in
9752 cygwin* | mingw* | pw32* | cegcc*)
9753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9754 # When not using gcc, we currently assume that we are using
9755 # Microsoft Visual C++.
9756 if test "$GCC" != yes; then
9757 with_gnu_ld=no
9760 interix*)
9761 # we just hope/assume this is gcc and not c89 (= MSVC++)
9762 with_gnu_ld=yes
9764 openbsd*)
9765 with_gnu_ld=no
9767 esac
9769 ld_shlibs=yes
9771 # On some targets, GNU ld is compatible enough with the native linker
9772 # that we're better off using the native interface for both.
9773 lt_use_gnu_ld_interface=no
9774 if test "$with_gnu_ld" = yes; then
9775 case $host_os in
9776 aix*)
9777 # The AIX port of GNU ld has always aspired to compatibility
9778 # with the native linker. However, as the warning in the GNU ld
9779 # block says, versions before 2.19.5* couldn't really create working
9780 # shared libraries, regardless of the interface used.
9781 case `$LD -v 2>&1` in
9782 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9783 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9784 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9786 lt_use_gnu_ld_interface=yes
9788 esac
9791 lt_use_gnu_ld_interface=yes
9793 esac
9796 if test "$lt_use_gnu_ld_interface" = yes; then
9797 # If archive_cmds runs LD, not CC, wlarc should be empty
9798 wlarc='${wl}'
9800 # Set some defaults for GNU ld with shared library support. These
9801 # are reset later if shared libraries are not supported. Putting them
9802 # here allows them to be overridden if necessary.
9803 runpath_var=LD_RUN_PATH
9804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9805 export_dynamic_flag_spec='${wl}--export-dynamic'
9806 # ancient GNU ld didn't support --whole-archive et. al.
9807 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9808 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9809 else
9810 whole_archive_flag_spec=
9812 supports_anon_versioning=no
9813 case `$LD -v 2>&1` in
9814 *GNU\ gold*) supports_anon_versioning=yes ;;
9815 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9818 *\ 2.11.*) ;; # other 2.11 versions
9819 *) supports_anon_versioning=yes ;;
9820 esac
9822 # See if GNU ld supports shared libraries.
9823 case $host_os in
9824 aix[3-9]*)
9825 # On AIX/PPC, the GNU linker is very broken
9826 if test "$host_cpu" != ia64; then
9827 ld_shlibs=no
9828 cat <<_LT_EOF 1>&2
9830 *** Warning: the GNU linker, at least up to release 2.19, is reported
9831 *** to be unable to reliably create shared libraries on AIX.
9832 *** Therefore, libtool is disabling shared libraries support. If you
9833 *** really care for shared libraries, you may want to install binutils
9834 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9835 *** You will then need to restart the configuration process.
9837 _LT_EOF
9841 amigaos*)
9842 case $host_cpu in
9843 powerpc)
9844 # see comment about AmigaOS4 .so support
9845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9846 archive_expsym_cmds=''
9848 m68k)
9849 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)'
9850 hardcode_libdir_flag_spec='-L$libdir'
9851 hardcode_minus_L=yes
9853 esac
9856 beos*)
9857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9858 allow_undefined_flag=unsupported
9859 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9860 # support --undefined. This deserves some investigation. FIXME
9861 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9862 else
9863 ld_shlibs=no
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9869 # as there is no search path for DLLs.
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 export_dynamic_flag_spec='${wl}--export-all-symbols'
9872 allow_undefined_flag=unsupported
9873 always_export_symbols=no
9874 enable_shared_with_static_runtimes=yes
9875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9877 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9879 # If the export-symbols file already is a .def file (1st line
9880 # is EXPORTS), use it as is; otherwise, prepend...
9881 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9882 cp $export_symbols $output_objdir/$soname.def;
9883 else
9884 echo EXPORTS > $output_objdir/$soname.def;
9885 cat $export_symbols >> $output_objdir/$soname.def;
9887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9888 else
9889 ld_shlibs=no
9893 haiku*)
9894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895 link_all_deplibs=yes
9898 interix[3-9]*)
9899 hardcode_direct=no
9900 hardcode_shlibpath_var=no
9901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9902 export_dynamic_flag_spec='${wl}-E'
9903 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9904 # Instead, shared libraries are loaded at an image base (0x10000000 by
9905 # default) and relocated if they conflict, which is a slow very memory
9906 # consuming and fragmenting process. To avoid this, we pick a random,
9907 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9908 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9909 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9910 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'
9913 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9914 tmp_diet=no
9915 if test "$host_os" = linux-dietlibc; then
9916 case $cc_basename in
9917 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9918 esac
9920 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9921 && test "$tmp_diet" = no
9922 then
9923 tmp_addflag=' $pic_flag'
9924 tmp_sharedflag='-shared'
9925 case $cc_basename,$host_cpu in
9926 pgcc*) # Portland Group C compiler
9927 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'
9928 tmp_addflag=' $pic_flag'
9930 pgf77* | pgf90* | pgf95* | pgfortran*)
9931 # Portland Group f77 and f90 compilers
9932 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'
9933 tmp_addflag=' $pic_flag -Mnomain' ;;
9934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9935 tmp_addflag=' -i_dynamic' ;;
9936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9937 tmp_addflag=' -i_dynamic -nofor_main' ;;
9938 ifc* | ifort*) # Intel Fortran compiler
9939 tmp_addflag=' -nofor_main' ;;
9940 lf95*) # Lahey Fortran 8.1
9941 whole_archive_flag_spec=
9942 tmp_sharedflag='--shared' ;;
9943 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9944 tmp_sharedflag='-qmkshrobj'
9945 tmp_addflag= ;;
9946 nvcc*) # Cuda Compiler Driver 2.2
9947 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'
9948 compiler_needs_object=yes
9950 esac
9951 case `$CC -V 2>&1 | sed 5q` in
9952 *Sun\ C*) # Sun C 5.9
9953 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'
9954 compiler_needs_object=yes
9955 tmp_sharedflag='-G' ;;
9956 *Sun\ F*) # Sun Fortran 8.3
9957 tmp_sharedflag='-G' ;;
9958 esac
9959 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9961 if test "x$supports_anon_versioning" = xyes; then
9962 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9964 echo "local: *; };" >> $output_objdir/$libname.ver~
9965 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9968 case $cc_basename in
9969 xlf* | bgf* | bgxlf* | mpixlf*)
9970 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9971 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9972 hardcode_libdir_flag_spec=
9973 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9974 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9975 if test "x$supports_anon_versioning" = xyes; then
9976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9978 echo "local: *; };" >> $output_objdir/$libname.ver~
9979 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9982 esac
9983 else
9984 ld_shlibs=no
9988 netbsd*)
9989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9990 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9991 wlarc=
9992 else
9993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9998 solaris*)
9999 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10000 ld_shlibs=no
10001 cat <<_LT_EOF 1>&2
10003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10004 *** create shared libraries on Solaris systems. Therefore, libtool
10005 *** is disabling shared libraries support. We urge you to upgrade GNU
10006 *** binutils to release 2.9.1 or newer. Another option is to modify
10007 *** your PATH or compiler configuration so that the native linker is
10008 *** used, and then restart.
10010 _LT_EOF
10011 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10014 else
10015 ld_shlibs=no
10019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10020 case `$LD -v 2>&1` in
10021 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10022 ld_shlibs=no
10023 cat <<_LT_EOF 1>&2
10025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10026 *** reliably create shared libraries on SCO systems. Therefore, libtool
10027 *** is disabling shared libraries support. We urge you to upgrade GNU
10028 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10029 *** your PATH or compiler configuration so that the native linker is
10030 *** used, and then restart.
10032 _LT_EOF
10035 # For security reasons, it is highly recommended that you always
10036 # use absolute paths for naming shared libraries, and exclude the
10037 # DT_RUNPATH tag from executables and libraries. But doing so
10038 # requires that you compile everything twice, which is a pain.
10039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10043 else
10044 ld_shlibs=no
10047 esac
10050 sunos4*)
10051 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10052 wlarc=
10053 hardcode_direct=yes
10054 hardcode_shlibpath_var=no
10058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10061 else
10062 ld_shlibs=no
10065 esac
10067 if test "$ld_shlibs" = no; then
10068 runpath_var=
10069 hardcode_libdir_flag_spec=
10070 export_dynamic_flag_spec=
10071 whole_archive_flag_spec=
10073 else
10074 # PORTME fill in a description of your system's linker (not GNU ld)
10075 case $host_os in
10076 aix3*)
10077 allow_undefined_flag=unsupported
10078 always_export_symbols=yes
10079 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'
10080 # Note: this linker hardcodes the directories in LIBPATH if there
10081 # are no directories specified by -L.
10082 hardcode_minus_L=yes
10083 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10084 # Neither direct hardcoding nor static linking is supported with a
10085 # broken collect2.
10086 hardcode_direct=unsupported
10090 aix[4-9]*)
10091 if test "$host_cpu" = ia64; then
10092 # On IA64, the linker does run time linking by default, so we don't
10093 # have to do anything special.
10094 aix_use_runtimelinking=no
10095 exp_sym_flag='-Bexport'
10096 no_entry_flag=""
10097 else
10098 # If we're using GNU nm, then we don't want the "-C" option.
10099 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10100 # Also, AIX nm treats weak defined symbols like other global
10101 # defined symbols, whereas GNU nm marks them as "W".
10102 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10103 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'
10104 else
10105 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'
10107 aix_use_runtimelinking=no
10109 # Test if we are trying to use run time linking or normal
10110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10111 # need to do runtime linking.
10112 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10113 for ld_flag in $LDFLAGS; do
10114 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10115 aix_use_runtimelinking=yes
10116 break
10118 done
10120 esac
10122 exp_sym_flag='-bexport'
10123 no_entry_flag='-bnoentry'
10126 # When large executables or shared objects are built, AIX ld can
10127 # have problems creating the table of contents. If linking a library
10128 # or program results in "error TOC overflow" add -mminimal-toc to
10129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10132 archive_cmds=''
10133 hardcode_direct=yes
10134 hardcode_direct_absolute=yes
10135 hardcode_libdir_separator=':'
10136 link_all_deplibs=yes
10137 file_list_spec='${wl}-f,'
10139 if test "$GCC" = yes; then
10140 case $host_os in aix4.[012]|aix4.[012].*)
10141 # We only want to do this on AIX 4.2 and lower, the check
10142 # below for broken collect2 doesn't work under 4.3+
10143 collect2name=`${CC} -print-prog-name=collect2`
10144 if test -f "$collect2name" &&
10145 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10146 then
10147 # We have reworked collect2
10149 else
10150 # We have old collect2
10151 hardcode_direct=unsupported
10152 # It fails to find uninstalled libraries when the uninstalled
10153 # path is not listed in the libpath. Setting hardcode_minus_L
10154 # to unsupported forces relinking
10155 hardcode_minus_L=yes
10156 hardcode_libdir_flag_spec='-L$libdir'
10157 hardcode_libdir_separator=
10160 esac
10161 shared_flag='-shared'
10162 if test "$aix_use_runtimelinking" = yes; then
10163 shared_flag="$shared_flag "'${wl}-G'
10165 else
10166 # not using gcc
10167 if test "$host_cpu" = ia64; then
10168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10169 # chokes on -Wl,-G. The following line is correct:
10170 shared_flag='-G'
10171 else
10172 if test "$aix_use_runtimelinking" = yes; then
10173 shared_flag='${wl}-G'
10174 else
10175 shared_flag='${wl}-bM:SRE'
10180 export_dynamic_flag_spec='${wl}-bexpall'
10181 # It seems that -bexpall does not export symbols beginning with
10182 # underscore (_), so it is better to generate a list of symbols to export.
10183 always_export_symbols=yes
10184 if test "$aix_use_runtimelinking" = yes; then
10185 # Warning - without using the other runtime loading flags (-brtl),
10186 # -berok will link without error, but may produce a broken library.
10187 allow_undefined_flag='-berok'
10188 # Determine the default libpath from the value encoded in an
10189 # empty executable.
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10194 main ()
10198 return 0;
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"; then :
10203 lt_aix_libpath_sed='
10204 /Import File Strings/,/^$/ {
10205 /^0/ {
10206 s/^0 *\(.*\)$/\1/
10210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10211 # Check for a 64-bit object if we didn't find anything.
10212 if test -z "$aix_libpath"; then
10213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10221 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"
10222 else
10223 if test "$host_cpu" = ia64; then
10224 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10225 allow_undefined_flag="-z nodefs"
10226 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"
10227 else
10228 # Determine the default libpath from the value encoded in an
10229 # empty executable.
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10234 main ()
10238 return 0;
10240 _ACEOF
10241 if ac_fn_c_try_link "$LINENO"; then :
10243 lt_aix_libpath_sed='
10244 /Import File Strings/,/^$/ {
10245 /^0/ {
10246 s/^0 *\(.*\)$/\1/
10250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10251 # Check for a 64-bit object if we didn't find anything.
10252 if test -z "$aix_libpath"; then
10253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10261 # Warning - without using the other run time loading flags,
10262 # -berok will link without error, but may produce a broken library.
10263 no_undefined_flag=' ${wl}-bernotok'
10264 allow_undefined_flag=' ${wl}-berok'
10265 if test "$with_gnu_ld" = yes; then
10266 # We only use this code for GNU lds that support --whole-archive.
10267 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10268 else
10269 # Exported symbols can be pulled into shared objects from archives
10270 whole_archive_flag_spec='$convenience'
10272 archive_cmds_need_lc=yes
10273 # This is similar to how AIX traditionally builds its shared libraries.
10274 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'
10279 amigaos*)
10280 case $host_cpu in
10281 powerpc)
10282 # see comment about AmigaOS4 .so support
10283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10284 archive_expsym_cmds=''
10286 m68k)
10287 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)'
10288 hardcode_libdir_flag_spec='-L$libdir'
10289 hardcode_minus_L=yes
10291 esac
10294 bsdi[45]*)
10295 export_dynamic_flag_spec=-rdynamic
10298 cygwin* | mingw* | pw32* | cegcc*)
10299 # When not using gcc, we currently assume that we are using
10300 # Microsoft Visual C++.
10301 # hardcode_libdir_flag_spec is actually meaningless, as there is
10302 # no search path for DLLs.
10303 hardcode_libdir_flag_spec=' '
10304 allow_undefined_flag=unsupported
10305 # Tell ltmain to make .lib files, not .a files.
10306 libext=lib
10307 # Tell ltmain to make .dll files, not .so files.
10308 shrext_cmds=".dll"
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10311 # The linker will automatically build a .lib file if we build a DLL.
10312 old_archive_from_new_cmds='true'
10313 # FIXME: Should let the user specify the lib program.
10314 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10315 fix_srcfile_path='`cygpath -w "$srcfile"`'
10316 enable_shared_with_static_runtimes=yes
10319 darwin* | rhapsody*)
10322 archive_cmds_need_lc=no
10323 hardcode_direct=no
10324 hardcode_automatic=yes
10325 hardcode_shlibpath_var=unsupported
10326 if test "$lt_cv_ld_force_load" = "yes"; then
10327 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\"`'
10328 else
10329 whole_archive_flag_spec=''
10331 link_all_deplibs=yes
10332 allow_undefined_flag="$_lt_dar_allow_undefined"
10333 case $cc_basename in
10334 ifort*) _lt_dar_can_shared=yes ;;
10335 *) _lt_dar_can_shared=$GCC ;;
10336 esac
10337 if test "$_lt_dar_can_shared" = "yes"; then
10338 output_verbose_link_cmd=func_echo_all
10339 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10340 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10341 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}"
10342 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}"
10344 else
10345 ld_shlibs=no
10350 dgux*)
10351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352 hardcode_libdir_flag_spec='-L$libdir'
10353 hardcode_shlibpath_var=no
10356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10357 # support. Future versions do this automatically, but an explicit c++rt0.o
10358 # does not break anything, and helps significantly (at the cost of a little
10359 # extra space).
10360 freebsd2.2*)
10361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10362 hardcode_libdir_flag_spec='-R$libdir'
10363 hardcode_direct=yes
10364 hardcode_shlibpath_var=no
10367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10368 freebsd2.*)
10369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_direct=yes
10371 hardcode_minus_L=yes
10372 hardcode_shlibpath_var=no
10375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10376 freebsd* | dragonfly*)
10377 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10378 hardcode_libdir_flag_spec='-R$libdir'
10379 hardcode_direct=yes
10380 hardcode_shlibpath_var=no
10383 hpux9*)
10384 if test "$GCC" = yes; then
10385 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'
10386 else
10387 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'
10389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10390 hardcode_libdir_separator=:
10391 hardcode_direct=yes
10393 # hardcode_minus_L: Not really in the search PATH,
10394 # but as the default location of the library.
10395 hardcode_minus_L=yes
10396 export_dynamic_flag_spec='${wl}-E'
10399 hpux10*)
10400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10402 else
10403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10405 if test "$with_gnu_ld" = no; then
10406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10407 hardcode_libdir_flag_spec_ld='+b $libdir'
10408 hardcode_libdir_separator=:
10409 hardcode_direct=yes
10410 hardcode_direct_absolute=yes
10411 export_dynamic_flag_spec='${wl}-E'
10412 # hardcode_minus_L: Not really in the search PATH,
10413 # but as the default location of the library.
10414 hardcode_minus_L=yes
10418 hpux11*)
10419 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10420 case $host_cpu in
10421 hppa*64*)
10422 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 ia64*)
10425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430 esac
10431 else
10432 case $host_cpu in
10433 hppa*64*)
10434 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 ia64*)
10437 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10441 # Older versions of the 11.00 compiler do not understand -b yet
10442 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10444 $as_echo_n "checking if $CC understands -b... " >&6; }
10445 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 lt_cv_prog_compiler__b=no
10449 save_LDFLAGS="$LDFLAGS"
10450 LDFLAGS="$LDFLAGS -b"
10451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10453 # The linker can only warn and ignore the option if not recognized
10454 # So say no if there are warnings
10455 if test -s conftest.err; then
10456 # Append any errors to the config.log.
10457 cat conftest.err 1>&5
10458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10460 if diff conftest.exp conftest.er2 >/dev/null; then
10461 lt_cv_prog_compiler__b=yes
10463 else
10464 lt_cv_prog_compiler__b=yes
10467 $RM -r conftest*
10468 LDFLAGS="$save_LDFLAGS"
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10472 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10474 if test x"$lt_cv_prog_compiler__b" = xyes; then
10475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10476 else
10477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10481 esac
10483 if test "$with_gnu_ld" = no; then
10484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10485 hardcode_libdir_separator=:
10487 case $host_cpu in
10488 hppa*64*|ia64*)
10489 hardcode_direct=no
10490 hardcode_shlibpath_var=no
10493 hardcode_direct=yes
10494 hardcode_direct_absolute=yes
10495 export_dynamic_flag_spec='${wl}-E'
10497 # hardcode_minus_L: Not really in the search PATH,
10498 # but as the default location of the library.
10499 hardcode_minus_L=yes
10501 esac
10505 irix5* | irix6* | nonstopux*)
10506 if test "$GCC" = yes; then
10507 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'
10508 # Try to use the -exported_symbol ld option, if it does not
10509 # work, assume that -exports_file does not work either and
10510 # implicitly export all symbols.
10511 save_LDFLAGS="$LDFLAGS"
10512 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515 int foo(void) {}
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 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'
10521 rm -f core conftest.err conftest.$ac_objext \
10522 conftest$ac_exeext conftest.$ac_ext
10523 LDFLAGS="$save_LDFLAGS"
10524 else
10525 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'
10526 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'
10528 archive_cmds_need_lc='no'
10529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530 hardcode_libdir_separator=:
10531 inherit_rpath=yes
10532 link_all_deplibs=yes
10535 netbsd*)
10536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10538 else
10539 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10541 hardcode_libdir_flag_spec='-R$libdir'
10542 hardcode_direct=yes
10543 hardcode_shlibpath_var=no
10546 newsos6)
10547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10548 hardcode_direct=yes
10549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10550 hardcode_libdir_separator=:
10551 hardcode_shlibpath_var=no
10554 *nto* | *qnx*)
10557 openbsd*)
10558 if test -f /usr/libexec/ld.so; then
10559 hardcode_direct=yes
10560 hardcode_shlibpath_var=no
10561 hardcode_direct_absolute=yes
10562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10564 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10566 export_dynamic_flag_spec='${wl}-E'
10567 else
10568 case $host_os in
10569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_libdir_flag_spec='-R$libdir'
10574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10577 esac
10579 else
10580 ld_shlibs=no
10584 os2*)
10585 hardcode_libdir_flag_spec='-L$libdir'
10586 hardcode_minus_L=yes
10587 allow_undefined_flag=unsupported
10588 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'
10589 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10592 osf3*)
10593 if test "$GCC" = yes; then
10594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10595 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'
10596 else
10597 allow_undefined_flag=' -expect_unresolved \*'
10598 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'
10600 archive_cmds_need_lc='no'
10601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10602 hardcode_libdir_separator=:
10605 osf4* | osf5*) # as osf3* with the addition of -msym flag
10606 if test "$GCC" = yes; then
10607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10608 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'
10609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610 else
10611 allow_undefined_flag=' -expect_unresolved \*'
10612 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'
10613 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~
10614 $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'
10616 # Both c and cxx compiler support -rpath directly
10617 hardcode_libdir_flag_spec='-rpath $libdir'
10619 archive_cmds_need_lc='no'
10620 hardcode_libdir_separator=:
10623 solaris*)
10624 no_undefined_flag=' -z defs'
10625 if test "$GCC" = yes; then
10626 wlarc='${wl}'
10627 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10629 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10630 else
10631 case `$CC -V 2>&1` in
10632 *"Compilers 5.0"*)
10633 wlarc=''
10634 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10636 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10639 wlarc='${wl}'
10640 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10642 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10644 esac
10646 hardcode_libdir_flag_spec='-R$libdir'
10647 hardcode_shlibpath_var=no
10648 case $host_os in
10649 solaris2.[0-5] | solaris2.[0-5].*) ;;
10651 # The compiler driver will combine and reorder linker options,
10652 # but understands `-z linker_flag'. GCC discards it without `$wl',
10653 # but is careful enough not to reorder.
10654 # Supported since Solaris 2.6 (maybe 2.5.1?)
10655 if test "$GCC" = yes; then
10656 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10657 else
10658 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10661 esac
10662 link_all_deplibs=yes
10665 sunos4*)
10666 if test "x$host_vendor" = xsequent; then
10667 # Use $CC to link under sequent, because it throws in some extra .o
10668 # files that make .init and .fini sections work.
10669 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10670 else
10671 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10673 hardcode_libdir_flag_spec='-L$libdir'
10674 hardcode_direct=yes
10675 hardcode_minus_L=yes
10676 hardcode_shlibpath_var=no
10679 sysv4)
10680 case $host_vendor in
10681 sni)
10682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683 hardcode_direct=yes # is this really true???
10685 siemens)
10686 ## LD is ld it makes a PLAMLIB
10687 ## CC just makes a GrossModule.
10688 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10689 reload_cmds='$CC -r -o $output$reload_objs'
10690 hardcode_direct=no
10692 motorola)
10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10696 esac
10697 runpath_var='LD_RUN_PATH'
10698 hardcode_shlibpath_var=no
10701 sysv4.3*)
10702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703 hardcode_shlibpath_var=no
10704 export_dynamic_flag_spec='-Bexport'
10707 sysv4*MP*)
10708 if test -d /usr/nec; then
10709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710 hardcode_shlibpath_var=no
10711 runpath_var=LD_RUN_PATH
10712 hardcode_runpath_var=yes
10713 ld_shlibs=yes
10717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10718 no_undefined_flag='${wl}-z,text'
10719 archive_cmds_need_lc=no
10720 hardcode_shlibpath_var=no
10721 runpath_var='LD_RUN_PATH'
10723 if test "$GCC" = yes; then
10724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10726 else
10727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 sysv5* | sco3.2v5* | sco5v6*)
10733 # Note: We can NOT use -z defs as we might desire, because we do not
10734 # link with -lc, and that would cause any symbols used from libc to
10735 # always be unresolved, which means just about no library would
10736 # ever link correctly. If we're not using GNU ld we use -z text
10737 # though, which does catch some bad symbols but isn't as heavy-handed
10738 # as -z defs.
10739 no_undefined_flag='${wl}-z,text'
10740 allow_undefined_flag='${wl}-z,nodefs'
10741 archive_cmds_need_lc=no
10742 hardcode_shlibpath_var=no
10743 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10744 hardcode_libdir_separator=':'
10745 link_all_deplibs=yes
10746 export_dynamic_flag_spec='${wl}-Bexport'
10747 runpath_var='LD_RUN_PATH'
10749 if test "$GCC" = yes; then
10750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 else
10753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 uts4*)
10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_libdir_flag_spec='-L$libdir'
10761 hardcode_shlibpath_var=no
10765 ld_shlibs=no
10767 esac
10769 if test x$host_vendor = xsni; then
10770 case $host in
10771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10772 export_dynamic_flag_spec='${wl}-Blargedynsym'
10774 esac
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10779 $as_echo "$ld_shlibs" >&6; }
10780 test "$ld_shlibs" = no && can_build_shared=no
10782 with_gnu_ld=$with_gnu_ld
10799 # Do we need to explicitly link libc?
10801 case "x$archive_cmds_need_lc" in
10802 x|xyes)
10803 # Assume -lc should be added
10804 archive_cmds_need_lc=yes
10806 if test "$enable_shared" = yes && test "$GCC" = yes; then
10807 case $archive_cmds in
10808 *'~'*)
10809 # FIXME: we may have to deal with multi-command sequences.
10811 '$CC '*)
10812 # Test whether the compiler implicitly links with -lc since on some
10813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10814 # to ld, don't add -lc before -lgcc.
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10816 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10817 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 $RM conftest*
10821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10824 (eval $ac_compile) 2>&5
10825 ac_status=$?
10826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10827 test $ac_status = 0; } 2>conftest.err; then
10828 soname=conftest
10829 lib=conftest
10830 libobjs=conftest.$ac_objext
10831 deplibs=
10832 wl=$lt_prog_compiler_wl
10833 pic_flag=$lt_prog_compiler_pic
10834 compiler_flags=-v
10835 linker_flags=-v
10836 verstring=
10837 output_objdir=.
10838 libname=conftest
10839 lt_save_allow_undefined_flag=$allow_undefined_flag
10840 allow_undefined_flag=
10841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10842 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10843 ac_status=$?
10844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10845 test $ac_status = 0; }
10846 then
10847 lt_cv_archive_cmds_need_lc=no
10848 else
10849 lt_cv_archive_cmds_need_lc=yes
10851 allow_undefined_flag=$lt_save_allow_undefined_flag
10852 else
10853 cat conftest.err 1>&5
10855 $RM conftest*
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10859 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10860 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10862 esac
10865 esac
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11024 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11026 if test "$GCC" = yes; then
11027 case $host_os in
11028 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11029 *) lt_awk_arg="/^libraries:/" ;;
11030 esac
11031 case $host_os in
11032 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11033 *) lt_sed_strip_eq="s,=/,/,g" ;;
11034 esac
11035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11036 case $lt_search_path_spec in
11037 *\;*)
11038 # if the path contains ";" then we assume it to be the separator
11039 # otherwise default to the standard path separator (i.e. ":") - it is
11040 # assumed that no part of a normal pathname contains ";" but that should
11041 # okay in the real world where ";" in dirpaths is itself problematic.
11042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11047 esac
11048 # Ok, now we have the path, separated by spaces, we can step through it
11049 # and add multilib dir if necessary.
11050 lt_tmp_lt_search_path_spec=
11051 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11052 for lt_sys_path in $lt_search_path_spec; do
11053 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11055 else
11056 test -d "$lt_sys_path" && \
11057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11059 done
11060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11061 BEGIN {RS=" "; FS="/|\n";} {
11062 lt_foo="";
11063 lt_count=0;
11064 for (lt_i = NF; lt_i > 0; lt_i--) {
11065 if ($lt_i != "" && $lt_i != ".") {
11066 if ($lt_i == "..") {
11067 lt_count++;
11068 } else {
11069 if (lt_count == 0) {
11070 lt_foo="/" $lt_i lt_foo;
11071 } else {
11072 lt_count--;
11077 if (lt_foo != "") { lt_freq[lt_foo]++; }
11078 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11080 # AWK program above erroneously prepends '/' to C:/dos/paths
11081 # for these hosts.
11082 case $host_os in
11083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11084 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11085 esac
11086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11087 else
11088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11090 library_names_spec=
11091 libname_spec='lib$name'
11092 soname_spec=
11093 shrext_cmds=".so"
11094 postinstall_cmds=
11095 postuninstall_cmds=
11096 finish_cmds=
11097 finish_eval=
11098 shlibpath_var=
11099 shlibpath_overrides_runpath=unknown
11100 version_type=none
11101 dynamic_linker="$host_os ld.so"
11102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11103 need_lib_prefix=unknown
11104 hardcode_into_libs=no
11106 # when you set need_version to no, make sure it does not cause -set_version
11107 # flags to be left without arguments
11108 need_version=unknown
11110 case $host_os in
11111 aix3*)
11112 version_type=linux
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11114 shlibpath_var=LIBPATH
11116 # AIX 3 has no versioning support, so we append a major version to the name.
11117 soname_spec='${libname}${release}${shared_ext}$major'
11120 aix[4-9]*)
11121 version_type=linux
11122 need_lib_prefix=no
11123 need_version=no
11124 hardcode_into_libs=yes
11125 if test "$host_cpu" = ia64; then
11126 # AIX 5 supports IA64
11127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 else
11130 # With GCC up to 2.95.x, collect2 would create an import file
11131 # for dependence libraries. The import file would start with
11132 # the line `#! .'. This would cause the generated library to
11133 # depend on `.', always an invalid library. This was fixed in
11134 # development snapshots of GCC prior to 3.0.
11135 case $host_os in
11136 aix4 | aix4.[01] | aix4.[01].*)
11137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11138 echo ' yes '
11139 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11141 else
11142 can_build_shared=no
11145 esac
11146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11147 # soname into executable. Probably we can add versioning support to
11148 # collect2, so additional links can be useful in future.
11149 if test "$aix_use_runtimelinking" = yes; then
11150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11151 # instead of lib<name>.a to let people know that these are not
11152 # typical AIX shared libraries.
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 else
11155 # We preserve .a as extension for shared libraries through AIX4.2
11156 # and later when we are not doing run time linking.
11157 library_names_spec='${libname}${release}.a $libname.a'
11158 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LIBPATH
11164 amigaos*)
11165 case $host_cpu in
11166 powerpc)
11167 # Since July 2007 AmigaOS4 officially supports .so libraries.
11168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 m68k)
11172 library_names_spec='$libname.ixlibrary $libname.a'
11173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11174 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'
11176 esac
11179 beos*)
11180 library_names_spec='${libname}${shared_ext}'
11181 dynamic_linker="$host_os ld.so"
11182 shlibpath_var=LIBRARY_PATH
11185 bsdi[45]*)
11186 version_type=linux
11187 need_version=no
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11194 # the default ld.so.conf also contains /usr/contrib/lib and
11195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11196 # libtool to hard-code these into programs
11199 cygwin* | mingw* | pw32* | cegcc*)
11200 version_type=windows
11201 shrext_cmds=".dll"
11202 need_version=no
11203 need_lib_prefix=no
11205 case $GCC,$host_os in
11206 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11207 library_names_spec='$libname.dll.a'
11208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11209 postinstall_cmds='base_file=`basename \${file}`~
11210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11211 dldir=$destdir/`dirname \$dlpath`~
11212 test -d \$dldir || mkdir -p \$dldir~
11213 $install_prog $dir/$dlname \$dldir/$dlname~
11214 chmod a+x \$dldir/$dlname~
11215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11219 dlpath=$dir/\$dldll~
11220 $RM \$dlpath'
11221 shlibpath_overrides_runpath=yes
11223 case $host_os in
11224 cygwin*)
11225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11230 mingw* | cegcc*)
11231 # MinGW DLLs use traditional 'lib' prefix
11232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234 pw32*)
11235 # pw32 DLLs use 'pw' prefix rather than 'lib'
11236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11238 esac
11242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11244 esac
11245 dynamic_linker='Win32 ld.exe'
11246 # FIXME: first we should search . and the directory the executable is in
11247 shlibpath_var=PATH
11250 darwin* | rhapsody*)
11251 dynamic_linker="$host_os dyld"
11252 version_type=darwin
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11256 soname_spec='${libname}${release}${major}$shared_ext'
11257 shlibpath_overrides_runpath=yes
11258 shlibpath_var=DYLD_LIBRARY_PATH
11259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11265 dgux*)
11266 version_type=linux
11267 need_lib_prefix=no
11268 need_version=no
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11274 freebsd* | dragonfly*)
11275 # DragonFly does not have aout. When/if they implement a new
11276 # versioning mechanism, adjust this.
11277 if test -x /usr/bin/objformat; then
11278 objformat=`/usr/bin/objformat`
11279 else
11280 case $host_os in
11281 freebsd[23].*) objformat=aout ;;
11282 *) objformat=elf ;;
11283 esac
11285 version_type=freebsd-$objformat
11286 case $version_type in
11287 freebsd-elf*)
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11289 need_version=no
11290 need_lib_prefix=no
11292 freebsd-*)
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11294 need_version=yes
11296 esac
11297 shlibpath_var=LD_LIBRARY_PATH
11298 case $host_os in
11299 freebsd2.*)
11300 shlibpath_overrides_runpath=yes
11302 freebsd3.[01]* | freebsdelf3.[01]*)
11303 shlibpath_overrides_runpath=yes
11304 hardcode_into_libs=yes
11306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11308 shlibpath_overrides_runpath=no
11309 hardcode_into_libs=yes
11311 *) # from 4.6 on, and DragonFly
11312 shlibpath_overrides_runpath=yes
11313 hardcode_into_libs=yes
11315 esac
11318 gnu*)
11319 version_type=linux
11320 need_lib_prefix=no
11321 need_version=no
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 hardcode_into_libs=yes
11328 haiku*)
11329 version_type=linux
11330 need_lib_prefix=no
11331 need_version=no
11332 dynamic_linker="$host_os runtime_loader"
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LIBRARY_PATH
11336 shlibpath_overrides_runpath=yes
11337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11338 hardcode_into_libs=yes
11341 hpux9* | hpux10* | hpux11*)
11342 # Give a soname corresponding to the major version so that dld.sl refuses to
11343 # link against other versions.
11344 version_type=sunos
11345 need_lib_prefix=no
11346 need_version=no
11347 case $host_cpu in
11348 ia64*)
11349 shrext_cmds='.so'
11350 hardcode_into_libs=yes
11351 dynamic_linker="$host_os dld.so"
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 if test "X$HPUX_IA64_MODE" = X32; then
11357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358 else
11359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363 hppa*64*)
11364 shrext_cmds='.sl'
11365 hardcode_into_libs=yes
11366 dynamic_linker="$host_os dld.sl"
11367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375 shrext_cmds='.sl'
11376 dynamic_linker="$host_os dld.sl"
11377 shlibpath_var=SHLIB_PATH
11378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11382 esac
11383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11384 postinstall_cmds='chmod 555 $lib'
11385 # or fails outright, so override atomically:
11386 install_override_mode=555
11389 interix[3-9]*)
11390 version_type=linux
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 shlibpath_overrides_runpath=no
11398 hardcode_into_libs=yes
11401 irix5* | irix6* | nonstopux*)
11402 case $host_os in
11403 nonstopux*) version_type=nonstopux ;;
11405 if test "$lt_cv_prog_gnu_ld" = yes; then
11406 version_type=linux
11407 else
11408 version_type=irix
11409 fi ;;
11410 esac
11411 need_lib_prefix=no
11412 need_version=no
11413 soname_spec='${libname}${release}${shared_ext}$major'
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11415 case $host_os in
11416 irix5* | nonstopux*)
11417 libsuff= shlibsuff=
11420 case $LD in # libtool.m4 will add one of these switches to LD
11421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11422 libsuff= shlibsuff= libmagic=32-bit;;
11423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11424 libsuff=32 shlibsuff=N32 libmagic=N32;;
11425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11427 *) libsuff= shlibsuff= libmagic=never-match;;
11428 esac
11430 esac
11431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11432 shlibpath_overrides_runpath=no
11433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11435 hardcode_into_libs=yes
11438 # No shared lib support for Linux oldld, aout, or coff.
11439 linux*oldld* | linux*aout* | linux*coff*)
11440 dynamic_linker=no
11443 # This must be Linux ELF.
11444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11445 version_type=linux
11446 need_lib_prefix=no
11447 need_version=no
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 shlibpath_overrides_runpath=no
11454 # Some binutils ld are patched to set DT_RUNPATH
11455 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 lt_cv_shlibpath_overrides_runpath=no
11459 save_LDFLAGS=$LDFLAGS
11460 save_libdir=$libdir
11461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11467 main ()
11471 return 0;
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11476 lt_cv_shlibpath_overrides_runpath=yes
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LDFLAGS=$save_LDFLAGS
11482 libdir=$save_libdir
11486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11488 # This implies no fast_install, which is unacceptable.
11489 # Some rework will be needed to allow for fast_install
11490 # before this can be enabled.
11491 hardcode_into_libs=yes
11493 # Append ld.so.conf contents to the search path
11494 if test -f /etc/ld.so.conf; then
11495 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' ' '`
11496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11499 # We used to test for /lib/ld.so.1 and disable shared libraries on
11500 # powerpc, because MkLinux only supported shared libraries with the
11501 # GNU dynamic linker. Since this was broken with cross compilers,
11502 # most powerpc-linux boxes support dynamic linking these days and
11503 # people can always --disable-shared, the test was removed, and we
11504 # assume the GNU/Linux dynamic linker is in use.
11505 dynamic_linker='GNU/Linux ld.so'
11508 netbsd*)
11509 version_type=sunos
11510 need_lib_prefix=no
11511 need_version=no
11512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11515 dynamic_linker='NetBSD (a.out) ld.so'
11516 else
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 dynamic_linker='NetBSD ld.elf_so'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11523 hardcode_into_libs=yes
11526 newsos6)
11527 version_type=linux
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11533 *nto* | *qnx*)
11534 version_type=qnx
11535 need_lib_prefix=no
11536 need_version=no
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 shlibpath_overrides_runpath=no
11541 hardcode_into_libs=yes
11542 dynamic_linker='ldqnx.so'
11545 openbsd*)
11546 version_type=sunos
11547 sys_lib_dlsearch_path_spec="/usr/lib"
11548 need_lib_prefix=no
11549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11550 case $host_os in
11551 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11552 *) need_version=no ;;
11553 esac
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11558 case $host_os in
11559 openbsd2.[89] | openbsd2.[89].*)
11560 shlibpath_overrides_runpath=no
11563 shlibpath_overrides_runpath=yes
11565 esac
11566 else
11567 shlibpath_overrides_runpath=yes
11571 os2*)
11572 libname_spec='$name'
11573 shrext_cmds=".dll"
11574 need_lib_prefix=no
11575 library_names_spec='$libname${shared_ext} $libname.a'
11576 dynamic_linker='OS/2 ld.exe'
11577 shlibpath_var=LIBPATH
11580 osf3* | osf4* | osf5*)
11581 version_type=osf
11582 need_lib_prefix=no
11583 need_version=no
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11591 rdos*)
11592 dynamic_linker=no
11595 solaris*)
11596 version_type=linux
11597 need_lib_prefix=no
11598 need_version=no
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 shlibpath_overrides_runpath=yes
11603 hardcode_into_libs=yes
11604 # ldd complains unless libraries are executable
11605 postinstall_cmds='chmod +x $lib'
11608 sunos4*)
11609 version_type=sunos
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 shlibpath_overrides_runpath=yes
11614 if test "$with_gnu_ld" = yes; then
11615 need_lib_prefix=no
11617 need_version=yes
11620 sysv4 | sysv4.3*)
11621 version_type=linux
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 case $host_vendor in
11626 sni)
11627 shlibpath_overrides_runpath=no
11628 need_lib_prefix=no
11629 runpath_var=LD_RUN_PATH
11631 siemens)
11632 need_lib_prefix=no
11634 motorola)
11635 need_lib_prefix=no
11636 need_version=no
11637 shlibpath_overrides_runpath=no
11638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11640 esac
11643 sysv4*MP*)
11644 if test -d /usr/nec ;then
11645 version_type=linux
11646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11647 soname_spec='$libname${shared_ext}.$major'
11648 shlibpath_var=LD_LIBRARY_PATH
11652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11653 version_type=freebsd-elf
11654 need_lib_prefix=no
11655 need_version=no
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11657 soname_spec='${libname}${release}${shared_ext}$major'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=yes
11660 hardcode_into_libs=yes
11661 if test "$with_gnu_ld" = yes; then
11662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11663 else
11664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11665 case $host_os in
11666 sco3.2v5*)
11667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11669 esac
11671 sys_lib_dlsearch_path_spec='/usr/lib'
11674 tpf*)
11675 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11676 version_type=linux
11677 need_lib_prefix=no
11678 need_version=no
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=no
11682 hardcode_into_libs=yes
11685 uts4*)
11686 version_type=linux
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11693 dynamic_linker=no
11695 esac
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11697 $as_echo "$dynamic_linker" >&6; }
11698 test "$dynamic_linker" = no && can_build_shared=no
11700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11701 if test "$GCC" = yes; then
11702 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11706 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11709 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11804 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11805 hardcode_action=
11806 if test -n "$hardcode_libdir_flag_spec" ||
11807 test -n "$runpath_var" ||
11808 test "X$hardcode_automatic" = "Xyes" ; then
11810 # We can hardcode non-existent directories.
11811 if test "$hardcode_direct" != no &&
11812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11813 # have to relink, otherwise we might link with an installed library
11814 # when we should be linking with a yet-to-be-installed one
11815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11816 test "$hardcode_minus_L" != no; then
11817 # Linking always hardcodes the temporary library directory.
11818 hardcode_action=relink
11819 else
11820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11821 hardcode_action=immediate
11823 else
11824 # We cannot hardcode anything, or else we can only hardcode existing
11825 # directories.
11826 hardcode_action=unsupported
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11829 $as_echo "$hardcode_action" >&6; }
11831 if test "$hardcode_action" = relink ||
11832 test "$inherit_rpath" = yes; then
11833 # Fast installation is not supported
11834 enable_fast_install=no
11835 elif test "$shlibpath_overrides_runpath" = yes ||
11836 test "$enable_shared" = no; then
11837 # Fast installation is not necessary
11838 enable_fast_install=needless
11846 if test "x$enable_dlopen" != xyes; then
11847 enable_dlopen=unknown
11848 enable_dlopen_self=unknown
11849 enable_dlopen_self_static=unknown
11850 else
11851 lt_cv_dlopen=no
11852 lt_cv_dlopen_libs=
11854 case $host_os in
11855 beos*)
11856 lt_cv_dlopen="load_add_on"
11857 lt_cv_dlopen_libs=
11858 lt_cv_dlopen_self=yes
11861 mingw* | pw32* | cegcc*)
11862 lt_cv_dlopen="LoadLibrary"
11863 lt_cv_dlopen_libs=
11866 cygwin*)
11867 lt_cv_dlopen="dlopen"
11868 lt_cv_dlopen_libs=
11871 darwin*)
11872 # if libdl is installed we need to link against it
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-ldl $LIBS"
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char dlopen ();
11891 main ()
11893 return dlopen ();
11895 return 0;
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 ac_cv_lib_dl_dlopen=yes
11900 else
11901 ac_cv_lib_dl_dlopen=no
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 LIBS=$ac_check_lib_save_LIBS
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11909 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11911 else
11913 lt_cv_dlopen="dyld"
11914 lt_cv_dlopen_libs=
11915 lt_cv_dlopen_self=yes
11922 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11923 if test "x$ac_cv_func_shl_load" = x""yes; then :
11924 lt_cv_dlopen="shl_load"
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-ldld $LIBS"
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char shl_load ();
11944 main ()
11946 return shl_load ();
11948 return 0;
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11952 ac_cv_lib_dld_shl_load=yes
11953 else
11954 ac_cv_lib_dld_shl_load=no
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11962 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11964 else
11965 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11966 if test "x$ac_cv_func_dlopen" = x""yes; then :
11967 lt_cv_dlopen="dlopen"
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 ac_check_lib_save_LIBS=$LIBS
11975 LIBS="-ldl $LIBS"
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 /* Override any GCC internal prototype to avoid an error.
11980 Use char because int might match the return type of a GCC
11981 builtin and then its argument prototype would still apply. */
11982 #ifdef __cplusplus
11983 extern "C"
11984 #endif
11985 char dlopen ();
11987 main ()
11989 return dlopen ();
11991 return 0;
11993 _ACEOF
11994 if ac_fn_c_try_link "$LINENO"; then :
11995 ac_cv_lib_dl_dlopen=yes
11996 else
11997 ac_cv_lib_dl_dlopen=no
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-lsvld $LIBS"
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 char dlopen ();
12026 main ()
12028 return dlopen ();
12030 return 0;
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"; then :
12034 ac_cv_lib_svld_dlopen=yes
12035 else
12036 ac_cv_lib_svld_dlopen=no
12038 rm -f core conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12044 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-ldld $LIBS"
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12057 /* Override any GCC internal prototype to avoid an error.
12058 Use char because int might match the return type of a GCC
12059 builtin and then its argument prototype would still apply. */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 char dld_link ();
12065 main ()
12067 return dld_link ();
12069 return 0;
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 ac_cv_lib_dld_dld_link=yes
12074 else
12075 ac_cv_lib_dld_dld_link=no
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079 LIBS=$ac_check_lib_save_LIBS
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12083 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12103 esac
12105 if test "x$lt_cv_dlopen" != xno; then
12106 enable_dlopen=yes
12107 else
12108 enable_dlopen=no
12111 case $lt_cv_dlopen in
12112 dlopen)
12113 save_CPPFLAGS="$CPPFLAGS"
12114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12116 save_LDFLAGS="$LDFLAGS"
12117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12119 save_LIBS="$LIBS"
12120 LIBS="$lt_cv_dlopen_libs $LIBS"
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12124 if test "${lt_cv_dlopen_self+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 if test "$cross_compiling" = yes; then :
12128 lt_cv_dlopen_self=cross
12129 else
12130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12131 lt_status=$lt_dlunknown
12132 cat > conftest.$ac_ext <<_LT_EOF
12133 #line 12133 "configure"
12134 #include "confdefs.h"
12136 #if HAVE_DLFCN_H
12137 #include <dlfcn.h>
12138 #endif
12140 #include <stdio.h>
12142 #ifdef RTLD_GLOBAL
12143 # define LT_DLGLOBAL RTLD_GLOBAL
12144 #else
12145 # ifdef DL_GLOBAL
12146 # define LT_DLGLOBAL DL_GLOBAL
12147 # else
12148 # define LT_DLGLOBAL 0
12149 # endif
12150 #endif
12152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12153 find out it does not work in some platform. */
12154 #ifndef LT_DLLAZY_OR_NOW
12155 # ifdef RTLD_LAZY
12156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12157 # else
12158 # ifdef DL_LAZY
12159 # define LT_DLLAZY_OR_NOW DL_LAZY
12160 # else
12161 # ifdef RTLD_NOW
12162 # define LT_DLLAZY_OR_NOW RTLD_NOW
12163 # else
12164 # ifdef DL_NOW
12165 # define LT_DLLAZY_OR_NOW DL_NOW
12166 # else
12167 # define LT_DLLAZY_OR_NOW 0
12168 # endif
12169 # endif
12170 # endif
12171 # endif
12172 #endif
12174 /* When -fvisbility=hidden is used, assume the code has been annotated
12175 correspondingly for the symbols needed. */
12176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12177 void fnord () __attribute__((visibility("default")));
12178 #endif
12180 void fnord () { int i=42; }
12181 int main ()
12183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12184 int status = $lt_dlunknown;
12186 if (self)
12188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12189 else
12191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12192 else puts (dlerror ());
12194 /* dlclose (self); */
12196 else
12197 puts (dlerror ());
12199 return status;
12201 _LT_EOF
12202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12203 (eval $ac_link) 2>&5
12204 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12207 (./conftest; exit; ) >&5 2>/dev/null
12208 lt_status=$?
12209 case x$lt_status in
12210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12213 esac
12214 else :
12215 # compilation failed
12216 lt_cv_dlopen_self=no
12219 rm -fr conftest*
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12224 $as_echo "$lt_cv_dlopen_self" >&6; }
12226 if test "x$lt_cv_dlopen_self" = xyes; then
12227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12230 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 if test "$cross_compiling" = yes; then :
12234 lt_cv_dlopen_self_static=cross
12235 else
12236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12237 lt_status=$lt_dlunknown
12238 cat > conftest.$ac_ext <<_LT_EOF
12239 #line 12239 "configure"
12240 #include "confdefs.h"
12242 #if HAVE_DLFCN_H
12243 #include <dlfcn.h>
12244 #endif
12246 #include <stdio.h>
12248 #ifdef RTLD_GLOBAL
12249 # define LT_DLGLOBAL RTLD_GLOBAL
12250 #else
12251 # ifdef DL_GLOBAL
12252 # define LT_DLGLOBAL DL_GLOBAL
12253 # else
12254 # define LT_DLGLOBAL 0
12255 # endif
12256 #endif
12258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12259 find out it does not work in some platform. */
12260 #ifndef LT_DLLAZY_OR_NOW
12261 # ifdef RTLD_LAZY
12262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12263 # else
12264 # ifdef DL_LAZY
12265 # define LT_DLLAZY_OR_NOW DL_LAZY
12266 # else
12267 # ifdef RTLD_NOW
12268 # define LT_DLLAZY_OR_NOW RTLD_NOW
12269 # else
12270 # ifdef DL_NOW
12271 # define LT_DLLAZY_OR_NOW DL_NOW
12272 # else
12273 # define LT_DLLAZY_OR_NOW 0
12274 # endif
12275 # endif
12276 # endif
12277 # endif
12278 #endif
12280 /* When -fvisbility=hidden is used, assume the code has been annotated
12281 correspondingly for the symbols needed. */
12282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12283 void fnord () __attribute__((visibility("default")));
12284 #endif
12286 void fnord () { int i=42; }
12287 int main ()
12289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12290 int status = $lt_dlunknown;
12292 if (self)
12294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12295 else
12297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12298 else puts (dlerror ());
12300 /* dlclose (self); */
12302 else
12303 puts (dlerror ());
12305 return status;
12307 _LT_EOF
12308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12309 (eval $ac_link) 2>&5
12310 ac_status=$?
12311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12313 (./conftest; exit; ) >&5 2>/dev/null
12314 lt_status=$?
12315 case x$lt_status in
12316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12319 esac
12320 else :
12321 # compilation failed
12322 lt_cv_dlopen_self_static=no
12325 rm -fr conftest*
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12333 CPPFLAGS="$save_CPPFLAGS"
12334 LDFLAGS="$save_LDFLAGS"
12335 LIBS="$save_LIBS"
12337 esac
12339 case $lt_cv_dlopen_self in
12340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12341 *) enable_dlopen_self=unknown ;;
12342 esac
12344 case $lt_cv_dlopen_self_static in
12345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12346 *) enable_dlopen_self_static=unknown ;;
12347 esac
12366 striplib=
12367 old_striplib=
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374 $as_echo "yes" >&6; }
12375 else
12376 # FIXME - insert some real tests, host_os isn't really good enough
12377 case $host_os in
12378 darwin*)
12379 if test -n "$STRIP" ; then
12380 striplib="$STRIP -x"
12381 old_striplib="$STRIP -S"
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12383 $as_echo "yes" >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12393 esac
12407 # Report which library types will actually be built
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12411 $as_echo "$can_build_shared" >&6; }
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12414 $as_echo_n "checking whether to build shared libraries... " >&6; }
12415 test "$can_build_shared" = "no" && enable_shared=no
12417 # On AIX, shared libraries and static libraries use the same namespace, and
12418 # are all built from PIC.
12419 case $host_os in
12420 aix3*)
12421 test "$enable_shared" = yes && enable_static=no
12422 if test -n "$RANLIB"; then
12423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12424 postinstall_cmds='$RANLIB $lib'
12428 aix[4-9]*)
12429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12430 test "$enable_shared" = yes && enable_static=no
12433 esac
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12435 $as_echo "$enable_shared" >&6; }
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12438 $as_echo_n "checking whether to build static libraries... " >&6; }
12439 # Make sure either enable_shared or enable_static is yes.
12440 test "$enable_shared" = yes || enable_static=yes
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12442 $as_echo "$enable_static" >&6; }
12448 ac_ext=c
12449 ac_cpp='$CPP $CPPFLAGS'
12450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12454 CC="$lt_save_CC"
12456 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12457 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12458 (test "X$CXX" != "Xg++"))) ; then
12459 ac_ext=cpp
12460 ac_cpp='$CXXCPP $CPPFLAGS'
12461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12465 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12466 if test -z "$CXXCPP"; then
12467 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 # Double quotes because CXXCPP needs to be expanded
12471 for CXXCPP in "$CXX -E" "/lib/cpp"
12473 ac_preproc_ok=false
12474 for ac_cxx_preproc_warn_flag in '' yes
12476 # Use a header file that comes with gcc, so configuring glibc
12477 # with a fresh cross-compiler works.
12478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479 # <limits.h> exists even on freestanding compilers.
12480 # On the NeXT, cc -E runs the code through the compiler's parser,
12481 # not just through cpp. "Syntax error" is here to catch this case.
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 #ifdef __STDC__
12485 # include <limits.h>
12486 #else
12487 # include <assert.h>
12488 #endif
12489 Syntax error
12490 _ACEOF
12491 if ac_fn_cxx_try_cpp "$LINENO"; then :
12493 else
12494 # Broken: fails on valid input.
12495 continue
12497 rm -f conftest.err conftest.$ac_ext
12499 # OK, works on sane cases. Now check whether nonexistent headers
12500 # can be detected and how.
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503 #include <ac_nonexistent.h>
12504 _ACEOF
12505 if ac_fn_cxx_try_cpp "$LINENO"; then :
12506 # Broken: success on invalid input.
12507 continue
12508 else
12509 # Passes both tests.
12510 ac_preproc_ok=:
12511 break
12513 rm -f conftest.err conftest.$ac_ext
12515 done
12516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12517 rm -f conftest.err conftest.$ac_ext
12518 if $ac_preproc_ok; then :
12519 break
12522 done
12523 ac_cv_prog_CXXCPP=$CXXCPP
12526 CXXCPP=$ac_cv_prog_CXXCPP
12527 else
12528 ac_cv_prog_CXXCPP=$CXXCPP
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12531 $as_echo "$CXXCPP" >&6; }
12532 ac_preproc_ok=false
12533 for ac_cxx_preproc_warn_flag in '' yes
12535 # Use a header file that comes with gcc, so configuring glibc
12536 # with a fresh cross-compiler works.
12537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12538 # <limits.h> exists even on freestanding compilers.
12539 # On the NeXT, cc -E runs the code through the compiler's parser,
12540 # not just through cpp. "Syntax error" is here to catch this case.
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543 #ifdef __STDC__
12544 # include <limits.h>
12545 #else
12546 # include <assert.h>
12547 #endif
12548 Syntax error
12549 _ACEOF
12550 if ac_fn_cxx_try_cpp "$LINENO"; then :
12552 else
12553 # Broken: fails on valid input.
12554 continue
12556 rm -f conftest.err conftest.$ac_ext
12558 # OK, works on sane cases. Now check whether nonexistent headers
12559 # can be detected and how.
12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h. */
12562 #include <ac_nonexistent.h>
12563 _ACEOF
12564 if ac_fn_cxx_try_cpp "$LINENO"; then :
12565 # Broken: success on invalid input.
12566 continue
12567 else
12568 # Passes both tests.
12569 ac_preproc_ok=:
12570 break
12572 rm -f conftest.err conftest.$ac_ext
12574 done
12575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12576 rm -f conftest.err conftest.$ac_ext
12577 if $ac_preproc_ok; then :
12579 else
12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12582 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12583 See \`config.log' for more details." "$LINENO" 5; }
12586 ac_ext=c
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592 else
12593 _lt_caught_CXX_error=yes
12596 ac_ext=cpp
12597 ac_cpp='$CXXCPP $CPPFLAGS'
12598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12602 archive_cmds_need_lc_CXX=no
12603 allow_undefined_flag_CXX=
12604 always_export_symbols_CXX=no
12605 archive_expsym_cmds_CXX=
12606 compiler_needs_object_CXX=no
12607 export_dynamic_flag_spec_CXX=
12608 hardcode_direct_CXX=no
12609 hardcode_direct_absolute_CXX=no
12610 hardcode_libdir_flag_spec_CXX=
12611 hardcode_libdir_flag_spec_ld_CXX=
12612 hardcode_libdir_separator_CXX=
12613 hardcode_minus_L_CXX=no
12614 hardcode_shlibpath_var_CXX=unsupported
12615 hardcode_automatic_CXX=no
12616 inherit_rpath_CXX=no
12617 module_cmds_CXX=
12618 module_expsym_cmds_CXX=
12619 link_all_deplibs_CXX=unknown
12620 old_archive_cmds_CXX=$old_archive_cmds
12621 reload_flag_CXX=$reload_flag
12622 reload_cmds_CXX=$reload_cmds
12623 no_undefined_flag_CXX=
12624 whole_archive_flag_spec_CXX=
12625 enable_shared_with_static_runtimes_CXX=no
12627 # Source file extension for C++ test sources.
12628 ac_ext=cpp
12630 # Object file extension for compiled C++ test sources.
12631 objext=o
12632 objext_CXX=$objext
12634 # No sense in running all these tests if we already determined that
12635 # the CXX compiler isn't working. Some variables (like enable_shared)
12636 # are currently assumed to apply to all compilers on this platform,
12637 # and will be corrupted by setting them based on a non-working compiler.
12638 if test "$_lt_caught_CXX_error" != yes; then
12639 # Code to be used in simple compile tests
12640 lt_simple_compile_test_code="int some_variable = 0;"
12642 # Code to be used in simple link tests
12643 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12652 # If no C compiler was specified, use CC.
12653 LTCC=${LTCC-"$CC"}
12655 # If no C compiler flags were specified, use CFLAGS.
12656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12658 # Allow CC to be a program name with arguments.
12659 compiler=$CC
12662 # save warnings/boilerplate of simple test code
12663 ac_outfile=conftest.$ac_objext
12664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12666 _lt_compiler_boilerplate=`cat conftest.err`
12667 $RM conftest*
12669 ac_outfile=conftest.$ac_objext
12670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12672 _lt_linker_boilerplate=`cat conftest.err`
12673 $RM -r conftest*
12676 # Allow CC to be a program name with arguments.
12677 lt_save_CC=$CC
12678 lt_save_LD=$LD
12679 lt_save_GCC=$GCC
12680 GCC=$GXX
12681 lt_save_with_gnu_ld=$with_gnu_ld
12682 lt_save_path_LD=$lt_cv_path_LD
12683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12684 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12685 else
12686 $as_unset lt_cv_prog_gnu_ld
12688 if test -n "${lt_cv_path_LDCXX+set}"; then
12689 lt_cv_path_LD=$lt_cv_path_LDCXX
12690 else
12691 $as_unset lt_cv_path_LD
12693 test -z "${LDCXX+set}" || LD=$LDCXX
12694 CC=${CXX-"c++"}
12695 compiler=$CC
12696 compiler_CXX=$CC
12697 for cc_temp in $compiler""; do
12698 case $cc_temp in
12699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12701 \-*) ;;
12702 *) break;;
12703 esac
12704 done
12705 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12708 if test -n "$compiler"; then
12709 # We don't want -fno-exception when compiling C++ code, so set the
12710 # no_builtin_flag separately
12711 if test "$GXX" = yes; then
12712 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12713 else
12714 lt_prog_compiler_no_builtin_flag_CXX=
12717 if test "$GXX" = yes; then
12718 # Set up default GNU C++ configuration
12722 # Check whether --with-gnu-ld was given.
12723 if test "${with_gnu_ld+set}" = set; then :
12724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12725 else
12726 with_gnu_ld=no
12729 ac_prog=ld
12730 if test "$GCC" = yes; then
12731 # Check if gcc -print-prog-name=ld gives a path.
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12733 $as_echo_n "checking for ld used by $CC... " >&6; }
12734 case $host in
12735 *-*-mingw*)
12736 # gcc leaves a trailing carriage return which upsets mingw
12737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12740 esac
12741 case $ac_prog in
12742 # Accept absolute paths.
12743 [\\/]* | ?:[\\/]*)
12744 re_direlt='/[^/][^/]*/\.\./'
12745 # Canonicalize the pathname of ld
12746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12749 done
12750 test -z "$LD" && LD="$ac_prog"
12753 # If it fails, then pretend we aren't using GCC.
12754 ac_prog=ld
12757 # If it is relative, then search for the first ld in PATH.
12758 with_gnu_ld=unknown
12760 esac
12761 elif test "$with_gnu_ld" = yes; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12763 $as_echo_n "checking for GNU ld... " >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12766 $as_echo_n "checking for non-GNU ld... " >&6; }
12768 if test "${lt_cv_path_LD+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -z "$LD"; then
12772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12773 for ac_dir in $PATH; do
12774 IFS="$lt_save_ifs"
12775 test -z "$ac_dir" && ac_dir=.
12776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12777 lt_cv_path_LD="$ac_dir/$ac_prog"
12778 # Check to see if the program is GNU ld. I'd rather use --version,
12779 # but apparently some variants of GNU ld only accept -v.
12780 # Break only if it was the GNU/non-GNU ld that we prefer.
12781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12782 *GNU* | *'with BFD'*)
12783 test "$with_gnu_ld" != no && break
12786 test "$with_gnu_ld" != yes && break
12788 esac
12790 done
12791 IFS="$lt_save_ifs"
12792 else
12793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12797 LD="$lt_cv_path_LD"
12798 if test -n "$LD"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12800 $as_echo "$LD" >&6; }
12801 else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12812 case `$LD -v 2>&1 </dev/null` in
12813 *GNU* | *'with BFD'*)
12814 lt_cv_prog_gnu_ld=yes
12817 lt_cv_prog_gnu_ld=no
12819 esac
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12823 with_gnu_ld=$lt_cv_prog_gnu_ld
12831 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12832 # archiving commands below assume that GNU ld is being used.
12833 if test "$with_gnu_ld" = yes; then
12834 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12840 # If archive_cmds runs LD, not CC, wlarc should be empty
12841 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12842 # investigate it a little bit more. (MM)
12843 wlarc='${wl}'
12845 # ancient GNU ld didn't support --whole-archive et. al.
12846 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12847 $GREP 'no-whole-archive' > /dev/null; then
12848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12849 else
12850 whole_archive_flag_spec_CXX=
12852 else
12853 with_gnu_ld=no
12854 wlarc=
12856 # A generic and very simple default shared library creation
12857 # command for GNU C++ for the case where it uses the native
12858 # linker, instead of GNU ld. If possible, this setting should
12859 # overridden to take advantage of the native linker features on
12860 # the platform it is being used on.
12861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12864 # Commands to make compiler produce verbose output that lists
12865 # what "hidden" libraries, object files and flags are used when
12866 # linking a shared library.
12867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12869 else
12870 GXX=no
12871 with_gnu_ld=no
12872 wlarc=
12875 # PORTME: fill in a description of your system's C++ link characteristics
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12878 ld_shlibs_CXX=yes
12879 case $host_os in
12880 aix3*)
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12884 aix[4-9]*)
12885 if test "$host_cpu" = ia64; then
12886 # On IA64, the linker does run time linking by default, so we don't
12887 # have to do anything special.
12888 aix_use_runtimelinking=no
12889 exp_sym_flag='-Bexport'
12890 no_entry_flag=""
12891 else
12892 aix_use_runtimelinking=no
12894 # Test if we are trying to use run time linking or normal
12895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12896 # need to do runtime linking.
12897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12898 for ld_flag in $LDFLAGS; do
12899 case $ld_flag in
12900 *-brtl*)
12901 aix_use_runtimelinking=yes
12902 break
12904 esac
12905 done
12907 esac
12909 exp_sym_flag='-bexport'
12910 no_entry_flag='-bnoentry'
12913 # When large executables or shared objects are built, AIX ld can
12914 # have problems creating the table of contents. If linking a library
12915 # or program results in "error TOC overflow" add -mminimal-toc to
12916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12919 archive_cmds_CXX=''
12920 hardcode_direct_CXX=yes
12921 hardcode_direct_absolute_CXX=yes
12922 hardcode_libdir_separator_CXX=':'
12923 link_all_deplibs_CXX=yes
12924 file_list_spec_CXX='${wl}-f,'
12926 if test "$GXX" = yes; then
12927 case $host_os in aix4.[012]|aix4.[012].*)
12928 # We only want to do this on AIX 4.2 and lower, the check
12929 # below for broken collect2 doesn't work under 4.3+
12930 collect2name=`${CC} -print-prog-name=collect2`
12931 if test -f "$collect2name" &&
12932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12933 then
12934 # We have reworked collect2
12936 else
12937 # We have old collect2
12938 hardcode_direct_CXX=unsupported
12939 # It fails to find uninstalled libraries when the uninstalled
12940 # path is not listed in the libpath. Setting hardcode_minus_L
12941 # to unsupported forces relinking
12942 hardcode_minus_L_CXX=yes
12943 hardcode_libdir_flag_spec_CXX='-L$libdir'
12944 hardcode_libdir_separator_CXX=
12946 esac
12947 shared_flag='-shared'
12948 if test "$aix_use_runtimelinking" = yes; then
12949 shared_flag="$shared_flag "'${wl}-G'
12951 else
12952 # not using gcc
12953 if test "$host_cpu" = ia64; then
12954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12955 # chokes on -Wl,-G. The following line is correct:
12956 shared_flag='-G'
12957 else
12958 if test "$aix_use_runtimelinking" = yes; then
12959 shared_flag='${wl}-G'
12960 else
12961 shared_flag='${wl}-bM:SRE'
12966 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12967 # It seems that -bexpall does not export symbols beginning with
12968 # underscore (_), so it is better to generate a list of symbols to
12969 # export.
12970 always_export_symbols_CXX=yes
12971 if test "$aix_use_runtimelinking" = yes; then
12972 # Warning - without using the other runtime loading flags (-brtl),
12973 # -berok will link without error, but may produce a broken library.
12974 allow_undefined_flag_CXX='-berok'
12975 # Determine the default libpath from the value encoded in an empty
12976 # executable.
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12981 main ()
12985 return 0;
12987 _ACEOF
12988 if ac_fn_cxx_try_link "$LINENO"; then :
12990 lt_aix_libpath_sed='
12991 /Import File Strings/,/^$/ {
12992 /^0/ {
12993 s/^0 *\(.*\)$/\1/
12997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12998 # Check for a 64-bit object if we didn't find anything.
12999 if test -z "$aix_libpath"; then
13000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13003 rm -f core conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13007 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13009 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"
13010 else
13011 if test "$host_cpu" = ia64; then
13012 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13013 allow_undefined_flag_CXX="-z nodefs"
13014 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"
13015 else
13016 # Determine the default libpath from the value encoded in an
13017 # empty executable.
13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13022 main ()
13026 return 0;
13028 _ACEOF
13029 if ac_fn_cxx_try_link "$LINENO"; then :
13031 lt_aix_libpath_sed='
13032 /Import File Strings/,/^$/ {
13033 /^0/ {
13034 s/^0 *\(.*\)$/\1/
13038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13039 # Check for a 64-bit object if we didn't find anything.
13040 if test -z "$aix_libpath"; then
13041 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13044 rm -f core conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13049 # Warning - without using the other run time loading flags,
13050 # -berok will link without error, but may produce a broken library.
13051 no_undefined_flag_CXX=' ${wl}-bernotok'
13052 allow_undefined_flag_CXX=' ${wl}-berok'
13053 if test "$with_gnu_ld" = yes; then
13054 # We only use this code for GNU lds that support --whole-archive.
13055 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13056 else
13057 # Exported symbols can be pulled into shared objects from archives
13058 whole_archive_flag_spec_CXX='$convenience'
13060 archive_cmds_need_lc_CXX=yes
13061 # This is similar to how AIX traditionally builds its shared
13062 # libraries.
13063 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'
13068 beos*)
13069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13070 allow_undefined_flag_CXX=unsupported
13071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13072 # support --undefined. This deserves some investigation. FIXME
13073 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13074 else
13075 ld_shlibs_CXX=no
13079 chorus*)
13080 case $cc_basename in
13082 # FIXME: insert proper C++ library support
13083 ld_shlibs_CXX=no
13085 esac
13088 cygwin* | mingw* | pw32* | cegcc*)
13089 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13090 # as there is no search path for DLLs.
13091 hardcode_libdir_flag_spec_CXX='-L$libdir'
13092 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13093 allow_undefined_flag_CXX=unsupported
13094 always_export_symbols_CXX=no
13095 enable_shared_with_static_runtimes_CXX=yes
13097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13098 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'
13099 # If the export-symbols file already is a .def file (1st line
13100 # is EXPORTS), use it as is; otherwise, prepend...
13101 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13102 cp $export_symbols $output_objdir/$soname.def;
13103 else
13104 echo EXPORTS > $output_objdir/$soname.def;
13105 cat $export_symbols >> $output_objdir/$soname.def;
13107 $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'
13108 else
13109 ld_shlibs_CXX=no
13112 darwin* | rhapsody*)
13115 archive_cmds_need_lc_CXX=no
13116 hardcode_direct_CXX=no
13117 hardcode_automatic_CXX=yes
13118 hardcode_shlibpath_var_CXX=unsupported
13119 if test "$lt_cv_ld_force_load" = "yes"; then
13120 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\"`'
13121 else
13122 whole_archive_flag_spec_CXX=''
13124 link_all_deplibs_CXX=yes
13125 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13126 case $cc_basename in
13127 ifort*) _lt_dar_can_shared=yes ;;
13128 *) _lt_dar_can_shared=$GCC ;;
13129 esac
13130 if test "$_lt_dar_can_shared" = "yes"; then
13131 output_verbose_link_cmd=func_echo_all
13132 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}"
13133 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13134 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}"
13135 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}"
13136 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13137 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}"
13138 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}"
13141 else
13142 ld_shlibs_CXX=no
13147 dgux*)
13148 case $cc_basename in
13149 ec++*)
13150 # FIXME: insert proper C++ library support
13151 ld_shlibs_CXX=no
13153 ghcx*)
13154 # Green Hills C++ Compiler
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13162 esac
13165 freebsd2.*)
13166 # C++ shared libraries reported to be fairly broken before
13167 # switch to ELF
13168 ld_shlibs_CXX=no
13171 freebsd-elf*)
13172 archive_cmds_need_lc_CXX=no
13175 freebsd* | dragonfly*)
13176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13177 # conventions
13178 ld_shlibs_CXX=yes
13181 gnu*)
13184 haiku*)
13185 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13186 link_all_deplibs_CXX=yes
13189 hpux9*)
13190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13191 hardcode_libdir_separator_CXX=:
13192 export_dynamic_flag_spec_CXX='${wl}-E'
13193 hardcode_direct_CXX=yes
13194 hardcode_minus_L_CXX=yes # Not in the search PATH,
13195 # but as the default
13196 # location of the library.
13198 case $cc_basename in
13199 CC*)
13200 # FIXME: insert proper C++ library support
13201 ld_shlibs_CXX=no
13203 aCC*)
13204 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'
13205 # Commands to make compiler produce verbose output that lists
13206 # what "hidden" libraries, object files and flags are used when
13207 # linking a shared library.
13209 # There doesn't appear to be a way to prevent this compiler from
13210 # explicitly linking system object files so we need to strip them
13211 # from the output so that they don't get included in the library
13212 # dependencies.
13213 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"'
13216 if test "$GXX" = yes; then
13217 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'
13218 else
13219 # FIXME: insert proper C++ library support
13220 ld_shlibs_CXX=no
13223 esac
13226 hpux10*|hpux11*)
13227 if test $with_gnu_ld = no; then
13228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13229 hardcode_libdir_separator_CXX=:
13231 case $host_cpu in
13232 hppa*64*|ia64*)
13235 export_dynamic_flag_spec_CXX='${wl}-E'
13237 esac
13239 case $host_cpu in
13240 hppa*64*|ia64*)
13241 hardcode_direct_CXX=no
13242 hardcode_shlibpath_var_CXX=no
13245 hardcode_direct_CXX=yes
13246 hardcode_direct_absolute_CXX=yes
13247 hardcode_minus_L_CXX=yes # Not in the search PATH,
13248 # but as the default
13249 # location of the library.
13251 esac
13253 case $cc_basename in
13254 CC*)
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13258 aCC*)
13259 case $host_cpu in
13260 hppa*64*)
13261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13263 ia64*)
13264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13269 esac
13270 # Commands to make compiler produce verbose output that lists
13271 # what "hidden" libraries, object files and flags are used when
13272 # linking a shared library.
13274 # There doesn't appear to be a way to prevent this compiler from
13275 # explicitly linking system object files so we need to strip them
13276 # from the output so that they don't get included in the library
13277 # dependencies.
13278 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"'
13281 if test "$GXX" = yes; then
13282 if test $with_gnu_ld = no; then
13283 case $host_cpu in
13284 hppa*64*)
13285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287 ia64*)
13288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13291 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'
13293 esac
13295 else
13296 # FIXME: insert proper C++ library support
13297 ld_shlibs_CXX=no
13300 esac
13303 interix[3-9]*)
13304 hardcode_direct_CXX=no
13305 hardcode_shlibpath_var_CXX=no
13306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13307 export_dynamic_flag_spec_CXX='${wl}-E'
13308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13309 # Instead, shared libraries are loaded at an image base (0x10000000 by
13310 # default) and relocated if they conflict, which is a slow very memory
13311 # consuming and fragmenting process. To avoid this, we pick a random,
13312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13314 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'
13315 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'
13317 irix5* | irix6*)
13318 case $cc_basename in
13319 CC*)
13320 # SGI C++
13321 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'
13323 # Archives containing C++ object files must be created using
13324 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13325 # necessary to make sure instantiated templates are included
13326 # in the archive.
13327 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13330 if test "$GXX" = yes; then
13331 if test "$with_gnu_ld" = no; then
13332 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'
13333 else
13334 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'
13337 link_all_deplibs_CXX=yes
13339 esac
13340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341 hardcode_libdir_separator_CXX=:
13342 inherit_rpath_CXX=yes
13345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13346 case $cc_basename in
13347 KCC*)
13348 # Kuck and Associates, Inc. (KAI) C++ Compiler
13350 # KCC will only create a shared library if the output file
13351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13352 # to its proper name (with version) after linking.
13353 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'
13354 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'
13355 # Commands to make compiler produce verbose output that lists
13356 # what "hidden" libraries, object files and flags are used when
13357 # linking a shared library.
13359 # There doesn't appear to be a way to prevent this compiler from
13360 # explicitly linking system object files so we need to strip them
13361 # from the output so that they don't get included in the library
13362 # dependencies.
13363 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"'
13365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13368 # Archives containing C++ object files must be created using
13369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13372 icpc* | ecpc* )
13373 # Intel C++
13374 with_gnu_ld=yes
13375 # version 8.0 and above of icpc choke on multiply defined symbols
13376 # if we add $predep_objects and $postdep_objects, however 7.1 and
13377 # earlier do not add the objects themselves.
13378 case `$CC -V 2>&1` in
13379 *"Version 7."*)
13380 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13381 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'
13383 *) # Version 8.0 or newer
13384 tmp_idyn=
13385 case $host_cpu in
13386 ia64*) tmp_idyn=' -i_dynamic';;
13387 esac
13388 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389 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'
13391 esac
13392 archive_cmds_need_lc_CXX=no
13393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13397 pgCC* | pgcpp*)
13398 # Portland Group C++ compiler
13399 case `$CC -V` in
13400 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13401 prelink_cmds_CXX='tpldir=Template.dir~
13402 rm -rf $tpldir~
13403 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13404 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13405 old_archive_cmds_CXX='tpldir=Template.dir~
13406 rm -rf $tpldir~
13407 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13408 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13409 $RANLIB $oldlib'
13410 archive_cmds_CXX='tpldir=Template.dir~
13411 rm -rf $tpldir~
13412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13413 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13414 archive_expsym_cmds_CXX='tpldir=Template.dir~
13415 rm -rf $tpldir~
13416 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13417 $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'
13419 *) # Version 6 and above use weak symbols
13420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13421 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'
13423 esac
13425 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13427 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'
13429 cxx*)
13430 # Compaq C++
13431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13432 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'
13434 runpath_var=LD_RUN_PATH
13435 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13436 hardcode_libdir_separator_CXX=:
13438 # Commands to make compiler produce verbose output that lists
13439 # what "hidden" libraries, object files and flags are used when
13440 # linking a shared library.
13442 # There doesn't appear to be a way to prevent this compiler from
13443 # explicitly linking system object files so we need to strip them
13444 # from the output so that they don't get included in the library
13445 # dependencies.
13446 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'
13448 xl* | mpixl* | bgxl*)
13449 # IBM XL 8.0 on PPC, with GNU ld
13450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13451 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13452 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453 if test "x$supports_anon_versioning" = xyes; then
13454 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13456 echo "local: *; };" >> $output_objdir/$libname.ver~
13457 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13461 case `$CC -V 2>&1 | sed 5q` in
13462 *Sun\ C*)
13463 # Sun C++ 5.9
13464 no_undefined_flag_CXX=' -zdefs'
13465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13466 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'
13467 hardcode_libdir_flag_spec_CXX='-R$libdir'
13468 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'
13469 compiler_needs_object_CXX=yes
13471 # Not sure whether something based on
13472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13473 # would be better.
13474 output_verbose_link_cmd='func_echo_all'
13476 # Archives containing C++ object files must be created using
13477 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13478 # necessary to make sure instantiated templates are included
13479 # in the archive.
13480 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13482 esac
13484 esac
13487 lynxos*)
13488 # FIXME: insert proper C++ library support
13489 ld_shlibs_CXX=no
13492 m88k*)
13493 # FIXME: insert proper C++ library support
13494 ld_shlibs_CXX=no
13497 mvs*)
13498 case $cc_basename in
13499 cxx*)
13500 # FIXME: insert proper C++ library support
13501 ld_shlibs_CXX=no
13504 # FIXME: insert proper C++ library support
13505 ld_shlibs_CXX=no
13507 esac
13510 netbsd*)
13511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13513 wlarc=
13514 hardcode_libdir_flag_spec_CXX='-R$libdir'
13515 hardcode_direct_CXX=yes
13516 hardcode_shlibpath_var_CXX=no
13518 # Workaround some broken pre-1.5 toolchains
13519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13522 *nto* | *qnx*)
13523 ld_shlibs_CXX=yes
13526 openbsd2*)
13527 # C++ shared libraries are fairly broken
13528 ld_shlibs_CXX=no
13531 openbsd*)
13532 if test -f /usr/libexec/ld.so; then
13533 hardcode_direct_CXX=yes
13534 hardcode_shlibpath_var_CXX=no
13535 hardcode_direct_absolute_CXX=yes
13536 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13539 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13540 export_dynamic_flag_spec_CXX='${wl}-E'
13541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13543 output_verbose_link_cmd=func_echo_all
13544 else
13545 ld_shlibs_CXX=no
13549 osf3* | osf4* | osf5*)
13550 case $cc_basename in
13551 KCC*)
13552 # Kuck and Associates, Inc. (KAI) C++ Compiler
13554 # KCC will only create a shared library if the output file
13555 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13556 # to its proper name (with version) after linking.
13557 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'
13559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13560 hardcode_libdir_separator_CXX=:
13562 # Archives containing C++ object files must be created using
13563 # the KAI C++ compiler.
13564 case $host in
13565 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13566 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13567 esac
13569 RCC*)
13570 # Rational C++ 2.4.1
13571 # FIXME: insert proper C++ library support
13572 ld_shlibs_CXX=no
13574 cxx*)
13575 case $host in
13576 osf3*)
13577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13578 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'
13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13582 allow_undefined_flag_CXX=' -expect_unresolved \*'
13583 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'
13584 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13585 echo "-hidden">> $lib.exp~
13586 $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~
13587 $RM $lib.exp'
13588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13590 esac
13592 hardcode_libdir_separator_CXX=:
13594 # Commands to make compiler produce verbose output that lists
13595 # what "hidden" libraries, object files and flags are used when
13596 # linking a shared library.
13598 # There doesn't appear to be a way to prevent this compiler from
13599 # explicitly linking system object files so we need to strip them
13600 # from the output so that they don't get included in the library
13601 # dependencies.
13602 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"'
13605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13606 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13607 case $host in
13608 osf3*)
13609 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'
13612 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'
13614 esac
13616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13617 hardcode_libdir_separator_CXX=:
13619 # Commands to make compiler produce verbose output that lists
13620 # what "hidden" libraries, object files and flags are used when
13621 # linking a shared library.
13622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13624 else
13625 # FIXME: insert proper C++ library support
13626 ld_shlibs_CXX=no
13629 esac
13632 psos*)
13633 # FIXME: insert proper C++ library support
13634 ld_shlibs_CXX=no
13637 sunos4*)
13638 case $cc_basename in
13639 CC*)
13640 # Sun C++ 4.x
13641 # FIXME: insert proper C++ library support
13642 ld_shlibs_CXX=no
13644 lcc*)
13645 # Lucid
13646 # FIXME: insert proper C++ library support
13647 ld_shlibs_CXX=no
13650 # FIXME: insert proper C++ library support
13651 ld_shlibs_CXX=no
13653 esac
13656 solaris*)
13657 case $cc_basename in
13658 CC*)
13659 # Sun C++ 4.2, 5.x and Centerline C++
13660 archive_cmds_need_lc_CXX=yes
13661 no_undefined_flag_CXX=' -zdefs'
13662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13664 $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'
13666 hardcode_libdir_flag_spec_CXX='-R$libdir'
13667 hardcode_shlibpath_var_CXX=no
13668 case $host_os in
13669 solaris2.[0-5] | solaris2.[0-5].*) ;;
13671 # The compiler driver will combine and reorder linker options,
13672 # but understands `-z linker_flag'.
13673 # Supported since Solaris 2.6 (maybe 2.5.1?)
13674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13676 esac
13677 link_all_deplibs_CXX=yes
13679 output_verbose_link_cmd='func_echo_all'
13681 # Archives containing C++ object files must be created using
13682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13683 # necessary to make sure instantiated templates are included
13684 # in the archive.
13685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13687 gcx*)
13688 # Green Hills C++ Compiler
13689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13691 # The C++ compiler must be used to create the archive.
13692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13695 # GNU C++ compiler with Solaris linker
13696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13698 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13700 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13703 # Commands to make compiler produce verbose output that lists
13704 # what "hidden" libraries, object files and flags are used when
13705 # linking a shared library.
13706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13707 else
13708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13709 # platform.
13710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13714 # Commands to make compiler produce verbose output that lists
13715 # what "hidden" libraries, object files and flags are used when
13716 # linking a shared library.
13717 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13721 case $host_os in
13722 solaris2.[0-5] | solaris2.[0-5].*) ;;
13724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13726 esac
13729 esac
13732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13733 no_undefined_flag_CXX='${wl}-z,text'
13734 archive_cmds_need_lc_CXX=no
13735 hardcode_shlibpath_var_CXX=no
13736 runpath_var='LD_RUN_PATH'
13738 case $cc_basename in
13739 CC*)
13740 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 esac
13750 sysv5* | sco3.2v5* | sco5v6*)
13751 # Note: We can NOT use -z defs as we might desire, because we do not
13752 # link with -lc, and that would cause any symbols used from libc to
13753 # always be unresolved, which means just about no library would
13754 # ever link correctly. If we're not using GNU ld we use -z text
13755 # though, which does catch some bad symbols but isn't as heavy-handed
13756 # as -z defs.
13757 no_undefined_flag_CXX='${wl}-z,text'
13758 allow_undefined_flag_CXX='${wl}-z,nodefs'
13759 archive_cmds_need_lc_CXX=no
13760 hardcode_shlibpath_var_CXX=no
13761 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13762 hardcode_libdir_separator_CXX=':'
13763 link_all_deplibs_CXX=yes
13764 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13765 runpath_var='LD_RUN_PATH'
13767 case $cc_basename in
13768 CC*)
13769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13772 '"$old_archive_cmds_CXX"
13773 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13774 '"$reload_cmds_CXX"
13777 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13778 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13780 esac
13783 tandem*)
13784 case $cc_basename in
13785 NCC*)
13786 # NonStop-UX NCC 3.20
13787 # FIXME: insert proper C++ library support
13788 ld_shlibs_CXX=no
13791 # FIXME: insert proper C++ library support
13792 ld_shlibs_CXX=no
13794 esac
13797 vxworks*)
13798 # FIXME: insert proper C++ library support
13799 ld_shlibs_CXX=no
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13806 esac
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13809 $as_echo "$ld_shlibs_CXX" >&6; }
13810 test "$ld_shlibs_CXX" = no && can_build_shared=no
13812 GCC_CXX="$GXX"
13813 LD_CXX="$LD"
13815 ## CAVEAT EMPTOR:
13816 ## There is no encapsulation within the following macros, do not change
13817 ## the running order or otherwise move them around unless you know exactly
13818 ## what you are doing...
13819 # Dependencies to place before and after the object being linked:
13820 predep_objects_CXX=
13821 postdep_objects_CXX=
13822 predeps_CXX=
13823 postdeps_CXX=
13824 compiler_lib_search_path_CXX=
13826 cat > conftest.$ac_ext <<_LT_EOF
13827 class Foo
13829 public:
13830 Foo (void) { a = 0; }
13831 private:
13832 int a;
13834 _LT_EOF
13836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13837 (eval $ac_compile) 2>&5
13838 ac_status=$?
13839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13840 test $ac_status = 0; }; then
13841 # Parse the compiler output and extract the necessary
13842 # objects, libraries and library flags.
13844 # Sentinel used to keep track of whether or not we are before
13845 # the conftest object file.
13846 pre_test_object_deps_done=no
13848 for p in `eval "$output_verbose_link_cmd"`; do
13849 case $p in
13851 -L* | -R* | -l*)
13852 # Some compilers place space between "-{L,R}" and the path.
13853 # Remove the space.
13854 if test $p = "-L" ||
13855 test $p = "-R"; then
13856 prev=$p
13857 continue
13858 else
13859 prev=
13862 if test "$pre_test_object_deps_done" = no; then
13863 case $p in
13864 -L* | -R*)
13865 # Internal compiler library paths should come after those
13866 # provided the user. The postdeps already come after the
13867 # user supplied libs so there is no need to process them.
13868 if test -z "$compiler_lib_search_path_CXX"; then
13869 compiler_lib_search_path_CXX="${prev}${p}"
13870 else
13871 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13874 # The "-l" case would never come before the object being
13875 # linked, so don't bother handling this case.
13876 esac
13877 else
13878 if test -z "$postdeps_CXX"; then
13879 postdeps_CXX="${prev}${p}"
13880 else
13881 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13886 *.$objext)
13887 # This assumes that the test object file only shows up
13888 # once in the compiler output.
13889 if test "$p" = "conftest.$objext"; then
13890 pre_test_object_deps_done=yes
13891 continue
13894 if test "$pre_test_object_deps_done" = no; then
13895 if test -z "$predep_objects_CXX"; then
13896 predep_objects_CXX="$p"
13897 else
13898 predep_objects_CXX="$predep_objects_CXX $p"
13900 else
13901 if test -z "$postdep_objects_CXX"; then
13902 postdep_objects_CXX="$p"
13903 else
13904 postdep_objects_CXX="$postdep_objects_CXX $p"
13909 *) ;; # Ignore the rest.
13911 esac
13912 done
13914 # Clean up.
13915 rm -f a.out a.exe
13916 else
13917 echo "libtool.m4: error: problem compiling CXX test program"
13920 $RM -f confest.$objext
13922 # PORTME: override above test on systems where it is broken
13923 case $host_os in
13924 interix[3-9]*)
13925 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13926 # hack all around it, let's just trust "g++" to DTRT.
13927 predep_objects_CXX=
13928 postdep_objects_CXX=
13929 postdeps_CXX=
13932 linux*)
13933 case `$CC -V 2>&1 | sed 5q` in
13934 *Sun\ C*)
13935 # Sun C++ 5.9
13937 # The more standards-conforming stlport4 library is
13938 # incompatible with the Cstd library. Avoid specifying
13939 # it if it's in CXXFLAGS. Ignore libCrun as
13940 # -library=stlport4 depends on it.
13941 case " $CXX $CXXFLAGS " in
13942 *" -library=stlport4 "*)
13943 solaris_use_stlport4=yes
13945 esac
13947 if test "$solaris_use_stlport4" != yes; then
13948 postdeps_CXX='-library=Cstd -library=Crun'
13951 esac
13954 solaris*)
13955 case $cc_basename in
13956 CC*)
13957 # The more standards-conforming stlport4 library is
13958 # incompatible with the Cstd library. Avoid specifying
13959 # it if it's in CXXFLAGS. Ignore libCrun as
13960 # -library=stlport4 depends on it.
13961 case " $CXX $CXXFLAGS " in
13962 *" -library=stlport4 "*)
13963 solaris_use_stlport4=yes
13965 esac
13967 # Adding this requires a known-good setup of shared libraries for
13968 # Sun compiler versions before 5.6, else PIC objects from an old
13969 # archive will be linked into the output, leading to subtle bugs.
13970 if test "$solaris_use_stlport4" != yes; then
13971 postdeps_CXX='-library=Cstd -library=Crun'
13974 esac
13976 esac
13979 case " $postdeps_CXX " in
13980 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13981 esac
13982 compiler_lib_search_dirs_CXX=
13983 if test -n "${compiler_lib_search_path_CXX}"; then
13984 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14017 lt_prog_compiler_wl_CXX=
14018 lt_prog_compiler_pic_CXX=
14019 lt_prog_compiler_static_CXX=
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14024 # C++ specific cases for pic, static, wl, etc.
14025 if test "$GXX" = yes; then
14026 lt_prog_compiler_wl_CXX='-Wl,'
14027 lt_prog_compiler_static_CXX='-static'
14029 case $host_os in
14030 aix*)
14031 # All AIX code is PIC.
14032 if test "$host_cpu" = ia64; then
14033 # AIX 5 now supports IA64 processor
14034 lt_prog_compiler_static_CXX='-Bstatic'
14036 lt_prog_compiler_pic_CXX='-fPIC'
14039 amigaos*)
14040 case $host_cpu in
14041 powerpc)
14042 # see comment about AmigaOS4 .so support
14043 lt_prog_compiler_pic_CXX='-fPIC'
14045 m68k)
14046 # FIXME: we need at least 68020 code to build shared libraries, but
14047 # adding the `-m68020' flag to GCC prevents building anything better,
14048 # like `-m68040'.
14049 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14051 esac
14054 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14055 # PIC is the default for these OSes.
14057 mingw* | cygwin* | os2* | pw32* | cegcc*)
14058 # This hack is so that the source file can tell whether it is being
14059 # built for inclusion in a dll (and should export symbols for example).
14060 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14061 # (--disable-auto-import) libraries
14062 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14064 darwin* | rhapsody*)
14065 # PIC is the default on this platform
14066 # Common symbols not allowed in MH_DYLIB files
14067 lt_prog_compiler_pic_CXX='-fno-common'
14069 *djgpp*)
14070 # DJGPP does not support shared libraries at all
14071 lt_prog_compiler_pic_CXX=
14073 haiku*)
14074 # PIC is the default for Haiku.
14075 # The "-static" flag exists, but is broken.
14076 lt_prog_compiler_static_CXX=
14078 interix[3-9]*)
14079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14080 # Instead, we relocate shared libraries at runtime.
14082 sysv4*MP*)
14083 if test -d /usr/nec; then
14084 lt_prog_compiler_pic_CXX=-Kconform_pic
14087 hpux*)
14088 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14089 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14090 # sets the default TLS model and affects inlining.
14091 case $host_cpu in
14092 hppa*64*)
14095 lt_prog_compiler_pic_CXX='-fPIC'
14097 esac
14099 *qnx* | *nto*)
14100 # QNX uses GNU C++, but need to define -shared option too, otherwise
14101 # it will coredump.
14102 lt_prog_compiler_pic_CXX='-fPIC -shared'
14105 lt_prog_compiler_pic_CXX='-fPIC'
14107 esac
14108 else
14109 case $host_os in
14110 aix[4-9]*)
14111 # All AIX code is PIC.
14112 if test "$host_cpu" = ia64; then
14113 # AIX 5 now supports IA64 processor
14114 lt_prog_compiler_static_CXX='-Bstatic'
14115 else
14116 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14119 chorus*)
14120 case $cc_basename in
14121 cxch68*)
14122 # Green Hills C++ Compiler
14123 # _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"
14125 esac
14127 dgux*)
14128 case $cc_basename in
14129 ec++*)
14130 lt_prog_compiler_pic_CXX='-KPIC'
14132 ghcx*)
14133 # Green Hills C++ Compiler
14134 lt_prog_compiler_pic_CXX='-pic'
14138 esac
14140 freebsd* | dragonfly*)
14141 # FreeBSD uses GNU C++
14143 hpux9* | hpux10* | hpux11*)
14144 case $cc_basename in
14145 CC*)
14146 lt_prog_compiler_wl_CXX='-Wl,'
14147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14148 if test "$host_cpu" != ia64; then
14149 lt_prog_compiler_pic_CXX='+Z'
14152 aCC*)
14153 lt_prog_compiler_wl_CXX='-Wl,'
14154 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14155 case $host_cpu in
14156 hppa*64*|ia64*)
14157 # +Z the default
14160 lt_prog_compiler_pic_CXX='+Z'
14162 esac
14166 esac
14168 interix*)
14169 # This is c89, which is MS Visual C++ (no shared libs)
14170 # Anyone wants to do a port?
14172 irix5* | irix6* | nonstopux*)
14173 case $cc_basename in
14174 CC*)
14175 lt_prog_compiler_wl_CXX='-Wl,'
14176 lt_prog_compiler_static_CXX='-non_shared'
14177 # CC pic flag -KPIC is the default.
14181 esac
14183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14184 case $cc_basename in
14185 KCC*)
14186 # KAI C++ Compiler
14187 lt_prog_compiler_wl_CXX='--backend -Wl,'
14188 lt_prog_compiler_pic_CXX='-fPIC'
14190 ecpc* )
14191 # old Intel C++ for x86_64 which still supported -KPIC.
14192 lt_prog_compiler_wl_CXX='-Wl,'
14193 lt_prog_compiler_pic_CXX='-KPIC'
14194 lt_prog_compiler_static_CXX='-static'
14196 icpc* )
14197 # Intel C++, used to be incompatible with GCC.
14198 # ICC 10 doesn't accept -KPIC any more.
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_pic_CXX='-fPIC'
14201 lt_prog_compiler_static_CXX='-static'
14203 pgCC* | pgcpp*)
14204 # Portland Group C++ compiler
14205 lt_prog_compiler_wl_CXX='-Wl,'
14206 lt_prog_compiler_pic_CXX='-fpic'
14207 lt_prog_compiler_static_CXX='-Bstatic'
14209 cxx*)
14210 # Compaq C++
14211 # Make sure the PIC flag is empty. It appears that all Alpha
14212 # Linux and Compaq Tru64 Unix objects are PIC.
14213 lt_prog_compiler_pic_CXX=
14214 lt_prog_compiler_static_CXX='-non_shared'
14216 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14217 # IBM XL 8.0, 9.0 on PPC and BlueGene
14218 lt_prog_compiler_wl_CXX='-Wl,'
14219 lt_prog_compiler_pic_CXX='-qpic'
14220 lt_prog_compiler_static_CXX='-qstaticlink'
14223 case `$CC -V 2>&1 | sed 5q` in
14224 *Sun\ C*)
14225 # Sun C++ 5.9
14226 lt_prog_compiler_pic_CXX='-KPIC'
14227 lt_prog_compiler_static_CXX='-Bstatic'
14228 lt_prog_compiler_wl_CXX='-Qoption ld '
14230 esac
14232 esac
14234 lynxos*)
14236 m88k*)
14238 mvs*)
14239 case $cc_basename in
14240 cxx*)
14241 lt_prog_compiler_pic_CXX='-W c,exportall'
14245 esac
14247 netbsd*)
14249 *qnx* | *nto*)
14250 # QNX uses GNU C++, but need to define -shared option too, otherwise
14251 # it will coredump.
14252 lt_prog_compiler_pic_CXX='-fPIC -shared'
14254 osf3* | osf4* | osf5*)
14255 case $cc_basename in
14256 KCC*)
14257 lt_prog_compiler_wl_CXX='--backend -Wl,'
14259 RCC*)
14260 # Rational C++ 2.4.1
14261 lt_prog_compiler_pic_CXX='-pic'
14263 cxx*)
14264 # Digital/Compaq C++
14265 lt_prog_compiler_wl_CXX='-Wl,'
14266 # Make sure the PIC flag is empty. It appears that all Alpha
14267 # Linux and Compaq Tru64 Unix objects are PIC.
14268 lt_prog_compiler_pic_CXX=
14269 lt_prog_compiler_static_CXX='-non_shared'
14273 esac
14275 psos*)
14277 solaris*)
14278 case $cc_basename in
14279 CC*)
14280 # Sun C++ 4.2, 5.x and Centerline C++
14281 lt_prog_compiler_pic_CXX='-KPIC'
14282 lt_prog_compiler_static_CXX='-Bstatic'
14283 lt_prog_compiler_wl_CXX='-Qoption ld '
14285 gcx*)
14286 # Green Hills C++ Compiler
14287 lt_prog_compiler_pic_CXX='-PIC'
14291 esac
14293 sunos4*)
14294 case $cc_basename in
14295 CC*)
14296 # Sun C++ 4.x
14297 lt_prog_compiler_pic_CXX='-pic'
14298 lt_prog_compiler_static_CXX='-Bstatic'
14300 lcc*)
14301 # Lucid
14302 lt_prog_compiler_pic_CXX='-pic'
14306 esac
14308 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14309 case $cc_basename in
14310 CC*)
14311 lt_prog_compiler_wl_CXX='-Wl,'
14312 lt_prog_compiler_pic_CXX='-KPIC'
14313 lt_prog_compiler_static_CXX='-Bstatic'
14315 esac
14317 tandem*)
14318 case $cc_basename in
14319 NCC*)
14320 # NonStop-UX NCC 3.20
14321 lt_prog_compiler_pic_CXX='-KPIC'
14325 esac
14327 vxworks*)
14330 lt_prog_compiler_can_build_shared_CXX=no
14332 esac
14335 case $host_os in
14336 # For platforms which do not support PIC, -DPIC is meaningless:
14337 *djgpp*)
14338 lt_prog_compiler_pic_CXX=
14341 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14343 esac
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14345 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14350 # Check to make sure the PIC flag actually works.
14352 if test -n "$lt_prog_compiler_pic_CXX"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14354 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14355 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358 lt_cv_prog_compiler_pic_works_CXX=no
14359 ac_outfile=conftest.$ac_objext
14360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14361 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14362 # Insert the option either (1) after the last *FLAGS variable, or
14363 # (2) before a word containing "conftest.", or (3) at the end.
14364 # Note that $ac_compile itself does not contain backslashes and begins
14365 # with a dollar sign (not a hyphen), so the echo should work correctly.
14366 # The option is referenced via a variable to avoid confusing sed.
14367 lt_compile=`echo "$ac_compile" | $SED \
14368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14370 -e 's:$: $lt_compiler_flag:'`
14371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14372 (eval "$lt_compile" 2>conftest.err)
14373 ac_status=$?
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 if (exit $ac_status) && test -s "$ac_outfile"; then
14377 # The compiler can only warn and ignore the option if not recognized
14378 # So say no if there are warnings other than the usual output.
14379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14382 lt_cv_prog_compiler_pic_works_CXX=yes
14385 $RM conftest*
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14389 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14391 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14392 case $lt_prog_compiler_pic_CXX in
14393 "" | " "*) ;;
14394 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14395 esac
14396 else
14397 lt_prog_compiler_pic_CXX=
14398 lt_prog_compiler_can_build_shared_CXX=no
14406 # Check to make sure the static flag actually works.
14408 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14410 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14411 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 lt_cv_prog_compiler_static_works_CXX=no
14415 save_LDFLAGS="$LDFLAGS"
14416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14419 # The linker can only warn and ignore the option if not recognized
14420 # So say no if there are warnings
14421 if test -s conftest.err; then
14422 # Append any errors to the config.log.
14423 cat conftest.err 1>&5
14424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14426 if diff conftest.exp conftest.er2 >/dev/null; then
14427 lt_cv_prog_compiler_static_works_CXX=yes
14429 else
14430 lt_cv_prog_compiler_static_works_CXX=yes
14433 $RM -r conftest*
14434 LDFLAGS="$save_LDFLAGS"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14438 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14440 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14442 else
14443 lt_prog_compiler_static_CXX=
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14450 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14451 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 lt_cv_prog_compiler_c_o_CXX=no
14455 $RM -r conftest 2>/dev/null
14456 mkdir conftest
14457 cd conftest
14458 mkdir out
14459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14461 lt_compiler_flag="-o out/conftest2.$ac_objext"
14462 # Insert the option either (1) after the last *FLAGS variable, or
14463 # (2) before a word containing "conftest.", or (3) at the end.
14464 # Note that $ac_compile itself does not contain backslashes and begins
14465 # with a dollar sign (not a hyphen), so the echo should work correctly.
14466 lt_compile=`echo "$ac_compile" | $SED \
14467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14469 -e 's:$: $lt_compiler_flag:'`
14470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14471 (eval "$lt_compile" 2>out/conftest.err)
14472 ac_status=$?
14473 cat out/conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14476 then
14477 # The compiler can only warn and ignore the option if not recognized
14478 # So say no if there are warnings
14479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14482 lt_cv_prog_compiler_c_o_CXX=yes
14485 chmod u+w . 2>&5
14486 $RM conftest*
14487 # SGI C++ compiler will create directory out/ii_files/ for
14488 # template instantiation
14489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14490 $RM out/* && rmdir out
14491 cd ..
14492 $RM -r conftest
14493 $RM conftest*
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14497 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14503 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 lt_cv_prog_compiler_c_o_CXX=no
14507 $RM -r conftest 2>/dev/null
14508 mkdir conftest
14509 cd conftest
14510 mkdir out
14511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14513 lt_compiler_flag="-o out/conftest2.$ac_objext"
14514 # Insert the option either (1) after the last *FLAGS variable, or
14515 # (2) before a word containing "conftest.", or (3) at the end.
14516 # Note that $ac_compile itself does not contain backslashes and begins
14517 # with a dollar sign (not a hyphen), so the echo should work correctly.
14518 lt_compile=`echo "$ac_compile" | $SED \
14519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14521 -e 's:$: $lt_compiler_flag:'`
14522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14523 (eval "$lt_compile" 2>out/conftest.err)
14524 ac_status=$?
14525 cat out/conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14528 then
14529 # The compiler can only warn and ignore the option if not recognized
14530 # So say no if there are warnings
14531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14534 lt_cv_prog_compiler_c_o_CXX=yes
14537 chmod u+w . 2>&5
14538 $RM conftest*
14539 # SGI C++ compiler will create directory out/ii_files/ for
14540 # template instantiation
14541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14542 $RM out/* && rmdir out
14543 cd ..
14544 $RM -r conftest
14545 $RM conftest*
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14549 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14554 hard_links="nottested"
14555 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14556 # do not overwrite the value of need_locks provided by the user
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14558 $as_echo_n "checking if we can lock with hard links... " >&6; }
14559 hard_links=yes
14560 $RM conftest*
14561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14562 touch conftest.a
14563 ln conftest.a conftest.b 2>&5 || hard_links=no
14564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14566 $as_echo "$hard_links" >&6; }
14567 if test "$hard_links" = no; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14569 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14570 need_locks=warn
14572 else
14573 need_locks=no
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14579 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14582 case $host_os in
14583 aix[4-9]*)
14584 # If we're using GNU nm, then we don't want the "-C" option.
14585 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14586 # Also, AIX nm treats weak defined symbols like other global defined
14587 # symbols, whereas GNU nm marks them as "W".
14588 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14589 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'
14590 else
14591 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'
14594 pw32*)
14595 export_symbols_cmds_CXX="$ltdll_cmds"
14597 cygwin* | mingw* | cegcc*)
14598 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'
14601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14603 esac
14604 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14607 $as_echo "$ld_shlibs_CXX" >&6; }
14608 test "$ld_shlibs_CXX" = no && can_build_shared=no
14610 with_gnu_ld_CXX=$with_gnu_ld
14618 # Do we need to explicitly link libc?
14620 case "x$archive_cmds_need_lc_CXX" in
14621 x|xyes)
14622 # Assume -lc should be added
14623 archive_cmds_need_lc_CXX=yes
14625 if test "$enable_shared" = yes && test "$GCC" = yes; then
14626 case $archive_cmds_CXX in
14627 *'~'*)
14628 # FIXME: we may have to deal with multi-command sequences.
14630 '$CC '*)
14631 # Test whether the compiler implicitly links with -lc since on some
14632 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14633 # to ld, don't add -lc before -lgcc.
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14635 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14636 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 $RM conftest*
14640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14643 (eval $ac_compile) 2>&5
14644 ac_status=$?
14645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14646 test $ac_status = 0; } 2>conftest.err; then
14647 soname=conftest
14648 lib=conftest
14649 libobjs=conftest.$ac_objext
14650 deplibs=
14651 wl=$lt_prog_compiler_wl_CXX
14652 pic_flag=$lt_prog_compiler_pic_CXX
14653 compiler_flags=-v
14654 linker_flags=-v
14655 verstring=
14656 output_objdir=.
14657 libname=conftest
14658 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14659 allow_undefined_flag_CXX=
14660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14661 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14662 ac_status=$?
14663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14664 test $ac_status = 0; }
14665 then
14666 lt_cv_archive_cmds_need_lc_CXX=no
14667 else
14668 lt_cv_archive_cmds_need_lc_CXX=yes
14670 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14671 else
14672 cat conftest.err 1>&5
14674 $RM conftest*
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14678 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14679 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14681 esac
14684 esac
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14750 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14752 library_names_spec=
14753 libname_spec='lib$name'
14754 soname_spec=
14755 shrext_cmds=".so"
14756 postinstall_cmds=
14757 postuninstall_cmds=
14758 finish_cmds=
14759 finish_eval=
14760 shlibpath_var=
14761 shlibpath_overrides_runpath=unknown
14762 version_type=none
14763 dynamic_linker="$host_os ld.so"
14764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14765 need_lib_prefix=unknown
14766 hardcode_into_libs=no
14768 # when you set need_version to no, make sure it does not cause -set_version
14769 # flags to be left without arguments
14770 need_version=unknown
14772 case $host_os in
14773 aix3*)
14774 version_type=linux
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14776 shlibpath_var=LIBPATH
14778 # AIX 3 has no versioning support, so we append a major version to the name.
14779 soname_spec='${libname}${release}${shared_ext}$major'
14782 aix[4-9]*)
14783 version_type=linux
14784 need_lib_prefix=no
14785 need_version=no
14786 hardcode_into_libs=yes
14787 if test "$host_cpu" = ia64; then
14788 # AIX 5 supports IA64
14789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 else
14792 # With GCC up to 2.95.x, collect2 would create an import file
14793 # for dependence libraries. The import file would start with
14794 # the line `#! .'. This would cause the generated library to
14795 # depend on `.', always an invalid library. This was fixed in
14796 # development snapshots of GCC prior to 3.0.
14797 case $host_os in
14798 aix4 | aix4.[01] | aix4.[01].*)
14799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14800 echo ' yes '
14801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14803 else
14804 can_build_shared=no
14807 esac
14808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14809 # soname into executable. Probably we can add versioning support to
14810 # collect2, so additional links can be useful in future.
14811 if test "$aix_use_runtimelinking" = yes; then
14812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14813 # instead of lib<name>.a to let people know that these are not
14814 # typical AIX shared libraries.
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816 else
14817 # We preserve .a as extension for shared libraries through AIX4.2
14818 # and later when we are not doing run time linking.
14819 library_names_spec='${libname}${release}.a $libname.a'
14820 soname_spec='${libname}${release}${shared_ext}$major'
14822 shlibpath_var=LIBPATH
14826 amigaos*)
14827 case $host_cpu in
14828 powerpc)
14829 # Since July 2007 AmigaOS4 officially supports .so libraries.
14830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 m68k)
14834 library_names_spec='$libname.ixlibrary $libname.a'
14835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14836 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'
14838 esac
14841 beos*)
14842 library_names_spec='${libname}${shared_ext}'
14843 dynamic_linker="$host_os ld.so"
14844 shlibpath_var=LIBRARY_PATH
14847 bsdi[45]*)
14848 version_type=linux
14849 need_version=no
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14856 # the default ld.so.conf also contains /usr/contrib/lib and
14857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14858 # libtool to hard-code these into programs
14861 cygwin* | mingw* | pw32* | cegcc*)
14862 version_type=windows
14863 shrext_cmds=".dll"
14864 need_version=no
14865 need_lib_prefix=no
14867 case $GCC,$host_os in
14868 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14869 library_names_spec='$libname.dll.a'
14870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14871 postinstall_cmds='base_file=`basename \${file}`~
14872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14873 dldir=$destdir/`dirname \$dlpath`~
14874 test -d \$dldir || mkdir -p \$dldir~
14875 $install_prog $dir/$dlname \$dldir/$dlname~
14876 chmod a+x \$dldir/$dlname~
14877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14881 dlpath=$dir/\$dldll~
14882 $RM \$dlpath'
14883 shlibpath_overrides_runpath=yes
14885 case $host_os in
14886 cygwin*)
14887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14891 mingw* | cegcc*)
14892 # MinGW DLLs use traditional 'lib' prefix
14893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14895 pw32*)
14896 # pw32 DLLs use 'pw' prefix rather than 'lib'
14897 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14899 esac
14903 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14905 esac
14906 dynamic_linker='Win32 ld.exe'
14907 # FIXME: first we should search . and the directory the executable is in
14908 shlibpath_var=PATH
14911 darwin* | rhapsody*)
14912 dynamic_linker="$host_os dyld"
14913 version_type=darwin
14914 need_lib_prefix=no
14915 need_version=no
14916 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14917 soname_spec='${libname}${release}${major}$shared_ext'
14918 shlibpath_overrides_runpath=yes
14919 shlibpath_var=DYLD_LIBRARY_PATH
14920 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14925 dgux*)
14926 version_type=linux
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14934 freebsd* | dragonfly*)
14935 # DragonFly does not have aout. When/if they implement a new
14936 # versioning mechanism, adjust this.
14937 if test -x /usr/bin/objformat; then
14938 objformat=`/usr/bin/objformat`
14939 else
14940 case $host_os in
14941 freebsd[23].*) objformat=aout ;;
14942 *) objformat=elf ;;
14943 esac
14945 version_type=freebsd-$objformat
14946 case $version_type in
14947 freebsd-elf*)
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14949 need_version=no
14950 need_lib_prefix=no
14952 freebsd-*)
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14954 need_version=yes
14956 esac
14957 shlibpath_var=LD_LIBRARY_PATH
14958 case $host_os in
14959 freebsd2.*)
14960 shlibpath_overrides_runpath=yes
14962 freebsd3.[01]* | freebsdelf3.[01]*)
14963 shlibpath_overrides_runpath=yes
14964 hardcode_into_libs=yes
14966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14968 shlibpath_overrides_runpath=no
14969 hardcode_into_libs=yes
14971 *) # from 4.6 on, and DragonFly
14972 shlibpath_overrides_runpath=yes
14973 hardcode_into_libs=yes
14975 esac
14978 gnu*)
14979 version_type=linux
14980 need_lib_prefix=no
14981 need_version=no
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 hardcode_into_libs=yes
14988 haiku*)
14989 version_type=linux
14990 need_lib_prefix=no
14991 need_version=no
14992 dynamic_linker="$host_os runtime_loader"
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LIBRARY_PATH
14996 shlibpath_overrides_runpath=yes
14997 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14998 hardcode_into_libs=yes
15001 hpux9* | hpux10* | hpux11*)
15002 # Give a soname corresponding to the major version so that dld.sl refuses to
15003 # link against other versions.
15004 version_type=sunos
15005 need_lib_prefix=no
15006 need_version=no
15007 case $host_cpu in
15008 ia64*)
15009 shrext_cmds='.so'
15010 hardcode_into_libs=yes
15011 dynamic_linker="$host_os dld.so"
15012 shlibpath_var=LD_LIBRARY_PATH
15013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 if test "X$HPUX_IA64_MODE" = X32; then
15017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15018 else
15019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15023 hppa*64*)
15024 shrext_cmds='.sl'
15025 hardcode_into_libs=yes
15026 dynamic_linker="$host_os dld.sl"
15027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15035 shrext_cmds='.sl'
15036 dynamic_linker="$host_os dld.sl"
15037 shlibpath_var=SHLIB_PATH
15038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040 soname_spec='${libname}${release}${shared_ext}$major'
15042 esac
15043 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15044 postinstall_cmds='chmod 555 $lib'
15045 # or fails outright, so override atomically:
15046 install_override_mode=555
15049 interix[3-9]*)
15050 version_type=linux
15051 need_lib_prefix=no
15052 need_version=no
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15054 soname_spec='${libname}${release}${shared_ext}$major'
15055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath=no
15058 hardcode_into_libs=yes
15061 irix5* | irix6* | nonstopux*)
15062 case $host_os in
15063 nonstopux*) version_type=nonstopux ;;
15065 if test "$lt_cv_prog_gnu_ld" = yes; then
15066 version_type=linux
15067 else
15068 version_type=irix
15069 fi ;;
15070 esac
15071 need_lib_prefix=no
15072 need_version=no
15073 soname_spec='${libname}${release}${shared_ext}$major'
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15075 case $host_os in
15076 irix5* | nonstopux*)
15077 libsuff= shlibsuff=
15080 case $LD in # libtool.m4 will add one of these switches to LD
15081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15082 libsuff= shlibsuff= libmagic=32-bit;;
15083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15084 libsuff=32 shlibsuff=N32 libmagic=N32;;
15085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15087 *) libsuff= shlibsuff= libmagic=never-match;;
15088 esac
15090 esac
15091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15092 shlibpath_overrides_runpath=no
15093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15095 hardcode_into_libs=yes
15098 # No shared lib support for Linux oldld, aout, or coff.
15099 linux*oldld* | linux*aout* | linux*coff*)
15100 dynamic_linker=no
15103 # This must be Linux ELF.
15104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15105 version_type=linux
15106 need_lib_prefix=no
15107 need_version=no
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath=no
15114 # Some binutils ld are patched to set DT_RUNPATH
15115 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 lt_cv_shlibpath_overrides_runpath=no
15119 save_LDFLAGS=$LDFLAGS
15120 save_libdir=$libdir
15121 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15122 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15127 main ()
15131 return 0;
15133 _ACEOF
15134 if ac_fn_cxx_try_link "$LINENO"; then :
15135 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15136 lt_cv_shlibpath_overrides_runpath=yes
15139 rm -f core conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
15141 LDFLAGS=$save_LDFLAGS
15142 libdir=$save_libdir
15146 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15148 # This implies no fast_install, which is unacceptable.
15149 # Some rework will be needed to allow for fast_install
15150 # before this can be enabled.
15151 hardcode_into_libs=yes
15153 # Append ld.so.conf contents to the search path
15154 if test -f /etc/ld.so.conf; then
15155 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' ' '`
15156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15159 # We used to test for /lib/ld.so.1 and disable shared libraries on
15160 # powerpc, because MkLinux only supported shared libraries with the
15161 # GNU dynamic linker. Since this was broken with cross compilers,
15162 # most powerpc-linux boxes support dynamic linking these days and
15163 # people can always --disable-shared, the test was removed, and we
15164 # assume the GNU/Linux dynamic linker is in use.
15165 dynamic_linker='GNU/Linux ld.so'
15168 netbsd*)
15169 version_type=sunos
15170 need_lib_prefix=no
15171 need_version=no
15172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15175 dynamic_linker='NetBSD (a.out) ld.so'
15176 else
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 dynamic_linker='NetBSD ld.elf_so'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 shlibpath_overrides_runpath=yes
15183 hardcode_into_libs=yes
15186 newsos6)
15187 version_type=linux
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 shlibpath_overrides_runpath=yes
15193 *nto* | *qnx*)
15194 version_type=qnx
15195 need_lib_prefix=no
15196 need_version=no
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 shlibpath_var=LD_LIBRARY_PATH
15200 shlibpath_overrides_runpath=no
15201 hardcode_into_libs=yes
15202 dynamic_linker='ldqnx.so'
15205 openbsd*)
15206 version_type=sunos
15207 sys_lib_dlsearch_path_spec="/usr/lib"
15208 need_lib_prefix=no
15209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15210 case $host_os in
15211 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15212 *) need_version=no ;;
15213 esac
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15218 case $host_os in
15219 openbsd2.[89] | openbsd2.[89].*)
15220 shlibpath_overrides_runpath=no
15223 shlibpath_overrides_runpath=yes
15225 esac
15226 else
15227 shlibpath_overrides_runpath=yes
15231 os2*)
15232 libname_spec='$name'
15233 shrext_cmds=".dll"
15234 need_lib_prefix=no
15235 library_names_spec='$libname${shared_ext} $libname.a'
15236 dynamic_linker='OS/2 ld.exe'
15237 shlibpath_var=LIBPATH
15240 osf3* | osf4* | osf5*)
15241 version_type=osf
15242 need_lib_prefix=no
15243 need_version=no
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15251 rdos*)
15252 dynamic_linker=no
15255 solaris*)
15256 version_type=linux
15257 need_lib_prefix=no
15258 need_version=no
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=yes
15263 hardcode_into_libs=yes
15264 # ldd complains unless libraries are executable
15265 postinstall_cmds='chmod +x $lib'
15268 sunos4*)
15269 version_type=sunos
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 shlibpath_overrides_runpath=yes
15274 if test "$with_gnu_ld" = yes; then
15275 need_lib_prefix=no
15277 need_version=yes
15280 sysv4 | sysv4.3*)
15281 version_type=linux
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 case $host_vendor in
15286 sni)
15287 shlibpath_overrides_runpath=no
15288 need_lib_prefix=no
15289 runpath_var=LD_RUN_PATH
15291 siemens)
15292 need_lib_prefix=no
15294 motorola)
15295 need_lib_prefix=no
15296 need_version=no
15297 shlibpath_overrides_runpath=no
15298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15300 esac
15303 sysv4*MP*)
15304 if test -d /usr/nec ;then
15305 version_type=linux
15306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15307 soname_spec='$libname${shared_ext}.$major'
15308 shlibpath_var=LD_LIBRARY_PATH
15312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15313 version_type=freebsd-elf
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15321 if test "$with_gnu_ld" = yes; then
15322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15323 else
15324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15325 case $host_os in
15326 sco3.2v5*)
15327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15329 esac
15331 sys_lib_dlsearch_path_spec='/usr/lib'
15334 tpf*)
15335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15336 version_type=linux
15337 need_lib_prefix=no
15338 need_version=no
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=no
15342 hardcode_into_libs=yes
15345 uts4*)
15346 version_type=linux
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 shlibpath_var=LD_LIBRARY_PATH
15353 dynamic_linker=no
15355 esac
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15357 $as_echo "$dynamic_linker" >&6; }
15358 test "$dynamic_linker" = no && can_build_shared=no
15360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15361 if test "$GCC" = yes; then
15362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15365 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15366 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15368 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15369 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15410 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15411 hardcode_action_CXX=
15412 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15413 test -n "$runpath_var_CXX" ||
15414 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15416 # We can hardcode non-existent directories.
15417 if test "$hardcode_direct_CXX" != no &&
15418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15419 # have to relink, otherwise we might link with an installed library
15420 # when we should be linking with a yet-to-be-installed one
15421 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15422 test "$hardcode_minus_L_CXX" != no; then
15423 # Linking always hardcodes the temporary library directory.
15424 hardcode_action_CXX=relink
15425 else
15426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15427 hardcode_action_CXX=immediate
15429 else
15430 # We cannot hardcode anything, or else we can only hardcode existing
15431 # directories.
15432 hardcode_action_CXX=unsupported
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15435 $as_echo "$hardcode_action_CXX" >&6; }
15437 if test "$hardcode_action_CXX" = relink ||
15438 test "$inherit_rpath_CXX" = yes; then
15439 # Fast installation is not supported
15440 enable_fast_install=no
15441 elif test "$shlibpath_overrides_runpath" = yes ||
15442 test "$enable_shared" = no; then
15443 # Fast installation is not necessary
15444 enable_fast_install=needless
15453 fi # test -n "$compiler"
15455 CC=$lt_save_CC
15456 LDCXX=$LD
15457 LD=$lt_save_LD
15458 GCC=$lt_save_GCC
15459 with_gnu_ld=$lt_save_with_gnu_ld
15460 lt_cv_path_LDCXX=$lt_cv_path_LD
15461 lt_cv_path_LD=$lt_save_path_LD
15462 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15463 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15464 fi # test "$_lt_caught_CXX_error" != yes
15466 ac_ext=c
15467 ac_cpp='$CPP $CPPFLAGS'
15468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15484 ac_config_commands="$ac_config_commands libtool"
15489 # Only expand once:
15495 case $host in
15496 *-cygwin* | *-mingw*)
15497 # 'host' will be top-level target in the case of a target lib,
15498 # we must compare to with_cross_host to decide if this is a native
15499 # or cross-compiler and select where to install dlls appropriately.
15500 if test -n "$with_cross_host" &&
15501 test x"$with_cross_host" != x"no"; then
15502 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15503 else
15504 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15508 lt_host_flags=
15510 esac
15517 # For libtool versioning info, format is CURRENT:REVISION:AGE
15518 libtool_VERSION=1:0:0
15521 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15524 if test "${multilib}" = "yes"; then
15525 multilib_arg="--enable-multilib"
15526 else
15527 multilib_arg=
15530 ac_config_files="$ac_config_files Makefile"
15533 if test "x$VTV_SUPPORTED" = "xyes"; then
15534 ac_config_files="$ac_config_files testsuite/Makefile"
15538 case "$target_os" in
15539 cygwin*|mingw32*)
15540 vtv_cygmin="yes"
15543 vtv_cygmin="no"
15545 esac
15547 if test $vtv_cygmin = yes; then
15548 VTV_CYGMIN_TRUE=
15549 VTV_CYGMIN_FALSE='#'
15550 else
15551 VTV_CYGMIN_TRUE='#'
15552 VTV_CYGMIN_FALSE=
15556 cat >confcache <<\_ACEOF
15557 # This file is a shell script that caches the results of configure
15558 # tests run on this system so they can be shared between configure
15559 # scripts and configure runs, see configure's option --config-cache.
15560 # It is not useful on other systems. If it contains results you don't
15561 # want to keep, you may remove or edit it.
15563 # config.status only pays attention to the cache file if you give it
15564 # the --recheck option to rerun configure.
15566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15568 # following values.
15570 _ACEOF
15572 # The following way of writing the cache mishandles newlines in values,
15573 # but we know of no workaround that is simple, portable, and efficient.
15574 # So, we kill variables containing newlines.
15575 # Ultrix sh set writes to stderr and can't be redirected directly,
15576 # and sets the high bit in the cache file unless we assign to the vars.
15578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15579 eval ac_val=\$$ac_var
15580 case $ac_val in #(
15581 *${as_nl}*)
15582 case $ac_var in #(
15583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15585 esac
15586 case $ac_var in #(
15587 _ | IFS | as_nl) ;; #(
15588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15589 *) { eval $ac_var=; unset $ac_var;} ;;
15590 esac ;;
15591 esac
15592 done
15594 (set) 2>&1 |
15595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15596 *${as_nl}ac_space=\ *)
15597 # `set' does not quote correctly, so add quotes: double-quote
15598 # substitution turns \\\\ into \\, and sed turns \\ into \.
15599 sed -n \
15600 "s/'/'\\\\''/g;
15601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15602 ;; #(
15604 # `set' quotes correctly as required by POSIX, so do not add quotes.
15605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15607 esac |
15608 sort
15610 sed '
15611 /^ac_cv_env_/b end
15612 t clear
15613 :clear
15614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15615 t end
15616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15617 :end' >>confcache
15618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15619 if test -w "$cache_file"; then
15620 test "x$cache_file" != "x/dev/null" &&
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15622 $as_echo "$as_me: updating cache $cache_file" >&6;}
15623 cat confcache >$cache_file
15624 else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15626 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15629 rm -f confcache
15631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15632 # Let make expand exec_prefix.
15633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15635 # Transform confdefs.h into DEFS.
15636 # Protect against shell expansion while executing Makefile rules.
15637 # Protect against Makefile macro expansion.
15639 # If the first sed substitution is executed (which looks for macros that
15640 # take arguments), then branch to the quote section. Otherwise,
15641 # look for a macro that doesn't take arguments.
15642 ac_script='
15643 :mline
15644 /\\$/{
15646 s,\\\n,,
15647 b mline
15649 t clear
15650 :clear
15651 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15652 t quote
15653 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15654 t quote
15655 b any
15656 :quote
15657 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15658 s/\[/\\&/g
15659 s/\]/\\&/g
15660 s/\$/$$/g
15662 :any
15665 s/^\n//
15666 s/\n/ /g
15670 DEFS=`sed -n "$ac_script" confdefs.h`
15673 ac_libobjs=
15674 ac_ltlibobjs=
15675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15676 # 1. Remove the extension, and $U if already installed.
15677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15678 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15680 # will be set to the directory where LIBOBJS objects are built.
15681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15683 done
15684 LIBOBJS=$ac_libobjs
15686 LTLIBOBJS=$ac_ltlibobjs
15689 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15690 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15693 if test -n "$EXEEXT"; then
15694 am__EXEEXT_TRUE=
15695 am__EXEEXT_FALSE='#'
15696 else
15697 am__EXEEXT_TRUE='#'
15698 am__EXEEXT_FALSE=
15701 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15702 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15706 as_fn_error "conditional \"AMDEP\" was never defined.
15707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15710 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15714 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15718 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15721 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15722 as_fn_error "conditional \"VTV_CYGMIN\" was never defined.
15723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 : ${CONFIG_STATUS=./config.status}
15727 ac_write_fail=0
15728 ac_clean_files_save=$ac_clean_files
15729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15732 as_write_fail=0
15733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15734 #! $SHELL
15735 # Generated by $as_me.
15736 # Run this file to recreate the current configuration.
15737 # Compiler output produced by configure, useful for debugging
15738 # configure, is in config.log if it exists.
15740 debug=false
15741 ac_cs_recheck=false
15742 ac_cs_silent=false
15744 SHELL=\${CONFIG_SHELL-$SHELL}
15745 export SHELL
15746 _ASEOF
15747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15748 ## -------------------- ##
15749 ## M4sh Initialization. ##
15750 ## -------------------- ##
15752 # Be more Bourne compatible
15753 DUALCASE=1; export DUALCASE # for MKS sh
15754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15755 emulate sh
15756 NULLCMD=:
15757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15758 # is contrary to our usage. Disable this feature.
15759 alias -g '${1+"$@"}'='"$@"'
15760 setopt NO_GLOB_SUBST
15761 else
15762 case `(set -o) 2>/dev/null` in #(
15763 *posix*) :
15764 set -o posix ;; #(
15765 *) :
15767 esac
15771 as_nl='
15773 export as_nl
15774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15778 # Prefer a ksh shell builtin over an external printf program on Solaris,
15779 # but without wasting forks for bash or zsh.
15780 if test -z "$BASH_VERSION$ZSH_VERSION" \
15781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15782 as_echo='print -r --'
15783 as_echo_n='print -rn --'
15784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15785 as_echo='printf %s\n'
15786 as_echo_n='printf %s'
15787 else
15788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15790 as_echo_n='/usr/ucb/echo -n'
15791 else
15792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15793 as_echo_n_body='eval
15794 arg=$1;
15795 case $arg in #(
15796 *"$as_nl"*)
15797 expr "X$arg" : "X\\(.*\\)$as_nl";
15798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15799 esac;
15800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15802 export as_echo_n_body
15803 as_echo_n='sh -c $as_echo_n_body as_echo'
15805 export as_echo_body
15806 as_echo='sh -c $as_echo_body as_echo'
15809 # The user is always right.
15810 if test "${PATH_SEPARATOR+set}" != set; then
15811 PATH_SEPARATOR=:
15812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15814 PATH_SEPARATOR=';'
15819 # IFS
15820 # We need space, tab and new line, in precisely that order. Quoting is
15821 # there to prevent editors from complaining about space-tab.
15822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15823 # splitting by setting IFS to empty value.)
15824 IFS=" "" $as_nl"
15826 # Find who we are. Look in the path if we contain no directory separator.
15827 case $0 in #((
15828 *[\\/]* ) as_myself=$0 ;;
15829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830 for as_dir in $PATH
15832 IFS=$as_save_IFS
15833 test -z "$as_dir" && as_dir=.
15834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15835 done
15836 IFS=$as_save_IFS
15839 esac
15840 # We did not find ourselves, most probably we were run as `sh COMMAND'
15841 # in which case we are not to be found in the path.
15842 if test "x$as_myself" = x; then
15843 as_myself=$0
15845 if test ! -f "$as_myself"; then
15846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15847 exit 1
15850 # Unset variables that we do not need and which cause bugs (e.g. in
15851 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15852 # suppresses any "Segmentation fault" message there. '((' could
15853 # trigger a bug in pdksh 5.2.14.
15854 for as_var in BASH_ENV ENV MAIL MAILPATH
15855 do eval test x\${$as_var+set} = xset \
15856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15857 done
15858 PS1='$ '
15859 PS2='> '
15860 PS4='+ '
15862 # NLS nuisances.
15863 LC_ALL=C
15864 export LC_ALL
15865 LANGUAGE=C
15866 export LANGUAGE
15868 # CDPATH.
15869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15872 # as_fn_error ERROR [LINENO LOG_FD]
15873 # ---------------------------------
15874 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15875 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15876 # script with status $?, using 1 if that was 0.
15877 as_fn_error ()
15879 as_status=$?; test $as_status -eq 0 && as_status=1
15880 if test "$3"; then
15881 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15884 $as_echo "$as_me: error: $1" >&2
15885 as_fn_exit $as_status
15886 } # as_fn_error
15889 # as_fn_set_status STATUS
15890 # -----------------------
15891 # Set $? to STATUS, without forking.
15892 as_fn_set_status ()
15894 return $1
15895 } # as_fn_set_status
15897 # as_fn_exit STATUS
15898 # -----------------
15899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15900 as_fn_exit ()
15902 set +e
15903 as_fn_set_status $1
15904 exit $1
15905 } # as_fn_exit
15907 # as_fn_unset VAR
15908 # ---------------
15909 # Portably unset VAR.
15910 as_fn_unset ()
15912 { eval $1=; unset $1;}
15914 as_unset=as_fn_unset
15915 # as_fn_append VAR VALUE
15916 # ----------------------
15917 # Append the text in VALUE to the end of the definition contained in VAR. Take
15918 # advantage of any shell optimizations that allow amortized linear growth over
15919 # repeated appends, instead of the typical quadratic growth present in naive
15920 # implementations.
15921 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15922 eval 'as_fn_append ()
15924 eval $1+=\$2
15926 else
15927 as_fn_append ()
15929 eval $1=\$$1\$2
15931 fi # as_fn_append
15933 # as_fn_arith ARG...
15934 # ------------------
15935 # Perform arithmetic evaluation on the ARGs, and store the result in the
15936 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15937 # must be portable across $(()) and expr.
15938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15939 eval 'as_fn_arith ()
15941 as_val=$(( $* ))
15943 else
15944 as_fn_arith ()
15946 as_val=`expr "$@" || test $? -eq 1`
15948 fi # as_fn_arith
15951 if expr a : '\(a\)' >/dev/null 2>&1 &&
15952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15953 as_expr=expr
15954 else
15955 as_expr=false
15958 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15959 as_basename=basename
15960 else
15961 as_basename=false
15964 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15965 as_dirname=dirname
15966 else
15967 as_dirname=false
15970 as_me=`$as_basename -- "$0" ||
15971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15972 X"$0" : 'X\(//\)$' \| \
15973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15974 $as_echo X/"$0" |
15975 sed '/^.*\/\([^/][^/]*\)\/*$/{
15976 s//\1/
15979 /^X\/\(\/\/\)$/{
15980 s//\1/
15983 /^X\/\(\/\).*/{
15984 s//\1/
15987 s/.*/./; q'`
15989 # Avoid depending upon Character Ranges.
15990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15993 as_cr_digits='0123456789'
15994 as_cr_alnum=$as_cr_Letters$as_cr_digits
15996 ECHO_C= ECHO_N= ECHO_T=
15997 case `echo -n x` in #(((((
15998 -n*)
15999 case `echo 'xy\c'` in
16000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16001 xy) ECHO_C='\c';;
16002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16003 ECHO_T=' ';;
16004 esac;;
16006 ECHO_N='-n';;
16007 esac
16009 rm -f conf$$ conf$$.exe conf$$.file
16010 if test -d conf$$.dir; then
16011 rm -f conf$$.dir/conf$$.file
16012 else
16013 rm -f conf$$.dir
16014 mkdir conf$$.dir 2>/dev/null
16016 if (echo >conf$$.file) 2>/dev/null; then
16017 if ln -s conf$$.file conf$$ 2>/dev/null; then
16018 as_ln_s='ln -s'
16019 # ... but there are two gotchas:
16020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16022 # In both cases, we have to default to `cp -p'.
16023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16024 as_ln_s='cp -p'
16025 elif ln conf$$.file conf$$ 2>/dev/null; then
16026 as_ln_s=ln
16027 else
16028 as_ln_s='cp -p'
16030 else
16031 as_ln_s='cp -p'
16033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16034 rmdir conf$$.dir 2>/dev/null
16037 # as_fn_mkdir_p
16038 # -------------
16039 # Create "$as_dir" as a directory, including parents if necessary.
16040 as_fn_mkdir_p ()
16043 case $as_dir in #(
16044 -*) as_dir=./$as_dir;;
16045 esac
16046 test -d "$as_dir" || eval $as_mkdir_p || {
16047 as_dirs=
16048 while :; do
16049 case $as_dir in #(
16050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16051 *) as_qdir=$as_dir;;
16052 esac
16053 as_dirs="'$as_qdir' $as_dirs"
16054 as_dir=`$as_dirname -- "$as_dir" ||
16055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16056 X"$as_dir" : 'X\(//\)[^/]' \| \
16057 X"$as_dir" : 'X\(//\)$' \| \
16058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16059 $as_echo X"$as_dir" |
16060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16061 s//\1/
16064 /^X\(\/\/\)[^/].*/{
16065 s//\1/
16068 /^X\(\/\/\)$/{
16069 s//\1/
16072 /^X\(\/\).*/{
16073 s//\1/
16076 s/.*/./; q'`
16077 test -d "$as_dir" && break
16078 done
16079 test -z "$as_dirs" || eval "mkdir $as_dirs"
16080 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16083 } # as_fn_mkdir_p
16084 if mkdir -p . 2>/dev/null; then
16085 as_mkdir_p='mkdir -p "$as_dir"'
16086 else
16087 test -d ./-p && rmdir ./-p
16088 as_mkdir_p=false
16091 if test -x / >/dev/null 2>&1; then
16092 as_test_x='test -x'
16093 else
16094 if ls -dL / >/dev/null 2>&1; then
16095 as_ls_L_option=L
16096 else
16097 as_ls_L_option=
16099 as_test_x='
16100 eval sh -c '\''
16101 if test -d "$1"; then
16102 test -d "$1/.";
16103 else
16104 case $1 in #(
16105 -*)set "./$1";;
16106 esac;
16107 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16108 ???[sx]*):;;*)false;;esac;fi
16109 '\'' sh
16112 as_executable_p=$as_test_x
16114 # Sed expression to map a string onto a valid CPP name.
16115 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16117 # Sed expression to map a string onto a valid variable name.
16118 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16121 exec 6>&1
16122 ## ----------------------------------- ##
16123 ## Main body of $CONFIG_STATUS script. ##
16124 ## ----------------------------------- ##
16125 _ASEOF
16126 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16129 # Save the log message, to keep $0 and so on meaningful, and to
16130 # report actual input values of CONFIG_FILES etc. instead of their
16131 # values after options handling.
16132 ac_log="
16133 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16134 generated by GNU Autoconf 2.64. Invocation command line was
16136 CONFIG_FILES = $CONFIG_FILES
16137 CONFIG_HEADERS = $CONFIG_HEADERS
16138 CONFIG_LINKS = $CONFIG_LINKS
16139 CONFIG_COMMANDS = $CONFIG_COMMANDS
16140 $ $0 $@
16142 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16145 _ACEOF
16147 case $ac_config_files in *"
16148 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16149 esac
16153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16154 # Files that config.status was made for.
16155 config_files="$ac_config_files"
16156 config_commands="$ac_config_commands"
16158 _ACEOF
16160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16161 ac_cs_usage="\
16162 \`$as_me' instantiates files and other configuration actions
16163 from templates according to the current configuration. Unless the files
16164 and actions are specified as TAGs, all are instantiated by default.
16166 Usage: $0 [OPTION]... [TAG]...
16168 -h, --help print this help, then exit
16169 -V, --version print version number and configuration settings, then exit
16170 -q, --quiet, --silent
16171 do not print progress messages
16172 -d, --debug don't remove temporary files
16173 --recheck update $as_me by reconfiguring in the same conditions
16174 --file=FILE[:TEMPLATE]
16175 instantiate the configuration file FILE
16177 Configuration files:
16178 $config_files
16180 Configuration commands:
16181 $config_commands
16183 Report bugs to the package provider.
16184 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16185 General help using GNU software: <http://www.gnu.org/gethelp/>."
16187 _ACEOF
16188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16189 ac_cs_version="\\
16190 GNU Vtable Verification Runtime Library config.status 1.0
16191 configured by $0, generated by GNU Autoconf 2.64,
16192 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16194 Copyright (C) 2009 Free Software Foundation, Inc.
16195 This config.status script is free software; the Free Software Foundation
16196 gives unlimited permission to copy, distribute and modify it."
16198 ac_pwd='$ac_pwd'
16199 srcdir='$srcdir'
16200 INSTALL='$INSTALL'
16201 MKDIR_P='$MKDIR_P'
16202 AWK='$AWK'
16203 test -n "\$AWK" || AWK=awk
16204 _ACEOF
16206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16207 # The default lists apply if the user does not specify any file.
16208 ac_need_defaults=:
16209 while test $# != 0
16211 case $1 in
16212 --*=*)
16213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16215 ac_shift=:
16218 ac_option=$1
16219 ac_optarg=$2
16220 ac_shift=shift
16222 esac
16224 case $ac_option in
16225 # Handling of the options.
16226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16227 ac_cs_recheck=: ;;
16228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16229 $as_echo "$ac_cs_version"; exit ;;
16230 --debug | --debu | --deb | --de | --d | -d )
16231 debug=: ;;
16232 --file | --fil | --fi | --f )
16233 $ac_shift
16234 case $ac_optarg in
16235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16236 esac
16237 as_fn_append CONFIG_FILES " '$ac_optarg'"
16238 ac_need_defaults=false;;
16239 --he | --h | --help | --hel | -h )
16240 $as_echo "$ac_cs_usage"; exit ;;
16241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16242 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16243 ac_cs_silent=: ;;
16245 # This is an error.
16246 -*) as_fn_error "unrecognized option: \`$1'
16247 Try \`$0 --help' for more information." ;;
16249 *) as_fn_append ac_config_targets " $1"
16250 ac_need_defaults=false ;;
16252 esac
16253 shift
16254 done
16256 ac_configure_extra_args=
16258 if $ac_cs_silent; then
16259 exec 6>/dev/null
16260 ac_configure_extra_args="$ac_configure_extra_args --silent"
16263 _ACEOF
16264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16265 if \$ac_cs_recheck; then
16266 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16267 shift
16268 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16269 CONFIG_SHELL='$SHELL'
16270 export CONFIG_SHELL
16271 exec "\$@"
16274 _ACEOF
16275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16276 exec 5>>config.log
16278 echo
16279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16280 ## Running $as_me. ##
16281 _ASBOX
16282 $as_echo "$ac_log"
16283 } >&5
16285 _ACEOF
16286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16288 # INIT-COMMANDS
16291 srcdir="$srcdir"
16292 host="$host"
16293 target="$target"
16294 with_multisubdir="$with_multisubdir"
16295 with_multisrctop="$with_multisrctop"
16296 with_target_subdir="$with_target_subdir"
16297 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16298 multi_basedir="$multi_basedir"
16299 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16300 CC="$CC"
16301 CXX="$CXX"
16302 GFORTRAN="$GFORTRAN"
16303 GCJ="$GCJ"
16304 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16307 # The HP-UX ksh and POSIX shell print the target directory to stdout
16308 # if CDPATH is set.
16309 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16311 sed_quote_subst='$sed_quote_subst'
16312 double_quote_subst='$double_quote_subst'
16313 delay_variable_subst='$delay_variable_subst'
16314 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16315 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16316 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16318 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16319 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16320 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16321 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16322 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16323 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16324 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16325 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16326 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16327 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16328 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16329 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16330 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16331 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16332 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16333 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16334 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16335 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16336 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16337 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16338 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16339 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16340 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16341 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16342 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16343 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16344 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16345 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16346 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16347 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16348 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16349 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16350 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16351 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16352 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16353 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16354 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16355 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16356 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16357 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16358 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16359 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16360 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16361 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16362 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"`'
16363 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16364 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16365 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16366 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16367 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16368 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16369 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16370 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16371 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16372 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16373 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16374 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16375 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16376 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16377 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16378 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16379 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16380 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16381 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16382 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16383 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16384 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16385 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16386 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16387 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16388 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16389 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16390 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16391 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16392 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16393 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16394 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16395 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16396 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16397 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16398 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16399 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16400 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16401 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16402 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16403 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16404 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16405 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16406 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16407 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16408 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16409 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16410 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16411 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16412 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16413 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16414 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16415 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16416 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16417 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16418 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16419 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16420 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16421 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16422 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16423 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16424 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16425 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16426 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16427 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16428 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16429 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16430 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16431 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16432 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16433 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16434 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16435 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16436 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16437 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16438 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16439 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16440 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16441 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16442 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16443 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16444 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16445 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16446 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16447 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16448 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16449 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16450 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16451 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16452 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16453 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16454 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16455 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16456 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16457 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16458 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16459 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16460 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16461 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16462 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16463 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16464 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16465 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16466 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16467 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16468 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16469 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16470 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16471 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16472 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16473 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16474 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16475 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16476 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16477 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16478 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16479 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16480 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16481 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16482 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16483 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16484 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16485 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16486 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16487 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16488 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16490 LTCC='$LTCC'
16491 LTCFLAGS='$LTCFLAGS'
16492 compiler='$compiler_DEFAULT'
16494 # A function that is used when there is no print builtin or printf.
16495 func_fallback_echo ()
16497 eval 'cat <<_LTECHO_EOF
16499 _LTECHO_EOF'
16502 # Quote evaled strings.
16503 for var in SHELL \
16504 ECHO \
16505 SED \
16506 GREP \
16507 EGREP \
16508 FGREP \
16509 LD \
16510 NM \
16511 LN_S \
16512 lt_SP2NL \
16513 lt_NL2SP \
16514 reload_flag \
16515 OBJDUMP \
16516 deplibs_check_method \
16517 file_magic_cmd \
16518 AR \
16519 AR_FLAGS \
16520 STRIP \
16521 RANLIB \
16522 CC \
16523 CFLAGS \
16524 compiler \
16525 lt_cv_sys_global_symbol_pipe \
16526 lt_cv_sys_global_symbol_to_cdecl \
16527 lt_cv_sys_global_symbol_to_c_name_address \
16528 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16529 lt_prog_compiler_no_builtin_flag \
16530 lt_prog_compiler_wl \
16531 lt_prog_compiler_pic \
16532 lt_prog_compiler_static \
16533 lt_cv_prog_compiler_c_o \
16534 need_locks \
16535 DSYMUTIL \
16536 NMEDIT \
16537 LIPO \
16538 OTOOL \
16539 OTOOL64 \
16540 shrext_cmds \
16541 export_dynamic_flag_spec \
16542 whole_archive_flag_spec \
16543 compiler_needs_object \
16544 with_gnu_ld \
16545 allow_undefined_flag \
16546 no_undefined_flag \
16547 hardcode_libdir_flag_spec \
16548 hardcode_libdir_flag_spec_ld \
16549 hardcode_libdir_separator \
16550 fix_srcfile_path \
16551 exclude_expsyms \
16552 include_expsyms \
16553 file_list_spec \
16554 variables_saved_for_relink \
16555 libname_spec \
16556 library_names_spec \
16557 soname_spec \
16558 install_override_mode \
16559 finish_eval \
16560 old_striplib \
16561 striplib \
16562 compiler_lib_search_dirs \
16563 predep_objects \
16564 postdep_objects \
16565 predeps \
16566 postdeps \
16567 compiler_lib_search_path \
16568 LD_CXX \
16569 reload_flag_CXX \
16570 compiler_CXX \
16571 lt_prog_compiler_no_builtin_flag_CXX \
16572 lt_prog_compiler_wl_CXX \
16573 lt_prog_compiler_pic_CXX \
16574 lt_prog_compiler_static_CXX \
16575 lt_cv_prog_compiler_c_o_CXX \
16576 export_dynamic_flag_spec_CXX \
16577 whole_archive_flag_spec_CXX \
16578 compiler_needs_object_CXX \
16579 with_gnu_ld_CXX \
16580 allow_undefined_flag_CXX \
16581 no_undefined_flag_CXX \
16582 hardcode_libdir_flag_spec_CXX \
16583 hardcode_libdir_flag_spec_ld_CXX \
16584 hardcode_libdir_separator_CXX \
16585 fix_srcfile_path_CXX \
16586 exclude_expsyms_CXX \
16587 include_expsyms_CXX \
16588 file_list_spec_CXX \
16589 compiler_lib_search_dirs_CXX \
16590 predep_objects_CXX \
16591 postdep_objects_CXX \
16592 predeps_CXX \
16593 postdeps_CXX \
16594 compiler_lib_search_path_CXX; do
16595 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16596 *[\\\\\\\`\\"\\\$]*)
16597 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16600 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16602 esac
16603 done
16605 # Double-quote double-evaled strings.
16606 for var in reload_cmds \
16607 old_postinstall_cmds \
16608 old_postuninstall_cmds \
16609 old_archive_cmds \
16610 extract_expsyms_cmds \
16611 old_archive_from_new_cmds \
16612 old_archive_from_expsyms_cmds \
16613 archive_cmds \
16614 archive_expsym_cmds \
16615 module_cmds \
16616 module_expsym_cmds \
16617 export_symbols_cmds \
16618 prelink_cmds \
16619 postinstall_cmds \
16620 postuninstall_cmds \
16621 finish_cmds \
16622 sys_lib_search_path_spec \
16623 sys_lib_dlsearch_path_spec \
16624 reload_cmds_CXX \
16625 old_archive_cmds_CXX \
16626 old_archive_from_new_cmds_CXX \
16627 old_archive_from_expsyms_cmds_CXX \
16628 archive_cmds_CXX \
16629 archive_expsym_cmds_CXX \
16630 module_cmds_CXX \
16631 module_expsym_cmds_CXX \
16632 export_symbols_cmds_CXX \
16633 prelink_cmds_CXX; do
16634 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16635 *[\\\\\\\`\\"\\\$]*)
16636 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16639 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16641 esac
16642 done
16644 ac_aux_dir='$ac_aux_dir'
16645 xsi_shell='$xsi_shell'
16646 lt_shell_append='$lt_shell_append'
16648 # See if we are running on zsh, and set the options which allow our
16649 # commands through without removal of \ escapes INIT.
16650 if test -n "\${ZSH_VERSION+set}" ; then
16651 setopt NO_GLOB_SUBST
16655 PACKAGE='$PACKAGE'
16656 VERSION='$VERSION'
16657 TIMESTAMP='$TIMESTAMP'
16658 RM='$RM'
16659 ofile='$ofile'
16666 _ACEOF
16668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16670 # Handling of arguments.
16671 for ac_config_target in $ac_config_targets
16673 case $ac_config_target in
16674 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16675 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16676 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16677 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16678 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16680 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16681 esac
16682 done
16685 # If the user did not use the arguments to specify the items to instantiate,
16686 # then the envvar interface is used. Set only those that are not.
16687 # We use the long form for the default assignment because of an extremely
16688 # bizarre bug on SunOS 4.1.3.
16689 if $ac_need_defaults; then
16690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16694 # Have a temporary directory for convenience. Make it in the build tree
16695 # simply because there is no reason against having it here, and in addition,
16696 # creating and moving files from /tmp can sometimes cause problems.
16697 # Hook for its removal unless debugging.
16698 # Note that there is a small window in which the directory will not be cleaned:
16699 # after its creation but before its name has been assigned to `$tmp'.
16700 $debug ||
16702 tmp=
16703 trap 'exit_status=$?
16704 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16706 trap 'as_fn_exit 1' 1 2 13 15
16708 # Create a (secure) tmp directory for tmp files.
16711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16712 test -n "$tmp" && test -d "$tmp"
16713 } ||
16715 tmp=./conf$$-$RANDOM
16716 (umask 077 && mkdir "$tmp")
16717 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16719 # Set up the scripts for CONFIG_FILES section.
16720 # No need to generate them if there are no CONFIG_FILES.
16721 # This happens for instance with `./config.status config.h'.
16722 if test -n "$CONFIG_FILES"; then
16725 ac_cr=`echo X | tr X '\015'`
16726 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16727 # But we know of no other shell where ac_cr would be empty at this
16728 # point, so we can use a bashism as a fallback.
16729 if test "x$ac_cr" = x; then
16730 eval ac_cr=\$\'\\r\'
16732 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16733 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16734 ac_cs_awk_cr='\r'
16735 else
16736 ac_cs_awk_cr=$ac_cr
16739 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16740 _ACEOF
16744 echo "cat >conf$$subs.awk <<_ACEOF" &&
16745 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16746 echo "_ACEOF"
16747 } >conf$$subs.sh ||
16748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16749 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16750 ac_delim='%!_!# '
16751 for ac_last_try in false false false false false :; do
16752 . ./conf$$subs.sh ||
16753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16755 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16756 if test $ac_delim_n = $ac_delim_num; then
16757 break
16758 elif $ac_last_try; then
16759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16760 else
16761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16763 done
16764 rm -f conf$$subs.sh
16766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16767 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16768 _ACEOF
16769 sed -n '
16771 s/^/S["/; s/!.*/"]=/
16774 s/^[^!]*!//
16775 :repl
16776 t repl
16777 s/'"$ac_delim"'$//
16778 t delim
16781 s/\(.\{148\}\).*/\1/
16782 t more1
16783 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16786 b repl
16787 :more1
16788 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16791 s/.\{148\}//
16792 t nl
16793 :delim
16795 s/\(.\{148\}\).*/\1/
16796 t more2
16797 s/["\\]/\\&/g; s/^/"/; s/$/"/
16800 :more2
16801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16804 s/.\{148\}//
16805 t delim
16806 ' <conf$$subs.awk | sed '
16807 /^[^""]/{
16809 s/\n//
16811 ' >>$CONFIG_STATUS || ac_write_fail=1
16812 rm -f conf$$subs.awk
16813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16814 _ACAWK
16815 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16816 for (key in S) S_is_set[key] = 1
16817 FS = "\a"
16821 line = $ 0
16822 nfields = split(line, field, "@")
16823 substed = 0
16824 len = length(field[1])
16825 for (i = 2; i < nfields; i++) {
16826 key = field[i]
16827 keylen = length(key)
16828 if (S_is_set[key]) {
16829 value = S[key]
16830 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16831 len += length(value) + length(field[++i])
16832 substed = 1
16833 } else
16834 len += 1 + keylen
16837 print line
16840 _ACAWK
16841 _ACEOF
16842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16843 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16844 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16845 else
16847 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16848 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16849 _ACEOF
16851 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16852 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16853 # trailing colons and then remove the whole line if VPATH becomes empty
16854 # (actually we leave an empty line to preserve line numbers).
16855 if test "x$srcdir" = x.; then
16856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16857 s/:*\$(srcdir):*/:/
16858 s/:*\${srcdir}:*/:/
16859 s/:*@srcdir@:*/:/
16860 s/^\([^=]*=[ ]*\):*/\1/
16861 s/:*$//
16862 s/^[^=]*=[ ]*$//
16866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16867 fi # test -n "$CONFIG_FILES"
16870 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16871 shift
16872 for ac_tag
16874 case $ac_tag in
16875 :[FHLC]) ac_mode=$ac_tag; continue;;
16876 esac
16877 case $ac_mode$ac_tag in
16878 :[FHL]*:*);;
16879 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16880 :[FH]-) ac_tag=-:-;;
16881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16882 esac
16883 ac_save_IFS=$IFS
16884 IFS=:
16885 set x $ac_tag
16886 IFS=$ac_save_IFS
16887 shift
16888 ac_file=$1
16889 shift
16891 case $ac_mode in
16892 :L) ac_source=$1;;
16893 :[FH])
16894 ac_file_inputs=
16895 for ac_f
16897 case $ac_f in
16898 -) ac_f="$tmp/stdin";;
16899 *) # Look for the file first in the build tree, then in the source tree
16900 # (if the path is not absolute). The absolute path cannot be DOS-style,
16901 # because $ac_f cannot contain `:'.
16902 test -f "$ac_f" ||
16903 case $ac_f in
16904 [\\/$]*) false;;
16905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16906 esac ||
16907 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16908 esac
16909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16910 as_fn_append ac_file_inputs " '$ac_f'"
16911 done
16913 # Let's still pretend it is `configure' which instantiates (i.e., don't
16914 # use $as_me), people would be surprised to read:
16915 # /* config.h. Generated by config.status. */
16916 configure_input='Generated from '`
16917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16918 `' by configure.'
16919 if test x"$ac_file" != x-; then
16920 configure_input="$ac_file. $configure_input"
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16922 $as_echo "$as_me: creating $ac_file" >&6;}
16924 # Neutralize special characters interpreted by sed in replacement strings.
16925 case $configure_input in #(
16926 *\&* | *\|* | *\\* )
16927 ac_sed_conf_input=`$as_echo "$configure_input" |
16928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16929 *) ac_sed_conf_input=$configure_input;;
16930 esac
16932 case $ac_tag in
16933 *:-:* | *:-) cat >"$tmp/stdin" \
16934 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16935 esac
16937 esac
16939 ac_dir=`$as_dirname -- "$ac_file" ||
16940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16941 X"$ac_file" : 'X\(//\)[^/]' \| \
16942 X"$ac_file" : 'X\(//\)$' \| \
16943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16944 $as_echo X"$ac_file" |
16945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16946 s//\1/
16949 /^X\(\/\/\)[^/].*/{
16950 s//\1/
16953 /^X\(\/\/\)$/{
16954 s//\1/
16957 /^X\(\/\).*/{
16958 s//\1/
16961 s/.*/./; q'`
16962 as_dir="$ac_dir"; as_fn_mkdir_p
16963 ac_builddir=.
16965 case "$ac_dir" in
16966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16969 # A ".." for each directory in $ac_dir_suffix.
16970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16971 case $ac_top_builddir_sub in
16972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16974 esac ;;
16975 esac
16976 ac_abs_top_builddir=$ac_pwd
16977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16978 # for backward compatibility:
16979 ac_top_builddir=$ac_top_build_prefix
16981 case $srcdir in
16982 .) # We are building in place.
16983 ac_srcdir=.
16984 ac_top_srcdir=$ac_top_builddir_sub
16985 ac_abs_top_srcdir=$ac_pwd ;;
16986 [\\/]* | ?:[\\/]* ) # Absolute name.
16987 ac_srcdir=$srcdir$ac_dir_suffix;
16988 ac_top_srcdir=$srcdir
16989 ac_abs_top_srcdir=$srcdir ;;
16990 *) # Relative name.
16991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16992 ac_top_srcdir=$ac_top_build_prefix$srcdir
16993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16994 esac
16995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16998 case $ac_mode in
17001 # CONFIG_FILE
17004 case $INSTALL in
17005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17007 esac
17008 ac_MKDIR_P=$MKDIR_P
17009 case $MKDIR_P in
17010 [\\/$]* | ?:[\\/]* ) ;;
17011 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17012 esac
17013 _ACEOF
17015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17016 # If the template does not know about datarootdir, expand it.
17017 # FIXME: This hack should be removed a few years after 2.60.
17018 ac_datarootdir_hack=; ac_datarootdir_seen=
17019 ac_sed_dataroot='
17020 /datarootdir/ {
17024 /@datadir@/p
17025 /@docdir@/p
17026 /@infodir@/p
17027 /@localedir@/p
17028 /@mandir@/p'
17029 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17030 *datarootdir*) ac_datarootdir_seen=yes;;
17031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17033 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17034 _ACEOF
17035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17036 ac_datarootdir_hack='
17037 s&@datadir@&$datadir&g
17038 s&@docdir@&$docdir&g
17039 s&@infodir@&$infodir&g
17040 s&@localedir@&$localedir&g
17041 s&@mandir@&$mandir&g
17042 s&\\\${datarootdir}&$datarootdir&g' ;;
17043 esac
17044 _ACEOF
17046 # Neutralize VPATH when `$srcdir' = `.'.
17047 # Shell code in configure.ac might set extrasub.
17048 # FIXME: do we really want to maintain this feature?
17049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17050 ac_sed_extra="$ac_vpsub
17051 $extrasub
17052 _ACEOF
17053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17056 s|@configure_input@|$ac_sed_conf_input|;t t
17057 s&@top_builddir@&$ac_top_builddir_sub&;t t
17058 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17059 s&@srcdir@&$ac_srcdir&;t t
17060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17061 s&@top_srcdir@&$ac_top_srcdir&;t t
17062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17063 s&@builddir@&$ac_builddir&;t t
17064 s&@abs_builddir@&$ac_abs_builddir&;t t
17065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17066 s&@INSTALL@&$ac_INSTALL&;t t
17067 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17068 $ac_datarootdir_hack
17070 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17071 || as_fn_error "could not create $ac_file" "$LINENO" 5
17073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17077 which seems to be undefined. Please make sure it is defined." >&5
17078 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17079 which seems to be undefined. Please make sure it is defined." >&2;}
17081 rm -f "$tmp/stdin"
17082 case $ac_file in
17083 -) cat "$tmp/out" && rm -f "$tmp/out";;
17084 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17085 esac \
17086 || as_fn_error "could not create $ac_file" "$LINENO" 5
17090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17091 $as_echo "$as_me: executing $ac_file commands" >&6;}
17093 esac
17096 case $ac_file$ac_mode in
17097 "default-1":C)
17098 # Only add multilib support code if we just rebuilt the top-level
17099 # Makefile.
17100 case " $CONFIG_FILES " in
17101 *" Makefile "*)
17102 ac_file=Makefile . ${multi_basedir}/config-ml.in
17104 esac ;;
17105 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17106 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17107 # are listed without --file. Let's play safe and only enable the eval
17108 # if we detect the quoting.
17109 case $CONFIG_FILES in
17110 *\'*) eval set x "$CONFIG_FILES" ;;
17111 *) set x $CONFIG_FILES ;;
17112 esac
17113 shift
17114 for mf
17116 # Strip MF so we end up with the name of the file.
17117 mf=`echo "$mf" | sed -e 's/:.*$//'`
17118 # Check whether this is an Automake generated Makefile or not.
17119 # We used to match only the files named `Makefile.in', but
17120 # some people rename them; so instead we look at the file content.
17121 # Grep'ing the first line is not enough: some people post-process
17122 # each Makefile.in and add a new line on top of each file to say so.
17123 # Grep'ing the whole file is not good either: AIX grep has a line
17124 # limit of 2048, but all sed's we know have understand at least 4000.
17125 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17126 dirpart=`$as_dirname -- "$mf" ||
17127 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128 X"$mf" : 'X\(//\)[^/]' \| \
17129 X"$mf" : 'X\(//\)$' \| \
17130 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17131 $as_echo X"$mf" |
17132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17133 s//\1/
17136 /^X\(\/\/\)[^/].*/{
17137 s//\1/
17140 /^X\(\/\/\)$/{
17141 s//\1/
17144 /^X\(\/\).*/{
17145 s//\1/
17148 s/.*/./; q'`
17149 else
17150 continue
17152 # Extract the definition of DEPDIR, am__include, and am__quote
17153 # from the Makefile without running `make'.
17154 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17155 test -z "$DEPDIR" && continue
17156 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17157 test -z "am__include" && continue
17158 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17159 # When using ansi2knr, U may be empty or an underscore; expand it
17160 U=`sed -n 's/^U = //p' < "$mf"`
17161 # Find all dependency output files, they are included files with
17162 # $(DEPDIR) in their names. We invoke sed twice because it is the
17163 # simplest approach to changing $(DEPDIR) to its actual value in the
17164 # expansion.
17165 for file in `sed -n "
17166 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17167 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17168 # Make sure the directory exists.
17169 test -f "$dirpart/$file" && continue
17170 fdir=`$as_dirname -- "$file" ||
17171 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17172 X"$file" : 'X\(//\)[^/]' \| \
17173 X"$file" : 'X\(//\)$' \| \
17174 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17175 $as_echo X"$file" |
17176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17177 s//\1/
17180 /^X\(\/\/\)[^/].*/{
17181 s//\1/
17184 /^X\(\/\/\)$/{
17185 s//\1/
17188 /^X\(\/\).*/{
17189 s//\1/
17192 s/.*/./; q'`
17193 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17194 # echo "creating $dirpart/$file"
17195 echo '# dummy' > "$dirpart/$file"
17196 done
17197 done
17200 "libtool":C)
17202 # See if we are running on zsh, and set the options which allow our
17203 # commands through without removal of \ escapes.
17204 if test -n "${ZSH_VERSION+set}" ; then
17205 setopt NO_GLOB_SUBST
17208 cfgfile="${ofile}T"
17209 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17210 $RM "$cfgfile"
17212 cat <<_LT_EOF >> "$cfgfile"
17213 #! $SHELL
17215 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17216 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17218 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17220 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17221 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17222 # Written by Gordon Matzigkeit, 1996
17224 # This file is part of GNU Libtool.
17226 # GNU Libtool is free software; you can redistribute it and/or
17227 # modify it under the terms of the GNU General Public License as
17228 # published by the Free Software Foundation; either version 2 of
17229 # the License, or (at your option) any later version.
17231 # As a special exception to the GNU General Public License,
17232 # if you distribute this file as part of a program or library that
17233 # is built using GNU Libtool, you may include this file under the
17234 # same distribution terms that you use for the rest of that program.
17236 # GNU Libtool is distributed in the hope that it will be useful,
17237 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17238 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17239 # GNU General Public License for more details.
17241 # You should have received a copy of the GNU General Public License
17242 # along with GNU Libtool; see the file COPYING. If not, a copy
17243 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17244 # obtained by writing to the Free Software Foundation, Inc.,
17245 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17248 # The names of the tagged configurations supported by this script.
17249 available_tags="CXX "
17251 # ### BEGIN LIBTOOL CONFIG
17253 # Which release of libtool.m4 was used?
17254 macro_version=$macro_version
17255 macro_revision=$macro_revision
17257 # Whether or not to build shared libraries.
17258 build_libtool_libs=$enable_shared
17260 # Whether or not to build static libraries.
17261 build_old_libs=$enable_static
17263 # What type of objects to build.
17264 pic_mode=$pic_mode
17266 # Whether or not to optimize for fast installation.
17267 fast_install=$enable_fast_install
17269 # Shell to use when invoking shell scripts.
17270 SHELL=$lt_SHELL
17272 # An echo program that protects backslashes.
17273 ECHO=$lt_ECHO
17275 # The host system.
17276 host_alias=$host_alias
17277 host=$host
17278 host_os=$host_os
17280 # The build system.
17281 build_alias=$build_alias
17282 build=$build
17283 build_os=$build_os
17285 # A sed program that does not truncate output.
17286 SED=$lt_SED
17288 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17289 Xsed="\$SED -e 1s/^X//"
17291 # A grep program that handles long lines.
17292 GREP=$lt_GREP
17294 # An ERE matcher.
17295 EGREP=$lt_EGREP
17297 # A literal string matcher.
17298 FGREP=$lt_FGREP
17300 # A BSD- or MS-compatible name lister.
17301 NM=$lt_NM
17303 # Whether we need soft or hard links.
17304 LN_S=$lt_LN_S
17306 # What is the maximum length of a command?
17307 max_cmd_len=$max_cmd_len
17309 # Object file suffix (normally "o").
17310 objext=$ac_objext
17312 # Executable file suffix (normally "").
17313 exeext=$exeext
17315 # whether the shell understands "unset".
17316 lt_unset=$lt_unset
17318 # turn spaces into newlines.
17319 SP2NL=$lt_lt_SP2NL
17321 # turn newlines into spaces.
17322 NL2SP=$lt_lt_NL2SP
17324 # An object symbol dumper.
17325 OBJDUMP=$lt_OBJDUMP
17327 # Method to check whether dependent libraries are shared objects.
17328 deplibs_check_method=$lt_deplibs_check_method
17330 # Command to use when deplibs_check_method == "file_magic".
17331 file_magic_cmd=$lt_file_magic_cmd
17333 # The archiver.
17334 AR=$lt_AR
17335 AR_FLAGS=$lt_AR_FLAGS
17337 # A symbol stripping program.
17338 STRIP=$lt_STRIP
17340 # Commands used to install an old-style archive.
17341 RANLIB=$lt_RANLIB
17342 old_postinstall_cmds=$lt_old_postinstall_cmds
17343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17345 # Whether to use a lock for old archive extraction.
17346 lock_old_archive_extraction=$lock_old_archive_extraction
17348 # A C compiler.
17349 LTCC=$lt_CC
17351 # LTCC compiler flags.
17352 LTCFLAGS=$lt_CFLAGS
17354 # Take the output of nm and produce a listing of raw symbols and C names.
17355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17357 # Transform the output of nm in a proper C declaration.
17358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17360 # Transform the output of nm in a C name address pair.
17361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17363 # Transform the output of nm in a C name address pair when lib prefix is needed.
17364 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17366 # The name of the directory that contains temporary libtool files.
17367 objdir=$objdir
17369 # Used to examine libraries when file_magic_cmd begins with "file".
17370 MAGIC_CMD=$MAGIC_CMD
17372 # Must we lock files when doing compilation?
17373 need_locks=$lt_need_locks
17375 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17376 DSYMUTIL=$lt_DSYMUTIL
17378 # Tool to change global to local symbols on Mac OS X.
17379 NMEDIT=$lt_NMEDIT
17381 # Tool to manipulate fat objects and archives on Mac OS X.
17382 LIPO=$lt_LIPO
17384 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17385 OTOOL=$lt_OTOOL
17387 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17388 OTOOL64=$lt_OTOOL64
17390 # Old archive suffix (normally "a").
17391 libext=$libext
17393 # Shared library suffix (normally ".so").
17394 shrext_cmds=$lt_shrext_cmds
17396 # The commands to extract the exported symbol list from a shared archive.
17397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17399 # Variables whose values should be saved in libtool wrapper scripts and
17400 # restored at link time.
17401 variables_saved_for_relink=$lt_variables_saved_for_relink
17403 # Do we need the "lib" prefix for modules?
17404 need_lib_prefix=$need_lib_prefix
17406 # Do we need a version for libraries?
17407 need_version=$need_version
17409 # Library versioning type.
17410 version_type=$version_type
17412 # Shared library runtime path variable.
17413 runpath_var=$runpath_var
17415 # Shared library path variable.
17416 shlibpath_var=$shlibpath_var
17418 # Is shlibpath searched before the hard-coded library search path?
17419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17421 # Format of library name prefix.
17422 libname_spec=$lt_libname_spec
17424 # List of archive names. First name is the real one, the rest are links.
17425 # The last name is the one that the linker finds with -lNAME
17426 library_names_spec=$lt_library_names_spec
17428 # The coded name of the library, if different from the real name.
17429 soname_spec=$lt_soname_spec
17431 # Permission mode override for installation of shared libraries.
17432 install_override_mode=$lt_install_override_mode
17434 # Command to use after installation of a shared archive.
17435 postinstall_cmds=$lt_postinstall_cmds
17437 # Command to use after uninstallation of a shared archive.
17438 postuninstall_cmds=$lt_postuninstall_cmds
17440 # Commands used to finish a libtool library installation in a directory.
17441 finish_cmds=$lt_finish_cmds
17443 # As "finish_cmds", except a single script fragment to be evaled but
17444 # not shown.
17445 finish_eval=$lt_finish_eval
17447 # Whether we should hardcode library paths into libraries.
17448 hardcode_into_libs=$hardcode_into_libs
17450 # Compile-time system search path for libraries.
17451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17453 # Run-time system search path for libraries.
17454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17456 # Whether dlopen is supported.
17457 dlopen_support=$enable_dlopen
17459 # Whether dlopen of programs is supported.
17460 dlopen_self=$enable_dlopen_self
17462 # Whether dlopen of statically linked programs is supported.
17463 dlopen_self_static=$enable_dlopen_self_static
17465 # Commands to strip libraries.
17466 old_striplib=$lt_old_striplib
17467 striplib=$lt_striplib
17470 # The linker used to build libraries.
17471 LD=$lt_LD
17473 # How to create reloadable object files.
17474 reload_flag=$lt_reload_flag
17475 reload_cmds=$lt_reload_cmds
17477 # Commands used to build an old-style archive.
17478 old_archive_cmds=$lt_old_archive_cmds
17480 # A language specific compiler.
17481 CC=$lt_compiler
17483 # Is the compiler the GNU compiler?
17484 with_gcc=$GCC
17486 # Compiler flag to turn off builtin functions.
17487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17489 # How to pass a linker flag through the compiler.
17490 wl=$lt_lt_prog_compiler_wl
17492 # Additional compiler flags for building library objects.
17493 pic_flag=$lt_lt_prog_compiler_pic
17495 # Compiler flag to prevent dynamic linking.
17496 link_static_flag=$lt_lt_prog_compiler_static
17498 # Does compiler simultaneously support -c and -o options?
17499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17501 # Whether or not to add -lc for building shared libraries.
17502 build_libtool_need_lc=$archive_cmds_need_lc
17504 # Whether or not to disallow shared libs when runtime libs are static.
17505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17507 # Compiler flag to allow reflexive dlopens.
17508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17510 # Compiler flag to generate shared objects directly from archives.
17511 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17513 # Whether the compiler copes with passing no objects directly.
17514 compiler_needs_object=$lt_compiler_needs_object
17516 # Create an old-style archive from a shared archive.
17517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17519 # Create a temporary old-style archive to link instead of a shared archive.
17520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17522 # Commands used to build a shared archive.
17523 archive_cmds=$lt_archive_cmds
17524 archive_expsym_cmds=$lt_archive_expsym_cmds
17526 # Commands used to build a loadable module if different from building
17527 # a shared archive.
17528 module_cmds=$lt_module_cmds
17529 module_expsym_cmds=$lt_module_expsym_cmds
17531 # Whether we are building with GNU ld or not.
17532 with_gnu_ld=$lt_with_gnu_ld
17534 # Flag that allows shared libraries with undefined symbols to be built.
17535 allow_undefined_flag=$lt_allow_undefined_flag
17537 # Flag that enforces no undefined symbols.
17538 no_undefined_flag=$lt_no_undefined_flag
17540 # Flag to hardcode \$libdir into a binary during linking.
17541 # This must work even if \$libdir does not exist
17542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17544 # If ld is used when linking, flag to hardcode \$libdir into a binary
17545 # during linking. This must work even if \$libdir does not exist.
17546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17548 # Whether we need a single "-rpath" flag with a separated argument.
17549 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17552 # DIR into the resulting binary.
17553 hardcode_direct=$hardcode_direct
17555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17556 # DIR into the resulting binary and the resulting library dependency is
17557 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17558 # library is relocated.
17559 hardcode_direct_absolute=$hardcode_direct_absolute
17561 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17562 # into the resulting binary.
17563 hardcode_minus_L=$hardcode_minus_L
17565 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17566 # into the resulting binary.
17567 hardcode_shlibpath_var=$hardcode_shlibpath_var
17569 # Set to "yes" if building a shared library automatically hardcodes DIR
17570 # into the library and all subsequent libraries and executables linked
17571 # against it.
17572 hardcode_automatic=$hardcode_automatic
17574 # Set to yes if linker adds runtime paths of dependent libraries
17575 # to runtime path list.
17576 inherit_rpath=$inherit_rpath
17578 # Whether libtool must link a program against all its dependency libraries.
17579 link_all_deplibs=$link_all_deplibs
17581 # Fix the shell variable \$srcfile for the compiler.
17582 fix_srcfile_path=$lt_fix_srcfile_path
17584 # Set to "yes" if exported symbols are required.
17585 always_export_symbols=$always_export_symbols
17587 # The commands to list exported symbols.
17588 export_symbols_cmds=$lt_export_symbols_cmds
17590 # Symbols that should not be listed in the preloaded symbols.
17591 exclude_expsyms=$lt_exclude_expsyms
17593 # Symbols that must always be exported.
17594 include_expsyms=$lt_include_expsyms
17596 # Commands necessary for linking programs (against libraries) with templates.
17597 prelink_cmds=$lt_prelink_cmds
17599 # Specify filename containing input files.
17600 file_list_spec=$lt_file_list_spec
17602 # How to hardcode a shared library path into an executable.
17603 hardcode_action=$hardcode_action
17605 # The directories searched by this compiler when creating a shared library.
17606 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17608 # Dependencies to place before and after the objects being linked to
17609 # create a shared library.
17610 predep_objects=$lt_predep_objects
17611 postdep_objects=$lt_postdep_objects
17612 predeps=$lt_predeps
17613 postdeps=$lt_postdeps
17615 # The library search path used internally by the compiler when linking
17616 # a shared library.
17617 compiler_lib_search_path=$lt_compiler_lib_search_path
17619 # ### END LIBTOOL CONFIG
17621 _LT_EOF
17623 case $host_os in
17624 aix3*)
17625 cat <<\_LT_EOF >> "$cfgfile"
17626 # AIX sometimes has problems with the GCC collect2 program. For some
17627 # reason, if we set the COLLECT_NAMES environment variable, the problems
17628 # vanish in a puff of smoke.
17629 if test "X${COLLECT_NAMES+set}" != Xset; then
17630 COLLECT_NAMES=
17631 export COLLECT_NAMES
17633 _LT_EOF
17635 esac
17638 ltmain="$ac_aux_dir/ltmain.sh"
17641 # We use sed instead of cat because bash on DJGPP gets confused if
17642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17643 # text mode, it properly converts lines to CR/LF. This bash problem
17644 # is reportedly fixed, but why not run on old versions too?
17645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17646 || (rm -f "$cfgfile"; exit 1)
17648 case $xsi_shell in
17649 yes)
17650 cat << \_LT_EOF >> "$cfgfile"
17652 # func_dirname file append nondir_replacement
17653 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17654 # otherwise set result to NONDIR_REPLACEMENT.
17655 func_dirname ()
17657 case ${1} in
17658 */*) func_dirname_result="${1%/*}${2}" ;;
17659 * ) func_dirname_result="${3}" ;;
17660 esac
17663 # func_basename file
17664 func_basename ()
17666 func_basename_result="${1##*/}"
17669 # func_dirname_and_basename file append nondir_replacement
17670 # perform func_basename and func_dirname in a single function
17671 # call:
17672 # dirname: Compute the dirname of FILE. If nonempty,
17673 # add APPEND to the result, otherwise set result
17674 # to NONDIR_REPLACEMENT.
17675 # value returned in "$func_dirname_result"
17676 # basename: Compute filename of FILE.
17677 # value retuned in "$func_basename_result"
17678 # Implementation must be kept synchronized with func_dirname
17679 # and func_basename. For efficiency, we do not delegate to
17680 # those functions but instead duplicate the functionality here.
17681 func_dirname_and_basename ()
17683 case ${1} in
17684 */*) func_dirname_result="${1%/*}${2}" ;;
17685 * ) func_dirname_result="${3}" ;;
17686 esac
17687 func_basename_result="${1##*/}"
17690 # func_stripname prefix suffix name
17691 # strip PREFIX and SUFFIX off of NAME.
17692 # PREFIX and SUFFIX must not contain globbing or regex special
17693 # characters, hashes, percent signs, but SUFFIX may contain a leading
17694 # dot (in which case that matches only a dot).
17695 func_stripname ()
17697 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17698 # positional parameters, so assign one to ordinary parameter first.
17699 func_stripname_result=${3}
17700 func_stripname_result=${func_stripname_result#"${1}"}
17701 func_stripname_result=${func_stripname_result%"${2}"}
17704 # func_opt_split
17705 func_opt_split ()
17707 func_opt_split_opt=${1%%=*}
17708 func_opt_split_arg=${1#*=}
17711 # func_lo2o object
17712 func_lo2o ()
17714 case ${1} in
17715 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17716 *) func_lo2o_result=${1} ;;
17717 esac
17720 # func_xform libobj-or-source
17721 func_xform ()
17723 func_xform_result=${1%.*}.lo
17726 # func_arith arithmetic-term...
17727 func_arith ()
17729 func_arith_result=$(( $* ))
17732 # func_len string
17733 # STRING may not start with a hyphen.
17734 func_len ()
17736 func_len_result=${#1}
17739 _LT_EOF
17741 *) # Bourne compatible functions.
17742 cat << \_LT_EOF >> "$cfgfile"
17744 # func_dirname file append nondir_replacement
17745 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17746 # otherwise set result to NONDIR_REPLACEMENT.
17747 func_dirname ()
17749 # Extract subdirectory from the argument.
17750 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17751 if test "X$func_dirname_result" = "X${1}"; then
17752 func_dirname_result="${3}"
17753 else
17754 func_dirname_result="$func_dirname_result${2}"
17758 # func_basename file
17759 func_basename ()
17761 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17765 # func_stripname prefix suffix name
17766 # strip PREFIX and SUFFIX off of NAME.
17767 # PREFIX and SUFFIX must not contain globbing or regex special
17768 # characters, hashes, percent signs, but SUFFIX may contain a leading
17769 # dot (in which case that matches only a dot).
17770 # func_strip_suffix prefix name
17771 func_stripname ()
17773 case ${2} in
17774 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17775 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17776 esac
17779 # sed scripts:
17780 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17781 my_sed_long_arg='1s/^-[^=]*=//'
17783 # func_opt_split
17784 func_opt_split ()
17786 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17787 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17790 # func_lo2o object
17791 func_lo2o ()
17793 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17796 # func_xform libobj-or-source
17797 func_xform ()
17799 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17802 # func_arith arithmetic-term...
17803 func_arith ()
17805 func_arith_result=`expr "$@"`
17808 # func_len string
17809 # STRING may not start with a hyphen.
17810 func_len ()
17812 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17815 _LT_EOF
17816 esac
17818 case $lt_shell_append in
17819 yes)
17820 cat << \_LT_EOF >> "$cfgfile"
17822 # func_append var value
17823 # Append VALUE to the end of shell variable VAR.
17824 func_append ()
17826 eval "$1+=\$2"
17828 _LT_EOF
17831 cat << \_LT_EOF >> "$cfgfile"
17833 # func_append var value
17834 # Append VALUE to the end of shell variable VAR.
17835 func_append ()
17837 eval "$1=\$$1\$2"
17840 _LT_EOF
17842 esac
17845 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17846 || (rm -f "$cfgfile"; exit 1)
17848 mv -f "$cfgfile" "$ofile" ||
17849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17850 chmod +x "$ofile"
17853 cat <<_LT_EOF >> "$ofile"
17855 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17857 # The linker used to build libraries.
17858 LD=$lt_LD_CXX
17860 # How to create reloadable object files.
17861 reload_flag=$lt_reload_flag_CXX
17862 reload_cmds=$lt_reload_cmds_CXX
17864 # Commands used to build an old-style archive.
17865 old_archive_cmds=$lt_old_archive_cmds_CXX
17867 # A language specific compiler.
17868 CC=$lt_compiler_CXX
17870 # Is the compiler the GNU compiler?
17871 with_gcc=$GCC_CXX
17873 # Compiler flag to turn off builtin functions.
17874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17876 # How to pass a linker flag through the compiler.
17877 wl=$lt_lt_prog_compiler_wl_CXX
17879 # Additional compiler flags for building library objects.
17880 pic_flag=$lt_lt_prog_compiler_pic_CXX
17882 # Compiler flag to prevent dynamic linking.
17883 link_static_flag=$lt_lt_prog_compiler_static_CXX
17885 # Does compiler simultaneously support -c and -o options?
17886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17888 # Whether or not to add -lc for building shared libraries.
17889 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17891 # Whether or not to disallow shared libs when runtime libs are static.
17892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17894 # Compiler flag to allow reflexive dlopens.
17895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17897 # Compiler flag to generate shared objects directly from archives.
17898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17900 # Whether the compiler copes with passing no objects directly.
17901 compiler_needs_object=$lt_compiler_needs_object_CXX
17903 # Create an old-style archive from a shared archive.
17904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17906 # Create a temporary old-style archive to link instead of a shared archive.
17907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17909 # Commands used to build a shared archive.
17910 archive_cmds=$lt_archive_cmds_CXX
17911 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17913 # Commands used to build a loadable module if different from building
17914 # a shared archive.
17915 module_cmds=$lt_module_cmds_CXX
17916 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17918 # Whether we are building with GNU ld or not.
17919 with_gnu_ld=$lt_with_gnu_ld_CXX
17921 # Flag that allows shared libraries with undefined symbols to be built.
17922 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17924 # Flag that enforces no undefined symbols.
17925 no_undefined_flag=$lt_no_undefined_flag_CXX
17927 # Flag to hardcode \$libdir into a binary during linking.
17928 # This must work even if \$libdir does not exist
17929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17931 # If ld is used when linking, flag to hardcode \$libdir into a binary
17932 # during linking. This must work even if \$libdir does not exist.
17933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17935 # Whether we need a single "-rpath" flag with a separated argument.
17936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17939 # DIR into the resulting binary.
17940 hardcode_direct=$hardcode_direct_CXX
17942 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17943 # DIR into the resulting binary and the resulting library dependency is
17944 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17945 # library is relocated.
17946 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17948 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17949 # into the resulting binary.
17950 hardcode_minus_L=$hardcode_minus_L_CXX
17952 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17953 # into the resulting binary.
17954 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17956 # Set to "yes" if building a shared library automatically hardcodes DIR
17957 # into the library and all subsequent libraries and executables linked
17958 # against it.
17959 hardcode_automatic=$hardcode_automatic_CXX
17961 # Set to yes if linker adds runtime paths of dependent libraries
17962 # to runtime path list.
17963 inherit_rpath=$inherit_rpath_CXX
17965 # Whether libtool must link a program against all its dependency libraries.
17966 link_all_deplibs=$link_all_deplibs_CXX
17968 # Fix the shell variable \$srcfile for the compiler.
17969 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17971 # Set to "yes" if exported symbols are required.
17972 always_export_symbols=$always_export_symbols_CXX
17974 # The commands to list exported symbols.
17975 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17977 # Symbols that should not be listed in the preloaded symbols.
17978 exclude_expsyms=$lt_exclude_expsyms_CXX
17980 # Symbols that must always be exported.
17981 include_expsyms=$lt_include_expsyms_CXX
17983 # Commands necessary for linking programs (against libraries) with templates.
17984 prelink_cmds=$lt_prelink_cmds_CXX
17986 # Specify filename containing input files.
17987 file_list_spec=$lt_file_list_spec_CXX
17989 # How to hardcode a shared library path into an executable.
17990 hardcode_action=$hardcode_action_CXX
17992 # The directories searched by this compiler when creating a shared library.
17993 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17995 # Dependencies to place before and after the objects being linked to
17996 # create a shared library.
17997 predep_objects=$lt_predep_objects_CXX
17998 postdep_objects=$lt_postdep_objects_CXX
17999 predeps=$lt_predeps_CXX
18000 postdeps=$lt_postdeps_CXX
18002 # The library search path used internally by the compiler when linking
18003 # a shared library.
18004 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18006 # ### END LIBTOOL TAG CONFIG: CXX
18007 _LT_EOF
18010 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18011 s!`test -f '$<' || echo '$(srcdir)/'`!!
18012 _EOF
18013 sed -f vpsed$$ $ac_file > tmp$$
18014 mv tmp$$ $ac_file
18015 rm vpsed$$
18016 echo 'MULTISUBDIR =' >> $ac_file
18017 ml_norecursion=yes
18018 . ${multi_basedir}/config-ml.in
18019 { ml_norecursion=; unset ml_norecursion;}
18022 esac
18023 done # for ac_tag
18026 as_fn_exit 0
18027 _ACEOF
18028 ac_clean_files=$ac_clean_files_save
18030 test $ac_write_fail = 0 ||
18031 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18034 # configure is writing to config.log, and then calls config.status.
18035 # config.status does its own redirection, appending to config.log.
18036 # Unfortunately, on DOS this fails, as config.log is still kept open
18037 # by configure, so config.status won't be able to write to it; its
18038 # output is simply discarded. So we exec the FD to /dev/null,
18039 # effectively closing config.log, so it can be properly (re)opened and
18040 # appended to by config.status. When coming back to configure, we
18041 # need to make the FD available again.
18042 if test "$no_create" != yes; then
18043 ac_cs_success=:
18044 ac_config_status_args=
18045 test "$silent" = yes &&
18046 ac_config_status_args="$ac_config_status_args --quiet"
18047 exec 5>/dev/null
18048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18049 exec 5>>config.log
18050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18051 # would make configure fail if this is the last instruction.
18052 $ac_cs_success || as_fn_exit $?
18054 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18056 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}