c-pretty-print.h (c_pretty_printer::postfix_expression): Now a virtual member function.
[official-gcc.git] / libvtv / configure
blob6c50457fd227a4ab204e8de141e235717b4f791a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Vtable Verification Runtime Library'
558 PACKAGE_TARNAME='libvtv'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
564 ac_unique_file="vtv_rts.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 XCFLAGS
606 libtool_VERSION
607 enable_static
608 enable_shared
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
618 ac_ct_DUMPBIN
619 DUMPBIN
621 FGREP
623 LIBTOOL
624 RANLIB
627 CCASFLAGS
628 CCAS
629 am__fastdepCXX_FALSE
630 am__fastdepCXX_TRUE
631 CXXDEPMODE
632 ac_ct_CXX
633 CXXFLAGS
635 EGREP
636 GREP
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 AMDEPBACKSLASH
642 AMDEP_FALSE
643 AMDEP_TRUE
644 am__quote
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
654 toolexeclibdir
655 toolexecdir
656 toplevel_srcdir
657 toplevel_builddir
658 libvtv_srcdir
659 libvtv_builddir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 multi_basedir
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 LIBSTDCXX_RAW_CXX_LDFLAGS
688 LIBSTDCXX_RAW_CXX_CXXFLAGS
689 target_noncanonical
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 ENABLE_VTABLE_VERIFY_FALSE
703 ENABLE_VTABLE_VERIFY_TRUE
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_version_specific_runtime_libs
746 enable_vtable_verify
747 enable_multilib
748 enable_maintainer_mode
749 enable_dependency_tracking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 with_gnu_ld
755 enable_libtool_lock
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
766 CXXCPP'
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
817 ac_prev=
818 ac_dashdash=
819 for ac_option
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
833 # Accept the important Cygnus configure options, so we can diagnose typos.
835 case $ac_dashdash$ac_option in
837 ac_dashdash=yes ;;
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
856 --config-cache | -C)
857 cache_file=config.cache ;;
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information."
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 esac
1174 done
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1260 /^X\(\/\/\)$/{
1261 s//\1/
1264 /^X\(\/\).*/{
1265 s//\1/
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1273 else
1274 ac_srcdir_defaulted=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1363 cat <<\_ACEOF
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1380 esac
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1388 --enable-vtable-verify Enable vtable verification feature
1389 --enable-multilib build many library versions (default)
1390 --enable-maintainer-mode enable make rules and dependencies not useful
1391 (and sometimes confusing) to the casual installer
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-static[=PKGS] build static libraries [default=yes]
1396 --enable-fast-install[=PKGS]
1397 optimize for fast installation [default=yes]
1398 --disable-libtool-lock avoid locking (might break parallel builds)
1400 Optional Packages:
1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1403 --with-pic try to use only PIC/non-PIC objects [default=use
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1415 CPP C preprocessor
1416 CXX C++ compiler command
1417 CXXFLAGS C++ compiler flags
1418 CXXCPP C++ preprocessor
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to the package provider.
1424 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1425 General help using GNU software: <http://www.gnu.org/gethelp/>.
1426 _ACEOF
1427 ac_status=$?
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1436 ac_builddir=.
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1454 case $srcdir in
1455 .) # We are building in place.
1456 ac_srcdir=.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1463 *) # Relative name.
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1478 else
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 fi || ac_status=$?
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1482 done
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487 cat <<\_ACEOF
1488 GNU Vtable Verification Runtime Library configure 1.0
1489 generated by GNU Autoconf 2.64
1491 Copyright (C) 2009 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495 exit
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1533 ac_retval=1
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 return $ac_retval
1538 } # ac_fn_c_try_compile
1540 # ac_fn_c_try_cpp LINENO
1541 # ----------------------
1542 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_cpp ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 if { { ac_try="$ac_cpp conftest.$ac_ext"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } >/dev/null && {
1562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 }; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1575 } # ac_fn_c_try_cpp
1577 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1578 # -------------------------------------------------------
1579 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1580 # the include files in INCLUDES and setting the cache variable VAR
1581 # accordingly.
1582 ac_fn_c_check_header_mongrel ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 $as_echo_n "(cached) " >&6
1591 eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1594 else
1595 # Is the header compilable?
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1597 $as_echo_n "checking $2 usability... " >&6; }
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1601 #include <$2>
1602 _ACEOF
1603 if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_header_compiler=yes
1605 else
1606 ac_header_compiler=no
1608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1610 $as_echo "$ac_header_compiler" >&6; }
1612 # Is the header present?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1614 $as_echo_n "checking $2 presence... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 #include <$2>
1618 _ACEOF
1619 if ac_fn_c_try_cpp "$LINENO"; then :
1620 ac_header_preproc=yes
1621 else
1622 ac_header_preproc=no
1624 rm -f conftest.err conftest.$ac_ext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1626 $as_echo "$ac_header_preproc" >&6; }
1628 # So? What about this header?
1629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 yes:no: )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1632 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 no:yes:* )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1638 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1640 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1642 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1644 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648 esac
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1653 else
1654 eval "$3=\$ac_header_compiler"
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 } # ac_fn_c_check_header_mongrel
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=$ac_status
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 return $ac_retval
1704 } # ac_fn_c_try_run
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_link ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 $as_test_x conftest$ac_exeext
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=1
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1781 } # ac_fn_c_try_link
1783 # ac_fn_c_check_func LINENO FUNC VAR
1784 # ----------------------------------
1785 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1786 ac_fn_c_check_func ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798 #define $2 innocuous_$2
1800 /* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1805 #ifdef __STDC__
1806 # include <limits.h>
1807 #else
1808 # include <assert.h>
1809 #endif
1811 #undef $2
1813 /* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816 #ifdef __cplusplus
1817 extern "C"
1818 #endif
1819 char $2 ();
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined __stub_$2 || defined __stub___$2
1824 choke me
1825 #endif
1828 main ()
1830 return $2 ();
1832 return 0;
1834 _ACEOF
1835 if ac_fn_c_try_link "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1840 rm -f core conftest.err conftest.$ac_objext \
1841 conftest$ac_exeext conftest.$ac_ext
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_c_check_func
1850 # ac_fn_cxx_try_compile LINENO
1851 # ----------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_cxx_try_compile
1888 # ac_fn_cxx_try_cpp LINENO
1889 # ------------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_cpp ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } >/dev/null && {
1910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 return $ac_retval
1923 } # ac_fn_cxx_try_cpp
1925 # ac_fn_cxx_try_link LINENO
1926 # -------------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_cxx_try_link ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 $as_test_x conftest$ac_exeext
1953 }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=1
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 return $ac_retval
1969 } # ac_fn_cxx_try_link
1970 cat >config.log <<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1974 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1975 generated by GNU Autoconf 2.64. Invocation command line was
1977 $ $0 $@
1979 _ACEOF
1980 exec 5>>config.log
1982 cat <<_ASUNAME
1983 ## --------- ##
1984 ## Platform. ##
1985 ## --------- ##
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004 _ASUNAME
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013 IFS=$as_save_IFS
2015 } >&5
2017 cat >&5 <<_ACEOF
2020 ## ----------- ##
2021 ## Core tests. ##
2022 ## ----------- ##
2024 _ACEOF
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_configure_args=
2033 ac_configure_args0=
2034 ac_configure_args1=
2035 ac_must_keep_next=false
2036 for ac_pass in 1 2
2038 for ac_arg
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2067 as_fn_append ac_configure_args " '$ac_arg'"
2069 esac
2070 done
2071 done
2072 { ac_configure_args0=; unset ac_configure_args0;}
2073 { ac_configure_args1=; unset ac_configure_args1;}
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2083 echo
2085 cat <<\_ASBOX
2086 ## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##
2089 _ASBOX
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118 esac |
2119 sort
2121 echo
2123 cat <<\_ASBOX
2124 ## ----------------- ##
2125 ## Output variables. ##
2126 ## ----------------- ##
2127 _ASBOX
2128 echo
2129 for ac_var in $ac_subst_vars
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2139 if test -n "$ac_subst_files"; then
2140 cat <<\_ASBOX
2141 ## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##
2144 _ASBOX
2145 echo
2146 for ac_var in $ac_subst_files
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2157 if test -s confdefs.h; then
2158 cat <<\_ASBOX
2159 ## ----------- ##
2160 ## confdefs.h. ##
2161 ## ----------- ##
2162 _ASBOX
2163 echo
2164 cat confdefs.h
2165 echo
2167 test "$ac_signal" != 0 &&
2168 $as_echo "$as_me: caught signal $ac_signal"
2169 $as_echo "$as_me: exit $exit_status"
2170 } >&5
2171 rm -f core *.core core.conftest.* &&
2172 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173 exit $exit_status
2175 for ac_signal in 1 2 13 15; do
2176 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2177 done
2178 ac_signal=0
2180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2181 rm -f -r conftest* confdefs.h
2183 $as_echo "/* confdefs.h */" > confdefs.h
2185 # Predefined preprocessor variables.
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_NAME "$PACKAGE_NAME"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_STRING "$PACKAGE_STRING"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2205 _ACEOF
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_URL "$PACKAGE_URL"
2209 _ACEOF
2212 # Let the site file select an alternate cache file if it wants to.
2213 # Prefer an explicitly selected file to automatically selected ones.
2214 ac_site_file1=NONE
2215 ac_site_file2=NONE
2216 if test -n "$CONFIG_SITE"; then
2217 ac_site_file1=$CONFIG_SITE
2218 elif test "x$prefix" != xNONE; then
2219 ac_site_file1=$prefix/share/config.site
2220 ac_site_file2=$prefix/etc/config.site
2221 else
2222 ac_site_file1=$ac_default_prefix/share/config.site
2223 ac_site_file2=$ac_default_prefix/etc/config.site
2225 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2227 test "x$ac_site_file" = xNONE && continue
2228 if test -r "$ac_site_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231 sed 's/^/| /' "$ac_site_file" >&5
2232 . "$ac_site_file"
2234 done
2236 if test -r "$cache_file"; then
2237 # Some versions of bash will fail to source /dev/null (special
2238 # files actually), so we avoid doing that.
2239 if test -f "$cache_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2241 $as_echo "$as_me: loading cache $cache_file" >&6;}
2242 case $cache_file in
2243 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2244 *) . "./$cache_file";;
2245 esac
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2249 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 >$cache_file
2253 # Check that the precious variables saved in the cache have kept the same
2254 # value.
2255 ac_cache_corrupted=false
2256 for ac_var in $ac_precious_vars; do
2257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2258 eval ac_new_set=\$ac_env_${ac_var}_set
2259 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2260 eval ac_new_val=\$ac_env_${ac_var}_value
2261 case $ac_old_set,$ac_new_set in
2262 set,)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,set)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,);;
2272 if test "x$ac_old_val" != "x$ac_new_val"; then
2273 # differences in whitespace do not lead to failure.
2274 ac_old_val_w=`echo x $ac_old_val`
2275 ac_new_val_w=`echo x $ac_new_val`
2276 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2278 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2279 ac_cache_corrupted=:
2280 else
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2282 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2283 eval $ac_var=\$ac_old_val
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2286 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2288 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2289 fi;;
2290 esac
2291 # Pass precious variables to config.status.
2292 if test "$ac_new_set" = set; then
2293 case $ac_new_val in
2294 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 *) ac_arg=$ac_var=$ac_new_val ;;
2296 esac
2297 case " $ac_configure_args " in
2298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2299 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300 esac
2302 done
2303 if $ac_cache_corrupted; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2307 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2308 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 ## -------------------- ##
2311 ## Main body of script. ##
2312 ## -------------------- ##
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 #AC_INIT(package-unused, version-unused, libvtv)
2327 # -------
2328 # Options
2329 # -------
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2331 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2332 # Check whether --enable-version-specific-runtime-libs was given.
2333 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2334 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2335 yes) version_specific_libs=yes ;;
2336 no) version_specific_libs=no ;;
2337 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2338 esac
2339 else
2340 version_specific_libs=no
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2344 $as_echo "$version_specific_libs" >&6; }
2346 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
2348 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
2349 # Check whether --enable-vtable-verify was given.
2350 if test "${enable_vtable_verify+set}" = set; then :
2351 enableval=$enable_vtable_verify; case "$enableval" in
2352 yes) enable_vtable_verify=yes ;;
2353 no) enable_vtable_verify=no ;;
2354 *) enable_vtable_verify=no;;
2355 esac
2356 else
2357 enable_vtable_verify=no
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
2361 $as_echo "$enable_vtable_verify" >&6; }
2363 # See if supported.
2364 unset VTV_SUPPORTED
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2366 $as_echo_n "checking for host support for vtable verification... " >&6; }
2367 . ${srcdir}/configure.tgt
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2369 $as_echo "$VTV_SUPPORTED" >&6; }
2371 # Decide if it's usable.
2372 use_vtable_verify=no
2373 if test "x$VTV_SUPPORTED" = "xyes"; then
2374 if test "x$enable_vtable_verify" = "xyes"; then
2375 use_vtable_verify=yes
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
2377 $as_echo "$as_me: using vtable verification" >&6;}
2380 if test $use_vtable_verify = yes; then
2381 ENABLE_VTABLE_VERIFY_TRUE=
2382 ENABLE_VTABLE_VERIFY_FALSE='#'
2383 else
2384 ENABLE_VTABLE_VERIFY_TRUE='#'
2385 ENABLE_VTABLE_VERIFY_FALSE=
2389 # Do not delete or change the following two lines. For why, see
2390 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2391 ac_aux_dir=
2392 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2393 for ac_t in install-sh install.sh shtool; do
2394 if test -f "$ac_dir/$ac_t"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/$ac_t -c"
2397 break 2
2399 done
2400 done
2401 if test -z "$ac_aux_dir"; then
2402 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2405 # These three variables are undocumented and unsupported,
2406 # and are intended to be withdrawn in a future Autoconf release.
2407 # They can cause serious problems if a builder's source tree is in a directory
2408 # whose full name contains unusual characters.
2409 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2410 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2411 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2414 # Make sure we can run config.sub.
2415 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2416 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2419 $as_echo_n "checking build system type... " >&6; }
2420 if test "${ac_cv_build+set}" = set; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 ac_build_alias=$build_alias
2424 test "x$ac_build_alias" = x &&
2425 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2426 test "x$ac_build_alias" = x &&
2427 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2428 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2429 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2433 $as_echo "$ac_cv_build" >&6; }
2434 case $ac_cv_build in
2435 *-*-*) ;;
2436 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2437 esac
2438 build=$ac_cv_build
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_build
2441 shift
2442 build_cpu=$1
2443 build_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 build_os=$*
2448 IFS=$ac_save_IFS
2449 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2453 $as_echo_n "checking host system type... " >&6; }
2454 if test "${ac_cv_host+set}" = set; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test "x$host_alias" = x; then
2458 ac_cv_host=$ac_cv_build
2459 else
2460 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2461 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2466 $as_echo "$ac_cv_host" >&6; }
2467 case $ac_cv_host in
2468 *-*-*) ;;
2469 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2470 esac
2471 host=$ac_cv_host
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_host
2474 shift
2475 host_cpu=$1
2476 host_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 host_os=$*
2481 IFS=$ac_save_IFS
2482 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2486 $as_echo_n "checking target system type... " >&6; }
2487 if test "${ac_cv_target+set}" = set; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test "x$target_alias" = x; then
2491 ac_cv_target=$ac_cv_host
2492 else
2493 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2494 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2499 $as_echo "$ac_cv_target" >&6; }
2500 case $ac_cv_target in
2501 *-*-*) ;;
2502 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2503 esac
2504 target=$ac_cv_target
2505 ac_save_IFS=$IFS; IFS='-'
2506 set x $ac_cv_target
2507 shift
2508 target_cpu=$1
2509 target_vendor=$2
2510 shift; shift
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2513 target_os=$*
2514 IFS=$ac_save_IFS
2515 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2518 # The aliases save the names the user supplied, while $host etc.
2519 # will get canonicalized.
2520 test -n "$target_alias" &&
2521 test "$program_prefix$program_suffix$program_transform_name" = \
2522 NONENONEs,x,x, &&
2523 program_prefix=${target_alias}-
2525 target_alias=${target_alias-$host_alias}
2527 case ${build_alias} in
2528 "") build_noncanonical=${build} ;;
2529 *) build_noncanonical=${build_alias} ;;
2530 esac
2532 case ${host_alias} in
2533 "") host_noncanonical=${build_noncanonical} ;;
2534 *) host_noncanonical=${host_alias} ;;
2535 esac
2537 case ${target_alias} in
2538 "") target_noncanonical=${host_noncanonical} ;;
2539 *) target_noncanonical=${target_alias} ;;
2540 esac
2546 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2547 -I\$(top_builddir)/../libstdc++-v3/include \
2548 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2549 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2550 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2551 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2556 am__api_version='1.11'
2558 # Find a good install program. We prefer a C program (faster),
2559 # so one script is as good as another. But avoid the broken or
2560 # incompatible versions:
2561 # SysV /etc/install, /usr/sbin/install
2562 # SunOS /usr/etc/install
2563 # IRIX /sbin/install
2564 # AIX /bin/install
2565 # AmigaOS /C/install, which installs bootblocks on floppy discs
2566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569 # OS/2's system install, which has a completely different semantic
2570 # ./install, which can be erroneously created by make from ./install.sh.
2571 # Reject install programs that cannot install multiple files.
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2574 if test -z "$INSTALL"; then
2575 if test "${ac_cv_path_install+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 # Account for people who put trailing slashes in PATH elements.
2584 case $as_dir/ in #((
2585 ./ | .// | /[cC]/* | \
2586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2588 /usr/ucb/* ) ;;
2590 # OSF1 and SCO ODT 3.0 have their own names for install.
2591 # Don't use installbsd from OSF since it installs stuff as root
2592 # by default.
2593 for ac_prog in ginstall scoinst install; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2596 if test $ac_prog = install &&
2597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598 # AIX install. It has an incompatible calling convention.
2600 elif test $ac_prog = install &&
2601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # program-specific install script used by HP pwplus--don't use.
2604 else
2605 rm -rf conftest.one conftest.two conftest.dir
2606 echo one > conftest.one
2607 echo two > conftest.two
2608 mkdir conftest.dir
2609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2610 test -s conftest.one && test -s conftest.two &&
2611 test -s conftest.dir/conftest.one &&
2612 test -s conftest.dir/conftest.two
2613 then
2614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2615 break 3
2619 done
2620 done
2622 esac
2624 done
2625 IFS=$as_save_IFS
2627 rm -rf conftest.one conftest.two conftest.dir
2630 if test "${ac_cv_path_install+set}" = set; then
2631 INSTALL=$ac_cv_path_install
2632 else
2633 # As a last resort, use the slow shell script. Don't cache a
2634 # value for INSTALL within a source directory, because that will
2635 # break other packages using the cache if that directory is
2636 # removed, or if the value is a relative name.
2637 INSTALL=$ac_install_sh
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2641 $as_echo "$INSTALL" >&6; }
2643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2644 # It thinks the first close brace ends the variable substitution.
2645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2652 $as_echo_n "checking whether build environment is sane... " >&6; }
2653 # Just in case
2654 sleep 1
2655 echo timestamp > conftest.file
2656 # Reject unsafe characters in $srcdir or the absolute working directory
2657 # name. Accept space and tab only in the latter.
2658 am_lf='
2660 case `pwd` in
2661 *[\\\"\#\$\&\'\`$am_lf]*)
2662 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2663 esac
2664 case $srcdir in
2665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2666 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2667 esac
2669 # Do `set' in a subshell so we don't clobber the current shell's
2670 # arguments. Must try -L first in case configure is actually a
2671 # symlink; some systems play weird games with the mod time of symlinks
2672 # (eg FreeBSD returns the mod time of the symlink's containing
2673 # directory).
2674 if (
2675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2676 if test "$*" = "X"; then
2677 # -L didn't work.
2678 set X `ls -t "$srcdir/configure" conftest.file`
2680 rm -f conftest.file
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2692 test "$2" = conftest.file
2694 then
2695 # Ok.
2697 else
2698 as_fn_error "newly created file is older than distributed files!
2699 Check your system clock" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702 $as_echo "yes" >&6; }
2703 test "$program_prefix" != NONE &&
2704 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2705 # Use a double $ so make ignores it.
2706 test "$program_suffix" != NONE &&
2707 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2708 # Double any \ or $.
2709 # By default was `s,x,x', remove it if useless.
2710 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2711 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2713 # expand $ac_aux_dir to an absolute path
2714 am_aux_dir=`cd $ac_aux_dir && pwd`
2716 if test x"${MISSING+set}" != xset; then
2717 case $am_aux_dir in
2718 *\ * | *\ *)
2719 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2721 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2722 esac
2724 # Use eval to expand $SHELL
2725 if eval "$MISSING --run true"; then
2726 am_missing_run="$MISSING --run "
2727 else
2728 am_missing_run=
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2730 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2733 if test x"${install_sh}" != xset; then
2734 case $am_aux_dir in
2735 *\ * | *\ *)
2736 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2738 install_sh="\${SHELL} $am_aux_dir/install-sh"
2739 esac
2742 # Installed binaries are usually stripped using `strip' when the user
2743 # run `make install-strip'. However `strip' might not be the right
2744 # tool to use in cross-compilation environments, therefore Automake
2745 # will honor the `STRIP' environment variable to overrule this program.
2746 if test "$cross_compiling" != no; then
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}strip; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_STRIP+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$STRIP"; then
2756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2771 IFS=$as_save_IFS
2775 STRIP=$ac_cv_prog_STRIP
2776 if test -n "$STRIP"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2778 $as_echo "$STRIP" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2786 if test -z "$ac_cv_prog_STRIP"; then
2787 ac_ct_STRIP=$STRIP
2788 # Extract the first word of "strip", so it can be a program name with args.
2789 set dummy strip; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$ac_ct_STRIP"; then
2796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_ac_ct_STRIP="strip"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2816 if test -n "$ac_ct_STRIP"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2818 $as_echo "$ac_ct_STRIP" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2824 if test "x$ac_ct_STRIP" = x; then
2825 STRIP=":"
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828 yes:)
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2832 esac
2833 STRIP=$ac_ct_STRIP
2835 else
2836 STRIP="$ac_cv_prog_STRIP"
2840 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2843 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2844 if test -z "$MKDIR_P"; then
2845 if test "${ac_cv_path_mkdir+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_prog in mkdir gmkdir; do
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2857 'mkdir (GNU coreutils) '* | \
2858 'mkdir (coreutils) '* | \
2859 'mkdir (fileutils) '4.1*)
2860 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2861 break 3;;
2862 esac
2863 done
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 if test "${ac_cv_path_mkdir+set}" = set; then
2871 MKDIR_P="$ac_cv_path_mkdir -p"
2872 else
2873 # As a last resort, use the slow shell script. Don't cache a
2874 # value for MKDIR_P within a source directory, because that will
2875 # break other packages using the cache if that directory is
2876 # removed, or if the value is a relative name.
2877 test -d ./--version && rmdir ./--version
2878 MKDIR_P="$ac_install_sh -d"
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2882 $as_echo "$MKDIR_P" >&6; }
2884 mkdir_p="$MKDIR_P"
2885 case $mkdir_p in
2886 [\\/$]* | ?:[\\/]*) ;;
2887 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2888 esac
2890 for ac_prog in gawk mawk nawk awk
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_AWK+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$AWK"; then
2900 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_AWK="$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 AWK=$ac_cv_prog_AWK
2920 if test -n "$AWK"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2922 $as_echo "$AWK" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$AWK" && break
2930 done
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2934 set x ${MAKE-make}
2935 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2936 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 cat >conftest.make <<\_ACEOF
2940 SHELL = /bin/sh
2941 all:
2942 @echo '@@@%%%=$(MAKE)=@@@%%%'
2943 _ACEOF
2944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2946 *@@@%%%=?*=@@@%%%*)
2947 eval ac_cv_prog_make_${ac_make}_set=yes;;
2949 eval ac_cv_prog_make_${ac_make}_set=no;;
2950 esac
2951 rm -f conftest.make
2953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 SET_MAKE=
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 SET_MAKE="MAKE=${MAKE-make}"
2963 rm -rf .tst 2>/dev/null
2964 mkdir .tst 2>/dev/null
2965 if test -d .tst; then
2966 am__leading_dot=.
2967 else
2968 am__leading_dot=_
2970 rmdir .tst 2>/dev/null
2972 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2973 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2974 # is not polluted with repeated "-I."
2975 am__isrc=' -I$(srcdir)'
2976 # test to see if srcdir already configured
2977 if test -f $srcdir/config.status; then
2978 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2982 # test whether we have cygpath
2983 if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2986 else
2987 CYGPATH_W=echo
2992 # Define the identity of the package.
2993 PACKAGE='libvtv'
2994 VERSION='1.0'
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE "$PACKAGE"
2999 _ACEOF
3002 cat >>confdefs.h <<_ACEOF
3003 #define VERSION "$VERSION"
3004 _ACEOF
3006 # Some tools Automake needs.
3008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3022 # We need awk for the "check" target. The system "awk" is bad on
3023 # some platforms.
3024 # Always define AMTAR for backward compatibility.
3026 AMTAR=${AMTAR-"${am_missing_run}tar"}
3028 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3034 # Default to --enable-multilib
3035 # Check whether --enable-multilib was given.
3036 if test "${enable_multilib+set}" = set; then :
3037 enableval=$enable_multilib; case "$enableval" in
3038 yes) multilib=yes ;;
3039 no) multilib=no ;;
3040 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3041 esac
3042 else
3043 multilib=yes
3047 # We may get other options which we leave undocumented:
3048 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3049 # See config-ml.in if you want the gory details.
3051 if test "$srcdir" = "."; then
3052 if test "$with_target_subdir" != "."; then
3053 multi_basedir="$srcdir/$with_multisrctop../.."
3054 else
3055 multi_basedir="$srcdir/$with_multisrctop.."
3057 else
3058 multi_basedir="$srcdir/.."
3062 # Even if the default multilib is not a cross compilation,
3063 # it may be that some of the other multilibs are.
3064 if test $cross_compiling = no && test $multilib = yes \
3065 && test "x${with_multisubdir}" != x ; then
3066 cross_compiling=maybe
3069 ac_config_commands="$ac_config_commands default-1"
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3073 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3074 # Check whether --enable-maintainer-mode was given.
3075 if test "${enable_maintainer_mode+set}" = set; then :
3076 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3077 else
3078 USE_MAINTAINER_MODE=no
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3082 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3083 if test $USE_MAINTAINER_MODE = yes; then
3084 MAINTAINER_MODE_TRUE=
3085 MAINTAINER_MODE_FALSE='#'
3086 else
3087 MAINTAINER_MODE_TRUE='#'
3088 MAINTAINER_MODE_FALSE=
3091 MAINT=$MAINTAINER_MODE_TRUE
3097 # These need to be absolute paths, yet at the same time need to
3098 # canonicalize only relative paths, because then amd will not unmount
3099 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3100 libvtv_builddir=`${PWDCMD-pwd}`
3101 case $srcdir in
3102 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3103 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3104 esac
3105 toplevel_builddir=${libvtv_builddir}/..
3106 toplevel_srcdir=${libvtv_srcdir}/..
3113 # Calculate toolexeclibdir
3114 # Also toolexecdir, though it's only used in toolexeclibdir
3115 case ${version_specific_libs} in
3116 yes)
3117 # Need the gcc compiler version to know where to install libraries
3118 # and header files if --enable-version-specific-runtime-libs option
3119 # is selected.
3120 toolexecdir='$(libdir)/gcc/$(target_alias)'
3121 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3124 if test -n "$with_cross_host" &&
3125 test x"$with_cross_host" != x"no"; then
3126 # Install a library built with a cross compiler in tooldir, not libdir.
3127 toolexecdir='$(exec_prefix)/$(target_alias)'
3128 toolexeclibdir='$(toolexecdir)/lib'
3129 else
3130 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3131 toolexeclibdir='$(libdir)'
3133 multi_os_directory=`$CC -print-multi-os-directory`
3134 case $multi_os_directory in
3135 .) ;; # Avoid trailing /.
3136 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3137 esac
3139 esac
3143 DEPDIR="${am__leading_dot}deps"
3145 ac_config_commands="$ac_config_commands depfiles"
3148 am_make=${MAKE-make}
3149 cat > confinc << 'END'
3150 am__doit:
3151 @echo this is the am__doit target
3152 .PHONY: am__doit
3154 # If we don't find an include directive, just comment out the code.
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3156 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3157 am__include="#"
3158 am__quote=
3159 _am_result=none
3160 # First try GNU make style include.
3161 echo "include confinc" > confmf
3162 # Ignore all kinds of additional output from `make'.
3163 case `$am_make -s -f confmf 2> /dev/null` in #(
3164 *the\ am__doit\ target*)
3165 am__include=include
3166 am__quote=
3167 _am_result=GNU
3169 esac
3170 # Now try BSD make style include.
3171 if test "$am__include" = "#"; then
3172 echo '.include "confinc"' > confmf
3173 case `$am_make -s -f confmf 2> /dev/null` in #(
3174 *the\ am__doit\ target*)
3175 am__include=.include
3176 am__quote="\""
3177 _am_result=BSD
3179 esac
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3184 $as_echo "$_am_result" >&6; }
3185 rm -f confinc confmf
3187 # Check whether --enable-dependency-tracking was given.
3188 if test "${enable_dependency_tracking+set}" = set; then :
3189 enableval=$enable_dependency_tracking;
3192 if test "x$enable_dependency_tracking" != xno; then
3193 am_depcomp="$ac_aux_dir/depcomp"
3194 AMDEPBACKSLASH='\'
3196 if test "x$enable_dependency_tracking" != xno; then
3197 AMDEP_TRUE=
3198 AMDEP_FALSE='#'
3199 else
3200 AMDEP_TRUE='#'
3201 AMDEP_FALSE=
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3232 done
3233 done
3234 IFS=$as_save_IFS
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3249 if test -z "$ac_cv_prog_CC"; then
3250 ac_ct_CC=$CC
3251 # Extract the first word of "gcc", so it can be a program name with args.
3252 set dummy gcc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$ac_ct_CC"; then
3259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_ac_ct_CC="gcc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3274 IFS=$as_save_IFS
3278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279 if test -n "$ac_ct_CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3281 $as_echo "$ac_ct_CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291 yes:)
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294 ac_tool_warned=yes ;;
3295 esac
3296 CC=$ac_ct_CC
3298 else
3299 CC="$ac_cv_prog_CC"
3302 if test -z "$CC"; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}cc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC="${ac_tool_prefix}cc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3325 done
3326 done
3327 IFS=$as_save_IFS
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3343 if test -z "$CC"; then
3344 # Extract the first word of "cc", so it can be a program name with args.
3345 set dummy cc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 ac_prog_rejected=no
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3363 ac_prog_rejected=yes
3364 continue
3366 ac_cv_prog_CC="cc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3370 done
3371 done
3372 IFS=$as_save_IFS
3374 if test $ac_prog_rejected = yes; then
3375 # We found a bogon in the path, so make sure we never use it.
3376 set dummy $ac_cv_prog_CC
3377 shift
3378 if test $# != 0; then
3379 # We chose a different compiler from the bogus one.
3380 # However, it has the same basename, so the bogon will be chosen
3381 # first if we set CC to just the basename; use the full file name.
3382 shift
3383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3388 CC=$ac_cv_prog_CC
3389 if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391 $as_echo "$CC" >&6; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3399 if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3401 for ac_prog in cl.exe
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 CC=$ac_cv_prog_CC
3431 if test -n "$CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433 $as_echo "$CC" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -n "$CC" && break
3441 done
3443 if test -z "$CC"; then
3444 ac_ct_CC=$CC
3445 for ac_prog in cl.exe
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464 ac_cv_prog_ac_ct_CC="$ac_prog"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3468 done
3469 done
3470 IFS=$as_save_IFS
3474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477 $as_echo "$ac_ct_CC" >&6; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3484 test -n "$ac_ct_CC" && break
3485 done
3487 if test "x$ac_ct_CC" = x; then
3488 CC=""
3489 else
3490 case $cross_compiling:$ac_tool_warned in
3491 yes:)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494 ac_tool_warned=yes ;;
3495 esac
3496 CC=$ac_ct_CC
3503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error "no acceptable C compiler found in \$PATH
3506 See \`config.log' for more details." "$LINENO" 5; }
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3510 set X $ac_compile
3511 ac_compiler=$2
3512 for ac_option in --version -v -V -qversion; do
3513 { { ac_try="$ac_compiler $ac_option >&5"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521 ac_status=$?
3522 if test -s conftest.err; then
3523 sed '10a\
3524 ... rest of stderr output deleted ...
3525 10q' conftest.err >conftest.er1
3526 cat conftest.er1 >&5
3527 rm -f conftest.er1 conftest.err
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }
3531 done
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 main ()
3541 return 0;
3543 _ACEOF
3544 ac_clean_files_save=$ac_clean_files
3545 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3546 # Try to create an executable without -o first, disregard a.out.
3547 # It will help us diagnose broken compilers, and finding out an intuition
3548 # of exeext.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3550 $as_echo_n "checking for C compiler default output file name... " >&6; }
3551 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3553 # The possible output files:
3554 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3556 ac_rmfiles=
3557 for ac_file in $ac_files
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3562 esac
3563 done
3564 rm -f $ac_rmfiles
3566 if { { ac_try="$ac_link_default"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_link_default") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; then :
3577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3580 # so that the user can short-circuit this test for compilers unknown to
3581 # Autoconf.
3582 for ac_file in $ac_files ''
3584 test -f "$ac_file" || continue
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3588 [ab].out )
3589 # We found the default executable, but exeext='' is most
3590 # certainly right.
3591 break;;
3592 *.* )
3593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3594 then :; else
3595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 # We set ac_cv_exeext here because the later test for it is not
3598 # safe: cross compilers may not add the suffix if given an `-o'
3599 # argument, so we may need to know it at that point already.
3600 # Even if this section looks crufty: it has the advantage of
3601 # actually working.
3602 break;;
3604 break;;
3605 esac
3606 done
3607 test "$ac_cv_exeext" = no && ac_cv_exeext=
3609 else
3610 ac_file=''
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3613 $as_echo "$ac_file" >&6; }
3614 if test -z "$ac_file"; then :
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 { as_fn_set_status 77
3621 as_fn_error "C compiler cannot create executables
3622 See \`config.log' for more details." "$LINENO" 5; }; }
3624 ac_exeext=$ac_cv_exeext
3626 # Check that the compiler produces executables we can run. If not, either
3627 # the compiler is broken, or we cross compile.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629 $as_echo_n "checking whether the C compiler works... " >&6; }
3630 # If not cross compiling, check that we can run a simple program.
3631 if test "$cross_compiling" != yes; then
3632 if { ac_try='./$ac_file'
3633 { { case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_try") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; }; then
3643 cross_compiling=no
3644 else
3645 if test "$cross_compiling" = maybe; then
3646 cross_compiling=yes
3647 else
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error "cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details." "$LINENO" 5; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657 $as_echo "yes" >&6; }
3659 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3660 ac_clean_files=$ac_clean_files_save
3661 # Check that the compiler produces executables we can run. If not, either
3662 # the compiler is broken, or we cross compile.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3664 $as_echo_n "checking whether we are cross compiling... " >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669 $as_echo_n "checking for suffix of executables... " >&6; }
3670 if { { ac_try="$ac_link"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe'), while it won't with
3684 # `rm'.
3685 for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 break;;
3691 * ) break;;
3692 esac
3693 done
3694 else
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error "cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." "$LINENO" 5; }
3700 rm -f conftest$ac_cv_exeext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702 $as_echo "$ac_cv_exeext" >&6; }
3704 rm -f conftest.$ac_ext
3705 EXEEXT=$ac_cv_exeext
3706 ac_exeext=$EXEEXT
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3708 $as_echo_n "checking for suffix of object files... " >&6; }
3709 if test "${ac_cv_objext+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 main ()
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.o conftest.obj
3724 if { { ac_try="$ac_compile"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_compile") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3740 break;;
3741 esac
3742 done
3743 else
3744 $as_echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error "cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details." "$LINENO" 5; }
3752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3755 $as_echo "$ac_cv_objext" >&6; }
3756 OBJEXT=$ac_cv_objext
3757 ac_objext=$OBJEXT
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3759 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3760 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3769 #ifndef __GNUC__
3770 choke me
3771 #endif
3774 return 0;
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_compiler_gnu=yes
3779 else
3780 ac_compiler_gnu=no
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3787 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3788 if test $ac_compiler_gnu = yes; then
3789 GCC=yes
3790 else
3791 GCC=
3793 ac_test_CFLAGS=${CFLAGS+set}
3794 ac_save_CFLAGS=$CFLAGS
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3796 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3797 if test "${ac_cv_prog_cc_g+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 ac_save_c_werror_flag=$ac_c_werror_flag
3801 ac_c_werror_flag=yes
3802 ac_cv_prog_cc_g=no
3803 CFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3812 return 0;
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_g=yes
3817 else
3818 CFLAGS=""
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3827 return 0;
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3832 else
3833 ac_c_werror_flag=$ac_save_c_werror_flag
3834 CFLAGS="-g"
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3843 return 0;
3845 _ACEOF
3846 if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_prog_cc_g=yes
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_c_werror_flag=$ac_save_c_werror_flag
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3857 $as_echo "$ac_cv_prog_cc_g" >&6; }
3858 if test "$ac_test_CFLAGS" = set; then
3859 CFLAGS=$ac_save_CFLAGS
3860 elif test $ac_cv_prog_cc_g = yes; then
3861 if test "$GCC" = yes; then
3862 CFLAGS="-g -O2"
3863 else
3864 CFLAGS="-g"
3866 else
3867 if test "$GCC" = yes; then
3868 CFLAGS="-O2"
3869 else
3870 CFLAGS=
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3874 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3875 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 ac_cv_prog_cc_c89=no
3879 ac_save_CC=$CC
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #include <stdarg.h>
3883 #include <stdio.h>
3884 #include <sys/types.h>
3885 #include <sys/stat.h>
3886 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887 struct buf { int x; };
3888 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889 static char *e (p, i)
3890 char **p;
3891 int i;
3893 return p[i];
3895 static char *f (char * (*g) (char **, int), char **p, ...)
3897 char *s;
3898 va_list v;
3899 va_start (v,p);
3900 s = g (p, va_arg (v,int));
3901 va_end (v);
3902 return s;
3905 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std. */
3912 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3914 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3915 inside strings and character constants. */
3916 #define FOO(x) 'x'
3917 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3919 int test (int i, double x);
3920 struct s1 {int (*f) (int a);};
3921 struct s2 {int (*f) (double a);};
3922 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3923 int argc;
3924 char **argv;
3926 main ()
3928 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3930 return 0;
3932 _ACEOF
3933 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3936 CC="$ac_save_CC $ac_arg"
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_c89=$ac_arg
3940 rm -f core conftest.err conftest.$ac_objext
3941 test "x$ac_cv_prog_cc_c89" != "xno" && break
3942 done
3943 rm -f conftest.$ac_ext
3944 CC=$ac_save_CC
3947 # AC_CACHE_VAL
3948 case "x$ac_cv_prog_cc_c89" in
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3951 $as_echo "none needed" >&6; } ;;
3952 xno)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3954 $as_echo "unsupported" >&6; } ;;
3956 CC="$CC $ac_cv_prog_cc_c89"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3958 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3959 esac
3960 if test "x$ac_cv_prog_cc_c89" != xno; then :
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 depcc="$CC" am_compiler_list=
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3973 $as_echo_n "checking dependency style of $depcc... " >&6; }
3974 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3978 # We make a subdir and do the tests there. Otherwise we can end up
3979 # making bogus files that we don't know about and never remove. For
3980 # instance it was reported that on HP-UX the gcc test will end up
3981 # making a dummy file named `D' -- because `-MD' means `put the output
3982 # in D'.
3983 mkdir conftest.dir
3984 # Copy depcomp to subdir because otherwise we won't find it if we're
3985 # using a relative directory.
3986 cp "$am_depcomp" conftest.dir
3987 cd conftest.dir
3988 # We will build objects and dependencies in a subdirectory because
3989 # it helps to detect inapplicable dependency modes. For instance
3990 # both Tru64's cc and ICC support -MD to output dependencies as a
3991 # side effect of compilation, but ICC will put the dependencies in
3992 # the current directory while Tru64 will put them in the object
3993 # directory.
3994 mkdir sub
3996 am_cv_CC_dependencies_compiler_type=none
3997 if test "$am_compiler_list" = ""; then
3998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4000 am__universal=false
4001 case " $depcc " in #(
4002 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4003 esac
4005 for depmode in $am_compiler_list; do
4006 # Setup a source with many dependencies, because some compilers
4007 # like to wrap large dependency lists on column 80 (with \), and
4008 # we should not choose a depcomp mode which is confused by this.
4010 # We need to recreate these files for each test, as the compiler may
4011 # overwrite some of them when testing with obscure command lines.
4012 # This happens at least with the AIX C compiler.
4013 : > sub/conftest.c
4014 for i in 1 2 3 4 5 6; do
4015 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4016 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4017 # Solaris 8's {/usr,}/bin/sh.
4018 touch sub/conftst$i.h
4019 done
4020 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4023 # mode. It turns out that the SunPro C++ compiler does not properly
4024 # handle `-M -o', and we need to detect this. Also, some Intel
4025 # versions had trouble with output in subdirs
4026 am__obj=sub/conftest.${OBJEXT-o}
4027 am__minus_obj="-o $am__obj"
4028 case $depmode in
4029 gcc)
4030 # This depmode causes a compiler race in universal mode.
4031 test "$am__universal" = false || continue
4033 nosideeffect)
4034 # after this tag, mechanisms are not by side-effect, so they'll
4035 # only be used when explicitly requested
4036 if test "x$enable_dependency_tracking" = xyes; then
4037 continue
4038 else
4039 break
4042 msvisualcpp | msvcmsys)
4043 # This compiler won't grok `-c -o', but also, the minuso test has
4044 # not run yet. These depmodes are late enough in the game, and
4045 # so weak that their functioning should not be impacted.
4046 am__obj=conftest.${OBJEXT-o}
4047 am__minus_obj=
4049 none) break ;;
4050 esac
4051 if depmode=$depmode \
4052 source=sub/conftest.c object=$am__obj \
4053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4054 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4055 >/dev/null 2>conftest.err &&
4056 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4059 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4060 # icc doesn't choke on unknown options, it will just issue warnings
4061 # or remarks (even with -Werror). So we grep stderr for any message
4062 # that says an option was ignored or not supported.
4063 # When given -MP, icc 7.0 and 7.1 complain thusly:
4064 # icc: Command line warning: ignoring option '-M'; no argument required
4065 # The diagnosis changed in icc 8.0:
4066 # icc: Command line remark: option '-MP' not supported
4067 if (grep 'ignoring option' conftest.err ||
4068 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4069 am_cv_CC_dependencies_compiler_type=$depmode
4070 break
4073 done
4075 cd ..
4076 rm -rf conftest.dir
4077 else
4078 am_cv_CC_dependencies_compiler_type=none
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4083 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4084 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4087 test "x$enable_dependency_tracking" != xno \
4088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4089 am__fastdepCC_TRUE=
4090 am__fastdepCC_FALSE='#'
4091 else
4092 am__fastdepCC_TRUE='#'
4093 am__fastdepCC_FALSE=
4098 ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4104 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4105 # On Suns, sometimes $CPP names a directory.
4106 if test -n "$CPP" && test -d "$CPP"; then
4107 CPP=
4109 if test -z "$CPP"; then
4110 if test "${ac_cv_prog_CPP+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 # Double quotes because CPP needs to be expanded
4114 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4116 ac_preproc_ok=false
4117 for ac_c_preproc_warn_flag in '' yes
4119 # Use a header file that comes with gcc, so configuring glibc
4120 # with a fresh cross-compiler works.
4121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122 # <limits.h> exists even on freestanding compilers.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #ifdef __STDC__
4128 # include <limits.h>
4129 #else
4130 # include <assert.h>
4131 #endif
4132 Syntax error
4133 _ACEOF
4134 if ac_fn_c_try_cpp "$LINENO"; then :
4136 else
4137 # Broken: fails on valid input.
4138 continue
4140 rm -f conftest.err conftest.$ac_ext
4142 # OK, works on sane cases. Now check whether nonexistent headers
4143 # can be detected and how.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #include <ac_nonexistent.h>
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149 # Broken: success on invalid input.
4150 continue
4151 else
4152 # Passes both tests.
4153 ac_preproc_ok=:
4154 break
4156 rm -f conftest.err conftest.$ac_ext
4158 done
4159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160 rm -f conftest.err conftest.$ac_ext
4161 if $ac_preproc_ok; then :
4162 break
4165 done
4166 ac_cv_prog_CPP=$CPP
4169 CPP=$ac_cv_prog_CPP
4170 else
4171 ac_cv_prog_CPP=$CPP
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4174 $as_echo "$CPP" >&6; }
4175 ac_preproc_ok=false
4176 for ac_c_preproc_warn_flag in '' yes
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4195 else
4196 # Broken: fails on valid input.
4197 continue
4199 rm -f conftest.err conftest.$ac_ext
4201 # OK, works on sane cases. Now check whether nonexistent headers
4202 # can be detected and how.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <ac_nonexistent.h>
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208 # Broken: success on invalid input.
4209 continue
4210 else
4211 # Passes both tests.
4212 ac_preproc_ok=:
4213 break
4215 rm -f conftest.err conftest.$ac_ext
4217 done
4218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219 rm -f conftest.err conftest.$ac_ext
4220 if $ac_preproc_ok; then :
4222 else
4223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4226 See \`config.log' for more details." "$LINENO" 5; }
4229 ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4237 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4238 if test "${ac_cv_path_GREP+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -z "$GREP"; then
4242 ac_path_GREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in grep ggrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4253 # Check for GNU ac_path_GREP and select it if it is found.
4254 # Check for GNU $ac_path_GREP
4255 case `"$ac_path_GREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo 'GREP' >> "conftest.nl"
4267 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_GREP="$ac_path_GREP"
4273 ac_path_GREP_max=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4281 $ac_path_GREP_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_GREP"; then
4287 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289 else
4290 ac_cv_path_GREP=$GREP
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4295 $as_echo "$ac_cv_path_GREP" >&6; }
4296 GREP="$ac_cv_path_GREP"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4300 $as_echo_n "checking for egrep... " >&6; }
4301 if test "${ac_cv_path_EGREP+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4305 then ac_cv_path_EGREP="$GREP -E"
4306 else
4307 if test -z "$EGREP"; then
4308 ac_path_EGREP_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_prog in egrep; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4318 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4319 # Check for GNU ac_path_EGREP and select it if it is found.
4320 # Check for GNU $ac_path_EGREP
4321 case `"$ac_path_EGREP" --version 2>&1` in
4322 *GNU*)
4323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325 ac_count=0
4326 $as_echo_n 0123456789 >"conftest.in"
4327 while :
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 $as_echo 'EGREP' >> "conftest.nl"
4333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335 as_fn_arith $ac_count + 1 && ac_count=$as_val
4336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_EGREP="$ac_path_EGREP"
4339 ac_path_EGREP_max=$ac_count
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4343 done
4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 esac
4347 $ac_path_EGREP_found && break 3
4348 done
4349 done
4350 done
4351 IFS=$as_save_IFS
4352 if test -z "$ac_cv_path_EGREP"; then
4353 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 else
4356 ac_cv_path_EGREP=$EGREP
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4362 $as_echo "$ac_cv_path_EGREP" >&6; }
4363 EGREP="$ac_cv_path_EGREP"
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4367 $as_echo_n "checking for ANSI C header files... " >&6; }
4368 if test "${ac_cv_header_stdc+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <stdlib.h>
4374 #include <stdarg.h>
4375 #include <string.h>
4376 #include <float.h>
4379 main ()
4383 return 0;
4385 _ACEOF
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_header_stdc=yes
4388 else
4389 ac_cv_header_stdc=no
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 if test $ac_cv_header_stdc = yes; then
4394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <string.h>
4399 _ACEOF
4400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "memchr" >/dev/null 2>&1; then :
4403 else
4404 ac_cv_header_stdc=no
4406 rm -f conftest*
4410 if test $ac_cv_header_stdc = yes; then
4411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <stdlib.h>
4416 _ACEOF
4417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "free" >/dev/null 2>&1; then :
4420 else
4421 ac_cv_header_stdc=no
4423 rm -f conftest*
4427 if test $ac_cv_header_stdc = yes; then
4428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4429 if test "$cross_compiling" = yes; then :
4431 else
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <ctype.h>
4435 #include <stdlib.h>
4436 #if ((' ' & 0x0FF) == 0x020)
4437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4439 #else
4440 # define ISLOWER(c) \
4441 (('a' <= (c) && (c) <= 'i') \
4442 || ('j' <= (c) && (c) <= 'r') \
4443 || ('s' <= (c) && (c) <= 'z'))
4444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4445 #endif
4447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4449 main ()
4451 int i;
4452 for (i = 0; i < 256; i++)
4453 if (XOR (islower (i), ISLOWER (i))
4454 || toupper (i) != TOUPPER (i))
4455 return 2;
4456 return 0;
4458 _ACEOF
4459 if ac_fn_c_try_run "$LINENO"; then :
4461 else
4462 ac_cv_header_stdc=no
4464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4465 conftest.$ac_objext conftest.beam conftest.$ac_ext
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4471 $as_echo "$ac_cv_header_stdc" >&6; }
4472 if test $ac_cv_header_stdc = yes; then
4474 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4478 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4480 inttypes.h stdint.h unistd.h
4481 do :
4482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4483 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4485 eval as_val=\$$as_ac_Header
4486 if test "x$as_val" = x""yes; then :
4487 cat >>confdefs.h <<_ACEOF
4488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489 _ACEOF
4493 done
4497 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4498 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4499 MINIX=yes
4500 else
4501 MINIX=
4505 if test "$MINIX" = yes; then
4507 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4510 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4513 $as_echo "#define _MINIX 1" >>confdefs.h
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4519 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4520 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4526 # define __EXTENSIONS__ 1
4527 $ac_includes_default
4529 main ()
4533 return 0;
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"; then :
4537 ac_cv_safe_to_define___extensions__=yes
4538 else
4539 ac_cv_safe_to_define___extensions__=no
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4544 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4545 test $ac_cv_safe_to_define___extensions__ = yes &&
4546 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4548 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4550 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4552 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4554 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4558 for ac_func in __secure_getenv
4559 do :
4560 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4561 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4562 cat >>confdefs.h <<_ACEOF
4563 #define HAVE___SECURE_GETENV 1
4564 _ACEOF
4567 done
4571 for ac_func in secure_getenv
4572 do :
4573 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4574 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4575 cat >>confdefs.h <<_ACEOF
4576 #define HAVE_SECURE_GETENV 1
4577 _ACEOF
4580 done
4583 # Check for programs.
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_prog_CC+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 CC=$ac_cv_prog_CC
4620 if test -n "$CC"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622 $as_echo "$CC" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_CC"; then
4631 ac_ct_CC=$CC
4632 # Extract the first word of "gcc", so it can be a program name with args.
4633 set dummy gcc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$ac_ct_CC"; then
4640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_ac_ct_CC="gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4660 if test -n "$ac_ct_CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4662 $as_echo "$ac_ct_CC" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_CC" = x; then
4669 CC=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 CC=$ac_ct_CC
4679 else
4680 CC="$ac_cv_prog_CC"
4683 if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}cc; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_CC+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_CC="${ac_tool_prefix}cc"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4706 done
4707 done
4708 IFS=$as_save_IFS
4712 CC=$ac_cv_prog_CC
4713 if test -n "$CC"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4715 $as_echo "$CC" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4724 if test -z "$CC"; then
4725 # Extract the first word of "cc", so it can be a program name with args.
4726 set dummy cc; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 ac_prog_rejected=no
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744 ac_prog_rejected=yes
4745 continue
4747 ac_cv_prog_CC="cc"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4751 done
4752 done
4753 IFS=$as_save_IFS
4755 if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_CC
4758 shift
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set CC to just the basename; use the full file name.
4763 shift
4764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4769 CC=$ac_cv_prog_CC
4770 if test -n "$CC"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4772 $as_echo "$CC" >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4780 if test -z "$CC"; then
4781 if test -n "$ac_tool_prefix"; then
4782 for ac_prog in cl.exe
4784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_CC+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$CC"; then
4792 ac_cv_prog_CC="$CC" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 CC=$ac_cv_prog_CC
4812 if test -n "$CC"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4814 $as_echo "$CC" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4821 test -n "$CC" && break
4822 done
4824 if test -z "$CC"; then
4825 ac_ct_CC=$CC
4826 for ac_prog in cl.exe
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$ac_ct_CC"; then
4836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_ac_ct_CC="$ac_prog"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4856 if test -n "$ac_ct_CC"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4858 $as_echo "$ac_ct_CC" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4865 test -n "$ac_ct_CC" && break
4866 done
4868 if test "x$ac_ct_CC" = x; then
4869 CC=""
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877 CC=$ac_ct_CC
4884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4886 as_fn_error "no acceptable C compiler found in \$PATH
4887 See \`config.log' for more details." "$LINENO" 5; }
4889 # Provide some information about the compiler.
4890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4891 set X $ac_compile
4892 ac_compiler=$2
4893 for ac_option in --version -v -V -qversion; do
4894 { { ac_try="$ac_compiler $ac_option >&5"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900 $as_echo "$ac_try_echo"; } >&5
4901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4902 ac_status=$?
4903 if test -s conftest.err; then
4904 sed '10a\
4905 ... rest of stderr output deleted ...
4906 10q' conftest.err >conftest.er1
4907 cat conftest.er1 >&5
4908 rm -f conftest.er1 conftest.err
4910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4911 test $ac_status = 0; }
4912 done
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4915 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4916 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4923 main ()
4925 #ifndef __GNUC__
4926 choke me
4927 #endif
4930 return 0;
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_compiler_gnu=yes
4935 else
4936 ac_compiler_gnu=no
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4943 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4944 if test $ac_compiler_gnu = yes; then
4945 GCC=yes
4946 else
4947 GCC=
4949 ac_test_CFLAGS=${CFLAGS+set}
4950 ac_save_CFLAGS=$CFLAGS
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4952 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4953 if test "${ac_cv_prog_cc_g+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 ac_save_c_werror_flag=$ac_c_werror_flag
4957 ac_c_werror_flag=yes
4958 ac_cv_prog_cc_g=no
4959 CFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4964 main ()
4968 return 0;
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_cv_prog_cc_g=yes
4973 else
4974 CFLAGS=""
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4979 main ()
4983 return 0;
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4988 else
4989 ac_c_werror_flag=$ac_save_c_werror_flag
4990 CFLAGS="-g"
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4995 main ()
4999 return 0;
5001 _ACEOF
5002 if ac_fn_c_try_compile "$LINENO"; then :
5003 ac_cv_prog_cc_g=yes
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 ac_c_werror_flag=$ac_save_c_werror_flag
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5013 $as_echo "$ac_cv_prog_cc_g" >&6; }
5014 if test "$ac_test_CFLAGS" = set; then
5015 CFLAGS=$ac_save_CFLAGS
5016 elif test $ac_cv_prog_cc_g = yes; then
5017 if test "$GCC" = yes; then
5018 CFLAGS="-g -O2"
5019 else
5020 CFLAGS="-g"
5022 else
5023 if test "$GCC" = yes; then
5024 CFLAGS="-O2"
5025 else
5026 CFLAGS=
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5030 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5031 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 ac_cv_prog_cc_c89=no
5035 ac_save_CC=$CC
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 #include <stdarg.h>
5039 #include <stdio.h>
5040 #include <sys/types.h>
5041 #include <sys/stat.h>
5042 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5043 struct buf { int x; };
5044 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5045 static char *e (p, i)
5046 char **p;
5047 int i;
5049 return p[i];
5051 static char *f (char * (*g) (char **, int), char **p, ...)
5053 char *s;
5054 va_list v;
5055 va_start (v,p);
5056 s = g (p, va_arg (v,int));
5057 va_end (v);
5058 return s;
5061 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5062 function prototypes and stuff, but not '\xHH' hex character constants.
5063 These don't provoke an error unfortunately, instead are silently treated
5064 as 'x'. The following induces an error, until -std is added to get
5065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5066 array size at least. It's necessary to write '\x00'==0 to get something
5067 that's true only with -std. */
5068 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5070 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5071 inside strings and character constants. */
5072 #define FOO(x) 'x'
5073 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5075 int test (int i, double x);
5076 struct s1 {int (*f) (int a);};
5077 struct s2 {int (*f) (double a);};
5078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5079 int argc;
5080 char **argv;
5082 main ()
5084 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5086 return 0;
5088 _ACEOF
5089 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5092 CC="$ac_save_CC $ac_arg"
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 ac_cv_prog_cc_c89=$ac_arg
5096 rm -f core conftest.err conftest.$ac_objext
5097 test "x$ac_cv_prog_cc_c89" != "xno" && break
5098 done
5099 rm -f conftest.$ac_ext
5100 CC=$ac_save_CC
5103 # AC_CACHE_VAL
5104 case "x$ac_cv_prog_cc_c89" in
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5107 $as_echo "none needed" >&6; } ;;
5108 xno)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5110 $as_echo "unsupported" >&6; } ;;
5112 CC="$CC $ac_cv_prog_cc_c89"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5114 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5115 esac
5116 if test "x$ac_cv_prog_cc_c89" != xno; then :
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126 depcc="$CC" am_compiler_list=
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5129 $as_echo_n "checking dependency style of $depcc... " >&6; }
5130 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5134 # We make a subdir and do the tests there. Otherwise we can end up
5135 # making bogus files that we don't know about and never remove. For
5136 # instance it was reported that on HP-UX the gcc test will end up
5137 # making a dummy file named `D' -- because `-MD' means `put the output
5138 # in D'.
5139 mkdir conftest.dir
5140 # Copy depcomp to subdir because otherwise we won't find it if we're
5141 # using a relative directory.
5142 cp "$am_depcomp" conftest.dir
5143 cd conftest.dir
5144 # We will build objects and dependencies in a subdirectory because
5145 # it helps to detect inapplicable dependency modes. For instance
5146 # both Tru64's cc and ICC support -MD to output dependencies as a
5147 # side effect of compilation, but ICC will put the dependencies in
5148 # the current directory while Tru64 will put them in the object
5149 # directory.
5150 mkdir sub
5152 am_cv_CC_dependencies_compiler_type=none
5153 if test "$am_compiler_list" = ""; then
5154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5156 am__universal=false
5157 case " $depcc " in #(
5158 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5159 esac
5161 for depmode in $am_compiler_list; do
5162 # Setup a source with many dependencies, because some compilers
5163 # like to wrap large dependency lists on column 80 (with \), and
5164 # we should not choose a depcomp mode which is confused by this.
5166 # We need to recreate these files for each test, as the compiler may
5167 # overwrite some of them when testing with obscure command lines.
5168 # This happens at least with the AIX C compiler.
5169 : > sub/conftest.c
5170 for i in 1 2 3 4 5 6; do
5171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5172 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5173 # Solaris 8's {/usr,}/bin/sh.
5174 touch sub/conftst$i.h
5175 done
5176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5178 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5179 # mode. It turns out that the SunPro C++ compiler does not properly
5180 # handle `-M -o', and we need to detect this. Also, some Intel
5181 # versions had trouble with output in subdirs
5182 am__obj=sub/conftest.${OBJEXT-o}
5183 am__minus_obj="-o $am__obj"
5184 case $depmode in
5185 gcc)
5186 # This depmode causes a compiler race in universal mode.
5187 test "$am__universal" = false || continue
5189 nosideeffect)
5190 # after this tag, mechanisms are not by side-effect, so they'll
5191 # only be used when explicitly requested
5192 if test "x$enable_dependency_tracking" = xyes; then
5193 continue
5194 else
5195 break
5198 msvisualcpp | msvcmsys)
5199 # This compiler won't grok `-c -o', but also, the minuso test has
5200 # not run yet. These depmodes are late enough in the game, and
5201 # so weak that their functioning should not be impacted.
5202 am__obj=conftest.${OBJEXT-o}
5203 am__minus_obj=
5205 none) break ;;
5206 esac
5207 if depmode=$depmode \
5208 source=sub/conftest.c object=$am__obj \
5209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5211 >/dev/null 2>conftest.err &&
5212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5216 # icc doesn't choke on unknown options, it will just issue warnings
5217 # or remarks (even with -Werror). So we grep stderr for any message
5218 # that says an option was ignored or not supported.
5219 # When given -MP, icc 7.0 and 7.1 complain thusly:
5220 # icc: Command line warning: ignoring option '-M'; no argument required
5221 # The diagnosis changed in icc 8.0:
5222 # icc: Command line remark: option '-MP' not supported
5223 if (grep 'ignoring option' conftest.err ||
5224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5225 am_cv_CC_dependencies_compiler_type=$depmode
5226 break
5229 done
5231 cd ..
5232 rm -rf conftest.dir
5233 else
5234 am_cv_CC_dependencies_compiler_type=none
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5239 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5240 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5243 test "x$enable_dependency_tracking" != xno \
5244 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5245 am__fastdepCC_TRUE=
5246 am__fastdepCC_FALSE='#'
5247 else
5248 am__fastdepCC_TRUE='#'
5249 am__fastdepCC_FALSE=
5253 ac_ext=cpp
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258 if test -z "$CXX"; then
5259 if test -n "$CCC"; then
5260 CXX=$CCC
5261 else
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_CXX+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$CXX"; then
5273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5292 CXX=$ac_cv_prog_CXX
5293 if test -n "$CXX"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5295 $as_echo "$CXX" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5302 test -n "$CXX" && break
5303 done
5305 if test -z "$CXX"; then
5306 ac_ct_CXX=$CXX
5307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$ac_ct_CXX"; then
5317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CXX="$ac_prog"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5332 IFS=$as_save_IFS
5336 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5337 if test -n "$ac_ct_CXX"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5339 $as_echo "$ac_ct_CXX" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5346 test -n "$ac_ct_CXX" && break
5347 done
5349 if test "x$ac_ct_CXX" = x; then
5350 CXX="g++"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 CXX=$ac_ct_CXX
5364 # Provide some information about the compiler.
5365 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5366 set X $ac_compile
5367 ac_compiler=$2
5368 for ac_option in --version -v -V -qversion; do
5369 { { ac_try="$ac_compiler $ac_option >&5"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5375 $as_echo "$ac_try_echo"; } >&5
5376 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5377 ac_status=$?
5378 if test -s conftest.err; then
5379 sed '10a\
5380 ... rest of stderr output deleted ...
5381 10q' conftest.err >conftest.er1
5382 cat conftest.er1 >&5
5383 rm -f conftest.er1 conftest.err
5385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5386 test $ac_status = 0; }
5387 done
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5390 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5391 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5398 main ()
5400 #ifndef __GNUC__
5401 choke me
5402 #endif
5405 return 0;
5407 _ACEOF
5408 if ac_fn_cxx_try_compile "$LINENO"; then :
5409 ac_compiler_gnu=yes
5410 else
5411 ac_compiler_gnu=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5418 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5419 if test $ac_compiler_gnu = yes; then
5420 GXX=yes
5421 else
5422 GXX=
5424 ac_test_CXXFLAGS=${CXXFLAGS+set}
5425 ac_save_CXXFLAGS=$CXXFLAGS
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5427 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5428 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5432 ac_cxx_werror_flag=yes
5433 ac_cv_prog_cxx_g=no
5434 CXXFLAGS="-g"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5439 main ()
5443 return 0;
5445 _ACEOF
5446 if ac_fn_cxx_try_compile "$LINENO"; then :
5447 ac_cv_prog_cxx_g=yes
5448 else
5449 CXXFLAGS=""
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5454 main ()
5458 return 0;
5460 _ACEOF
5461 if ac_fn_cxx_try_compile "$LINENO"; then :
5463 else
5464 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5465 CXXFLAGS="-g"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5470 main ()
5474 return 0;
5476 _ACEOF
5477 if ac_fn_cxx_try_compile "$LINENO"; then :
5478 ac_cv_prog_cxx_g=yes
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5488 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5489 if test "$ac_test_CXXFLAGS" = set; then
5490 CXXFLAGS=$ac_save_CXXFLAGS
5491 elif test $ac_cv_prog_cxx_g = yes; then
5492 if test "$GXX" = yes; then
5493 CXXFLAGS="-g -O2"
5494 else
5495 CXXFLAGS="-g"
5497 else
5498 if test "$GXX" = yes; then
5499 CXXFLAGS="-O2"
5500 else
5501 CXXFLAGS=
5504 ac_ext=c
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510 depcc="$CXX" am_compiler_list=
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5513 $as_echo_n "checking dependency style of $depcc... " >&6; }
5514 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5518 # We make a subdir and do the tests there. Otherwise we can end up
5519 # making bogus files that we don't know about and never remove. For
5520 # instance it was reported that on HP-UX the gcc test will end up
5521 # making a dummy file named `D' -- because `-MD' means `put the output
5522 # in D'.
5523 mkdir conftest.dir
5524 # Copy depcomp to subdir because otherwise we won't find it if we're
5525 # using a relative directory.
5526 cp "$am_depcomp" conftest.dir
5527 cd conftest.dir
5528 # We will build objects and dependencies in a subdirectory because
5529 # it helps to detect inapplicable dependency modes. For instance
5530 # both Tru64's cc and ICC support -MD to output dependencies as a
5531 # side effect of compilation, but ICC will put the dependencies in
5532 # the current directory while Tru64 will put them in the object
5533 # directory.
5534 mkdir sub
5536 am_cv_CXX_dependencies_compiler_type=none
5537 if test "$am_compiler_list" = ""; then
5538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5540 am__universal=false
5541 case " $depcc " in #(
5542 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5543 esac
5545 for depmode in $am_compiler_list; do
5546 # Setup a source with many dependencies, because some compilers
5547 # like to wrap large dependency lists on column 80 (with \), and
5548 # we should not choose a depcomp mode which is confused by this.
5550 # We need to recreate these files for each test, as the compiler may
5551 # overwrite some of them when testing with obscure command lines.
5552 # This happens at least with the AIX C compiler.
5553 : > sub/conftest.c
5554 for i in 1 2 3 4 5 6; do
5555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5557 # Solaris 8's {/usr,}/bin/sh.
5558 touch sub/conftst$i.h
5559 done
5560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5563 # mode. It turns out that the SunPro C++ compiler does not properly
5564 # handle `-M -o', and we need to detect this. Also, some Intel
5565 # versions had trouble with output in subdirs
5566 am__obj=sub/conftest.${OBJEXT-o}
5567 am__minus_obj="-o $am__obj"
5568 case $depmode in
5569 gcc)
5570 # This depmode causes a compiler race in universal mode.
5571 test "$am__universal" = false || continue
5573 nosideeffect)
5574 # after this tag, mechanisms are not by side-effect, so they'll
5575 # only be used when explicitly requested
5576 if test "x$enable_dependency_tracking" = xyes; then
5577 continue
5578 else
5579 break
5582 msvisualcpp | msvcmsys)
5583 # This compiler won't grok `-c -o', but also, the minuso test has
5584 # not run yet. These depmodes are late enough in the game, and
5585 # so weak that their functioning should not be impacted.
5586 am__obj=conftest.${OBJEXT-o}
5587 am__minus_obj=
5589 none) break ;;
5590 esac
5591 if depmode=$depmode \
5592 source=sub/conftest.c object=$am__obj \
5593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5595 >/dev/null 2>conftest.err &&
5596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5600 # icc doesn't choke on unknown options, it will just issue warnings
5601 # or remarks (even with -Werror). So we grep stderr for any message
5602 # that says an option was ignored or not supported.
5603 # When given -MP, icc 7.0 and 7.1 complain thusly:
5604 # icc: Command line warning: ignoring option '-M'; no argument required
5605 # The diagnosis changed in icc 8.0:
5606 # icc: Command line remark: option '-MP' not supported
5607 if (grep 'ignoring option' conftest.err ||
5608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5609 am_cv_CXX_dependencies_compiler_type=$depmode
5610 break
5613 done
5615 cd ..
5616 rm -rf conftest.dir
5617 else
5618 am_cv_CXX_dependencies_compiler_type=none
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5623 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5624 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5627 test "x$enable_dependency_tracking" != xno \
5628 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5629 am__fastdepCXX_TRUE=
5630 am__fastdepCXX_FALSE='#'
5631 else
5632 am__fastdepCXX_TRUE='#'
5633 am__fastdepCXX_FALSE=
5639 if test "x$CC" != xcc; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5641 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5644 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5646 set dummy $CC; ac_cc=`$as_echo "$2" |
5647 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5648 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5655 main ()
5659 return 0;
5661 _ACEOF
5662 # Make sure it works both with $CC and with simple cc.
5663 # We do the test twice because some compilers refuse to overwrite an
5664 # existing .o file with -o, though they will create one.
5665 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 rm -f conftest2.*
5667 if { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5687 then
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5689 if test "x$CC" != xcc; then
5690 # Test first that cc exists at all.
5691 if { ac_try='cc -c conftest.$ac_ext >&5'
5692 { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; }; then
5702 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5703 rm -f conftest2.*
5704 if { { case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709 $as_echo "$ac_try_echo"; } >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; } &&
5714 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5719 $as_echo "$ac_try_echo"; } >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; };
5724 then
5725 # cc works too.
5727 else
5728 # cc exists but doesn't like -o.
5729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5733 else
5734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5736 rm -f core conftest*
5739 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741 $as_echo "yes" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5746 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5750 # FIXME: we rely on the cache variable name because
5751 # there is no other way.
5752 set dummy $CC
5753 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5754 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5755 if test "$am_t" != yes; then
5756 # Losing compiler, so override with the script.
5757 # FIXME: It is wrong to rewrite CC.
5758 # But if we don't then we get into trouble of one sort or another.
5759 # A longer-term fix would be to have automake use am__CC in this case,
5760 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5761 CC="$am_aux_dir/compile $CC"
5769 # Newer automakes demand CCAS and CCASFLAGS.
5770 : ${CCAS='$(CC)'}
5771 : ${CCASFLAGS='$(CFLAGS)'}
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}as; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if test "${ac_cv_prog_AS+set}" = set; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 if test -n "$AS"; then
5784 ac_cv_prog_AS="$AS" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793 ac_cv_prog_AS="${ac_tool_prefix}as"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5797 done
5798 done
5799 IFS=$as_save_IFS
5803 AS=$ac_cv_prog_AS
5804 if test -n "$AS"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5806 $as_echo "$AS" >&6; }
5807 else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5814 if test -z "$ac_cv_prog_AS"; then
5815 ac_ct_AS=$AS
5816 # Extract the first word of "as", so it can be a program name with args.
5817 set dummy as; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$ac_ct_AS"; then
5824 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_ac_ct_AS="as"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5837 done
5838 done
5839 IFS=$as_save_IFS
5843 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5844 if test -n "$ac_ct_AS"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5846 $as_echo "$ac_ct_AS" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5852 if test "x$ac_ct_AS" = x; then
5853 AS=""
5854 else
5855 case $cross_compiling:$ac_tool_warned in
5856 yes:)
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859 ac_tool_warned=yes ;;
5860 esac
5861 AS=$ac_ct_AS
5863 else
5864 AS="$ac_cv_prog_AS"
5867 if test -n "$ac_tool_prefix"; then
5868 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5869 set dummy ${ac_tool_prefix}ar; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if test "${ac_cv_prog_AR+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$AR"; then
5876 ac_cv_prog_AR="$AR" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_AR="${ac_tool_prefix}ar"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 AR=$ac_cv_prog_AR
5896 if test -n "$AR"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5898 $as_echo "$AR" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 if test -z "$ac_cv_prog_AR"; then
5907 ac_ct_AR=$AR
5908 # Extract the first word of "ar", so it can be a program name with args.
5909 set dummy ar; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$ac_ct_AR"; then
5916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_AR="ar"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5931 IFS=$as_save_IFS
5935 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5936 if test -n "$ac_ct_AR"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5938 $as_echo "$ac_ct_AR" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5944 if test "x$ac_ct_AR" = x; then
5945 AR=""
5946 else
5947 case $cross_compiling:$ac_tool_warned in
5948 yes:)
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951 ac_tool_warned=yes ;;
5952 esac
5953 AR=$ac_ct_AR
5955 else
5956 AR="$ac_cv_prog_AR"
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5981 done
5982 done
5983 IFS=$as_save_IFS
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6036 if test "x$ac_ct_RANLIB" = x; then
6037 RANLIB=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045 RANLIB=$ac_ct_RANLIB
6047 else
6048 RANLIB="$ac_cv_prog_RANLIB"
6052 # Configure libtool
6053 enable_dlopen=yes
6057 case `pwd` in
6058 *\ * | *\ *)
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6060 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6061 esac
6065 macro_version='2.2.7a'
6066 macro_revision='1.3134'
6080 ltmain="$ac_aux_dir/ltmain.sh"
6082 # Backslashify metacharacters that are still active within
6083 # double-quoted strings.
6084 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6086 # Same as above, but do not quote variable references.
6087 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6089 # Sed substitution to delay expansion of an escaped shell variable in a
6090 # double_quote_subst'ed string.
6091 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6093 # Sed substitution to delay expansion of an escaped single quote.
6094 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6096 # Sed substitution to avoid accidental globbing in evaled expressions
6097 no_glob_subst='s/\*/\\\*/g'
6099 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6100 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6101 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6104 $as_echo_n "checking how to print strings... " >&6; }
6105 # Test print first, because it will be a builtin if present.
6106 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6107 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6108 ECHO='print -r --'
6109 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6110 ECHO='printf %s\n'
6111 else
6112 # Use this function as a fallback that always works.
6113 func_fallback_echo ()
6115 eval 'cat <<_LTECHO_EOF
6117 _LTECHO_EOF'
6119 ECHO='func_fallback_echo'
6122 # func_echo_all arg...
6123 # Invoke $ECHO with all args, space-separated.
6124 func_echo_all ()
6126 $ECHO ""
6129 case "$ECHO" in
6130 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6131 $as_echo "printf" >&6; } ;;
6132 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6133 $as_echo "print -r" >&6; } ;;
6134 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6135 $as_echo "cat" >&6; } ;;
6136 esac
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6153 if test "${ac_cv_path_SED+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6157 for ac_i in 1 2 3 4 5 6 7; do
6158 ac_script="$ac_script$as_nl$ac_script"
6159 done
6160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6161 { ac_script=; unset ac_script;}
6162 if test -z "$SED"; then
6163 ac_path_SED_found=false
6164 # Loop through the user's path and test for each of PROGNAME-LIST
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_prog in sed gsed; do
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6174 # Check for GNU ac_path_SED and select it if it is found.
6175 # Check for GNU $ac_path_SED
6176 case `"$ac_path_SED" --version 2>&1` in
6177 *GNU*)
6178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6180 ac_count=0
6181 $as_echo_n 0123456789 >"conftest.in"
6182 while :
6184 cat "conftest.in" "conftest.in" >"conftest.tmp"
6185 mv "conftest.tmp" "conftest.in"
6186 cp "conftest.in" "conftest.nl"
6187 $as_echo '' >> "conftest.nl"
6188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6190 as_fn_arith $ac_count + 1 && ac_count=$as_val
6191 if test $ac_count -gt ${ac_path_SED_max-0}; then
6192 # Best one so far, save it but keep looking for a better one
6193 ac_cv_path_SED="$ac_path_SED"
6194 ac_path_SED_max=$ac_count
6196 # 10*(2^10) chars as input seems more than enough
6197 test $ac_count -gt 10 && break
6198 done
6199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6200 esac
6202 $ac_path_SED_found && break 3
6203 done
6204 done
6205 done
6206 IFS=$as_save_IFS
6207 if test -z "$ac_cv_path_SED"; then
6208 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6210 else
6211 ac_cv_path_SED=$SED
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6216 $as_echo "$ac_cv_path_SED" >&6; }
6217 SED="$ac_cv_path_SED"
6218 rm -f conftest.sed
6220 test -z "$SED" && SED=sed
6221 Xsed="$SED -e 1s/^X//"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6234 $as_echo_n "checking for fgrep... " >&6; }
6235 if test "${ac_cv_path_FGREP+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6239 then ac_cv_path_FGREP="$GREP -F"
6240 else
6241 if test -z "$FGREP"; then
6242 ac_path_FGREP_found=false
6243 # Loop through the user's path and test for each of PROGNAME-LIST
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_prog in fgrep; do
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6253 # Check for GNU ac_path_FGREP and select it if it is found.
6254 # Check for GNU $ac_path_FGREP
6255 case `"$ac_path_FGREP" --version 2>&1` in
6256 *GNU*)
6257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6259 ac_count=0
6260 $as_echo_n 0123456789 >"conftest.in"
6261 while :
6263 cat "conftest.in" "conftest.in" >"conftest.tmp"
6264 mv "conftest.tmp" "conftest.in"
6265 cp "conftest.in" "conftest.nl"
6266 $as_echo 'FGREP' >> "conftest.nl"
6267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6269 as_fn_arith $ac_count + 1 && ac_count=$as_val
6270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6271 # Best one so far, save it but keep looking for a better one
6272 ac_cv_path_FGREP="$ac_path_FGREP"
6273 ac_path_FGREP_max=$ac_count
6275 # 10*(2^10) chars as input seems more than enough
6276 test $ac_count -gt 10 && break
6277 done
6278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6279 esac
6281 $ac_path_FGREP_found && break 3
6282 done
6283 done
6284 done
6285 IFS=$as_save_IFS
6286 if test -z "$ac_cv_path_FGREP"; then
6287 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6289 else
6290 ac_cv_path_FGREP=$FGREP
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6296 $as_echo "$ac_cv_path_FGREP" >&6; }
6297 FGREP="$ac_cv_path_FGREP"
6300 test -z "$GREP" && GREP=grep
6320 # Check whether --with-gnu-ld was given.
6321 if test "${with_gnu_ld+set}" = set; then :
6322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6323 else
6324 with_gnu_ld=no
6327 ac_prog=ld
6328 if test "$GCC" = yes; then
6329 # Check if gcc -print-prog-name=ld gives a path.
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6331 $as_echo_n "checking for ld used by $CC... " >&6; }
6332 case $host in
6333 *-*-mingw*)
6334 # gcc leaves a trailing carriage return which upsets mingw
6335 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6337 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6338 esac
6339 case $ac_prog in
6340 # Accept absolute paths.
6341 [\\/]* | ?:[\\/]*)
6342 re_direlt='/[^/][^/]*/\.\./'
6343 # Canonicalize the pathname of ld
6344 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6345 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6346 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6347 done
6348 test -z "$LD" && LD="$ac_prog"
6351 # If it fails, then pretend we aren't using GCC.
6352 ac_prog=ld
6355 # If it is relative, then search for the first ld in PATH.
6356 with_gnu_ld=unknown
6358 esac
6359 elif test "$with_gnu_ld" = yes; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6361 $as_echo_n "checking for GNU ld... " >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6364 $as_echo_n "checking for non-GNU ld... " >&6; }
6366 if test "${lt_cv_path_LD+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -z "$LD"; then
6370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6371 for ac_dir in $PATH; do
6372 IFS="$lt_save_ifs"
6373 test -z "$ac_dir" && ac_dir=.
6374 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6375 lt_cv_path_LD="$ac_dir/$ac_prog"
6376 # Check to see if the program is GNU ld. I'd rather use --version,
6377 # but apparently some variants of GNU ld only accept -v.
6378 # Break only if it was the GNU/non-GNU ld that we prefer.
6379 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6380 *GNU* | *'with BFD'*)
6381 test "$with_gnu_ld" != no && break
6384 test "$with_gnu_ld" != yes && break
6386 esac
6388 done
6389 IFS="$lt_save_ifs"
6390 else
6391 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6395 LD="$lt_cv_path_LD"
6396 if test -n "$LD"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6398 $as_echo "$LD" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6403 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6405 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6406 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6410 case `$LD -v 2>&1 </dev/null` in
6411 *GNU* | *'with BFD'*)
6412 lt_cv_prog_gnu_ld=yes
6415 lt_cv_prog_gnu_ld=no
6417 esac
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6420 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6421 with_gnu_ld=$lt_cv_prog_gnu_ld
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6432 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6433 if test "${lt_cv_path_NM+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$NM"; then
6437 # Let the user override the test.
6438 lt_cv_path_NM="$NM"
6439 else
6440 lt_nm_to_check="${ac_tool_prefix}nm"
6441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6442 lt_nm_to_check="$lt_nm_to_check nm"
6444 for lt_tmp_nm in $lt_nm_to_check; do
6445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6447 IFS="$lt_save_ifs"
6448 test -z "$ac_dir" && ac_dir=.
6449 tmp_nm="$ac_dir/$lt_tmp_nm"
6450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6451 # Check to see if the nm accepts a BSD-compat flag.
6452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6453 # nm: unknown option "B" ignored
6454 # Tru64's nm complains that /dev/null is an invalid object file
6455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6456 */dev/null* | *'Invalid file or object type'*)
6457 lt_cv_path_NM="$tmp_nm -B"
6458 break
6461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6462 */dev/null*)
6463 lt_cv_path_NM="$tmp_nm -p"
6464 break
6467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6468 continue # so that we can try to find one that supports BSD flags
6470 esac
6472 esac
6474 done
6475 IFS="$lt_save_ifs"
6476 done
6477 : ${lt_cv_path_NM=no}
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6481 $as_echo "$lt_cv_path_NM" >&6; }
6482 if test "$lt_cv_path_NM" != "no"; then
6483 NM="$lt_cv_path_NM"
6484 else
6485 # Didn't find any BSD compatible name lister, look for dumpbin.
6486 if test -n "$DUMPBIN"; then :
6487 # Let the user override the test.
6488 else
6489 if test -n "$ac_tool_prefix"; then
6490 for ac_prog in dumpbin "link -dump"
6492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$DUMPBIN"; then
6500 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 DUMPBIN=$ac_cv_prog_DUMPBIN
6520 if test -n "$DUMPBIN"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6522 $as_echo "$DUMPBIN" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6529 test -n "$DUMPBIN" && break
6530 done
6532 if test -z "$DUMPBIN"; then
6533 ac_ct_DUMPBIN=$DUMPBIN
6534 for ac_prog in dumpbin "link -dump"
6536 # Extract the first word of "$ac_prog", so it can be a program name with args.
6537 set dummy $ac_prog; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 if test -n "$ac_ct_DUMPBIN"; then
6544 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6557 done
6558 done
6559 IFS=$as_save_IFS
6563 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6564 if test -n "$ac_ct_DUMPBIN"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6566 $as_echo "$ac_ct_DUMPBIN" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6573 test -n "$ac_ct_DUMPBIN" && break
6574 done
6576 if test "x$ac_ct_DUMPBIN" = x; then
6577 DUMPBIN=":"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580 yes:)
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585 DUMPBIN=$ac_ct_DUMPBIN
6589 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6590 *COFF*)
6591 DUMPBIN="$DUMPBIN -symbols"
6594 DUMPBIN=:
6596 esac
6599 if test "$DUMPBIN" != ":"; then
6600 NM="$DUMPBIN"
6603 test -z "$NM" && NM=nm
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6611 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6612 if test "${lt_cv_nm_interface+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 lt_cv_nm_interface="BSD nm"
6616 echo "int some_variable = 0;" > conftest.$ac_ext
6617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6618 (eval "$ac_compile" 2>conftest.err)
6619 cat conftest.err >&5
6620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6622 cat conftest.err >&5
6623 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6624 cat conftest.out >&5
6625 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6626 lt_cv_nm_interface="MS dumpbin"
6628 rm -f conftest*
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6631 $as_echo "$lt_cv_nm_interface" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6634 $as_echo_n "checking whether ln -s works... " >&6; }
6635 LN_S=$as_ln_s
6636 if test "$LN_S" = "ln -s"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6638 $as_echo "yes" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6641 $as_echo "no, using $LN_S" >&6; }
6644 # find the maximum length of command line arguments
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6646 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6647 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6651 teststring="ABCD"
6653 case $build_os in
6654 msdosdjgpp*)
6655 # On DJGPP, this test can blow up pretty badly due to problems in libc
6656 # (any single argument exceeding 2000 bytes causes a buffer overrun
6657 # during glob expansion). Even if it were fixed, the result of this
6658 # check would be larger than it should be.
6659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6662 gnu*)
6663 # Under GNU Hurd, this test is not required because there is
6664 # no limit to the length of command line arguments.
6665 # Libtool will interpret -1 as no limit whatsoever
6666 lt_cv_sys_max_cmd_len=-1;
6669 cygwin* | mingw* | cegcc*)
6670 # On Win9x/ME, this test blows up -- it succeeds, but takes
6671 # about 5 minutes as the teststring grows exponentially.
6672 # Worse, since 9x/ME are not pre-emptively multitasking,
6673 # you end up with a "frozen" computer, even though with patience
6674 # the test eventually succeeds (with a max line length of 256k).
6675 # Instead, let's just punt: use the minimum linelength reported by
6676 # all of the supported platforms: 8192 (on NT/2K/XP).
6677 lt_cv_sys_max_cmd_len=8192;
6680 mint*)
6681 # On MiNT this can take a long time and run out of memory.
6682 lt_cv_sys_max_cmd_len=8192;
6685 amigaos*)
6686 # On AmigaOS with pdksh, this test takes hours, literally.
6687 # So we just punt and use a minimum line length of 8192.
6688 lt_cv_sys_max_cmd_len=8192;
6691 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6692 # This has been around since 386BSD, at least. Likely further.
6693 if test -x /sbin/sysctl; then
6694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6695 elif test -x /usr/sbin/sysctl; then
6696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6697 else
6698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6700 # And add a safety zone
6701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6705 interix*)
6706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6707 lt_cv_sys_max_cmd_len=196608
6710 osf*)
6711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6713 # nice to cause kernel panics so lets avoid the loop below.
6714 # First set a reasonable default.
6715 lt_cv_sys_max_cmd_len=16384
6717 if test -x /sbin/sysconfig; then
6718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6719 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6720 esac
6723 sco3.2v5*)
6724 lt_cv_sys_max_cmd_len=102400
6726 sysv5* | sco5v6* | sysv4.2uw2*)
6727 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6728 if test -n "$kargmax"; then
6729 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6730 else
6731 lt_cv_sys_max_cmd_len=32768
6735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6736 if test -n "$lt_cv_sys_max_cmd_len"; then
6737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6739 else
6740 # Make teststring a little bigger before we do anything with it.
6741 # a 1K string should be a reasonable start.
6742 for i in 1 2 3 4 5 6 7 8 ; do
6743 teststring=$teststring$teststring
6744 done
6745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6746 # If test is not a shell built-in, we'll probably end up computing a
6747 # maximum length that is only half of the actual maximum length, but
6748 # we can't tell.
6749 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6750 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6751 test $i != 17 # 1/2 MB should be enough
6753 i=`expr $i + 1`
6754 teststring=$teststring$teststring
6755 done
6756 # Only check the string length outside the loop.
6757 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6758 teststring=
6759 # Add a significant safety factor because C++ compilers can tack on
6760 # massive amounts of additional arguments before passing them to the
6761 # linker. It appears as though 1/2 is a usable value.
6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6765 esac
6769 if test -n $lt_cv_sys_max_cmd_len ; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6771 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6772 else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6774 $as_echo "none" >&6; }
6776 max_cmd_len=$lt_cv_sys_max_cmd_len
6783 : ${CP="cp -f"}
6784 : ${MV="mv -f"}
6785 : ${RM="rm -f"}
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6788 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6789 # Try some XSI features
6790 xsi_shell=no
6791 ( _lt_dummy="a/b/c"
6792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6793 = c,a/b,, \
6794 && eval 'test $(( 1 + 1 )) -eq 2 \
6795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6796 && xsi_shell=yes
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6798 $as_echo "$xsi_shell" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6802 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6803 lt_shell_append=no
6804 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6805 >/dev/null 2>&1 \
6806 && lt_shell_append=yes
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6808 $as_echo "$lt_shell_append" >&6; }
6811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6812 lt_unset=unset
6813 else
6814 lt_unset=false
6821 # test EBCDIC or ASCII
6822 case `echo X|tr X '\101'` in
6823 A) # ASCII based system
6824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6825 lt_SP2NL='tr \040 \012'
6826 lt_NL2SP='tr \015\012 \040\040'
6828 *) # EBCDIC based system
6829 lt_SP2NL='tr \100 \n'
6830 lt_NL2SP='tr \r\n \100\100'
6832 esac
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6843 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6844 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 lt_cv_ld_reload_flag='-r'
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6850 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6851 reload_flag=$lt_cv_ld_reload_flag
6852 case $reload_flag in
6853 "" | " "*) ;;
6854 *) reload_flag=" $reload_flag" ;;
6855 esac
6856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6857 case $host_os in
6858 darwin*)
6859 if test "$GCC" = yes; then
6860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6861 else
6862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6865 esac
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$OBJDUMP"; then
6884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6897 done
6898 done
6899 IFS=$as_save_IFS
6903 OBJDUMP=$ac_cv_prog_OBJDUMP
6904 if test -n "$OBJDUMP"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6906 $as_echo "$OBJDUMP" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_prog_OBJDUMP"; then
6915 ac_ct_OBJDUMP=$OBJDUMP
6916 # Extract the first word of "objdump", so it can be a program name with args.
6917 set dummy objdump; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$ac_ct_OBJDUMP"; then
6924 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6944 if test -n "$ac_ct_OBJDUMP"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6946 $as_echo "$ac_ct_OBJDUMP" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$ac_ct_OBJDUMP" = x; then
6953 OBJDUMP="false"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961 OBJDUMP=$ac_ct_OBJDUMP
6963 else
6964 OBJDUMP="$ac_cv_prog_OBJDUMP"
6967 test -z "$OBJDUMP" && OBJDUMP=objdump
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6978 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6979 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 lt_cv_file_magic_cmd='$MAGIC_CMD'
6983 lt_cv_file_magic_test_file=
6984 lt_cv_deplibs_check_method='unknown'
6985 # Need to set the preceding variable on all platforms that support
6986 # interlibrary dependencies.
6987 # 'none' -- dependencies not supported.
6988 # `unknown' -- same as none, but documents that we really don't know.
6989 # 'pass_all' -- all dependencies passed with no checks.
6990 # 'test_compile' -- check by making test program.
6991 # 'file_magic [[regex]]' -- check by looking for files in library path
6992 # which responds to the $file_magic_cmd with a given extended regex.
6993 # If you have `file' or equivalent on your system and you're not sure
6994 # whether `pass_all' will *always* work, you probably want this one.
6996 case $host_os in
6997 aix[4-9]*)
6998 lt_cv_deplibs_check_method=pass_all
7001 beos*)
7002 lt_cv_deplibs_check_method=pass_all
7005 bsdi[45]*)
7006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7007 lt_cv_file_magic_cmd='/usr/bin/file -L'
7008 lt_cv_file_magic_test_file=/shlib/libc.so
7011 cygwin*)
7012 # func_win32_libid is a shell function defined in ltmain.sh
7013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7014 lt_cv_file_magic_cmd='func_win32_libid'
7017 mingw* | pw32*)
7018 # Base MSYS/MinGW do not provide the 'file' command needed by
7019 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7020 # unless we find 'file', for example because we are cross-compiling.
7021 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7022 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7024 lt_cv_file_magic_cmd='func_win32_libid'
7025 else
7026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7027 lt_cv_file_magic_cmd='$OBJDUMP -f'
7031 cegcc*)
7032 # use the weaker test based on 'objdump'. See mingw*.
7033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7034 lt_cv_file_magic_cmd='$OBJDUMP -f'
7037 darwin* | rhapsody*)
7038 lt_cv_deplibs_check_method=pass_all
7041 freebsd* | dragonfly*)
7042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7043 case $host_cpu in
7044 i*86 )
7045 # Not sure whether the presence of OpenBSD here was a mistake.
7046 # Let's accept both of them until this is cleared up.
7047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7048 lt_cv_file_magic_cmd=/usr/bin/file
7049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7051 esac
7052 else
7053 lt_cv_deplibs_check_method=pass_all
7057 gnu*)
7058 lt_cv_deplibs_check_method=pass_all
7061 haiku*)
7062 lt_cv_deplibs_check_method=pass_all
7065 hpux10.20* | hpux11*)
7066 lt_cv_file_magic_cmd=/usr/bin/file
7067 case $host_cpu in
7068 ia64*)
7069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7072 hppa*64*)
7073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7080 esac
7083 interix[3-9]*)
7084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7088 irix5* | irix6* | nonstopux*)
7089 case $LD in
7090 *-32|*"-32 ") libmagic=32-bit;;
7091 *-n32|*"-n32 ") libmagic=N32;;
7092 *-64|*"-64 ") libmagic=64-bit;;
7093 *) libmagic=never-match;;
7094 esac
7095 lt_cv_deplibs_check_method=pass_all
7098 # This must be Linux ELF.
7099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7100 lt_cv_deplibs_check_method=pass_all
7103 netbsd*)
7104 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7106 else
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7111 newos6*)
7112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7113 lt_cv_file_magic_cmd=/usr/bin/file
7114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7117 *nto* | *qnx*)
7118 lt_cv_deplibs_check_method=pass_all
7121 openbsd*)
7122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7124 else
7125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7129 osf3* | osf4* | osf5*)
7130 lt_cv_deplibs_check_method=pass_all
7133 rdos*)
7134 lt_cv_deplibs_check_method=pass_all
7137 solaris*)
7138 lt_cv_deplibs_check_method=pass_all
7141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7142 lt_cv_deplibs_check_method=pass_all
7145 sysv4 | sysv4.3*)
7146 case $host_vendor in
7147 motorola)
7148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7151 ncr)
7152 lt_cv_deplibs_check_method=pass_all
7154 sequent)
7155 lt_cv_file_magic_cmd='/bin/file'
7156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7158 sni)
7159 lt_cv_file_magic_cmd='/bin/file'
7160 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7161 lt_cv_file_magic_test_file=/lib/libc.so
7163 siemens)
7164 lt_cv_deplibs_check_method=pass_all
7167 lt_cv_deplibs_check_method=pass_all
7169 esac
7172 tpf*)
7173 lt_cv_deplibs_check_method=pass_all
7175 esac
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7179 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7180 file_magic_cmd=$lt_cv_file_magic_cmd
7181 deplibs_check_method=$lt_cv_deplibs_check_method
7182 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}ar; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if test "${ac_cv_prog_AR+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 if test -n "$AR"; then
7204 ac_cv_prog_AR="$AR" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_AR="${ac_tool_prefix}ar"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7217 done
7218 done
7219 IFS=$as_save_IFS
7223 AR=$ac_cv_prog_AR
7224 if test -n "$AR"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7226 $as_echo "$AR" >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7234 if test -z "$ac_cv_prog_AR"; then
7235 ac_ct_AR=$AR
7236 # Extract the first word of "ar", so it can be a program name with args.
7237 set dummy ar; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test -n "$ac_ct_AR"; then
7244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_AR="ar"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7257 done
7258 done
7259 IFS=$as_save_IFS
7263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7264 if test -n "$ac_ct_AR"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7266 $as_echo "$ac_ct_AR" >&6; }
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7272 if test "x$ac_ct_AR" = x; then
7273 AR="false"
7274 else
7275 case $cross_compiling:$ac_tool_warned in
7276 yes:)
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279 ac_tool_warned=yes ;;
7280 esac
7281 AR=$ac_ct_AR
7283 else
7284 AR="$ac_cv_prog_AR"
7287 test -z "$AR" && AR=ar
7288 test -z "$AR_FLAGS" && AR_FLAGS=cru
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}strip; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_STRIP+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 if test -n "$STRIP"; then
7309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7322 done
7323 done
7324 IFS=$as_save_IFS
7328 STRIP=$ac_cv_prog_STRIP
7329 if test -n "$STRIP"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7331 $as_echo "$STRIP" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7339 if test -z "$ac_cv_prog_STRIP"; then
7340 ac_ct_STRIP=$STRIP
7341 # Extract the first word of "strip", so it can be a program name with args.
7342 set dummy strip; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test -n "$ac_ct_STRIP"; then
7349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_STRIP="strip"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7362 done
7363 done
7364 IFS=$as_save_IFS
7368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7369 if test -n "$ac_ct_STRIP"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7371 $as_echo "$ac_ct_STRIP" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7377 if test "x$ac_ct_STRIP" = x; then
7378 STRIP=":"
7379 else
7380 case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7385 esac
7386 STRIP=$ac_ct_STRIP
7388 else
7389 STRIP="$ac_cv_prog_STRIP"
7392 test -z "$STRIP" && STRIP=:
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$RANLIB"; then
7408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7421 done
7422 done
7423 IFS=$as_save_IFS
7427 RANLIB=$ac_cv_prog_RANLIB
7428 if test -n "$RANLIB"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7430 $as_echo "$RANLIB" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7438 if test -z "$ac_cv_prog_RANLIB"; then
7439 ac_ct_RANLIB=$RANLIB
7440 # Extract the first word of "ranlib", so it can be a program name with args.
7441 set dummy ranlib; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 if test -n "$ac_ct_RANLIB"; then
7448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_ac_ct_RANLIB="ranlib"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7461 done
7462 done
7463 IFS=$as_save_IFS
7467 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7468 if test -n "$ac_ct_RANLIB"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7470 $as_echo "$ac_ct_RANLIB" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7476 if test "x$ac_ct_RANLIB" = x; then
7477 RANLIB=":"
7478 else
7479 case $cross_compiling:$ac_tool_warned in
7480 yes:)
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485 RANLIB=$ac_ct_RANLIB
7487 else
7488 RANLIB="$ac_cv_prog_RANLIB"
7491 test -z "$RANLIB" && RANLIB=:
7498 # Determine commands to create old-style static archives.
7499 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7500 old_postinstall_cmds='chmod 644 $oldlib'
7501 old_postuninstall_cmds=
7503 if test -n "$RANLIB"; then
7504 case $host_os in
7505 openbsd*)
7506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7511 esac
7512 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7515 case $host_os in
7516 darwin*)
7517 lock_old_archive_extraction=yes ;;
7519 lock_old_archive_extraction=no ;;
7520 esac
7560 # If no C compiler was specified, use CC.
7561 LTCC=${LTCC-"$CC"}
7563 # If no C compiler flags were specified, use CFLAGS.
7564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7566 # Allow CC to be a program name with arguments.
7567 compiler=$CC
7570 # Check for command to grab the raw symbol name followed by C symbol from nm.
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7572 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7577 # These are sane defaults that work on at least a few old systems.
7578 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7580 # Character class describing NM global symbol codes.
7581 symcode='[BCDEGRST]'
7583 # Regexp to match symbols that can be accessed directly from C.
7584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7586 # Define system-specific variables.
7587 case $host_os in
7588 aix*)
7589 symcode='[BCDT]'
7591 cygwin* | mingw* | pw32* | cegcc*)
7592 symcode='[ABCDGISTW]'
7594 hpux*)
7595 if test "$host_cpu" = ia64; then
7596 symcode='[ABCDEGRST]'
7599 irix* | nonstopux*)
7600 symcode='[BCDEGRST]'
7602 osf*)
7603 symcode='[BCDEGQRST]'
7605 solaris*)
7606 symcode='[BDRT]'
7608 sco3.2v5*)
7609 symcode='[DT]'
7611 sysv4.2uw2*)
7612 symcode='[DT]'
7614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7615 symcode='[ABDT]'
7617 sysv4)
7618 symcode='[DFNSTU]'
7620 esac
7622 # If we're using GNU nm, then use its standard symbol codes.
7623 case `$NM -V 2>&1` in
7624 *GNU* | *'with BFD'*)
7625 symcode='[ABCDGIRSTW]' ;;
7626 esac
7628 # Transform an extracted symbol line into a proper C declaration.
7629 # Some systems (esp. on ia64) link data and code symbols differently,
7630 # so use this general approach.
7631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7633 # Transform an extracted symbol line into symbol name and symbol address
7634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7635 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7637 # Handle CRLF in mingw tool chain
7638 opt_cr=
7639 case $build_os in
7640 mingw*)
7641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7643 esac
7645 # Try without a prefix underscore, then with it.
7646 for ac_symprfx in "" "_"; do
7648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7649 symxfrm="\\1 $ac_symprfx\\2 \\2"
7651 # Write the raw and C identifiers.
7652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7653 # Fake it for dumpbin and say T for any non-static function
7654 # and D for any global variable.
7655 # Also find C++ and __fastcall symbols from MSVC++,
7656 # which start with @ or ?.
7657 lt_cv_sys_global_symbol_pipe="$AWK '"\
7658 " {last_section=section; section=\$ 3};"\
7659 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7660 " \$ 0!~/External *\|/{next};"\
7661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7662 " {if(hide[section]) next};"\
7663 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7664 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7665 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7666 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7667 " ' prfx=^$ac_symprfx"
7668 else
7669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7672 # Check to see that the pipe works correctly.
7673 pipe_works=no
7675 rm -f conftest*
7676 cat > conftest.$ac_ext <<_LT_EOF
7677 #ifdef __cplusplus
7678 extern "C" {
7679 #endif
7680 char nm_test_var;
7681 void nm_test_func(void);
7682 void nm_test_func(void){}
7683 #ifdef __cplusplus
7685 #endif
7686 int main(){nm_test_var='a';nm_test_func();return(0);}
7687 _LT_EOF
7689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7690 (eval $ac_compile) 2>&5
7691 ac_status=$?
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; }; then
7694 # Now try to grab the symbols.
7695 nlist=conftest.nm
7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7697 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7698 ac_status=$?
7699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700 test $ac_status = 0; } && test -s "$nlist"; then
7701 # Try sorting and uniquifying the output.
7702 if sort "$nlist" | uniq > "$nlist"T; then
7703 mv -f "$nlist"T "$nlist"
7704 else
7705 rm -f "$nlist"T
7708 # Make sure that we snagged all the symbols we need.
7709 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7710 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7711 cat <<_LT_EOF > conftest.$ac_ext
7712 #ifdef __cplusplus
7713 extern "C" {
7714 #endif
7716 _LT_EOF
7717 # Now generate the symbol file.
7718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7720 cat <<_LT_EOF >> conftest.$ac_ext
7722 /* The mapping between symbol names and symbols. */
7723 const struct {
7724 const char *name;
7725 void *address;
7727 lt__PROGRAM__LTX_preloaded_symbols[] =
7729 { "@PROGRAM@", (void *) 0 },
7730 _LT_EOF
7731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7732 cat <<\_LT_EOF >> conftest.$ac_ext
7733 {0, (void *) 0}
7736 /* This works around a problem in FreeBSD linker */
7737 #ifdef FREEBSD_WORKAROUND
7738 static const void *lt_preloaded_setup() {
7739 return lt__PROGRAM__LTX_preloaded_symbols;
7741 #endif
7743 #ifdef __cplusplus
7745 #endif
7746 _LT_EOF
7747 # Now try linking the two files.
7748 mv conftest.$ac_objext conftstm.$ac_objext
7749 lt_save_LIBS="$LIBS"
7750 lt_save_CFLAGS="$CFLAGS"
7751 LIBS="conftstm.$ac_objext"
7752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7754 (eval $ac_link) 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7758 pipe_works=yes
7760 LIBS="$lt_save_LIBS"
7761 CFLAGS="$lt_save_CFLAGS"
7762 else
7763 echo "cannot find nm_test_func in $nlist" >&5
7765 else
7766 echo "cannot find nm_test_var in $nlist" >&5
7768 else
7769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7771 else
7772 echo "$progname: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 rm -rf conftest* conftst*
7777 # Do not use the global_symbol_pipe unless it works.
7778 if test "$pipe_works" = yes; then
7779 break
7780 else
7781 lt_cv_sys_global_symbol_pipe=
7783 done
7787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7788 lt_cv_sys_global_symbol_to_cdecl=
7790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7792 $as_echo "failed" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7795 $as_echo "ok" >&6; }
7819 # Check whether --enable-libtool-lock was given.
7820 if test "${enable_libtool_lock+set}" = set; then :
7821 enableval=$enable_libtool_lock;
7824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7826 # Some flags need to be propagated to the compiler or linker for good
7827 # libtool support.
7828 case $host in
7829 ia64-*-hpux*)
7830 # Find out which ABI we are using.
7831 echo 'int i;' > conftest.$ac_ext
7832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7833 (eval $ac_compile) 2>&5
7834 ac_status=$?
7835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7836 test $ac_status = 0; }; then
7837 case `/usr/bin/file conftest.$ac_objext` in
7838 *ELF-32*)
7839 HPUX_IA64_MODE="32"
7841 *ELF-64*)
7842 HPUX_IA64_MODE="64"
7844 esac
7846 rm -rf conftest*
7848 *-*-irix6*)
7849 # Find out which ABI we are using.
7850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7852 (eval $ac_compile) 2>&5
7853 ac_status=$?
7854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855 test $ac_status = 0; }; then
7856 if test "$lt_cv_prog_gnu_ld" = yes; then
7857 case `/usr/bin/file conftest.$ac_objext` in
7858 *32-bit*)
7859 LD="${LD-ld} -melf32bsmip"
7861 *N32*)
7862 LD="${LD-ld} -melf32bmipn32"
7864 *64-bit*)
7865 LD="${LD-ld} -melf64bmip"
7867 esac
7868 else
7869 case `/usr/bin/file conftest.$ac_objext` in
7870 *32-bit*)
7871 LD="${LD-ld} -32"
7873 *N32*)
7874 LD="${LD-ld} -n32"
7876 *64-bit*)
7877 LD="${LD-ld} -64"
7879 esac
7882 rm -rf conftest*
7885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7887 # Find out which ABI we are using.
7888 echo 'int i;' > conftest.$ac_ext
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7891 ac_status=$?
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 case `/usr/bin/file conftest.o` in
7895 *32-bit*)
7896 case $host in
7897 x86_64-*kfreebsd*-gnu)
7898 LD="${LD-ld} -m elf_i386_fbsd"
7900 x86_64-*linux*)
7901 case `/usr/bin/file conftest.o` in
7902 *x86-64*)
7903 LD="${LD-ld} -m elf32_x86_64"
7906 LD="${LD-ld} -m elf_i386"
7908 esac
7910 ppc64-*linux*|powerpc64-*linux*)
7911 LD="${LD-ld} -m elf32ppclinux"
7913 s390x-*linux*)
7914 LD="${LD-ld} -m elf_s390"
7916 sparc64-*linux*)
7917 LD="${LD-ld} -m elf32_sparc"
7919 esac
7921 *64-bit*)
7922 case $host in
7923 x86_64-*kfreebsd*-gnu)
7924 LD="${LD-ld} -m elf_x86_64_fbsd"
7926 x86_64-*linux*)
7927 LD="${LD-ld} -m elf_x86_64"
7929 ppc*-*linux*|powerpc*-*linux*)
7930 LD="${LD-ld} -m elf64ppc"
7932 s390*-*linux*|s390*-*tpf*)
7933 LD="${LD-ld} -m elf64_s390"
7935 sparc*-*linux*)
7936 LD="${LD-ld} -m elf64_sparc"
7938 esac
7940 esac
7942 rm -rf conftest*
7945 *-*-sco3.2v5*)
7946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7947 SAVE_CFLAGS="$CFLAGS"
7948 CFLAGS="$CFLAGS -belf"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7951 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 ac_ext=c
7955 ac_cpp='$CPP $CPPFLAGS'
7956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7964 main ()
7968 return 0;
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"; then :
7972 lt_cv_cc_needs_belf=yes
7973 else
7974 lt_cv_cc_needs_belf=no
7976 rm -f core conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7978 ac_ext=c
7979 ac_cpp='$CPP $CPPFLAGS'
7980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7989 CFLAGS="$SAVE_CFLAGS"
7992 sparc*-*solaris*)
7993 # Find out which ABI we are using.
7994 echo 'int i;' > conftest.$ac_ext
7995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7996 (eval $ac_compile) 2>&5
7997 ac_status=$?
7998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7999 test $ac_status = 0; }; then
8000 case `/usr/bin/file conftest.o` in
8001 *64-bit*)
8002 case $lt_cv_prog_gnu_ld in
8003 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8006 LD="${LD-ld} -64"
8009 esac
8011 esac
8013 rm -rf conftest*
8015 esac
8017 need_locks="$enable_libtool_lock"
8020 case $host_os in
8021 rhapsody* | darwin*)
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$DSYMUTIL"; then
8031 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8046 IFS=$as_save_IFS
8050 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8051 if test -n "$DSYMUTIL"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8053 $as_echo "$DSYMUTIL" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8061 if test -z "$ac_cv_prog_DSYMUTIL"; then
8062 ac_ct_DSYMUTIL=$DSYMUTIL
8063 # Extract the first word of "dsymutil", so it can be a program name with args.
8064 set dummy dsymutil; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$ac_ct_DSYMUTIL"; then
8071 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8084 done
8085 done
8086 IFS=$as_save_IFS
8090 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8091 if test -n "$ac_ct_DSYMUTIL"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8093 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8099 if test "x$ac_ct_DSYMUTIL" = x; then
8100 DSYMUTIL=":"
8101 else
8102 case $cross_compiling:$ac_tool_warned in
8103 yes:)
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106 ac_tool_warned=yes ;;
8107 esac
8108 DSYMUTIL=$ac_ct_DSYMUTIL
8110 else
8111 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8114 if test -n "$ac_tool_prefix"; then
8115 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$NMEDIT"; then
8123 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8136 done
8137 done
8138 IFS=$as_save_IFS
8142 NMEDIT=$ac_cv_prog_NMEDIT
8143 if test -n "$NMEDIT"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8145 $as_echo "$NMEDIT" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8153 if test -z "$ac_cv_prog_NMEDIT"; then
8154 ac_ct_NMEDIT=$NMEDIT
8155 # Extract the first word of "nmedit", so it can be a program name with args.
8156 set dummy nmedit; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 if test -n "$ac_ct_NMEDIT"; then
8163 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8176 done
8177 done
8178 IFS=$as_save_IFS
8182 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8183 if test -n "$ac_ct_NMEDIT"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8185 $as_echo "$ac_ct_NMEDIT" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8191 if test "x$ac_ct_NMEDIT" = x; then
8192 NMEDIT=":"
8193 else
8194 case $cross_compiling:$ac_tool_warned in
8195 yes:)
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8199 esac
8200 NMEDIT=$ac_ct_NMEDIT
8202 else
8203 NMEDIT="$ac_cv_prog_NMEDIT"
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_LIPO+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test -n "$LIPO"; then
8215 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8228 done
8229 done
8230 IFS=$as_save_IFS
8234 LIPO=$ac_cv_prog_LIPO
8235 if test -n "$LIPO"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8237 $as_echo "$LIPO" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 if test -z "$ac_cv_prog_LIPO"; then
8246 ac_ct_LIPO=$LIPO
8247 # Extract the first word of "lipo", so it can be a program name with args.
8248 set dummy lipo; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$ac_ct_LIPO"; then
8255 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_ac_ct_LIPO="lipo"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8274 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8275 if test -n "$ac_ct_LIPO"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8277 $as_echo "$ac_ct_LIPO" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8283 if test "x$ac_ct_LIPO" = x; then
8284 LIPO=":"
8285 else
8286 case $cross_compiling:$ac_tool_warned in
8287 yes:)
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8291 esac
8292 LIPO=$ac_ct_LIPO
8294 else
8295 LIPO="$ac_cv_prog_LIPO"
8298 if test -n "$ac_tool_prefix"; then
8299 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}otool; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 if test -n "$OTOOL"; then
8307 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8320 done
8321 done
8322 IFS=$as_save_IFS
8326 OTOOL=$ac_cv_prog_OTOOL
8327 if test -n "$OTOOL"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8329 $as_echo "$OTOOL" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8337 if test -z "$ac_cv_prog_OTOOL"; then
8338 ac_ct_OTOOL=$OTOOL
8339 # Extract the first word of "otool", so it can be a program name with args.
8340 set dummy otool; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$ac_ct_OTOOL"; then
8347 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_ac_ct_OTOOL="otool"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8360 done
8361 done
8362 IFS=$as_save_IFS
8366 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8367 if test -n "$ac_ct_OTOOL"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8369 $as_echo "$ac_ct_OTOOL" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8375 if test "x$ac_ct_OTOOL" = x; then
8376 OTOOL=":"
8377 else
8378 case $cross_compiling:$ac_tool_warned in
8379 yes:)
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8383 esac
8384 OTOOL=$ac_ct_OTOOL
8386 else
8387 OTOOL="$ac_cv_prog_OTOOL"
8390 if test -n "$ac_tool_prefix"; then
8391 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$OTOOL64"; then
8399 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 OTOOL64=$ac_cv_prog_OTOOL64
8419 if test -n "$OTOOL64"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8421 $as_echo "$OTOOL64" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 if test -z "$ac_cv_prog_OTOOL64"; then
8430 ac_ct_OTOOL64=$OTOOL64
8431 # Extract the first word of "otool64", so it can be a program name with args.
8432 set dummy otool64; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test -n "$ac_ct_OTOOL64"; then
8439 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448 ac_cv_prog_ac_ct_OTOOL64="otool64"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8452 done
8453 done
8454 IFS=$as_save_IFS
8458 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8459 if test -n "$ac_ct_OTOOL64"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8461 $as_echo "$ac_ct_OTOOL64" >&6; }
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8467 if test "x$ac_ct_OTOOL64" = x; then
8468 OTOOL64=":"
8469 else
8470 case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476 OTOOL64=$ac_ct_OTOOL64
8478 else
8479 OTOOL64="$ac_cv_prog_OTOOL64"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8509 $as_echo_n "checking for -single_module linker flag... " >&6; }
8510 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 lt_cv_apple_cc_single_mod=no
8514 if test -z "${LT_MULTI_MODULE}"; then
8515 # By default we will add the -single_module flag. You can override
8516 # by either setting the environment variable LT_MULTI_MODULE
8517 # non-empty at configure time, or by adding -multi_module to the
8518 # link flags.
8519 rm -rf libconftest.dylib*
8520 echo "int foo(void){return 1;}" > conftest.c
8521 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8522 -dynamiclib -Wl,-single_module conftest.c" >&5
8523 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8524 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8525 _lt_result=$?
8526 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8527 lt_cv_apple_cc_single_mod=yes
8528 else
8529 cat conftest.err >&5
8531 rm -rf libconftest.dylib*
8532 rm -f conftest.*
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8536 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8538 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8539 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 lt_cv_ld_exported_symbols_list=no
8543 save_LDFLAGS=$LDFLAGS
8544 echo "_main" > conftest.sym
8545 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8550 main ()
8554 return 0;
8556 _ACEOF
8557 if ac_fn_c_try_link "$LINENO"; then :
8558 lt_cv_ld_exported_symbols_list=yes
8559 else
8560 lt_cv_ld_exported_symbols_list=no
8562 rm -f core conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
8564 LDFLAGS="$save_LDFLAGS"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8568 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8570 $as_echo_n "checking for -force_load linker flag... " >&6; }
8571 if test "${lt_cv_ld_force_load+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 lt_cv_ld_force_load=no
8575 cat > conftest.c << _LT_EOF
8576 int forced_loaded() { return 2;}
8577 _LT_EOF
8578 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8579 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8580 echo "$AR cru libconftest.a conftest.o" >&5
8581 $AR cru libconftest.a conftest.o 2>&5
8582 cat > conftest.c << _LT_EOF
8583 int main() { return 0;}
8584 _LT_EOF
8585 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8586 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8587 _lt_result=$?
8588 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8589 lt_cv_ld_force_load=yes
8590 else
8591 cat conftest.err >&5
8593 rm -f conftest.err libconftest.a conftest conftest.c
8594 rm -rf conftest.dSYM
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8598 $as_echo "$lt_cv_ld_force_load" >&6; }
8599 case $host_os in
8600 rhapsody* | darwin1.[012])
8601 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8602 darwin1.*)
8603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8604 darwin*) # darwin 5.x on
8605 # if running on 10.5 or later, the deployment target defaults
8606 # to the OS version, if on x86, and 10.4, the deployment
8607 # target defaults to 10.4. Don't you love it?
8608 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8609 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8610 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8611 10.[012]*)
8612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8613 10.*)
8614 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8615 esac
8617 esac
8618 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8619 _lt_dar_single_mod='$single_module'
8621 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8622 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8623 else
8624 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8626 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8627 _lt_dsymutil='~$DSYMUTIL $lib || :'
8628 else
8629 _lt_dsymutil=
8632 esac
8634 for ac_header in dlfcn.h
8635 do :
8636 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8638 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_DLFCN_H 1
8641 _ACEOF
8645 done
8652 # Set options
8657 enable_win32_dll=no
8660 # Check whether --enable-shared was given.
8661 if test "${enable_shared+set}" = set; then :
8662 enableval=$enable_shared; p=${PACKAGE-default}
8663 case $enableval in
8664 yes) enable_shared=yes ;;
8665 no) enable_shared=no ;;
8667 enable_shared=no
8668 # Look at the argument we got. We use all the common list separators.
8669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8670 for pkg in $enableval; do
8671 IFS="$lt_save_ifs"
8672 if test "X$pkg" = "X$p"; then
8673 enable_shared=yes
8675 done
8676 IFS="$lt_save_ifs"
8678 esac
8679 else
8680 enable_shared=yes
8691 # Check whether --enable-static was given.
8692 if test "${enable_static+set}" = set; then :
8693 enableval=$enable_static; p=${PACKAGE-default}
8694 case $enableval in
8695 yes) enable_static=yes ;;
8696 no) enable_static=no ;;
8698 enable_static=no
8699 # Look at the argument we got. We use all the common list separators.
8700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8701 for pkg in $enableval; do
8702 IFS="$lt_save_ifs"
8703 if test "X$pkg" = "X$p"; then
8704 enable_static=yes
8706 done
8707 IFS="$lt_save_ifs"
8709 esac
8710 else
8711 enable_static=yes
8723 # Check whether --with-pic was given.
8724 if test "${with_pic+set}" = set; then :
8725 withval=$with_pic; pic_mode="$withval"
8726 else
8727 pic_mode=default
8731 test -z "$pic_mode" && pic_mode=default
8739 # Check whether --enable-fast-install was given.
8740 if test "${enable_fast_install+set}" = set; then :
8741 enableval=$enable_fast_install; p=${PACKAGE-default}
8742 case $enableval in
8743 yes) enable_fast_install=yes ;;
8744 no) enable_fast_install=no ;;
8746 enable_fast_install=no
8747 # Look at the argument we got. We use all the common list separators.
8748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8749 for pkg in $enableval; do
8750 IFS="$lt_save_ifs"
8751 if test "X$pkg" = "X$p"; then
8752 enable_fast_install=yes
8754 done
8755 IFS="$lt_save_ifs"
8757 esac
8758 else
8759 enable_fast_install=yes
8772 # This can be used to rebuild libtool when needed
8773 LIBTOOL_DEPS="$ltmain"
8775 # Always use our own libtool.
8776 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8803 test -z "$LN_S" && LN_S="ln -s"
8818 if test -n "${ZSH_VERSION+set}" ; then
8819 setopt NO_GLOB_SUBST
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8823 $as_echo_n "checking for objdir... " >&6; }
8824 if test "${lt_cv_objdir+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 rm -f .libs 2>/dev/null
8828 mkdir .libs 2>/dev/null
8829 if test -d .libs; then
8830 lt_cv_objdir=.libs
8831 else
8832 # MS-DOS does not allow filenames that begin with a dot.
8833 lt_cv_objdir=_libs
8835 rmdir .libs 2>/dev/null
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8838 $as_echo "$lt_cv_objdir" >&6; }
8839 objdir=$lt_cv_objdir
8845 cat >>confdefs.h <<_ACEOF
8846 #define LT_OBJDIR "$lt_cv_objdir/"
8847 _ACEOF
8852 case $host_os in
8853 aix3*)
8854 # AIX sometimes has problems with the GCC collect2 program. For some
8855 # reason, if we set the COLLECT_NAMES environment variable, the problems
8856 # vanish in a puff of smoke.
8857 if test "X${COLLECT_NAMES+set}" != Xset; then
8858 COLLECT_NAMES=
8859 export COLLECT_NAMES
8862 esac
8864 # Global variables:
8865 ofile=libtool
8866 can_build_shared=yes
8868 # All known linkers require a `.a' archive for static linking (except MSVC,
8869 # which needs '.lib').
8870 libext=a
8872 with_gnu_ld="$lt_cv_prog_gnu_ld"
8874 old_CC="$CC"
8875 old_CFLAGS="$CFLAGS"
8877 # Set sane defaults for various variables
8878 test -z "$CC" && CC=cc
8879 test -z "$LTCC" && LTCC=$CC
8880 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8881 test -z "$LD" && LD=ld
8882 test -z "$ac_objext" && ac_objext=o
8884 for cc_temp in $compiler""; do
8885 case $cc_temp in
8886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8888 \-*) ;;
8889 *) break;;
8890 esac
8891 done
8892 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8895 # Only perform the check for file, if the check method requires it
8896 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8897 case $deplibs_check_method in
8898 file_magic*)
8899 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8901 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8902 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 case $MAGIC_CMD in
8906 [\\/*] | ?:[\\/]*)
8907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8910 lt_save_MAGIC_CMD="$MAGIC_CMD"
8911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8912 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8913 for ac_dir in $ac_dummy; do
8914 IFS="$lt_save_ifs"
8915 test -z "$ac_dir" && ac_dir=.
8916 if test -f $ac_dir/${ac_tool_prefix}file; then
8917 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8918 if test -n "$file_magic_test_file"; then
8919 case $deplibs_check_method in
8920 "file_magic "*)
8921 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8923 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8924 $EGREP "$file_magic_regex" > /dev/null; then
8926 else
8927 cat <<_LT_EOF 1>&2
8929 *** Warning: the command libtool uses to detect shared libraries,
8930 *** $file_magic_cmd, produces output that libtool cannot recognize.
8931 *** The result is that libtool may fail to recognize shared libraries
8932 *** as such. This will affect the creation of libtool libraries that
8933 *** depend on shared libraries, but programs linked with such libtool
8934 *** libraries will work regardless of this problem. Nevertheless, you
8935 *** may want to report the problem to your system manager and/or to
8936 *** bug-libtool@gnu.org
8938 _LT_EOF
8939 fi ;;
8940 esac
8942 break
8944 done
8945 IFS="$lt_save_ifs"
8946 MAGIC_CMD="$lt_save_MAGIC_CMD"
8948 esac
8951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8952 if test -n "$MAGIC_CMD"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8954 $as_echo "$MAGIC_CMD" >&6; }
8955 else
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8964 if test -z "$lt_cv_path_MAGIC_CMD"; then
8965 if test -n "$ac_tool_prefix"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8967 $as_echo_n "checking for file... " >&6; }
8968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 case $MAGIC_CMD in
8972 [\\/*] | ?:[\\/]*)
8973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8976 lt_save_MAGIC_CMD="$MAGIC_CMD"
8977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8979 for ac_dir in $ac_dummy; do
8980 IFS="$lt_save_ifs"
8981 test -z "$ac_dir" && ac_dir=.
8982 if test -f $ac_dir/file; then
8983 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8984 if test -n "$file_magic_test_file"; then
8985 case $deplibs_check_method in
8986 "file_magic "*)
8987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8990 $EGREP "$file_magic_regex" > /dev/null; then
8992 else
8993 cat <<_LT_EOF 1>&2
8995 *** Warning: the command libtool uses to detect shared libraries,
8996 *** $file_magic_cmd, produces output that libtool cannot recognize.
8997 *** The result is that libtool may fail to recognize shared libraries
8998 *** as such. This will affect the creation of libtool libraries that
8999 *** depend on shared libraries, but programs linked with such libtool
9000 *** libraries will work regardless of this problem. Nevertheless, you
9001 *** may want to report the problem to your system manager and/or to
9002 *** bug-libtool@gnu.org
9004 _LT_EOF
9005 fi ;;
9006 esac
9008 break
9010 done
9011 IFS="$lt_save_ifs"
9012 MAGIC_CMD="$lt_save_MAGIC_CMD"
9014 esac
9017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9018 if test -n "$MAGIC_CMD"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9020 $as_echo "$MAGIC_CMD" >&6; }
9021 else
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9027 else
9028 MAGIC_CMD=:
9034 esac
9036 # Use C for the default configuration in the libtool script
9038 lt_save_CC="$CC"
9039 ac_ext=c
9040 ac_cpp='$CPP $CPPFLAGS'
9041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9046 # Source file extension for C test sources.
9047 ac_ext=c
9049 # Object file extension for compiled C test sources.
9050 objext=o
9051 objext=$objext
9053 # Code to be used in simple compile tests
9054 lt_simple_compile_test_code="int some_variable = 0;"
9056 # Code to be used in simple link tests
9057 lt_simple_link_test_code='int main(){return(0);}'
9065 # If no C compiler was specified, use CC.
9066 LTCC=${LTCC-"$CC"}
9068 # If no C compiler flags were specified, use CFLAGS.
9069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9071 # Allow CC to be a program name with arguments.
9072 compiler=$CC
9074 # Save the default compiler, since it gets overwritten when the other
9075 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9076 compiler_DEFAULT=$CC
9078 # save warnings/boilerplate of simple test code
9079 ac_outfile=conftest.$ac_objext
9080 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9082 _lt_compiler_boilerplate=`cat conftest.err`
9083 $RM conftest*
9085 ac_outfile=conftest.$ac_objext
9086 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9088 _lt_linker_boilerplate=`cat conftest.err`
9089 $RM -r conftest*
9092 ## CAVEAT EMPTOR:
9093 ## There is no encapsulation within the following macros, do not change
9094 ## the running order or otherwise move them around unless you know exactly
9095 ## what you are doing...
9096 if test -n "$compiler"; then
9098 lt_prog_compiler_no_builtin_flag=
9100 if test "$GCC" = yes; then
9101 case $cc_basename in
9102 nvcc*)
9103 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9105 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9106 esac
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9109 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9110 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 lt_cv_prog_compiler_rtti_exceptions=no
9114 ac_outfile=conftest.$ac_objext
9115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9116 lt_compiler_flag="-fno-rtti -fno-exceptions"
9117 # Insert the option either (1) after the last *FLAGS variable, or
9118 # (2) before a word containing "conftest.", or (3) at the end.
9119 # Note that $ac_compile itself does not contain backslashes and begins
9120 # with a dollar sign (not a hyphen), so the echo should work correctly.
9121 # The option is referenced via a variable to avoid confusing sed.
9122 lt_compile=`echo "$ac_compile" | $SED \
9123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9125 -e 's:$: $lt_compiler_flag:'`
9126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9127 (eval "$lt_compile" 2>conftest.err)
9128 ac_status=$?
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 if (exit $ac_status) && test -s "$ac_outfile"; then
9132 # The compiler can only warn and ignore the option if not recognized
9133 # So say no if there are warnings other than the usual output.
9134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9137 lt_cv_prog_compiler_rtti_exceptions=yes
9140 $RM conftest*
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9144 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9146 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9147 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9148 else
9159 lt_prog_compiler_wl=
9160 lt_prog_compiler_pic=
9161 lt_prog_compiler_static=
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9164 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9166 if test "$GCC" = yes; then
9167 lt_prog_compiler_wl='-Wl,'
9168 lt_prog_compiler_static='-static'
9170 case $host_os in
9171 aix*)
9172 # All AIX code is PIC.
9173 if test "$host_cpu" = ia64; then
9174 # AIX 5 now supports IA64 processor
9175 lt_prog_compiler_static='-Bstatic'
9177 lt_prog_compiler_pic='-fPIC'
9180 amigaos*)
9181 case $host_cpu in
9182 powerpc)
9183 # see comment about AmigaOS4 .so support
9184 lt_prog_compiler_pic='-fPIC'
9186 m68k)
9187 # FIXME: we need at least 68020 code to build shared libraries, but
9188 # adding the `-m68020' flag to GCC prevents building anything better,
9189 # like `-m68040'.
9190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9192 esac
9195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9196 # PIC is the default for these OSes.
9199 mingw* | cygwin* | pw32* | os2* | cegcc*)
9200 # This hack is so that the source file can tell whether it is being
9201 # built for inclusion in a dll (and should export symbols for example).
9202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9203 # (--disable-auto-import) libraries
9204 lt_prog_compiler_pic='-DDLL_EXPORT'
9207 darwin* | rhapsody*)
9208 # PIC is the default on this platform
9209 # Common symbols not allowed in MH_DYLIB files
9210 lt_prog_compiler_pic='-fno-common'
9213 haiku*)
9214 # PIC is the default for Haiku.
9215 # The "-static" flag exists, but is broken.
9216 lt_prog_compiler_static=
9219 hpux*)
9220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9222 # sets the default TLS model and affects inlining.
9223 case $host_cpu in
9224 hppa*64*)
9225 # +Z the default
9228 lt_prog_compiler_pic='-fPIC'
9230 esac
9233 interix[3-9]*)
9234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9235 # Instead, we relocate shared libraries at runtime.
9238 msdosdjgpp*)
9239 # Just because we use GCC doesn't mean we suddenly get shared libraries
9240 # on systems that don't support them.
9241 lt_prog_compiler_can_build_shared=no
9242 enable_shared=no
9245 *nto* | *qnx*)
9246 # QNX uses GNU C++, but need to define -shared option too, otherwise
9247 # it will coredump.
9248 lt_prog_compiler_pic='-fPIC -shared'
9251 sysv4*MP*)
9252 if test -d /usr/nec; then
9253 lt_prog_compiler_pic=-Kconform_pic
9258 lt_prog_compiler_pic='-fPIC'
9260 esac
9262 case $cc_basename in
9263 nvcc*) # Cuda Compiler Driver 2.2
9264 lt_prog_compiler_wl='-Xlinker '
9265 lt_prog_compiler_pic='-Xcompiler -fPIC'
9267 esac
9268 else
9269 # PORTME Check for flag to pass linker flags through the system compiler.
9270 case $host_os in
9271 aix*)
9272 lt_prog_compiler_wl='-Wl,'
9273 if test "$host_cpu" = ia64; then
9274 # AIX 5 now supports IA64 processor
9275 lt_prog_compiler_static='-Bstatic'
9276 else
9277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9281 mingw* | cygwin* | pw32* | os2* | cegcc*)
9282 # This hack is so that the source file can tell whether it is being
9283 # built for inclusion in a dll (and should export symbols for example).
9284 lt_prog_compiler_pic='-DDLL_EXPORT'
9287 hpux9* | hpux10* | hpux11*)
9288 lt_prog_compiler_wl='-Wl,'
9289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9290 # not for PA HP-UX.
9291 case $host_cpu in
9292 hppa*64*|ia64*)
9293 # +Z the default
9296 lt_prog_compiler_pic='+Z'
9298 esac
9299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9300 lt_prog_compiler_static='${wl}-a ${wl}archive'
9303 irix5* | irix6* | nonstopux*)
9304 lt_prog_compiler_wl='-Wl,'
9305 # PIC (with -KPIC) is the default.
9306 lt_prog_compiler_static='-non_shared'
9309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9310 case $cc_basename in
9311 # old Intel for x86_64 which still supported -KPIC.
9312 ecc*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-static'
9317 # icc used to be incompatible with GCC.
9318 # ICC 10 doesn't accept -KPIC any more.
9319 icc* | ifort*)
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_pic='-fPIC'
9322 lt_prog_compiler_static='-static'
9324 # Lahey Fortran 8.1.
9325 lf95*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='--shared'
9328 lt_prog_compiler_static='--static'
9330 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9331 # Portland Group compilers (*not* the Pentium gcc compiler,
9332 # which looks to be a dead project)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-fpic'
9335 lt_prog_compiler_static='-Bstatic'
9337 ccc*)
9338 lt_prog_compiler_wl='-Wl,'
9339 # All Alpha code is PIC.
9340 lt_prog_compiler_static='-non_shared'
9342 xl* | bgxl* | bgf* | mpixl*)
9343 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-qpic'
9346 lt_prog_compiler_static='-qstaticlink'
9349 case `$CC -V 2>&1 | sed 5q` in
9350 *Sun\ F* | *Sun*Fortran*)
9351 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9352 lt_prog_compiler_pic='-KPIC'
9353 lt_prog_compiler_static='-Bstatic'
9354 lt_prog_compiler_wl=''
9356 *Sun\ C*)
9357 # Sun C 5.9
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 lt_prog_compiler_wl='-Wl,'
9362 esac
9364 esac
9367 newsos6)
9368 lt_prog_compiler_pic='-KPIC'
9369 lt_prog_compiler_static='-Bstatic'
9372 *nto* | *qnx*)
9373 # QNX uses GNU C++, but need to define -shared option too, otherwise
9374 # it will coredump.
9375 lt_prog_compiler_pic='-fPIC -shared'
9378 osf3* | osf4* | osf5*)
9379 lt_prog_compiler_wl='-Wl,'
9380 # All OSF/1 code is PIC.
9381 lt_prog_compiler_static='-non_shared'
9384 rdos*)
9385 lt_prog_compiler_static='-non_shared'
9388 solaris*)
9389 lt_prog_compiler_pic='-KPIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 case $cc_basename in
9392 f77* | f90* | f95*)
9393 lt_prog_compiler_wl='-Qoption ld ';;
9395 lt_prog_compiler_wl='-Wl,';;
9396 esac
9399 sunos4*)
9400 lt_prog_compiler_wl='-Qoption ld '
9401 lt_prog_compiler_pic='-PIC'
9402 lt_prog_compiler_static='-Bstatic'
9405 sysv4 | sysv4.2uw2* | sysv4.3*)
9406 lt_prog_compiler_wl='-Wl,'
9407 lt_prog_compiler_pic='-KPIC'
9408 lt_prog_compiler_static='-Bstatic'
9411 sysv4*MP*)
9412 if test -d /usr/nec ;then
9413 lt_prog_compiler_pic='-Kconform_pic'
9414 lt_prog_compiler_static='-Bstatic'
9418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_pic='-KPIC'
9421 lt_prog_compiler_static='-Bstatic'
9424 unicos*)
9425 lt_prog_compiler_wl='-Wl,'
9426 lt_prog_compiler_can_build_shared=no
9429 uts4*)
9430 lt_prog_compiler_pic='-pic'
9431 lt_prog_compiler_static='-Bstatic'
9435 lt_prog_compiler_can_build_shared=no
9437 esac
9440 case $host_os in
9441 # For platforms which do not support PIC, -DPIC is meaningless:
9442 *djgpp*)
9443 lt_prog_compiler_pic=
9446 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9448 esac
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9450 $as_echo "$lt_prog_compiler_pic" >&6; }
9458 # Check to make sure the PIC flag actually works.
9460 if test -n "$lt_prog_compiler_pic"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9462 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9463 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 lt_cv_prog_compiler_pic_works=no
9467 ac_outfile=conftest.$ac_objext
9468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9469 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9470 # Insert the option either (1) after the last *FLAGS variable, or
9471 # (2) before a word containing "conftest.", or (3) at the end.
9472 # Note that $ac_compile itself does not contain backslashes and begins
9473 # with a dollar sign (not a hyphen), so the echo should work correctly.
9474 # The option is referenced via a variable to avoid confusing sed.
9475 lt_compile=`echo "$ac_compile" | $SED \
9476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9478 -e 's:$: $lt_compiler_flag:'`
9479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9480 (eval "$lt_compile" 2>conftest.err)
9481 ac_status=$?
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 if (exit $ac_status) && test -s "$ac_outfile"; then
9485 # The compiler can only warn and ignore the option if not recognized
9486 # So say no if there are warnings other than the usual output.
9487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9490 lt_cv_prog_compiler_pic_works=yes
9493 $RM conftest*
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9497 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9499 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9500 case $lt_prog_compiler_pic in
9501 "" | " "*) ;;
9502 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9503 esac
9504 else
9505 lt_prog_compiler_pic=
9506 lt_prog_compiler_can_build_shared=no
9517 # Check to make sure the static flag actually works.
9519 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9521 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9522 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 lt_cv_prog_compiler_static_works=no
9526 save_LDFLAGS="$LDFLAGS"
9527 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9530 # The linker can only warn and ignore the option if not recognized
9531 # So say no if there are warnings
9532 if test -s conftest.err; then
9533 # Append any errors to the config.log.
9534 cat conftest.err 1>&5
9535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9537 if diff conftest.exp conftest.er2 >/dev/null; then
9538 lt_cv_prog_compiler_static_works=yes
9540 else
9541 lt_cv_prog_compiler_static_works=yes
9544 $RM -r conftest*
9545 LDFLAGS="$save_LDFLAGS"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9549 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9551 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9553 else
9554 lt_prog_compiler_static=
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9565 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 lt_cv_prog_compiler_c_o=no
9569 $RM -r conftest 2>/dev/null
9570 mkdir conftest
9571 cd conftest
9572 mkdir out
9573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9575 lt_compiler_flag="-o out/conftest2.$ac_objext"
9576 # Insert the option either (1) after the last *FLAGS variable, or
9577 # (2) before a word containing "conftest.", or (3) at the end.
9578 # Note that $ac_compile itself does not contain backslashes and begins
9579 # with a dollar sign (not a hyphen), so the echo should work correctly.
9580 lt_compile=`echo "$ac_compile" | $SED \
9581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9583 -e 's:$: $lt_compiler_flag:'`
9584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9585 (eval "$lt_compile" 2>out/conftest.err)
9586 ac_status=$?
9587 cat out/conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9590 then
9591 # The compiler can only warn and ignore the option if not recognized
9592 # So say no if there are warnings
9593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9596 lt_cv_prog_compiler_c_o=yes
9599 chmod u+w . 2>&5
9600 $RM conftest*
9601 # SGI C++ compiler will create directory out/ii_files/ for
9602 # template instantiation
9603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9604 $RM out/* && rmdir out
9605 cd ..
9606 $RM -r conftest
9607 $RM conftest*
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9611 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9619 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9620 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 lt_cv_prog_compiler_c_o=no
9624 $RM -r conftest 2>/dev/null
9625 mkdir conftest
9626 cd conftest
9627 mkdir out
9628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630 lt_compiler_flag="-o out/conftest2.$ac_objext"
9631 # Insert the option either (1) after the last *FLAGS variable, or
9632 # (2) before a word containing "conftest.", or (3) at the end.
9633 # Note that $ac_compile itself does not contain backslashes and begins
9634 # with a dollar sign (not a hyphen), so the echo should work correctly.
9635 lt_compile=`echo "$ac_compile" | $SED \
9636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9638 -e 's:$: $lt_compiler_flag:'`
9639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9640 (eval "$lt_compile" 2>out/conftest.err)
9641 ac_status=$?
9642 cat out/conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9645 then
9646 # The compiler can only warn and ignore the option if not recognized
9647 # So say no if there are warnings
9648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9649 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9650 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9651 lt_cv_prog_compiler_c_o=yes
9654 chmod u+w . 2>&5
9655 $RM conftest*
9656 # SGI C++ compiler will create directory out/ii_files/ for
9657 # template instantiation
9658 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9659 $RM out/* && rmdir out
9660 cd ..
9661 $RM -r conftest
9662 $RM conftest*
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9666 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9671 hard_links="nottested"
9672 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9673 # do not overwrite the value of need_locks provided by the user
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9675 $as_echo_n "checking if we can lock with hard links... " >&6; }
9676 hard_links=yes
9677 $RM conftest*
9678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9679 touch conftest.a
9680 ln conftest.a conftest.b 2>&5 || hard_links=no
9681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9683 $as_echo "$hard_links" >&6; }
9684 if test "$hard_links" = no; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9686 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9687 need_locks=warn
9689 else
9690 need_locks=no
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9699 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9701 runpath_var=
9702 allow_undefined_flag=
9703 always_export_symbols=no
9704 archive_cmds=
9705 archive_expsym_cmds=
9706 compiler_needs_object=no
9707 enable_shared_with_static_runtimes=no
9708 export_dynamic_flag_spec=
9709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9710 hardcode_automatic=no
9711 hardcode_direct=no
9712 hardcode_direct_absolute=no
9713 hardcode_libdir_flag_spec=
9714 hardcode_libdir_flag_spec_ld=
9715 hardcode_libdir_separator=
9716 hardcode_minus_L=no
9717 hardcode_shlibpath_var=unsupported
9718 inherit_rpath=no
9719 link_all_deplibs=unknown
9720 module_cmds=
9721 module_expsym_cmds=
9722 old_archive_from_new_cmds=
9723 old_archive_from_expsyms_cmds=
9724 thread_safe_flag_spec=
9725 whole_archive_flag_spec=
9726 # include_expsyms should be a list of space-separated symbols to be *always*
9727 # included in the symbol list
9728 include_expsyms=
9729 # exclude_expsyms can be an extended regexp of symbols to exclude
9730 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9731 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9732 # as well as any symbol that contains `d'.
9733 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9735 # platforms (ab)use it in PIC code, but their linkers get confused if
9736 # the symbol is explicitly referenced. Since portable code cannot
9737 # rely on this symbol name, it's probably fine to never include it in
9738 # preloaded symbol tables.
9739 # Exclude shared library initialization/finalization symbols.
9740 extract_expsyms_cmds=
9742 case $host_os in
9743 cygwin* | mingw* | pw32* | cegcc*)
9744 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9745 # When not using gcc, we currently assume that we are using
9746 # Microsoft Visual C++.
9747 if test "$GCC" != yes; then
9748 with_gnu_ld=no
9751 interix*)
9752 # we just hope/assume this is gcc and not c89 (= MSVC++)
9753 with_gnu_ld=yes
9755 openbsd*)
9756 with_gnu_ld=no
9758 esac
9760 ld_shlibs=yes
9762 # On some targets, GNU ld is compatible enough with the native linker
9763 # that we're better off using the native interface for both.
9764 lt_use_gnu_ld_interface=no
9765 if test "$with_gnu_ld" = yes; then
9766 case $host_os in
9767 aix*)
9768 # The AIX port of GNU ld has always aspired to compatibility
9769 # with the native linker. However, as the warning in the GNU ld
9770 # block says, versions before 2.19.5* couldn't really create working
9771 # shared libraries, regardless of the interface used.
9772 case `$LD -v 2>&1` in
9773 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9774 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9775 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9777 lt_use_gnu_ld_interface=yes
9779 esac
9782 lt_use_gnu_ld_interface=yes
9784 esac
9787 if test "$lt_use_gnu_ld_interface" = yes; then
9788 # If archive_cmds runs LD, not CC, wlarc should be empty
9789 wlarc='${wl}'
9791 # Set some defaults for GNU ld with shared library support. These
9792 # are reset later if shared libraries are not supported. Putting them
9793 # here allows them to be overridden if necessary.
9794 runpath_var=LD_RUN_PATH
9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9796 export_dynamic_flag_spec='${wl}--export-dynamic'
9797 # ancient GNU ld didn't support --whole-archive et. al.
9798 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9800 else
9801 whole_archive_flag_spec=
9803 supports_anon_versioning=no
9804 case `$LD -v 2>&1` in
9805 *GNU\ gold*) supports_anon_versioning=yes ;;
9806 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9807 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9808 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9809 *\ 2.11.*) ;; # other 2.11 versions
9810 *) supports_anon_versioning=yes ;;
9811 esac
9813 # See if GNU ld supports shared libraries.
9814 case $host_os in
9815 aix[3-9]*)
9816 # On AIX/PPC, the GNU linker is very broken
9817 if test "$host_cpu" != ia64; then
9818 ld_shlibs=no
9819 cat <<_LT_EOF 1>&2
9821 *** Warning: the GNU linker, at least up to release 2.19, is reported
9822 *** to be unable to reliably create shared libraries on AIX.
9823 *** Therefore, libtool is disabling shared libraries support. If you
9824 *** really care for shared libraries, you may want to install binutils
9825 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9826 *** You will then need to restart the configuration process.
9828 _LT_EOF
9832 amigaos*)
9833 case $host_cpu in
9834 powerpc)
9835 # see comment about AmigaOS4 .so support
9836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837 archive_expsym_cmds=''
9839 m68k)
9840 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)'
9841 hardcode_libdir_flag_spec='-L$libdir'
9842 hardcode_minus_L=yes
9844 esac
9847 beos*)
9848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9849 allow_undefined_flag=unsupported
9850 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9851 # support --undefined. This deserves some investigation. FIXME
9852 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9853 else
9854 ld_shlibs=no
9858 cygwin* | mingw* | pw32* | cegcc*)
9859 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9860 # as there is no search path for DLLs.
9861 hardcode_libdir_flag_spec='-L$libdir'
9862 export_dynamic_flag_spec='${wl}--export-all-symbols'
9863 allow_undefined_flag=unsupported
9864 always_export_symbols=no
9865 enable_shared_with_static_runtimes=yes
9866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9868 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9870 # If the export-symbols file already is a .def file (1st line
9871 # is EXPORTS), use it as is; otherwise, prepend...
9872 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9873 cp $export_symbols $output_objdir/$soname.def;
9874 else
9875 echo EXPORTS > $output_objdir/$soname.def;
9876 cat $export_symbols >> $output_objdir/$soname.def;
9878 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9879 else
9880 ld_shlibs=no
9884 haiku*)
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 link_all_deplibs=yes
9889 interix[3-9]*)
9890 hardcode_direct=no
9891 hardcode_shlibpath_var=no
9892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9893 export_dynamic_flag_spec='${wl}-E'
9894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9895 # Instead, shared libraries are loaded at an image base (0x10000000 by
9896 # default) and relocated if they conflict, which is a slow very memory
9897 # consuming and fragmenting process. To avoid this, we pick a random,
9898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9901 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'
9904 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9905 tmp_diet=no
9906 if test "$host_os" = linux-dietlibc; then
9907 case $cc_basename in
9908 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9909 esac
9911 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9912 && test "$tmp_diet" = no
9913 then
9914 tmp_addflag=
9915 tmp_sharedflag='-shared'
9916 case $cc_basename,$host_cpu in
9917 pgcc*) # Portland Group C compiler
9918 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'
9919 tmp_addflag=' $pic_flag'
9921 pgf77* | pgf90* | pgf95* | pgfortran*)
9922 # Portland Group f77 and f90 compilers
9923 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'
9924 tmp_addflag=' $pic_flag -Mnomain' ;;
9925 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9926 tmp_addflag=' -i_dynamic' ;;
9927 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9928 tmp_addflag=' -i_dynamic -nofor_main' ;;
9929 ifc* | ifort*) # Intel Fortran compiler
9930 tmp_addflag=' -nofor_main' ;;
9931 lf95*) # Lahey Fortran 8.1
9932 whole_archive_flag_spec=
9933 tmp_sharedflag='--shared' ;;
9934 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9935 tmp_sharedflag='-qmkshrobj'
9936 tmp_addflag= ;;
9937 nvcc*) # Cuda Compiler Driver 2.2
9938 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'
9939 compiler_needs_object=yes
9941 esac
9942 case `$CC -V 2>&1 | sed 5q` in
9943 *Sun\ C*) # Sun C 5.9
9944 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'
9945 compiler_needs_object=yes
9946 tmp_sharedflag='-G' ;;
9947 *Sun\ F*) # Sun Fortran 8.3
9948 tmp_sharedflag='-G' ;;
9949 esac
9950 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9952 if test "x$supports_anon_versioning" = xyes; then
9953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9955 echo "local: *; };" >> $output_objdir/$libname.ver~
9956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9959 case $cc_basename in
9960 xlf* | bgf* | bgxlf* | mpixlf*)
9961 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9962 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9963 hardcode_libdir_flag_spec=
9964 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9965 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9966 if test "x$supports_anon_versioning" = xyes; then
9967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9969 echo "local: *; };" >> $output_objdir/$libname.ver~
9970 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9973 esac
9974 else
9975 ld_shlibs=no
9979 netbsd*)
9980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9982 wlarc=
9983 else
9984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9989 solaris*)
9990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9991 ld_shlibs=no
9992 cat <<_LT_EOF 1>&2
9994 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9995 *** create shared libraries on Solaris systems. Therefore, libtool
9996 *** is disabling shared libraries support. We urge you to upgrade GNU
9997 *** binutils to release 2.9.1 or newer. Another option is to modify
9998 *** your PATH or compiler configuration so that the native linker is
9999 *** used, and then restart.
10001 _LT_EOF
10002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10005 else
10006 ld_shlibs=no
10010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10011 case `$LD -v 2>&1` in
10012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10013 ld_shlibs=no
10014 cat <<_LT_EOF 1>&2
10016 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10017 *** reliably create shared libraries on SCO systems. Therefore, libtool
10018 *** is disabling shared libraries support. We urge you to upgrade GNU
10019 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10020 *** your PATH or compiler configuration so that the native linker is
10021 *** used, and then restart.
10023 _LT_EOF
10026 # For security reasons, it is highly recommended that you always
10027 # use absolute paths for naming shared libraries, and exclude the
10028 # DT_RUNPATH tag from executables and libraries. But doing so
10029 # requires that you compile everything twice, which is a pain.
10030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10034 else
10035 ld_shlibs=no
10038 esac
10041 sunos4*)
10042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10043 wlarc=
10044 hardcode_direct=yes
10045 hardcode_shlibpath_var=no
10049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10052 else
10053 ld_shlibs=no
10056 esac
10058 if test "$ld_shlibs" = no; then
10059 runpath_var=
10060 hardcode_libdir_flag_spec=
10061 export_dynamic_flag_spec=
10062 whole_archive_flag_spec=
10064 else
10065 # PORTME fill in a description of your system's linker (not GNU ld)
10066 case $host_os in
10067 aix3*)
10068 allow_undefined_flag=unsupported
10069 always_export_symbols=yes
10070 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'
10071 # Note: this linker hardcodes the directories in LIBPATH if there
10072 # are no directories specified by -L.
10073 hardcode_minus_L=yes
10074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10075 # Neither direct hardcoding nor static linking is supported with a
10076 # broken collect2.
10077 hardcode_direct=unsupported
10081 aix[4-9]*)
10082 if test "$host_cpu" = ia64; then
10083 # On IA64, the linker does run time linking by default, so we don't
10084 # have to do anything special.
10085 aix_use_runtimelinking=no
10086 exp_sym_flag='-Bexport'
10087 no_entry_flag=""
10088 else
10089 # If we're using GNU nm, then we don't want the "-C" option.
10090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10091 # Also, AIX nm treats weak defined symbols like other global
10092 # defined symbols, whereas GNU nm marks them as "W".
10093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10094 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'
10095 else
10096 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'
10098 aix_use_runtimelinking=no
10100 # Test if we are trying to use run time linking or normal
10101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10102 # need to do runtime linking.
10103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10104 for ld_flag in $LDFLAGS; do
10105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10106 aix_use_runtimelinking=yes
10107 break
10109 done
10111 esac
10113 exp_sym_flag='-bexport'
10114 no_entry_flag='-bnoentry'
10117 # When large executables or shared objects are built, AIX ld can
10118 # have problems creating the table of contents. If linking a library
10119 # or program results in "error TOC overflow" add -mminimal-toc to
10120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10123 archive_cmds=''
10124 hardcode_direct=yes
10125 hardcode_direct_absolute=yes
10126 hardcode_libdir_separator=':'
10127 link_all_deplibs=yes
10128 file_list_spec='${wl}-f,'
10130 if test "$GCC" = yes; then
10131 case $host_os in aix4.[012]|aix4.[012].*)
10132 # We only want to do this on AIX 4.2 and lower, the check
10133 # below for broken collect2 doesn't work under 4.3+
10134 collect2name=`${CC} -print-prog-name=collect2`
10135 if test -f "$collect2name" &&
10136 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10137 then
10138 # We have reworked collect2
10140 else
10141 # We have old collect2
10142 hardcode_direct=unsupported
10143 # It fails to find uninstalled libraries when the uninstalled
10144 # path is not listed in the libpath. Setting hardcode_minus_L
10145 # to unsupported forces relinking
10146 hardcode_minus_L=yes
10147 hardcode_libdir_flag_spec='-L$libdir'
10148 hardcode_libdir_separator=
10151 esac
10152 shared_flag='-shared'
10153 if test "$aix_use_runtimelinking" = yes; then
10154 shared_flag="$shared_flag "'${wl}-G'
10156 else
10157 # not using gcc
10158 if test "$host_cpu" = ia64; then
10159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10160 # chokes on -Wl,-G. The following line is correct:
10161 shared_flag='-G'
10162 else
10163 if test "$aix_use_runtimelinking" = yes; then
10164 shared_flag='${wl}-G'
10165 else
10166 shared_flag='${wl}-bM:SRE'
10171 export_dynamic_flag_spec='${wl}-bexpall'
10172 # It seems that -bexpall does not export symbols beginning with
10173 # underscore (_), so it is better to generate a list of symbols to export.
10174 always_export_symbols=yes
10175 if test "$aix_use_runtimelinking" = yes; then
10176 # Warning - without using the other runtime loading flags (-brtl),
10177 # -berok will link without error, but may produce a broken library.
10178 allow_undefined_flag='-berok'
10179 # Determine the default libpath from the value encoded in an
10180 # empty executable.
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10185 main ()
10189 return 0;
10191 _ACEOF
10192 if ac_fn_c_try_link "$LINENO"; then :
10194 lt_aix_libpath_sed='
10195 /Import File Strings/,/^$/ {
10196 /^0/ {
10197 s/^0 *\(.*\)$/\1/
10201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10202 # Check for a 64-bit object if we didn't find anything.
10203 if test -z "$aix_libpath"; then
10204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10211 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10212 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"
10213 else
10214 if test "$host_cpu" = ia64; then
10215 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10216 allow_undefined_flag="-z nodefs"
10217 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"
10218 else
10219 # Determine the default libpath from the value encoded in an
10220 # empty executable.
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10225 main ()
10229 return 0;
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10234 lt_aix_libpath_sed='
10235 /Import File Strings/,/^$/ {
10236 /^0/ {
10237 s/^0 *\(.*\)$/\1/
10241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10242 # Check for a 64-bit object if we didn't find anything.
10243 if test -z "$aix_libpath"; then
10244 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10252 # Warning - without using the other run time loading flags,
10253 # -berok will link without error, but may produce a broken library.
10254 no_undefined_flag=' ${wl}-bernotok'
10255 allow_undefined_flag=' ${wl}-berok'
10256 if test "$with_gnu_ld" = yes; then
10257 # We only use this code for GNU lds that support --whole-archive.
10258 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10259 else
10260 # Exported symbols can be pulled into shared objects from archives
10261 whole_archive_flag_spec='$convenience'
10263 archive_cmds_need_lc=yes
10264 # This is similar to how AIX traditionally builds its shared libraries.
10265 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'
10270 amigaos*)
10271 case $host_cpu in
10272 powerpc)
10273 # see comment about AmigaOS4 .so support
10274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10275 archive_expsym_cmds=''
10277 m68k)
10278 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)'
10279 hardcode_libdir_flag_spec='-L$libdir'
10280 hardcode_minus_L=yes
10282 esac
10285 bsdi[45]*)
10286 export_dynamic_flag_spec=-rdynamic
10289 cygwin* | mingw* | pw32* | cegcc*)
10290 # When not using gcc, we currently assume that we are using
10291 # Microsoft Visual C++.
10292 # hardcode_libdir_flag_spec is actually meaningless, as there is
10293 # no search path for DLLs.
10294 hardcode_libdir_flag_spec=' '
10295 allow_undefined_flag=unsupported
10296 # Tell ltmain to make .lib files, not .a files.
10297 libext=lib
10298 # Tell ltmain to make .dll files, not .so files.
10299 shrext_cmds=".dll"
10300 # FIXME: Setting linknames here is a bad hack.
10301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10302 # The linker will automatically build a .lib file if we build a DLL.
10303 old_archive_from_new_cmds='true'
10304 # FIXME: Should let the user specify the lib program.
10305 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10306 fix_srcfile_path='`cygpath -w "$srcfile"`'
10307 enable_shared_with_static_runtimes=yes
10310 darwin* | rhapsody*)
10313 archive_cmds_need_lc=no
10314 hardcode_direct=no
10315 hardcode_automatic=yes
10316 hardcode_shlibpath_var=unsupported
10317 if test "$lt_cv_ld_force_load" = "yes"; then
10318 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\"`'
10319 else
10320 whole_archive_flag_spec=''
10322 link_all_deplibs=yes
10323 allow_undefined_flag="$_lt_dar_allow_undefined"
10324 case $cc_basename in
10325 ifort*) _lt_dar_can_shared=yes ;;
10326 *) _lt_dar_can_shared=$GCC ;;
10327 esac
10328 if test "$_lt_dar_can_shared" = "yes"; then
10329 output_verbose_link_cmd=func_echo_all
10330 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10331 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10332 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}"
10333 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}"
10335 else
10336 ld_shlibs=no
10341 dgux*)
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_shlibpath_var=no
10347 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10348 # support. Future versions do this automatically, but an explicit c++rt0.o
10349 # does not break anything, and helps significantly (at the cost of a little
10350 # extra space).
10351 freebsd2.2*)
10352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10353 hardcode_libdir_flag_spec='-R$libdir'
10354 hardcode_direct=yes
10355 hardcode_shlibpath_var=no
10358 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10359 freebsd2.*)
10360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=yes
10362 hardcode_minus_L=yes
10363 hardcode_shlibpath_var=no
10366 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10367 freebsd* | dragonfly*)
10368 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10369 hardcode_libdir_flag_spec='-R$libdir'
10370 hardcode_direct=yes
10371 hardcode_shlibpath_var=no
10374 hpux9*)
10375 if test "$GCC" = yes; then
10376 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'
10377 else
10378 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'
10380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10381 hardcode_libdir_separator=:
10382 hardcode_direct=yes
10384 # hardcode_minus_L: Not really in the search PATH,
10385 # but as the default location of the library.
10386 hardcode_minus_L=yes
10387 export_dynamic_flag_spec='${wl}-E'
10390 hpux10*)
10391 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10392 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10393 else
10394 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396 if test "$with_gnu_ld" = no; then
10397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10398 hardcode_libdir_flag_spec_ld='+b $libdir'
10399 hardcode_libdir_separator=:
10400 hardcode_direct=yes
10401 hardcode_direct_absolute=yes
10402 export_dynamic_flag_spec='${wl}-E'
10403 # hardcode_minus_L: Not really in the search PATH,
10404 # but as the default location of the library.
10405 hardcode_minus_L=yes
10409 hpux11*)
10410 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10411 case $host_cpu in
10412 hppa*64*)
10413 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10415 ia64*)
10416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10421 esac
10422 else
10423 case $host_cpu in
10424 hppa*64*)
10425 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 ia64*)
10428 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10432 # Older versions of the 11.00 compiler do not understand -b yet
10433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10435 $as_echo_n "checking if $CC understands -b... " >&6; }
10436 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 lt_cv_prog_compiler__b=no
10440 save_LDFLAGS="$LDFLAGS"
10441 LDFLAGS="$LDFLAGS -b"
10442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10444 # The linker can only warn and ignore the option if not recognized
10445 # So say no if there are warnings
10446 if test -s conftest.err; then
10447 # Append any errors to the config.log.
10448 cat conftest.err 1>&5
10449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10451 if diff conftest.exp conftest.er2 >/dev/null; then
10452 lt_cv_prog_compiler__b=yes
10454 else
10455 lt_cv_prog_compiler__b=yes
10458 $RM -r conftest*
10459 LDFLAGS="$save_LDFLAGS"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10463 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10465 if test x"$lt_cv_prog_compiler__b" = xyes; then
10466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10467 else
10468 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10472 esac
10474 if test "$with_gnu_ld" = no; then
10475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10476 hardcode_libdir_separator=:
10478 case $host_cpu in
10479 hppa*64*|ia64*)
10480 hardcode_direct=no
10481 hardcode_shlibpath_var=no
10484 hardcode_direct=yes
10485 hardcode_direct_absolute=yes
10486 export_dynamic_flag_spec='${wl}-E'
10488 # hardcode_minus_L: Not really in the search PATH,
10489 # but as the default location of the library.
10490 hardcode_minus_L=yes
10492 esac
10496 irix5* | irix6* | nonstopux*)
10497 if test "$GCC" = yes; then
10498 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'
10499 # Try to use the -exported_symbol ld option, if it does not
10500 # work, assume that -exports_file does not work either and
10501 # implicitly export all symbols.
10502 save_LDFLAGS="$LDFLAGS"
10503 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 int foo(void) {}
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509 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'
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LDFLAGS="$save_LDFLAGS"
10515 else
10516 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'
10517 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'
10519 archive_cmds_need_lc='no'
10520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521 hardcode_libdir_separator=:
10522 inherit_rpath=yes
10523 link_all_deplibs=yes
10526 netbsd*)
10527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10529 else
10530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10532 hardcode_libdir_flag_spec='-R$libdir'
10533 hardcode_direct=yes
10534 hardcode_shlibpath_var=no
10537 newsos6)
10538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10539 hardcode_direct=yes
10540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541 hardcode_libdir_separator=:
10542 hardcode_shlibpath_var=no
10545 *nto* | *qnx*)
10548 openbsd*)
10549 if test -f /usr/libexec/ld.so; then
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10552 hardcode_direct_absolute=yes
10553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10557 export_dynamic_flag_spec='${wl}-E'
10558 else
10559 case $host_os in
10560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_libdir_flag_spec='-R$libdir'
10565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10568 esac
10570 else
10571 ld_shlibs=no
10575 os2*)
10576 hardcode_libdir_flag_spec='-L$libdir'
10577 hardcode_minus_L=yes
10578 allow_undefined_flag=unsupported
10579 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'
10580 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10583 osf3*)
10584 if test "$GCC" = yes; then
10585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10586 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'
10587 else
10588 allow_undefined_flag=' -expect_unresolved \*'
10589 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'
10591 archive_cmds_need_lc='no'
10592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10593 hardcode_libdir_separator=:
10596 osf4* | osf5*) # as osf3* with the addition of -msym flag
10597 if test "$GCC" = yes; then
10598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10599 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'
10600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601 else
10602 allow_undefined_flag=' -expect_unresolved \*'
10603 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'
10604 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~
10605 $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'
10607 # Both c and cxx compiler support -rpath directly
10608 hardcode_libdir_flag_spec='-rpath $libdir'
10610 archive_cmds_need_lc='no'
10611 hardcode_libdir_separator=:
10614 solaris*)
10615 no_undefined_flag=' -z defs'
10616 if test "$GCC" = yes; then
10617 wlarc='${wl}'
10618 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10620 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10621 else
10622 case `$CC -V 2>&1` in
10623 *"Compilers 5.0"*)
10624 wlarc=''
10625 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10630 wlarc='${wl}'
10631 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10635 esac
10637 hardcode_libdir_flag_spec='-R$libdir'
10638 hardcode_shlibpath_var=no
10639 case $host_os in
10640 solaris2.[0-5] | solaris2.[0-5].*) ;;
10642 # The compiler driver will combine and reorder linker options,
10643 # but understands `-z linker_flag'. GCC discards it without `$wl',
10644 # but is careful enough not to reorder.
10645 # Supported since Solaris 2.6 (maybe 2.5.1?)
10646 if test "$GCC" = yes; then
10647 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10648 else
10649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10652 esac
10653 link_all_deplibs=yes
10656 sunos4*)
10657 if test "x$host_vendor" = xsequent; then
10658 # Use $CC to link under sequent, because it throws in some extra .o
10659 # files that make .init and .fini sections work.
10660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10661 else
10662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10664 hardcode_libdir_flag_spec='-L$libdir'
10665 hardcode_direct=yes
10666 hardcode_minus_L=yes
10667 hardcode_shlibpath_var=no
10670 sysv4)
10671 case $host_vendor in
10672 sni)
10673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674 hardcode_direct=yes # is this really true???
10676 siemens)
10677 ## LD is ld it makes a PLAMLIB
10678 ## CC just makes a GrossModule.
10679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10680 reload_cmds='$CC -r -o $output$reload_objs'
10681 hardcode_direct=no
10683 motorola)
10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10687 esac
10688 runpath_var='LD_RUN_PATH'
10689 hardcode_shlibpath_var=no
10692 sysv4.3*)
10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694 hardcode_shlibpath_var=no
10695 export_dynamic_flag_spec='-Bexport'
10698 sysv4*MP*)
10699 if test -d /usr/nec; then
10700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_shlibpath_var=no
10702 runpath_var=LD_RUN_PATH
10703 hardcode_runpath_var=yes
10704 ld_shlibs=yes
10708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10709 no_undefined_flag='${wl}-z,text'
10710 archive_cmds_need_lc=no
10711 hardcode_shlibpath_var=no
10712 runpath_var='LD_RUN_PATH'
10714 if test "$GCC" = yes; then
10715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717 else
10718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 sysv5* | sco3.2v5* | sco5v6*)
10724 # Note: We can NOT use -z defs as we might desire, because we do not
10725 # link with -lc, and that would cause any symbols used from libc to
10726 # always be unresolved, which means just about no library would
10727 # ever link correctly. If we're not using GNU ld we use -z text
10728 # though, which does catch some bad symbols but isn't as heavy-handed
10729 # as -z defs.
10730 no_undefined_flag='${wl}-z,text'
10731 allow_undefined_flag='${wl}-z,nodefs'
10732 archive_cmds_need_lc=no
10733 hardcode_shlibpath_var=no
10734 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10735 hardcode_libdir_separator=':'
10736 link_all_deplibs=yes
10737 export_dynamic_flag_spec='${wl}-Bexport'
10738 runpath_var='LD_RUN_PATH'
10740 if test "$GCC" = yes; then
10741 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 else
10744 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 uts4*)
10750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10751 hardcode_libdir_flag_spec='-L$libdir'
10752 hardcode_shlibpath_var=no
10756 ld_shlibs=no
10758 esac
10760 if test x$host_vendor = xsni; then
10761 case $host in
10762 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10763 export_dynamic_flag_spec='${wl}-Blargedynsym'
10765 esac
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10770 $as_echo "$ld_shlibs" >&6; }
10771 test "$ld_shlibs" = no && can_build_shared=no
10773 with_gnu_ld=$with_gnu_ld
10790 # Do we need to explicitly link libc?
10792 case "x$archive_cmds_need_lc" in
10793 x|xyes)
10794 # Assume -lc should be added
10795 archive_cmds_need_lc=yes
10797 if test "$enable_shared" = yes && test "$GCC" = yes; then
10798 case $archive_cmds in
10799 *'~'*)
10800 # FIXME: we may have to deal with multi-command sequences.
10802 '$CC '*)
10803 # Test whether the compiler implicitly links with -lc since on some
10804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10805 # to ld, don't add -lc before -lgcc.
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10807 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10808 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 $RM conftest*
10812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10815 (eval $ac_compile) 2>&5
10816 ac_status=$?
10817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10818 test $ac_status = 0; } 2>conftest.err; then
10819 soname=conftest
10820 lib=conftest
10821 libobjs=conftest.$ac_objext
10822 deplibs=
10823 wl=$lt_prog_compiler_wl
10824 pic_flag=$lt_prog_compiler_pic
10825 compiler_flags=-v
10826 linker_flags=-v
10827 verstring=
10828 output_objdir=.
10829 libname=conftest
10830 lt_save_allow_undefined_flag=$allow_undefined_flag
10831 allow_undefined_flag=
10832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10833 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10834 ac_status=$?
10835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836 test $ac_status = 0; }
10837 then
10838 lt_cv_archive_cmds_need_lc=no
10839 else
10840 lt_cv_archive_cmds_need_lc=yes
10842 allow_undefined_flag=$lt_save_allow_undefined_flag
10843 else
10844 cat conftest.err 1>&5
10846 $RM conftest*
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10850 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10851 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10853 esac
10856 esac
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11015 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11017 if test "$GCC" = yes; then
11018 case $host_os in
11019 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11020 *) lt_awk_arg="/^libraries:/" ;;
11021 esac
11022 case $host_os in
11023 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11024 *) lt_sed_strip_eq="s,=/,/,g" ;;
11025 esac
11026 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11027 case $lt_search_path_spec in
11028 *\;*)
11029 # if the path contains ";" then we assume it to be the separator
11030 # otherwise default to the standard path separator (i.e. ":") - it is
11031 # assumed that no part of a normal pathname contains ";" but that should
11032 # okay in the real world where ";" in dirpaths is itself problematic.
11033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11038 esac
11039 # Ok, now we have the path, separated by spaces, we can step through it
11040 # and add multilib dir if necessary.
11041 lt_tmp_lt_search_path_spec=
11042 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11043 for lt_sys_path in $lt_search_path_spec; do
11044 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11046 else
11047 test -d "$lt_sys_path" && \
11048 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11050 done
11051 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11052 BEGIN {RS=" "; FS="/|\n";} {
11053 lt_foo="";
11054 lt_count=0;
11055 for (lt_i = NF; lt_i > 0; lt_i--) {
11056 if ($lt_i != "" && $lt_i != ".") {
11057 if ($lt_i == "..") {
11058 lt_count++;
11059 } else {
11060 if (lt_count == 0) {
11061 lt_foo="/" $lt_i lt_foo;
11062 } else {
11063 lt_count--;
11068 if (lt_foo != "") { lt_freq[lt_foo]++; }
11069 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11071 # AWK program above erroneously prepends '/' to C:/dos/paths
11072 # for these hosts.
11073 case $host_os in
11074 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11075 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11076 esac
11077 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11078 else
11079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11081 library_names_spec=
11082 libname_spec='lib$name'
11083 soname_spec=
11084 shrext_cmds=".so"
11085 postinstall_cmds=
11086 postuninstall_cmds=
11087 finish_cmds=
11088 finish_eval=
11089 shlibpath_var=
11090 shlibpath_overrides_runpath=unknown
11091 version_type=none
11092 dynamic_linker="$host_os ld.so"
11093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11094 need_lib_prefix=unknown
11095 hardcode_into_libs=no
11097 # when you set need_version to no, make sure it does not cause -set_version
11098 # flags to be left without arguments
11099 need_version=unknown
11101 case $host_os in
11102 aix3*)
11103 version_type=linux
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11105 shlibpath_var=LIBPATH
11107 # AIX 3 has no versioning support, so we append a major version to the name.
11108 soname_spec='${libname}${release}${shared_ext}$major'
11111 aix[4-9]*)
11112 version_type=linux
11113 need_lib_prefix=no
11114 need_version=no
11115 hardcode_into_libs=yes
11116 if test "$host_cpu" = ia64; then
11117 # AIX 5 supports IA64
11118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 else
11121 # With GCC up to 2.95.x, collect2 would create an import file
11122 # for dependence libraries. The import file would start with
11123 # the line `#! .'. This would cause the generated library to
11124 # depend on `.', always an invalid library. This was fixed in
11125 # development snapshots of GCC prior to 3.0.
11126 case $host_os in
11127 aix4 | aix4.[01] | aix4.[01].*)
11128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11129 echo ' yes '
11130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11132 else
11133 can_build_shared=no
11136 esac
11137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11138 # soname into executable. Probably we can add versioning support to
11139 # collect2, so additional links can be useful in future.
11140 if test "$aix_use_runtimelinking" = yes; then
11141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11142 # instead of lib<name>.a to let people know that these are not
11143 # typical AIX shared libraries.
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 else
11146 # We preserve .a as extension for shared libraries through AIX4.2
11147 # and later when we are not doing run time linking.
11148 library_names_spec='${libname}${release}.a $libname.a'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11151 shlibpath_var=LIBPATH
11155 amigaos*)
11156 case $host_cpu in
11157 powerpc)
11158 # Since July 2007 AmigaOS4 officially supports .so libraries.
11159 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 m68k)
11163 library_names_spec='$libname.ixlibrary $libname.a'
11164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11165 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'
11167 esac
11170 beos*)
11171 library_names_spec='${libname}${shared_ext}'
11172 dynamic_linker="$host_os ld.so"
11173 shlibpath_var=LIBRARY_PATH
11176 bsdi[45]*)
11177 version_type=linux
11178 need_version=no
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11185 # the default ld.so.conf also contains /usr/contrib/lib and
11186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11187 # libtool to hard-code these into programs
11190 cygwin* | mingw* | pw32* | cegcc*)
11191 version_type=windows
11192 shrext_cmds=".dll"
11193 need_version=no
11194 need_lib_prefix=no
11196 case $GCC,$host_os in
11197 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11198 library_names_spec='$libname.dll.a'
11199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11200 postinstall_cmds='base_file=`basename \${file}`~
11201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11202 dldir=$destdir/`dirname \$dlpath`~
11203 test -d \$dldir || mkdir -p \$dldir~
11204 $install_prog $dir/$dlname \$dldir/$dlname~
11205 chmod a+x \$dldir/$dlname~
11206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11210 dlpath=$dir/\$dldll~
11211 $RM \$dlpath'
11212 shlibpath_overrides_runpath=yes
11214 case $host_os in
11215 cygwin*)
11216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11219 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11221 mingw* | cegcc*)
11222 # MinGW DLLs use traditional 'lib' prefix
11223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11225 pw32*)
11226 # pw32 DLLs use 'pw' prefix rather than 'lib'
11227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11229 esac
11233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11235 esac
11236 dynamic_linker='Win32 ld.exe'
11237 # FIXME: first we should search . and the directory the executable is in
11238 shlibpath_var=PATH
11241 darwin* | rhapsody*)
11242 dynamic_linker="$host_os dyld"
11243 version_type=darwin
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11247 soname_spec='${libname}${release}${major}$shared_ext'
11248 shlibpath_overrides_runpath=yes
11249 shlibpath_var=DYLD_LIBRARY_PATH
11250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11256 dgux*)
11257 version_type=linux
11258 need_lib_prefix=no
11259 need_version=no
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11265 freebsd* | dragonfly*)
11266 # DragonFly does not have aout. When/if they implement a new
11267 # versioning mechanism, adjust this.
11268 if test -x /usr/bin/objformat; then
11269 objformat=`/usr/bin/objformat`
11270 else
11271 case $host_os in
11272 freebsd[23].*) objformat=aout ;;
11273 *) objformat=elf ;;
11274 esac
11276 version_type=freebsd-$objformat
11277 case $version_type in
11278 freebsd-elf*)
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11280 need_version=no
11281 need_lib_prefix=no
11283 freebsd-*)
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11285 need_version=yes
11287 esac
11288 shlibpath_var=LD_LIBRARY_PATH
11289 case $host_os in
11290 freebsd2.*)
11291 shlibpath_overrides_runpath=yes
11293 freebsd3.[01]* | freebsdelf3.[01]*)
11294 shlibpath_overrides_runpath=yes
11295 hardcode_into_libs=yes
11297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11302 *) # from 4.6 on, and DragonFly
11303 shlibpath_overrides_runpath=yes
11304 hardcode_into_libs=yes
11306 esac
11309 gnu*)
11310 version_type=linux
11311 need_lib_prefix=no
11312 need_version=no
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 hardcode_into_libs=yes
11319 haiku*)
11320 version_type=linux
11321 need_lib_prefix=no
11322 need_version=no
11323 dynamic_linker="$host_os runtime_loader"
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 shlibpath_var=LIBRARY_PATH
11327 shlibpath_overrides_runpath=yes
11328 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11329 hardcode_into_libs=yes
11332 hpux9* | hpux10* | hpux11*)
11333 # Give a soname corresponding to the major version so that dld.sl refuses to
11334 # link against other versions.
11335 version_type=sunos
11336 need_lib_prefix=no
11337 need_version=no
11338 case $host_cpu in
11339 ia64*)
11340 shrext_cmds='.so'
11341 hardcode_into_libs=yes
11342 dynamic_linker="$host_os dld.so"
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 if test "X$HPUX_IA64_MODE" = X32; then
11348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11349 else
11350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11354 hppa*64*)
11355 shrext_cmds='.sl'
11356 hardcode_into_libs=yes
11357 dynamic_linker="$host_os dld.sl"
11358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11366 shrext_cmds='.sl'
11367 dynamic_linker="$host_os dld.sl"
11368 shlibpath_var=SHLIB_PATH
11369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11373 esac
11374 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11375 postinstall_cmds='chmod 555 $lib'
11376 # or fails outright, so override atomically:
11377 install_override_mode=555
11380 interix[3-9]*)
11381 version_type=linux
11382 need_lib_prefix=no
11383 need_version=no
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11385 soname_spec='${libname}${release}${shared_ext}$major'
11386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 shlibpath_overrides_runpath=no
11389 hardcode_into_libs=yes
11392 irix5* | irix6* | nonstopux*)
11393 case $host_os in
11394 nonstopux*) version_type=nonstopux ;;
11396 if test "$lt_cv_prog_gnu_ld" = yes; then
11397 version_type=linux
11398 else
11399 version_type=irix
11400 fi ;;
11401 esac
11402 need_lib_prefix=no
11403 need_version=no
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11406 case $host_os in
11407 irix5* | nonstopux*)
11408 libsuff= shlibsuff=
11411 case $LD in # libtool.m4 will add one of these switches to LD
11412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11413 libsuff= shlibsuff= libmagic=32-bit;;
11414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11415 libsuff=32 shlibsuff=N32 libmagic=N32;;
11416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11418 *) libsuff= shlibsuff= libmagic=never-match;;
11419 esac
11421 esac
11422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11423 shlibpath_overrides_runpath=no
11424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11426 hardcode_into_libs=yes
11429 # No shared lib support for Linux oldld, aout, or coff.
11430 linux*oldld* | linux*aout* | linux*coff*)
11431 dynamic_linker=no
11434 # This must be Linux ELF.
11435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11436 version_type=linux
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 shlibpath_overrides_runpath=no
11445 # Some binutils ld are patched to set DT_RUNPATH
11446 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 lt_cv_shlibpath_overrides_runpath=no
11450 save_LDFLAGS=$LDFLAGS
11451 save_libdir=$libdir
11452 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11453 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11458 main ()
11462 return 0;
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11467 lt_cv_shlibpath_overrides_runpath=yes
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LDFLAGS=$save_LDFLAGS
11473 libdir=$save_libdir
11477 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11479 # This implies no fast_install, which is unacceptable.
11480 # Some rework will be needed to allow for fast_install
11481 # before this can be enabled.
11482 hardcode_into_libs=yes
11484 # Append ld.so.conf contents to the search path
11485 if test -f /etc/ld.so.conf; then
11486 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' ' '`
11487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11490 # We used to test for /lib/ld.so.1 and disable shared libraries on
11491 # powerpc, because MkLinux only supported shared libraries with the
11492 # GNU dynamic linker. Since this was broken with cross compilers,
11493 # most powerpc-linux boxes support dynamic linking these days and
11494 # people can always --disable-shared, the test was removed, and we
11495 # assume the GNU/Linux dynamic linker is in use.
11496 dynamic_linker='GNU/Linux ld.so'
11499 netbsd*)
11500 version_type=sunos
11501 need_lib_prefix=no
11502 need_version=no
11503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11506 dynamic_linker='NetBSD (a.out) ld.so'
11507 else
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 dynamic_linker='NetBSD ld.elf_so'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=yes
11514 hardcode_into_libs=yes
11517 newsos6)
11518 version_type=linux
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=yes
11524 *nto* | *qnx*)
11525 version_type=qnx
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=no
11532 hardcode_into_libs=yes
11533 dynamic_linker='ldqnx.so'
11536 openbsd*)
11537 version_type=sunos
11538 sys_lib_dlsearch_path_spec="/usr/lib"
11539 need_lib_prefix=no
11540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11541 case $host_os in
11542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11543 *) need_version=no ;;
11544 esac
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11549 case $host_os in
11550 openbsd2.[89] | openbsd2.[89].*)
11551 shlibpath_overrides_runpath=no
11554 shlibpath_overrides_runpath=yes
11556 esac
11557 else
11558 shlibpath_overrides_runpath=yes
11562 os2*)
11563 libname_spec='$name'
11564 shrext_cmds=".dll"
11565 need_lib_prefix=no
11566 library_names_spec='$libname${shared_ext} $libname.a'
11567 dynamic_linker='OS/2 ld.exe'
11568 shlibpath_var=LIBPATH
11571 osf3* | osf4* | osf5*)
11572 version_type=osf
11573 need_lib_prefix=no
11574 need_version=no
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11582 rdos*)
11583 dynamic_linker=no
11586 solaris*)
11587 version_type=linux
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11594 hardcode_into_libs=yes
11595 # ldd complains unless libraries are executable
11596 postinstall_cmds='chmod +x $lib'
11599 sunos4*)
11600 version_type=sunos
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=yes
11605 if test "$with_gnu_ld" = yes; then
11606 need_lib_prefix=no
11608 need_version=yes
11611 sysv4 | sysv4.3*)
11612 version_type=linux
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 case $host_vendor in
11617 sni)
11618 shlibpath_overrides_runpath=no
11619 need_lib_prefix=no
11620 runpath_var=LD_RUN_PATH
11622 siemens)
11623 need_lib_prefix=no
11625 motorola)
11626 need_lib_prefix=no
11627 need_version=no
11628 shlibpath_overrides_runpath=no
11629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11631 esac
11634 sysv4*MP*)
11635 if test -d /usr/nec ;then
11636 version_type=linux
11637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11638 soname_spec='$libname${shared_ext}.$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11644 version_type=freebsd-elf
11645 need_lib_prefix=no
11646 need_version=no
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11651 hardcode_into_libs=yes
11652 if test "$with_gnu_ld" = yes; then
11653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11654 else
11655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11656 case $host_os in
11657 sco3.2v5*)
11658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11660 esac
11662 sys_lib_dlsearch_path_spec='/usr/lib'
11665 tpf*)
11666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11667 version_type=linux
11668 need_lib_prefix=no
11669 need_version=no
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11673 hardcode_into_libs=yes
11676 uts4*)
11677 version_type=linux
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11684 dynamic_linker=no
11686 esac
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11688 $as_echo "$dynamic_linker" >&6; }
11689 test "$dynamic_linker" = no && can_build_shared=no
11691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11692 if test "$GCC" = yes; then
11693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11696 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11699 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11795 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11796 hardcode_action=
11797 if test -n "$hardcode_libdir_flag_spec" ||
11798 test -n "$runpath_var" ||
11799 test "X$hardcode_automatic" = "Xyes" ; then
11801 # We can hardcode non-existent directories.
11802 if test "$hardcode_direct" != no &&
11803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11804 # have to relink, otherwise we might link with an installed library
11805 # when we should be linking with a yet-to-be-installed one
11806 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11807 test "$hardcode_minus_L" != no; then
11808 # Linking always hardcodes the temporary library directory.
11809 hardcode_action=relink
11810 else
11811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11812 hardcode_action=immediate
11814 else
11815 # We cannot hardcode anything, or else we can only hardcode existing
11816 # directories.
11817 hardcode_action=unsupported
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11820 $as_echo "$hardcode_action" >&6; }
11822 if test "$hardcode_action" = relink ||
11823 test "$inherit_rpath" = yes; then
11824 # Fast installation is not supported
11825 enable_fast_install=no
11826 elif test "$shlibpath_overrides_runpath" = yes ||
11827 test "$enable_shared" = no; then
11828 # Fast installation is not necessary
11829 enable_fast_install=needless
11837 if test "x$enable_dlopen" != xyes; then
11838 enable_dlopen=unknown
11839 enable_dlopen_self=unknown
11840 enable_dlopen_self_static=unknown
11841 else
11842 lt_cv_dlopen=no
11843 lt_cv_dlopen_libs=
11845 case $host_os in
11846 beos*)
11847 lt_cv_dlopen="load_add_on"
11848 lt_cv_dlopen_libs=
11849 lt_cv_dlopen_self=yes
11852 mingw* | pw32* | cegcc*)
11853 lt_cv_dlopen="LoadLibrary"
11854 lt_cv_dlopen_libs=
11857 cygwin*)
11858 lt_cv_dlopen="dlopen"
11859 lt_cv_dlopen_libs=
11862 darwin*)
11863 # if libdl is installed we need to link against it
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11865 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-ldl $LIBS"
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11874 /* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11877 #ifdef __cplusplus
11878 extern "C"
11879 #endif
11880 char dlopen ();
11882 main ()
11884 return dlopen ();
11886 return 0;
11888 _ACEOF
11889 if ac_fn_c_try_link "$LINENO"; then :
11890 ac_cv_lib_dl_dlopen=yes
11891 else
11892 ac_cv_lib_dl_dlopen=no
11894 rm -f core conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11899 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11900 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11902 else
11904 lt_cv_dlopen="dyld"
11905 lt_cv_dlopen_libs=
11906 lt_cv_dlopen_self=yes
11913 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11914 if test "x$ac_cv_func_shl_load" = x""yes; then :
11915 lt_cv_dlopen="shl_load"
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11918 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-ldld $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char shl_load ();
11935 main ()
11937 return shl_load ();
11939 return 0;
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"; then :
11943 ac_cv_lib_dld_shl_load=yes
11944 else
11945 ac_cv_lib_dld_shl_load=no
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11952 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11953 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11954 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11955 else
11956 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11957 if test "x$ac_cv_func_dlopen" = x""yes; then :
11958 lt_cv_dlopen="dlopen"
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-ldl $LIBS"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char dlopen ();
11978 main ()
11980 return dlopen ();
11982 return 0;
11984 _ACEOF
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 ac_cv_lib_dl_dlopen=yes
11987 else
11988 ac_cv_lib_dl_dlopen=no
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11996 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12000 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lsvld $LIBS"
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char dlopen ();
12017 main ()
12019 return dlopen ();
12021 return 0;
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_lib_svld_dlopen=yes
12026 else
12027 ac_cv_lib_svld_dlopen=no
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12031 LIBS=$ac_check_lib_save_LIBS
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12034 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12035 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12039 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12040 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-ldld $LIBS"
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char dld_link ();
12056 main ()
12058 return dld_link ();
12060 return 0;
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_lib_dld_dld_link=yes
12065 else
12066 ac_cv_lib_dld_dld_link=no
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12073 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12074 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12094 esac
12096 if test "x$lt_cv_dlopen" != xno; then
12097 enable_dlopen=yes
12098 else
12099 enable_dlopen=no
12102 case $lt_cv_dlopen in
12103 dlopen)
12104 save_CPPFLAGS="$CPPFLAGS"
12105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12107 save_LDFLAGS="$LDFLAGS"
12108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12110 save_LIBS="$LIBS"
12111 LIBS="$lt_cv_dlopen_libs $LIBS"
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12114 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12115 if test "${lt_cv_dlopen_self+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 if test "$cross_compiling" = yes; then :
12119 lt_cv_dlopen_self=cross
12120 else
12121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12122 lt_status=$lt_dlunknown
12123 cat > conftest.$ac_ext <<_LT_EOF
12124 #line 12124 "configure"
12125 #include "confdefs.h"
12127 #if HAVE_DLFCN_H
12128 #include <dlfcn.h>
12129 #endif
12131 #include <stdio.h>
12133 #ifdef RTLD_GLOBAL
12134 # define LT_DLGLOBAL RTLD_GLOBAL
12135 #else
12136 # ifdef DL_GLOBAL
12137 # define LT_DLGLOBAL DL_GLOBAL
12138 # else
12139 # define LT_DLGLOBAL 0
12140 # endif
12141 #endif
12143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12144 find out it does not work in some platform. */
12145 #ifndef LT_DLLAZY_OR_NOW
12146 # ifdef RTLD_LAZY
12147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12148 # else
12149 # ifdef DL_LAZY
12150 # define LT_DLLAZY_OR_NOW DL_LAZY
12151 # else
12152 # ifdef RTLD_NOW
12153 # define LT_DLLAZY_OR_NOW RTLD_NOW
12154 # else
12155 # ifdef DL_NOW
12156 # define LT_DLLAZY_OR_NOW DL_NOW
12157 # else
12158 # define LT_DLLAZY_OR_NOW 0
12159 # endif
12160 # endif
12161 # endif
12162 # endif
12163 #endif
12165 /* When -fvisbility=hidden is used, assume the code has been annotated
12166 correspondingly for the symbols needed. */
12167 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12168 void fnord () __attribute__((visibility("default")));
12169 #endif
12171 void fnord () { int i=42; }
12172 int main ()
12174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12175 int status = $lt_dlunknown;
12177 if (self)
12179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12180 else
12182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12183 else puts (dlerror ());
12185 /* dlclose (self); */
12187 else
12188 puts (dlerror ());
12190 return status;
12192 _LT_EOF
12193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12194 (eval $ac_link) 2>&5
12195 ac_status=$?
12196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12198 (./conftest; exit; ) >&5 2>/dev/null
12199 lt_status=$?
12200 case x$lt_status in
12201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12204 esac
12205 else :
12206 # compilation failed
12207 lt_cv_dlopen_self=no
12210 rm -fr conftest*
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12215 $as_echo "$lt_cv_dlopen_self" >&6; }
12217 if test "x$lt_cv_dlopen_self" = xyes; then
12218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12220 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12221 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 if test "$cross_compiling" = yes; then :
12225 lt_cv_dlopen_self_static=cross
12226 else
12227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12228 lt_status=$lt_dlunknown
12229 cat > conftest.$ac_ext <<_LT_EOF
12230 #line 12230 "configure"
12231 #include "confdefs.h"
12233 #if HAVE_DLFCN_H
12234 #include <dlfcn.h>
12235 #endif
12237 #include <stdio.h>
12239 #ifdef RTLD_GLOBAL
12240 # define LT_DLGLOBAL RTLD_GLOBAL
12241 #else
12242 # ifdef DL_GLOBAL
12243 # define LT_DLGLOBAL DL_GLOBAL
12244 # else
12245 # define LT_DLGLOBAL 0
12246 # endif
12247 #endif
12249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12250 find out it does not work in some platform. */
12251 #ifndef LT_DLLAZY_OR_NOW
12252 # ifdef RTLD_LAZY
12253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12254 # else
12255 # ifdef DL_LAZY
12256 # define LT_DLLAZY_OR_NOW DL_LAZY
12257 # else
12258 # ifdef RTLD_NOW
12259 # define LT_DLLAZY_OR_NOW RTLD_NOW
12260 # else
12261 # ifdef DL_NOW
12262 # define LT_DLLAZY_OR_NOW DL_NOW
12263 # else
12264 # define LT_DLLAZY_OR_NOW 0
12265 # endif
12266 # endif
12267 # endif
12268 # endif
12269 #endif
12271 /* When -fvisbility=hidden is used, assume the code has been annotated
12272 correspondingly for the symbols needed. */
12273 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12274 void fnord () __attribute__((visibility("default")));
12275 #endif
12277 void fnord () { int i=42; }
12278 int main ()
12280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12281 int status = $lt_dlunknown;
12283 if (self)
12285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12286 else
12288 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12289 else puts (dlerror ());
12291 /* dlclose (self); */
12293 else
12294 puts (dlerror ());
12296 return status;
12298 _LT_EOF
12299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12300 (eval $ac_link) 2>&5
12301 ac_status=$?
12302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12303 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12304 (./conftest; exit; ) >&5 2>/dev/null
12305 lt_status=$?
12306 case x$lt_status in
12307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12310 esac
12311 else :
12312 # compilation failed
12313 lt_cv_dlopen_self_static=no
12316 rm -fr conftest*
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12321 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12324 CPPFLAGS="$save_CPPFLAGS"
12325 LDFLAGS="$save_LDFLAGS"
12326 LIBS="$save_LIBS"
12328 esac
12330 case $lt_cv_dlopen_self in
12331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12332 *) enable_dlopen_self=unknown ;;
12333 esac
12335 case $lt_cv_dlopen_self_static in
12336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12337 *) enable_dlopen_self_static=unknown ;;
12338 esac
12357 striplib=
12358 old_striplib=
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12360 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12361 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12363 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12365 $as_echo "yes" >&6; }
12366 else
12367 # FIXME - insert some real tests, host_os isn't really good enough
12368 case $host_os in
12369 darwin*)
12370 if test -n "$STRIP" ; then
12371 striplib="$STRIP -x"
12372 old_striplib="$STRIP -S"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374 $as_echo "yes" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12384 esac
12398 # Report which library types will actually be built
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12400 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12402 $as_echo "$can_build_shared" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12405 $as_echo_n "checking whether to build shared libraries... " >&6; }
12406 test "$can_build_shared" = "no" && enable_shared=no
12408 # On AIX, shared libraries and static libraries use the same namespace, and
12409 # are all built from PIC.
12410 case $host_os in
12411 aix3*)
12412 test "$enable_shared" = yes && enable_static=no
12413 if test -n "$RANLIB"; then
12414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12415 postinstall_cmds='$RANLIB $lib'
12419 aix[4-9]*)
12420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12421 test "$enable_shared" = yes && enable_static=no
12424 esac
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12426 $as_echo "$enable_shared" >&6; }
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12429 $as_echo_n "checking whether to build static libraries... " >&6; }
12430 # Make sure either enable_shared or enable_static is yes.
12431 test "$enable_shared" = yes || enable_static=yes
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12433 $as_echo "$enable_static" >&6; }
12439 ac_ext=c
12440 ac_cpp='$CPP $CPPFLAGS'
12441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12445 CC="$lt_save_CC"
12447 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12448 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12449 (test "X$CXX" != "Xg++"))) ; then
12450 ac_ext=cpp
12451 ac_cpp='$CXXCPP $CPPFLAGS'
12452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12456 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12457 if test -z "$CXXCPP"; then
12458 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 # Double quotes because CXXCPP needs to be expanded
12462 for CXXCPP in "$CXX -E" "/lib/cpp"
12464 ac_preproc_ok=false
12465 for ac_cxx_preproc_warn_flag in '' yes
12467 # Use a header file that comes with gcc, so configuring glibc
12468 # with a fresh cross-compiler works.
12469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 # <limits.h> exists even on freestanding compilers.
12471 # On the NeXT, cc -E runs the code through the compiler's parser,
12472 # not just through cpp. "Syntax error" is here to catch this case.
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475 #ifdef __STDC__
12476 # include <limits.h>
12477 #else
12478 # include <assert.h>
12479 #endif
12480 Syntax error
12481 _ACEOF
12482 if ac_fn_cxx_try_cpp "$LINENO"; then :
12484 else
12485 # Broken: fails on valid input.
12486 continue
12488 rm -f conftest.err conftest.$ac_ext
12490 # OK, works on sane cases. Now check whether nonexistent headers
12491 # can be detected and how.
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494 #include <ac_nonexistent.h>
12495 _ACEOF
12496 if ac_fn_cxx_try_cpp "$LINENO"; then :
12497 # Broken: success on invalid input.
12498 continue
12499 else
12500 # Passes both tests.
12501 ac_preproc_ok=:
12502 break
12504 rm -f conftest.err conftest.$ac_ext
12506 done
12507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12508 rm -f conftest.err conftest.$ac_ext
12509 if $ac_preproc_ok; then :
12510 break
12513 done
12514 ac_cv_prog_CXXCPP=$CXXCPP
12517 CXXCPP=$ac_cv_prog_CXXCPP
12518 else
12519 ac_cv_prog_CXXCPP=$CXXCPP
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12522 $as_echo "$CXXCPP" >&6; }
12523 ac_preproc_ok=false
12524 for ac_cxx_preproc_warn_flag in '' yes
12526 # Use a header file that comes with gcc, so configuring glibc
12527 # with a fresh cross-compiler works.
12528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12529 # <limits.h> exists even on freestanding compilers.
12530 # On the NeXT, cc -E runs the code through the compiler's parser,
12531 # not just through cpp. "Syntax error" is here to catch this case.
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534 #ifdef __STDC__
12535 # include <limits.h>
12536 #else
12537 # include <assert.h>
12538 #endif
12539 Syntax error
12540 _ACEOF
12541 if ac_fn_cxx_try_cpp "$LINENO"; then :
12543 else
12544 # Broken: fails on valid input.
12545 continue
12547 rm -f conftest.err conftest.$ac_ext
12549 # OK, works on sane cases. Now check whether nonexistent headers
12550 # can be detected and how.
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 #include <ac_nonexistent.h>
12554 _ACEOF
12555 if ac_fn_cxx_try_cpp "$LINENO"; then :
12556 # Broken: success on invalid input.
12557 continue
12558 else
12559 # Passes both tests.
12560 ac_preproc_ok=:
12561 break
12563 rm -f conftest.err conftest.$ac_ext
12565 done
12566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12567 rm -f conftest.err conftest.$ac_ext
12568 if $ac_preproc_ok; then :
12570 else
12571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12573 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12574 See \`config.log' for more details." "$LINENO" 5; }
12577 ac_ext=c
12578 ac_cpp='$CPP $CPPFLAGS'
12579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12583 else
12584 _lt_caught_CXX_error=yes
12587 ac_ext=cpp
12588 ac_cpp='$CXXCPP $CPPFLAGS'
12589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12593 archive_cmds_need_lc_CXX=no
12594 allow_undefined_flag_CXX=
12595 always_export_symbols_CXX=no
12596 archive_expsym_cmds_CXX=
12597 compiler_needs_object_CXX=no
12598 export_dynamic_flag_spec_CXX=
12599 hardcode_direct_CXX=no
12600 hardcode_direct_absolute_CXX=no
12601 hardcode_libdir_flag_spec_CXX=
12602 hardcode_libdir_flag_spec_ld_CXX=
12603 hardcode_libdir_separator_CXX=
12604 hardcode_minus_L_CXX=no
12605 hardcode_shlibpath_var_CXX=unsupported
12606 hardcode_automatic_CXX=no
12607 inherit_rpath_CXX=no
12608 module_cmds_CXX=
12609 module_expsym_cmds_CXX=
12610 link_all_deplibs_CXX=unknown
12611 old_archive_cmds_CXX=$old_archive_cmds
12612 reload_flag_CXX=$reload_flag
12613 reload_cmds_CXX=$reload_cmds
12614 no_undefined_flag_CXX=
12615 whole_archive_flag_spec_CXX=
12616 enable_shared_with_static_runtimes_CXX=no
12618 # Source file extension for C++ test sources.
12619 ac_ext=cpp
12621 # Object file extension for compiled C++ test sources.
12622 objext=o
12623 objext_CXX=$objext
12625 # No sense in running all these tests if we already determined that
12626 # the CXX compiler isn't working. Some variables (like enable_shared)
12627 # are currently assumed to apply to all compilers on this platform,
12628 # and will be corrupted by setting them based on a non-working compiler.
12629 if test "$_lt_caught_CXX_error" != yes; then
12630 # Code to be used in simple compile tests
12631 lt_simple_compile_test_code="int some_variable = 0;"
12633 # Code to be used in simple link tests
12634 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12636 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12643 # If no C compiler was specified, use CC.
12644 LTCC=${LTCC-"$CC"}
12646 # If no C compiler flags were specified, use CFLAGS.
12647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12649 # Allow CC to be a program name with arguments.
12650 compiler=$CC
12653 # save warnings/boilerplate of simple test code
12654 ac_outfile=conftest.$ac_objext
12655 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12657 _lt_compiler_boilerplate=`cat conftest.err`
12658 $RM conftest*
12660 ac_outfile=conftest.$ac_objext
12661 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12663 _lt_linker_boilerplate=`cat conftest.err`
12664 $RM -r conftest*
12667 # Allow CC to be a program name with arguments.
12668 lt_save_CC=$CC
12669 lt_save_LD=$LD
12670 lt_save_GCC=$GCC
12671 GCC=$GXX
12672 lt_save_with_gnu_ld=$with_gnu_ld
12673 lt_save_path_LD=$lt_cv_path_LD
12674 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12675 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12676 else
12677 $as_unset lt_cv_prog_gnu_ld
12679 if test -n "${lt_cv_path_LDCXX+set}"; then
12680 lt_cv_path_LD=$lt_cv_path_LDCXX
12681 else
12682 $as_unset lt_cv_path_LD
12684 test -z "${LDCXX+set}" || LD=$LDCXX
12685 CC=${CXX-"c++"}
12686 compiler=$CC
12687 compiler_CXX=$CC
12688 for cc_temp in $compiler""; do
12689 case $cc_temp in
12690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12692 \-*) ;;
12693 *) break;;
12694 esac
12695 done
12696 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12699 if test -n "$compiler"; then
12700 # We don't want -fno-exception when compiling C++ code, so set the
12701 # no_builtin_flag separately
12702 if test "$GXX" = yes; then
12703 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12704 else
12705 lt_prog_compiler_no_builtin_flag_CXX=
12708 if test "$GXX" = yes; then
12709 # Set up default GNU C++ configuration
12713 # Check whether --with-gnu-ld was given.
12714 if test "${with_gnu_ld+set}" = set; then :
12715 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12716 else
12717 with_gnu_ld=no
12720 ac_prog=ld
12721 if test "$GCC" = yes; then
12722 # Check if gcc -print-prog-name=ld gives a path.
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12724 $as_echo_n "checking for ld used by $CC... " >&6; }
12725 case $host in
12726 *-*-mingw*)
12727 # gcc leaves a trailing carriage return which upsets mingw
12728 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12730 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12731 esac
12732 case $ac_prog in
12733 # Accept absolute paths.
12734 [\\/]* | ?:[\\/]*)
12735 re_direlt='/[^/][^/]*/\.\./'
12736 # Canonicalize the pathname of ld
12737 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12738 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12739 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12740 done
12741 test -z "$LD" && LD="$ac_prog"
12744 # If it fails, then pretend we aren't using GCC.
12745 ac_prog=ld
12748 # If it is relative, then search for the first ld in PATH.
12749 with_gnu_ld=unknown
12751 esac
12752 elif test "$with_gnu_ld" = yes; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12754 $as_echo_n "checking for GNU ld... " >&6; }
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12757 $as_echo_n "checking for non-GNU ld... " >&6; }
12759 if test "${lt_cv_path_LD+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -z "$LD"; then
12763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12764 for ac_dir in $PATH; do
12765 IFS="$lt_save_ifs"
12766 test -z "$ac_dir" && ac_dir=.
12767 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12768 lt_cv_path_LD="$ac_dir/$ac_prog"
12769 # Check to see if the program is GNU ld. I'd rather use --version,
12770 # but apparently some variants of GNU ld only accept -v.
12771 # Break only if it was the GNU/non-GNU ld that we prefer.
12772 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12773 *GNU* | *'with BFD'*)
12774 test "$with_gnu_ld" != no && break
12777 test "$with_gnu_ld" != yes && break
12779 esac
12781 done
12782 IFS="$lt_save_ifs"
12783 else
12784 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12788 LD="$lt_cv_path_LD"
12789 if test -n "$LD"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12791 $as_echo "$LD" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12796 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12798 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12799 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12803 case `$LD -v 2>&1 </dev/null` in
12804 *GNU* | *'with BFD'*)
12805 lt_cv_prog_gnu_ld=yes
12808 lt_cv_prog_gnu_ld=no
12810 esac
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12813 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12814 with_gnu_ld=$lt_cv_prog_gnu_ld
12822 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12823 # archiving commands below assume that GNU ld is being used.
12824 if test "$with_gnu_ld" = yes; then
12825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12831 # If archive_cmds runs LD, not CC, wlarc should be empty
12832 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12833 # investigate it a little bit more. (MM)
12834 wlarc='${wl}'
12836 # ancient GNU ld didn't support --whole-archive et. al.
12837 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12838 $GREP 'no-whole-archive' > /dev/null; then
12839 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12840 else
12841 whole_archive_flag_spec_CXX=
12843 else
12844 with_gnu_ld=no
12845 wlarc=
12847 # A generic and very simple default shared library creation
12848 # command for GNU C++ for the case where it uses the native
12849 # linker, instead of GNU ld. If possible, this setting should
12850 # overridden to take advantage of the native linker features on
12851 # the platform it is being used on.
12852 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12855 # Commands to make compiler produce verbose output that lists
12856 # what "hidden" libraries, object files and flags are used when
12857 # linking a shared library.
12858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12860 else
12861 GXX=no
12862 with_gnu_ld=no
12863 wlarc=
12866 # PORTME: fill in a description of your system's C++ link characteristics
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12868 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12869 ld_shlibs_CXX=yes
12870 case $host_os in
12871 aix3*)
12872 # FIXME: insert proper C++ library support
12873 ld_shlibs_CXX=no
12875 aix[4-9]*)
12876 if test "$host_cpu" = ia64; then
12877 # On IA64, the linker does run time linking by default, so we don't
12878 # have to do anything special.
12879 aix_use_runtimelinking=no
12880 exp_sym_flag='-Bexport'
12881 no_entry_flag=""
12882 else
12883 aix_use_runtimelinking=no
12885 # Test if we are trying to use run time linking or normal
12886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12887 # need to do runtime linking.
12888 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12889 for ld_flag in $LDFLAGS; do
12890 case $ld_flag in
12891 *-brtl*)
12892 aix_use_runtimelinking=yes
12893 break
12895 esac
12896 done
12898 esac
12900 exp_sym_flag='-bexport'
12901 no_entry_flag='-bnoentry'
12904 # When large executables or shared objects are built, AIX ld can
12905 # have problems creating the table of contents. If linking a library
12906 # or program results in "error TOC overflow" add -mminimal-toc to
12907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12910 archive_cmds_CXX=''
12911 hardcode_direct_CXX=yes
12912 hardcode_direct_absolute_CXX=yes
12913 hardcode_libdir_separator_CXX=':'
12914 link_all_deplibs_CXX=yes
12915 file_list_spec_CXX='${wl}-f,'
12917 if test "$GXX" = yes; then
12918 case $host_os in aix4.[012]|aix4.[012].*)
12919 # We only want to do this on AIX 4.2 and lower, the check
12920 # below for broken collect2 doesn't work under 4.3+
12921 collect2name=`${CC} -print-prog-name=collect2`
12922 if test -f "$collect2name" &&
12923 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12924 then
12925 # We have reworked collect2
12927 else
12928 # We have old collect2
12929 hardcode_direct_CXX=unsupported
12930 # It fails to find uninstalled libraries when the uninstalled
12931 # path is not listed in the libpath. Setting hardcode_minus_L
12932 # to unsupported forces relinking
12933 hardcode_minus_L_CXX=yes
12934 hardcode_libdir_flag_spec_CXX='-L$libdir'
12935 hardcode_libdir_separator_CXX=
12937 esac
12938 shared_flag='-shared'
12939 if test "$aix_use_runtimelinking" = yes; then
12940 shared_flag="$shared_flag "'${wl}-G'
12942 else
12943 # not using gcc
12944 if test "$host_cpu" = ia64; then
12945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12946 # chokes on -Wl,-G. The following line is correct:
12947 shared_flag='-G'
12948 else
12949 if test "$aix_use_runtimelinking" = yes; then
12950 shared_flag='${wl}-G'
12951 else
12952 shared_flag='${wl}-bM:SRE'
12957 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12958 # It seems that -bexpall does not export symbols beginning with
12959 # underscore (_), so it is better to generate a list of symbols to
12960 # export.
12961 always_export_symbols_CXX=yes
12962 if test "$aix_use_runtimelinking" = yes; then
12963 # Warning - without using the other runtime loading flags (-brtl),
12964 # -berok will link without error, but may produce a broken library.
12965 allow_undefined_flag_CXX='-berok'
12966 # Determine the default libpath from the value encoded in an empty
12967 # executable.
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12972 main ()
12976 return 0;
12978 _ACEOF
12979 if ac_fn_cxx_try_link "$LINENO"; then :
12981 lt_aix_libpath_sed='
12982 /Import File Strings/,/^$/ {
12983 /^0/ {
12984 s/^0 *\(.*\)$/\1/
12988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989 # Check for a 64-bit object if we didn't find anything.
12990 if test -z "$aix_libpath"; then
12991 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12994 rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13000 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"
13001 else
13002 if test "$host_cpu" = ia64; then
13003 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13004 allow_undefined_flag_CXX="-z nodefs"
13005 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"
13006 else
13007 # Determine the default libpath from the value encoded in an
13008 # empty executable.
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13013 main ()
13017 return 0;
13019 _ACEOF
13020 if ac_fn_cxx_try_link "$LINENO"; then :
13022 lt_aix_libpath_sed='
13023 /Import File Strings/,/^$/ {
13024 /^0/ {
13025 s/^0 *\(.*\)$/\1/
13029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030 # Check for a 64-bit object if we didn't find anything.
13031 if test -z "$aix_libpath"; then
13032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext conftest.$ac_ext
13037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13040 # Warning - without using the other run time loading flags,
13041 # -berok will link without error, but may produce a broken library.
13042 no_undefined_flag_CXX=' ${wl}-bernotok'
13043 allow_undefined_flag_CXX=' ${wl}-berok'
13044 if test "$with_gnu_ld" = yes; then
13045 # We only use this code for GNU lds that support --whole-archive.
13046 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13047 else
13048 # Exported symbols can be pulled into shared objects from archives
13049 whole_archive_flag_spec_CXX='$convenience'
13051 archive_cmds_need_lc_CXX=yes
13052 # This is similar to how AIX traditionally builds its shared
13053 # libraries.
13054 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'
13059 beos*)
13060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13061 allow_undefined_flag_CXX=unsupported
13062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13063 # support --undefined. This deserves some investigation. FIXME
13064 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13065 else
13066 ld_shlibs_CXX=no
13070 chorus*)
13071 case $cc_basename in
13073 # FIXME: insert proper C++ library support
13074 ld_shlibs_CXX=no
13076 esac
13079 cygwin* | mingw* | pw32* | cegcc*)
13080 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13081 # as there is no search path for DLLs.
13082 hardcode_libdir_flag_spec_CXX='-L$libdir'
13083 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13084 allow_undefined_flag_CXX=unsupported
13085 always_export_symbols_CXX=no
13086 enable_shared_with_static_runtimes_CXX=yes
13088 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13089 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'
13090 # If the export-symbols file already is a .def file (1st line
13091 # is EXPORTS), use it as is; otherwise, prepend...
13092 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13093 cp $export_symbols $output_objdir/$soname.def;
13094 else
13095 echo EXPORTS > $output_objdir/$soname.def;
13096 cat $export_symbols >> $output_objdir/$soname.def;
13098 $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'
13099 else
13100 ld_shlibs_CXX=no
13103 darwin* | rhapsody*)
13106 archive_cmds_need_lc_CXX=no
13107 hardcode_direct_CXX=no
13108 hardcode_automatic_CXX=yes
13109 hardcode_shlibpath_var_CXX=unsupported
13110 if test "$lt_cv_ld_force_load" = "yes"; then
13111 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\"`'
13112 else
13113 whole_archive_flag_spec_CXX=''
13115 link_all_deplibs_CXX=yes
13116 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13117 case $cc_basename in
13118 ifort*) _lt_dar_can_shared=yes ;;
13119 *) _lt_dar_can_shared=$GCC ;;
13120 esac
13121 if test "$_lt_dar_can_shared" = "yes"; then
13122 output_verbose_link_cmd=func_echo_all
13123 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}"
13124 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13125 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}"
13126 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}"
13127 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13128 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}"
13129 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}"
13132 else
13133 ld_shlibs_CXX=no
13138 dgux*)
13139 case $cc_basename in
13140 ec++*)
13141 # FIXME: insert proper C++ library support
13142 ld_shlibs_CXX=no
13144 ghcx*)
13145 # Green Hills C++ Compiler
13146 # FIXME: insert proper C++ library support
13147 ld_shlibs_CXX=no
13150 # FIXME: insert proper C++ library support
13151 ld_shlibs_CXX=no
13153 esac
13156 freebsd2.*)
13157 # C++ shared libraries reported to be fairly broken before
13158 # switch to ELF
13159 ld_shlibs_CXX=no
13162 freebsd-elf*)
13163 archive_cmds_need_lc_CXX=no
13166 freebsd* | dragonfly*)
13167 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13168 # conventions
13169 ld_shlibs_CXX=yes
13172 gnu*)
13175 haiku*)
13176 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13177 link_all_deplibs_CXX=yes
13180 hpux9*)
13181 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13182 hardcode_libdir_separator_CXX=:
13183 export_dynamic_flag_spec_CXX='${wl}-E'
13184 hardcode_direct_CXX=yes
13185 hardcode_minus_L_CXX=yes # Not in the search PATH,
13186 # but as the default
13187 # location of the library.
13189 case $cc_basename in
13190 CC*)
13191 # FIXME: insert proper C++ library support
13192 ld_shlibs_CXX=no
13194 aCC*)
13195 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'
13196 # Commands to make compiler produce verbose output that lists
13197 # what "hidden" libraries, object files and flags are used when
13198 # linking a shared library.
13200 # There doesn't appear to be a way to prevent this compiler from
13201 # explicitly linking system object files so we need to strip them
13202 # from the output so that they don't get included in the library
13203 # dependencies.
13204 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"'
13207 if test "$GXX" = yes; then
13208 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'
13209 else
13210 # FIXME: insert proper C++ library support
13211 ld_shlibs_CXX=no
13214 esac
13217 hpux10*|hpux11*)
13218 if test $with_gnu_ld = no; then
13219 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13220 hardcode_libdir_separator_CXX=:
13222 case $host_cpu in
13223 hppa*64*|ia64*)
13226 export_dynamic_flag_spec_CXX='${wl}-E'
13228 esac
13230 case $host_cpu in
13231 hppa*64*|ia64*)
13232 hardcode_direct_CXX=no
13233 hardcode_shlibpath_var_CXX=no
13236 hardcode_direct_CXX=yes
13237 hardcode_direct_absolute_CXX=yes
13238 hardcode_minus_L_CXX=yes # Not in the search PATH,
13239 # but as the default
13240 # location of the library.
13242 esac
13244 case $cc_basename in
13245 CC*)
13246 # FIXME: insert proper C++ library support
13247 ld_shlibs_CXX=no
13249 aCC*)
13250 case $host_cpu in
13251 hppa*64*)
13252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13254 ia64*)
13255 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13258 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260 esac
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13268 # dependencies.
13269 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"'
13272 if test "$GXX" = yes; then
13273 if test $with_gnu_ld = no; then
13274 case $host_cpu in
13275 hppa*64*)
13276 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13278 ia64*)
13279 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13282 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'
13284 esac
13286 else
13287 # FIXME: insert proper C++ library support
13288 ld_shlibs_CXX=no
13291 esac
13294 interix[3-9]*)
13295 hardcode_direct_CXX=no
13296 hardcode_shlibpath_var_CXX=no
13297 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298 export_dynamic_flag_spec_CXX='${wl}-E'
13299 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13300 # Instead, shared libraries are loaded at an image base (0x10000000 by
13301 # default) and relocated if they conflict, which is a slow very memory
13302 # consuming and fragmenting process. To avoid this, we pick a random,
13303 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13304 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13305 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'
13306 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'
13308 irix5* | irix6*)
13309 case $cc_basename in
13310 CC*)
13311 # SGI C++
13312 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'
13314 # Archives containing C++ object files must be created using
13315 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13316 # necessary to make sure instantiated templates are included
13317 # in the archive.
13318 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13321 if test "$GXX" = yes; then
13322 if test "$with_gnu_ld" = no; then
13323 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'
13324 else
13325 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'
13328 link_all_deplibs_CXX=yes
13330 esac
13331 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13332 hardcode_libdir_separator_CXX=:
13333 inherit_rpath_CXX=yes
13336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13337 case $cc_basename in
13338 KCC*)
13339 # Kuck and Associates, Inc. (KAI) C++ Compiler
13341 # KCC will only create a shared library if the output file
13342 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13343 # to its proper name (with version) after linking.
13344 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'
13345 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'
13346 # Commands to make compiler produce verbose output that lists
13347 # what "hidden" libraries, object files and flags are used when
13348 # linking a shared library.
13350 # There doesn't appear to be a way to prevent this compiler from
13351 # explicitly linking system object files so we need to strip them
13352 # from the output so that they don't get included in the library
13353 # dependencies.
13354 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"'
13356 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13359 # Archives containing C++ object files must be created using
13360 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13361 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13363 icpc* | ecpc* )
13364 # Intel C++
13365 with_gnu_ld=yes
13366 # version 8.0 and above of icpc choke on multiply defined symbols
13367 # if we add $predep_objects and $postdep_objects, however 7.1 and
13368 # earlier do not add the objects themselves.
13369 case `$CC -V 2>&1` in
13370 *"Version 7."*)
13371 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13372 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'
13374 *) # Version 8.0 or newer
13375 tmp_idyn=
13376 case $host_cpu in
13377 ia64*) tmp_idyn=' -i_dynamic';;
13378 esac
13379 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380 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'
13382 esac
13383 archive_cmds_need_lc_CXX=no
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13388 pgCC* | pgcpp*)
13389 # Portland Group C++ compiler
13390 case `$CC -V` in
13391 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13392 prelink_cmds_CXX='tpldir=Template.dir~
13393 rm -rf $tpldir~
13394 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13395 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13396 old_archive_cmds_CXX='tpldir=Template.dir~
13397 rm -rf $tpldir~
13398 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13399 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13400 $RANLIB $oldlib'
13401 archive_cmds_CXX='tpldir=Template.dir~
13402 rm -rf $tpldir~
13403 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13404 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13405 archive_expsym_cmds_CXX='tpldir=Template.dir~
13406 rm -rf $tpldir~
13407 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13408 $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'
13410 *) # Version 6 and above use weak symbols
13411 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13412 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'
13414 esac
13416 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13417 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13418 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'
13420 cxx*)
13421 # Compaq C++
13422 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13423 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'
13425 runpath_var=LD_RUN_PATH
13426 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13427 hardcode_libdir_separator_CXX=:
13429 # Commands to make compiler produce verbose output that lists
13430 # what "hidden" libraries, object files and flags are used when
13431 # linking a shared library.
13433 # There doesn't appear to be a way to prevent this compiler from
13434 # explicitly linking system object files so we need to strip them
13435 # from the output so that they don't get included in the library
13436 # dependencies.
13437 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'
13439 xl* | mpixl* | bgxl*)
13440 # IBM XL 8.0 on PPC, with GNU ld
13441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13443 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 if test "x$supports_anon_versioning" = xyes; then
13445 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13446 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13447 echo "local: *; };" >> $output_objdir/$libname.ver~
13448 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13452 case `$CC -V 2>&1 | sed 5q` in
13453 *Sun\ C*)
13454 # Sun C++ 5.9
13455 no_undefined_flag_CXX=' -zdefs'
13456 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13457 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'
13458 hardcode_libdir_flag_spec_CXX='-R$libdir'
13459 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'
13460 compiler_needs_object_CXX=yes
13462 # Not sure whether something based on
13463 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13464 # would be better.
13465 output_verbose_link_cmd='func_echo_all'
13467 # Archives containing C++ object files must be created using
13468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13469 # necessary to make sure instantiated templates are included
13470 # in the archive.
13471 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13473 esac
13475 esac
13478 lynxos*)
13479 # FIXME: insert proper C++ library support
13480 ld_shlibs_CXX=no
13483 m88k*)
13484 # FIXME: insert proper C++ library support
13485 ld_shlibs_CXX=no
13488 mvs*)
13489 case $cc_basename in
13490 cxx*)
13491 # FIXME: insert proper C++ library support
13492 ld_shlibs_CXX=no
13495 # FIXME: insert proper C++ library support
13496 ld_shlibs_CXX=no
13498 esac
13501 netbsd*)
13502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13503 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13504 wlarc=
13505 hardcode_libdir_flag_spec_CXX='-R$libdir'
13506 hardcode_direct_CXX=yes
13507 hardcode_shlibpath_var_CXX=no
13509 # Workaround some broken pre-1.5 toolchains
13510 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13513 *nto* | *qnx*)
13514 ld_shlibs_CXX=yes
13517 openbsd2*)
13518 # C++ shared libraries are fairly broken
13519 ld_shlibs_CXX=no
13522 openbsd*)
13523 if test -f /usr/libexec/ld.so; then
13524 hardcode_direct_CXX=yes
13525 hardcode_shlibpath_var_CXX=no
13526 hardcode_direct_absolute_CXX=yes
13527 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13530 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13531 export_dynamic_flag_spec_CXX='${wl}-E'
13532 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13534 output_verbose_link_cmd=func_echo_all
13535 else
13536 ld_shlibs_CXX=no
13540 osf3* | osf4* | osf5*)
13541 case $cc_basename in
13542 KCC*)
13543 # Kuck and Associates, Inc. (KAI) C++ Compiler
13545 # KCC will only create a shared library if the output file
13546 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13547 # to its proper name (with version) after linking.
13548 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'
13550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13551 hardcode_libdir_separator_CXX=:
13553 # Archives containing C++ object files must be created using
13554 # the KAI C++ compiler.
13555 case $host in
13556 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13557 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13558 esac
13560 RCC*)
13561 # Rational C++ 2.4.1
13562 # FIXME: insert proper C++ library support
13563 ld_shlibs_CXX=no
13565 cxx*)
13566 case $host in
13567 osf3*)
13568 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13569 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'
13570 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13573 allow_undefined_flag_CXX=' -expect_unresolved \*'
13574 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'
13575 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13576 echo "-hidden">> $lib.exp~
13577 $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~
13578 $RM $lib.exp'
13579 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13581 esac
13583 hardcode_libdir_separator_CXX=:
13585 # Commands to make compiler produce verbose output that lists
13586 # what "hidden" libraries, object files and flags are used when
13587 # linking a shared library.
13589 # There doesn't appear to be a way to prevent this compiler from
13590 # explicitly linking system object files so we need to strip them
13591 # from the output so that they don't get included in the library
13592 # dependencies.
13593 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"'
13596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13597 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13598 case $host in
13599 osf3*)
13600 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'
13603 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'
13605 esac
13607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13608 hardcode_libdir_separator_CXX=:
13610 # Commands to make compiler produce verbose output that lists
13611 # what "hidden" libraries, object files and flags are used when
13612 # linking a shared library.
13613 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13615 else
13616 # FIXME: insert proper C++ library support
13617 ld_shlibs_CXX=no
13620 esac
13623 psos*)
13624 # FIXME: insert proper C++ library support
13625 ld_shlibs_CXX=no
13628 sunos4*)
13629 case $cc_basename in
13630 CC*)
13631 # Sun C++ 4.x
13632 # FIXME: insert proper C++ library support
13633 ld_shlibs_CXX=no
13635 lcc*)
13636 # Lucid
13637 # FIXME: insert proper C++ library support
13638 ld_shlibs_CXX=no
13641 # FIXME: insert proper C++ library support
13642 ld_shlibs_CXX=no
13644 esac
13647 solaris*)
13648 case $cc_basename in
13649 CC*)
13650 # Sun C++ 4.2, 5.x and Centerline C++
13651 archive_cmds_need_lc_CXX=yes
13652 no_undefined_flag_CXX=' -zdefs'
13653 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13654 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13655 $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'
13657 hardcode_libdir_flag_spec_CXX='-R$libdir'
13658 hardcode_shlibpath_var_CXX=no
13659 case $host_os in
13660 solaris2.[0-5] | solaris2.[0-5].*) ;;
13662 # The compiler driver will combine and reorder linker options,
13663 # but understands `-z linker_flag'.
13664 # Supported since Solaris 2.6 (maybe 2.5.1?)
13665 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13667 esac
13668 link_all_deplibs_CXX=yes
13670 output_verbose_link_cmd='func_echo_all'
13672 # Archives containing C++ object files must be created using
13673 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13674 # necessary to make sure instantiated templates are included
13675 # in the archive.
13676 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13678 gcx*)
13679 # Green Hills C++ Compiler
13680 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13682 # The C++ compiler must be used to create the archive.
13683 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13686 # GNU C++ compiler with Solaris linker
13687 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13688 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13689 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13690 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13691 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13692 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13694 # Commands to make compiler produce verbose output that lists
13695 # what "hidden" libraries, object files and flags are used when
13696 # linking a shared library.
13697 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13698 else
13699 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13700 # platform.
13701 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13702 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13703 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13705 # Commands to make compiler produce verbose output that lists
13706 # what "hidden" libraries, object files and flags are used when
13707 # linking a shared library.
13708 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13711 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13712 case $host_os in
13713 solaris2.[0-5] | solaris2.[0-5].*) ;;
13715 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13717 esac
13720 esac
13723 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13724 no_undefined_flag_CXX='${wl}-z,text'
13725 archive_cmds_need_lc_CXX=no
13726 hardcode_shlibpath_var_CXX=no
13727 runpath_var='LD_RUN_PATH'
13729 case $cc_basename in
13730 CC*)
13731 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13732 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13735 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 esac
13741 sysv5* | sco3.2v5* | sco5v6*)
13742 # Note: We can NOT use -z defs as we might desire, because we do not
13743 # link with -lc, and that would cause any symbols used from libc to
13744 # always be unresolved, which means just about no library would
13745 # ever link correctly. If we're not using GNU ld we use -z text
13746 # though, which does catch some bad symbols but isn't as heavy-handed
13747 # as -z defs.
13748 no_undefined_flag_CXX='${wl}-z,text'
13749 allow_undefined_flag_CXX='${wl}-z,nodefs'
13750 archive_cmds_need_lc_CXX=no
13751 hardcode_shlibpath_var_CXX=no
13752 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13753 hardcode_libdir_separator_CXX=':'
13754 link_all_deplibs_CXX=yes
13755 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13756 runpath_var='LD_RUN_PATH'
13758 case $cc_basename in
13759 CC*)
13760 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13763 '"$old_archive_cmds_CXX"
13764 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13765 '"$reload_cmds_CXX"
13768 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771 esac
13774 tandem*)
13775 case $cc_basename in
13776 NCC*)
13777 # NonStop-UX NCC 3.20
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13785 esac
13788 vxworks*)
13789 # FIXME: insert proper C++ library support
13790 ld_shlibs_CXX=no
13794 # FIXME: insert proper C++ library support
13795 ld_shlibs_CXX=no
13797 esac
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13800 $as_echo "$ld_shlibs_CXX" >&6; }
13801 test "$ld_shlibs_CXX" = no && can_build_shared=no
13803 GCC_CXX="$GXX"
13804 LD_CXX="$LD"
13806 ## CAVEAT EMPTOR:
13807 ## There is no encapsulation within the following macros, do not change
13808 ## the running order or otherwise move them around unless you know exactly
13809 ## what you are doing...
13810 # Dependencies to place before and after the object being linked:
13811 predep_objects_CXX=
13812 postdep_objects_CXX=
13813 predeps_CXX=
13814 postdeps_CXX=
13815 compiler_lib_search_path_CXX=
13817 cat > conftest.$ac_ext <<_LT_EOF
13818 class Foo
13820 public:
13821 Foo (void) { a = 0; }
13822 private:
13823 int a;
13825 _LT_EOF
13827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13828 (eval $ac_compile) 2>&5
13829 ac_status=$?
13830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13831 test $ac_status = 0; }; then
13832 # Parse the compiler output and extract the necessary
13833 # objects, libraries and library flags.
13835 # Sentinel used to keep track of whether or not we are before
13836 # the conftest object file.
13837 pre_test_object_deps_done=no
13839 for p in `eval "$output_verbose_link_cmd"`; do
13840 case $p in
13842 -L* | -R* | -l*)
13843 # Some compilers place space between "-{L,R}" and the path.
13844 # Remove the space.
13845 if test $p = "-L" ||
13846 test $p = "-R"; then
13847 prev=$p
13848 continue
13849 else
13850 prev=
13853 if test "$pre_test_object_deps_done" = no; then
13854 case $p in
13855 -L* | -R*)
13856 # Internal compiler library paths should come after those
13857 # provided the user. The postdeps already come after the
13858 # user supplied libs so there is no need to process them.
13859 if test -z "$compiler_lib_search_path_CXX"; then
13860 compiler_lib_search_path_CXX="${prev}${p}"
13861 else
13862 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13865 # The "-l" case would never come before the object being
13866 # linked, so don't bother handling this case.
13867 esac
13868 else
13869 if test -z "$postdeps_CXX"; then
13870 postdeps_CXX="${prev}${p}"
13871 else
13872 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13877 *.$objext)
13878 # This assumes that the test object file only shows up
13879 # once in the compiler output.
13880 if test "$p" = "conftest.$objext"; then
13881 pre_test_object_deps_done=yes
13882 continue
13885 if test "$pre_test_object_deps_done" = no; then
13886 if test -z "$predep_objects_CXX"; then
13887 predep_objects_CXX="$p"
13888 else
13889 predep_objects_CXX="$predep_objects_CXX $p"
13891 else
13892 if test -z "$postdep_objects_CXX"; then
13893 postdep_objects_CXX="$p"
13894 else
13895 postdep_objects_CXX="$postdep_objects_CXX $p"
13900 *) ;; # Ignore the rest.
13902 esac
13903 done
13905 # Clean up.
13906 rm -f a.out a.exe
13907 else
13908 echo "libtool.m4: error: problem compiling CXX test program"
13911 $RM -f confest.$objext
13913 # PORTME: override above test on systems where it is broken
13914 case $host_os in
13915 interix[3-9]*)
13916 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13917 # hack all around it, let's just trust "g++" to DTRT.
13918 predep_objects_CXX=
13919 postdep_objects_CXX=
13920 postdeps_CXX=
13923 linux*)
13924 case `$CC -V 2>&1 | sed 5q` in
13925 *Sun\ C*)
13926 # Sun C++ 5.9
13928 # The more standards-conforming stlport4 library is
13929 # incompatible with the Cstd library. Avoid specifying
13930 # it if it's in CXXFLAGS. Ignore libCrun as
13931 # -library=stlport4 depends on it.
13932 case " $CXX $CXXFLAGS " in
13933 *" -library=stlport4 "*)
13934 solaris_use_stlport4=yes
13936 esac
13938 if test "$solaris_use_stlport4" != yes; then
13939 postdeps_CXX='-library=Cstd -library=Crun'
13942 esac
13945 solaris*)
13946 case $cc_basename in
13947 CC*)
13948 # The more standards-conforming stlport4 library is
13949 # incompatible with the Cstd library. Avoid specifying
13950 # it if it's in CXXFLAGS. Ignore libCrun as
13951 # -library=stlport4 depends on it.
13952 case " $CXX $CXXFLAGS " in
13953 *" -library=stlport4 "*)
13954 solaris_use_stlport4=yes
13956 esac
13958 # Adding this requires a known-good setup of shared libraries for
13959 # Sun compiler versions before 5.6, else PIC objects from an old
13960 # archive will be linked into the output, leading to subtle bugs.
13961 if test "$solaris_use_stlport4" != yes; then
13962 postdeps_CXX='-library=Cstd -library=Crun'
13965 esac
13967 esac
13970 case " $postdeps_CXX " in
13971 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13972 esac
13973 compiler_lib_search_dirs_CXX=
13974 if test -n "${compiler_lib_search_path_CXX}"; then
13975 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14008 lt_prog_compiler_wl_CXX=
14009 lt_prog_compiler_pic_CXX=
14010 lt_prog_compiler_static_CXX=
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14015 # C++ specific cases for pic, static, wl, etc.
14016 if test "$GXX" = yes; then
14017 lt_prog_compiler_wl_CXX='-Wl,'
14018 lt_prog_compiler_static_CXX='-static'
14020 case $host_os in
14021 aix*)
14022 # All AIX code is PIC.
14023 if test "$host_cpu" = ia64; then
14024 # AIX 5 now supports IA64 processor
14025 lt_prog_compiler_static_CXX='-Bstatic'
14027 lt_prog_compiler_pic_CXX='-fPIC'
14030 amigaos*)
14031 case $host_cpu in
14032 powerpc)
14033 # see comment about AmigaOS4 .so support
14034 lt_prog_compiler_pic_CXX='-fPIC'
14036 m68k)
14037 # FIXME: we need at least 68020 code to build shared libraries, but
14038 # adding the `-m68020' flag to GCC prevents building anything better,
14039 # like `-m68040'.
14040 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14042 esac
14045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14046 # PIC is the default for these OSes.
14048 mingw* | cygwin* | os2* | pw32* | cegcc*)
14049 # This hack is so that the source file can tell whether it is being
14050 # built for inclusion in a dll (and should export symbols for example).
14051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14052 # (--disable-auto-import) libraries
14053 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14055 darwin* | rhapsody*)
14056 # PIC is the default on this platform
14057 # Common symbols not allowed in MH_DYLIB files
14058 lt_prog_compiler_pic_CXX='-fno-common'
14060 *djgpp*)
14061 # DJGPP does not support shared libraries at all
14062 lt_prog_compiler_pic_CXX=
14064 haiku*)
14065 # PIC is the default for Haiku.
14066 # The "-static" flag exists, but is broken.
14067 lt_prog_compiler_static_CXX=
14069 interix[3-9]*)
14070 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14071 # Instead, we relocate shared libraries at runtime.
14073 sysv4*MP*)
14074 if test -d /usr/nec; then
14075 lt_prog_compiler_pic_CXX=-Kconform_pic
14078 hpux*)
14079 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14080 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14081 # sets the default TLS model and affects inlining.
14082 case $host_cpu in
14083 hppa*64*)
14086 lt_prog_compiler_pic_CXX='-fPIC'
14088 esac
14090 *qnx* | *nto*)
14091 # QNX uses GNU C++, but need to define -shared option too, otherwise
14092 # it will coredump.
14093 lt_prog_compiler_pic_CXX='-fPIC -shared'
14096 lt_prog_compiler_pic_CXX='-fPIC'
14098 esac
14099 else
14100 case $host_os in
14101 aix[4-9]*)
14102 # All AIX code is PIC.
14103 if test "$host_cpu" = ia64; then
14104 # AIX 5 now supports IA64 processor
14105 lt_prog_compiler_static_CXX='-Bstatic'
14106 else
14107 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14110 chorus*)
14111 case $cc_basename in
14112 cxch68*)
14113 # Green Hills C++ Compiler
14114 # _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"
14116 esac
14118 dgux*)
14119 case $cc_basename in
14120 ec++*)
14121 lt_prog_compiler_pic_CXX='-KPIC'
14123 ghcx*)
14124 # Green Hills C++ Compiler
14125 lt_prog_compiler_pic_CXX='-pic'
14129 esac
14131 freebsd* | dragonfly*)
14132 # FreeBSD uses GNU C++
14134 hpux9* | hpux10* | hpux11*)
14135 case $cc_basename in
14136 CC*)
14137 lt_prog_compiler_wl_CXX='-Wl,'
14138 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14139 if test "$host_cpu" != ia64; then
14140 lt_prog_compiler_pic_CXX='+Z'
14143 aCC*)
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14146 case $host_cpu in
14147 hppa*64*|ia64*)
14148 # +Z the default
14151 lt_prog_compiler_pic_CXX='+Z'
14153 esac
14157 esac
14159 interix*)
14160 # This is c89, which is MS Visual C++ (no shared libs)
14161 # Anyone wants to do a port?
14163 irix5* | irix6* | nonstopux*)
14164 case $cc_basename in
14165 CC*)
14166 lt_prog_compiler_wl_CXX='-Wl,'
14167 lt_prog_compiler_static_CXX='-non_shared'
14168 # CC pic flag -KPIC is the default.
14172 esac
14174 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14175 case $cc_basename in
14176 KCC*)
14177 # KAI C++ Compiler
14178 lt_prog_compiler_wl_CXX='--backend -Wl,'
14179 lt_prog_compiler_pic_CXX='-fPIC'
14181 ecpc* )
14182 # old Intel C++ for x86_64 which still supported -KPIC.
14183 lt_prog_compiler_wl_CXX='-Wl,'
14184 lt_prog_compiler_pic_CXX='-KPIC'
14185 lt_prog_compiler_static_CXX='-static'
14187 icpc* )
14188 # Intel C++, used to be incompatible with GCC.
14189 # ICC 10 doesn't accept -KPIC any more.
14190 lt_prog_compiler_wl_CXX='-Wl,'
14191 lt_prog_compiler_pic_CXX='-fPIC'
14192 lt_prog_compiler_static_CXX='-static'
14194 pgCC* | pgcpp*)
14195 # Portland Group C++ compiler
14196 lt_prog_compiler_wl_CXX='-Wl,'
14197 lt_prog_compiler_pic_CXX='-fpic'
14198 lt_prog_compiler_static_CXX='-Bstatic'
14200 cxx*)
14201 # Compaq C++
14202 # Make sure the PIC flag is empty. It appears that all Alpha
14203 # Linux and Compaq Tru64 Unix objects are PIC.
14204 lt_prog_compiler_pic_CXX=
14205 lt_prog_compiler_static_CXX='-non_shared'
14207 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14208 # IBM XL 8.0, 9.0 on PPC and BlueGene
14209 lt_prog_compiler_wl_CXX='-Wl,'
14210 lt_prog_compiler_pic_CXX='-qpic'
14211 lt_prog_compiler_static_CXX='-qstaticlink'
14214 case `$CC -V 2>&1 | sed 5q` in
14215 *Sun\ C*)
14216 # Sun C++ 5.9
14217 lt_prog_compiler_pic_CXX='-KPIC'
14218 lt_prog_compiler_static_CXX='-Bstatic'
14219 lt_prog_compiler_wl_CXX='-Qoption ld '
14221 esac
14223 esac
14225 lynxos*)
14227 m88k*)
14229 mvs*)
14230 case $cc_basename in
14231 cxx*)
14232 lt_prog_compiler_pic_CXX='-W c,exportall'
14236 esac
14238 netbsd*)
14240 *qnx* | *nto*)
14241 # QNX uses GNU C++, but need to define -shared option too, otherwise
14242 # it will coredump.
14243 lt_prog_compiler_pic_CXX='-fPIC -shared'
14245 osf3* | osf4* | osf5*)
14246 case $cc_basename in
14247 KCC*)
14248 lt_prog_compiler_wl_CXX='--backend -Wl,'
14250 RCC*)
14251 # Rational C++ 2.4.1
14252 lt_prog_compiler_pic_CXX='-pic'
14254 cxx*)
14255 # Digital/Compaq C++
14256 lt_prog_compiler_wl_CXX='-Wl,'
14257 # Make sure the PIC flag is empty. It appears that all Alpha
14258 # Linux and Compaq Tru64 Unix objects are PIC.
14259 lt_prog_compiler_pic_CXX=
14260 lt_prog_compiler_static_CXX='-non_shared'
14264 esac
14266 psos*)
14268 solaris*)
14269 case $cc_basename in
14270 CC*)
14271 # Sun C++ 4.2, 5.x and Centerline C++
14272 lt_prog_compiler_pic_CXX='-KPIC'
14273 lt_prog_compiler_static_CXX='-Bstatic'
14274 lt_prog_compiler_wl_CXX='-Qoption ld '
14276 gcx*)
14277 # Green Hills C++ Compiler
14278 lt_prog_compiler_pic_CXX='-PIC'
14282 esac
14284 sunos4*)
14285 case $cc_basename in
14286 CC*)
14287 # Sun C++ 4.x
14288 lt_prog_compiler_pic_CXX='-pic'
14289 lt_prog_compiler_static_CXX='-Bstatic'
14291 lcc*)
14292 # Lucid
14293 lt_prog_compiler_pic_CXX='-pic'
14297 esac
14299 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14300 case $cc_basename in
14301 CC*)
14302 lt_prog_compiler_wl_CXX='-Wl,'
14303 lt_prog_compiler_pic_CXX='-KPIC'
14304 lt_prog_compiler_static_CXX='-Bstatic'
14306 esac
14308 tandem*)
14309 case $cc_basename in
14310 NCC*)
14311 # NonStop-UX NCC 3.20
14312 lt_prog_compiler_pic_CXX='-KPIC'
14316 esac
14318 vxworks*)
14321 lt_prog_compiler_can_build_shared_CXX=no
14323 esac
14326 case $host_os in
14327 # For platforms which do not support PIC, -DPIC is meaningless:
14328 *djgpp*)
14329 lt_prog_compiler_pic_CXX=
14332 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14334 esac
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14336 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14341 # Check to make sure the PIC flag actually works.
14343 if test -n "$lt_prog_compiler_pic_CXX"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14345 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14346 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14348 else
14349 lt_cv_prog_compiler_pic_works_CXX=no
14350 ac_outfile=conftest.$ac_objext
14351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14352 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14353 # Insert the option either (1) after the last *FLAGS variable, or
14354 # (2) before a word containing "conftest.", or (3) at the end.
14355 # Note that $ac_compile itself does not contain backslashes and begins
14356 # with a dollar sign (not a hyphen), so the echo should work correctly.
14357 # The option is referenced via a variable to avoid confusing sed.
14358 lt_compile=`echo "$ac_compile" | $SED \
14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361 -e 's:$: $lt_compiler_flag:'`
14362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14363 (eval "$lt_compile" 2>conftest.err)
14364 ac_status=$?
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 if (exit $ac_status) && test -s "$ac_outfile"; then
14368 # The compiler can only warn and ignore the option if not recognized
14369 # So say no if there are warnings other than the usual output.
14370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14373 lt_cv_prog_compiler_pic_works_CXX=yes
14376 $RM conftest*
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14380 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14382 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14383 case $lt_prog_compiler_pic_CXX in
14384 "" | " "*) ;;
14385 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14386 esac
14387 else
14388 lt_prog_compiler_pic_CXX=
14389 lt_prog_compiler_can_build_shared_CXX=no
14397 # Check to make sure the static flag actually works.
14399 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14401 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14402 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 lt_cv_prog_compiler_static_works_CXX=no
14406 save_LDFLAGS="$LDFLAGS"
14407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14410 # The linker can only warn and ignore the option if not recognized
14411 # So say no if there are warnings
14412 if test -s conftest.err; then
14413 # Append any errors to the config.log.
14414 cat conftest.err 1>&5
14415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14417 if diff conftest.exp conftest.er2 >/dev/null; then
14418 lt_cv_prog_compiler_static_works_CXX=yes
14420 else
14421 lt_cv_prog_compiler_static_works_CXX=yes
14424 $RM -r conftest*
14425 LDFLAGS="$save_LDFLAGS"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14429 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14431 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14433 else
14434 lt_prog_compiler_static_CXX=
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14441 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14442 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 lt_cv_prog_compiler_c_o_CXX=no
14446 $RM -r conftest 2>/dev/null
14447 mkdir conftest
14448 cd conftest
14449 mkdir out
14450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14452 lt_compiler_flag="-o out/conftest2.$ac_objext"
14453 # Insert the option either (1) after the last *FLAGS variable, or
14454 # (2) before a word containing "conftest.", or (3) at the end.
14455 # Note that $ac_compile itself does not contain backslashes and begins
14456 # with a dollar sign (not a hyphen), so the echo should work correctly.
14457 lt_compile=`echo "$ac_compile" | $SED \
14458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14460 -e 's:$: $lt_compiler_flag:'`
14461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14462 (eval "$lt_compile" 2>out/conftest.err)
14463 ac_status=$?
14464 cat out/conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14467 then
14468 # The compiler can only warn and ignore the option if not recognized
14469 # So say no if there are warnings
14470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14473 lt_cv_prog_compiler_c_o_CXX=yes
14476 chmod u+w . 2>&5
14477 $RM conftest*
14478 # SGI C++ compiler will create directory out/ii_files/ for
14479 # template instantiation
14480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14481 $RM out/* && rmdir out
14482 cd ..
14483 $RM -r conftest
14484 $RM conftest*
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14488 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14493 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14494 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 lt_cv_prog_compiler_c_o_CXX=no
14498 $RM -r conftest 2>/dev/null
14499 mkdir conftest
14500 cd conftest
14501 mkdir out
14502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14504 lt_compiler_flag="-o out/conftest2.$ac_objext"
14505 # Insert the option either (1) after the last *FLAGS variable, or
14506 # (2) before a word containing "conftest.", or (3) at the end.
14507 # Note that $ac_compile itself does not contain backslashes and begins
14508 # with a dollar sign (not a hyphen), so the echo should work correctly.
14509 lt_compile=`echo "$ac_compile" | $SED \
14510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14512 -e 's:$: $lt_compiler_flag:'`
14513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14514 (eval "$lt_compile" 2>out/conftest.err)
14515 ac_status=$?
14516 cat out/conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14519 then
14520 # The compiler can only warn and ignore the option if not recognized
14521 # So say no if there are warnings
14522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14525 lt_cv_prog_compiler_c_o_CXX=yes
14528 chmod u+w . 2>&5
14529 $RM conftest*
14530 # SGI C++ compiler will create directory out/ii_files/ for
14531 # template instantiation
14532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14533 $RM out/* && rmdir out
14534 cd ..
14535 $RM -r conftest
14536 $RM conftest*
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14540 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14545 hard_links="nottested"
14546 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14547 # do not overwrite the value of need_locks provided by the user
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14549 $as_echo_n "checking if we can lock with hard links... " >&6; }
14550 hard_links=yes
14551 $RM conftest*
14552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14553 touch conftest.a
14554 ln conftest.a conftest.b 2>&5 || hard_links=no
14555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14557 $as_echo "$hard_links" >&6; }
14558 if test "$hard_links" = no; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14560 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14561 need_locks=warn
14563 else
14564 need_locks=no
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14570 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14573 case $host_os in
14574 aix[4-9]*)
14575 # If we're using GNU nm, then we don't want the "-C" option.
14576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14577 # Also, AIX nm treats weak defined symbols like other global defined
14578 # symbols, whereas GNU nm marks them as "W".
14579 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14580 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'
14581 else
14582 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'
14585 pw32*)
14586 export_symbols_cmds_CXX="$ltdll_cmds"
14588 cygwin* | mingw* | cegcc*)
14589 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'
14592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14594 esac
14595 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14598 $as_echo "$ld_shlibs_CXX" >&6; }
14599 test "$ld_shlibs_CXX" = no && can_build_shared=no
14601 with_gnu_ld_CXX=$with_gnu_ld
14609 # Do we need to explicitly link libc?
14611 case "x$archive_cmds_need_lc_CXX" in
14612 x|xyes)
14613 # Assume -lc should be added
14614 archive_cmds_need_lc_CXX=yes
14616 if test "$enable_shared" = yes && test "$GCC" = yes; then
14617 case $archive_cmds_CXX in
14618 *'~'*)
14619 # FIXME: we may have to deal with multi-command sequences.
14621 '$CC '*)
14622 # Test whether the compiler implicitly links with -lc since on some
14623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14624 # to ld, don't add -lc before -lgcc.
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14626 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14627 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 $RM conftest*
14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14634 (eval $ac_compile) 2>&5
14635 ac_status=$?
14636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14637 test $ac_status = 0; } 2>conftest.err; then
14638 soname=conftest
14639 lib=conftest
14640 libobjs=conftest.$ac_objext
14641 deplibs=
14642 wl=$lt_prog_compiler_wl_CXX
14643 pic_flag=$lt_prog_compiler_pic_CXX
14644 compiler_flags=-v
14645 linker_flags=-v
14646 verstring=
14647 output_objdir=.
14648 libname=conftest
14649 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14650 allow_undefined_flag_CXX=
14651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14652 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14653 ac_status=$?
14654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14655 test $ac_status = 0; }
14656 then
14657 lt_cv_archive_cmds_need_lc_CXX=no
14658 else
14659 lt_cv_archive_cmds_need_lc_CXX=yes
14661 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14662 else
14663 cat conftest.err 1>&5
14665 $RM conftest*
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14669 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14670 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14672 esac
14675 esac
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14741 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14743 library_names_spec=
14744 libname_spec='lib$name'
14745 soname_spec=
14746 shrext_cmds=".so"
14747 postinstall_cmds=
14748 postuninstall_cmds=
14749 finish_cmds=
14750 finish_eval=
14751 shlibpath_var=
14752 shlibpath_overrides_runpath=unknown
14753 version_type=none
14754 dynamic_linker="$host_os ld.so"
14755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14756 need_lib_prefix=unknown
14757 hardcode_into_libs=no
14759 # when you set need_version to no, make sure it does not cause -set_version
14760 # flags to be left without arguments
14761 need_version=unknown
14763 case $host_os in
14764 aix3*)
14765 version_type=linux
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14767 shlibpath_var=LIBPATH
14769 # AIX 3 has no versioning support, so we append a major version to the name.
14770 soname_spec='${libname}${release}${shared_ext}$major'
14773 aix[4-9]*)
14774 version_type=linux
14775 need_lib_prefix=no
14776 need_version=no
14777 hardcode_into_libs=yes
14778 if test "$host_cpu" = ia64; then
14779 # AIX 5 supports IA64
14780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 else
14783 # With GCC up to 2.95.x, collect2 would create an import file
14784 # for dependence libraries. The import file would start with
14785 # the line `#! .'. This would cause the generated library to
14786 # depend on `.', always an invalid library. This was fixed in
14787 # development snapshots of GCC prior to 3.0.
14788 case $host_os in
14789 aix4 | aix4.[01] | aix4.[01].*)
14790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14791 echo ' yes '
14792 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14794 else
14795 can_build_shared=no
14798 esac
14799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14800 # soname into executable. Probably we can add versioning support to
14801 # collect2, so additional links can be useful in future.
14802 if test "$aix_use_runtimelinking" = yes; then
14803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14804 # instead of lib<name>.a to let people know that these are not
14805 # typical AIX shared libraries.
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 else
14808 # We preserve .a as extension for shared libraries through AIX4.2
14809 # and later when we are not doing run time linking.
14810 library_names_spec='${libname}${release}.a $libname.a'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14813 shlibpath_var=LIBPATH
14817 amigaos*)
14818 case $host_cpu in
14819 powerpc)
14820 # Since July 2007 AmigaOS4 officially supports .so libraries.
14821 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824 m68k)
14825 library_names_spec='$libname.ixlibrary $libname.a'
14826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14827 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'
14829 esac
14832 beos*)
14833 library_names_spec='${libname}${shared_ext}'
14834 dynamic_linker="$host_os ld.so"
14835 shlibpath_var=LIBRARY_PATH
14838 bsdi[45]*)
14839 version_type=linux
14840 need_version=no
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14846 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14847 # the default ld.so.conf also contains /usr/contrib/lib and
14848 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14849 # libtool to hard-code these into programs
14852 cygwin* | mingw* | pw32* | cegcc*)
14853 version_type=windows
14854 shrext_cmds=".dll"
14855 need_version=no
14856 need_lib_prefix=no
14858 case $GCC,$host_os in
14859 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14860 library_names_spec='$libname.dll.a'
14861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14862 postinstall_cmds='base_file=`basename \${file}`~
14863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14864 dldir=$destdir/`dirname \$dlpath`~
14865 test -d \$dldir || mkdir -p \$dldir~
14866 $install_prog $dir/$dlname \$dldir/$dlname~
14867 chmod a+x \$dldir/$dlname~
14868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14872 dlpath=$dir/\$dldll~
14873 $RM \$dlpath'
14874 shlibpath_overrides_runpath=yes
14876 case $host_os in
14877 cygwin*)
14878 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14879 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14882 mingw* | cegcc*)
14883 # MinGW DLLs use traditional 'lib' prefix
14884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14886 pw32*)
14887 # pw32 DLLs use 'pw' prefix rather than 'lib'
14888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14890 esac
14894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14896 esac
14897 dynamic_linker='Win32 ld.exe'
14898 # FIXME: first we should search . and the directory the executable is in
14899 shlibpath_var=PATH
14902 darwin* | rhapsody*)
14903 dynamic_linker="$host_os dyld"
14904 version_type=darwin
14905 need_lib_prefix=no
14906 need_version=no
14907 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14908 soname_spec='${libname}${release}${major}$shared_ext'
14909 shlibpath_overrides_runpath=yes
14910 shlibpath_var=DYLD_LIBRARY_PATH
14911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14913 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14916 dgux*)
14917 version_type=linux
14918 need_lib_prefix=no
14919 need_version=no
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 shlibpath_var=LD_LIBRARY_PATH
14925 freebsd* | dragonfly*)
14926 # DragonFly does not have aout. When/if they implement a new
14927 # versioning mechanism, adjust this.
14928 if test -x /usr/bin/objformat; then
14929 objformat=`/usr/bin/objformat`
14930 else
14931 case $host_os in
14932 freebsd[23].*) objformat=aout ;;
14933 *) objformat=elf ;;
14934 esac
14936 version_type=freebsd-$objformat
14937 case $version_type in
14938 freebsd-elf*)
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14940 need_version=no
14941 need_lib_prefix=no
14943 freebsd-*)
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14945 need_version=yes
14947 esac
14948 shlibpath_var=LD_LIBRARY_PATH
14949 case $host_os in
14950 freebsd2.*)
14951 shlibpath_overrides_runpath=yes
14953 freebsd3.[01]* | freebsdelf3.[01]*)
14954 shlibpath_overrides_runpath=yes
14955 hardcode_into_libs=yes
14957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14959 shlibpath_overrides_runpath=no
14960 hardcode_into_libs=yes
14962 *) # from 4.6 on, and DragonFly
14963 shlibpath_overrides_runpath=yes
14964 hardcode_into_libs=yes
14966 esac
14969 gnu*)
14970 version_type=linux
14971 need_lib_prefix=no
14972 need_version=no
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 hardcode_into_libs=yes
14979 haiku*)
14980 version_type=linux
14981 need_lib_prefix=no
14982 need_version=no
14983 dynamic_linker="$host_os runtime_loader"
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 shlibpath_var=LIBRARY_PATH
14987 shlibpath_overrides_runpath=yes
14988 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14989 hardcode_into_libs=yes
14992 hpux9* | hpux10* | hpux11*)
14993 # Give a soname corresponding to the major version so that dld.sl refuses to
14994 # link against other versions.
14995 version_type=sunos
14996 need_lib_prefix=no
14997 need_version=no
14998 case $host_cpu in
14999 ia64*)
15000 shrext_cmds='.so'
15001 hardcode_into_libs=yes
15002 dynamic_linker="$host_os dld.so"
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 if test "X$HPUX_IA64_MODE" = X32; then
15008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15009 else
15010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15014 hppa*64*)
15015 shrext_cmds='.sl'
15016 hardcode_into_libs=yes
15017 dynamic_linker="$host_os dld.sl"
15018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15026 shrext_cmds='.sl'
15027 dynamic_linker="$host_os dld.sl"
15028 shlibpath_var=SHLIB_PATH
15029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 soname_spec='${libname}${release}${shared_ext}$major'
15033 esac
15034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15035 postinstall_cmds='chmod 555 $lib'
15036 # or fails outright, so override atomically:
15037 install_override_mode=555
15040 interix[3-9]*)
15041 version_type=linux
15042 need_lib_prefix=no
15043 need_version=no
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15045 soname_spec='${libname}${release}${shared_ext}$major'
15046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 shlibpath_overrides_runpath=no
15049 hardcode_into_libs=yes
15052 irix5* | irix6* | nonstopux*)
15053 case $host_os in
15054 nonstopux*) version_type=nonstopux ;;
15056 if test "$lt_cv_prog_gnu_ld" = yes; then
15057 version_type=linux
15058 else
15059 version_type=irix
15060 fi ;;
15061 esac
15062 need_lib_prefix=no
15063 need_version=no
15064 soname_spec='${libname}${release}${shared_ext}$major'
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15066 case $host_os in
15067 irix5* | nonstopux*)
15068 libsuff= shlibsuff=
15071 case $LD in # libtool.m4 will add one of these switches to LD
15072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15073 libsuff= shlibsuff= libmagic=32-bit;;
15074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15075 libsuff=32 shlibsuff=N32 libmagic=N32;;
15076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15078 *) libsuff= shlibsuff= libmagic=never-match;;
15079 esac
15081 esac
15082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15083 shlibpath_overrides_runpath=no
15084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15086 hardcode_into_libs=yes
15089 # No shared lib support for Linux oldld, aout, or coff.
15090 linux*oldld* | linux*aout* | linux*coff*)
15091 dynamic_linker=no
15094 # This must be Linux ELF.
15095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15096 version_type=linux
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15102 shlibpath_var=LD_LIBRARY_PATH
15103 shlibpath_overrides_runpath=no
15105 # Some binutils ld are patched to set DT_RUNPATH
15106 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109 lt_cv_shlibpath_overrides_runpath=no
15110 save_LDFLAGS=$LDFLAGS
15111 save_libdir=$libdir
15112 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15113 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15118 main ()
15122 return 0;
15124 _ACEOF
15125 if ac_fn_cxx_try_link "$LINENO"; then :
15126 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15127 lt_cv_shlibpath_overrides_runpath=yes
15130 rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15132 LDFLAGS=$save_LDFLAGS
15133 libdir=$save_libdir
15137 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15139 # This implies no fast_install, which is unacceptable.
15140 # Some rework will be needed to allow for fast_install
15141 # before this can be enabled.
15142 hardcode_into_libs=yes
15144 # Append ld.so.conf contents to the search path
15145 if test -f /etc/ld.so.conf; then
15146 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' ' '`
15147 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15150 # We used to test for /lib/ld.so.1 and disable shared libraries on
15151 # powerpc, because MkLinux only supported shared libraries with the
15152 # GNU dynamic linker. Since this was broken with cross compilers,
15153 # most powerpc-linux boxes support dynamic linking these days and
15154 # people can always --disable-shared, the test was removed, and we
15155 # assume the GNU/Linux dynamic linker is in use.
15156 dynamic_linker='GNU/Linux ld.so'
15159 netbsd*)
15160 version_type=sunos
15161 need_lib_prefix=no
15162 need_version=no
15163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15166 dynamic_linker='NetBSD (a.out) ld.so'
15167 else
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15169 soname_spec='${libname}${release}${shared_ext}$major'
15170 dynamic_linker='NetBSD ld.elf_so'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=yes
15174 hardcode_into_libs=yes
15177 newsos6)
15178 version_type=linux
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=yes
15184 *nto* | *qnx*)
15185 version_type=qnx
15186 need_lib_prefix=no
15187 need_version=no
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath=no
15192 hardcode_into_libs=yes
15193 dynamic_linker='ldqnx.so'
15196 openbsd*)
15197 version_type=sunos
15198 sys_lib_dlsearch_path_spec="/usr/lib"
15199 need_lib_prefix=no
15200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15201 case $host_os in
15202 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15203 *) need_version=no ;;
15204 esac
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15209 case $host_os in
15210 openbsd2.[89] | openbsd2.[89].*)
15211 shlibpath_overrides_runpath=no
15214 shlibpath_overrides_runpath=yes
15216 esac
15217 else
15218 shlibpath_overrides_runpath=yes
15222 os2*)
15223 libname_spec='$name'
15224 shrext_cmds=".dll"
15225 need_lib_prefix=no
15226 library_names_spec='$libname${shared_ext} $libname.a'
15227 dynamic_linker='OS/2 ld.exe'
15228 shlibpath_var=LIBPATH
15231 osf3* | osf4* | osf5*)
15232 version_type=osf
15233 need_lib_prefix=no
15234 need_version=no
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15242 rdos*)
15243 dynamic_linker=no
15246 solaris*)
15247 version_type=linux
15248 need_lib_prefix=no
15249 need_version=no
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=yes
15254 hardcode_into_libs=yes
15255 # ldd complains unless libraries are executable
15256 postinstall_cmds='chmod +x $lib'
15259 sunos4*)
15260 version_type=sunos
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=yes
15265 if test "$with_gnu_ld" = yes; then
15266 need_lib_prefix=no
15268 need_version=yes
15271 sysv4 | sysv4.3*)
15272 version_type=linux
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 case $host_vendor in
15277 sni)
15278 shlibpath_overrides_runpath=no
15279 need_lib_prefix=no
15280 runpath_var=LD_RUN_PATH
15282 siemens)
15283 need_lib_prefix=no
15285 motorola)
15286 need_lib_prefix=no
15287 need_version=no
15288 shlibpath_overrides_runpath=no
15289 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15291 esac
15294 sysv4*MP*)
15295 if test -d /usr/nec ;then
15296 version_type=linux
15297 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15298 soname_spec='$libname${shared_ext}.$major'
15299 shlibpath_var=LD_LIBRARY_PATH
15303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15304 version_type=freebsd-elf
15305 need_lib_prefix=no
15306 need_version=no
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 shlibpath_overrides_runpath=yes
15311 hardcode_into_libs=yes
15312 if test "$with_gnu_ld" = yes; then
15313 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15314 else
15315 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15316 case $host_os in
15317 sco3.2v5*)
15318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15320 esac
15322 sys_lib_dlsearch_path_spec='/usr/lib'
15325 tpf*)
15326 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15327 version_type=linux
15328 need_lib_prefix=no
15329 need_version=no
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=no
15333 hardcode_into_libs=yes
15336 uts4*)
15337 version_type=linux
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15344 dynamic_linker=no
15346 esac
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15348 $as_echo "$dynamic_linker" >&6; }
15349 test "$dynamic_linker" = no && can_build_shared=no
15351 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15352 if test "$GCC" = yes; then
15353 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15356 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15357 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15359 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15360 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15402 hardcode_action_CXX=
15403 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15404 test -n "$runpath_var_CXX" ||
15405 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15407 # We can hardcode non-existent directories.
15408 if test "$hardcode_direct_CXX" != no &&
15409 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15410 # have to relink, otherwise we might link with an installed library
15411 # when we should be linking with a yet-to-be-installed one
15412 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15413 test "$hardcode_minus_L_CXX" != no; then
15414 # Linking always hardcodes the temporary library directory.
15415 hardcode_action_CXX=relink
15416 else
15417 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15418 hardcode_action_CXX=immediate
15420 else
15421 # We cannot hardcode anything, or else we can only hardcode existing
15422 # directories.
15423 hardcode_action_CXX=unsupported
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15426 $as_echo "$hardcode_action_CXX" >&6; }
15428 if test "$hardcode_action_CXX" = relink ||
15429 test "$inherit_rpath_CXX" = yes; then
15430 # Fast installation is not supported
15431 enable_fast_install=no
15432 elif test "$shlibpath_overrides_runpath" = yes ||
15433 test "$enable_shared" = no; then
15434 # Fast installation is not necessary
15435 enable_fast_install=needless
15444 fi # test -n "$compiler"
15446 CC=$lt_save_CC
15447 LDCXX=$LD
15448 LD=$lt_save_LD
15449 GCC=$lt_save_GCC
15450 with_gnu_ld=$lt_save_with_gnu_ld
15451 lt_cv_path_LDCXX=$lt_cv_path_LD
15452 lt_cv_path_LD=$lt_save_path_LD
15453 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15454 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15455 fi # test "$_lt_caught_CXX_error" != yes
15457 ac_ext=c
15458 ac_cpp='$CPP $CPPFLAGS'
15459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15475 ac_config_commands="$ac_config_commands libtool"
15480 # Only expand once:
15486 # For libtool versioning info, format is CURRENT:REVISION:AGE
15487 libtool_VERSION=1:0:0
15490 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15493 if test "${multilib}" = "yes"; then
15494 multilib_arg="--enable-multilib"
15495 else
15496 multilib_arg=
15499 ac_config_files="$ac_config_files Makefile"
15502 if test "x$VTV_SUPPORTED" = "xyes"; then
15503 ac_config_files="$ac_config_files ./Makefile testsuite/Makefile"
15507 cat >confcache <<\_ACEOF
15508 # This file is a shell script that caches the results of configure
15509 # tests run on this system so they can be shared between configure
15510 # scripts and configure runs, see configure's option --config-cache.
15511 # It is not useful on other systems. If it contains results you don't
15512 # want to keep, you may remove or edit it.
15514 # config.status only pays attention to the cache file if you give it
15515 # the --recheck option to rerun configure.
15517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15519 # following values.
15521 _ACEOF
15523 # The following way of writing the cache mishandles newlines in values,
15524 # but we know of no workaround that is simple, portable, and efficient.
15525 # So, we kill variables containing newlines.
15526 # Ultrix sh set writes to stderr and can't be redirected directly,
15527 # and sets the high bit in the cache file unless we assign to the vars.
15529 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15530 eval ac_val=\$$ac_var
15531 case $ac_val in #(
15532 *${as_nl}*)
15533 case $ac_var in #(
15534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15536 esac
15537 case $ac_var in #(
15538 _ | IFS | as_nl) ;; #(
15539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15540 *) { eval $ac_var=; unset $ac_var;} ;;
15541 esac ;;
15542 esac
15543 done
15545 (set) 2>&1 |
15546 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15547 *${as_nl}ac_space=\ *)
15548 # `set' does not quote correctly, so add quotes: double-quote
15549 # substitution turns \\\\ into \\, and sed turns \\ into \.
15550 sed -n \
15551 "s/'/'\\\\''/g;
15552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15553 ;; #(
15555 # `set' quotes correctly as required by POSIX, so do not add quotes.
15556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15558 esac |
15559 sort
15561 sed '
15562 /^ac_cv_env_/b end
15563 t clear
15564 :clear
15565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15566 t end
15567 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15568 :end' >>confcache
15569 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15570 if test -w "$cache_file"; then
15571 test "x$cache_file" != "x/dev/null" &&
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15573 $as_echo "$as_me: updating cache $cache_file" >&6;}
15574 cat confcache >$cache_file
15575 else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15577 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15580 rm -f confcache
15582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15583 # Let make expand exec_prefix.
15584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15586 # Transform confdefs.h into DEFS.
15587 # Protect against shell expansion while executing Makefile rules.
15588 # Protect against Makefile macro expansion.
15590 # If the first sed substitution is executed (which looks for macros that
15591 # take arguments), then branch to the quote section. Otherwise,
15592 # look for a macro that doesn't take arguments.
15593 ac_script='
15594 :mline
15595 /\\$/{
15597 s,\\\n,,
15598 b mline
15600 t clear
15601 :clear
15602 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15603 t quote
15604 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15605 t quote
15606 b any
15607 :quote
15608 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15609 s/\[/\\&/g
15610 s/\]/\\&/g
15611 s/\$/$$/g
15613 :any
15616 s/^\n//
15617 s/\n/ /g
15621 DEFS=`sed -n "$ac_script" confdefs.h`
15624 ac_libobjs=
15625 ac_ltlibobjs=
15626 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15627 # 1. Remove the extension, and $U if already installed.
15628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15629 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15631 # will be set to the directory where LIBOBJS objects are built.
15632 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15633 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15634 done
15635 LIBOBJS=$ac_libobjs
15637 LTLIBOBJS=$ac_ltlibobjs
15640 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15641 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15644 if test -n "$EXEEXT"; then
15645 am__EXEEXT_TRUE=
15646 am__EXEEXT_FALSE='#'
15647 else
15648 am__EXEEXT_TRUE='#'
15649 am__EXEEXT_FALSE=
15652 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15653 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15656 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15657 as_fn_error "conditional \"AMDEP\" was never defined.
15658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15660 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15661 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15665 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15669 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673 : ${CONFIG_STATUS=./config.status}
15674 ac_write_fail=0
15675 ac_clean_files_save=$ac_clean_files
15676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15678 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15679 as_write_fail=0
15680 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15681 #! $SHELL
15682 # Generated by $as_me.
15683 # Run this file to recreate the current configuration.
15684 # Compiler output produced by configure, useful for debugging
15685 # configure, is in config.log if it exists.
15687 debug=false
15688 ac_cs_recheck=false
15689 ac_cs_silent=false
15691 SHELL=\${CONFIG_SHELL-$SHELL}
15692 export SHELL
15693 _ASEOF
15694 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15695 ## -------------------- ##
15696 ## M4sh Initialization. ##
15697 ## -------------------- ##
15699 # Be more Bourne compatible
15700 DUALCASE=1; export DUALCASE # for MKS sh
15701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15702 emulate sh
15703 NULLCMD=:
15704 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15705 # is contrary to our usage. Disable this feature.
15706 alias -g '${1+"$@"}'='"$@"'
15707 setopt NO_GLOB_SUBST
15708 else
15709 case `(set -o) 2>/dev/null` in #(
15710 *posix*) :
15711 set -o posix ;; #(
15712 *) :
15714 esac
15718 as_nl='
15720 export as_nl
15721 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15722 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15723 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15725 # Prefer a ksh shell builtin over an external printf program on Solaris,
15726 # but without wasting forks for bash or zsh.
15727 if test -z "$BASH_VERSION$ZSH_VERSION" \
15728 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15729 as_echo='print -r --'
15730 as_echo_n='print -rn --'
15731 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15732 as_echo='printf %s\n'
15733 as_echo_n='printf %s'
15734 else
15735 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15736 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15737 as_echo_n='/usr/ucb/echo -n'
15738 else
15739 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15740 as_echo_n_body='eval
15741 arg=$1;
15742 case $arg in #(
15743 *"$as_nl"*)
15744 expr "X$arg" : "X\\(.*\\)$as_nl";
15745 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15746 esac;
15747 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15749 export as_echo_n_body
15750 as_echo_n='sh -c $as_echo_n_body as_echo'
15752 export as_echo_body
15753 as_echo='sh -c $as_echo_body as_echo'
15756 # The user is always right.
15757 if test "${PATH_SEPARATOR+set}" != set; then
15758 PATH_SEPARATOR=:
15759 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15760 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15761 PATH_SEPARATOR=';'
15766 # IFS
15767 # We need space, tab and new line, in precisely that order. Quoting is
15768 # there to prevent editors from complaining about space-tab.
15769 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15770 # splitting by setting IFS to empty value.)
15771 IFS=" "" $as_nl"
15773 # Find who we are. Look in the path if we contain no directory separator.
15774 case $0 in #((
15775 *[\\/]* ) as_myself=$0 ;;
15776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777 for as_dir in $PATH
15779 IFS=$as_save_IFS
15780 test -z "$as_dir" && as_dir=.
15781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15782 done
15783 IFS=$as_save_IFS
15786 esac
15787 # We did not find ourselves, most probably we were run as `sh COMMAND'
15788 # in which case we are not to be found in the path.
15789 if test "x$as_myself" = x; then
15790 as_myself=$0
15792 if test ! -f "$as_myself"; then
15793 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15794 exit 1
15797 # Unset variables that we do not need and which cause bugs (e.g. in
15798 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15799 # suppresses any "Segmentation fault" message there. '((' could
15800 # trigger a bug in pdksh 5.2.14.
15801 for as_var in BASH_ENV ENV MAIL MAILPATH
15802 do eval test x\${$as_var+set} = xset \
15803 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15804 done
15805 PS1='$ '
15806 PS2='> '
15807 PS4='+ '
15809 # NLS nuisances.
15810 LC_ALL=C
15811 export LC_ALL
15812 LANGUAGE=C
15813 export LANGUAGE
15815 # CDPATH.
15816 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15819 # as_fn_error ERROR [LINENO LOG_FD]
15820 # ---------------------------------
15821 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15822 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15823 # script with status $?, using 1 if that was 0.
15824 as_fn_error ()
15826 as_status=$?; test $as_status -eq 0 && as_status=1
15827 if test "$3"; then
15828 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15829 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15831 $as_echo "$as_me: error: $1" >&2
15832 as_fn_exit $as_status
15833 } # as_fn_error
15836 # as_fn_set_status STATUS
15837 # -----------------------
15838 # Set $? to STATUS, without forking.
15839 as_fn_set_status ()
15841 return $1
15842 } # as_fn_set_status
15844 # as_fn_exit STATUS
15845 # -----------------
15846 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15847 as_fn_exit ()
15849 set +e
15850 as_fn_set_status $1
15851 exit $1
15852 } # as_fn_exit
15854 # as_fn_unset VAR
15855 # ---------------
15856 # Portably unset VAR.
15857 as_fn_unset ()
15859 { eval $1=; unset $1;}
15861 as_unset=as_fn_unset
15862 # as_fn_append VAR VALUE
15863 # ----------------------
15864 # Append the text in VALUE to the end of the definition contained in VAR. Take
15865 # advantage of any shell optimizations that allow amortized linear growth over
15866 # repeated appends, instead of the typical quadratic growth present in naive
15867 # implementations.
15868 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15869 eval 'as_fn_append ()
15871 eval $1+=\$2
15873 else
15874 as_fn_append ()
15876 eval $1=\$$1\$2
15878 fi # as_fn_append
15880 # as_fn_arith ARG...
15881 # ------------------
15882 # Perform arithmetic evaluation on the ARGs, and store the result in the
15883 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15884 # must be portable across $(()) and expr.
15885 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15886 eval 'as_fn_arith ()
15888 as_val=$(( $* ))
15890 else
15891 as_fn_arith ()
15893 as_val=`expr "$@" || test $? -eq 1`
15895 fi # as_fn_arith
15898 if expr a : '\(a\)' >/dev/null 2>&1 &&
15899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15900 as_expr=expr
15901 else
15902 as_expr=false
15905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15906 as_basename=basename
15907 else
15908 as_basename=false
15911 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15912 as_dirname=dirname
15913 else
15914 as_dirname=false
15917 as_me=`$as_basename -- "$0" ||
15918 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15919 X"$0" : 'X\(//\)$' \| \
15920 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15921 $as_echo X/"$0" |
15922 sed '/^.*\/\([^/][^/]*\)\/*$/{
15923 s//\1/
15926 /^X\/\(\/\/\)$/{
15927 s//\1/
15930 /^X\/\(\/\).*/{
15931 s//\1/
15934 s/.*/./; q'`
15936 # Avoid depending upon Character Ranges.
15937 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15938 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15939 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15940 as_cr_digits='0123456789'
15941 as_cr_alnum=$as_cr_Letters$as_cr_digits
15943 ECHO_C= ECHO_N= ECHO_T=
15944 case `echo -n x` in #(((((
15945 -n*)
15946 case `echo 'xy\c'` in
15947 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15948 xy) ECHO_C='\c';;
15949 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15950 ECHO_T=' ';;
15951 esac;;
15953 ECHO_N='-n';;
15954 esac
15956 rm -f conf$$ conf$$.exe conf$$.file
15957 if test -d conf$$.dir; then
15958 rm -f conf$$.dir/conf$$.file
15959 else
15960 rm -f conf$$.dir
15961 mkdir conf$$.dir 2>/dev/null
15963 if (echo >conf$$.file) 2>/dev/null; then
15964 if ln -s conf$$.file conf$$ 2>/dev/null; then
15965 as_ln_s='ln -s'
15966 # ... but there are two gotchas:
15967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15969 # In both cases, we have to default to `cp -p'.
15970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15971 as_ln_s='cp -p'
15972 elif ln conf$$.file conf$$ 2>/dev/null; then
15973 as_ln_s=ln
15974 else
15975 as_ln_s='cp -p'
15977 else
15978 as_ln_s='cp -p'
15980 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15981 rmdir conf$$.dir 2>/dev/null
15984 # as_fn_mkdir_p
15985 # -------------
15986 # Create "$as_dir" as a directory, including parents if necessary.
15987 as_fn_mkdir_p ()
15990 case $as_dir in #(
15991 -*) as_dir=./$as_dir;;
15992 esac
15993 test -d "$as_dir" || eval $as_mkdir_p || {
15994 as_dirs=
15995 while :; do
15996 case $as_dir in #(
15997 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15998 *) as_qdir=$as_dir;;
15999 esac
16000 as_dirs="'$as_qdir' $as_dirs"
16001 as_dir=`$as_dirname -- "$as_dir" ||
16002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16003 X"$as_dir" : 'X\(//\)[^/]' \| \
16004 X"$as_dir" : 'X\(//\)$' \| \
16005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16006 $as_echo X"$as_dir" |
16007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16008 s//\1/
16011 /^X\(\/\/\)[^/].*/{
16012 s//\1/
16015 /^X\(\/\/\)$/{
16016 s//\1/
16019 /^X\(\/\).*/{
16020 s//\1/
16023 s/.*/./; q'`
16024 test -d "$as_dir" && break
16025 done
16026 test -z "$as_dirs" || eval "mkdir $as_dirs"
16027 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16030 } # as_fn_mkdir_p
16031 if mkdir -p . 2>/dev/null; then
16032 as_mkdir_p='mkdir -p "$as_dir"'
16033 else
16034 test -d ./-p && rmdir ./-p
16035 as_mkdir_p=false
16038 if test -x / >/dev/null 2>&1; then
16039 as_test_x='test -x'
16040 else
16041 if ls -dL / >/dev/null 2>&1; then
16042 as_ls_L_option=L
16043 else
16044 as_ls_L_option=
16046 as_test_x='
16047 eval sh -c '\''
16048 if test -d "$1"; then
16049 test -d "$1/.";
16050 else
16051 case $1 in #(
16052 -*)set "./$1";;
16053 esac;
16054 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16055 ???[sx]*):;;*)false;;esac;fi
16056 '\'' sh
16059 as_executable_p=$as_test_x
16061 # Sed expression to map a string onto a valid CPP name.
16062 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16064 # Sed expression to map a string onto a valid variable name.
16065 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16068 exec 6>&1
16069 ## ----------------------------------- ##
16070 ## Main body of $CONFIG_STATUS script. ##
16071 ## ----------------------------------- ##
16072 _ASEOF
16073 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16076 # Save the log message, to keep $0 and so on meaningful, and to
16077 # report actual input values of CONFIG_FILES etc. instead of their
16078 # values after options handling.
16079 ac_log="
16080 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16081 generated by GNU Autoconf 2.64. Invocation command line was
16083 CONFIG_FILES = $CONFIG_FILES
16084 CONFIG_HEADERS = $CONFIG_HEADERS
16085 CONFIG_LINKS = $CONFIG_LINKS
16086 CONFIG_COMMANDS = $CONFIG_COMMANDS
16087 $ $0 $@
16089 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16092 _ACEOF
16094 case $ac_config_files in *"
16095 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16096 esac
16100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 # Files that config.status was made for.
16102 config_files="$ac_config_files"
16103 config_commands="$ac_config_commands"
16105 _ACEOF
16107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16108 ac_cs_usage="\
16109 \`$as_me' instantiates files and other configuration actions
16110 from templates according to the current configuration. Unless the files
16111 and actions are specified as TAGs, all are instantiated by default.
16113 Usage: $0 [OPTION]... [TAG]...
16115 -h, --help print this help, then exit
16116 -V, --version print version number and configuration settings, then exit
16117 -q, --quiet, --silent
16118 do not print progress messages
16119 -d, --debug don't remove temporary files
16120 --recheck update $as_me by reconfiguring in the same conditions
16121 --file=FILE[:TEMPLATE]
16122 instantiate the configuration file FILE
16124 Configuration files:
16125 $config_files
16127 Configuration commands:
16128 $config_commands
16130 Report bugs to the package provider.
16131 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16132 General help using GNU software: <http://www.gnu.org/gethelp/>."
16134 _ACEOF
16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136 ac_cs_version="\\
16137 GNU Vtable Verification Runtime Library config.status 1.0
16138 configured by $0, generated by GNU Autoconf 2.64,
16139 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16141 Copyright (C) 2009 Free Software Foundation, Inc.
16142 This config.status script is free software; the Free Software Foundation
16143 gives unlimited permission to copy, distribute and modify it."
16145 ac_pwd='$ac_pwd'
16146 srcdir='$srcdir'
16147 INSTALL='$INSTALL'
16148 MKDIR_P='$MKDIR_P'
16149 AWK='$AWK'
16150 test -n "\$AWK" || AWK=awk
16151 _ACEOF
16153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16154 # The default lists apply if the user does not specify any file.
16155 ac_need_defaults=:
16156 while test $# != 0
16158 case $1 in
16159 --*=*)
16160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16162 ac_shift=:
16165 ac_option=$1
16166 ac_optarg=$2
16167 ac_shift=shift
16169 esac
16171 case $ac_option in
16172 # Handling of the options.
16173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16174 ac_cs_recheck=: ;;
16175 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16176 $as_echo "$ac_cs_version"; exit ;;
16177 --debug | --debu | --deb | --de | --d | -d )
16178 debug=: ;;
16179 --file | --fil | --fi | --f )
16180 $ac_shift
16181 case $ac_optarg in
16182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16183 esac
16184 as_fn_append CONFIG_FILES " '$ac_optarg'"
16185 ac_need_defaults=false;;
16186 --he | --h | --help | --hel | -h )
16187 $as_echo "$ac_cs_usage"; exit ;;
16188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16190 ac_cs_silent=: ;;
16192 # This is an error.
16193 -*) as_fn_error "unrecognized option: \`$1'
16194 Try \`$0 --help' for more information." ;;
16196 *) as_fn_append ac_config_targets " $1"
16197 ac_need_defaults=false ;;
16199 esac
16200 shift
16201 done
16203 ac_configure_extra_args=
16205 if $ac_cs_silent; then
16206 exec 6>/dev/null
16207 ac_configure_extra_args="$ac_configure_extra_args --silent"
16210 _ACEOF
16211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212 if \$ac_cs_recheck; then
16213 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16214 shift
16215 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16216 CONFIG_SHELL='$SHELL'
16217 export CONFIG_SHELL
16218 exec "\$@"
16221 _ACEOF
16222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16223 exec 5>>config.log
16225 echo
16226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16227 ## Running $as_me. ##
16228 _ASBOX
16229 $as_echo "$ac_log"
16230 } >&5
16232 _ACEOF
16233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16235 # INIT-COMMANDS
16238 srcdir="$srcdir"
16239 host="$host"
16240 target="$target"
16241 with_multisubdir="$with_multisubdir"
16242 with_multisrctop="$with_multisrctop"
16243 with_target_subdir="$with_target_subdir"
16244 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16245 multi_basedir="$multi_basedir"
16246 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16247 CC="$CC"
16248 CXX="$CXX"
16249 GFORTRAN="$GFORTRAN"
16250 GCJ="$GCJ"
16251 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16254 # The HP-UX ksh and POSIX shell print the target directory to stdout
16255 # if CDPATH is set.
16256 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16258 sed_quote_subst='$sed_quote_subst'
16259 double_quote_subst='$double_quote_subst'
16260 delay_variable_subst='$delay_variable_subst'
16261 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16262 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16263 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16264 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16265 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16266 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16267 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16268 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16269 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16270 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16271 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16272 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16273 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16274 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16275 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16276 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16277 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16278 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16279 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16280 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16281 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16282 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16283 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16284 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16285 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16286 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16287 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16288 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16289 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16290 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16291 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16292 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16293 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16294 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16295 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16296 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16297 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16298 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16299 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16300 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16301 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16302 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16303 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16304 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16305 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16306 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16307 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16308 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16309 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"`'
16310 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16311 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16312 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16313 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16314 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16315 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16316 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16317 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16318 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16319 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16320 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16321 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16322 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16323 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16324 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16325 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16326 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16327 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16328 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16329 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16330 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16331 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16332 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16333 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16334 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16335 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16336 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16337 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16338 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16339 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16340 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16341 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16342 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16343 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16344 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16345 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16346 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16347 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16348 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16349 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16350 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16351 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16352 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16353 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16354 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16355 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16356 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16357 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16358 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16359 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16360 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16361 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16362 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16363 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16364 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16365 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16366 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16367 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16368 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16369 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16370 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16371 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16372 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16373 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16374 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16375 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16376 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16377 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16378 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16379 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16380 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16381 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16382 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16383 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16384 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16385 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16386 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16387 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16388 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16389 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16390 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16391 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16392 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16393 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16394 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16395 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16396 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16397 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16398 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16399 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16400 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16401 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16402 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16403 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16404 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16405 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16406 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16407 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16408 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16409 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16410 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16411 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16412 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16413 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16414 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16415 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16416 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16417 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16418 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16419 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16420 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16421 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16422 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16423 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16424 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16425 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16426 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16427 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16428 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16429 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16430 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16431 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16432 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16433 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16434 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16435 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16437 LTCC='$LTCC'
16438 LTCFLAGS='$LTCFLAGS'
16439 compiler='$compiler_DEFAULT'
16441 # A function that is used when there is no print builtin or printf.
16442 func_fallback_echo ()
16444 eval 'cat <<_LTECHO_EOF
16446 _LTECHO_EOF'
16449 # Quote evaled strings.
16450 for var in SHELL \
16451 ECHO \
16452 SED \
16453 GREP \
16454 EGREP \
16455 FGREP \
16456 LD \
16457 NM \
16458 LN_S \
16459 lt_SP2NL \
16460 lt_NL2SP \
16461 reload_flag \
16462 OBJDUMP \
16463 deplibs_check_method \
16464 file_magic_cmd \
16465 AR \
16466 AR_FLAGS \
16467 STRIP \
16468 RANLIB \
16469 CC \
16470 CFLAGS \
16471 compiler \
16472 lt_cv_sys_global_symbol_pipe \
16473 lt_cv_sys_global_symbol_to_cdecl \
16474 lt_cv_sys_global_symbol_to_c_name_address \
16475 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16476 lt_prog_compiler_no_builtin_flag \
16477 lt_prog_compiler_wl \
16478 lt_prog_compiler_pic \
16479 lt_prog_compiler_static \
16480 lt_cv_prog_compiler_c_o \
16481 need_locks \
16482 DSYMUTIL \
16483 NMEDIT \
16484 LIPO \
16485 OTOOL \
16486 OTOOL64 \
16487 shrext_cmds \
16488 export_dynamic_flag_spec \
16489 whole_archive_flag_spec \
16490 compiler_needs_object \
16491 with_gnu_ld \
16492 allow_undefined_flag \
16493 no_undefined_flag \
16494 hardcode_libdir_flag_spec \
16495 hardcode_libdir_flag_spec_ld \
16496 hardcode_libdir_separator \
16497 fix_srcfile_path \
16498 exclude_expsyms \
16499 include_expsyms \
16500 file_list_spec \
16501 variables_saved_for_relink \
16502 libname_spec \
16503 library_names_spec \
16504 soname_spec \
16505 install_override_mode \
16506 finish_eval \
16507 old_striplib \
16508 striplib \
16509 compiler_lib_search_dirs \
16510 predep_objects \
16511 postdep_objects \
16512 predeps \
16513 postdeps \
16514 compiler_lib_search_path \
16515 LD_CXX \
16516 reload_flag_CXX \
16517 compiler_CXX \
16518 lt_prog_compiler_no_builtin_flag_CXX \
16519 lt_prog_compiler_wl_CXX \
16520 lt_prog_compiler_pic_CXX \
16521 lt_prog_compiler_static_CXX \
16522 lt_cv_prog_compiler_c_o_CXX \
16523 export_dynamic_flag_spec_CXX \
16524 whole_archive_flag_spec_CXX \
16525 compiler_needs_object_CXX \
16526 with_gnu_ld_CXX \
16527 allow_undefined_flag_CXX \
16528 no_undefined_flag_CXX \
16529 hardcode_libdir_flag_spec_CXX \
16530 hardcode_libdir_flag_spec_ld_CXX \
16531 hardcode_libdir_separator_CXX \
16532 fix_srcfile_path_CXX \
16533 exclude_expsyms_CXX \
16534 include_expsyms_CXX \
16535 file_list_spec_CXX \
16536 compiler_lib_search_dirs_CXX \
16537 predep_objects_CXX \
16538 postdep_objects_CXX \
16539 predeps_CXX \
16540 postdeps_CXX \
16541 compiler_lib_search_path_CXX; do
16542 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16543 *[\\\\\\\`\\"\\\$]*)
16544 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16547 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16549 esac
16550 done
16552 # Double-quote double-evaled strings.
16553 for var in reload_cmds \
16554 old_postinstall_cmds \
16555 old_postuninstall_cmds \
16556 old_archive_cmds \
16557 extract_expsyms_cmds \
16558 old_archive_from_new_cmds \
16559 old_archive_from_expsyms_cmds \
16560 archive_cmds \
16561 archive_expsym_cmds \
16562 module_cmds \
16563 module_expsym_cmds \
16564 export_symbols_cmds \
16565 prelink_cmds \
16566 postinstall_cmds \
16567 postuninstall_cmds \
16568 finish_cmds \
16569 sys_lib_search_path_spec \
16570 sys_lib_dlsearch_path_spec \
16571 reload_cmds_CXX \
16572 old_archive_cmds_CXX \
16573 old_archive_from_new_cmds_CXX \
16574 old_archive_from_expsyms_cmds_CXX \
16575 archive_cmds_CXX \
16576 archive_expsym_cmds_CXX \
16577 module_cmds_CXX \
16578 module_expsym_cmds_CXX \
16579 export_symbols_cmds_CXX \
16580 prelink_cmds_CXX; do
16581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16582 *[\\\\\\\`\\"\\\$]*)
16583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16588 esac
16589 done
16591 ac_aux_dir='$ac_aux_dir'
16592 xsi_shell='$xsi_shell'
16593 lt_shell_append='$lt_shell_append'
16595 # See if we are running on zsh, and set the options which allow our
16596 # commands through without removal of \ escapes INIT.
16597 if test -n "\${ZSH_VERSION+set}" ; then
16598 setopt NO_GLOB_SUBST
16602 PACKAGE='$PACKAGE'
16603 VERSION='$VERSION'
16604 TIMESTAMP='$TIMESTAMP'
16605 RM='$RM'
16606 ofile='$ofile'
16613 _ACEOF
16615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16617 # Handling of arguments.
16618 for ac_config_target in $ac_config_targets
16620 case $ac_config_target in
16621 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16623 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16624 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16625 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
16626 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16628 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16629 esac
16630 done
16633 # If the user did not use the arguments to specify the items to instantiate,
16634 # then the envvar interface is used. Set only those that are not.
16635 # We use the long form for the default assignment because of an extremely
16636 # bizarre bug on SunOS 4.1.3.
16637 if $ac_need_defaults; then
16638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16642 # Have a temporary directory for convenience. Make it in the build tree
16643 # simply because there is no reason against having it here, and in addition,
16644 # creating and moving files from /tmp can sometimes cause problems.
16645 # Hook for its removal unless debugging.
16646 # Note that there is a small window in which the directory will not be cleaned:
16647 # after its creation but before its name has been assigned to `$tmp'.
16648 $debug ||
16650 tmp=
16651 trap 'exit_status=$?
16652 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16654 trap 'as_fn_exit 1' 1 2 13 15
16656 # Create a (secure) tmp directory for tmp files.
16659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16660 test -n "$tmp" && test -d "$tmp"
16661 } ||
16663 tmp=./conf$$-$RANDOM
16664 (umask 077 && mkdir "$tmp")
16665 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16667 # Set up the scripts for CONFIG_FILES section.
16668 # No need to generate them if there are no CONFIG_FILES.
16669 # This happens for instance with `./config.status config.h'.
16670 if test -n "$CONFIG_FILES"; then
16673 ac_cr=`echo X | tr X '\015'`
16674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16675 # But we know of no other shell where ac_cr would be empty at this
16676 # point, so we can use a bashism as a fallback.
16677 if test "x$ac_cr" = x; then
16678 eval ac_cr=\$\'\\r\'
16680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16682 ac_cs_awk_cr='\r'
16683 else
16684 ac_cs_awk_cr=$ac_cr
16687 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16688 _ACEOF
16692 echo "cat >conf$$subs.awk <<_ACEOF" &&
16693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16694 echo "_ACEOF"
16695 } >conf$$subs.sh ||
16696 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16698 ac_delim='%!_!# '
16699 for ac_last_try in false false false false false :; do
16700 . ./conf$$subs.sh ||
16701 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16704 if test $ac_delim_n = $ac_delim_num; then
16705 break
16706 elif $ac_last_try; then
16707 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16708 else
16709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16711 done
16712 rm -f conf$$subs.sh
16714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16715 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16716 _ACEOF
16717 sed -n '
16719 s/^/S["/; s/!.*/"]=/
16722 s/^[^!]*!//
16723 :repl
16724 t repl
16725 s/'"$ac_delim"'$//
16726 t delim
16729 s/\(.\{148\}\).*/\1/
16730 t more1
16731 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16734 b repl
16735 :more1
16736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16739 s/.\{148\}//
16740 t nl
16741 :delim
16743 s/\(.\{148\}\).*/\1/
16744 t more2
16745 s/["\\]/\\&/g; s/^/"/; s/$/"/
16748 :more2
16749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16752 s/.\{148\}//
16753 t delim
16754 ' <conf$$subs.awk | sed '
16755 /^[^""]/{
16757 s/\n//
16759 ' >>$CONFIG_STATUS || ac_write_fail=1
16760 rm -f conf$$subs.awk
16761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16762 _ACAWK
16763 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16764 for (key in S) S_is_set[key] = 1
16765 FS = "\a"
16769 line = $ 0
16770 nfields = split(line, field, "@")
16771 substed = 0
16772 len = length(field[1])
16773 for (i = 2; i < nfields; i++) {
16774 key = field[i]
16775 keylen = length(key)
16776 if (S_is_set[key]) {
16777 value = S[key]
16778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16779 len += length(value) + length(field[++i])
16780 substed = 1
16781 } else
16782 len += 1 + keylen
16785 print line
16788 _ACAWK
16789 _ACEOF
16790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16793 else
16795 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16796 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16797 _ACEOF
16799 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16800 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16801 # trailing colons and then remove the whole line if VPATH becomes empty
16802 # (actually we leave an empty line to preserve line numbers).
16803 if test "x$srcdir" = x.; then
16804 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16805 s/:*\$(srcdir):*/:/
16806 s/:*\${srcdir}:*/:/
16807 s/:*@srcdir@:*/:/
16808 s/^\([^=]*=[ ]*\):*/\1/
16809 s/:*$//
16810 s/^[^=]*=[ ]*$//
16814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16815 fi # test -n "$CONFIG_FILES"
16818 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16819 shift
16820 for ac_tag
16822 case $ac_tag in
16823 :[FHLC]) ac_mode=$ac_tag; continue;;
16824 esac
16825 case $ac_mode$ac_tag in
16826 :[FHL]*:*);;
16827 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16828 :[FH]-) ac_tag=-:-;;
16829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16830 esac
16831 ac_save_IFS=$IFS
16832 IFS=:
16833 set x $ac_tag
16834 IFS=$ac_save_IFS
16835 shift
16836 ac_file=$1
16837 shift
16839 case $ac_mode in
16840 :L) ac_source=$1;;
16841 :[FH])
16842 ac_file_inputs=
16843 for ac_f
16845 case $ac_f in
16846 -) ac_f="$tmp/stdin";;
16847 *) # Look for the file first in the build tree, then in the source tree
16848 # (if the path is not absolute). The absolute path cannot be DOS-style,
16849 # because $ac_f cannot contain `:'.
16850 test -f "$ac_f" ||
16851 case $ac_f in
16852 [\\/$]*) false;;
16853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16854 esac ||
16855 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16856 esac
16857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16858 as_fn_append ac_file_inputs " '$ac_f'"
16859 done
16861 # Let's still pretend it is `configure' which instantiates (i.e., don't
16862 # use $as_me), people would be surprised to read:
16863 # /* config.h. Generated by config.status. */
16864 configure_input='Generated from '`
16865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16866 `' by configure.'
16867 if test x"$ac_file" != x-; then
16868 configure_input="$ac_file. $configure_input"
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16870 $as_echo "$as_me: creating $ac_file" >&6;}
16872 # Neutralize special characters interpreted by sed in replacement strings.
16873 case $configure_input in #(
16874 *\&* | *\|* | *\\* )
16875 ac_sed_conf_input=`$as_echo "$configure_input" |
16876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16877 *) ac_sed_conf_input=$configure_input;;
16878 esac
16880 case $ac_tag in
16881 *:-:* | *:-) cat >"$tmp/stdin" \
16882 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16883 esac
16885 esac
16887 ac_dir=`$as_dirname -- "$ac_file" ||
16888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16889 X"$ac_file" : 'X\(//\)[^/]' \| \
16890 X"$ac_file" : 'X\(//\)$' \| \
16891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16892 $as_echo X"$ac_file" |
16893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16894 s//\1/
16897 /^X\(\/\/\)[^/].*/{
16898 s//\1/
16901 /^X\(\/\/\)$/{
16902 s//\1/
16905 /^X\(\/\).*/{
16906 s//\1/
16909 s/.*/./; q'`
16910 as_dir="$ac_dir"; as_fn_mkdir_p
16911 ac_builddir=.
16913 case "$ac_dir" in
16914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16917 # A ".." for each directory in $ac_dir_suffix.
16918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16919 case $ac_top_builddir_sub in
16920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16922 esac ;;
16923 esac
16924 ac_abs_top_builddir=$ac_pwd
16925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16926 # for backward compatibility:
16927 ac_top_builddir=$ac_top_build_prefix
16929 case $srcdir in
16930 .) # We are building in place.
16931 ac_srcdir=.
16932 ac_top_srcdir=$ac_top_builddir_sub
16933 ac_abs_top_srcdir=$ac_pwd ;;
16934 [\\/]* | ?:[\\/]* ) # Absolute name.
16935 ac_srcdir=$srcdir$ac_dir_suffix;
16936 ac_top_srcdir=$srcdir
16937 ac_abs_top_srcdir=$srcdir ;;
16938 *) # Relative name.
16939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16940 ac_top_srcdir=$ac_top_build_prefix$srcdir
16941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16942 esac
16943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16946 case $ac_mode in
16949 # CONFIG_FILE
16952 case $INSTALL in
16953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16955 esac
16956 ac_MKDIR_P=$MKDIR_P
16957 case $MKDIR_P in
16958 [\\/$]* | ?:[\\/]* ) ;;
16959 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16960 esac
16961 _ACEOF
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964 # If the template does not know about datarootdir, expand it.
16965 # FIXME: This hack should be removed a few years after 2.60.
16966 ac_datarootdir_hack=; ac_datarootdir_seen=
16967 ac_sed_dataroot='
16968 /datarootdir/ {
16972 /@datadir@/p
16973 /@docdir@/p
16974 /@infodir@/p
16975 /@localedir@/p
16976 /@mandir@/p'
16977 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16978 *datarootdir*) ac_datarootdir_seen=yes;;
16979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16981 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16982 _ACEOF
16983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16984 ac_datarootdir_hack='
16985 s&@datadir@&$datadir&g
16986 s&@docdir@&$docdir&g
16987 s&@infodir@&$infodir&g
16988 s&@localedir@&$localedir&g
16989 s&@mandir@&$mandir&g
16990 s&\\\${datarootdir}&$datarootdir&g' ;;
16991 esac
16992 _ACEOF
16994 # Neutralize VPATH when `$srcdir' = `.'.
16995 # Shell code in configure.ac might set extrasub.
16996 # FIXME: do we really want to maintain this feature?
16997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16998 ac_sed_extra="$ac_vpsub
16999 $extrasub
17000 _ACEOF
17001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17004 s|@configure_input@|$ac_sed_conf_input|;t t
17005 s&@top_builddir@&$ac_top_builddir_sub&;t t
17006 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17007 s&@srcdir@&$ac_srcdir&;t t
17008 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17009 s&@top_srcdir@&$ac_top_srcdir&;t t
17010 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17011 s&@builddir@&$ac_builddir&;t t
17012 s&@abs_builddir@&$ac_abs_builddir&;t t
17013 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17014 s&@INSTALL@&$ac_INSTALL&;t t
17015 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17016 $ac_datarootdir_hack
17018 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17019 || as_fn_error "could not create $ac_file" "$LINENO" 5
17021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17022 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17025 which seems to be undefined. Please make sure it is defined." >&5
17026 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17027 which seems to be undefined. Please make sure it is defined." >&2;}
17029 rm -f "$tmp/stdin"
17030 case $ac_file in
17031 -) cat "$tmp/out" && rm -f "$tmp/out";;
17032 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17033 esac \
17034 || as_fn_error "could not create $ac_file" "$LINENO" 5
17038 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17039 $as_echo "$as_me: executing $ac_file commands" >&6;}
17041 esac
17044 case $ac_file$ac_mode in
17045 "default-1":C)
17046 # Only add multilib support code if we just rebuilt the top-level
17047 # Makefile.
17048 case " $CONFIG_FILES " in
17049 *" Makefile "*)
17050 ac_file=Makefile . ${multi_basedir}/config-ml.in
17052 esac ;;
17053 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17054 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17055 # are listed without --file. Let's play safe and only enable the eval
17056 # if we detect the quoting.
17057 case $CONFIG_FILES in
17058 *\'*) eval set x "$CONFIG_FILES" ;;
17059 *) set x $CONFIG_FILES ;;
17060 esac
17061 shift
17062 for mf
17064 # Strip MF so we end up with the name of the file.
17065 mf=`echo "$mf" | sed -e 's/:.*$//'`
17066 # Check whether this is an Automake generated Makefile or not.
17067 # We used to match only the files named `Makefile.in', but
17068 # some people rename them; so instead we look at the file content.
17069 # Grep'ing the first line is not enough: some people post-process
17070 # each Makefile.in and add a new line on top of each file to say so.
17071 # Grep'ing the whole file is not good either: AIX grep has a line
17072 # limit of 2048, but all sed's we know have understand at least 4000.
17073 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17074 dirpart=`$as_dirname -- "$mf" ||
17075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17076 X"$mf" : 'X\(//\)[^/]' \| \
17077 X"$mf" : 'X\(//\)$' \| \
17078 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17079 $as_echo X"$mf" |
17080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17081 s//\1/
17084 /^X\(\/\/\)[^/].*/{
17085 s//\1/
17088 /^X\(\/\/\)$/{
17089 s//\1/
17092 /^X\(\/\).*/{
17093 s//\1/
17096 s/.*/./; q'`
17097 else
17098 continue
17100 # Extract the definition of DEPDIR, am__include, and am__quote
17101 # from the Makefile without running `make'.
17102 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17103 test -z "$DEPDIR" && continue
17104 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17105 test -z "am__include" && continue
17106 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17107 # When using ansi2knr, U may be empty or an underscore; expand it
17108 U=`sed -n 's/^U = //p' < "$mf"`
17109 # Find all dependency output files, they are included files with
17110 # $(DEPDIR) in their names. We invoke sed twice because it is the
17111 # simplest approach to changing $(DEPDIR) to its actual value in the
17112 # expansion.
17113 for file in `sed -n "
17114 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17115 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17116 # Make sure the directory exists.
17117 test -f "$dirpart/$file" && continue
17118 fdir=`$as_dirname -- "$file" ||
17119 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17120 X"$file" : 'X\(//\)[^/]' \| \
17121 X"$file" : 'X\(//\)$' \| \
17122 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17123 $as_echo X"$file" |
17124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17125 s//\1/
17128 /^X\(\/\/\)[^/].*/{
17129 s//\1/
17132 /^X\(\/\/\)$/{
17133 s//\1/
17136 /^X\(\/\).*/{
17137 s//\1/
17140 s/.*/./; q'`
17141 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17142 # echo "creating $dirpart/$file"
17143 echo '# dummy' > "$dirpart/$file"
17144 done
17145 done
17148 "libtool":C)
17150 # See if we are running on zsh, and set the options which allow our
17151 # commands through without removal of \ escapes.
17152 if test -n "${ZSH_VERSION+set}" ; then
17153 setopt NO_GLOB_SUBST
17156 cfgfile="${ofile}T"
17157 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17158 $RM "$cfgfile"
17160 cat <<_LT_EOF >> "$cfgfile"
17161 #! $SHELL
17163 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17164 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17165 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17166 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17168 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17169 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17170 # Written by Gordon Matzigkeit, 1996
17172 # This file is part of GNU Libtool.
17174 # GNU Libtool is free software; you can redistribute it and/or
17175 # modify it under the terms of the GNU General Public License as
17176 # published by the Free Software Foundation; either version 2 of
17177 # the License, or (at your option) any later version.
17179 # As a special exception to the GNU General Public License,
17180 # if you distribute this file as part of a program or library that
17181 # is built using GNU Libtool, you may include this file under the
17182 # same distribution terms that you use for the rest of that program.
17184 # GNU Libtool is distributed in the hope that it will be useful,
17185 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17187 # GNU General Public License for more details.
17189 # You should have received a copy of the GNU General Public License
17190 # along with GNU Libtool; see the file COPYING. If not, a copy
17191 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17192 # obtained by writing to the Free Software Foundation, Inc.,
17193 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17196 # The names of the tagged configurations supported by this script.
17197 available_tags="CXX "
17199 # ### BEGIN LIBTOOL CONFIG
17201 # Which release of libtool.m4 was used?
17202 macro_version=$macro_version
17203 macro_revision=$macro_revision
17205 # Whether or not to build shared libraries.
17206 build_libtool_libs=$enable_shared
17208 # Whether or not to build static libraries.
17209 build_old_libs=$enable_static
17211 # What type of objects to build.
17212 pic_mode=$pic_mode
17214 # Whether or not to optimize for fast installation.
17215 fast_install=$enable_fast_install
17217 # Shell to use when invoking shell scripts.
17218 SHELL=$lt_SHELL
17220 # An echo program that protects backslashes.
17221 ECHO=$lt_ECHO
17223 # The host system.
17224 host_alias=$host_alias
17225 host=$host
17226 host_os=$host_os
17228 # The build system.
17229 build_alias=$build_alias
17230 build=$build
17231 build_os=$build_os
17233 # A sed program that does not truncate output.
17234 SED=$lt_SED
17236 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17237 Xsed="\$SED -e 1s/^X//"
17239 # A grep program that handles long lines.
17240 GREP=$lt_GREP
17242 # An ERE matcher.
17243 EGREP=$lt_EGREP
17245 # A literal string matcher.
17246 FGREP=$lt_FGREP
17248 # A BSD- or MS-compatible name lister.
17249 NM=$lt_NM
17251 # Whether we need soft or hard links.
17252 LN_S=$lt_LN_S
17254 # What is the maximum length of a command?
17255 max_cmd_len=$max_cmd_len
17257 # Object file suffix (normally "o").
17258 objext=$ac_objext
17260 # Executable file suffix (normally "").
17261 exeext=$exeext
17263 # whether the shell understands "unset".
17264 lt_unset=$lt_unset
17266 # turn spaces into newlines.
17267 SP2NL=$lt_lt_SP2NL
17269 # turn newlines into spaces.
17270 NL2SP=$lt_lt_NL2SP
17272 # An object symbol dumper.
17273 OBJDUMP=$lt_OBJDUMP
17275 # Method to check whether dependent libraries are shared objects.
17276 deplibs_check_method=$lt_deplibs_check_method
17278 # Command to use when deplibs_check_method == "file_magic".
17279 file_magic_cmd=$lt_file_magic_cmd
17281 # The archiver.
17282 AR=$lt_AR
17283 AR_FLAGS=$lt_AR_FLAGS
17285 # A symbol stripping program.
17286 STRIP=$lt_STRIP
17288 # Commands used to install an old-style archive.
17289 RANLIB=$lt_RANLIB
17290 old_postinstall_cmds=$lt_old_postinstall_cmds
17291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17293 # Whether to use a lock for old archive extraction.
17294 lock_old_archive_extraction=$lock_old_archive_extraction
17296 # A C compiler.
17297 LTCC=$lt_CC
17299 # LTCC compiler flags.
17300 LTCFLAGS=$lt_CFLAGS
17302 # Take the output of nm and produce a listing of raw symbols and C names.
17303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17305 # Transform the output of nm in a proper C declaration.
17306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17308 # Transform the output of nm in a C name address pair.
17309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17311 # Transform the output of nm in a C name address pair when lib prefix is needed.
17312 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17314 # The name of the directory that contains temporary libtool files.
17315 objdir=$objdir
17317 # Used to examine libraries when file_magic_cmd begins with "file".
17318 MAGIC_CMD=$MAGIC_CMD
17320 # Must we lock files when doing compilation?
17321 need_locks=$lt_need_locks
17323 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17324 DSYMUTIL=$lt_DSYMUTIL
17326 # Tool to change global to local symbols on Mac OS X.
17327 NMEDIT=$lt_NMEDIT
17329 # Tool to manipulate fat objects and archives on Mac OS X.
17330 LIPO=$lt_LIPO
17332 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17333 OTOOL=$lt_OTOOL
17335 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17336 OTOOL64=$lt_OTOOL64
17338 # Old archive suffix (normally "a").
17339 libext=$libext
17341 # Shared library suffix (normally ".so").
17342 shrext_cmds=$lt_shrext_cmds
17344 # The commands to extract the exported symbol list from a shared archive.
17345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17347 # Variables whose values should be saved in libtool wrapper scripts and
17348 # restored at link time.
17349 variables_saved_for_relink=$lt_variables_saved_for_relink
17351 # Do we need the "lib" prefix for modules?
17352 need_lib_prefix=$need_lib_prefix
17354 # Do we need a version for libraries?
17355 need_version=$need_version
17357 # Library versioning type.
17358 version_type=$version_type
17360 # Shared library runtime path variable.
17361 runpath_var=$runpath_var
17363 # Shared library path variable.
17364 shlibpath_var=$shlibpath_var
17366 # Is shlibpath searched before the hard-coded library search path?
17367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17369 # Format of library name prefix.
17370 libname_spec=$lt_libname_spec
17372 # List of archive names. First name is the real one, the rest are links.
17373 # The last name is the one that the linker finds with -lNAME
17374 library_names_spec=$lt_library_names_spec
17376 # The coded name of the library, if different from the real name.
17377 soname_spec=$lt_soname_spec
17379 # Permission mode override for installation of shared libraries.
17380 install_override_mode=$lt_install_override_mode
17382 # Command to use after installation of a shared archive.
17383 postinstall_cmds=$lt_postinstall_cmds
17385 # Command to use after uninstallation of a shared archive.
17386 postuninstall_cmds=$lt_postuninstall_cmds
17388 # Commands used to finish a libtool library installation in a directory.
17389 finish_cmds=$lt_finish_cmds
17391 # As "finish_cmds", except a single script fragment to be evaled but
17392 # not shown.
17393 finish_eval=$lt_finish_eval
17395 # Whether we should hardcode library paths into libraries.
17396 hardcode_into_libs=$hardcode_into_libs
17398 # Compile-time system search path for libraries.
17399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17401 # Run-time system search path for libraries.
17402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17404 # Whether dlopen is supported.
17405 dlopen_support=$enable_dlopen
17407 # Whether dlopen of programs is supported.
17408 dlopen_self=$enable_dlopen_self
17410 # Whether dlopen of statically linked programs is supported.
17411 dlopen_self_static=$enable_dlopen_self_static
17413 # Commands to strip libraries.
17414 old_striplib=$lt_old_striplib
17415 striplib=$lt_striplib
17418 # The linker used to build libraries.
17419 LD=$lt_LD
17421 # How to create reloadable object files.
17422 reload_flag=$lt_reload_flag
17423 reload_cmds=$lt_reload_cmds
17425 # Commands used to build an old-style archive.
17426 old_archive_cmds=$lt_old_archive_cmds
17428 # A language specific compiler.
17429 CC=$lt_compiler
17431 # Is the compiler the GNU compiler?
17432 with_gcc=$GCC
17434 # Compiler flag to turn off builtin functions.
17435 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17437 # How to pass a linker flag through the compiler.
17438 wl=$lt_lt_prog_compiler_wl
17440 # Additional compiler flags for building library objects.
17441 pic_flag=$lt_lt_prog_compiler_pic
17443 # Compiler flag to prevent dynamic linking.
17444 link_static_flag=$lt_lt_prog_compiler_static
17446 # Does compiler simultaneously support -c and -o options?
17447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17449 # Whether or not to add -lc for building shared libraries.
17450 build_libtool_need_lc=$archive_cmds_need_lc
17452 # Whether or not to disallow shared libs when runtime libs are static.
17453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17455 # Compiler flag to allow reflexive dlopens.
17456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17458 # Compiler flag to generate shared objects directly from archives.
17459 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17461 # Whether the compiler copes with passing no objects directly.
17462 compiler_needs_object=$lt_compiler_needs_object
17464 # Create an old-style archive from a shared archive.
17465 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17467 # Create a temporary old-style archive to link instead of a shared archive.
17468 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17470 # Commands used to build a shared archive.
17471 archive_cmds=$lt_archive_cmds
17472 archive_expsym_cmds=$lt_archive_expsym_cmds
17474 # Commands used to build a loadable module if different from building
17475 # a shared archive.
17476 module_cmds=$lt_module_cmds
17477 module_expsym_cmds=$lt_module_expsym_cmds
17479 # Whether we are building with GNU ld or not.
17480 with_gnu_ld=$lt_with_gnu_ld
17482 # Flag that allows shared libraries with undefined symbols to be built.
17483 allow_undefined_flag=$lt_allow_undefined_flag
17485 # Flag that enforces no undefined symbols.
17486 no_undefined_flag=$lt_no_undefined_flag
17488 # Flag to hardcode \$libdir into a binary during linking.
17489 # This must work even if \$libdir does not exist
17490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17492 # If ld is used when linking, flag to hardcode \$libdir into a binary
17493 # during linking. This must work even if \$libdir does not exist.
17494 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17496 # Whether we need a single "-rpath" flag with a separated argument.
17497 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17499 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17500 # DIR into the resulting binary.
17501 hardcode_direct=$hardcode_direct
17503 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17504 # DIR into the resulting binary and the resulting library dependency is
17505 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17506 # library is relocated.
17507 hardcode_direct_absolute=$hardcode_direct_absolute
17509 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17510 # into the resulting binary.
17511 hardcode_minus_L=$hardcode_minus_L
17513 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17514 # into the resulting binary.
17515 hardcode_shlibpath_var=$hardcode_shlibpath_var
17517 # Set to "yes" if building a shared library automatically hardcodes DIR
17518 # into the library and all subsequent libraries and executables linked
17519 # against it.
17520 hardcode_automatic=$hardcode_automatic
17522 # Set to yes if linker adds runtime paths of dependent libraries
17523 # to runtime path list.
17524 inherit_rpath=$inherit_rpath
17526 # Whether libtool must link a program against all its dependency libraries.
17527 link_all_deplibs=$link_all_deplibs
17529 # Fix the shell variable \$srcfile for the compiler.
17530 fix_srcfile_path=$lt_fix_srcfile_path
17532 # Set to "yes" if exported symbols are required.
17533 always_export_symbols=$always_export_symbols
17535 # The commands to list exported symbols.
17536 export_symbols_cmds=$lt_export_symbols_cmds
17538 # Symbols that should not be listed in the preloaded symbols.
17539 exclude_expsyms=$lt_exclude_expsyms
17541 # Symbols that must always be exported.
17542 include_expsyms=$lt_include_expsyms
17544 # Commands necessary for linking programs (against libraries) with templates.
17545 prelink_cmds=$lt_prelink_cmds
17547 # Specify filename containing input files.
17548 file_list_spec=$lt_file_list_spec
17550 # How to hardcode a shared library path into an executable.
17551 hardcode_action=$hardcode_action
17553 # The directories searched by this compiler when creating a shared library.
17554 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17556 # Dependencies to place before and after the objects being linked to
17557 # create a shared library.
17558 predep_objects=$lt_predep_objects
17559 postdep_objects=$lt_postdep_objects
17560 predeps=$lt_predeps
17561 postdeps=$lt_postdeps
17563 # The library search path used internally by the compiler when linking
17564 # a shared library.
17565 compiler_lib_search_path=$lt_compiler_lib_search_path
17567 # ### END LIBTOOL CONFIG
17569 _LT_EOF
17571 case $host_os in
17572 aix3*)
17573 cat <<\_LT_EOF >> "$cfgfile"
17574 # AIX sometimes has problems with the GCC collect2 program. For some
17575 # reason, if we set the COLLECT_NAMES environment variable, the problems
17576 # vanish in a puff of smoke.
17577 if test "X${COLLECT_NAMES+set}" != Xset; then
17578 COLLECT_NAMES=
17579 export COLLECT_NAMES
17581 _LT_EOF
17583 esac
17586 ltmain="$ac_aux_dir/ltmain.sh"
17589 # We use sed instead of cat because bash on DJGPP gets confused if
17590 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17591 # text mode, it properly converts lines to CR/LF. This bash problem
17592 # is reportedly fixed, but why not run on old versions too?
17593 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17594 || (rm -f "$cfgfile"; exit 1)
17596 case $xsi_shell in
17597 yes)
17598 cat << \_LT_EOF >> "$cfgfile"
17600 # func_dirname file append nondir_replacement
17601 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17602 # otherwise set result to NONDIR_REPLACEMENT.
17603 func_dirname ()
17605 case ${1} in
17606 */*) func_dirname_result="${1%/*}${2}" ;;
17607 * ) func_dirname_result="${3}" ;;
17608 esac
17611 # func_basename file
17612 func_basename ()
17614 func_basename_result="${1##*/}"
17617 # func_dirname_and_basename file append nondir_replacement
17618 # perform func_basename and func_dirname in a single function
17619 # call:
17620 # dirname: Compute the dirname of FILE. If nonempty,
17621 # add APPEND to the result, otherwise set result
17622 # to NONDIR_REPLACEMENT.
17623 # value returned in "$func_dirname_result"
17624 # basename: Compute filename of FILE.
17625 # value retuned in "$func_basename_result"
17626 # Implementation must be kept synchronized with func_dirname
17627 # and func_basename. For efficiency, we do not delegate to
17628 # those functions but instead duplicate the functionality here.
17629 func_dirname_and_basename ()
17631 case ${1} in
17632 */*) func_dirname_result="${1%/*}${2}" ;;
17633 * ) func_dirname_result="${3}" ;;
17634 esac
17635 func_basename_result="${1##*/}"
17638 # func_stripname prefix suffix name
17639 # strip PREFIX and SUFFIX off of NAME.
17640 # PREFIX and SUFFIX must not contain globbing or regex special
17641 # characters, hashes, percent signs, but SUFFIX may contain a leading
17642 # dot (in which case that matches only a dot).
17643 func_stripname ()
17645 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17646 # positional parameters, so assign one to ordinary parameter first.
17647 func_stripname_result=${3}
17648 func_stripname_result=${func_stripname_result#"${1}"}
17649 func_stripname_result=${func_stripname_result%"${2}"}
17652 # func_opt_split
17653 func_opt_split ()
17655 func_opt_split_opt=${1%%=*}
17656 func_opt_split_arg=${1#*=}
17659 # func_lo2o object
17660 func_lo2o ()
17662 case ${1} in
17663 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17664 *) func_lo2o_result=${1} ;;
17665 esac
17668 # func_xform libobj-or-source
17669 func_xform ()
17671 func_xform_result=${1%.*}.lo
17674 # func_arith arithmetic-term...
17675 func_arith ()
17677 func_arith_result=$(( $* ))
17680 # func_len string
17681 # STRING may not start with a hyphen.
17682 func_len ()
17684 func_len_result=${#1}
17687 _LT_EOF
17689 *) # Bourne compatible functions.
17690 cat << \_LT_EOF >> "$cfgfile"
17692 # func_dirname file append nondir_replacement
17693 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17694 # otherwise set result to NONDIR_REPLACEMENT.
17695 func_dirname ()
17697 # Extract subdirectory from the argument.
17698 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17699 if test "X$func_dirname_result" = "X${1}"; then
17700 func_dirname_result="${3}"
17701 else
17702 func_dirname_result="$func_dirname_result${2}"
17706 # func_basename file
17707 func_basename ()
17709 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17713 # func_stripname prefix suffix name
17714 # strip PREFIX and SUFFIX off of NAME.
17715 # PREFIX and SUFFIX must not contain globbing or regex special
17716 # characters, hashes, percent signs, but SUFFIX may contain a leading
17717 # dot (in which case that matches only a dot).
17718 # func_strip_suffix prefix name
17719 func_stripname ()
17721 case ${2} in
17722 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17723 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17724 esac
17727 # sed scripts:
17728 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17729 my_sed_long_arg='1s/^-[^=]*=//'
17731 # func_opt_split
17732 func_opt_split ()
17734 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17735 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17738 # func_lo2o object
17739 func_lo2o ()
17741 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17744 # func_xform libobj-or-source
17745 func_xform ()
17747 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17750 # func_arith arithmetic-term...
17751 func_arith ()
17753 func_arith_result=`expr "$@"`
17756 # func_len string
17757 # STRING may not start with a hyphen.
17758 func_len ()
17760 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17763 _LT_EOF
17764 esac
17766 case $lt_shell_append in
17767 yes)
17768 cat << \_LT_EOF >> "$cfgfile"
17770 # func_append var value
17771 # Append VALUE to the end of shell variable VAR.
17772 func_append ()
17774 eval "$1+=\$2"
17776 _LT_EOF
17779 cat << \_LT_EOF >> "$cfgfile"
17781 # func_append var value
17782 # Append VALUE to the end of shell variable VAR.
17783 func_append ()
17785 eval "$1=\$$1\$2"
17788 _LT_EOF
17790 esac
17793 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17794 || (rm -f "$cfgfile"; exit 1)
17796 mv -f "$cfgfile" "$ofile" ||
17797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17798 chmod +x "$ofile"
17801 cat <<_LT_EOF >> "$ofile"
17803 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17805 # The linker used to build libraries.
17806 LD=$lt_LD_CXX
17808 # How to create reloadable object files.
17809 reload_flag=$lt_reload_flag_CXX
17810 reload_cmds=$lt_reload_cmds_CXX
17812 # Commands used to build an old-style archive.
17813 old_archive_cmds=$lt_old_archive_cmds_CXX
17815 # A language specific compiler.
17816 CC=$lt_compiler_CXX
17818 # Is the compiler the GNU compiler?
17819 with_gcc=$GCC_CXX
17821 # Compiler flag to turn off builtin functions.
17822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17824 # How to pass a linker flag through the compiler.
17825 wl=$lt_lt_prog_compiler_wl_CXX
17827 # Additional compiler flags for building library objects.
17828 pic_flag=$lt_lt_prog_compiler_pic_CXX
17830 # Compiler flag to prevent dynamic linking.
17831 link_static_flag=$lt_lt_prog_compiler_static_CXX
17833 # Does compiler simultaneously support -c and -o options?
17834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17836 # Whether or not to add -lc for building shared libraries.
17837 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17839 # Whether or not to disallow shared libs when runtime libs are static.
17840 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17842 # Compiler flag to allow reflexive dlopens.
17843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17845 # Compiler flag to generate shared objects directly from archives.
17846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17848 # Whether the compiler copes with passing no objects directly.
17849 compiler_needs_object=$lt_compiler_needs_object_CXX
17851 # Create an old-style archive from a shared archive.
17852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17854 # Create a temporary old-style archive to link instead of a shared archive.
17855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17857 # Commands used to build a shared archive.
17858 archive_cmds=$lt_archive_cmds_CXX
17859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17861 # Commands used to build a loadable module if different from building
17862 # a shared archive.
17863 module_cmds=$lt_module_cmds_CXX
17864 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17866 # Whether we are building with GNU ld or not.
17867 with_gnu_ld=$lt_with_gnu_ld_CXX
17869 # Flag that allows shared libraries with undefined symbols to be built.
17870 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17872 # Flag that enforces no undefined symbols.
17873 no_undefined_flag=$lt_no_undefined_flag_CXX
17875 # Flag to hardcode \$libdir into a binary during linking.
17876 # This must work even if \$libdir does not exist
17877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17879 # If ld is used when linking, flag to hardcode \$libdir into a binary
17880 # during linking. This must work even if \$libdir does not exist.
17881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17883 # Whether we need a single "-rpath" flag with a separated argument.
17884 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17887 # DIR into the resulting binary.
17888 hardcode_direct=$hardcode_direct_CXX
17890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17891 # DIR into the resulting binary and the resulting library dependency is
17892 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17893 # library is relocated.
17894 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17896 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17897 # into the resulting binary.
17898 hardcode_minus_L=$hardcode_minus_L_CXX
17900 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17901 # into the resulting binary.
17902 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17904 # Set to "yes" if building a shared library automatically hardcodes DIR
17905 # into the library and all subsequent libraries and executables linked
17906 # against it.
17907 hardcode_automatic=$hardcode_automatic_CXX
17909 # Set to yes if linker adds runtime paths of dependent libraries
17910 # to runtime path list.
17911 inherit_rpath=$inherit_rpath_CXX
17913 # Whether libtool must link a program against all its dependency libraries.
17914 link_all_deplibs=$link_all_deplibs_CXX
17916 # Fix the shell variable \$srcfile for the compiler.
17917 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17919 # Set to "yes" if exported symbols are required.
17920 always_export_symbols=$always_export_symbols_CXX
17922 # The commands to list exported symbols.
17923 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17925 # Symbols that should not be listed in the preloaded symbols.
17926 exclude_expsyms=$lt_exclude_expsyms_CXX
17928 # Symbols that must always be exported.
17929 include_expsyms=$lt_include_expsyms_CXX
17931 # Commands necessary for linking programs (against libraries) with templates.
17932 prelink_cmds=$lt_prelink_cmds_CXX
17934 # Specify filename containing input files.
17935 file_list_spec=$lt_file_list_spec_CXX
17937 # How to hardcode a shared library path into an executable.
17938 hardcode_action=$hardcode_action_CXX
17940 # The directories searched by this compiler when creating a shared library.
17941 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17943 # Dependencies to place before and after the objects being linked to
17944 # create a shared library.
17945 predep_objects=$lt_predep_objects_CXX
17946 postdep_objects=$lt_postdep_objects_CXX
17947 predeps=$lt_predeps_CXX
17948 postdeps=$lt_postdeps_CXX
17950 # The library search path used internally by the compiler when linking
17951 # a shared library.
17952 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17954 # ### END LIBTOOL TAG CONFIG: CXX
17955 _LT_EOF
17958 "./Makefile":F) cat > vpsed$$ << \_EOF
17959 s!`test -f '$<' || echo '$(srcdir)/'`!!
17960 _EOF
17961 sed -f vpsed$$ $ac_file > tmp$$
17962 mv tmp$$ $ac_file
17963 rm vpsed$$
17964 echo 'MULTISUBDIR =' >> $ac_file
17965 ml_norecursion=yes
17966 . ${multi_basedir}/config-ml.in
17967 { ml_norecursion=; unset ml_norecursion;}
17969 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17970 s!`test -f '$<' || echo '$(srcdir)/'`!!
17971 _EOF
17972 sed -f vpsed$$ $ac_file > tmp$$
17973 mv tmp$$ $ac_file
17974 rm vpsed$$
17975 echo 'MULTISUBDIR =' >> $ac_file
17976 ml_norecursion=yes
17977 . ${multi_basedir}/config-ml.in
17978 { ml_norecursion=; unset ml_norecursion;}
17981 esac
17982 done # for ac_tag
17985 as_fn_exit 0
17986 _ACEOF
17987 ac_clean_files=$ac_clean_files_save
17989 test $ac_write_fail = 0 ||
17990 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17993 # configure is writing to config.log, and then calls config.status.
17994 # config.status does its own redirection, appending to config.log.
17995 # Unfortunately, on DOS this fails, as config.log is still kept open
17996 # by configure, so config.status won't be able to write to it; its
17997 # output is simply discarded. So we exec the FD to /dev/null,
17998 # effectively closing config.log, so it can be properly (re)opened and
17999 # appended to by config.status. When coming back to configure, we
18000 # need to make the FD available again.
18001 if test "$no_create" != yes; then
18002 ac_cs_success=:
18003 ac_config_status_args=
18004 test "$silent" = yes &&
18005 ac_config_status_args="$ac_config_status_args --quiet"
18006 exec 5>/dev/null
18007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18008 exec 5>>config.log
18009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18010 # would make configure fail if this is the last instruction.
18011 $ac_cs_success || as_fn_exit $?
18013 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18015 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}