Daily bump.
[official-gcc.git] / libvtv / configure
blob1cd1f70cd768d35fa38075fb81d73286283248d4
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 get_gcc_base_ver
606 VTV_NO_OBSTACK_FALSE
607 VTV_NO_OBSTACK_TRUE
608 VTV_CYGMIN_FALSE
609 VTV_CYGMIN_TRUE
610 XCFLAGS
611 libtool_VERSION
612 enable_static
613 enable_shared
614 lt_host_flags
615 CXXCPP
616 OTOOL64
617 OTOOL
618 LIPO
619 NMEDIT
620 DSYMUTIL
621 OBJDUMP
622 LN_S
624 ac_ct_DUMPBIN
625 DUMPBIN
627 FGREP
629 LIBTOOL
630 RANLIB
633 CCASFLAGS
634 CCAS
635 am__fastdepCXX_FALSE
636 am__fastdepCXX_TRUE
637 CXXDEPMODE
638 ac_ct_CXX
639 CXXFLAGS
641 toolexeclibdir
642 toolexecdir
643 toplevel_srcdir
644 toplevel_builddir
645 libvtv_srcdir
646 libvtv_builddir
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 am__nodep
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 am__untar
661 am__tar
662 AMTAR
663 am__leading_dot
664 SET_MAKE
666 mkdir_p
667 MKDIR_P
668 INSTALL_STRIP_PROGRAM
669 STRIP
670 install_sh
671 MAKEINFO
672 AUTOHEADER
673 AUTOMAKE
674 AUTOCONF
675 ACLOCAL
676 VERSION
677 PACKAGE
678 CYGPATH_W
679 am__isrc
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 ENABLE_VTABLE_VERIFY_FALSE
684 ENABLE_VTABLE_VERIFY_TRUE
685 EGREP
686 GREP
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
695 LIBSTDCXX_RAW_CXX_LDFLAGS
696 LIBSTDCXX_RAW_CXX_CXXFLAGS
697 target_noncanonical
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 multi_basedir
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_multilib
753 enable_version_specific_runtime_libs
754 enable_vtable_verify
755 enable_dependency_tracking
756 enable_maintainer_mode
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 enable_cet
764 with_gcc_major_version_only
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
775 CXXCPP'
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
826 ac_prev=
827 ac_dashdash=
828 for ac_option
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
846 ac_dashdash=yes ;;
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
865 --config-cache | -C)
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182 esac
1183 done
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1269 /^X\(\/\/\)$/{
1270 s//\1/
1273 /^X\(\/\).*/{
1274 s//\1/
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1282 else
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1372 cat <<\_ACEOF
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383 _ACEOF
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1389 esac
1390 cat <<\_ACEOF
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-multilib build many library versions (default)
1397 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1398 --enable-vtable-verify Enable vtable verification feature
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
1401 --enable-maintainer-mode enable make rules and dependencies not useful
1402 (and sometimes confusing) to the casual installer
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --enable-cet enable Intel CET in target libraries
1409 [default=default]
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-gcc-major-version-only
1418 use only GCC major number in filesystem paths
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CPP C preprocessor
1429 CXX C++ compiler command
1430 CXXFLAGS C++ compiler flags
1431 CXXCPP C++ preprocessor
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1436 Report bugs to the package provider.
1437 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1438 General help using GNU software: <http://www.gnu.org/gethelp/>.
1439 _ACEOF
1440 ac_status=$?
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 GNU Vtable Verification Runtime Library configure 1.0
1502 generated by GNU Autoconf 2.64
1504 Copyright (C) 2009 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 ac_retval=1
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 return $ac_retval
1551 } # ac_fn_c_try_compile
1553 # ac_fn_c_try_cpp LINENO
1554 # ----------------------
1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_cpp ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } >/dev/null && {
1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 }; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=1
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1588 } # ac_fn_c_try_cpp
1590 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1591 # -------------------------------------------------------
1592 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1593 # the include files in INCLUDES and setting the cache variable VAR
1594 # accordingly.
1595 ac_fn_c_check_header_mongrel ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600 $as_echo_n "checking for $2... " >&6; }
1601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1602 $as_echo_n "(cached) " >&6
1604 eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606 $as_echo "$ac_res" >&6; }
1607 else
1608 # Is the header compilable?
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1610 $as_echo_n "checking $2 usability... " >&6; }
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_compile "$LINENO"; then :
1617 ac_header_compiler=yes
1618 else
1619 ac_header_compiler=no
1621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1623 $as_echo "$ac_header_compiler" >&6; }
1625 # Is the header present?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1627 $as_echo_n "checking $2 presence... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_cpp "$LINENO"; then :
1633 ac_header_preproc=yes
1634 else
1635 ac_header_preproc=no
1637 rm -f conftest.err conftest.$ac_ext
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1639 $as_echo "$ac_header_preproc" >&6; }
1641 # So? What about this header?
1642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1643 yes:no: )
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1645 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 no:yes:* )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1651 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1653 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1655 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1657 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 esac
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 eval "$3=\$ac_header_compiler"
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 } # ac_fn_c_check_header_mongrel
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=$ac_status
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 return $ac_retval
1717 } # ac_fn_c_try_run
1719 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists and can be compiled using the include files in
1722 # INCLUDES, setting the cache variable VAR accordingly.
1723 ac_fn_c_check_header_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737 eval "$3=yes"
1738 else
1739 eval "$3=no"
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 } # ac_fn_c_check_header_compile
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 $as_test_x conftest$ac_exeext
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1794 } # ac_fn_c_try_link
1796 # ac_fn_c_check_func LINENO FUNC VAR
1797 # ----------------------------------
1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1799 ac_fn_c_check_func ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1806 else
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1811 #define $2 innocuous_$2
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $2 (); below.
1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816 <limits.h> exists even on freestanding compilers. */
1818 #ifdef __STDC__
1819 # include <limits.h>
1820 #else
1821 # include <assert.h>
1822 #endif
1824 #undef $2
1826 /* Override any GCC internal prototype to avoid an error.
1827 Use char because int might match the return type of a GCC
1828 builtin and then its argument prototype would still apply. */
1829 #ifdef __cplusplus
1830 extern "C"
1831 #endif
1832 char $2 ();
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined __stub_$2 || defined __stub___$2
1837 choke me
1838 #endif
1841 main ()
1843 return $2 ();
1845 return 0;
1847 _ACEOF
1848 if ac_fn_c_try_link "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1853 rm -f core conftest.err conftest.$ac_objext \
1854 conftest$ac_exeext conftest.$ac_ext
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_c_check_func
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 return $ac_retval
1899 } # ac_fn_cxx_try_compile
1901 # ac_fn_cxx_try_cpp LINENO
1902 # ------------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_cpp ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } >/dev/null && {
1923 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1924 test ! -s conftest.err
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=1
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 return $ac_retval
1936 } # ac_fn_cxx_try_cpp
1938 # ac_fn_cxx_try_link LINENO
1939 # -------------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_link ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext conftest$ac_exeext
1945 if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest$ac_exeext && {
1964 test "$cross_compiling" = yes ||
1965 $as_test_x conftest$ac_exeext
1966 }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=1
1974 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976 # interfere with the next link command; also delete a directory that is
1977 # left behind by Apple's compiler. We do this before executing the actions.
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1982 } # ac_fn_cxx_try_link
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1987 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1988 generated by GNU Autoconf 2.64. Invocation command line was
1990 $ $0 $@
1992 _ACEOF
1993 exec 5>>config.log
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017 _ASUNAME
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 $as_echo "PATH: $as_dir"
2025 done
2026 IFS=$as_save_IFS
2028 } >&5
2030 cat >&5 <<_ACEOF
2033 ## ----------- ##
2034 ## Core tests. ##
2035 ## ----------- ##
2037 _ACEOF
2040 # Keep a trace of the command line.
2041 # Strip out --no-create and --no-recursion so they do not pile up.
2042 # Strip out --silent because we don't want to record it for future runs.
2043 # Also quote any args containing shell meta-characters.
2044 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_configure_args=
2046 ac_configure_args0=
2047 ac_configure_args1=
2048 ac_must_keep_next=false
2049 for ac_pass in 1 2
2051 for ac_arg
2053 case $ac_arg in
2054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056 | -silent | --silent | --silen | --sile | --sil)
2057 continue ;;
2058 *\'*)
2059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 esac
2061 case $ac_pass in
2062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064 as_fn_append ac_configure_args1 " '$ac_arg'"
2065 if test $ac_must_keep_next = true; then
2066 ac_must_keep_next=false # Got value, back to normal.
2067 else
2068 case $ac_arg in
2069 *=* | --config-cache | -C | -disable-* | --disable-* \
2070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072 | -with-* | --with-* | -without-* | --without-* | --x)
2073 case "$ac_configure_args0 " in
2074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 esac
2077 -* ) ac_must_keep_next=true ;;
2078 esac
2080 as_fn_append ac_configure_args " '$ac_arg'"
2082 esac
2083 done
2084 done
2085 { ac_configure_args0=; unset ac_configure_args0;}
2086 { ac_configure_args1=; unset ac_configure_args1;}
2088 # When interrupted or exit'd, cleanup temporary files, and complete
2089 # config.log. We remove comments because anyway the quotes in there
2090 # would cause problems or look ugly.
2091 # WARNING: Use '\'' to represent an apostrophe within the trap.
2092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093 trap 'exit_status=$?
2094 # Save into config.log some information that might help in debugging.
2096 echo
2098 cat <<\_ASBOX
2099 ## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##
2102 _ASBOX
2103 echo
2104 # The following way of writing the cache mishandles newlines in values,
2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107 eval ac_val=\$$ac_var
2108 case $ac_val in #(
2109 *${as_nl}*)
2110 case $ac_var in #(
2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113 esac
2114 case $ac_var in #(
2115 _ | IFS | as_nl) ;; #(
2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117 *) { eval $ac_var=; unset $ac_var;} ;;
2118 esac ;;
2119 esac
2120 done
2121 (set) 2>&1 |
2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123 *${as_nl}ac_space=\ *)
2124 sed -n \
2125 "s/'\''/'\''\\\\'\'''\''/g;
2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127 ;; #(
2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 esac |
2132 sort
2134 echo
2136 cat <<\_ASBOX
2137 ## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##
2140 _ASBOX
2141 echo
2142 for ac_var in $ac_subst_vars
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2152 if test -n "$ac_subst_files"; then
2153 cat <<\_ASBOX
2154 ## ------------------- ##
2155 ## File substitutions. ##
2156 ## ------------------- ##
2157 _ASBOX
2158 echo
2159 for ac_var in $ac_subst_files
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2170 if test -s confdefs.h; then
2171 cat <<\_ASBOX
2172 ## ----------- ##
2173 ## confdefs.h. ##
2174 ## ----------- ##
2175 _ASBOX
2176 echo
2177 cat confdefs.h
2178 echo
2180 test "$ac_signal" != 0 &&
2181 $as_echo "$as_me: caught signal $ac_signal"
2182 $as_echo "$as_me: exit $exit_status"
2183 } >&5
2184 rm -f core *.core core.conftest.* &&
2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186 exit $exit_status
2188 for ac_signal in 1 2 13 15; do
2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190 done
2191 ac_signal=0
2193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2194 rm -f -r conftest* confdefs.h
2196 $as_echo "/* confdefs.h */" > confdefs.h
2198 # Predefined preprocessor variables.
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_NAME "$PACKAGE_NAME"
2202 _ACEOF
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206 _ACEOF
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2210 _ACEOF
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_STRING "$PACKAGE_STRING"
2214 _ACEOF
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218 _ACEOF
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_URL "$PACKAGE_URL"
2222 _ACEOF
2225 # Let the site file select an alternate cache file if it wants to.
2226 # Prefer an explicitly selected file to automatically selected ones.
2227 ac_site_file1=NONE
2228 ac_site_file2=NONE
2229 if test -n "$CONFIG_SITE"; then
2230 ac_site_file1=$CONFIG_SITE
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2240 test "x$ac_site_file" = xNONE && continue
2241 if test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file"
2247 done
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special
2251 # files actually), so we avoid doing that.
2252 if test -f "$cache_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 case $cache_file in
2256 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257 *) . "./$cache_file";;
2258 esac
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 $as_echo "$as_me: creating cache $cache_file" >&6;}
2263 >$cache_file
2266 # Check that the precious variables saved in the cache have kept the same
2267 # value.
2268 ac_cache_corrupted=false
2269 for ac_var in $ac_precious_vars; do
2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2271 eval ac_new_set=\$ac_env_${ac_var}_set
2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2273 eval ac_new_val=\$ac_env_${ac_var}_value
2274 case $ac_old_set,$ac_new_set in
2275 set,)
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2277 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2278 ac_cache_corrupted=: ;;
2279 ,set)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,);;
2285 if test "x$ac_old_val" != "x$ac_new_val"; then
2286 # differences in whitespace do not lead to failure.
2287 ac_old_val_w=`echo x $ac_old_val`
2288 ac_new_val_w=`echo x $ac_new_val`
2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2291 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2292 ac_cache_corrupted=:
2293 else
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2295 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2296 eval $ac_var=\$ac_old_val
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2299 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2301 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2302 fi;;
2303 esac
2304 # Pass precious variables to config.status.
2305 if test "$ac_new_set" = set; then
2306 case $ac_new_val in
2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 *) ac_arg=$ac_var=$ac_new_val ;;
2309 esac
2310 case " $ac_configure_args " in
2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2313 esac
2315 done
2316 if $ac_cache_corrupted; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2320 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2321 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 ## -------------------- ##
2324 ## Main body of script. ##
2325 ## -------------------- ##
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 #AC_INIT(package-unused, version-unused, libvtv)
2340 # Default to --enable-multilib
2341 # Check whether --enable-multilib was given.
2342 if test "${enable_multilib+set}" = set; then :
2343 enableval=$enable_multilib; case "$enableval" in
2344 yes) multilib=yes ;;
2345 no) multilib=no ;;
2346 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2347 esac
2348 else
2349 multilib=yes
2353 # We may get other options which we leave undocumented:
2354 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2355 # See config-ml.in if you want the gory details.
2357 if test "$srcdir" = "."; then
2358 if test "$with_target_subdir" != "."; then
2359 multi_basedir="$srcdir/$with_multisrctop../.."
2360 else
2361 multi_basedir="$srcdir/$with_multisrctop.."
2363 else
2364 multi_basedir="$srcdir/.."
2368 # Even if the default multilib is not a cross compilation,
2369 # it may be that some of the other multilibs are.
2370 if test $cross_compiling = no && test $multilib = yes \
2371 && test "x${with_multisubdir}" != x ; then
2372 cross_compiling=maybe
2375 ac_config_commands="$ac_config_commands default-1"
2378 # -------
2379 # Options
2380 # -------
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2382 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2383 # Check whether --enable-version-specific-runtime-libs was given.
2384 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2385 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2386 yes) version_specific_libs=yes ;;
2387 no) version_specific_libs=no ;;
2388 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2389 esac
2390 else
2391 version_specific_libs=no
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2395 $as_echo "$version_specific_libs" >&6; }
2397 # Do not delete or change the following two lines. For why, see
2398 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2399 ac_aux_dir=
2400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2401 for ac_t in install-sh install.sh shtool; do
2402 if test -f "$ac_dir/$ac_t"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/$ac_t -c"
2405 break 2
2407 done
2408 done
2409 if test -z "$ac_aux_dir"; then
2410 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2413 # These three variables are undocumented and unsupported,
2414 # and are intended to be withdrawn in a future Autoconf release.
2415 # They can cause serious problems if a builder's source tree is in a directory
2416 # whose full name contains unusual characters.
2417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2419 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2422 # Make sure we can run config.sub.
2423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2424 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2427 $as_echo_n "checking build system type... " >&6; }
2428 if test "${ac_cv_build+set}" = set; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2437 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2441 $as_echo "$ac_cv_build" >&6; }
2442 case $ac_cv_build in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2445 esac
2446 build=$ac_cv_build
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_build
2449 shift
2450 build_cpu=$1
2451 build_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 build_os=$*
2456 IFS=$ac_save_IFS
2457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2461 $as_echo_n "checking host system type... " >&6; }
2462 if test "${ac_cv_host+set}" = set; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test "x$host_alias" = x; then
2466 ac_cv_host=$ac_cv_build
2467 else
2468 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2474 $as_echo "$ac_cv_host" >&6; }
2475 case $ac_cv_host in
2476 *-*-*) ;;
2477 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2478 esac
2479 host=$ac_cv_host
2480 ac_save_IFS=$IFS; IFS='-'
2481 set x $ac_cv_host
2482 shift
2483 host_cpu=$1
2484 host_vendor=$2
2485 shift; shift
2486 # Remember, the first character of IFS is used to create $*,
2487 # except with old shells:
2488 host_os=$*
2489 IFS=$ac_save_IFS
2490 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2494 $as_echo_n "checking target system type... " >&6; }
2495 if test "${ac_cv_target+set}" = set; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 if test "x$target_alias" = x; then
2499 ac_cv_target=$ac_cv_host
2500 else
2501 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2502 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2507 $as_echo "$ac_cv_target" >&6; }
2508 case $ac_cv_target in
2509 *-*-*) ;;
2510 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2511 esac
2512 target=$ac_cv_target
2513 ac_save_IFS=$IFS; IFS='-'
2514 set x $ac_cv_target
2515 shift
2516 target_cpu=$1
2517 target_vendor=$2
2518 shift; shift
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2521 target_os=$*
2522 IFS=$ac_save_IFS
2523 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2526 # The aliases save the names the user supplied, while $host etc.
2527 # will get canonicalized.
2528 test -n "$target_alias" &&
2529 test "$program_prefix$program_suffix$program_transform_name" = \
2530 NONENONEs,x,x, &&
2531 program_prefix=${target_alias}-
2533 target_alias=${target_alias-$host_alias}
2535 case ${build_alias} in
2536 "") build_noncanonical=${build} ;;
2537 *) build_noncanonical=${build_alias} ;;
2538 esac
2540 case ${host_alias} in
2541 "") host_noncanonical=${build_noncanonical} ;;
2542 *) host_noncanonical=${host_alias} ;;
2543 esac
2545 case ${target_alias} in
2546 "") target_noncanonical=${host_noncanonical} ;;
2547 *) target_noncanonical=${target_alias} ;;
2548 esac
2554 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2555 -I\$(top_builddir)/../libstdc++-v3/include \
2556 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2557 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2558 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2559 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2591 done
2592 done
2593 IFS=$as_save_IFS
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2608 if test -z "$ac_cv_prog_CC"; then
2609 ac_ct_CC=$CC
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_ac_ct_CC="gcc"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2631 done
2632 done
2633 IFS=$as_save_IFS
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2640 $as_echo "$ac_ct_CC" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2657 else
2658 CC="$ac_cv_prog_CC"
2661 if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}cc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2686 IFS=$as_save_IFS
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2702 if test -z "$CC"; then
2703 # Extract the first word of "cc", so it can be a program name with args.
2704 set dummy cc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_CC+set}" = set; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 else
2713 ac_prog_rejected=no
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2722 ac_prog_rejected=yes
2723 continue
2725 ac_cv_prog_CC="cc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2729 done
2730 done
2731 IFS=$as_save_IFS
2733 if test $ac_prog_rejected = yes; then
2734 # We found a bogon in the path, so make sure we never use it.
2735 set dummy $ac_cv_prog_CC
2736 shift
2737 if test $# != 0; then
2738 # We chose a different compiler from the bogus one.
2739 # However, it has the same basename, so the bogon will be chosen
2740 # first if we set CC to just the basename; use the full file name.
2741 shift
2742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 for ac_prog in cl.exe
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2783 done
2784 done
2785 IFS=$as_save_IFS
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2799 test -n "$CC" && break
2800 done
2802 if test -z "$CC"; then
2803 ac_ct_CC=$CC
2804 for ac_prog in cl.exe
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_ac_ct_CC="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2843 test -n "$ac_ct_CC" && break
2844 done
2846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 CC=$ac_ct_CC
2862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error "no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details." "$LINENO" 5; }
2867 # Provide some information about the compiler.
2868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2869 set X $ac_compile
2870 ac_compiler=$2
2871 for ac_option in --version -v -V -qversion; do
2872 { { ac_try="$ac_compiler $ac_option >&5"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2880 ac_status=$?
2881 if test -s conftest.err; then
2882 sed '10a\
2883 ... rest of stderr output deleted ...
2884 10q' conftest.err >conftest.er1
2885 cat conftest.er1 >&5
2886 rm -f conftest.er1 conftest.err
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }
2890 done
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2896 main ()
2900 return 0;
2902 _ACEOF
2903 ac_clean_files_save=$ac_clean_files
2904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2907 # of exeext.
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2909 $as_echo_n "checking for C compiler default output file name... " >&6; }
2910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912 # The possible output files:
2913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915 ac_rmfiles=
2916 for ac_file in $ac_files
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2921 esac
2922 done
2923 rm -f $ac_rmfiles
2925 if { { ac_try="$ac_link_default"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_link_default") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2940 # Autoconf.
2941 for ac_file in $ac_files ''
2943 test -f "$ac_file" || continue
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2947 [ab].out )
2948 # We found the default executable, but exeext='' is most
2949 # certainly right.
2950 break;;
2951 *.* )
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2953 then :; else
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2960 # actually working.
2961 break;;
2963 break;;
2964 esac
2965 done
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2968 else
2969 ac_file=''
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2972 $as_echo "$ac_file" >&6; }
2973 if test -z "$ac_file"; then :
2974 $as_echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 { as_fn_set_status 77
2980 as_fn_error "C compiler cannot create executables
2981 See \`config.log' for more details." "$LINENO" 5; }; }
2983 ac_exeext=$ac_cv_exeext
2985 # Check that the compiler produces executables we can run. If not, either
2986 # the compiler is broken, or we cross compile.
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2988 $as_echo_n "checking whether the C compiler works... " >&6; }
2989 # If not cross compiling, check that we can run a simple program.
2990 if test "$cross_compiling" != yes; then
2991 if { ac_try='./$ac_file'
2992 { { case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995 esac
2996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997 $as_echo "$ac_try_echo"; } >&5
2998 (eval "$ac_try") 2>&5
2999 ac_status=$?
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }; }; then
3002 cross_compiling=no
3003 else
3004 if test "$cross_compiling" = maybe; then
3005 cross_compiling=yes
3006 else
3007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error "cannot run C compiled programs.
3010 If you meant to cross compile, use \`--host'.
3011 See \`config.log' for more details." "$LINENO" 5; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016 $as_echo "yes" >&6; }
3018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3019 ac_clean_files=$ac_clean_files_save
3020 # Check that the compiler produces executables we can run. If not, either
3021 # the compiler is broken, or we cross compile.
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3023 $as_echo_n "checking whether we are cross compiling... " >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3025 $as_echo "$cross_compiling" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3028 $as_echo_n "checking for suffix of executables... " >&6; }
3029 if { { ac_try="$ac_link"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_link") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; then :
3040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3042 # work properly (i.e., refer to `conftest.exe'), while it won't with
3043 # `rm'.
3044 for ac_file in conftest.exe conftest conftest.*; do
3045 test -f "$ac_file" || continue
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 break;;
3050 * ) break;;
3051 esac
3052 done
3053 else
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error "cannot compute suffix of executables: cannot compile and link
3057 See \`config.log' for more details." "$LINENO" 5; }
3059 rm -f conftest$ac_cv_exeext
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3061 $as_echo "$ac_cv_exeext" >&6; }
3063 rm -f conftest.$ac_ext
3064 EXEEXT=$ac_cv_exeext
3065 ac_exeext=$EXEEXT
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3067 $as_echo_n "checking for suffix of object files... " >&6; }
3068 if test "${ac_cv_objext+set}" = set; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3075 main ()
3079 return 0;
3081 _ACEOF
3082 rm -f conftest.o conftest.obj
3083 if { { ac_try="$ac_compile"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compile") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 for ac_file in conftest.o conftest.obj conftest.*; do
3095 test -f "$ac_file" || continue;
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099 break;;
3100 esac
3101 done
3102 else
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error "cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details." "$LINENO" 5; }
3111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3114 $as_echo "$ac_cv_objext" >&6; }
3115 OBJEXT=$ac_cv_objext
3116 ac_objext=$OBJEXT
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3118 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3119 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3126 main ()
3128 #ifndef __GNUC__
3129 choke me
3130 #endif
3133 return 0;
3135 _ACEOF
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137 ac_compiler_gnu=yes
3138 else
3139 ac_compiler_gnu=no
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3146 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3147 if test $ac_compiler_gnu = yes; then
3148 GCC=yes
3149 else
3150 GCC=
3152 ac_test_CFLAGS=${CFLAGS+set}
3153 ac_save_CFLAGS=$CFLAGS
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3155 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3156 if test "${ac_cv_prog_cc_g+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 ac_save_c_werror_flag=$ac_c_werror_flag
3160 ac_c_werror_flag=yes
3161 ac_cv_prog_cc_g=no
3162 CFLAGS="-g"
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3167 main ()
3171 return 0;
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_cv_prog_cc_g=yes
3176 else
3177 CFLAGS=""
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3182 main ()
3186 return 0;
3188 _ACEOF
3189 if ac_fn_c_try_compile "$LINENO"; then :
3191 else
3192 ac_c_werror_flag=$ac_save_c_werror_flag
3193 CFLAGS="-g"
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3198 main ()
3202 return 0;
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3206 ac_cv_prog_cc_g=yes
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3216 $as_echo "$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3221 CFLAGS="-g -O2"
3222 else
3223 CFLAGS="-g"
3225 else
3226 if test "$GCC" = yes; then
3227 CFLAGS="-O2"
3228 else
3229 CFLAGS=
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3234 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 ac_cv_prog_cc_c89=no
3238 ac_save_CC=$CC
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241 #include <stdarg.h>
3242 #include <stdio.h>
3243 #include <sys/types.h>
3244 #include <sys/stat.h>
3245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246 struct buf { int x; };
3247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248 static char *e (p, i)
3249 char **p;
3250 int i;
3252 return p[i];
3254 static char *f (char * (*g) (char **, int), char **p, ...)
3256 char *s;
3257 va_list v;
3258 va_start (v,p);
3259 s = g (p, va_arg (v,int));
3260 va_end (v);
3261 return s;
3264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
3267 as 'x'. The following induces an error, until -std is added to get
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
3270 that's true only with -std. */
3271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3275 #define FOO(x) 'x'
3276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278 int test (int i, double x);
3279 struct s1 {int (*f) (int a);};
3280 struct s2 {int (*f) (double a);};
3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282 int argc;
3283 char **argv;
3285 main ()
3287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3289 return 0;
3291 _ACEOF
3292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295 CC="$ac_save_CC $ac_arg"
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_prog_cc_c89=$ac_arg
3299 rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3301 done
3302 rm -f conftest.$ac_ext
3303 CC=$ac_save_CC
3306 # AC_CACHE_VAL
3307 case "x$ac_cv_prog_cc_c89" in
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3310 $as_echo "none needed" >&6; } ;;
3311 xno)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3313 $as_echo "unsupported" >&6; } ;;
3315 CC="$CC $ac_cv_prog_cc_c89"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3317 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3318 esac
3319 if test "x$ac_cv_prog_cc_c89" != xno; then :
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3336 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3337 # On Suns, sometimes $CPP names a directory.
3338 if test -n "$CPP" && test -d "$CPP"; then
3339 CPP=
3341 if test -z "$CPP"; then
3342 if test "${ac_cv_prog_CPP+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 # Double quotes because CPP needs to be expanded
3346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364 Syntax error
3365 _ACEOF
3366 if ac_fn_c_try_cpp "$LINENO"; then :
3368 else
3369 # Broken: fails on valid input.
3370 continue
3372 rm -f conftest.err conftest.$ac_ext
3374 # OK, works on sane cases. Now check whether nonexistent headers
3375 # can be detected and how.
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <ac_nonexistent.h>
3379 _ACEOF
3380 if ac_fn_c_try_cpp "$LINENO"; then :
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 # Passes both tests.
3385 ac_preproc_ok=:
3386 break
3388 rm -f conftest.err conftest.$ac_ext
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then :
3394 break
3397 done
3398 ac_cv_prog_CPP=$CPP
3401 CPP=$ac_cv_prog_CPP
3402 else
3403 ac_cv_prog_CPP=$CPP
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3406 $as_echo "$CPP" >&6; }
3407 ac_preproc_ok=false
3408 for ac_c_preproc_warn_flag in '' yes
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
3412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
3414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 #ifdef __STDC__
3419 # include <limits.h>
3420 #else
3421 # include <assert.h>
3422 #endif
3423 Syntax error
3424 _ACEOF
3425 if ac_fn_c_try_cpp "$LINENO"; then :
3427 else
3428 # Broken: fails on valid input.
3429 continue
3431 rm -f conftest.err conftest.$ac_ext
3433 # OK, works on sane cases. Now check whether nonexistent headers
3434 # can be detected and how.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if ac_fn_c_try_cpp "$LINENO"; then :
3440 # Broken: success on invalid input.
3441 continue
3442 else
3443 # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3447 rm -f conftest.err conftest.$ac_ext
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then :
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." "$LINENO" 5; }
3461 ac_ext=c
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3469 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3470 if test "${ac_cv_path_GREP+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -z "$GREP"; then
3474 ac_path_GREP_found=false
3475 # Loop through the user's path and test for each of PROGNAME-LIST
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_prog in grep ggrep; do
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3484 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3485 # Check for GNU ac_path_GREP and select it if it is found.
3486 # Check for GNU $ac_path_GREP
3487 case `"$ac_path_GREP" --version 2>&1` in
3488 *GNU*)
3489 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3491 ac_count=0
3492 $as_echo_n 0123456789 >"conftest.in"
3493 while :
3495 cat "conftest.in" "conftest.in" >"conftest.tmp"
3496 mv "conftest.tmp" "conftest.in"
3497 cp "conftest.in" "conftest.nl"
3498 $as_echo 'GREP' >> "conftest.nl"
3499 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3501 as_fn_arith $ac_count + 1 && ac_count=$as_val
3502 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3503 # Best one so far, save it but keep looking for a better one
3504 ac_cv_path_GREP="$ac_path_GREP"
3505 ac_path_GREP_max=$ac_count
3507 # 10*(2^10) chars as input seems more than enough
3508 test $ac_count -gt 10 && break
3509 done
3510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3511 esac
3513 $ac_path_GREP_found && break 3
3514 done
3515 done
3516 done
3517 IFS=$as_save_IFS
3518 if test -z "$ac_cv_path_GREP"; then
3519 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3521 else
3522 ac_cv_path_GREP=$GREP
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3527 $as_echo "$ac_cv_path_GREP" >&6; }
3528 GREP="$ac_cv_path_GREP"
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3532 $as_echo_n "checking for egrep... " >&6; }
3533 if test "${ac_cv_path_EGREP+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3537 then ac_cv_path_EGREP="$GREP -E"
3538 else
3539 if test -z "$EGREP"; then
3540 ac_path_EGREP_found=false
3541 # Loop through the user's path and test for each of PROGNAME-LIST
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_prog in egrep; do
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3550 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3551 # Check for GNU ac_path_EGREP and select it if it is found.
3552 # Check for GNU $ac_path_EGREP
3553 case `"$ac_path_EGREP" --version 2>&1` in
3554 *GNU*)
3555 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3557 ac_count=0
3558 $as_echo_n 0123456789 >"conftest.in"
3559 while :
3561 cat "conftest.in" "conftest.in" >"conftest.tmp"
3562 mv "conftest.tmp" "conftest.in"
3563 cp "conftest.in" "conftest.nl"
3564 $as_echo 'EGREP' >> "conftest.nl"
3565 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567 as_fn_arith $ac_count + 1 && ac_count=$as_val
3568 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3569 # Best one so far, save it but keep looking for a better one
3570 ac_cv_path_EGREP="$ac_path_EGREP"
3571 ac_path_EGREP_max=$ac_count
3573 # 10*(2^10) chars as input seems more than enough
3574 test $ac_count -gt 10 && break
3575 done
3576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577 esac
3579 $ac_path_EGREP_found && break 3
3580 done
3581 done
3582 done
3583 IFS=$as_save_IFS
3584 if test -z "$ac_cv_path_EGREP"; then
3585 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3587 else
3588 ac_cv_path_EGREP=$EGREP
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3594 $as_echo "$ac_cv_path_EGREP" >&6; }
3595 EGREP="$ac_cv_path_EGREP"
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3599 $as_echo_n "checking for ANSI C header files... " >&6; }
3600 if test "${ac_cv_header_stdc+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605 #include <stdlib.h>
3606 #include <stdarg.h>
3607 #include <string.h>
3608 #include <float.h>
3611 main ()
3615 return 0;
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_header_stdc=yes
3620 else
3621 ac_cv_header_stdc=no
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 if test $ac_cv_header_stdc = yes; then
3626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <string.h>
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev/null 2>&1; then :
3635 else
3636 ac_cv_header_stdc=no
3638 rm -f conftest*
3642 if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646 #include <stdlib.h>
3648 _ACEOF
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 $EGREP "free" >/dev/null 2>&1; then :
3652 else
3653 ac_cv_header_stdc=no
3655 rm -f conftest*
3659 if test $ac_cv_header_stdc = yes; then
3660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661 if test "$cross_compiling" = yes; then :
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 #include <ctype.h>
3667 #include <stdlib.h>
3668 #if ((' ' & 0x0FF) == 0x020)
3669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3671 #else
3672 # define ISLOWER(c) \
3673 (('a' <= (c) && (c) <= 'i') \
3674 || ('j' <= (c) && (c) <= 'r') \
3675 || ('s' <= (c) && (c) <= 'z'))
3676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3677 #endif
3679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3681 main ()
3683 int i;
3684 for (i = 0; i < 256; i++)
3685 if (XOR (islower (i), ISLOWER (i))
3686 || toupper (i) != TOUPPER (i))
3687 return 2;
3688 return 0;
3690 _ACEOF
3691 if ac_fn_c_try_run "$LINENO"; then :
3693 else
3694 ac_cv_header_stdc=no
3696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3697 conftest.$ac_objext conftest.beam conftest.$ac_ext
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3703 $as_echo "$ac_cv_header_stdc" >&6; }
3704 if test $ac_cv_header_stdc = yes; then
3706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3710 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3711 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3712 inttypes.h stdint.h unistd.h
3713 do :
3714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3717 eval as_val=\$$as_ac_Header
3718 if test "x$as_val" = x""yes; then :
3719 cat >>confdefs.h <<_ACEOF
3720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3721 _ACEOF
3725 done
3729 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3730 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3731 MINIX=yes
3732 else
3733 MINIX=
3737 if test "$MINIX" = yes; then
3739 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3742 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3745 $as_echo "#define _MINIX 1" >>confdefs.h
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3751 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3752 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3758 # define __EXTENSIONS__ 1
3759 $ac_includes_default
3761 main ()
3765 return 0;
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_safe_to_define___extensions__=yes
3770 else
3771 ac_cv_safe_to_define___extensions__=no
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3776 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3777 test $ac_cv_safe_to_define___extensions__ = yes &&
3778 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3780 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3782 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3784 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3786 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3790 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3792 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3793 # Check whether --enable-vtable-verify was given.
3794 if test "${enable_vtable_verify+set}" = set; then :
3795 enableval=$enable_vtable_verify; case "$enableval" in
3796 yes) enable_vtable_verify=yes ;;
3797 no) enable_vtable_verify=no ;;
3798 *) enable_vtable_verify=no;;
3799 esac
3800 else
3801 enable_vtable_verify=no
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3805 $as_echo "$enable_vtable_verify" >&6; }
3807 # See if supported.
3808 unset VTV_SUPPORTED
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3810 $as_echo_n "checking for host support for vtable verification... " >&6; }
3811 . ${srcdir}/configure.tgt
3812 case ${host} in
3813 *-*-solaris2*)
3814 # libvtv requires init priority support, which depends on the linker
3815 # used on Solaris.
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3817 $as_echo_n "checking for init priority support... " >&6; }
3818 if test "${libvtv_cv_init_priority+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3826 main ()
3828 void ip (void) __attribute__ ((constructor (1)));
3830 return 0;
3832 _ACEOF
3833 if ac_fn_c_try_compile "$LINENO"; then :
3834 libgcc_cv_init_priority=yes
3835 else
3836 libgcc_cv_init_priority=no
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3841 $as_echo "$libvtv_cv_init_priority" >&6; }
3842 if test x$libvtv_cv_init_priority = xno; then
3843 VTV_SUPPORTED=no
3845 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3846 # configure.tgt restricting to libvtv to Solaris 11+.
3848 esac
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3850 $as_echo "$VTV_SUPPORTED" >&6; }
3852 # Decide if it's usable.
3853 use_vtable_verify=no
3854 if test "x$VTV_SUPPORTED" = "xyes"; then
3855 if test "x$enable_vtable_verify" = "xyes"; then
3856 use_vtable_verify=yes
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3858 $as_echo "$as_me: using vtable verification" >&6;}
3861 if test $use_vtable_verify = yes; then
3862 ENABLE_VTABLE_VERIFY_TRUE=
3863 ENABLE_VTABLE_VERIFY_FALSE='#'
3864 else
3865 ENABLE_VTABLE_VERIFY_TRUE='#'
3866 ENABLE_VTABLE_VERIFY_FALSE=
3870 am__api_version='1.11'
3872 # Find a good install program. We prefer a C program (faster),
3873 # so one script is as good as another. But avoid the broken or
3874 # incompatible versions:
3875 # SysV /etc/install, /usr/sbin/install
3876 # SunOS /usr/etc/install
3877 # IRIX /sbin/install
3878 # AIX /bin/install
3879 # AmigaOS /C/install, which installs bootblocks on floppy discs
3880 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3883 # OS/2's system install, which has a completely different semantic
3884 # ./install, which can be erroneously created by make from ./install.sh.
3885 # Reject install programs that cannot install multiple files.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3887 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3888 if test -z "$INSTALL"; then
3889 if test "${ac_cv_path_install+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 # Account for people who put trailing slashes in PATH elements.
3898 case $as_dir/ in #((
3899 ./ | .// | /[cC]/* | \
3900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3901 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3902 /usr/ucb/* ) ;;
3904 # OSF1 and SCO ODT 3.0 have their own names for install.
3905 # Don't use installbsd from OSF since it installs stuff as root
3906 # by default.
3907 for ac_prog in ginstall scoinst install; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3910 if test $ac_prog = install &&
3911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3912 # AIX install. It has an incompatible calling convention.
3914 elif test $ac_prog = install &&
3915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3916 # program-specific install script used by HP pwplus--don't use.
3918 else
3919 rm -rf conftest.one conftest.two conftest.dir
3920 echo one > conftest.one
3921 echo two > conftest.two
3922 mkdir conftest.dir
3923 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3924 test -s conftest.one && test -s conftest.two &&
3925 test -s conftest.dir/conftest.one &&
3926 test -s conftest.dir/conftest.two
3927 then
3928 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3929 break 3
3933 done
3934 done
3936 esac
3938 done
3939 IFS=$as_save_IFS
3941 rm -rf conftest.one conftest.two conftest.dir
3944 if test "${ac_cv_path_install+set}" = set; then
3945 INSTALL=$ac_cv_path_install
3946 else
3947 # As a last resort, use the slow shell script. Don't cache a
3948 # value for INSTALL within a source directory, because that will
3949 # break other packages using the cache if that directory is
3950 # removed, or if the value is a relative name.
3951 INSTALL=$ac_install_sh
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3955 $as_echo "$INSTALL" >&6; }
3957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3958 # It thinks the first close brace ends the variable substitution.
3959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3966 $as_echo_n "checking whether build environment is sane... " >&6; }
3967 # Just in case
3968 sleep 1
3969 echo timestamp > conftest.file
3970 # Reject unsafe characters in $srcdir or the absolute working directory
3971 # name. Accept space and tab only in the latter.
3972 am_lf='
3974 case `pwd` in
3975 *[\\\"\#\$\&\'\`$am_lf]*)
3976 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3977 esac
3978 case $srcdir in
3979 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3980 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3981 esac
3983 # Do `set' in a subshell so we don't clobber the current shell's
3984 # arguments. Must try -L first in case configure is actually a
3985 # symlink; some systems play weird games with the mod time of symlinks
3986 # (eg FreeBSD returns the mod time of the symlink's containing
3987 # directory).
3988 if (
3989 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3990 if test "$*" = "X"; then
3991 # -L didn't work.
3992 set X `ls -t "$srcdir/configure" conftest.file`
3994 rm -f conftest.file
3995 if test "$*" != "X $srcdir/configure conftest.file" \
3996 && test "$*" != "X conftest.file $srcdir/configure"; then
3998 # If neither matched, then we have a broken ls. This can happen
3999 # if, for instance, CONFIG_SHELL is bash and it inherits a
4000 # broken ls alias from the environment. This has actually
4001 # happened. Such a system could not be considered "sane".
4002 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4003 alias in your environment" "$LINENO" 5
4006 test "$2" = conftest.file
4008 then
4009 # Ok.
4011 else
4012 as_fn_error "newly created file is older than distributed files!
4013 Check your system clock" "$LINENO" 5
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4017 test "$program_prefix" != NONE &&
4018 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4019 # Use a double $ so make ignores it.
4020 test "$program_suffix" != NONE &&
4021 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4022 # Double any \ or $.
4023 # By default was `s,x,x', remove it if useless.
4024 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4025 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4027 # expand $ac_aux_dir to an absolute path
4028 am_aux_dir=`cd $ac_aux_dir && pwd`
4030 if test x"${MISSING+set}" != xset; then
4031 case $am_aux_dir in
4032 *\ * | *\ *)
4033 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4035 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4036 esac
4038 # Use eval to expand $SHELL
4039 if eval "$MISSING --run true"; then
4040 am_missing_run="$MISSING --run "
4041 else
4042 am_missing_run=
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4044 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4047 if test x"${install_sh}" != xset; then
4048 case $am_aux_dir in
4049 *\ * | *\ *)
4050 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4052 install_sh="\${SHELL} $am_aux_dir/install-sh"
4053 esac
4056 # Installed binaries are usually stripped using `strip' when the user
4057 # run `make install-strip'. However `strip' might not be the right
4058 # tool to use in cross-compilation environments, therefore Automake
4059 # will honor the `STRIP' environment variable to overrule this program.
4060 if test "$cross_compiling" != no; then
4061 if test -n "$ac_tool_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4063 set dummy ${ac_tool_prefix}strip; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if test "${ac_cv_prog_STRIP+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$STRIP"; then
4070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4083 done
4084 done
4085 IFS=$as_save_IFS
4089 STRIP=$ac_cv_prog_STRIP
4090 if test -n "$STRIP"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4092 $as_echo "$STRIP" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4100 if test -z "$ac_cv_prog_STRIP"; then
4101 ac_ct_STRIP=$STRIP
4102 # Extract the first word of "strip", so it can be a program name with args.
4103 set dummy strip; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -n "$ac_ct_STRIP"; then
4110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_ac_ct_STRIP="strip"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4123 done
4124 done
4125 IFS=$as_save_IFS
4129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4130 if test -n "$ac_ct_STRIP"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4132 $as_echo "$ac_ct_STRIP" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4138 if test "x$ac_ct_STRIP" = x; then
4139 STRIP=":"
4140 else
4141 case $cross_compiling:$ac_tool_warned in
4142 yes:)
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4145 ac_tool_warned=yes ;;
4146 esac
4147 STRIP=$ac_ct_STRIP
4149 else
4150 STRIP="$ac_cv_prog_STRIP"
4154 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4157 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4158 if test -z "$MKDIR_P"; then
4159 if test "${ac_cv_path_mkdir+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in mkdir gmkdir; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4171 'mkdir (GNU coreutils) '* | \
4172 'mkdir (coreutils) '* | \
4173 'mkdir (fileutils) '4.1*)
4174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4175 break 3;;
4176 esac
4177 done
4178 done
4179 done
4180 IFS=$as_save_IFS
4184 if test "${ac_cv_path_mkdir+set}" = set; then
4185 MKDIR_P="$ac_cv_path_mkdir -p"
4186 else
4187 # As a last resort, use the slow shell script. Don't cache a
4188 # value for MKDIR_P within a source directory, because that will
4189 # break other packages using the cache if that directory is
4190 # removed, or if the value is a relative name.
4191 test -d ./--version && rmdir ./--version
4192 MKDIR_P="$ac_install_sh -d"
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4196 $as_echo "$MKDIR_P" >&6; }
4198 mkdir_p="$MKDIR_P"
4199 case $mkdir_p in
4200 [\\/$]* | ?:[\\/]*) ;;
4201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4202 esac
4204 for ac_prog in gawk mawk nawk awk
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_prog_AWK+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$AWK"; then
4214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_AWK="$ac_prog"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 AWK=$ac_cv_prog_AWK
4234 if test -n "$AWK"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4236 $as_echo "$AWK" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4243 test -n "$AWK" && break
4244 done
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4247 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4248 set x ${MAKE-make}
4249 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4250 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 cat >conftest.make <<\_ACEOF
4254 SHELL = /bin/sh
4255 all:
4256 @echo '@@@%%%=$(MAKE)=@@@%%%'
4257 _ACEOF
4258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4260 *@@@%%%=?*=@@@%%%*)
4261 eval ac_cv_prog_make_${ac_make}_set=yes;;
4263 eval ac_cv_prog_make_${ac_make}_set=no;;
4264 esac
4265 rm -f conftest.make
4267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4269 $as_echo "yes" >&6; }
4270 SET_MAKE=
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 SET_MAKE="MAKE=${MAKE-make}"
4277 rm -rf .tst 2>/dev/null
4278 mkdir .tst 2>/dev/null
4279 if test -d .tst; then
4280 am__leading_dot=.
4281 else
4282 am__leading_dot=_
4284 rmdir .tst 2>/dev/null
4286 DEPDIR="${am__leading_dot}deps"
4288 ac_config_commands="$ac_config_commands depfiles"
4291 am_make=${MAKE-make}
4292 cat > confinc << 'END'
4293 am__doit:
4294 @echo this is the am__doit target
4295 .PHONY: am__doit
4297 # If we don't find an include directive, just comment out the code.
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4299 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4300 am__include="#"
4301 am__quote=
4302 _am_result=none
4303 # First try GNU make style include.
4304 echo "include confinc" > confmf
4305 # Ignore all kinds of additional output from `make'.
4306 case `$am_make -s -f confmf 2> /dev/null` in #(
4307 *the\ am__doit\ target*)
4308 am__include=include
4309 am__quote=
4310 _am_result=GNU
4312 esac
4313 # Now try BSD make style include.
4314 if test "$am__include" = "#"; then
4315 echo '.include "confinc"' > confmf
4316 case `$am_make -s -f confmf 2> /dev/null` in #(
4317 *the\ am__doit\ target*)
4318 am__include=.include
4319 am__quote="\""
4320 _am_result=BSD
4322 esac
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4327 $as_echo "$_am_result" >&6; }
4328 rm -f confinc confmf
4330 # Check whether --enable-dependency-tracking was given.
4331 if test "${enable_dependency_tracking+set}" = set; then :
4332 enableval=$enable_dependency_tracking;
4335 if test "x$enable_dependency_tracking" != xno; then
4336 am_depcomp="$ac_aux_dir/depcomp"
4337 AMDEPBACKSLASH='\'
4338 am__nodep='_no'
4340 if test "x$enable_dependency_tracking" != xno; then
4341 AMDEP_TRUE=
4342 AMDEP_FALSE='#'
4343 else
4344 AMDEP_TRUE='#'
4345 AMDEP_FALSE=
4349 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4350 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4351 # is not polluted with repeated "-I."
4352 am__isrc=' -I$(srcdir)'
4353 # test to see if srcdir already configured
4354 if test -f $srcdir/config.status; then
4355 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4359 # test whether we have cygpath
4360 if test -z "$CYGPATH_W"; then
4361 if (cygpath --version) >/dev/null 2>/dev/null; then
4362 CYGPATH_W='cygpath -w'
4363 else
4364 CYGPATH_W=echo
4369 # Define the identity of the package.
4370 PACKAGE='libvtv'
4371 VERSION='1.0'
4374 cat >>confdefs.h <<_ACEOF
4375 #define PACKAGE "$PACKAGE"
4376 _ACEOF
4379 cat >>confdefs.h <<_ACEOF
4380 #define VERSION "$VERSION"
4381 _ACEOF
4383 # Some tools Automake needs.
4385 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4388 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4391 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4394 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4397 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4399 # We need awk for the "check" target. The system "awk" is bad on
4400 # some platforms.
4401 # Always define AMTAR for backward compatibility. Yes, it's still used
4402 # in the wild :-( We should find a proper way to deprecate it ...
4403 AMTAR='$${TAR-tar}'
4405 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4410 depcc="$CC" am_compiler_list=
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413 $as_echo_n "checking dependency style of $depcc... " >&6; }
4414 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4418 # We make a subdir and do the tests there. Otherwise we can end up
4419 # making bogus files that we don't know about and never remove. For
4420 # instance it was reported that on HP-UX the gcc test will end up
4421 # making a dummy file named `D' -- because `-MD' means `put the output
4422 # in D'.
4423 rm -rf conftest.dir
4424 mkdir conftest.dir
4425 # Copy depcomp to subdir because otherwise we won't find it if we're
4426 # using a relative directory.
4427 cp "$am_depcomp" conftest.dir
4428 cd conftest.dir
4429 # We will build objects and dependencies in a subdirectory because
4430 # it helps to detect inapplicable dependency modes. For instance
4431 # both Tru64's cc and ICC support -MD to output dependencies as a
4432 # side effect of compilation, but ICC will put the dependencies in
4433 # the current directory while Tru64 will put them in the object
4434 # directory.
4435 mkdir sub
4437 am_cv_CC_dependencies_compiler_type=none
4438 if test "$am_compiler_list" = ""; then
4439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4441 am__universal=false
4442 case " $depcc " in #(
4443 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4444 esac
4446 for depmode in $am_compiler_list; do
4447 # Setup a source with many dependencies, because some compilers
4448 # like to wrap large dependency lists on column 80 (with \), and
4449 # we should not choose a depcomp mode which is confused by this.
4451 # We need to recreate these files for each test, as the compiler may
4452 # overwrite some of them when testing with obscure command lines.
4453 # This happens at least with the AIX C compiler.
4454 : > sub/conftest.c
4455 for i in 1 2 3 4 5 6; do
4456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4458 # Solaris 8's {/usr,}/bin/sh.
4459 touch sub/conftst$i.h
4460 done
4461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4464 # mode. It turns out that the SunPro C++ compiler does not properly
4465 # handle `-M -o', and we need to detect this. Also, some Intel
4466 # versions had trouble with output in subdirs
4467 am__obj=sub/conftest.${OBJEXT-o}
4468 am__minus_obj="-o $am__obj"
4469 case $depmode in
4470 gcc)
4471 # This depmode causes a compiler race in universal mode.
4472 test "$am__universal" = false || continue
4474 nosideeffect)
4475 # after this tag, mechanisms are not by side-effect, so they'll
4476 # only be used when explicitly requested
4477 if test "x$enable_dependency_tracking" = xyes; then
4478 continue
4479 else
4480 break
4483 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4484 # This compiler won't grok `-c -o', but also, the minuso test has
4485 # not run yet. These depmodes are late enough in the game, and
4486 # so weak that their functioning should not be impacted.
4487 am__obj=conftest.${OBJEXT-o}
4488 am__minus_obj=
4490 none) break ;;
4491 esac
4492 if depmode=$depmode \
4493 source=sub/conftest.c object=$am__obj \
4494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4496 >/dev/null 2>conftest.err &&
4497 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4499 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4501 # icc doesn't choke on unknown options, it will just issue warnings
4502 # or remarks (even with -Werror). So we grep stderr for any message
4503 # that says an option was ignored or not supported.
4504 # When given -MP, icc 7.0 and 7.1 complain thusly:
4505 # icc: Command line warning: ignoring option '-M'; no argument required
4506 # The diagnosis changed in icc 8.0:
4507 # icc: Command line remark: option '-MP' not supported
4508 if (grep 'ignoring option' conftest.err ||
4509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510 am_cv_CC_dependencies_compiler_type=$depmode
4511 break
4514 done
4516 cd ..
4517 rm -rf conftest.dir
4518 else
4519 am_cv_CC_dependencies_compiler_type=none
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4524 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4528 test "x$enable_dependency_tracking" != xno \
4529 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4530 am__fastdepCC_TRUE=
4531 am__fastdepCC_FALSE='#'
4532 else
4533 am__fastdepCC_TRUE='#'
4534 am__fastdepCC_FALSE=
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4541 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4542 # Check whether --enable-maintainer-mode was given.
4543 if test "${enable_maintainer_mode+set}" = set; then :
4544 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4545 else
4546 USE_MAINTAINER_MODE=no
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4550 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4551 if test $USE_MAINTAINER_MODE = yes; then
4552 MAINTAINER_MODE_TRUE=
4553 MAINTAINER_MODE_FALSE='#'
4554 else
4555 MAINTAINER_MODE_TRUE='#'
4556 MAINTAINER_MODE_FALSE=
4559 MAINT=$MAINTAINER_MODE_TRUE
4565 # These need to be absolute paths, yet at the same time need to
4566 # canonicalize only relative paths, because then amd will not unmount
4567 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4568 libvtv_builddir=`${PWDCMD-pwd}`
4569 case $srcdir in
4570 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4571 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4572 esac
4573 toplevel_builddir=${libvtv_builddir}/..
4574 toplevel_srcdir=${libvtv_srcdir}/..
4581 # Calculate toolexeclibdir
4582 # Also toolexecdir, though it's only used in toolexeclibdir
4583 case ${version_specific_libs} in
4584 yes)
4585 # Need the gcc compiler version to know where to install libraries
4586 # and header files if --enable-version-specific-runtime-libs option
4587 # is selected.
4588 toolexecdir='$(libdir)/gcc/$(target_alias)'
4589 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4592 if test -n "$with_cross_host" &&
4593 test x"$with_cross_host" != x"no"; then
4594 # Install a library built with a cross compiler in tooldir, not libdir.
4595 toolexecdir='$(exec_prefix)/$(target_alias)'
4596 toolexeclibdir='$(toolexecdir)/lib'
4597 else
4598 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4599 toolexeclibdir='$(libdir)'
4601 multi_os_directory=`$CC -print-multi-os-directory`
4602 case $multi_os_directory in
4603 .) ;; # Avoid trailing /.
4604 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4605 esac
4607 esac
4612 for ac_func in __secure_getenv
4613 do :
4614 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4615 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4616 cat >>confdefs.h <<_ACEOF
4617 #define HAVE___SECURE_GETENV 1
4618 _ACEOF
4621 done
4625 for ac_func in secure_getenv
4626 do :
4627 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4628 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4629 cat >>confdefs.h <<_ACEOF
4630 #define HAVE_SECURE_GETENV 1
4631 _ACEOF
4634 done
4637 for ac_func in getexecname __fortify_fail
4638 do :
4639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4641 eval as_val=\$$as_ac_var
4642 if test "x$as_val" = x""yes; then :
4643 cat >>confdefs.h <<_ACEOF
4644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4645 _ACEOF
4648 done
4651 # Check for programs.
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4690 $as_echo "$CC" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_CC"; then
4699 ac_ct_CC=$CC
4700 # Extract the first word of "gcc", so it can be a program name with args.
4701 set dummy gcc; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_CC"; then
4708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_CC="gcc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4728 if test -n "$ac_ct_CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730 $as_echo "$ac_ct_CC" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_CC" = x; then
4737 CC=""
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 CC=$ac_ct_CC
4747 else
4748 CC="$ac_cv_prog_CC"
4751 if test -z "$CC"; then
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}cc; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_CC="${ac_tool_prefix}cc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4792 if test -z "$CC"; then
4793 # Extract the first word of "cc", so it can be a program name with args.
4794 set dummy cc; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_CC+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4802 else
4803 ac_prog_rejected=no
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4812 ac_prog_rejected=yes
4813 continue
4815 ac_cv_prog_CC="cc"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4821 IFS=$as_save_IFS
4823 if test $ac_prog_rejected = yes; then
4824 # We found a bogon in the path, so make sure we never use it.
4825 set dummy $ac_cv_prog_CC
4826 shift
4827 if test $# != 0; then
4828 # We chose a different compiler from the bogus one.
4829 # However, it has the same basename, so the bogon will be chosen
4830 # first if we set CC to just the basename; use the full file name.
4831 shift
4832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4848 if test -z "$CC"; then
4849 if test -n "$ac_tool_prefix"; then
4850 for ac_prog in cl.exe
4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_CC+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$CC"; then
4860 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 CC=$ac_cv_prog_CC
4880 if test -n "$CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882 $as_echo "$CC" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$CC" && break
4890 done
4892 if test -z "$CC"; then
4893 ac_ct_CC=$CC
4894 for ac_prog in cl.exe
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$ac_ct_CC"; then
4904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_ac_ct_CC="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4924 if test -n "$ac_ct_CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4926 $as_echo "$ac_ct_CC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 test -n "$ac_ct_CC" && break
4934 done
4936 if test "x$ac_ct_CC" = x; then
4937 CC=""
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 CC=$ac_ct_CC
4952 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error "no acceptable C compiler found in \$PATH
4955 See \`config.log' for more details." "$LINENO" 5; }
4957 # Provide some information about the compiler.
4958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4959 set X $ac_compile
4960 ac_compiler=$2
4961 for ac_option in --version -v -V -qversion; do
4962 { { ac_try="$ac_compiler $ac_option >&5"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968 $as_echo "$ac_try_echo"; } >&5
4969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4970 ac_status=$?
4971 if test -s conftest.err; then
4972 sed '10a\
4973 ... rest of stderr output deleted ...
4974 10q' conftest.err >conftest.er1
4975 cat conftest.er1 >&5
4976 rm -f conftest.er1 conftest.err
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }
4980 done
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4984 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4991 main ()
4993 #ifndef __GNUC__
4994 choke me
4995 #endif
4998 return 0;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_compiler_gnu=yes
5003 else
5004 ac_compiler_gnu=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5012 if test $ac_compiler_gnu = yes; then
5013 GCC=yes
5014 else
5015 GCC=
5017 ac_test_CFLAGS=${CFLAGS+set}
5018 ac_save_CFLAGS=$CFLAGS
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5021 if test "${ac_cv_prog_cc_g+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 ac_save_c_werror_flag=$ac_c_werror_flag
5025 ac_c_werror_flag=yes
5026 ac_cv_prog_cc_g=no
5027 CFLAGS="-g"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5032 main ()
5036 return 0;
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_prog_cc_g=yes
5041 else
5042 CFLAGS=""
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5047 main ()
5051 return 0;
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5056 else
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5058 CFLAGS="-g"
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 main ()
5067 return 0;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_g=yes
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 ac_c_werror_flag=$ac_save_c_werror_flag
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5081 $as_echo "$ac_cv_prog_cc_g" >&6; }
5082 if test "$ac_test_CFLAGS" = set; then
5083 CFLAGS=$ac_save_CFLAGS
5084 elif test $ac_cv_prog_cc_g = yes; then
5085 if test "$GCC" = yes; then
5086 CFLAGS="-g -O2"
5087 else
5088 CFLAGS="-g"
5090 else
5091 if test "$GCC" = yes; then
5092 CFLAGS="-O2"
5093 else
5094 CFLAGS=
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5099 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_cv_prog_cc_c89=no
5103 ac_save_CC=$CC
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 #include <stdarg.h>
5107 #include <stdio.h>
5108 #include <sys/types.h>
5109 #include <sys/stat.h>
5110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5111 struct buf { int x; };
5112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5113 static char *e (p, i)
5114 char **p;
5115 int i;
5117 return p[i];
5119 static char *f (char * (*g) (char **, int), char **p, ...)
5121 char *s;
5122 va_list v;
5123 va_start (v,p);
5124 s = g (p, va_arg (v,int));
5125 va_end (v);
5126 return s;
5129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5130 function prototypes and stuff, but not '\xHH' hex character constants.
5131 These don't provoke an error unfortunately, instead are silently treated
5132 as 'x'. The following induces an error, until -std is added to get
5133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5134 array size at least. It's necessary to write '\x00'==0 to get something
5135 that's true only with -std. */
5136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5138 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5139 inside strings and character constants. */
5140 #define FOO(x) 'x'
5141 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5143 int test (int i, double x);
5144 struct s1 {int (*f) (int a);};
5145 struct s2 {int (*f) (double a);};
5146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5147 int argc;
5148 char **argv;
5150 main ()
5152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5154 return 0;
5156 _ACEOF
5157 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5160 CC="$ac_save_CC $ac_arg"
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 ac_cv_prog_cc_c89=$ac_arg
5164 rm -f core conftest.err conftest.$ac_objext
5165 test "x$ac_cv_prog_cc_c89" != "xno" && break
5166 done
5167 rm -f conftest.$ac_ext
5168 CC=$ac_save_CC
5171 # AC_CACHE_VAL
5172 case "x$ac_cv_prog_cc_c89" in
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5175 $as_echo "none needed" >&6; } ;;
5176 xno)
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5178 $as_echo "unsupported" >&6; } ;;
5180 CC="$CC $ac_cv_prog_cc_c89"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5182 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5183 esac
5184 if test "x$ac_cv_prog_cc_c89" != xno; then :
5188 ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 ac_ext=cpp
5195 ac_cpp='$CXXCPP $CPPFLAGS'
5196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5199 if test -z "$CXX"; then
5200 if test -n "$CCC"; then
5201 CXX=$CCC
5202 else
5203 if test -n "$ac_tool_prefix"; then
5204 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_CXX+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$CXX"; then
5214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 CXX=$ac_cv_prog_CXX
5234 if test -n "$CXX"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5236 $as_echo "$CXX" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 test -n "$CXX" && break
5244 done
5246 if test -z "$CXX"; then
5247 ac_ct_CXX=$CXX
5248 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$ac_ct_CXX"; then
5258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_CXX="$ac_prog"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5271 done
5272 done
5273 IFS=$as_save_IFS
5277 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5278 if test -n "$ac_ct_CXX"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5280 $as_echo "$ac_ct_CXX" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5287 test -n "$ac_ct_CXX" && break
5288 done
5290 if test "x$ac_ct_CXX" = x; then
5291 CXX="g++"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 CXX=$ac_ct_CXX
5305 # Provide some information about the compiler.
5306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5307 set X $ac_compile
5308 ac_compiler=$2
5309 for ac_option in --version -v -V -qversion; do
5310 { { ac_try="$ac_compiler $ac_option >&5"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5316 $as_echo "$ac_try_echo"; } >&5
5317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5318 ac_status=$?
5319 if test -s conftest.err; then
5320 sed '10a\
5321 ... rest of stderr output deleted ...
5322 10q' conftest.err >conftest.er1
5323 cat conftest.er1 >&5
5324 rm -f conftest.er1 conftest.err
5326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5327 test $ac_status = 0; }
5328 done
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5331 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5332 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5339 main ()
5341 #ifndef __GNUC__
5342 choke me
5343 #endif
5346 return 0;
5348 _ACEOF
5349 if ac_fn_cxx_try_compile "$LINENO"; then :
5350 ac_compiler_gnu=yes
5351 else
5352 ac_compiler_gnu=no
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5359 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5360 if test $ac_compiler_gnu = yes; then
5361 GXX=yes
5362 else
5363 GXX=
5365 ac_test_CXXFLAGS=${CXXFLAGS+set}
5366 ac_save_CXXFLAGS=$CXXFLAGS
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5368 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5369 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5373 ac_cxx_werror_flag=yes
5374 ac_cv_prog_cxx_g=no
5375 CXXFLAGS="-g"
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5380 main ()
5384 return 0;
5386 _ACEOF
5387 if ac_fn_cxx_try_compile "$LINENO"; then :
5388 ac_cv_prog_cxx_g=yes
5389 else
5390 CXXFLAGS=""
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5395 main ()
5399 return 0;
5401 _ACEOF
5402 if ac_fn_cxx_try_compile "$LINENO"; then :
5404 else
5405 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5406 CXXFLAGS="-g"
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 main ()
5415 return 0;
5417 _ACEOF
5418 if ac_fn_cxx_try_compile "$LINENO"; then :
5419 ac_cv_prog_cxx_g=yes
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5429 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5430 if test "$ac_test_CXXFLAGS" = set; then
5431 CXXFLAGS=$ac_save_CXXFLAGS
5432 elif test $ac_cv_prog_cxx_g = yes; then
5433 if test "$GXX" = yes; then
5434 CXXFLAGS="-g -O2"
5435 else
5436 CXXFLAGS="-g"
5438 else
5439 if test "$GXX" = yes; then
5440 CXXFLAGS="-O2"
5441 else
5442 CXXFLAGS=
5445 ac_ext=c
5446 ac_cpp='$CPP $CPPFLAGS'
5447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5451 depcc="$CXX" am_compiler_list=
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5454 $as_echo_n "checking dependency style of $depcc... " >&6; }
5455 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5459 # We make a subdir and do the tests there. Otherwise we can end up
5460 # making bogus files that we don't know about and never remove. For
5461 # instance it was reported that on HP-UX the gcc test will end up
5462 # making a dummy file named `D' -- because `-MD' means `put the output
5463 # in D'.
5464 rm -rf conftest.dir
5465 mkdir conftest.dir
5466 # Copy depcomp to subdir because otherwise we won't find it if we're
5467 # using a relative directory.
5468 cp "$am_depcomp" conftest.dir
5469 cd conftest.dir
5470 # We will build objects and dependencies in a subdirectory because
5471 # it helps to detect inapplicable dependency modes. For instance
5472 # both Tru64's cc and ICC support -MD to output dependencies as a
5473 # side effect of compilation, but ICC will put the dependencies in
5474 # the current directory while Tru64 will put them in the object
5475 # directory.
5476 mkdir sub
5478 am_cv_CXX_dependencies_compiler_type=none
5479 if test "$am_compiler_list" = ""; then
5480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5482 am__universal=false
5483 case " $depcc " in #(
5484 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5485 esac
5487 for depmode in $am_compiler_list; do
5488 # Setup a source with many dependencies, because some compilers
5489 # like to wrap large dependency lists on column 80 (with \), and
5490 # we should not choose a depcomp mode which is confused by this.
5492 # We need to recreate these files for each test, as the compiler may
5493 # overwrite some of them when testing with obscure command lines.
5494 # This happens at least with the AIX C compiler.
5495 : > sub/conftest.c
5496 for i in 1 2 3 4 5 6; do
5497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5499 # Solaris 8's {/usr,}/bin/sh.
5500 touch sub/conftst$i.h
5501 done
5502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5505 # mode. It turns out that the SunPro C++ compiler does not properly
5506 # handle `-M -o', and we need to detect this. Also, some Intel
5507 # versions had trouble with output in subdirs
5508 am__obj=sub/conftest.${OBJEXT-o}
5509 am__minus_obj="-o $am__obj"
5510 case $depmode in
5511 gcc)
5512 # This depmode causes a compiler race in universal mode.
5513 test "$am__universal" = false || continue
5515 nosideeffect)
5516 # after this tag, mechanisms are not by side-effect, so they'll
5517 # only be used when explicitly requested
5518 if test "x$enable_dependency_tracking" = xyes; then
5519 continue
5520 else
5521 break
5524 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5525 # This compiler won't grok `-c -o', but also, the minuso test has
5526 # not run yet. These depmodes are late enough in the game, and
5527 # so weak that their functioning should not be impacted.
5528 am__obj=conftest.${OBJEXT-o}
5529 am__minus_obj=
5531 none) break ;;
5532 esac
5533 if depmode=$depmode \
5534 source=sub/conftest.c object=$am__obj \
5535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5536 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5537 >/dev/null 2>conftest.err &&
5538 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5539 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5540 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5541 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5542 # icc doesn't choke on unknown options, it will just issue warnings
5543 # or remarks (even with -Werror). So we grep stderr for any message
5544 # that says an option was ignored or not supported.
5545 # When given -MP, icc 7.0 and 7.1 complain thusly:
5546 # icc: Command line warning: ignoring option '-M'; no argument required
5547 # The diagnosis changed in icc 8.0:
5548 # icc: Command line remark: option '-MP' not supported
5549 if (grep 'ignoring option' conftest.err ||
5550 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5551 am_cv_CXX_dependencies_compiler_type=$depmode
5552 break
5555 done
5557 cd ..
5558 rm -rf conftest.dir
5559 else
5560 am_cv_CXX_dependencies_compiler_type=none
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5565 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5566 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5569 test "x$enable_dependency_tracking" != xno \
5570 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5571 am__fastdepCXX_TRUE=
5572 am__fastdepCXX_FALSE='#'
5573 else
5574 am__fastdepCXX_TRUE='#'
5575 am__fastdepCXX_FALSE=
5581 if test "x$CC" != xcc; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5583 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5586 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5588 set dummy $CC; ac_cc=`$as_echo "$2" |
5589 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5590 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5597 main ()
5601 return 0;
5603 _ACEOF
5604 # Make sure it works both with $CC and with simple cc.
5605 # We do the test twice because some compilers refuse to overwrite an
5606 # existing .o file with -o, though they will create one.
5607 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5608 rm -f conftest2.*
5609 if { { case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5614 $as_echo "$ac_try_echo"; } >&5
5615 (eval "$ac_try") 2>&5
5616 ac_status=$?
5617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618 test $ac_status = 0; } &&
5619 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5624 $as_echo "$ac_try_echo"; } >&5
5625 (eval "$ac_try") 2>&5
5626 ac_status=$?
5627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628 test $ac_status = 0; };
5629 then
5630 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5631 if test "x$CC" != xcc; then
5632 # Test first that cc exists at all.
5633 if { ac_try='cc -c conftest.$ac_ext >&5'
5634 { { case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5639 $as_echo "$ac_try_echo"; } >&5
5640 (eval "$ac_try") 2>&5
5641 ac_status=$?
5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643 test $ac_status = 0; }; }; then
5644 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5645 rm -f conftest2.*
5646 if { { case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; } &&
5656 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5661 $as_echo "$ac_try_echo"; } >&5
5662 (eval "$ac_try") 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; };
5666 then
5667 # cc works too.
5669 else
5670 # cc exists but doesn't like -o.
5671 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5675 else
5676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5678 rm -f core conftest*
5681 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5683 $as_echo "yes" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5688 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5692 # FIXME: we rely on the cache variable name because
5693 # there is no other way.
5694 set dummy $CC
5695 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5696 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5697 if test "$am_t" != yes; then
5698 # Losing compiler, so override with the script.
5699 # FIXME: It is wrong to rewrite CC.
5700 # But if we don't then we get into trouble of one sort or another.
5701 # A longer-term fix would be to have automake use am__CC in this case,
5702 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5703 CC="$am_aux_dir/compile $CC"
5711 # Newer automakes demand CCAS and CCASFLAGS.
5712 : ${CCAS='$(CC)'}
5713 : ${CCASFLAGS='$(CFLAGS)'}
5717 if test -n "$ac_tool_prefix"; then
5718 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5719 set dummy ${ac_tool_prefix}as; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_prog_AS+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$AS"; then
5726 ac_cv_prog_AS="$AS" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735 ac_cv_prog_AS="${ac_tool_prefix}as"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5739 done
5740 done
5741 IFS=$as_save_IFS
5745 AS=$ac_cv_prog_AS
5746 if test -n "$AS"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5748 $as_echo "$AS" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5756 if test -z "$ac_cv_prog_AS"; then
5757 ac_ct_AS=$AS
5758 # Extract the first word of "as", so it can be a program name with args.
5759 set dummy as; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 if test -n "$ac_ct_AS"; then
5766 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_ac_ct_AS="as"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5779 done
5780 done
5781 IFS=$as_save_IFS
5785 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5786 if test -n "$ac_ct_AS"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5788 $as_echo "$ac_ct_AS" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5794 if test "x$ac_ct_AS" = x; then
5795 AS=""
5796 else
5797 case $cross_compiling:$ac_tool_warned in
5798 yes:)
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801 ac_tool_warned=yes ;;
5802 esac
5803 AS=$ac_ct_AS
5805 else
5806 AS="$ac_cv_prog_AS"
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}ar; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if test "${ac_cv_prog_AR+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test -n "$AR"; then
5818 ac_cv_prog_AR="$AR" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_AR="${ac_tool_prefix}ar"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5831 done
5832 done
5833 IFS=$as_save_IFS
5837 AR=$ac_cv_prog_AR
5838 if test -n "$AR"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5840 $as_echo "$AR" >&6; }
5841 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5848 if test -z "$ac_cv_prog_AR"; then
5849 ac_ct_AR=$AR
5850 # Extract the first word of "ar", so it can be a program name with args.
5851 set dummy ar; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$ac_ct_AR"; then
5858 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_AR="ar"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5871 done
5872 done
5873 IFS=$as_save_IFS
5877 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5878 if test -n "$ac_ct_AR"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5880 $as_echo "$ac_ct_AR" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5886 if test "x$ac_ct_AR" = x; then
5887 AR=""
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890 yes:)
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893 ac_tool_warned=yes ;;
5894 esac
5895 AR=$ac_ct_AR
5897 else
5898 AR="$ac_cv_prog_AR"
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5923 done
5924 done
5925 IFS=$as_save_IFS
5929 RANLIB=$ac_cv_prog_RANLIB
5930 if test -n "$RANLIB"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5932 $as_echo "$RANLIB" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5940 if test -z "$ac_cv_prog_RANLIB"; then
5941 ac_ct_RANLIB=$RANLIB
5942 # Extract the first word of "ranlib", so it can be a program name with args.
5943 set dummy ranlib; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$ac_ct_RANLIB"; then
5950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_ac_ct_RANLIB="ranlib"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5963 done
5964 done
5965 IFS=$as_save_IFS
5969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5970 if test -n "$ac_ct_RANLIB"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5972 $as_echo "$ac_ct_RANLIB" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5978 if test "x$ac_ct_RANLIB" = x; then
5979 RANLIB=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 RANLIB=$ac_ct_RANLIB
5989 else
5990 RANLIB="$ac_cv_prog_RANLIB"
5994 # Configure libtool
5995 enable_dlopen=yes
5999 case `pwd` in
6000 *\ * | *\ *)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6002 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6003 esac
6007 macro_version='2.2.7a'
6008 macro_revision='1.3134'
6022 ltmain="$ac_aux_dir/ltmain.sh"
6024 # Backslashify metacharacters that are still active within
6025 # double-quoted strings.
6026 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6028 # Same as above, but do not quote variable references.
6029 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6031 # Sed substitution to delay expansion of an escaped shell variable in a
6032 # double_quote_subst'ed string.
6033 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6035 # Sed substitution to delay expansion of an escaped single quote.
6036 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6038 # Sed substitution to avoid accidental globbing in evaled expressions
6039 no_glob_subst='s/\*/\\\*/g'
6041 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6042 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6043 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6046 $as_echo_n "checking how to print strings... " >&6; }
6047 # Test print first, because it will be a builtin if present.
6048 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6049 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6050 ECHO='print -r --'
6051 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6052 ECHO='printf %s\n'
6053 else
6054 # Use this function as a fallback that always works.
6055 func_fallback_echo ()
6057 eval 'cat <<_LTECHO_EOF
6059 _LTECHO_EOF'
6061 ECHO='func_fallback_echo'
6064 # func_echo_all arg...
6065 # Invoke $ECHO with all args, space-separated.
6066 func_echo_all ()
6068 $ECHO ""
6071 case "$ECHO" in
6072 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6073 $as_echo "printf" >&6; } ;;
6074 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6075 $as_echo "print -r" >&6; } ;;
6076 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6077 $as_echo "cat" >&6; } ;;
6078 esac
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6094 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6095 if test "${ac_cv_path_SED+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6099 for ac_i in 1 2 3 4 5 6 7; do
6100 ac_script="$ac_script$as_nl$ac_script"
6101 done
6102 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6103 { ac_script=; unset ac_script;}
6104 if test -z "$SED"; then
6105 ac_path_SED_found=false
6106 # Loop through the user's path and test for each of PROGNAME-LIST
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_prog in sed gsed; do
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6115 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6116 # Check for GNU ac_path_SED and select it if it is found.
6117 # Check for GNU $ac_path_SED
6118 case `"$ac_path_SED" --version 2>&1` in
6119 *GNU*)
6120 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6122 ac_count=0
6123 $as_echo_n 0123456789 >"conftest.in"
6124 while :
6126 cat "conftest.in" "conftest.in" >"conftest.tmp"
6127 mv "conftest.tmp" "conftest.in"
6128 cp "conftest.in" "conftest.nl"
6129 $as_echo '' >> "conftest.nl"
6130 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6132 as_fn_arith $ac_count + 1 && ac_count=$as_val
6133 if test $ac_count -gt ${ac_path_SED_max-0}; then
6134 # Best one so far, save it but keep looking for a better one
6135 ac_cv_path_SED="$ac_path_SED"
6136 ac_path_SED_max=$ac_count
6138 # 10*(2^10) chars as input seems more than enough
6139 test $ac_count -gt 10 && break
6140 done
6141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6142 esac
6144 $ac_path_SED_found && break 3
6145 done
6146 done
6147 done
6148 IFS=$as_save_IFS
6149 if test -z "$ac_cv_path_SED"; then
6150 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6152 else
6153 ac_cv_path_SED=$SED
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6158 $as_echo "$ac_cv_path_SED" >&6; }
6159 SED="$ac_cv_path_SED"
6160 rm -f conftest.sed
6162 test -z "$SED" && SED=sed
6163 Xsed="$SED -e 1s/^X//"
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6176 $as_echo_n "checking for fgrep... " >&6; }
6177 if test "${ac_cv_path_FGREP+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6181 then ac_cv_path_FGREP="$GREP -F"
6182 else
6183 if test -z "$FGREP"; then
6184 ac_path_FGREP_found=false
6185 # Loop through the user's path and test for each of PROGNAME-LIST
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_prog in fgrep; do
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6194 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6195 # Check for GNU ac_path_FGREP and select it if it is found.
6196 # Check for GNU $ac_path_FGREP
6197 case `"$ac_path_FGREP" --version 2>&1` in
6198 *GNU*)
6199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6201 ac_count=0
6202 $as_echo_n 0123456789 >"conftest.in"
6203 while :
6205 cat "conftest.in" "conftest.in" >"conftest.tmp"
6206 mv "conftest.tmp" "conftest.in"
6207 cp "conftest.in" "conftest.nl"
6208 $as_echo 'FGREP' >> "conftest.nl"
6209 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6211 as_fn_arith $ac_count + 1 && ac_count=$as_val
6212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6213 # Best one so far, save it but keep looking for a better one
6214 ac_cv_path_FGREP="$ac_path_FGREP"
6215 ac_path_FGREP_max=$ac_count
6217 # 10*(2^10) chars as input seems more than enough
6218 test $ac_count -gt 10 && break
6219 done
6220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6221 esac
6223 $ac_path_FGREP_found && break 3
6224 done
6225 done
6226 done
6227 IFS=$as_save_IFS
6228 if test -z "$ac_cv_path_FGREP"; then
6229 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6231 else
6232 ac_cv_path_FGREP=$FGREP
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6238 $as_echo "$ac_cv_path_FGREP" >&6; }
6239 FGREP="$ac_cv_path_FGREP"
6242 test -z "$GREP" && GREP=grep
6262 # Check whether --with-gnu-ld was given.
6263 if test "${with_gnu_ld+set}" = set; then :
6264 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6265 else
6266 with_gnu_ld=no
6269 ac_prog=ld
6270 if test "$GCC" = yes; then
6271 # Check if gcc -print-prog-name=ld gives a path.
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6273 $as_echo_n "checking for ld used by $CC... " >&6; }
6274 case $host in
6275 *-*-mingw*)
6276 # gcc leaves a trailing carriage return which upsets mingw
6277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6280 esac
6281 case $ac_prog in
6282 # Accept absolute paths.
6283 [\\/]* | ?:[\\/]*)
6284 re_direlt='/[^/][^/]*/\.\./'
6285 # Canonicalize the pathname of ld
6286 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6287 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6288 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6289 done
6290 test -z "$LD" && LD="$ac_prog"
6293 # If it fails, then pretend we aren't using GCC.
6294 ac_prog=ld
6297 # If it is relative, then search for the first ld in PATH.
6298 with_gnu_ld=unknown
6300 esac
6301 elif test "$with_gnu_ld" = yes; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6303 $as_echo_n "checking for GNU ld... " >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6306 $as_echo_n "checking for non-GNU ld... " >&6; }
6308 if test "${lt_cv_path_LD+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -z "$LD"; then
6312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6313 for ac_dir in $PATH; do
6314 IFS="$lt_save_ifs"
6315 test -z "$ac_dir" && ac_dir=.
6316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6317 lt_cv_path_LD="$ac_dir/$ac_prog"
6318 # Check to see if the program is GNU ld. I'd rather use --version,
6319 # but apparently some variants of GNU ld only accept -v.
6320 # Break only if it was the GNU/non-GNU ld that we prefer.
6321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6322 *GNU* | *'with BFD'*)
6323 test "$with_gnu_ld" != no && break
6326 test "$with_gnu_ld" != yes && break
6328 esac
6330 done
6331 IFS="$lt_save_ifs"
6332 else
6333 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6337 LD="$lt_cv_path_LD"
6338 if test -n "$LD"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6340 $as_echo "$LD" >&6; }
6341 else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6345 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6347 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6348 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6352 case `$LD -v 2>&1 </dev/null` in
6353 *GNU* | *'with BFD'*)
6354 lt_cv_prog_gnu_ld=yes
6357 lt_cv_prog_gnu_ld=no
6359 esac
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6362 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6363 with_gnu_ld=$lt_cv_prog_gnu_ld
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6374 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6375 if test "${lt_cv_path_NM+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$NM"; then
6379 # Let the user override the test.
6380 lt_cv_path_NM="$NM"
6381 else
6382 lt_nm_to_check="${ac_tool_prefix}nm"
6383 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6384 lt_nm_to_check="$lt_nm_to_check nm"
6386 for lt_tmp_nm in $lt_nm_to_check; do
6387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6388 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6389 IFS="$lt_save_ifs"
6390 test -z "$ac_dir" && ac_dir=.
6391 tmp_nm="$ac_dir/$lt_tmp_nm"
6392 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6393 # Check to see if the nm accepts a BSD-compat flag.
6394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6395 # nm: unknown option "B" ignored
6396 # Tru64's nm complains that /dev/null is an invalid object file
6397 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6398 */dev/null* | *'Invalid file or object type'*)
6399 lt_cv_path_NM="$tmp_nm -B"
6400 break
6403 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6404 */dev/null*)
6405 lt_cv_path_NM="$tmp_nm -p"
6406 break
6409 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6410 continue # so that we can try to find one that supports BSD flags
6412 esac
6414 esac
6416 done
6417 IFS="$lt_save_ifs"
6418 done
6419 : ${lt_cv_path_NM=no}
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6423 $as_echo "$lt_cv_path_NM" >&6; }
6424 if test "$lt_cv_path_NM" != "no"; then
6425 NM="$lt_cv_path_NM"
6426 else
6427 # Didn't find any BSD compatible name lister, look for dumpbin.
6428 if test -n "$DUMPBIN"; then :
6429 # Let the user override the test.
6430 else
6431 if test -n "$ac_tool_prefix"; then
6432 for ac_prog in dumpbin "link -dump"
6434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 if test -n "$DUMPBIN"; then
6442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6455 done
6456 done
6457 IFS=$as_save_IFS
6461 DUMPBIN=$ac_cv_prog_DUMPBIN
6462 if test -n "$DUMPBIN"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6464 $as_echo "$DUMPBIN" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6471 test -n "$DUMPBIN" && break
6472 done
6474 if test -z "$DUMPBIN"; then
6475 ac_ct_DUMPBIN=$DUMPBIN
6476 for ac_prog in dumpbin "link -dump"
6478 # Extract the first word of "$ac_prog", so it can be a program name with args.
6479 set dummy $ac_prog; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_DUMPBIN"; then
6486 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6499 done
6500 done
6501 IFS=$as_save_IFS
6505 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6506 if test -n "$ac_ct_DUMPBIN"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6508 $as_echo "$ac_ct_DUMPBIN" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6515 test -n "$ac_ct_DUMPBIN" && break
6516 done
6518 if test "x$ac_ct_DUMPBIN" = x; then
6519 DUMPBIN=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 DUMPBIN=$ac_ct_DUMPBIN
6531 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6532 *COFF*)
6533 DUMPBIN="$DUMPBIN -symbols"
6536 DUMPBIN=:
6538 esac
6541 if test "$DUMPBIN" != ":"; then
6542 NM="$DUMPBIN"
6545 test -z "$NM" && NM=nm
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6553 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6554 if test "${lt_cv_nm_interface+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 lt_cv_nm_interface="BSD nm"
6558 echo "int some_variable = 0;" > conftest.$ac_ext
6559 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6560 (eval "$ac_compile" 2>conftest.err)
6561 cat conftest.err >&5
6562 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6564 cat conftest.err >&5
6565 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6566 cat conftest.out >&5
6567 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6568 lt_cv_nm_interface="MS dumpbin"
6570 rm -f conftest*
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6573 $as_echo "$lt_cv_nm_interface" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6576 $as_echo_n "checking whether ln -s works... " >&6; }
6577 LN_S=$as_ln_s
6578 if test "$LN_S" = "ln -s"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6580 $as_echo "yes" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6583 $as_echo "no, using $LN_S" >&6; }
6586 # find the maximum length of command line arguments
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6588 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6589 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6593 teststring="ABCD"
6595 case $build_os in
6596 msdosdjgpp*)
6597 # On DJGPP, this test can blow up pretty badly due to problems in libc
6598 # (any single argument exceeding 2000 bytes causes a buffer overrun
6599 # during glob expansion). Even if it were fixed, the result of this
6600 # check would be larger than it should be.
6601 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6604 gnu*)
6605 # Under GNU Hurd, this test is not required because there is
6606 # no limit to the length of command line arguments.
6607 # Libtool will interpret -1 as no limit whatsoever
6608 lt_cv_sys_max_cmd_len=-1;
6611 cygwin* | mingw* | cegcc*)
6612 # On Win9x/ME, this test blows up -- it succeeds, but takes
6613 # about 5 minutes as the teststring grows exponentially.
6614 # Worse, since 9x/ME are not pre-emptively multitasking,
6615 # you end up with a "frozen" computer, even though with patience
6616 # the test eventually succeeds (with a max line length of 256k).
6617 # Instead, let's just punt: use the minimum linelength reported by
6618 # all of the supported platforms: 8192 (on NT/2K/XP).
6619 lt_cv_sys_max_cmd_len=8192;
6622 mint*)
6623 # On MiNT this can take a long time and run out of memory.
6624 lt_cv_sys_max_cmd_len=8192;
6627 amigaos*)
6628 # On AmigaOS with pdksh, this test takes hours, literally.
6629 # So we just punt and use a minimum line length of 8192.
6630 lt_cv_sys_max_cmd_len=8192;
6633 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6634 # This has been around since 386BSD, at least. Likely further.
6635 if test -x /sbin/sysctl; then
6636 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6637 elif test -x /usr/sbin/sysctl; then
6638 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6639 else
6640 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6642 # And add a safety zone
6643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6647 interix*)
6648 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6649 lt_cv_sys_max_cmd_len=196608
6652 osf*)
6653 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6654 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6655 # nice to cause kernel panics so lets avoid the loop below.
6656 # First set a reasonable default.
6657 lt_cv_sys_max_cmd_len=16384
6659 if test -x /sbin/sysconfig; then
6660 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6661 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6662 esac
6665 sco3.2v5*)
6666 lt_cv_sys_max_cmd_len=102400
6668 sysv5* | sco5v6* | sysv4.2uw2*)
6669 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6670 if test -n "$kargmax"; then
6671 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6672 else
6673 lt_cv_sys_max_cmd_len=32768
6677 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6678 if test -n "$lt_cv_sys_max_cmd_len"; then
6679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6681 else
6682 # Make teststring a little bigger before we do anything with it.
6683 # a 1K string should be a reasonable start.
6684 for i in 1 2 3 4 5 6 7 8 ; do
6685 teststring=$teststring$teststring
6686 done
6687 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6688 # If test is not a shell built-in, we'll probably end up computing a
6689 # maximum length that is only half of the actual maximum length, but
6690 # we can't tell.
6691 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6692 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6693 test $i != 17 # 1/2 MB should be enough
6695 i=`expr $i + 1`
6696 teststring=$teststring$teststring
6697 done
6698 # Only check the string length outside the loop.
6699 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6700 teststring=
6701 # Add a significant safety factor because C++ compilers can tack on
6702 # massive amounts of additional arguments before passing them to the
6703 # linker. It appears as though 1/2 is a usable value.
6704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6707 esac
6711 if test -n $lt_cv_sys_max_cmd_len ; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6713 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6714 else
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6716 $as_echo "none" >&6; }
6718 max_cmd_len=$lt_cv_sys_max_cmd_len
6725 : ${CP="cp -f"}
6726 : ${MV="mv -f"}
6727 : ${RM="rm -f"}
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6730 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6731 # Try some XSI features
6732 xsi_shell=no
6733 ( _lt_dummy="a/b/c"
6734 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6735 = c,a/b,, \
6736 && eval 'test $(( 1 + 1 )) -eq 2 \
6737 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6738 && xsi_shell=yes
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6740 $as_echo "$xsi_shell" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6744 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6745 lt_shell_append=no
6746 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6747 >/dev/null 2>&1 \
6748 && lt_shell_append=yes
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6750 $as_echo "$lt_shell_append" >&6; }
6753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6754 lt_unset=unset
6755 else
6756 lt_unset=false
6763 # test EBCDIC or ASCII
6764 case `echo X|tr X '\101'` in
6765 A) # ASCII based system
6766 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6767 lt_SP2NL='tr \040 \012'
6768 lt_NL2SP='tr \015\012 \040\040'
6770 *) # EBCDIC based system
6771 lt_SP2NL='tr \100 \n'
6772 lt_NL2SP='tr \r\n \100\100'
6774 esac
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6785 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6786 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 lt_cv_ld_reload_flag='-r'
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6792 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6793 reload_flag=$lt_cv_ld_reload_flag
6794 case $reload_flag in
6795 "" | " "*) ;;
6796 *) reload_flag=" $reload_flag" ;;
6797 esac
6798 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6799 case $host_os in
6800 darwin*)
6801 if test "$GCC" = yes; then
6802 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6803 else
6804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6807 esac
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$OBJDUMP"; then
6826 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6839 done
6840 done
6841 IFS=$as_save_IFS
6845 OBJDUMP=$ac_cv_prog_OBJDUMP
6846 if test -n "$OBJDUMP"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6848 $as_echo "$OBJDUMP" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6856 if test -z "$ac_cv_prog_OBJDUMP"; then
6857 ac_ct_OBJDUMP=$OBJDUMP
6858 # Extract the first word of "objdump", so it can be a program name with args.
6859 set dummy objdump; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$ac_ct_OBJDUMP"; then
6866 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6879 done
6880 done
6881 IFS=$as_save_IFS
6885 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6886 if test -n "$ac_ct_OBJDUMP"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6888 $as_echo "$ac_ct_OBJDUMP" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6894 if test "x$ac_ct_OBJDUMP" = x; then
6895 OBJDUMP="false"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903 OBJDUMP=$ac_ct_OBJDUMP
6905 else
6906 OBJDUMP="$ac_cv_prog_OBJDUMP"
6909 test -z "$OBJDUMP" && OBJDUMP=objdump
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6920 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6921 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 lt_cv_file_magic_cmd='$MAGIC_CMD'
6925 lt_cv_file_magic_test_file=
6926 lt_cv_deplibs_check_method='unknown'
6927 # Need to set the preceding variable on all platforms that support
6928 # interlibrary dependencies.
6929 # 'none' -- dependencies not supported.
6930 # `unknown' -- same as none, but documents that we really don't know.
6931 # 'pass_all' -- all dependencies passed with no checks.
6932 # 'test_compile' -- check by making test program.
6933 # 'file_magic [[regex]]' -- check by looking for files in library path
6934 # which responds to the $file_magic_cmd with a given extended regex.
6935 # If you have `file' or equivalent on your system and you're not sure
6936 # whether `pass_all' will *always* work, you probably want this one.
6938 case $host_os in
6939 aix[4-9]*)
6940 lt_cv_deplibs_check_method=pass_all
6943 beos*)
6944 lt_cv_deplibs_check_method=pass_all
6947 bsdi[45]*)
6948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6949 lt_cv_file_magic_cmd='/usr/bin/file -L'
6950 lt_cv_file_magic_test_file=/shlib/libc.so
6953 cygwin*)
6954 # func_win32_libid is a shell function defined in ltmain.sh
6955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6956 lt_cv_file_magic_cmd='func_win32_libid'
6959 mingw* | pw32*)
6960 # Base MSYS/MinGW do not provide the 'file' command needed by
6961 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6962 # unless we find 'file', for example because we are cross-compiling.
6963 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6964 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6966 lt_cv_file_magic_cmd='func_win32_libid'
6967 else
6968 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6969 lt_cv_file_magic_cmd='$OBJDUMP -f'
6973 cegcc*)
6974 # use the weaker test based on 'objdump'. See mingw*.
6975 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6976 lt_cv_file_magic_cmd='$OBJDUMP -f'
6979 darwin* | rhapsody*)
6980 lt_cv_deplibs_check_method=pass_all
6983 freebsd* | dragonfly*)
6984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6985 case $host_cpu in
6986 i*86 )
6987 # Not sure whether the presence of OpenBSD here was a mistake.
6988 # Let's accept both of them until this is cleared up.
6989 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6990 lt_cv_file_magic_cmd=/usr/bin/file
6991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6993 esac
6994 else
6995 lt_cv_deplibs_check_method=pass_all
6999 gnu*)
7000 lt_cv_deplibs_check_method=pass_all
7003 haiku*)
7004 lt_cv_deplibs_check_method=pass_all
7007 hpux10.20* | hpux11*)
7008 lt_cv_file_magic_cmd=/usr/bin/file
7009 case $host_cpu in
7010 ia64*)
7011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7012 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7014 hppa*64*)
7015 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]'
7016 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7020 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7022 esac
7025 interix[3-9]*)
7026 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7030 irix5* | irix6* | nonstopux*)
7031 case $LD in
7032 *-32|*"-32 ") libmagic=32-bit;;
7033 *-n32|*"-n32 ") libmagic=N32;;
7034 *-64|*"-64 ") libmagic=64-bit;;
7035 *) libmagic=never-match;;
7036 esac
7037 lt_cv_deplibs_check_method=pass_all
7040 # This must be Linux ELF.
7041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7042 lt_cv_deplibs_check_method=pass_all
7045 netbsd*)
7046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7048 else
7049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7053 newos6*)
7054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7055 lt_cv_file_magic_cmd=/usr/bin/file
7056 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7059 *nto* | *qnx*)
7060 lt_cv_deplibs_check_method=pass_all
7063 openbsd*)
7064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7066 else
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7071 osf3* | osf4* | osf5*)
7072 lt_cv_deplibs_check_method=pass_all
7075 rdos*)
7076 lt_cv_deplibs_check_method=pass_all
7079 solaris*)
7080 lt_cv_deplibs_check_method=pass_all
7083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7084 lt_cv_deplibs_check_method=pass_all
7087 sysv4 | sysv4.3*)
7088 case $host_vendor in
7089 motorola)
7090 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]'
7091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7093 ncr)
7094 lt_cv_deplibs_check_method=pass_all
7096 sequent)
7097 lt_cv_file_magic_cmd='/bin/file'
7098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7100 sni)
7101 lt_cv_file_magic_cmd='/bin/file'
7102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7103 lt_cv_file_magic_test_file=/lib/libc.so
7105 siemens)
7106 lt_cv_deplibs_check_method=pass_all
7109 lt_cv_deplibs_check_method=pass_all
7111 esac
7114 tpf*)
7115 lt_cv_deplibs_check_method=pass_all
7117 esac
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7121 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7122 file_magic_cmd=$lt_cv_file_magic_cmd
7123 deplibs_check_method=$lt_cv_deplibs_check_method
7124 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}ar; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_AR+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$AR"; then
7146 ac_cv_prog_AR="$AR" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_AR="${ac_tool_prefix}ar"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7159 done
7160 done
7161 IFS=$as_save_IFS
7165 AR=$ac_cv_prog_AR
7166 if test -n "$AR"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7168 $as_echo "$AR" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7176 if test -z "$ac_cv_prog_AR"; then
7177 ac_ct_AR=$AR
7178 # Extract the first word of "ar", so it can be a program name with args.
7179 set dummy ar; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_AR"; then
7186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_ac_ct_AR="ar"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7199 done
7200 done
7201 IFS=$as_save_IFS
7205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7206 if test -n "$ac_ct_AR"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7208 $as_echo "$ac_ct_AR" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7214 if test "x$ac_ct_AR" = x; then
7215 AR="false"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 AR=$ac_ct_AR
7225 else
7226 AR="$ac_cv_prog_AR"
7229 test -z "$AR" && AR=ar
7230 test -z "$AR_FLAGS" && AR_FLAGS=cru
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}strip; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_STRIP+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test -n "$STRIP"; then
7251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7266 IFS=$as_save_IFS
7270 STRIP=$ac_cv_prog_STRIP
7271 if test -n "$STRIP"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7273 $as_echo "$STRIP" >&6; }
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7281 if test -z "$ac_cv_prog_STRIP"; then
7282 ac_ct_STRIP=$STRIP
7283 # Extract the first word of "strip", so it can be a program name with args.
7284 set dummy strip; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$ac_ct_STRIP"; then
7291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_prog_ac_ct_STRIP="strip"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7304 done
7305 done
7306 IFS=$as_save_IFS
7310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7311 if test -n "$ac_ct_STRIP"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7313 $as_echo "$ac_ct_STRIP" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7319 if test "x$ac_ct_STRIP" = x; then
7320 STRIP=":"
7321 else
7322 case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328 STRIP=$ac_ct_STRIP
7330 else
7331 STRIP="$ac_cv_prog_STRIP"
7334 test -z "$STRIP" && STRIP=:
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 if test -n "$RANLIB"; then
7350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7363 done
7364 done
7365 IFS=$as_save_IFS
7369 RANLIB=$ac_cv_prog_RANLIB
7370 if test -n "$RANLIB"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7372 $as_echo "$RANLIB" >&6; }
7373 else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7380 if test -z "$ac_cv_prog_RANLIB"; then
7381 ac_ct_RANLIB=$RANLIB
7382 # Extract the first word of "ranlib", so it can be a program name with args.
7383 set dummy ranlib; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 if test -n "$ac_ct_RANLIB"; then
7390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_ac_ct_RANLIB="ranlib"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7403 done
7404 done
7405 IFS=$as_save_IFS
7409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7410 if test -n "$ac_ct_RANLIB"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7412 $as_echo "$ac_ct_RANLIB" >&6; }
7413 else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7418 if test "x$ac_ct_RANLIB" = x; then
7419 RANLIB=":"
7420 else
7421 case $cross_compiling:$ac_tool_warned in
7422 yes:)
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7426 esac
7427 RANLIB=$ac_ct_RANLIB
7429 else
7430 RANLIB="$ac_cv_prog_RANLIB"
7433 test -z "$RANLIB" && RANLIB=:
7440 # Determine commands to create old-style static archives.
7441 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7442 old_postinstall_cmds='chmod 644 $oldlib'
7443 old_postuninstall_cmds=
7445 if test -n "$RANLIB"; then
7446 case $host_os in
7447 openbsd*)
7448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7451 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7453 esac
7454 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7457 case $host_os in
7458 darwin*)
7459 lock_old_archive_extraction=yes ;;
7461 lock_old_archive_extraction=no ;;
7462 esac
7502 # If no C compiler was specified, use CC.
7503 LTCC=${LTCC-"$CC"}
7505 # If no C compiler flags were specified, use CFLAGS.
7506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7508 # Allow CC to be a program name with arguments.
7509 compiler=$CC
7512 # Check for command to grab the raw symbol name followed by C symbol from nm.
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7514 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7515 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7519 # These are sane defaults that work on at least a few old systems.
7520 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7522 # Character class describing NM global symbol codes.
7523 symcode='[BCDEGRST]'
7525 # Regexp to match symbols that can be accessed directly from C.
7526 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7528 # Define system-specific variables.
7529 case $host_os in
7530 aix*)
7531 symcode='[BCDT]'
7533 cygwin* | mingw* | pw32* | cegcc*)
7534 symcode='[ABCDGISTW]'
7536 hpux*)
7537 if test "$host_cpu" = ia64; then
7538 symcode='[ABCDEGRST]'
7541 irix* | nonstopux*)
7542 symcode='[BCDEGRST]'
7544 osf*)
7545 symcode='[BCDEGQRST]'
7547 solaris*)
7548 symcode='[BDRT]'
7550 sco3.2v5*)
7551 symcode='[DT]'
7553 sysv4.2uw2*)
7554 symcode='[DT]'
7556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7557 symcode='[ABDT]'
7559 sysv4)
7560 symcode='[DFNSTU]'
7562 esac
7564 # If we're using GNU nm, then use its standard symbol codes.
7565 case `$NM -V 2>&1` in
7566 *GNU* | *'with BFD'*)
7567 symcode='[ABCDGIRSTW]' ;;
7568 esac
7570 # Transform an extracted symbol line into a proper C declaration.
7571 # Some systems (esp. on ia64) link data and code symbols differently,
7572 # so use this general approach.
7573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7575 # Transform an extracted symbol line into symbol name and symbol address
7576 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7577 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'"
7579 # Handle CRLF in mingw tool chain
7580 opt_cr=
7581 case $build_os in
7582 mingw*)
7583 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7585 esac
7587 # Try without a prefix underscore, then with it.
7588 for ac_symprfx in "" "_"; do
7590 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7591 symxfrm="\\1 $ac_symprfx\\2 \\2"
7593 # Write the raw and C identifiers.
7594 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7595 # Fake it for dumpbin and say T for any non-static function
7596 # and D for any global variable.
7597 # Also find C++ and __fastcall symbols from MSVC++,
7598 # which start with @ or ?.
7599 lt_cv_sys_global_symbol_pipe="$AWK '"\
7600 " {last_section=section; section=\$ 3};"\
7601 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7602 " \$ 0!~/External *\|/{next};"\
7603 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7604 " {if(hide[section]) next};"\
7605 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7606 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7607 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7608 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7609 " ' prfx=^$ac_symprfx"
7610 else
7611 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7614 # Check to see that the pipe works correctly.
7615 pipe_works=no
7617 rm -f conftest*
7618 cat > conftest.$ac_ext <<_LT_EOF
7619 #ifdef __cplusplus
7620 extern "C" {
7621 #endif
7622 char nm_test_var;
7623 void nm_test_func(void);
7624 void nm_test_func(void){}
7625 #ifdef __cplusplus
7627 #endif
7628 int main(){nm_test_var='a';nm_test_func();return(0);}
7629 _LT_EOF
7631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635 test $ac_status = 0; }; then
7636 # Now try to grab the symbols.
7637 nlist=conftest.nm
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7639 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7640 ac_status=$?
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; } && test -s "$nlist"; then
7643 # Try sorting and uniquifying the output.
7644 if sort "$nlist" | uniq > "$nlist"T; then
7645 mv -f "$nlist"T "$nlist"
7646 else
7647 rm -f "$nlist"T
7650 # Make sure that we snagged all the symbols we need.
7651 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7652 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7653 cat <<_LT_EOF > conftest.$ac_ext
7654 #ifdef __cplusplus
7655 extern "C" {
7656 #endif
7658 _LT_EOF
7659 # Now generate the symbol file.
7660 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7662 cat <<_LT_EOF >> conftest.$ac_ext
7664 /* The mapping between symbol names and symbols. */
7665 const struct {
7666 const char *name;
7667 void *address;
7669 lt__PROGRAM__LTX_preloaded_symbols[] =
7671 { "@PROGRAM@", (void *) 0 },
7672 _LT_EOF
7673 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7674 cat <<\_LT_EOF >> conftest.$ac_ext
7675 {0, (void *) 0}
7678 /* This works around a problem in FreeBSD linker */
7679 #ifdef FREEBSD_WORKAROUND
7680 static const void *lt_preloaded_setup() {
7681 return lt__PROGRAM__LTX_preloaded_symbols;
7683 #endif
7685 #ifdef __cplusplus
7687 #endif
7688 _LT_EOF
7689 # Now try linking the two files.
7690 mv conftest.$ac_objext conftstm.$ac_objext
7691 lt_save_LIBS="$LIBS"
7692 lt_save_CFLAGS="$CFLAGS"
7693 LIBS="conftstm.$ac_objext"
7694 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7696 (eval $ac_link) 2>&5
7697 ac_status=$?
7698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7699 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7700 pipe_works=yes
7702 LIBS="$lt_save_LIBS"
7703 CFLAGS="$lt_save_CFLAGS"
7704 else
7705 echo "cannot find nm_test_func in $nlist" >&5
7707 else
7708 echo "cannot find nm_test_var in $nlist" >&5
7710 else
7711 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7713 else
7714 echo "$progname: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7717 rm -rf conftest* conftst*
7719 # Do not use the global_symbol_pipe unless it works.
7720 if test "$pipe_works" = yes; then
7721 break
7722 else
7723 lt_cv_sys_global_symbol_pipe=
7725 done
7729 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7730 lt_cv_sys_global_symbol_to_cdecl=
7732 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7734 $as_echo "failed" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7737 $as_echo "ok" >&6; }
7761 # Check whether --enable-libtool-lock was given.
7762 if test "${enable_libtool_lock+set}" = set; then :
7763 enableval=$enable_libtool_lock;
7766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7768 # Some flags need to be propagated to the compiler or linker for good
7769 # libtool support.
7770 case $host in
7771 ia64-*-hpux*)
7772 # Find out which ABI we are using.
7773 echo 'int i;' > conftest.$ac_ext
7774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7775 (eval $ac_compile) 2>&5
7776 ac_status=$?
7777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7778 test $ac_status = 0; }; then
7779 case `/usr/bin/file conftest.$ac_objext` in
7780 *ELF-32*)
7781 HPUX_IA64_MODE="32"
7783 *ELF-64*)
7784 HPUX_IA64_MODE="64"
7786 esac
7788 rm -rf conftest*
7790 *-*-irix6*)
7791 # Find out which ABI we are using.
7792 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7794 (eval $ac_compile) 2>&5
7795 ac_status=$?
7796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797 test $ac_status = 0; }; then
7798 if test "$lt_cv_prog_gnu_ld" = yes; then
7799 case `/usr/bin/file conftest.$ac_objext` in
7800 *32-bit*)
7801 LD="${LD-ld} -melf32bsmip"
7803 *N32*)
7804 LD="${LD-ld} -melf32bmipn32"
7806 *64-bit*)
7807 LD="${LD-ld} -melf64bmip"
7809 esac
7810 else
7811 case `/usr/bin/file conftest.$ac_objext` in
7812 *32-bit*)
7813 LD="${LD-ld} -32"
7815 *N32*)
7816 LD="${LD-ld} -n32"
7818 *64-bit*)
7819 LD="${LD-ld} -64"
7821 esac
7824 rm -rf conftest*
7827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7829 # Find out which ABI we are using.
7830 echo 'int i;' > conftest.$ac_ext
7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832 (eval $ac_compile) 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; then
7836 case `/usr/bin/file conftest.o` in
7837 *32-bit*)
7838 case $host in
7839 x86_64-*kfreebsd*-gnu)
7840 LD="${LD-ld} -m elf_i386_fbsd"
7842 x86_64-*linux*)
7843 case `/usr/bin/file conftest.o` in
7844 *x86-64*)
7845 LD="${LD-ld} -m elf32_x86_64"
7848 LD="${LD-ld} -m elf_i386"
7850 esac
7852 powerpc64le-*linux*)
7853 LD="${LD-ld} -m elf32lppclinux"
7855 powerpc64-*linux*)
7856 LD="${LD-ld} -m elf32ppclinux"
7858 s390x-*linux*)
7859 LD="${LD-ld} -m elf_s390"
7861 sparc64-*linux*)
7862 LD="${LD-ld} -m elf32_sparc"
7864 esac
7866 *64-bit*)
7867 case $host in
7868 x86_64-*kfreebsd*-gnu)
7869 LD="${LD-ld} -m elf_x86_64_fbsd"
7871 x86_64-*linux*)
7872 LD="${LD-ld} -m elf_x86_64"
7874 powerpcle-*linux*)
7875 LD="${LD-ld} -m elf64lppc"
7877 powerpc-*linux*)
7878 LD="${LD-ld} -m elf64ppc"
7880 s390*-*linux*|s390*-*tpf*)
7881 LD="${LD-ld} -m elf64_s390"
7883 sparc*-*linux*)
7884 LD="${LD-ld} -m elf64_sparc"
7886 esac
7888 esac
7890 rm -rf conftest*
7893 *-*-sco3.2v5*)
7894 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7895 SAVE_CFLAGS="$CFLAGS"
7896 CFLAGS="$CFLAGS -belf"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7898 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7899 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7912 main ()
7916 return 0;
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 lt_cv_cc_needs_belf=yes
7921 else
7922 lt_cv_cc_needs_belf=no
7924 rm -f core conftest.err conftest.$ac_objext \
7925 conftest$ac_exeext conftest.$ac_ext
7926 ac_ext=c
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7934 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7935 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7937 CFLAGS="$SAVE_CFLAGS"
7940 sparc*-*solaris*)
7941 # Find out which ABI we are using.
7942 echo 'int i;' > conftest.$ac_ext
7943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7944 (eval $ac_compile) 2>&5
7945 ac_status=$?
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; }; then
7948 case `/usr/bin/file conftest.o` in
7949 *64-bit*)
7950 case $lt_cv_prog_gnu_ld in
7951 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7953 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7954 LD="${LD-ld} -64"
7957 esac
7959 esac
7961 rm -rf conftest*
7963 esac
7965 need_locks="$enable_libtool_lock"
7968 case $host_os in
7969 rhapsody* | darwin*)
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -n "$DSYMUTIL"; then
7979 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7992 done
7993 done
7994 IFS=$as_save_IFS
7998 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7999 if test -n "$DSYMUTIL"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8001 $as_echo "$DSYMUTIL" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8009 if test -z "$ac_cv_prog_DSYMUTIL"; then
8010 ac_ct_DSYMUTIL=$DSYMUTIL
8011 # Extract the first word of "dsymutil", so it can be a program name with args.
8012 set dummy dsymutil; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$ac_ct_DSYMUTIL"; then
8019 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8038 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8039 if test -n "$ac_ct_DSYMUTIL"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8041 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8047 if test "x$ac_ct_DSYMUTIL" = x; then
8048 DSYMUTIL=":"
8049 else
8050 case $cross_compiling:$ac_tool_warned in
8051 yes:)
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8055 esac
8056 DSYMUTIL=$ac_ct_DSYMUTIL
8058 else
8059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8062 if test -n "$ac_tool_prefix"; then
8063 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8064 set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$NMEDIT"; then
8071 ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
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 NMEDIT=$ac_cv_prog_NMEDIT
8091 if test -n "$NMEDIT"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8093 $as_echo "$NMEDIT" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 if test -z "$ac_cv_prog_NMEDIT"; then
8102 ac_ct_NMEDIT=$NMEDIT
8103 # Extract the first word of "nmedit", so it can be a program name with args.
8104 set dummy nmedit; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 if test -n "$ac_ct_NMEDIT"; then
8111 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8126 IFS=$as_save_IFS
8130 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8131 if test -n "$ac_ct_NMEDIT"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8133 $as_echo "$ac_ct_NMEDIT" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8139 if test "x$ac_ct_NMEDIT" = x; then
8140 NMEDIT=":"
8141 else
8142 case $cross_compiling:$ac_tool_warned in
8143 yes:)
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8146 ac_tool_warned=yes ;;
8147 esac
8148 NMEDIT=$ac_ct_NMEDIT
8150 else
8151 NMEDIT="$ac_cv_prog_NMEDIT"
8154 if test -n "$ac_tool_prefix"; then
8155 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}lipo; 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_LIPO+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 if test -n "$LIPO"; then
8163 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
8183 if test -n "$LIPO"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8185 $as_echo "$LIPO" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8193 if test -z "$ac_cv_prog_LIPO"; then
8194 ac_ct_LIPO=$LIPO
8195 # Extract the first word of "lipo", so it can be a program name with args.
8196 set dummy lipo; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$ac_ct_LIPO"; then
8203 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_prog_ac_ct_LIPO="lipo"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8216 done
8217 done
8218 IFS=$as_save_IFS
8222 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8223 if test -n "$ac_ct_LIPO"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8225 $as_echo "$ac_ct_LIPO" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8231 if test "x$ac_ct_LIPO" = x; then
8232 LIPO=":"
8233 else
8234 case $cross_compiling:$ac_tool_warned in
8235 yes:)
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8239 esac
8240 LIPO=$ac_ct_LIPO
8242 else
8243 LIPO="$ac_cv_prog_LIPO"
8246 if test -n "$ac_tool_prefix"; then
8247 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8248 set dummy ${ac_tool_prefix}otool; 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_OTOOL+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$OTOOL"; then
8255 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
8275 if test -n "$OTOOL"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8277 $as_echo "$OTOOL" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8285 if test -z "$ac_cv_prog_OTOOL"; then
8286 ac_ct_OTOOL=$OTOOL
8287 # Extract the first word of "otool", so it can be a program name with args.
8288 set dummy otool; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 if test -n "$ac_ct_OTOOL"; then
8295 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_prog_ac_ct_OTOOL="otool"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8308 done
8309 done
8310 IFS=$as_save_IFS
8314 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8315 if test -n "$ac_ct_OTOOL"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8317 $as_echo "$ac_ct_OTOOL" >&6; }
8318 else
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8323 if test "x$ac_ct_OTOOL" = x; then
8324 OTOOL=":"
8325 else
8326 case $cross_compiling:$ac_tool_warned in
8327 yes:)
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8331 esac
8332 OTOOL=$ac_ct_OTOOL
8334 else
8335 OTOOL="$ac_cv_prog_OTOOL"
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$OTOOL64"; then
8347 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
8367 if test -n "$OTOOL64"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8369 $as_echo "$OTOOL64" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 if test -z "$ac_cv_prog_OTOOL64"; then
8378 ac_ct_OTOOL64=$OTOOL64
8379 # Extract the first word of "otool64", so it can be a program name with args.
8380 set dummy otool64; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 if test -n "$ac_ct_OTOOL64"; then
8387 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_ac_ct_OTOOL64="otool64"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8400 done
8401 done
8402 IFS=$as_save_IFS
8406 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8407 if test -n "$ac_ct_OTOOL64"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8409 $as_echo "$ac_ct_OTOOL64" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8415 if test "x$ac_ct_OTOOL64" = x; then
8416 OTOOL64=":"
8417 else
8418 case $cross_compiling:$ac_tool_warned in
8419 yes:)
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422 ac_tool_warned=yes ;;
8423 esac
8424 OTOOL64=$ac_ct_OTOOL64
8426 else
8427 OTOOL64="$ac_cv_prog_OTOOL64"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8457 $as_echo_n "checking for -single_module linker flag... " >&6; }
8458 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 lt_cv_apple_cc_single_mod=no
8462 if test -z "${LT_MULTI_MODULE}"; then
8463 # By default we will add the -single_module flag. You can override
8464 # by either setting the environment variable LT_MULTI_MODULE
8465 # non-empty at configure time, or by adding -multi_module to the
8466 # link flags.
8467 rm -rf libconftest.dylib*
8468 echo "int foo(void){return 1;}" > conftest.c
8469 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8470 -dynamiclib -Wl,-single_module conftest.c" >&5
8471 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8472 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8473 _lt_result=$?
8474 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8475 lt_cv_apple_cc_single_mod=yes
8476 else
8477 cat conftest.err >&5
8479 rm -rf libconftest.dylib*
8480 rm -f conftest.*
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8484 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8486 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8487 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 lt_cv_ld_exported_symbols_list=no
8491 save_LDFLAGS=$LDFLAGS
8492 echo "_main" > conftest.sym
8493 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8498 main ()
8502 return 0;
8504 _ACEOF
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 lt_cv_ld_exported_symbols_list=yes
8507 else
8508 lt_cv_ld_exported_symbols_list=no
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LDFLAGS="$save_LDFLAGS"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8516 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8518 $as_echo_n "checking for -force_load linker flag... " >&6; }
8519 if test "${lt_cv_ld_force_load+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_ld_force_load=no
8523 cat > conftest.c << _LT_EOF
8524 int forced_loaded() { return 2;}
8525 _LT_EOF
8526 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8527 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8528 echo "$AR cru libconftest.a conftest.o" >&5
8529 $AR cru libconftest.a conftest.o 2>&5
8530 cat > conftest.c << _LT_EOF
8531 int main() { return 0;}
8532 _LT_EOF
8533 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8534 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8535 _lt_result=$?
8536 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8537 lt_cv_ld_force_load=yes
8538 else
8539 cat conftest.err >&5
8541 rm -f conftest.err libconftest.a conftest conftest.c
8542 rm -rf conftest.dSYM
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8546 $as_echo "$lt_cv_ld_force_load" >&6; }
8547 case $host_os in
8548 rhapsody* | darwin1.[012])
8549 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8550 darwin1.*)
8551 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8552 darwin*) # darwin 5.x on
8553 # if running on 10.5 or later, the deployment target defaults
8554 # to the OS version, if on x86, and 10.4, the deployment
8555 # target defaults to 10.4. Don't you love it?
8556 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8557 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8559 10.[012][,.]*)
8560 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8561 10.*)
8562 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8563 esac
8565 esac
8566 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8567 _lt_dar_single_mod='$single_module'
8569 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8570 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8571 else
8572 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8574 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8575 _lt_dsymutil='~$DSYMUTIL $lib || :'
8576 else
8577 _lt_dsymutil=
8580 esac
8582 for ac_header in dlfcn.h
8583 do :
8584 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8586 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_DLFCN_H 1
8589 _ACEOF
8593 done
8600 # Set options
8605 enable_win32_dll=no
8608 # Check whether --enable-shared was given.
8609 if test "${enable_shared+set}" = set; then :
8610 enableval=$enable_shared; p=${PACKAGE-default}
8611 case $enableval in
8612 yes) enable_shared=yes ;;
8613 no) enable_shared=no ;;
8615 enable_shared=no
8616 # Look at the argument we got. We use all the common list separators.
8617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8618 for pkg in $enableval; do
8619 IFS="$lt_save_ifs"
8620 if test "X$pkg" = "X$p"; then
8621 enable_shared=yes
8623 done
8624 IFS="$lt_save_ifs"
8626 esac
8627 else
8628 enable_shared=yes
8639 # Check whether --enable-static was given.
8640 if test "${enable_static+set}" = set; then :
8641 enableval=$enable_static; p=${PACKAGE-default}
8642 case $enableval in
8643 yes) enable_static=yes ;;
8644 no) enable_static=no ;;
8646 enable_static=no
8647 # Look at the argument we got. We use all the common list separators.
8648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8649 for pkg in $enableval; do
8650 IFS="$lt_save_ifs"
8651 if test "X$pkg" = "X$p"; then
8652 enable_static=yes
8654 done
8655 IFS="$lt_save_ifs"
8657 esac
8658 else
8659 enable_static=yes
8671 # Check whether --with-pic was given.
8672 if test "${with_pic+set}" = set; then :
8673 withval=$with_pic; pic_mode="$withval"
8674 else
8675 pic_mode=default
8679 test -z "$pic_mode" && pic_mode=default
8687 # Check whether --enable-fast-install was given.
8688 if test "${enable_fast_install+set}" = set; then :
8689 enableval=$enable_fast_install; p=${PACKAGE-default}
8690 case $enableval in
8691 yes) enable_fast_install=yes ;;
8692 no) enable_fast_install=no ;;
8694 enable_fast_install=no
8695 # Look at the argument we got. We use all the common list separators.
8696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8697 for pkg in $enableval; do
8698 IFS="$lt_save_ifs"
8699 if test "X$pkg" = "X$p"; then
8700 enable_fast_install=yes
8702 done
8703 IFS="$lt_save_ifs"
8705 esac
8706 else
8707 enable_fast_install=yes
8720 # This can be used to rebuild libtool when needed
8721 LIBTOOL_DEPS="$ltmain"
8723 # Always use our own libtool.
8724 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8751 test -z "$LN_S" && LN_S="ln -s"
8766 if test -n "${ZSH_VERSION+set}" ; then
8767 setopt NO_GLOB_SUBST
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8771 $as_echo_n "checking for objdir... " >&6; }
8772 if test "${lt_cv_objdir+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 rm -f .libs 2>/dev/null
8776 mkdir .libs 2>/dev/null
8777 if test -d .libs; then
8778 lt_cv_objdir=.libs
8779 else
8780 # MS-DOS does not allow filenames that begin with a dot.
8781 lt_cv_objdir=_libs
8783 rmdir .libs 2>/dev/null
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8786 $as_echo "$lt_cv_objdir" >&6; }
8787 objdir=$lt_cv_objdir
8793 cat >>confdefs.h <<_ACEOF
8794 #define LT_OBJDIR "$lt_cv_objdir/"
8795 _ACEOF
8800 case $host_os in
8801 aix3*)
8802 # AIX sometimes has problems with the GCC collect2 program. For some
8803 # reason, if we set the COLLECT_NAMES environment variable, the problems
8804 # vanish in a puff of smoke.
8805 if test "X${COLLECT_NAMES+set}" != Xset; then
8806 COLLECT_NAMES=
8807 export COLLECT_NAMES
8810 esac
8812 # Global variables:
8813 ofile=libtool
8814 can_build_shared=yes
8816 # All known linkers require a `.a' archive for static linking (except MSVC,
8817 # which needs '.lib').
8818 libext=a
8820 with_gnu_ld="$lt_cv_prog_gnu_ld"
8822 old_CC="$CC"
8823 old_CFLAGS="$CFLAGS"
8825 # Set sane defaults for various variables
8826 test -z "$CC" && CC=cc
8827 test -z "$LTCC" && LTCC=$CC
8828 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8829 test -z "$LD" && LD=ld
8830 test -z "$ac_objext" && ac_objext=o
8832 for cc_temp in $compiler""; do
8833 case $cc_temp in
8834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8836 \-*) ;;
8837 *) break;;
8838 esac
8839 done
8840 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8843 # Only perform the check for file, if the check method requires it
8844 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8845 case $deplibs_check_method in
8846 file_magic*)
8847 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8849 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8850 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 case $MAGIC_CMD in
8854 [\\/*] | ?:[\\/]*)
8855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8858 lt_save_MAGIC_CMD="$MAGIC_CMD"
8859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8860 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8861 for ac_dir in $ac_dummy; do
8862 IFS="$lt_save_ifs"
8863 test -z "$ac_dir" && ac_dir=.
8864 if test -f $ac_dir/${ac_tool_prefix}file; then
8865 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8866 if test -n "$file_magic_test_file"; then
8867 case $deplibs_check_method in
8868 "file_magic "*)
8869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8872 $EGREP "$file_magic_regex" > /dev/null; then
8874 else
8875 cat <<_LT_EOF 1>&2
8877 *** Warning: the command libtool uses to detect shared libraries,
8878 *** $file_magic_cmd, produces output that libtool cannot recognize.
8879 *** The result is that libtool may fail to recognize shared libraries
8880 *** as such. This will affect the creation of libtool libraries that
8881 *** depend on shared libraries, but programs linked with such libtool
8882 *** libraries will work regardless of this problem. Nevertheless, you
8883 *** may want to report the problem to your system manager and/or to
8884 *** bug-libtool@gnu.org
8886 _LT_EOF
8887 fi ;;
8888 esac
8890 break
8892 done
8893 IFS="$lt_save_ifs"
8894 MAGIC_CMD="$lt_save_MAGIC_CMD"
8896 esac
8899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8900 if test -n "$MAGIC_CMD"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8902 $as_echo "$MAGIC_CMD" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8912 if test -z "$lt_cv_path_MAGIC_CMD"; then
8913 if test -n "$ac_tool_prefix"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8915 $as_echo_n "checking for file... " >&6; }
8916 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 case $MAGIC_CMD in
8920 [\\/*] | ?:[\\/]*)
8921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8924 lt_save_MAGIC_CMD="$MAGIC_CMD"
8925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8926 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8927 for ac_dir in $ac_dummy; do
8928 IFS="$lt_save_ifs"
8929 test -z "$ac_dir" && ac_dir=.
8930 if test -f $ac_dir/file; then
8931 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8932 if test -n "$file_magic_test_file"; then
8933 case $deplibs_check_method in
8934 "file_magic "*)
8935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8938 $EGREP "$file_magic_regex" > /dev/null; then
8940 else
8941 cat <<_LT_EOF 1>&2
8943 *** Warning: the command libtool uses to detect shared libraries,
8944 *** $file_magic_cmd, produces output that libtool cannot recognize.
8945 *** The result is that libtool may fail to recognize shared libraries
8946 *** as such. This will affect the creation of libtool libraries that
8947 *** depend on shared libraries, but programs linked with such libtool
8948 *** libraries will work regardless of this problem. Nevertheless, you
8949 *** may want to report the problem to your system manager and/or to
8950 *** bug-libtool@gnu.org
8952 _LT_EOF
8953 fi ;;
8954 esac
8956 break
8958 done
8959 IFS="$lt_save_ifs"
8960 MAGIC_CMD="$lt_save_MAGIC_CMD"
8962 esac
8965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8966 if test -n "$MAGIC_CMD"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8968 $as_echo "$MAGIC_CMD" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8975 else
8976 MAGIC_CMD=:
8982 esac
8984 # Use C for the default configuration in the libtool script
8986 lt_save_CC="$CC"
8987 ac_ext=c
8988 ac_cpp='$CPP $CPPFLAGS'
8989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8994 # Source file extension for C test sources.
8995 ac_ext=c
8997 # Object file extension for compiled C test sources.
8998 objext=o
8999 objext=$objext
9001 # Code to be used in simple compile tests
9002 lt_simple_compile_test_code="int some_variable = 0;"
9004 # Code to be used in simple link tests
9005 lt_simple_link_test_code='int main(){return(0);}'
9013 # If no C compiler was specified, use CC.
9014 LTCC=${LTCC-"$CC"}
9016 # If no C compiler flags were specified, use CFLAGS.
9017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9019 # Allow CC to be a program name with arguments.
9020 compiler=$CC
9022 # Save the default compiler, since it gets overwritten when the other
9023 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9024 compiler_DEFAULT=$CC
9026 # save warnings/boilerplate of simple test code
9027 ac_outfile=conftest.$ac_objext
9028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9030 _lt_compiler_boilerplate=`cat conftest.err`
9031 $RM conftest*
9033 ac_outfile=conftest.$ac_objext
9034 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9035 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9036 _lt_linker_boilerplate=`cat conftest.err`
9037 $RM -r conftest*
9040 ## CAVEAT EMPTOR:
9041 ## There is no encapsulation within the following macros, do not change
9042 ## the running order or otherwise move them around unless you know exactly
9043 ## what you are doing...
9044 if test -n "$compiler"; then
9046 lt_prog_compiler_no_builtin_flag=
9048 if test "$GCC" = yes; then
9049 case $cc_basename in
9050 nvcc*)
9051 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9053 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9054 esac
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9057 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9058 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 lt_cv_prog_compiler_rtti_exceptions=no
9062 ac_outfile=conftest.$ac_objext
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064 lt_compiler_flag="-fno-rtti -fno-exceptions"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 # The option is referenced via a variable to avoid confusing sed.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>conftest.err)
9076 ac_status=$?
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s "$ac_outfile"; then
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings other than the usual output.
9082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9085 lt_cv_prog_compiler_rtti_exceptions=yes
9088 $RM conftest*
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9092 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9094 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9095 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9096 else
9107 lt_prog_compiler_wl=
9108 lt_prog_compiler_pic=
9109 lt_prog_compiler_static=
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9112 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9114 if test "$GCC" = yes; then
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_static='-static'
9118 case $host_os in
9119 aix*)
9120 # All AIX code is PIC.
9121 if test "$host_cpu" = ia64; then
9122 # AIX 5 now supports IA64 processor
9123 lt_prog_compiler_static='-Bstatic'
9125 lt_prog_compiler_pic='-fPIC'
9128 amigaos*)
9129 case $host_cpu in
9130 powerpc)
9131 # see comment about AmigaOS4 .so support
9132 lt_prog_compiler_pic='-fPIC'
9134 m68k)
9135 # FIXME: we need at least 68020 code to build shared libraries, but
9136 # adding the `-m68020' flag to GCC prevents building anything better,
9137 # like `-m68040'.
9138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9140 esac
9143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9144 # PIC is the default for these OSes.
9147 mingw* | cygwin* | pw32* | os2* | cegcc*)
9148 # This hack is so that the source file can tell whether it is being
9149 # built for inclusion in a dll (and should export symbols for example).
9150 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9151 # (--disable-auto-import) libraries
9152 lt_prog_compiler_pic='-DDLL_EXPORT'
9155 darwin* | rhapsody*)
9156 # PIC is the default on this platform
9157 # Common symbols not allowed in MH_DYLIB files
9158 lt_prog_compiler_pic='-fno-common'
9161 haiku*)
9162 # PIC is the default for Haiku.
9163 # The "-static" flag exists, but is broken.
9164 lt_prog_compiler_static=
9167 hpux*)
9168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9170 # sets the default TLS model and affects inlining.
9171 case $host_cpu in
9172 hppa*64*)
9173 # +Z the default
9176 lt_prog_compiler_pic='-fPIC'
9178 esac
9181 interix[3-9]*)
9182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9183 # Instead, we relocate shared libraries at runtime.
9186 msdosdjgpp*)
9187 # Just because we use GCC doesn't mean we suddenly get shared libraries
9188 # on systems that don't support them.
9189 lt_prog_compiler_can_build_shared=no
9190 enable_shared=no
9193 *nto* | *qnx*)
9194 # QNX uses GNU C++, but need to define -shared option too, otherwise
9195 # it will coredump.
9196 lt_prog_compiler_pic='-fPIC -shared'
9199 sysv4*MP*)
9200 if test -d /usr/nec; then
9201 lt_prog_compiler_pic=-Kconform_pic
9206 lt_prog_compiler_pic='-fPIC'
9208 esac
9210 case $cc_basename in
9211 nvcc*) # Cuda Compiler Driver 2.2
9212 lt_prog_compiler_wl='-Xlinker '
9213 lt_prog_compiler_pic='-Xcompiler -fPIC'
9215 esac
9216 else
9217 # PORTME Check for flag to pass linker flags through the system compiler.
9218 case $host_os in
9219 aix*)
9220 lt_prog_compiler_wl='-Wl,'
9221 if test "$host_cpu" = ia64; then
9222 # AIX 5 now supports IA64 processor
9223 lt_prog_compiler_static='-Bstatic'
9224 else
9225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9229 mingw* | cygwin* | pw32* | os2* | cegcc*)
9230 # This hack is so that the source file can tell whether it is being
9231 # built for inclusion in a dll (and should export symbols for example).
9232 lt_prog_compiler_pic='-DDLL_EXPORT'
9235 hpux9* | hpux10* | hpux11*)
9236 lt_prog_compiler_wl='-Wl,'
9237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9238 # not for PA HP-UX.
9239 case $host_cpu in
9240 hppa*64*|ia64*)
9241 # +Z the default
9244 lt_prog_compiler_pic='+Z'
9246 esac
9247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9248 lt_prog_compiler_static='${wl}-a ${wl}archive'
9251 irix5* | irix6* | nonstopux*)
9252 lt_prog_compiler_wl='-Wl,'
9253 # PIC (with -KPIC) is the default.
9254 lt_prog_compiler_static='-non_shared'
9257 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9258 case $cc_basename in
9259 # old Intel for x86_64 which still supported -KPIC.
9260 ecc*)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-KPIC'
9263 lt_prog_compiler_static='-static'
9265 # icc used to be incompatible with GCC.
9266 # ICC 10 doesn't accept -KPIC any more.
9267 icc* | ifort*)
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-fPIC'
9270 lt_prog_compiler_static='-static'
9272 # Lahey Fortran 8.1.
9273 lf95*)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='--shared'
9276 lt_prog_compiler_static='--static'
9278 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9279 # Portland Group compilers (*not* the Pentium gcc compiler,
9280 # which looks to be a dead project)
9281 lt_prog_compiler_wl='-Wl,'
9282 lt_prog_compiler_pic='-fpic'
9283 lt_prog_compiler_static='-Bstatic'
9285 ccc*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # All Alpha code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9290 xl* | bgxl* | bgf* | mpixl*)
9291 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_pic='-qpic'
9294 lt_prog_compiler_static='-qstaticlink'
9297 case `$CC -V 2>&1 | sed 5q` in
9298 *Sun\ F* | *Sun*Fortran*)
9299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 lt_prog_compiler_wl=''
9304 *Sun\ C*)
9305 # Sun C 5.9
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 lt_prog_compiler_wl='-Wl,'
9310 esac
9312 esac
9315 newsos6)
9316 lt_prog_compiler_pic='-KPIC'
9317 lt_prog_compiler_static='-Bstatic'
9320 *nto* | *qnx*)
9321 # QNX uses GNU C++, but need to define -shared option too, otherwise
9322 # it will coredump.
9323 lt_prog_compiler_pic='-fPIC -shared'
9326 osf3* | osf4* | osf5*)
9327 lt_prog_compiler_wl='-Wl,'
9328 # All OSF/1 code is PIC.
9329 lt_prog_compiler_static='-non_shared'
9332 rdos*)
9333 lt_prog_compiler_static='-non_shared'
9336 solaris*)
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 case $cc_basename in
9340 f77* | f90* | f95*)
9341 lt_prog_compiler_wl='-Qoption ld ';;
9343 lt_prog_compiler_wl='-Wl,';;
9344 esac
9347 sunos4*)
9348 lt_prog_compiler_wl='-Qoption ld '
9349 lt_prog_compiler_pic='-PIC'
9350 lt_prog_compiler_static='-Bstatic'
9353 sysv4 | sysv4.2uw2* | sysv4.3*)
9354 lt_prog_compiler_wl='-Wl,'
9355 lt_prog_compiler_pic='-KPIC'
9356 lt_prog_compiler_static='-Bstatic'
9359 sysv4*MP*)
9360 if test -d /usr/nec ;then
9361 lt_prog_compiler_pic='-Kconform_pic'
9362 lt_prog_compiler_static='-Bstatic'
9366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9367 lt_prog_compiler_wl='-Wl,'
9368 lt_prog_compiler_pic='-KPIC'
9369 lt_prog_compiler_static='-Bstatic'
9372 unicos*)
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_can_build_shared=no
9377 uts4*)
9378 lt_prog_compiler_pic='-pic'
9379 lt_prog_compiler_static='-Bstatic'
9383 lt_prog_compiler_can_build_shared=no
9385 esac
9388 case $host_os in
9389 # For platforms which do not support PIC, -DPIC is meaningless:
9390 *djgpp*)
9391 lt_prog_compiler_pic=
9394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9396 esac
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9398 $as_echo "$lt_prog_compiler_pic" >&6; }
9406 # Check to make sure the PIC flag actually works.
9408 if test -n "$lt_prog_compiler_pic"; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9410 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9411 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 lt_cv_prog_compiler_pic_works=no
9415 ac_outfile=conftest.$ac_objext
9416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9418 # Insert the option either (1) after the last *FLAGS variable, or
9419 # (2) before a word containing "conftest.", or (3) at the end.
9420 # Note that $ac_compile itself does not contain backslashes and begins
9421 # with a dollar sign (not a hyphen), so the echo should work correctly.
9422 # The option is referenced via a variable to avoid confusing sed.
9423 lt_compile=`echo "$ac_compile" | $SED \
9424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9426 -e 's:$: $lt_compiler_flag:'`
9427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9428 (eval "$lt_compile" 2>conftest.err)
9429 ac_status=$?
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 if (exit $ac_status) && test -s "$ac_outfile"; then
9433 # The compiler can only warn and ignore the option if not recognized
9434 # So say no if there are warnings other than the usual output.
9435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9438 lt_cv_prog_compiler_pic_works=yes
9441 $RM conftest*
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9445 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9447 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9448 case $lt_prog_compiler_pic in
9449 "" | " "*) ;;
9450 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9451 esac
9452 else
9453 lt_prog_compiler_pic=
9454 lt_prog_compiler_can_build_shared=no
9465 # Check to make sure the static flag actually works.
9467 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9470 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 lt_cv_prog_compiler_static_works=no
9474 save_LDFLAGS="$LDFLAGS"
9475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9478 # The linker can only warn and ignore the option if not recognized
9479 # So say no if there are warnings
9480 if test -s conftest.err; then
9481 # Append any errors to the config.log.
9482 cat conftest.err 1>&5
9483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9485 if diff conftest.exp conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_static_works=yes
9488 else
9489 lt_cv_prog_compiler_static_works=yes
9492 $RM -r conftest*
9493 LDFLAGS="$save_LDFLAGS"
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9497 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9499 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9501 else
9502 lt_prog_compiler_static=
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9513 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 lt_cv_prog_compiler_c_o=no
9517 $RM -r conftest 2>/dev/null
9518 mkdir conftest
9519 cd conftest
9520 mkdir out
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523 lt_compiler_flag="-o out/conftest2.$ac_objext"
9524 # Insert the option either (1) after the last *FLAGS variable, or
9525 # (2) before a word containing "conftest.", or (3) at the end.
9526 # Note that $ac_compile itself does not contain backslashes and begins
9527 # with a dollar sign (not a hyphen), so the echo should work correctly.
9528 lt_compile=`echo "$ac_compile" | $SED \
9529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9531 -e 's:$: $lt_compiler_flag:'`
9532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9533 (eval "$lt_compile" 2>out/conftest.err)
9534 ac_status=$?
9535 cat out/conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9538 then
9539 # The compiler can only warn and ignore the option if not recognized
9540 # So say no if there are warnings
9541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9544 lt_cv_prog_compiler_c_o=yes
9547 chmod u+w . 2>&5
9548 $RM conftest*
9549 # SGI C++ compiler will create directory out/ii_files/ for
9550 # template instantiation
9551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9552 $RM out/* && rmdir out
9553 cd ..
9554 $RM -r conftest
9555 $RM conftest*
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9559 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9567 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9568 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 lt_cv_prog_compiler_c_o=no
9572 $RM -r conftest 2>/dev/null
9573 mkdir conftest
9574 cd conftest
9575 mkdir out
9576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578 lt_compiler_flag="-o out/conftest2.$ac_objext"
9579 # Insert the option either (1) after the last *FLAGS variable, or
9580 # (2) before a word containing "conftest.", or (3) at the end.
9581 # Note that $ac_compile itself does not contain backslashes and begins
9582 # with a dollar sign (not a hyphen), so the echo should work correctly.
9583 lt_compile=`echo "$ac_compile" | $SED \
9584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9586 -e 's:$: $lt_compiler_flag:'`
9587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9588 (eval "$lt_compile" 2>out/conftest.err)
9589 ac_status=$?
9590 cat out/conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9593 then
9594 # The compiler can only warn and ignore the option if not recognized
9595 # So say no if there are warnings
9596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_c_o=yes
9602 chmod u+w . 2>&5
9603 $RM conftest*
9604 # SGI C++ compiler will create directory out/ii_files/ for
9605 # template instantiation
9606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9607 $RM out/* && rmdir out
9608 cd ..
9609 $RM -r conftest
9610 $RM conftest*
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9614 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9619 hard_links="nottested"
9620 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9621 # do not overwrite the value of need_locks provided by the user
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9623 $as_echo_n "checking if we can lock with hard links... " >&6; }
9624 hard_links=yes
9625 $RM conftest*
9626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9627 touch conftest.a
9628 ln conftest.a conftest.b 2>&5 || hard_links=no
9629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9631 $as_echo "$hard_links" >&6; }
9632 if test "$hard_links" = no; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9634 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9635 need_locks=warn
9637 else
9638 need_locks=no
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9649 runpath_var=
9650 allow_undefined_flag=
9651 always_export_symbols=no
9652 archive_cmds=
9653 archive_expsym_cmds=
9654 compiler_needs_object=no
9655 enable_shared_with_static_runtimes=no
9656 export_dynamic_flag_spec=
9657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9658 hardcode_automatic=no
9659 hardcode_direct=no
9660 hardcode_direct_absolute=no
9661 hardcode_libdir_flag_spec=
9662 hardcode_libdir_flag_spec_ld=
9663 hardcode_libdir_separator=
9664 hardcode_minus_L=no
9665 hardcode_shlibpath_var=unsupported
9666 inherit_rpath=no
9667 link_all_deplibs=unknown
9668 module_cmds=
9669 module_expsym_cmds=
9670 old_archive_from_new_cmds=
9671 old_archive_from_expsyms_cmds=
9672 thread_safe_flag_spec=
9673 whole_archive_flag_spec=
9674 # include_expsyms should be a list of space-separated symbols to be *always*
9675 # included in the symbol list
9676 include_expsyms=
9677 # exclude_expsyms can be an extended regexp of symbols to exclude
9678 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9679 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9680 # as well as any symbol that contains `d'.
9681 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9682 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9683 # platforms (ab)use it in PIC code, but their linkers get confused if
9684 # the symbol is explicitly referenced. Since portable code cannot
9685 # rely on this symbol name, it's probably fine to never include it in
9686 # preloaded symbol tables.
9687 # Exclude shared library initialization/finalization symbols.
9688 extract_expsyms_cmds=
9690 case $host_os in
9691 cygwin* | mingw* | pw32* | cegcc*)
9692 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9693 # When not using gcc, we currently assume that we are using
9694 # Microsoft Visual C++.
9695 if test "$GCC" != yes; then
9696 with_gnu_ld=no
9699 interix*)
9700 # we just hope/assume this is gcc and not c89 (= MSVC++)
9701 with_gnu_ld=yes
9703 openbsd*)
9704 with_gnu_ld=no
9706 esac
9708 ld_shlibs=yes
9710 # On some targets, GNU ld is compatible enough with the native linker
9711 # that we're better off using the native interface for both.
9712 lt_use_gnu_ld_interface=no
9713 if test "$with_gnu_ld" = yes; then
9714 case $host_os in
9715 aix*)
9716 # The AIX port of GNU ld has always aspired to compatibility
9717 # with the native linker. However, as the warning in the GNU ld
9718 # block says, versions before 2.19.5* couldn't really create working
9719 # shared libraries, regardless of the interface used.
9720 case `$LD -v 2>&1` in
9721 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9722 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9723 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9725 lt_use_gnu_ld_interface=yes
9727 esac
9730 lt_use_gnu_ld_interface=yes
9732 esac
9735 if test "$lt_use_gnu_ld_interface" = yes; then
9736 # If archive_cmds runs LD, not CC, wlarc should be empty
9737 wlarc='${wl}'
9739 # Set some defaults for GNU ld with shared library support. These
9740 # are reset later if shared libraries are not supported. Putting them
9741 # here allows them to be overridden if necessary.
9742 runpath_var=LD_RUN_PATH
9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9744 export_dynamic_flag_spec='${wl}--export-dynamic'
9745 # ancient GNU ld didn't support --whole-archive et. al.
9746 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9747 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9748 else
9749 whole_archive_flag_spec=
9751 supports_anon_versioning=no
9752 case `$LD -v 2>&1` in
9753 *GNU\ gold*) supports_anon_versioning=yes ;;
9754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9757 *\ 2.11.*) ;; # other 2.11 versions
9758 *) supports_anon_versioning=yes ;;
9759 esac
9761 # See if GNU ld supports shared libraries.
9762 case $host_os in
9763 aix[3-9]*)
9764 # On AIX/PPC, the GNU linker is very broken
9765 if test "$host_cpu" != ia64; then
9766 ld_shlibs=no
9767 cat <<_LT_EOF 1>&2
9769 *** Warning: the GNU linker, at least up to release 2.19, is reported
9770 *** to be unable to reliably create shared libraries on AIX.
9771 *** Therefore, libtool is disabling shared libraries support. If you
9772 *** really care for shared libraries, you may want to install binutils
9773 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9774 *** You will then need to restart the configuration process.
9776 _LT_EOF
9780 amigaos*)
9781 case $host_cpu in
9782 powerpc)
9783 # see comment about AmigaOS4 .so support
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 archive_expsym_cmds=''
9787 m68k)
9788 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)'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_minus_L=yes
9792 esac
9795 beos*)
9796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 allow_undefined_flag=unsupported
9798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9799 # support --undefined. This deserves some investigation. FIXME
9800 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 else
9802 ld_shlibs=no
9806 cygwin* | mingw* | pw32* | cegcc*)
9807 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9808 # as there is no search path for DLLs.
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 export_dynamic_flag_spec='${wl}--export-all-symbols'
9811 allow_undefined_flag=unsupported
9812 always_export_symbols=no
9813 enable_shared_with_static_runtimes=yes
9814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9818 # If the export-symbols file already is a .def file (1st line
9819 # is EXPORTS), use it as is; otherwise, prepend...
9820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9821 cp $export_symbols $output_objdir/$soname.def;
9822 else
9823 echo EXPORTS > $output_objdir/$soname.def;
9824 cat $export_symbols >> $output_objdir/$soname.def;
9826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9827 else
9828 ld_shlibs=no
9832 haiku*)
9833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 link_all_deplibs=yes
9837 interix[3-9]*)
9838 hardcode_direct=no
9839 hardcode_shlibpath_var=no
9840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9841 export_dynamic_flag_spec='${wl}-E'
9842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9843 # Instead, shared libraries are loaded at an image base (0x10000000 by
9844 # default) and relocated if they conflict, which is a slow very memory
9845 # consuming and fragmenting process. To avoid this, we pick a random,
9846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9849 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'
9852 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9853 tmp_diet=no
9854 if test "$host_os" = linux-dietlibc; then
9855 case $cc_basename in
9856 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9857 esac
9859 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9860 && test "$tmp_diet" = no
9861 then
9862 tmp_addflag=' $pic_flag'
9863 tmp_sharedflag='-shared'
9864 case $cc_basename,$host_cpu in
9865 pgcc*) # Portland Group C compiler
9866 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'
9867 tmp_addflag=' $pic_flag'
9869 pgf77* | pgf90* | pgf95* | pgfortran*)
9870 # Portland Group f77 and f90 compilers
9871 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'
9872 tmp_addflag=' $pic_flag -Mnomain' ;;
9873 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9874 tmp_addflag=' -i_dynamic' ;;
9875 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9876 tmp_addflag=' -i_dynamic -nofor_main' ;;
9877 ifc* | ifort*) # Intel Fortran compiler
9878 tmp_addflag=' -nofor_main' ;;
9879 lf95*) # Lahey Fortran 8.1
9880 whole_archive_flag_spec=
9881 tmp_sharedflag='--shared' ;;
9882 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9883 tmp_sharedflag='-qmkshrobj'
9884 tmp_addflag= ;;
9885 nvcc*) # Cuda Compiler Driver 2.2
9886 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'
9887 compiler_needs_object=yes
9889 esac
9890 case `$CC -V 2>&1 | sed 5q` in
9891 *Sun\ C*) # Sun C 5.9
9892 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'
9893 compiler_needs_object=yes
9894 tmp_sharedflag='-G' ;;
9895 *Sun\ F*) # Sun Fortran 8.3
9896 tmp_sharedflag='-G' ;;
9897 esac
9898 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900 if test "x$supports_anon_versioning" = xyes; then
9901 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9903 echo "local: *; };" >> $output_objdir/$libname.ver~
9904 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9907 case $cc_basename in
9908 xlf* | bgf* | bgxlf* | mpixlf*)
9909 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9910 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9911 hardcode_libdir_flag_spec=
9912 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9913 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9914 if test "x$supports_anon_versioning" = xyes; then
9915 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9917 echo "local: *; };" >> $output_objdir/$libname.ver~
9918 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9921 esac
9922 else
9923 ld_shlibs=no
9927 netbsd*)
9928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9930 wlarc=
9931 else
9932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9937 solaris*)
9938 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9939 ld_shlibs=no
9940 cat <<_LT_EOF 1>&2
9942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9943 *** create shared libraries on Solaris systems. Therefore, libtool
9944 *** is disabling shared libraries support. We urge you to upgrade GNU
9945 *** binutils to release 2.9.1 or newer. Another option is to modify
9946 *** your PATH or compiler configuration so that the native linker is
9947 *** used, and then restart.
9949 _LT_EOF
9950 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9953 else
9954 ld_shlibs=no
9958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9959 case `$LD -v 2>&1` in
9960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9961 ld_shlibs=no
9962 cat <<_LT_EOF 1>&2
9964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9965 *** reliably create shared libraries on SCO systems. Therefore, libtool
9966 *** is disabling shared libraries support. We urge you to upgrade GNU
9967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9968 *** your PATH or compiler configuration so that the native linker is
9969 *** used, and then restart.
9971 _LT_EOF
9974 # For security reasons, it is highly recommended that you always
9975 # use absolute paths for naming shared libraries, and exclude the
9976 # DT_RUNPATH tag from executables and libraries. But doing so
9977 # requires that you compile everything twice, which is a pain.
9978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982 else
9983 ld_shlibs=no
9986 esac
9989 sunos4*)
9990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9991 wlarc=
9992 hardcode_direct=yes
9993 hardcode_shlibpath_var=no
9997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10000 else
10001 ld_shlibs=no
10004 esac
10006 if test "$ld_shlibs" = no; then
10007 runpath_var=
10008 hardcode_libdir_flag_spec=
10009 export_dynamic_flag_spec=
10010 whole_archive_flag_spec=
10012 else
10013 # PORTME fill in a description of your system's linker (not GNU ld)
10014 case $host_os in
10015 aix3*)
10016 allow_undefined_flag=unsupported
10017 always_export_symbols=yes
10018 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'
10019 # Note: this linker hardcodes the directories in LIBPATH if there
10020 # are no directories specified by -L.
10021 hardcode_minus_L=yes
10022 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10023 # Neither direct hardcoding nor static linking is supported with a
10024 # broken collect2.
10025 hardcode_direct=unsupported
10029 aix[4-9]*)
10030 if test "$host_cpu" = ia64; then
10031 # On IA64, the linker does run time linking by default, so we don't
10032 # have to do anything special.
10033 aix_use_runtimelinking=no
10034 exp_sym_flag='-Bexport'
10035 no_entry_flag=""
10036 else
10037 # If we're using GNU nm, then we don't want the "-C" option.
10038 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10039 # Also, AIX nm treats weak defined symbols like other global
10040 # defined symbols, whereas GNU nm marks them as "W".
10041 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10042 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'
10043 else
10044 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10046 aix_use_runtimelinking=no
10048 # Test if we are trying to use run time linking or normal
10049 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10050 # need to do runtime linking.
10051 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10052 for ld_flag in $LDFLAGS; do
10053 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10054 aix_use_runtimelinking=yes
10055 break
10057 done
10059 esac
10061 exp_sym_flag='-bexport'
10062 no_entry_flag='-bnoentry'
10065 # When large executables or shared objects are built, AIX ld can
10066 # have problems creating the table of contents. If linking a library
10067 # or program results in "error TOC overflow" add -mminimal-toc to
10068 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10069 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10071 archive_cmds=''
10072 hardcode_direct=yes
10073 hardcode_direct_absolute=yes
10074 hardcode_libdir_separator=':'
10075 link_all_deplibs=yes
10076 file_list_spec='${wl}-f,'
10078 if test "$GCC" = yes; then
10079 case $host_os in aix4.[012]|aix4.[012].*)
10080 # We only want to do this on AIX 4.2 and lower, the check
10081 # below for broken collect2 doesn't work under 4.3+
10082 collect2name=`${CC} -print-prog-name=collect2`
10083 if test -f "$collect2name" &&
10084 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10085 then
10086 # We have reworked collect2
10088 else
10089 # We have old collect2
10090 hardcode_direct=unsupported
10091 # It fails to find uninstalled libraries when the uninstalled
10092 # path is not listed in the libpath. Setting hardcode_minus_L
10093 # to unsupported forces relinking
10094 hardcode_minus_L=yes
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_libdir_separator=
10099 esac
10100 shared_flag='-shared'
10101 if test "$aix_use_runtimelinking" = yes; then
10102 shared_flag="$shared_flag "'${wl}-G'
10104 else
10105 # not using gcc
10106 if test "$host_cpu" = ia64; then
10107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10108 # chokes on -Wl,-G. The following line is correct:
10109 shared_flag='-G'
10110 else
10111 if test "$aix_use_runtimelinking" = yes; then
10112 shared_flag='${wl}-G'
10113 else
10114 shared_flag='${wl}-bM:SRE'
10119 export_dynamic_flag_spec='${wl}-bexpall'
10120 # It seems that -bexpall does not export symbols beginning with
10121 # underscore (_), so it is better to generate a list of symbols to export.
10122 always_export_symbols=yes
10123 if test "$aix_use_runtimelinking" = yes; then
10124 # Warning - without using the other runtime loading flags (-brtl),
10125 # -berok will link without error, but may produce a broken library.
10126 allow_undefined_flag='-berok'
10127 # Determine the default libpath from the value encoded in an
10128 # empty executable.
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10133 main ()
10137 return 0;
10139 _ACEOF
10140 if ac_fn_c_try_link "$LINENO"; then :
10142 lt_aix_libpath_sed='
10143 /Import File Strings/,/^$/ {
10144 /^0/ {
10145 s/^0 *\(.*\)$/\1/
10149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10150 # Check for a 64-bit object if we didn't find anything.
10151 if test -z "$aix_libpath"; then
10152 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10160 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"
10161 else
10162 if test "$host_cpu" = ia64; then
10163 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10164 allow_undefined_flag="-z nodefs"
10165 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"
10166 else
10167 # Determine the default libpath from the value encoded in an
10168 # empty executable.
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10173 main ()
10177 return 0;
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10182 lt_aix_libpath_sed='
10183 /Import File Strings/,/^$/ {
10184 /^0/ {
10185 s/^0 *\(.*\)$/\1/
10189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10190 # Check for a 64-bit object if we didn't find anything.
10191 if test -z "$aix_libpath"; then
10192 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10200 # Warning - without using the other run time loading flags,
10201 # -berok will link without error, but may produce a broken library.
10202 no_undefined_flag=' ${wl}-bernotok'
10203 allow_undefined_flag=' ${wl}-berok'
10204 if test "$with_gnu_ld" = yes; then
10205 # We only use this code for GNU lds that support --whole-archive.
10206 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10207 else
10208 # Exported symbols can be pulled into shared objects from archives
10209 whole_archive_flag_spec='$convenience'
10211 archive_cmds_need_lc=yes
10212 # This is similar to how AIX traditionally builds its shared libraries.
10213 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'
10218 amigaos*)
10219 case $host_cpu in
10220 powerpc)
10221 # see comment about AmigaOS4 .so support
10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10223 archive_expsym_cmds=''
10225 m68k)
10226 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)'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_minus_L=yes
10230 esac
10233 bsdi[45]*)
10234 export_dynamic_flag_spec=-rdynamic
10237 cygwin* | mingw* | pw32* | cegcc*)
10238 # When not using gcc, we currently assume that we are using
10239 # Microsoft Visual C++.
10240 # hardcode_libdir_flag_spec is actually meaningless, as there is
10241 # no search path for DLLs.
10242 hardcode_libdir_flag_spec=' '
10243 allow_undefined_flag=unsupported
10244 # Tell ltmain to make .lib files, not .a files.
10245 libext=lib
10246 # Tell ltmain to make .dll files, not .so files.
10247 shrext_cmds=".dll"
10248 # FIXME: Setting linknames here is a bad hack.
10249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10250 # The linker will automatically build a .lib file if we build a DLL.
10251 old_archive_from_new_cmds='true'
10252 # FIXME: Should let the user specify the lib program.
10253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10254 fix_srcfile_path='`cygpath -w "$srcfile"`'
10255 enable_shared_with_static_runtimes=yes
10258 darwin* | rhapsody*)
10261 archive_cmds_need_lc=no
10262 hardcode_direct=no
10263 hardcode_automatic=yes
10264 hardcode_shlibpath_var=unsupported
10265 if test "$lt_cv_ld_force_load" = "yes"; then
10266 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\"`'
10267 else
10268 whole_archive_flag_spec=''
10270 link_all_deplibs=yes
10271 allow_undefined_flag="$_lt_dar_allow_undefined"
10272 case $cc_basename in
10273 ifort*) _lt_dar_can_shared=yes ;;
10274 *) _lt_dar_can_shared=$GCC ;;
10275 esac
10276 if test "$_lt_dar_can_shared" = "yes"; then
10277 output_verbose_link_cmd=func_echo_all
10278 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10279 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10280 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}"
10281 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}"
10283 else
10284 ld_shlibs=no
10289 dgux*)
10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_libdir_flag_spec='-L$libdir'
10292 hardcode_shlibpath_var=no
10295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10296 # support. Future versions do this automatically, but an explicit c++rt0.o
10297 # does not break anything, and helps significantly (at the cost of a little
10298 # extra space).
10299 freebsd2.2*)
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10301 hardcode_libdir_flag_spec='-R$libdir'
10302 hardcode_direct=yes
10303 hardcode_shlibpath_var=no
10306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10307 freebsd2.*)
10308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_direct=yes
10310 hardcode_minus_L=yes
10311 hardcode_shlibpath_var=no
10314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10315 freebsd* | dragonfly*)
10316 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10317 hardcode_libdir_flag_spec='-R$libdir'
10318 hardcode_direct=yes
10319 hardcode_shlibpath_var=no
10322 hpux9*)
10323 if test "$GCC" = yes; then
10324 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'
10325 else
10326 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'
10328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10329 hardcode_libdir_separator=:
10330 hardcode_direct=yes
10332 # hardcode_minus_L: Not really in the search PATH,
10333 # but as the default location of the library.
10334 hardcode_minus_L=yes
10335 export_dynamic_flag_spec='${wl}-E'
10338 hpux10*)
10339 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341 else
10342 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10344 if test "$with_gnu_ld" = no; then
10345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10346 hardcode_libdir_flag_spec_ld='+b $libdir'
10347 hardcode_libdir_separator=:
10348 hardcode_direct=yes
10349 hardcode_direct_absolute=yes
10350 export_dynamic_flag_spec='${wl}-E'
10351 # hardcode_minus_L: Not really in the search PATH,
10352 # but as the default location of the library.
10353 hardcode_minus_L=yes
10357 hpux11*)
10358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10359 case $host_cpu in
10360 hppa*64*)
10361 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 ia64*)
10364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10367 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10369 esac
10370 else
10371 case $host_cpu in
10372 hppa*64*)
10373 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 ia64*)
10376 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10380 # Older versions of the 11.00 compiler do not understand -b yet
10381 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10383 $as_echo_n "checking if $CC understands -b... " >&6; }
10384 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 lt_cv_prog_compiler__b=no
10388 save_LDFLAGS="$LDFLAGS"
10389 LDFLAGS="$LDFLAGS -b"
10390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10392 # The linker can only warn and ignore the option if not recognized
10393 # So say no if there are warnings
10394 if test -s conftest.err; then
10395 # Append any errors to the config.log.
10396 cat conftest.err 1>&5
10397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10399 if diff conftest.exp conftest.er2 >/dev/null; then
10400 lt_cv_prog_compiler__b=yes
10402 else
10403 lt_cv_prog_compiler__b=yes
10406 $RM -r conftest*
10407 LDFLAGS="$save_LDFLAGS"
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10411 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10413 if test x"$lt_cv_prog_compiler__b" = xyes; then
10414 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10415 else
10416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10420 esac
10422 if test "$with_gnu_ld" = no; then
10423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10424 hardcode_libdir_separator=:
10426 case $host_cpu in
10427 hppa*64*|ia64*)
10428 hardcode_direct=no
10429 hardcode_shlibpath_var=no
10432 hardcode_direct=yes
10433 hardcode_direct_absolute=yes
10434 export_dynamic_flag_spec='${wl}-E'
10436 # hardcode_minus_L: Not really in the search PATH,
10437 # but as the default location of the library.
10438 hardcode_minus_L=yes
10440 esac
10444 irix5* | irix6* | nonstopux*)
10445 if test "$GCC" = yes; then
10446 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'
10447 # Try to use the -exported_symbol ld option, if it does not
10448 # work, assume that -exports_file does not work either and
10449 # implicitly export all symbols.
10450 save_LDFLAGS="$LDFLAGS"
10451 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454 int foo(void) {}
10455 _ACEOF
10456 if ac_fn_c_try_link "$LINENO"; then :
10457 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'
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 LDFLAGS="$save_LDFLAGS"
10463 else
10464 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'
10465 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'
10467 archive_cmds_need_lc='no'
10468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469 hardcode_libdir_separator=:
10470 inherit_rpath=yes
10471 link_all_deplibs=yes
10474 netbsd*)
10475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10477 else
10478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10480 hardcode_libdir_flag_spec='-R$libdir'
10481 hardcode_direct=yes
10482 hardcode_shlibpath_var=no
10485 newsos6)
10486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_direct=yes
10488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator=:
10490 hardcode_shlibpath_var=no
10493 *nto* | *qnx*)
10496 openbsd*)
10497 if test -f /usr/libexec/ld.so; then
10498 hardcode_direct=yes
10499 hardcode_shlibpath_var=no
10500 hardcode_direct_absolute=yes
10501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10503 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10505 export_dynamic_flag_spec='${wl}-E'
10506 else
10507 case $host_os in
10508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_libdir_flag_spec='-R$libdir'
10513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10516 esac
10518 else
10519 ld_shlibs=no
10523 os2*)
10524 hardcode_libdir_flag_spec='-L$libdir'
10525 hardcode_minus_L=yes
10526 allow_undefined_flag=unsupported
10527 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'
10528 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10531 osf3*)
10532 if test "$GCC" = yes; then
10533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10534 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'
10535 else
10536 allow_undefined_flag=' -expect_unresolved \*'
10537 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'
10539 archive_cmds_need_lc='no'
10540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541 hardcode_libdir_separator=:
10544 osf4* | osf5*) # as osf3* with the addition of -msym flag
10545 if test "$GCC" = yes; then
10546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10547 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'
10548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549 else
10550 allow_undefined_flag=' -expect_unresolved \*'
10551 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'
10552 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~
10553 $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'
10555 # Both c and cxx compiler support -rpath directly
10556 hardcode_libdir_flag_spec='-rpath $libdir'
10558 archive_cmds_need_lc='no'
10559 hardcode_libdir_separator=:
10562 solaris*)
10563 no_undefined_flag=' -z defs'
10564 if test "$GCC" = yes; then
10565 wlarc='${wl}'
10566 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10568 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10569 else
10570 case `$CC -V 2>&1` in
10571 *"Compilers 5.0"*)
10572 wlarc=''
10573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10578 wlarc='${wl}'
10579 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10583 esac
10585 hardcode_libdir_flag_spec='-R$libdir'
10586 hardcode_shlibpath_var=no
10587 case $host_os in
10588 solaris2.[0-5] | solaris2.[0-5].*) ;;
10590 # The compiler driver will combine and reorder linker options,
10591 # but understands `-z linker_flag'. GCC discards it without `$wl',
10592 # but is careful enough not to reorder.
10593 # Supported since Solaris 2.6 (maybe 2.5.1?)
10594 if test "$GCC" = yes; then
10595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10596 else
10597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10600 esac
10601 link_all_deplibs=yes
10604 sunos4*)
10605 if test "x$host_vendor" = xsequent; then
10606 # Use $CC to link under sequent, because it throws in some extra .o
10607 # files that make .init and .fini sections work.
10608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10609 else
10610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_libdir_flag_spec='-L$libdir'
10613 hardcode_direct=yes
10614 hardcode_minus_L=yes
10615 hardcode_shlibpath_var=no
10618 sysv4)
10619 case $host_vendor in
10620 sni)
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_direct=yes # is this really true???
10624 siemens)
10625 ## LD is ld it makes a PLAMLIB
10626 ## CC just makes a GrossModule.
10627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10628 reload_cmds='$CC -r -o $output$reload_objs'
10629 hardcode_direct=no
10631 motorola)
10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10635 esac
10636 runpath_var='LD_RUN_PATH'
10637 hardcode_shlibpath_var=no
10640 sysv4.3*)
10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_shlibpath_var=no
10643 export_dynamic_flag_spec='-Bexport'
10646 sysv4*MP*)
10647 if test -d /usr/nec; then
10648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649 hardcode_shlibpath_var=no
10650 runpath_var=LD_RUN_PATH
10651 hardcode_runpath_var=yes
10652 ld_shlibs=yes
10656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10657 no_undefined_flag='${wl}-z,text'
10658 archive_cmds_need_lc=no
10659 hardcode_shlibpath_var=no
10660 runpath_var='LD_RUN_PATH'
10662 if test "$GCC" = yes; then
10663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 else
10666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 sysv5* | sco3.2v5* | sco5v6*)
10672 # Note: We can NOT use -z defs as we might desire, because we do not
10673 # link with -lc, and that would cause any symbols used from libc to
10674 # always be unresolved, which means just about no library would
10675 # ever link correctly. If we're not using GNU ld we use -z text
10676 # though, which does catch some bad symbols but isn't as heavy-handed
10677 # as -z defs.
10678 no_undefined_flag='${wl}-z,text'
10679 allow_undefined_flag='${wl}-z,nodefs'
10680 archive_cmds_need_lc=no
10681 hardcode_shlibpath_var=no
10682 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10683 hardcode_libdir_separator=':'
10684 link_all_deplibs=yes
10685 export_dynamic_flag_spec='${wl}-Bexport'
10686 runpath_var='LD_RUN_PATH'
10688 if test "$GCC" = yes; then
10689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 else
10692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 uts4*)
10698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_libdir_flag_spec='-L$libdir'
10700 hardcode_shlibpath_var=no
10704 ld_shlibs=no
10706 esac
10708 if test x$host_vendor = xsni; then
10709 case $host in
10710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10711 export_dynamic_flag_spec='${wl}-Blargedynsym'
10713 esac
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10718 $as_echo "$ld_shlibs" >&6; }
10719 test "$ld_shlibs" = no && can_build_shared=no
10721 with_gnu_ld=$with_gnu_ld
10738 # Do we need to explicitly link libc?
10740 case "x$archive_cmds_need_lc" in
10741 x|xyes)
10742 # Assume -lc should be added
10743 archive_cmds_need_lc=yes
10745 if test "$enable_shared" = yes && test "$GCC" = yes; then
10746 case $archive_cmds in
10747 *'~'*)
10748 # FIXME: we may have to deal with multi-command sequences.
10750 '$CC '*)
10751 # Test whether the compiler implicitly links with -lc since on some
10752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10753 # to ld, don't add -lc before -lgcc.
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10756 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 $RM conftest*
10760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10763 (eval $ac_compile) 2>&5
10764 ac_status=$?
10765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10766 test $ac_status = 0; } 2>conftest.err; then
10767 soname=conftest
10768 lib=conftest
10769 libobjs=conftest.$ac_objext
10770 deplibs=
10771 wl=$lt_prog_compiler_wl
10772 pic_flag=$lt_prog_compiler_pic
10773 compiler_flags=-v
10774 linker_flags=-v
10775 verstring=
10776 output_objdir=.
10777 libname=conftest
10778 lt_save_allow_undefined_flag=$allow_undefined_flag
10779 allow_undefined_flag=
10780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10782 ac_status=$?
10783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10784 test $ac_status = 0; }
10785 then
10786 lt_cv_archive_cmds_need_lc=no
10787 else
10788 lt_cv_archive_cmds_need_lc=yes
10790 allow_undefined_flag=$lt_save_allow_undefined_flag
10791 else
10792 cat conftest.err 1>&5
10794 $RM conftest*
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10798 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10801 esac
10804 esac
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10963 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10965 if test "$GCC" = yes; then
10966 case $host_os in
10967 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10968 *) lt_awk_arg="/^libraries:/" ;;
10969 esac
10970 case $host_os in
10971 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10972 *) lt_sed_strip_eq="s,=/,/,g" ;;
10973 esac
10974 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10975 case $lt_search_path_spec in
10976 *\;*)
10977 # if the path contains ";" then we assume it to be the separator
10978 # otherwise default to the standard path separator (i.e. ":") - it is
10979 # assumed that no part of a normal pathname contains ";" but that should
10980 # okay in the real world where ";" in dirpaths is itself problematic.
10981 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10984 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10986 esac
10987 # Ok, now we have the path, separated by spaces, we can step through it
10988 # and add multilib dir if necessary.
10989 lt_tmp_lt_search_path_spec=
10990 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10991 for lt_sys_path in $lt_search_path_spec; do
10992 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10993 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10994 else
10995 test -d "$lt_sys_path" && \
10996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10998 done
10999 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11000 BEGIN {RS=" "; FS="/|\n";} {
11001 lt_foo="";
11002 lt_count=0;
11003 for (lt_i = NF; lt_i > 0; lt_i--) {
11004 if ($lt_i != "" && $lt_i != ".") {
11005 if ($lt_i == "..") {
11006 lt_count++;
11007 } else {
11008 if (lt_count == 0) {
11009 lt_foo="/" $lt_i lt_foo;
11010 } else {
11011 lt_count--;
11016 if (lt_foo != "") { lt_freq[lt_foo]++; }
11017 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11019 # AWK program above erroneously prepends '/' to C:/dos/paths
11020 # for these hosts.
11021 case $host_os in
11022 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11023 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11024 esac
11025 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11026 else
11027 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11029 library_names_spec=
11030 libname_spec='lib$name'
11031 soname_spec=
11032 shrext_cmds=".so"
11033 postinstall_cmds=
11034 postuninstall_cmds=
11035 finish_cmds=
11036 finish_eval=
11037 shlibpath_var=
11038 shlibpath_overrides_runpath=unknown
11039 version_type=none
11040 dynamic_linker="$host_os ld.so"
11041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11042 need_lib_prefix=unknown
11043 hardcode_into_libs=no
11045 # when you set need_version to no, make sure it does not cause -set_version
11046 # flags to be left without arguments
11047 need_version=unknown
11049 case $host_os in
11050 aix3*)
11051 version_type=linux
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11053 shlibpath_var=LIBPATH
11055 # AIX 3 has no versioning support, so we append a major version to the name.
11056 soname_spec='${libname}${release}${shared_ext}$major'
11059 aix[4-9]*)
11060 version_type=linux
11061 need_lib_prefix=no
11062 need_version=no
11063 hardcode_into_libs=yes
11064 if test "$host_cpu" = ia64; then
11065 # AIX 5 supports IA64
11066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 else
11069 # With GCC up to 2.95.x, collect2 would create an import file
11070 # for dependence libraries. The import file would start with
11071 # the line `#! .'. This would cause the generated library to
11072 # depend on `.', always an invalid library. This was fixed in
11073 # development snapshots of GCC prior to 3.0.
11074 case $host_os in
11075 aix4 | aix4.[01] | aix4.[01].*)
11076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11077 echo ' yes '
11078 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11080 else
11081 can_build_shared=no
11084 esac
11085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11086 # soname into executable. Probably we can add versioning support to
11087 # collect2, so additional links can be useful in future.
11088 if test "$aix_use_runtimelinking" = yes; then
11089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11090 # instead of lib<name>.a to let people know that these are not
11091 # typical AIX shared libraries.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 else
11094 # We preserve .a as extension for shared libraries through AIX4.2
11095 # and later when we are not doing run time linking.
11096 library_names_spec='${libname}${release}.a $libname.a'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11099 shlibpath_var=LIBPATH
11103 amigaos*)
11104 case $host_cpu in
11105 powerpc)
11106 # Since July 2007 AmigaOS4 officially supports .so libraries.
11107 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 m68k)
11111 library_names_spec='$libname.ixlibrary $libname.a'
11112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11113 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'
11115 esac
11118 beos*)
11119 library_names_spec='${libname}${shared_ext}'
11120 dynamic_linker="$host_os ld.so"
11121 shlibpath_var=LIBRARY_PATH
11124 bsdi[45]*)
11125 version_type=linux
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11133 # the default ld.so.conf also contains /usr/contrib/lib and
11134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11135 # libtool to hard-code these into programs
11138 cygwin* | mingw* | pw32* | cegcc*)
11139 version_type=windows
11140 shrext_cmds=".dll"
11141 need_version=no
11142 need_lib_prefix=no
11144 case $GCC,$host_os in
11145 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11146 library_names_spec='$libname.dll.a'
11147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11148 postinstall_cmds='base_file=`basename \${file}`~
11149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11150 dldir=$destdir/`dirname \$dlpath`~
11151 test -d \$dldir || mkdir -p \$dldir~
11152 $install_prog $dir/$dlname \$dldir/$dlname~
11153 chmod a+x \$dldir/$dlname~
11154 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11155 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11158 dlpath=$dir/\$dldll~
11159 $RM \$dlpath'
11160 shlibpath_overrides_runpath=yes
11162 case $host_os in
11163 cygwin*)
11164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11167 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11169 mingw* | cegcc*)
11170 # MinGW DLLs use traditional 'lib' prefix
11171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11173 pw32*)
11174 # pw32 DLLs use 'pw' prefix rather than 'lib'
11175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11177 esac
11181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11183 esac
11184 dynamic_linker='Win32 ld.exe'
11185 # FIXME: first we should search . and the directory the executable is in
11186 shlibpath_var=PATH
11189 darwin* | rhapsody*)
11190 dynamic_linker="$host_os dyld"
11191 version_type=darwin
11192 need_lib_prefix=no
11193 need_version=no
11194 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11195 soname_spec='${libname}${release}${major}$shared_ext'
11196 shlibpath_overrides_runpath=yes
11197 shlibpath_var=DYLD_LIBRARY_PATH
11198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11204 dgux*)
11205 version_type=linux
11206 need_lib_prefix=no
11207 need_version=no
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11213 freebsd* | dragonfly*)
11214 # DragonFly does not have aout. When/if they implement a new
11215 # versioning mechanism, adjust this.
11216 if test -x /usr/bin/objformat; then
11217 objformat=`/usr/bin/objformat`
11218 else
11219 case $host_os in
11220 freebsd[23].*) objformat=aout ;;
11221 *) objformat=elf ;;
11222 esac
11224 version_type=freebsd-$objformat
11225 case $version_type in
11226 freebsd-elf*)
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11228 need_version=no
11229 need_lib_prefix=no
11231 freebsd-*)
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11233 need_version=yes
11235 esac
11236 shlibpath_var=LD_LIBRARY_PATH
11237 case $host_os in
11238 freebsd2.*)
11239 shlibpath_overrides_runpath=yes
11241 freebsd3.[01]* | freebsdelf3.[01]*)
11242 shlibpath_overrides_runpath=yes
11243 hardcode_into_libs=yes
11245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11247 shlibpath_overrides_runpath=no
11248 hardcode_into_libs=yes
11250 *) # from 4.6 on, and DragonFly
11251 shlibpath_overrides_runpath=yes
11252 hardcode_into_libs=yes
11254 esac
11257 gnu*)
11258 version_type=linux
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 hardcode_into_libs=yes
11267 haiku*)
11268 version_type=linux
11269 need_lib_prefix=no
11270 need_version=no
11271 dynamic_linker="$host_os runtime_loader"
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11277 hardcode_into_libs=yes
11280 hpux9* | hpux10* | hpux11*)
11281 # Give a soname corresponding to the major version so that dld.sl refuses to
11282 # link against other versions.
11283 version_type=sunos
11284 need_lib_prefix=no
11285 need_version=no
11286 case $host_cpu in
11287 ia64*)
11288 shrext_cmds='.so'
11289 hardcode_into_libs=yes
11290 dynamic_linker="$host_os dld.so"
11291 shlibpath_var=LD_LIBRARY_PATH
11292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 if test "X$HPUX_IA64_MODE" = X32; then
11296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11297 else
11298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11302 hppa*64*)
11303 shrext_cmds='.sl'
11304 hardcode_into_libs=yes
11305 dynamic_linker="$host_os dld.sl"
11306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11314 shrext_cmds='.sl'
11315 dynamic_linker="$host_os dld.sl"
11316 shlibpath_var=SHLIB_PATH
11317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11321 esac
11322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11323 postinstall_cmds='chmod 555 $lib'
11324 # or fails outright, so override atomically:
11325 install_override_mode=555
11328 interix[3-9]*)
11329 version_type=linux
11330 need_lib_prefix=no
11331 need_version=no
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=no
11337 hardcode_into_libs=yes
11340 irix5* | irix6* | nonstopux*)
11341 case $host_os in
11342 nonstopux*) version_type=nonstopux ;;
11344 if test "$lt_cv_prog_gnu_ld" = yes; then
11345 version_type=linux
11346 else
11347 version_type=irix
11348 fi ;;
11349 esac
11350 need_lib_prefix=no
11351 need_version=no
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11354 case $host_os in
11355 irix5* | nonstopux*)
11356 libsuff= shlibsuff=
11359 case $LD in # libtool.m4 will add one of these switches to LD
11360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11361 libsuff= shlibsuff= libmagic=32-bit;;
11362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11363 libsuff=32 shlibsuff=N32 libmagic=N32;;
11364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11366 *) libsuff= shlibsuff= libmagic=never-match;;
11367 esac
11369 esac
11370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11371 shlibpath_overrides_runpath=no
11372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11374 hardcode_into_libs=yes
11377 # No shared lib support for Linux oldld, aout, or coff.
11378 linux*oldld* | linux*aout* | linux*coff*)
11379 dynamic_linker=no
11382 # This must be Linux ELF.
11383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11384 version_type=linux
11385 need_lib_prefix=no
11386 need_version=no
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=no
11393 # Some binutils ld are patched to set DT_RUNPATH
11394 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 lt_cv_shlibpath_overrides_runpath=no
11398 save_LDFLAGS=$LDFLAGS
11399 save_libdir=$libdir
11400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11406 main ()
11410 return 0;
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11415 lt_cv_shlibpath_overrides_runpath=yes
11418 rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11420 LDFLAGS=$save_LDFLAGS
11421 libdir=$save_libdir
11425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11427 # This implies no fast_install, which is unacceptable.
11428 # Some rework will be needed to allow for fast_install
11429 # before this can be enabled.
11430 hardcode_into_libs=yes
11432 # Append ld.so.conf contents to the search path
11433 if test -f /etc/ld.so.conf; then
11434 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' ' '`
11435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11438 # We used to test for /lib/ld.so.1 and disable shared libraries on
11439 # powerpc, because MkLinux only supported shared libraries with the
11440 # GNU dynamic linker. Since this was broken with cross compilers,
11441 # most powerpc-linux boxes support dynamic linking these days and
11442 # people can always --disable-shared, the test was removed, and we
11443 # assume the GNU/Linux dynamic linker is in use.
11444 dynamic_linker='GNU/Linux ld.so'
11447 netbsd*)
11448 version_type=sunos
11449 need_lib_prefix=no
11450 need_version=no
11451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454 dynamic_linker='NetBSD (a.out) ld.so'
11455 else
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 dynamic_linker='NetBSD ld.elf_so'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes
11462 hardcode_into_libs=yes
11465 newsos6)
11466 version_type=linux
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11472 *nto* | *qnx*)
11473 version_type=qnx
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath=no
11480 hardcode_into_libs=yes
11481 dynamic_linker='ldqnx.so'
11484 openbsd*)
11485 version_type=sunos
11486 sys_lib_dlsearch_path_spec="/usr/lib"
11487 need_lib_prefix=no
11488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11489 case $host_os in
11490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11491 *) need_version=no ;;
11492 esac
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11497 case $host_os in
11498 openbsd2.[89] | openbsd2.[89].*)
11499 shlibpath_overrides_runpath=no
11502 shlibpath_overrides_runpath=yes
11504 esac
11505 else
11506 shlibpath_overrides_runpath=yes
11510 os2*)
11511 libname_spec='$name'
11512 shrext_cmds=".dll"
11513 need_lib_prefix=no
11514 library_names_spec='$libname${shared_ext} $libname.a'
11515 dynamic_linker='OS/2 ld.exe'
11516 shlibpath_var=LIBPATH
11519 osf3* | osf4* | osf5*)
11520 version_type=osf
11521 need_lib_prefix=no
11522 need_version=no
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11530 rdos*)
11531 dynamic_linker=no
11534 solaris*)
11535 version_type=linux
11536 need_lib_prefix=no
11537 need_version=no
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes
11542 hardcode_into_libs=yes
11543 # ldd complains unless libraries are executable
11544 postinstall_cmds='chmod +x $lib'
11547 sunos4*)
11548 version_type=sunos
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 if test "$with_gnu_ld" = yes; then
11554 need_lib_prefix=no
11556 need_version=yes
11559 sysv4 | sysv4.3*)
11560 version_type=linux
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 case $host_vendor in
11565 sni)
11566 shlibpath_overrides_runpath=no
11567 need_lib_prefix=no
11568 runpath_var=LD_RUN_PATH
11570 siemens)
11571 need_lib_prefix=no
11573 motorola)
11574 need_lib_prefix=no
11575 need_version=no
11576 shlibpath_overrides_runpath=no
11577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11579 esac
11582 sysv4*MP*)
11583 if test -d /usr/nec ;then
11584 version_type=linux
11585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11586 soname_spec='$libname${shared_ext}.$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11592 version_type=freebsd-elf
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=yes
11599 hardcode_into_libs=yes
11600 if test "$with_gnu_ld" = yes; then
11601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11602 else
11603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11604 case $host_os in
11605 sco3.2v5*)
11606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11608 esac
11610 sys_lib_dlsearch_path_spec='/usr/lib'
11613 tpf*)
11614 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11615 version_type=linux
11616 need_lib_prefix=no
11617 need_version=no
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=no
11621 hardcode_into_libs=yes
11624 uts4*)
11625 version_type=linux
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 soname_spec='${libname}${release}${shared_ext}$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11632 dynamic_linker=no
11634 esac
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11636 $as_echo "$dynamic_linker" >&6; }
11637 test "$dynamic_linker" = no && can_build_shared=no
11639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11640 if test "$GCC" = yes; then
11641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11644 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11645 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11647 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11648 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11743 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11744 hardcode_action=
11745 if test -n "$hardcode_libdir_flag_spec" ||
11746 test -n "$runpath_var" ||
11747 test "X$hardcode_automatic" = "Xyes" ; then
11749 # We can hardcode non-existent directories.
11750 if test "$hardcode_direct" != no &&
11751 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11752 # have to relink, otherwise we might link with an installed library
11753 # when we should be linking with a yet-to-be-installed one
11754 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11755 test "$hardcode_minus_L" != no; then
11756 # Linking always hardcodes the temporary library directory.
11757 hardcode_action=relink
11758 else
11759 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11760 hardcode_action=immediate
11762 else
11763 # We cannot hardcode anything, or else we can only hardcode existing
11764 # directories.
11765 hardcode_action=unsupported
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11768 $as_echo "$hardcode_action" >&6; }
11770 if test "$hardcode_action" = relink ||
11771 test "$inherit_rpath" = yes; then
11772 # Fast installation is not supported
11773 enable_fast_install=no
11774 elif test "$shlibpath_overrides_runpath" = yes ||
11775 test "$enable_shared" = no; then
11776 # Fast installation is not necessary
11777 enable_fast_install=needless
11785 if test "x$enable_dlopen" != xyes; then
11786 enable_dlopen=unknown
11787 enable_dlopen_self=unknown
11788 enable_dlopen_self_static=unknown
11789 else
11790 lt_cv_dlopen=no
11791 lt_cv_dlopen_libs=
11793 case $host_os in
11794 beos*)
11795 lt_cv_dlopen="load_add_on"
11796 lt_cv_dlopen_libs=
11797 lt_cv_dlopen_self=yes
11800 mingw* | pw32* | cegcc*)
11801 lt_cv_dlopen="LoadLibrary"
11802 lt_cv_dlopen_libs=
11805 cygwin*)
11806 lt_cv_dlopen="dlopen"
11807 lt_cv_dlopen_libs=
11810 darwin*)
11811 # if libdl is installed we need to link against it
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11813 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-ldl $LIBS"
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11822 /* Override any GCC internal prototype to avoid an error.
11823 Use char because int might match the return type of a GCC
11824 builtin and then its argument prototype would still apply. */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 char dlopen ();
11830 main ()
11832 return dlopen ();
11834 return 0;
11836 _ACEOF
11837 if ac_fn_c_try_link "$LINENO"; then :
11838 ac_cv_lib_dl_dlopen=yes
11839 else
11840 ac_cv_lib_dl_dlopen=no
11842 rm -f core conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_lib_save_LIBS
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11847 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11848 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11850 else
11852 lt_cv_dlopen="dyld"
11853 lt_cv_dlopen_libs=
11854 lt_cv_dlopen_self=yes
11861 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11862 if test "x$ac_cv_func_shl_load" = x""yes; then :
11863 lt_cv_dlopen="shl_load"
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11866 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11867 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-ldld $LIBS"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char shl_load ();
11883 main ()
11885 return shl_load ();
11887 return 0;
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 ac_cv_lib_dld_shl_load=yes
11892 else
11893 ac_cv_lib_dld_shl_load=no
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11900 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11901 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11902 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11903 else
11904 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11905 if test "x$ac_cv_func_dlopen" = x""yes; then :
11906 lt_cv_dlopen="dlopen"
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11909 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11910 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 ac_check_lib_save_LIBS=$LIBS
11914 LIBS="-ldl $LIBS"
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11918 /* Override any GCC internal prototype to avoid an error.
11919 Use char because int might match the return type of a GCC
11920 builtin and then its argument prototype would still apply. */
11921 #ifdef __cplusplus
11922 extern "C"
11923 #endif
11924 char dlopen ();
11926 main ()
11928 return dlopen ();
11930 return 0;
11932 _ACEOF
11933 if ac_fn_c_try_link "$LINENO"; then :
11934 ac_cv_lib_dl_dlopen=yes
11935 else
11936 ac_cv_lib_dl_dlopen=no
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11943 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11944 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11946 else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11948 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11949 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-lsvld $LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 char dlopen ();
11965 main ()
11967 return dlopen ();
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 ac_cv_lib_svld_dlopen=yes
11974 else
11975 ac_cv_lib_svld_dlopen=no
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11982 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11983 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11987 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11988 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 ac_check_lib_save_LIBS=$LIBS
11992 LIBS="-ldld $LIBS"
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 char dld_link ();
12004 main ()
12006 return dld_link ();
12008 return 0;
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 ac_cv_lib_dld_dld_link=yes
12013 else
12014 ac_cv_lib_dld_dld_link=no
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12021 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12022 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12042 esac
12044 if test "x$lt_cv_dlopen" != xno; then
12045 enable_dlopen=yes
12046 else
12047 enable_dlopen=no
12050 case $lt_cv_dlopen in
12051 dlopen)
12052 save_CPPFLAGS="$CPPFLAGS"
12053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12055 save_LDFLAGS="$LDFLAGS"
12056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12058 save_LIBS="$LIBS"
12059 LIBS="$lt_cv_dlopen_libs $LIBS"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12062 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12063 if test "${lt_cv_dlopen_self+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 if test "$cross_compiling" = yes; then :
12067 lt_cv_dlopen_self=cross
12068 else
12069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12070 lt_status=$lt_dlunknown
12071 cat > conftest.$ac_ext <<_LT_EOF
12072 #line 12072 "configure"
12073 #include "confdefs.h"
12075 #if HAVE_DLFCN_H
12076 #include <dlfcn.h>
12077 #endif
12079 #include <stdio.h>
12081 #ifdef RTLD_GLOBAL
12082 # define LT_DLGLOBAL RTLD_GLOBAL
12083 #else
12084 # ifdef DL_GLOBAL
12085 # define LT_DLGLOBAL DL_GLOBAL
12086 # else
12087 # define LT_DLGLOBAL 0
12088 # endif
12089 #endif
12091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12092 find out it does not work in some platform. */
12093 #ifndef LT_DLLAZY_OR_NOW
12094 # ifdef RTLD_LAZY
12095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12096 # else
12097 # ifdef DL_LAZY
12098 # define LT_DLLAZY_OR_NOW DL_LAZY
12099 # else
12100 # ifdef RTLD_NOW
12101 # define LT_DLLAZY_OR_NOW RTLD_NOW
12102 # else
12103 # ifdef DL_NOW
12104 # define LT_DLLAZY_OR_NOW DL_NOW
12105 # else
12106 # define LT_DLLAZY_OR_NOW 0
12107 # endif
12108 # endif
12109 # endif
12110 # endif
12111 #endif
12113 /* When -fvisbility=hidden is used, assume the code has been annotated
12114 correspondingly for the symbols needed. */
12115 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12116 void fnord () __attribute__((visibility("default")));
12117 #endif
12119 void fnord () { int i=42; }
12120 int main ()
12122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12123 int status = $lt_dlunknown;
12125 if (self)
12127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12128 else
12130 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12131 else puts (dlerror ());
12133 /* dlclose (self); */
12135 else
12136 puts (dlerror ());
12138 return status;
12140 _LT_EOF
12141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12142 (eval $ac_link) 2>&5
12143 ac_status=$?
12144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12146 (./conftest; exit; ) >&5 2>/dev/null
12147 lt_status=$?
12148 case x$lt_status in
12149 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12150 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12151 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12152 esac
12153 else :
12154 # compilation failed
12155 lt_cv_dlopen_self=no
12158 rm -fr conftest*
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12163 $as_echo "$lt_cv_dlopen_self" >&6; }
12165 if test "x$lt_cv_dlopen_self" = xyes; then
12166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12168 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12169 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test "$cross_compiling" = yes; then :
12173 lt_cv_dlopen_self_static=cross
12174 else
12175 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12176 lt_status=$lt_dlunknown
12177 cat > conftest.$ac_ext <<_LT_EOF
12178 #line 12178 "configure"
12179 #include "confdefs.h"
12181 #if HAVE_DLFCN_H
12182 #include <dlfcn.h>
12183 #endif
12185 #include <stdio.h>
12187 #ifdef RTLD_GLOBAL
12188 # define LT_DLGLOBAL RTLD_GLOBAL
12189 #else
12190 # ifdef DL_GLOBAL
12191 # define LT_DLGLOBAL DL_GLOBAL
12192 # else
12193 # define LT_DLGLOBAL 0
12194 # endif
12195 #endif
12197 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12198 find out it does not work in some platform. */
12199 #ifndef LT_DLLAZY_OR_NOW
12200 # ifdef RTLD_LAZY
12201 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12202 # else
12203 # ifdef DL_LAZY
12204 # define LT_DLLAZY_OR_NOW DL_LAZY
12205 # else
12206 # ifdef RTLD_NOW
12207 # define LT_DLLAZY_OR_NOW RTLD_NOW
12208 # else
12209 # ifdef DL_NOW
12210 # define LT_DLLAZY_OR_NOW DL_NOW
12211 # else
12212 # define LT_DLLAZY_OR_NOW 0
12213 # endif
12214 # endif
12215 # endif
12216 # endif
12217 #endif
12219 /* When -fvisbility=hidden is used, assume the code has been annotated
12220 correspondingly for the symbols needed. */
12221 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12222 void fnord () __attribute__((visibility("default")));
12223 #endif
12225 void fnord () { int i=42; }
12226 int main ()
12228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12229 int status = $lt_dlunknown;
12231 if (self)
12233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12234 else
12236 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12237 else puts (dlerror ());
12239 /* dlclose (self); */
12241 else
12242 puts (dlerror ());
12244 return status;
12246 _LT_EOF
12247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12248 (eval $ac_link) 2>&5
12249 ac_status=$?
12250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12252 (./conftest; exit; ) >&5 2>/dev/null
12253 lt_status=$?
12254 case x$lt_status in
12255 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12256 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12257 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12258 esac
12259 else :
12260 # compilation failed
12261 lt_cv_dlopen_self_static=no
12264 rm -fr conftest*
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12269 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12272 CPPFLAGS="$save_CPPFLAGS"
12273 LDFLAGS="$save_LDFLAGS"
12274 LIBS="$save_LIBS"
12276 esac
12278 case $lt_cv_dlopen_self in
12279 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12280 *) enable_dlopen_self=unknown ;;
12281 esac
12283 case $lt_cv_dlopen_self_static in
12284 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12285 *) enable_dlopen_self_static=unknown ;;
12286 esac
12305 striplib=
12306 old_striplib=
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12308 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12309 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12310 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12311 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 else
12315 # FIXME - insert some real tests, host_os isn't really good enough
12316 case $host_os in
12317 darwin*)
12318 if test -n "$STRIP" ; then
12319 striplib="$STRIP -x"
12320 old_striplib="$STRIP -S"
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12332 esac
12346 # Report which library types will actually be built
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12348 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12350 $as_echo "$can_build_shared" >&6; }
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12353 $as_echo_n "checking whether to build shared libraries... " >&6; }
12354 test "$can_build_shared" = "no" && enable_shared=no
12356 # On AIX, shared libraries and static libraries use the same namespace, and
12357 # are all built from PIC.
12358 case $host_os in
12359 aix3*)
12360 test "$enable_shared" = yes && enable_static=no
12361 if test -n "$RANLIB"; then
12362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12363 postinstall_cmds='$RANLIB $lib'
12367 aix[4-9]*)
12368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12369 test "$enable_shared" = yes && enable_static=no
12372 esac
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12374 $as_echo "$enable_shared" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12377 $as_echo_n "checking whether to build static libraries... " >&6; }
12378 # Make sure either enable_shared or enable_static is yes.
12379 test "$enable_shared" = yes || enable_static=yes
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12381 $as_echo "$enable_static" >&6; }
12387 ac_ext=c
12388 ac_cpp='$CPP $CPPFLAGS'
12389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393 CC="$lt_save_CC"
12395 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12396 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12397 (test "X$CXX" != "Xg++"))) ; then
12398 ac_ext=cpp
12399 ac_cpp='$CXXCPP $CPPFLAGS'
12400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12404 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12405 if test -z "$CXXCPP"; then
12406 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 # Double quotes because CXXCPP needs to be expanded
12410 for CXXCPP in "$CXX -E" "/lib/cpp"
12412 ac_preproc_ok=false
12413 for ac_cxx_preproc_warn_flag in '' yes
12415 # Use a header file that comes with gcc, so configuring glibc
12416 # with a fresh cross-compiler works.
12417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12418 # <limits.h> exists even on freestanding compilers.
12419 # On the NeXT, cc -E runs the code through the compiler's parser,
12420 # not just through cpp. "Syntax error" is here to catch this case.
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 #ifdef __STDC__
12424 # include <limits.h>
12425 #else
12426 # include <assert.h>
12427 #endif
12428 Syntax error
12429 _ACEOF
12430 if ac_fn_cxx_try_cpp "$LINENO"; then :
12432 else
12433 # Broken: fails on valid input.
12434 continue
12436 rm -f conftest.err conftest.$ac_ext
12438 # OK, works on sane cases. Now check whether nonexistent headers
12439 # can be detected and how.
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <ac_nonexistent.h>
12443 _ACEOF
12444 if ac_fn_cxx_try_cpp "$LINENO"; then :
12445 # Broken: success on invalid input.
12446 continue
12447 else
12448 # Passes both tests.
12449 ac_preproc_ok=:
12450 break
12452 rm -f conftest.err conftest.$ac_ext
12454 done
12455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12456 rm -f conftest.err conftest.$ac_ext
12457 if $ac_preproc_ok; then :
12458 break
12461 done
12462 ac_cv_prog_CXXCPP=$CXXCPP
12465 CXXCPP=$ac_cv_prog_CXXCPP
12466 else
12467 ac_cv_prog_CXXCPP=$CXXCPP
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12470 $as_echo "$CXXCPP" >&6; }
12471 ac_preproc_ok=false
12472 for ac_cxx_preproc_warn_flag in '' yes
12474 # Use a header file that comes with gcc, so configuring glibc
12475 # with a fresh cross-compiler works.
12476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477 # <limits.h> exists even on freestanding compilers.
12478 # On the NeXT, cc -E runs the code through the compiler's parser,
12479 # not just through cpp. "Syntax error" is here to catch this case.
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12482 #ifdef __STDC__
12483 # include <limits.h>
12484 #else
12485 # include <assert.h>
12486 #endif
12487 Syntax error
12488 _ACEOF
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12491 else
12492 # Broken: fails on valid input.
12493 continue
12495 rm -f conftest.err conftest.$ac_ext
12497 # OK, works on sane cases. Now check whether nonexistent headers
12498 # can be detected and how.
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #include <ac_nonexistent.h>
12502 _ACEOF
12503 if ac_fn_cxx_try_cpp "$LINENO"; then :
12504 # Broken: success on invalid input.
12505 continue
12506 else
12507 # Passes both tests.
12508 ac_preproc_ok=:
12509 break
12511 rm -f conftest.err conftest.$ac_ext
12513 done
12514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12515 rm -f conftest.err conftest.$ac_ext
12516 if $ac_preproc_ok; then :
12518 else
12519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12521 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12522 See \`config.log' for more details." "$LINENO" 5; }
12525 ac_ext=c
12526 ac_cpp='$CPP $CPPFLAGS'
12527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12531 else
12532 _lt_caught_CXX_error=yes
12535 ac_ext=cpp
12536 ac_cpp='$CXXCPP $CPPFLAGS'
12537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12541 archive_cmds_need_lc_CXX=no
12542 allow_undefined_flag_CXX=
12543 always_export_symbols_CXX=no
12544 archive_expsym_cmds_CXX=
12545 compiler_needs_object_CXX=no
12546 export_dynamic_flag_spec_CXX=
12547 hardcode_direct_CXX=no
12548 hardcode_direct_absolute_CXX=no
12549 hardcode_libdir_flag_spec_CXX=
12550 hardcode_libdir_flag_spec_ld_CXX=
12551 hardcode_libdir_separator_CXX=
12552 hardcode_minus_L_CXX=no
12553 hardcode_shlibpath_var_CXX=unsupported
12554 hardcode_automatic_CXX=no
12555 inherit_rpath_CXX=no
12556 module_cmds_CXX=
12557 module_expsym_cmds_CXX=
12558 link_all_deplibs_CXX=unknown
12559 old_archive_cmds_CXX=$old_archive_cmds
12560 reload_flag_CXX=$reload_flag
12561 reload_cmds_CXX=$reload_cmds
12562 no_undefined_flag_CXX=
12563 whole_archive_flag_spec_CXX=
12564 enable_shared_with_static_runtimes_CXX=no
12566 # Source file extension for C++ test sources.
12567 ac_ext=cpp
12569 # Object file extension for compiled C++ test sources.
12570 objext=o
12571 objext_CXX=$objext
12573 # No sense in running all these tests if we already determined that
12574 # the CXX compiler isn't working. Some variables (like enable_shared)
12575 # are currently assumed to apply to all compilers on this platform,
12576 # and will be corrupted by setting them based on a non-working compiler.
12577 if test "$_lt_caught_CXX_error" != yes; then
12578 # Code to be used in simple compile tests
12579 lt_simple_compile_test_code="int some_variable = 0;"
12581 # Code to be used in simple link tests
12582 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12591 # If no C compiler was specified, use CC.
12592 LTCC=${LTCC-"$CC"}
12594 # If no C compiler flags were specified, use CFLAGS.
12595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12597 # Allow CC to be a program name with arguments.
12598 compiler=$CC
12601 # save warnings/boilerplate of simple test code
12602 ac_outfile=conftest.$ac_objext
12603 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12604 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12605 _lt_compiler_boilerplate=`cat conftest.err`
12606 $RM conftest*
12608 ac_outfile=conftest.$ac_objext
12609 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12610 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12611 _lt_linker_boilerplate=`cat conftest.err`
12612 $RM -r conftest*
12615 # Allow CC to be a program name with arguments.
12616 lt_save_CC=$CC
12617 lt_save_LD=$LD
12618 lt_save_GCC=$GCC
12619 GCC=$GXX
12620 lt_save_with_gnu_ld=$with_gnu_ld
12621 lt_save_path_LD=$lt_cv_path_LD
12622 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12623 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12624 else
12625 $as_unset lt_cv_prog_gnu_ld
12627 if test -n "${lt_cv_path_LDCXX+set}"; then
12628 lt_cv_path_LD=$lt_cv_path_LDCXX
12629 else
12630 $as_unset lt_cv_path_LD
12632 test -z "${LDCXX+set}" || LD=$LDCXX
12633 CC=${CXX-"c++"}
12634 compiler=$CC
12635 compiler_CXX=$CC
12636 for cc_temp in $compiler""; do
12637 case $cc_temp in
12638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12640 \-*) ;;
12641 *) break;;
12642 esac
12643 done
12644 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12647 if test -n "$compiler"; then
12648 # We don't want -fno-exception when compiling C++ code, so set the
12649 # no_builtin_flag separately
12650 if test "$GXX" = yes; then
12651 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12652 else
12653 lt_prog_compiler_no_builtin_flag_CXX=
12656 if test "$GXX" = yes; then
12657 # Set up default GNU C++ configuration
12661 # Check whether --with-gnu-ld was given.
12662 if test "${with_gnu_ld+set}" = set; then :
12663 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12664 else
12665 with_gnu_ld=no
12668 ac_prog=ld
12669 if test "$GCC" = yes; then
12670 # Check if gcc -print-prog-name=ld gives a path.
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12672 $as_echo_n "checking for ld used by $CC... " >&6; }
12673 case $host in
12674 *-*-mingw*)
12675 # gcc leaves a trailing carriage return which upsets mingw
12676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12679 esac
12680 case $ac_prog in
12681 # Accept absolute paths.
12682 [\\/]* | ?:[\\/]*)
12683 re_direlt='/[^/][^/]*/\.\./'
12684 # Canonicalize the pathname of ld
12685 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12686 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12687 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12688 done
12689 test -z "$LD" && LD="$ac_prog"
12692 # If it fails, then pretend we aren't using GCC.
12693 ac_prog=ld
12696 # If it is relative, then search for the first ld in PATH.
12697 with_gnu_ld=unknown
12699 esac
12700 elif test "$with_gnu_ld" = yes; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12702 $as_echo_n "checking for GNU ld... " >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12705 $as_echo_n "checking for non-GNU ld... " >&6; }
12707 if test "${lt_cv_path_LD+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 if test -z "$LD"; then
12711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12712 for ac_dir in $PATH; do
12713 IFS="$lt_save_ifs"
12714 test -z "$ac_dir" && ac_dir=.
12715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12716 lt_cv_path_LD="$ac_dir/$ac_prog"
12717 # Check to see if the program is GNU ld. I'd rather use --version,
12718 # but apparently some variants of GNU ld only accept -v.
12719 # Break only if it was the GNU/non-GNU ld that we prefer.
12720 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12721 *GNU* | *'with BFD'*)
12722 test "$with_gnu_ld" != no && break
12725 test "$with_gnu_ld" != yes && break
12727 esac
12729 done
12730 IFS="$lt_save_ifs"
12731 else
12732 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12736 LD="$lt_cv_path_LD"
12737 if test -n "$LD"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12739 $as_echo "$LD" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12744 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12746 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12747 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12751 case `$LD -v 2>&1 </dev/null` in
12752 *GNU* | *'with BFD'*)
12753 lt_cv_prog_gnu_ld=yes
12756 lt_cv_prog_gnu_ld=no
12758 esac
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12761 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12762 with_gnu_ld=$lt_cv_prog_gnu_ld
12770 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12771 # archiving commands below assume that GNU ld is being used.
12772 if test "$with_gnu_ld" = yes; then
12773 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12779 # If archive_cmds runs LD, not CC, wlarc should be empty
12780 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12781 # investigate it a little bit more. (MM)
12782 wlarc='${wl}'
12784 # ancient GNU ld didn't support --whole-archive et. al.
12785 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12786 $GREP 'no-whole-archive' > /dev/null; then
12787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12788 else
12789 whole_archive_flag_spec_CXX=
12791 else
12792 with_gnu_ld=no
12793 wlarc=
12795 # A generic and very simple default shared library creation
12796 # command for GNU C++ for the case where it uses the native
12797 # linker, instead of GNU ld. If possible, this setting should
12798 # overridden to take advantage of the native linker features on
12799 # the platform it is being used on.
12800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12803 # Commands to make compiler produce verbose output that lists
12804 # what "hidden" libraries, object files and flags are used when
12805 # linking a shared library.
12806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12808 else
12809 GXX=no
12810 with_gnu_ld=no
12811 wlarc=
12814 # PORTME: fill in a description of your system's C++ link characteristics
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12817 ld_shlibs_CXX=yes
12818 case $host_os in
12819 aix3*)
12820 # FIXME: insert proper C++ library support
12821 ld_shlibs_CXX=no
12823 aix[4-9]*)
12824 if test "$host_cpu" = ia64; then
12825 # On IA64, the linker does run time linking by default, so we don't
12826 # have to do anything special.
12827 aix_use_runtimelinking=no
12828 exp_sym_flag='-Bexport'
12829 no_entry_flag=""
12830 else
12831 aix_use_runtimelinking=no
12833 # Test if we are trying to use run time linking or normal
12834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12835 # need to do runtime linking.
12836 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12837 for ld_flag in $LDFLAGS; do
12838 case $ld_flag in
12839 *-brtl*)
12840 aix_use_runtimelinking=yes
12841 break
12843 esac
12844 done
12846 esac
12848 exp_sym_flag='-bexport'
12849 no_entry_flag='-bnoentry'
12852 # When large executables or shared objects are built, AIX ld can
12853 # have problems creating the table of contents. If linking a library
12854 # or program results in "error TOC overflow" add -mminimal-toc to
12855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12858 archive_cmds_CXX=''
12859 hardcode_direct_CXX=yes
12860 hardcode_direct_absolute_CXX=yes
12861 hardcode_libdir_separator_CXX=':'
12862 link_all_deplibs_CXX=yes
12863 file_list_spec_CXX='${wl}-f,'
12865 if test "$GXX" = yes; then
12866 case $host_os in aix4.[012]|aix4.[012].*)
12867 # We only want to do this on AIX 4.2 and lower, the check
12868 # below for broken collect2 doesn't work under 4.3+
12869 collect2name=`${CC} -print-prog-name=collect2`
12870 if test -f "$collect2name" &&
12871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12872 then
12873 # We have reworked collect2
12875 else
12876 # We have old collect2
12877 hardcode_direct_CXX=unsupported
12878 # It fails to find uninstalled libraries when the uninstalled
12879 # path is not listed in the libpath. Setting hardcode_minus_L
12880 # to unsupported forces relinking
12881 hardcode_minus_L_CXX=yes
12882 hardcode_libdir_flag_spec_CXX='-L$libdir'
12883 hardcode_libdir_separator_CXX=
12885 esac
12886 shared_flag='-shared'
12887 if test "$aix_use_runtimelinking" = yes; then
12888 shared_flag="$shared_flag "'${wl}-G'
12890 else
12891 # not using gcc
12892 if test "$host_cpu" = ia64; then
12893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12894 # chokes on -Wl,-G. The following line is correct:
12895 shared_flag='-G'
12896 else
12897 if test "$aix_use_runtimelinking" = yes; then
12898 shared_flag='${wl}-G'
12899 else
12900 shared_flag='${wl}-bM:SRE'
12905 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12906 # It seems that -bexpall does not export symbols beginning with
12907 # underscore (_), so it is better to generate a list of symbols to
12908 # export.
12909 always_export_symbols_CXX=yes
12910 if test "$aix_use_runtimelinking" = yes; then
12911 # Warning - without using the other runtime loading flags (-brtl),
12912 # -berok will link without error, but may produce a broken library.
12913 allow_undefined_flag_CXX='-berok'
12914 # Determine the default libpath from the value encoded in an empty
12915 # executable.
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12920 main ()
12924 return 0;
12926 _ACEOF
12927 if ac_fn_cxx_try_link "$LINENO"; then :
12929 lt_aix_libpath_sed='
12930 /Import File Strings/,/^$/ {
12931 /^0/ {
12932 s/^0 *\(.*\)$/\1/
12936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12937 # Check for a 64-bit object if we didn't find anything.
12938 if test -z "$aix_libpath"; then
12939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12946 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12948 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"
12949 else
12950 if test "$host_cpu" = ia64; then
12951 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12952 allow_undefined_flag_CXX="-z nodefs"
12953 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"
12954 else
12955 # Determine the default libpath from the value encoded in an
12956 # empty executable.
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12961 main ()
12965 return 0;
12967 _ACEOF
12968 if ac_fn_cxx_try_link "$LINENO"; then :
12970 lt_aix_libpath_sed='
12971 /Import File Strings/,/^$/ {
12972 /^0/ {
12973 s/^0 *\(.*\)$/\1/
12977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12978 # Check for a 64-bit object if we didn't find anything.
12979 if test -z "$aix_libpath"; then
12980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12988 # Warning - without using the other run time loading flags,
12989 # -berok will link without error, but may produce a broken library.
12990 no_undefined_flag_CXX=' ${wl}-bernotok'
12991 allow_undefined_flag_CXX=' ${wl}-berok'
12992 if test "$with_gnu_ld" = yes; then
12993 # We only use this code for GNU lds that support --whole-archive.
12994 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12995 else
12996 # Exported symbols can be pulled into shared objects from archives
12997 whole_archive_flag_spec_CXX='$convenience'
12999 archive_cmds_need_lc_CXX=yes
13000 # This is similar to how AIX traditionally builds its shared
13001 # libraries.
13002 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'
13007 beos*)
13008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13009 allow_undefined_flag_CXX=unsupported
13010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13011 # support --undefined. This deserves some investigation. FIXME
13012 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13013 else
13014 ld_shlibs_CXX=no
13018 chorus*)
13019 case $cc_basename in
13021 # FIXME: insert proper C++ library support
13022 ld_shlibs_CXX=no
13024 esac
13027 cygwin* | mingw* | pw32* | cegcc*)
13028 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13029 # as there is no search path for DLLs.
13030 hardcode_libdir_flag_spec_CXX='-L$libdir'
13031 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13032 allow_undefined_flag_CXX=unsupported
13033 always_export_symbols_CXX=no
13034 enable_shared_with_static_runtimes_CXX=yes
13036 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13037 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'
13038 # If the export-symbols file already is a .def file (1st line
13039 # is EXPORTS), use it as is; otherwise, prepend...
13040 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13041 cp $export_symbols $output_objdir/$soname.def;
13042 else
13043 echo EXPORTS > $output_objdir/$soname.def;
13044 cat $export_symbols >> $output_objdir/$soname.def;
13046 $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'
13047 else
13048 ld_shlibs_CXX=no
13051 darwin* | rhapsody*)
13054 archive_cmds_need_lc_CXX=no
13055 hardcode_direct_CXX=no
13056 hardcode_automatic_CXX=yes
13057 hardcode_shlibpath_var_CXX=unsupported
13058 if test "$lt_cv_ld_force_load" = "yes"; then
13059 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\"`'
13060 else
13061 whole_archive_flag_spec_CXX=''
13063 link_all_deplibs_CXX=yes
13064 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13065 case $cc_basename in
13066 ifort*) _lt_dar_can_shared=yes ;;
13067 *) _lt_dar_can_shared=$GCC ;;
13068 esac
13069 if test "$_lt_dar_can_shared" = "yes"; then
13070 output_verbose_link_cmd=func_echo_all
13071 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}"
13072 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13073 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}"
13074 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}"
13075 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13076 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}"
13077 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}"
13080 else
13081 ld_shlibs_CXX=no
13086 dgux*)
13087 case $cc_basename in
13088 ec++*)
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13092 ghcx*)
13093 # Green Hills C++ Compiler
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13101 esac
13104 freebsd2.*)
13105 # C++ shared libraries reported to be fairly broken before
13106 # switch to ELF
13107 ld_shlibs_CXX=no
13110 freebsd-elf*)
13111 archive_cmds_need_lc_CXX=no
13114 freebsd* | dragonfly*)
13115 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13116 # conventions
13117 ld_shlibs_CXX=yes
13120 gnu*)
13123 haiku*)
13124 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13125 link_all_deplibs_CXX=yes
13128 hpux9*)
13129 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13130 hardcode_libdir_separator_CXX=:
13131 export_dynamic_flag_spec_CXX='${wl}-E'
13132 hardcode_direct_CXX=yes
13133 hardcode_minus_L_CXX=yes # Not in the search PATH,
13134 # but as the default
13135 # location of the library.
13137 case $cc_basename in
13138 CC*)
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13142 aCC*)
13143 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'
13144 # Commands to make compiler produce verbose output that lists
13145 # what "hidden" libraries, object files and flags are used when
13146 # linking a shared library.
13148 # There doesn't appear to be a way to prevent this compiler from
13149 # explicitly linking system object files so we need to strip them
13150 # from the output so that they don't get included in the library
13151 # dependencies.
13152 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"'
13155 if test "$GXX" = yes; then
13156 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'
13157 else
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13162 esac
13165 hpux10*|hpux11*)
13166 if test $with_gnu_ld = no; then
13167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13168 hardcode_libdir_separator_CXX=:
13170 case $host_cpu in
13171 hppa*64*|ia64*)
13174 export_dynamic_flag_spec_CXX='${wl}-E'
13176 esac
13178 case $host_cpu in
13179 hppa*64*|ia64*)
13180 hardcode_direct_CXX=no
13181 hardcode_shlibpath_var_CXX=no
13184 hardcode_direct_CXX=yes
13185 hardcode_direct_absolute_CXX=yes
13186 hardcode_minus_L_CXX=yes # Not in the search PATH,
13187 # but as the default
13188 # location of the library.
13190 esac
13192 case $cc_basename in
13193 CC*)
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13197 aCC*)
13198 case $host_cpu in
13199 hppa*64*)
13200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13202 ia64*)
13203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13208 esac
13209 # Commands to make compiler produce verbose output that lists
13210 # what "hidden" libraries, object files and flags are used when
13211 # linking a shared library.
13213 # There doesn't appear to be a way to prevent this compiler from
13214 # explicitly linking system object files so we need to strip them
13215 # from the output so that they don't get included in the library
13216 # dependencies.
13217 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"'
13220 if test "$GXX" = yes; then
13221 if test $with_gnu_ld = no; then
13222 case $host_cpu in
13223 hppa*64*)
13224 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13226 ia64*)
13227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13230 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'
13232 esac
13234 else
13235 # FIXME: insert proper C++ library support
13236 ld_shlibs_CXX=no
13239 esac
13242 interix[3-9]*)
13243 hardcode_direct_CXX=no
13244 hardcode_shlibpath_var_CXX=no
13245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13246 export_dynamic_flag_spec_CXX='${wl}-E'
13247 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13248 # Instead, shared libraries are loaded at an image base (0x10000000 by
13249 # default) and relocated if they conflict, which is a slow very memory
13250 # consuming and fragmenting process. To avoid this, we pick a random,
13251 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13252 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13253 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'
13254 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'
13256 irix5* | irix6*)
13257 case $cc_basename in
13258 CC*)
13259 # SGI C++
13260 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'
13262 # Archives containing C++ object files must be created using
13263 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13264 # necessary to make sure instantiated templates are included
13265 # in the archive.
13266 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13269 if test "$GXX" = yes; then
13270 if test "$with_gnu_ld" = no; then
13271 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'
13272 else
13273 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'
13276 link_all_deplibs_CXX=yes
13278 esac
13279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13280 hardcode_libdir_separator_CXX=:
13281 inherit_rpath_CXX=yes
13284 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13285 case $cc_basename in
13286 KCC*)
13287 # Kuck and Associates, Inc. (KAI) C++ Compiler
13289 # KCC will only create a shared library if the output file
13290 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13291 # to its proper name (with version) after linking.
13292 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'
13293 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'
13294 # Commands to make compiler produce verbose output that lists
13295 # what "hidden" libraries, object files and flags are used when
13296 # linking a shared library.
13298 # There doesn't appear to be a way to prevent this compiler from
13299 # explicitly linking system object files so we need to strip them
13300 # from the output so that they don't get included in the library
13301 # dependencies.
13302 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"'
13304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13307 # Archives containing C++ object files must be created using
13308 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13309 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13311 icpc* | ecpc* )
13312 # Intel C++
13313 with_gnu_ld=yes
13314 # version 8.0 and above of icpc choke on multiply defined symbols
13315 # if we add $predep_objects and $postdep_objects, however 7.1 and
13316 # earlier do not add the objects themselves.
13317 case `$CC -V 2>&1` in
13318 *"Version 7."*)
13319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320 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'
13322 *) # Version 8.0 or newer
13323 tmp_idyn=
13324 case $host_cpu in
13325 ia64*) tmp_idyn=' -i_dynamic';;
13326 esac
13327 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13328 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'
13330 esac
13331 archive_cmds_need_lc_CXX=no
13332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13334 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13336 pgCC* | pgcpp*)
13337 # Portland Group C++ compiler
13338 case `$CC -V` in
13339 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13340 prelink_cmds_CXX='tpldir=Template.dir~
13341 rm -rf $tpldir~
13342 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13343 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13344 old_archive_cmds_CXX='tpldir=Template.dir~
13345 rm -rf $tpldir~
13346 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13347 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13348 $RANLIB $oldlib'
13349 archive_cmds_CXX='tpldir=Template.dir~
13350 rm -rf $tpldir~
13351 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13352 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13353 archive_expsym_cmds_CXX='tpldir=Template.dir~
13354 rm -rf $tpldir~
13355 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13356 $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'
13358 *) # Version 6 and above use weak symbols
13359 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13360 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'
13362 esac
13364 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13366 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'
13368 cxx*)
13369 # Compaq C++
13370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13371 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'
13373 runpath_var=LD_RUN_PATH
13374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13375 hardcode_libdir_separator_CXX=:
13377 # Commands to make compiler produce verbose output that lists
13378 # what "hidden" libraries, object files and flags are used when
13379 # linking a shared library.
13381 # There doesn't appear to be a way to prevent this compiler from
13382 # explicitly linking system object files so we need to strip them
13383 # from the output so that they don't get included in the library
13384 # dependencies.
13385 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'
13387 xl* | mpixl* | bgxl*)
13388 # IBM XL 8.0 on PPC, with GNU ld
13389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13391 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392 if test "x$supports_anon_versioning" = xyes; then
13393 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13394 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13395 echo "local: *; };" >> $output_objdir/$libname.ver~
13396 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13400 case `$CC -V 2>&1 | sed 5q` in
13401 *Sun\ C*)
13402 # Sun C++ 5.9
13403 no_undefined_flag_CXX=' -zdefs'
13404 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13405 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'
13406 hardcode_libdir_flag_spec_CXX='-R$libdir'
13407 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'
13408 compiler_needs_object_CXX=yes
13410 # Not sure whether something based on
13411 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13412 # would be better.
13413 output_verbose_link_cmd='func_echo_all'
13415 # Archives containing C++ object files must be created using
13416 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13417 # necessary to make sure instantiated templates are included
13418 # in the archive.
13419 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13421 esac
13423 esac
13426 lynxos*)
13427 # FIXME: insert proper C++ library support
13428 ld_shlibs_CXX=no
13431 m88k*)
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13436 mvs*)
13437 case $cc_basename in
13438 cxx*)
13439 # FIXME: insert proper C++ library support
13440 ld_shlibs_CXX=no
13443 # FIXME: insert proper C++ library support
13444 ld_shlibs_CXX=no
13446 esac
13449 netbsd*)
13450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13451 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13452 wlarc=
13453 hardcode_libdir_flag_spec_CXX='-R$libdir'
13454 hardcode_direct_CXX=yes
13455 hardcode_shlibpath_var_CXX=no
13457 # Workaround some broken pre-1.5 toolchains
13458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13461 *nto* | *qnx*)
13462 ld_shlibs_CXX=yes
13465 openbsd2*)
13466 # C++ shared libraries are fairly broken
13467 ld_shlibs_CXX=no
13470 openbsd*)
13471 if test -f /usr/libexec/ld.so; then
13472 hardcode_direct_CXX=yes
13473 hardcode_shlibpath_var_CXX=no
13474 hardcode_direct_absolute_CXX=yes
13475 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13476 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13477 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13478 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13479 export_dynamic_flag_spec_CXX='${wl}-E'
13480 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13482 output_verbose_link_cmd=func_echo_all
13483 else
13484 ld_shlibs_CXX=no
13488 osf3* | osf4* | osf5*)
13489 case $cc_basename in
13490 KCC*)
13491 # Kuck and Associates, Inc. (KAI) C++ Compiler
13493 # KCC will only create a shared library if the output file
13494 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13495 # to its proper name (with version) after linking.
13496 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'
13498 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13499 hardcode_libdir_separator_CXX=:
13501 # Archives containing C++ object files must be created using
13502 # the KAI C++ compiler.
13503 case $host in
13504 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13505 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13506 esac
13508 RCC*)
13509 # Rational C++ 2.4.1
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13513 cxx*)
13514 case $host in
13515 osf3*)
13516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13517 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'
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13521 allow_undefined_flag_CXX=' -expect_unresolved \*'
13522 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'
13523 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13524 echo "-hidden">> $lib.exp~
13525 $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~
13526 $RM $lib.exp'
13527 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13529 esac
13531 hardcode_libdir_separator_CXX=:
13533 # Commands to make compiler produce verbose output that lists
13534 # what "hidden" libraries, object files and flags are used when
13535 # linking a shared library.
13537 # There doesn't appear to be a way to prevent this compiler from
13538 # explicitly linking system object files so we need to strip them
13539 # from the output so that they don't get included in the library
13540 # dependencies.
13541 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"'
13544 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13545 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13546 case $host in
13547 osf3*)
13548 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'
13551 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'
13553 esac
13555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13556 hardcode_libdir_separator_CXX=:
13558 # Commands to make compiler produce verbose output that lists
13559 # what "hidden" libraries, object files and flags are used when
13560 # linking a shared library.
13561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13563 else
13564 # FIXME: insert proper C++ library support
13565 ld_shlibs_CXX=no
13568 esac
13571 psos*)
13572 # FIXME: insert proper C++ library support
13573 ld_shlibs_CXX=no
13576 sunos4*)
13577 case $cc_basename in
13578 CC*)
13579 # Sun C++ 4.x
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13583 lcc*)
13584 # Lucid
13585 # FIXME: insert proper C++ library support
13586 ld_shlibs_CXX=no
13589 # FIXME: insert proper C++ library support
13590 ld_shlibs_CXX=no
13592 esac
13595 solaris*)
13596 case $cc_basename in
13597 CC*)
13598 # Sun C++ 4.2, 5.x and Centerline C++
13599 archive_cmds_need_lc_CXX=yes
13600 no_undefined_flag_CXX=' -zdefs'
13601 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13602 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603 $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'
13605 hardcode_libdir_flag_spec_CXX='-R$libdir'
13606 hardcode_shlibpath_var_CXX=no
13607 case $host_os in
13608 solaris2.[0-5] | solaris2.[0-5].*) ;;
13610 # The compiler driver will combine and reorder linker options,
13611 # but understands `-z linker_flag'.
13612 # Supported since Solaris 2.6 (maybe 2.5.1?)
13613 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13615 esac
13616 link_all_deplibs_CXX=yes
13618 output_verbose_link_cmd='func_echo_all'
13620 # Archives containing C++ object files must be created using
13621 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13622 # necessary to make sure instantiated templates are included
13623 # in the archive.
13624 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13626 gcx*)
13627 # Green Hills C++ Compiler
13628 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13630 # The C++ compiler must be used to create the archive.
13631 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13634 # GNU C++ compiler with Solaris linker
13635 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13636 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13637 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13638 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13639 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13642 # Commands to make compiler produce verbose output that lists
13643 # what "hidden" libraries, object files and flags are used when
13644 # linking a shared library.
13645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13646 else
13647 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13648 # platform.
13649 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13650 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13651 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13653 # Commands to make compiler produce verbose output that lists
13654 # what "hidden" libraries, object files and flags are used when
13655 # linking a shared library.
13656 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13659 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13660 case $host_os in
13661 solaris2.[0-5] | solaris2.[0-5].*) ;;
13663 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13665 esac
13668 esac
13671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13672 no_undefined_flag_CXX='${wl}-z,text'
13673 archive_cmds_need_lc_CXX=no
13674 hardcode_shlibpath_var_CXX=no
13675 runpath_var='LD_RUN_PATH'
13677 case $cc_basename in
13678 CC*)
13679 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13684 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13686 esac
13689 sysv5* | sco3.2v5* | sco5v6*)
13690 # Note: We can NOT use -z defs as we might desire, because we do not
13691 # link with -lc, and that would cause any symbols used from libc to
13692 # always be unresolved, which means just about no library would
13693 # ever link correctly. If we're not using GNU ld we use -z text
13694 # though, which does catch some bad symbols but isn't as heavy-handed
13695 # as -z defs.
13696 no_undefined_flag_CXX='${wl}-z,text'
13697 allow_undefined_flag_CXX='${wl}-z,nodefs'
13698 archive_cmds_need_lc_CXX=no
13699 hardcode_shlibpath_var_CXX=no
13700 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13701 hardcode_libdir_separator_CXX=':'
13702 link_all_deplibs_CXX=yes
13703 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13704 runpath_var='LD_RUN_PATH'
13706 case $cc_basename in
13707 CC*)
13708 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13709 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13710 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13711 '"$old_archive_cmds_CXX"
13712 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13713 '"$reload_cmds_CXX"
13716 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13717 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13719 esac
13722 tandem*)
13723 case $cc_basename in
13724 NCC*)
13725 # NonStop-UX NCC 3.20
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13733 esac
13736 vxworks*)
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13742 # FIXME: insert proper C++ library support
13743 ld_shlibs_CXX=no
13745 esac
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13748 $as_echo "$ld_shlibs_CXX" >&6; }
13749 test "$ld_shlibs_CXX" = no && can_build_shared=no
13751 GCC_CXX="$GXX"
13752 LD_CXX="$LD"
13754 ## CAVEAT EMPTOR:
13755 ## There is no encapsulation within the following macros, do not change
13756 ## the running order or otherwise move them around unless you know exactly
13757 ## what you are doing...
13758 # Dependencies to place before and after the object being linked:
13759 predep_objects_CXX=
13760 postdep_objects_CXX=
13761 predeps_CXX=
13762 postdeps_CXX=
13763 compiler_lib_search_path_CXX=
13765 cat > conftest.$ac_ext <<_LT_EOF
13766 class Foo
13768 public:
13769 Foo (void) { a = 0; }
13770 private:
13771 int a;
13773 _LT_EOF
13775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13776 (eval $ac_compile) 2>&5
13777 ac_status=$?
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13779 test $ac_status = 0; }; then
13780 # Parse the compiler output and extract the necessary
13781 # objects, libraries and library flags.
13783 # Sentinel used to keep track of whether or not we are before
13784 # the conftest object file.
13785 pre_test_object_deps_done=no
13787 for p in `eval "$output_verbose_link_cmd"`; do
13788 case $p in
13790 -L* | -R* | -l*)
13791 # Some compilers place space between "-{L,R}" and the path.
13792 # Remove the space.
13793 if test $p = "-L" ||
13794 test $p = "-R"; then
13795 prev=$p
13796 continue
13797 else
13798 prev=
13801 if test "$pre_test_object_deps_done" = no; then
13802 case $p in
13803 -L* | -R*)
13804 # Internal compiler library paths should come after those
13805 # provided the user. The postdeps already come after the
13806 # user supplied libs so there is no need to process them.
13807 if test -z "$compiler_lib_search_path_CXX"; then
13808 compiler_lib_search_path_CXX="${prev}${p}"
13809 else
13810 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13813 # The "-l" case would never come before the object being
13814 # linked, so don't bother handling this case.
13815 esac
13816 else
13817 if test -z "$postdeps_CXX"; then
13818 postdeps_CXX="${prev}${p}"
13819 else
13820 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13825 *.$objext)
13826 # This assumes that the test object file only shows up
13827 # once in the compiler output.
13828 if test "$p" = "conftest.$objext"; then
13829 pre_test_object_deps_done=yes
13830 continue
13833 if test "$pre_test_object_deps_done" = no; then
13834 if test -z "$predep_objects_CXX"; then
13835 predep_objects_CXX="$p"
13836 else
13837 predep_objects_CXX="$predep_objects_CXX $p"
13839 else
13840 if test -z "$postdep_objects_CXX"; then
13841 postdep_objects_CXX="$p"
13842 else
13843 postdep_objects_CXX="$postdep_objects_CXX $p"
13848 *) ;; # Ignore the rest.
13850 esac
13851 done
13853 # Clean up.
13854 rm -f a.out a.exe
13855 else
13856 echo "libtool.m4: error: problem compiling CXX test program"
13859 $RM -f confest.$objext
13861 # PORTME: override above test on systems where it is broken
13862 case $host_os in
13863 interix[3-9]*)
13864 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13865 # hack all around it, let's just trust "g++" to DTRT.
13866 predep_objects_CXX=
13867 postdep_objects_CXX=
13868 postdeps_CXX=
13871 linux*)
13872 case `$CC -V 2>&1 | sed 5q` in
13873 *Sun\ C*)
13874 # Sun C++ 5.9
13876 # The more standards-conforming stlport4 library is
13877 # incompatible with the Cstd library. Avoid specifying
13878 # it if it's in CXXFLAGS. Ignore libCrun as
13879 # -library=stlport4 depends on it.
13880 case " $CXX $CXXFLAGS " in
13881 *" -library=stlport4 "*)
13882 solaris_use_stlport4=yes
13884 esac
13886 if test "$solaris_use_stlport4" != yes; then
13887 postdeps_CXX='-library=Cstd -library=Crun'
13890 esac
13893 solaris*)
13894 case $cc_basename in
13895 CC*)
13896 # The more standards-conforming stlport4 library is
13897 # incompatible with the Cstd library. Avoid specifying
13898 # it if it's in CXXFLAGS. Ignore libCrun as
13899 # -library=stlport4 depends on it.
13900 case " $CXX $CXXFLAGS " in
13901 *" -library=stlport4 "*)
13902 solaris_use_stlport4=yes
13904 esac
13906 # Adding this requires a known-good setup of shared libraries for
13907 # Sun compiler versions before 5.6, else PIC objects from an old
13908 # archive will be linked into the output, leading to subtle bugs.
13909 if test "$solaris_use_stlport4" != yes; then
13910 postdeps_CXX='-library=Cstd -library=Crun'
13913 esac
13915 esac
13918 case " $postdeps_CXX " in
13919 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13920 esac
13921 compiler_lib_search_dirs_CXX=
13922 if test -n "${compiler_lib_search_path_CXX}"; then
13923 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13956 lt_prog_compiler_wl_CXX=
13957 lt_prog_compiler_pic_CXX=
13958 lt_prog_compiler_static_CXX=
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13961 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13963 # C++ specific cases for pic, static, wl, etc.
13964 if test "$GXX" = yes; then
13965 lt_prog_compiler_wl_CXX='-Wl,'
13966 lt_prog_compiler_static_CXX='-static'
13968 case $host_os in
13969 aix*)
13970 # All AIX code is PIC.
13971 if test "$host_cpu" = ia64; then
13972 # AIX 5 now supports IA64 processor
13973 lt_prog_compiler_static_CXX='-Bstatic'
13975 lt_prog_compiler_pic_CXX='-fPIC'
13978 amigaos*)
13979 case $host_cpu in
13980 powerpc)
13981 # see comment about AmigaOS4 .so support
13982 lt_prog_compiler_pic_CXX='-fPIC'
13984 m68k)
13985 # FIXME: we need at least 68020 code to build shared libraries, but
13986 # adding the `-m68020' flag to GCC prevents building anything better,
13987 # like `-m68040'.
13988 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13990 esac
13993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13994 # PIC is the default for these OSes.
13996 mingw* | cygwin* | os2* | pw32* | cegcc*)
13997 # This hack is so that the source file can tell whether it is being
13998 # built for inclusion in a dll (and should export symbols for example).
13999 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14000 # (--disable-auto-import) libraries
14001 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14003 darwin* | rhapsody*)
14004 # PIC is the default on this platform
14005 # Common symbols not allowed in MH_DYLIB files
14006 lt_prog_compiler_pic_CXX='-fno-common'
14008 *djgpp*)
14009 # DJGPP does not support shared libraries at all
14010 lt_prog_compiler_pic_CXX=
14012 haiku*)
14013 # PIC is the default for Haiku.
14014 # The "-static" flag exists, but is broken.
14015 lt_prog_compiler_static_CXX=
14017 interix[3-9]*)
14018 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14019 # Instead, we relocate shared libraries at runtime.
14021 sysv4*MP*)
14022 if test -d /usr/nec; then
14023 lt_prog_compiler_pic_CXX=-Kconform_pic
14026 hpux*)
14027 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14028 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14029 # sets the default TLS model and affects inlining.
14030 case $host_cpu in
14031 hppa*64*)
14034 lt_prog_compiler_pic_CXX='-fPIC'
14036 esac
14038 *qnx* | *nto*)
14039 # QNX uses GNU C++, but need to define -shared option too, otherwise
14040 # it will coredump.
14041 lt_prog_compiler_pic_CXX='-fPIC -shared'
14044 lt_prog_compiler_pic_CXX='-fPIC'
14046 esac
14047 else
14048 case $host_os in
14049 aix[4-9]*)
14050 # All AIX code is PIC.
14051 if test "$host_cpu" = ia64; then
14052 # AIX 5 now supports IA64 processor
14053 lt_prog_compiler_static_CXX='-Bstatic'
14054 else
14055 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14058 chorus*)
14059 case $cc_basename in
14060 cxch68*)
14061 # Green Hills C++ Compiler
14062 # _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"
14064 esac
14066 dgux*)
14067 case $cc_basename in
14068 ec++*)
14069 lt_prog_compiler_pic_CXX='-KPIC'
14071 ghcx*)
14072 # Green Hills C++ Compiler
14073 lt_prog_compiler_pic_CXX='-pic'
14077 esac
14079 freebsd* | dragonfly*)
14080 # FreeBSD uses GNU C++
14082 hpux9* | hpux10* | hpux11*)
14083 case $cc_basename in
14084 CC*)
14085 lt_prog_compiler_wl_CXX='-Wl,'
14086 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14087 if test "$host_cpu" != ia64; then
14088 lt_prog_compiler_pic_CXX='+Z'
14091 aCC*)
14092 lt_prog_compiler_wl_CXX='-Wl,'
14093 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14094 case $host_cpu in
14095 hppa*64*|ia64*)
14096 # +Z the default
14099 lt_prog_compiler_pic_CXX='+Z'
14101 esac
14105 esac
14107 interix*)
14108 # This is c89, which is MS Visual C++ (no shared libs)
14109 # Anyone wants to do a port?
14111 irix5* | irix6* | nonstopux*)
14112 case $cc_basename in
14113 CC*)
14114 lt_prog_compiler_wl_CXX='-Wl,'
14115 lt_prog_compiler_static_CXX='-non_shared'
14116 # CC pic flag -KPIC is the default.
14120 esac
14122 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14123 case $cc_basename in
14124 KCC*)
14125 # KAI C++ Compiler
14126 lt_prog_compiler_wl_CXX='--backend -Wl,'
14127 lt_prog_compiler_pic_CXX='-fPIC'
14129 ecpc* )
14130 # old Intel C++ for x86_64 which still supported -KPIC.
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 lt_prog_compiler_pic_CXX='-KPIC'
14133 lt_prog_compiler_static_CXX='-static'
14135 icpc* )
14136 # Intel C++, used to be incompatible with GCC.
14137 # ICC 10 doesn't accept -KPIC any more.
14138 lt_prog_compiler_wl_CXX='-Wl,'
14139 lt_prog_compiler_pic_CXX='-fPIC'
14140 lt_prog_compiler_static_CXX='-static'
14142 pgCC* | pgcpp*)
14143 # Portland Group C++ compiler
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 lt_prog_compiler_pic_CXX='-fpic'
14146 lt_prog_compiler_static_CXX='-Bstatic'
14148 cxx*)
14149 # Compaq C++
14150 # Make sure the PIC flag is empty. It appears that all Alpha
14151 # Linux and Compaq Tru64 Unix objects are PIC.
14152 lt_prog_compiler_pic_CXX=
14153 lt_prog_compiler_static_CXX='-non_shared'
14155 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14156 # IBM XL 8.0, 9.0 on PPC and BlueGene
14157 lt_prog_compiler_wl_CXX='-Wl,'
14158 lt_prog_compiler_pic_CXX='-qpic'
14159 lt_prog_compiler_static_CXX='-qstaticlink'
14162 case `$CC -V 2>&1 | sed 5q` in
14163 *Sun\ C*)
14164 # Sun C++ 5.9
14165 lt_prog_compiler_pic_CXX='-KPIC'
14166 lt_prog_compiler_static_CXX='-Bstatic'
14167 lt_prog_compiler_wl_CXX='-Qoption ld '
14169 esac
14171 esac
14173 lynxos*)
14175 m88k*)
14177 mvs*)
14178 case $cc_basename in
14179 cxx*)
14180 lt_prog_compiler_pic_CXX='-W c,exportall'
14184 esac
14186 netbsd*)
14188 *qnx* | *nto*)
14189 # QNX uses GNU C++, but need to define -shared option too, otherwise
14190 # it will coredump.
14191 lt_prog_compiler_pic_CXX='-fPIC -shared'
14193 osf3* | osf4* | osf5*)
14194 case $cc_basename in
14195 KCC*)
14196 lt_prog_compiler_wl_CXX='--backend -Wl,'
14198 RCC*)
14199 # Rational C++ 2.4.1
14200 lt_prog_compiler_pic_CXX='-pic'
14202 cxx*)
14203 # Digital/Compaq C++
14204 lt_prog_compiler_wl_CXX='-Wl,'
14205 # Make sure the PIC flag is empty. It appears that all Alpha
14206 # Linux and Compaq Tru64 Unix objects are PIC.
14207 lt_prog_compiler_pic_CXX=
14208 lt_prog_compiler_static_CXX='-non_shared'
14212 esac
14214 psos*)
14216 solaris*)
14217 case $cc_basename in
14218 CC*)
14219 # Sun C++ 4.2, 5.x and Centerline C++
14220 lt_prog_compiler_pic_CXX='-KPIC'
14221 lt_prog_compiler_static_CXX='-Bstatic'
14222 lt_prog_compiler_wl_CXX='-Qoption ld '
14224 gcx*)
14225 # Green Hills C++ Compiler
14226 lt_prog_compiler_pic_CXX='-PIC'
14230 esac
14232 sunos4*)
14233 case $cc_basename in
14234 CC*)
14235 # Sun C++ 4.x
14236 lt_prog_compiler_pic_CXX='-pic'
14237 lt_prog_compiler_static_CXX='-Bstatic'
14239 lcc*)
14240 # Lucid
14241 lt_prog_compiler_pic_CXX='-pic'
14245 esac
14247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14248 case $cc_basename in
14249 CC*)
14250 lt_prog_compiler_wl_CXX='-Wl,'
14251 lt_prog_compiler_pic_CXX='-KPIC'
14252 lt_prog_compiler_static_CXX='-Bstatic'
14254 esac
14256 tandem*)
14257 case $cc_basename in
14258 NCC*)
14259 # NonStop-UX NCC 3.20
14260 lt_prog_compiler_pic_CXX='-KPIC'
14264 esac
14266 vxworks*)
14269 lt_prog_compiler_can_build_shared_CXX=no
14271 esac
14274 case $host_os in
14275 # For platforms which do not support PIC, -DPIC is meaningless:
14276 *djgpp*)
14277 lt_prog_compiler_pic_CXX=
14280 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14282 esac
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14284 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14289 # Check to make sure the PIC flag actually works.
14291 if test -n "$lt_prog_compiler_pic_CXX"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14293 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14294 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14295 $as_echo_n "(cached) " >&6
14296 else
14297 lt_cv_prog_compiler_pic_works_CXX=no
14298 ac_outfile=conftest.$ac_objext
14299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14300 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14301 # Insert the option either (1) after the last *FLAGS variable, or
14302 # (2) before a word containing "conftest.", or (3) at the end.
14303 # Note that $ac_compile itself does not contain backslashes and begins
14304 # with a dollar sign (not a hyphen), so the echo should work correctly.
14305 # The option is referenced via a variable to avoid confusing sed.
14306 lt_compile=`echo "$ac_compile" | $SED \
14307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309 -e 's:$: $lt_compiler_flag:'`
14310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14311 (eval "$lt_compile" 2>conftest.err)
14312 ac_status=$?
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 if (exit $ac_status) && test -s "$ac_outfile"; then
14316 # The compiler can only warn and ignore the option if not recognized
14317 # So say no if there are warnings other than the usual output.
14318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14321 lt_cv_prog_compiler_pic_works_CXX=yes
14324 $RM conftest*
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14328 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14330 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14331 case $lt_prog_compiler_pic_CXX in
14332 "" | " "*) ;;
14333 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14334 esac
14335 else
14336 lt_prog_compiler_pic_CXX=
14337 lt_prog_compiler_can_build_shared_CXX=no
14345 # Check to make sure the static flag actually works.
14347 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14349 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14350 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 lt_cv_prog_compiler_static_works_CXX=no
14354 save_LDFLAGS="$LDFLAGS"
14355 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14358 # The linker can only warn and ignore the option if not recognized
14359 # So say no if there are warnings
14360 if test -s conftest.err; then
14361 # Append any errors to the config.log.
14362 cat conftest.err 1>&5
14363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14365 if diff conftest.exp conftest.er2 >/dev/null; then
14366 lt_cv_prog_compiler_static_works_CXX=yes
14368 else
14369 lt_cv_prog_compiler_static_works_CXX=yes
14372 $RM -r conftest*
14373 LDFLAGS="$save_LDFLAGS"
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14377 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14379 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14381 else
14382 lt_prog_compiler_static_CXX=
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14390 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 lt_cv_prog_compiler_c_o_CXX=no
14394 $RM -r conftest 2>/dev/null
14395 mkdir conftest
14396 cd conftest
14397 mkdir out
14398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14400 lt_compiler_flag="-o out/conftest2.$ac_objext"
14401 # Insert the option either (1) after the last *FLAGS variable, or
14402 # (2) before a word containing "conftest.", or (3) at the end.
14403 # Note that $ac_compile itself does not contain backslashes and begins
14404 # with a dollar sign (not a hyphen), so the echo should work correctly.
14405 lt_compile=`echo "$ac_compile" | $SED \
14406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408 -e 's:$: $lt_compiler_flag:'`
14409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14410 (eval "$lt_compile" 2>out/conftest.err)
14411 ac_status=$?
14412 cat out/conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14415 then
14416 # The compiler can only warn and ignore the option if not recognized
14417 # So say no if there are warnings
14418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14421 lt_cv_prog_compiler_c_o_CXX=yes
14424 chmod u+w . 2>&5
14425 $RM conftest*
14426 # SGI C++ compiler will create directory out/ii_files/ for
14427 # template instantiation
14428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14429 $RM out/* && rmdir out
14430 cd ..
14431 $RM -r conftest
14432 $RM conftest*
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14436 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
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; }
14493 hard_links="nottested"
14494 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14495 # do not overwrite the value of need_locks provided by the user
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14497 $as_echo_n "checking if we can lock with hard links... " >&6; }
14498 hard_links=yes
14499 $RM conftest*
14500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14501 touch conftest.a
14502 ln conftest.a conftest.b 2>&5 || hard_links=no
14503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14505 $as_echo "$hard_links" >&6; }
14506 if test "$hard_links" = no; then
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14508 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14509 need_locks=warn
14511 else
14512 need_locks=no
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14518 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14520 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14521 case $host_os in
14522 aix[4-9]*)
14523 # If we're using GNU nm, then we don't want the "-C" option.
14524 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14525 # Also, AIX nm treats weak defined symbols like other global defined
14526 # symbols, whereas GNU nm marks them as "W".
14527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14528 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'
14529 else
14530 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14533 pw32*)
14534 export_symbols_cmds_CXX="$ltdll_cmds"
14536 cygwin* | mingw* | cegcc*)
14537 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'
14540 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14542 esac
14543 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14546 $as_echo "$ld_shlibs_CXX" >&6; }
14547 test "$ld_shlibs_CXX" = no && can_build_shared=no
14549 with_gnu_ld_CXX=$with_gnu_ld
14557 # Do we need to explicitly link libc?
14559 case "x$archive_cmds_need_lc_CXX" in
14560 x|xyes)
14561 # Assume -lc should be added
14562 archive_cmds_need_lc_CXX=yes
14564 if test "$enable_shared" = yes && test "$GCC" = yes; then
14565 case $archive_cmds_CXX in
14566 *'~'*)
14567 # FIXME: we may have to deal with multi-command sequences.
14569 '$CC '*)
14570 # Test whether the compiler implicitly links with -lc since on some
14571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14572 # to ld, don't add -lc before -lgcc.
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14574 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14575 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 $RM conftest*
14579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14582 (eval $ac_compile) 2>&5
14583 ac_status=$?
14584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14585 test $ac_status = 0; } 2>conftest.err; then
14586 soname=conftest
14587 lib=conftest
14588 libobjs=conftest.$ac_objext
14589 deplibs=
14590 wl=$lt_prog_compiler_wl_CXX
14591 pic_flag=$lt_prog_compiler_pic_CXX
14592 compiler_flags=-v
14593 linker_flags=-v
14594 verstring=
14595 output_objdir=.
14596 libname=conftest
14597 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14598 allow_undefined_flag_CXX=
14599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14600 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14601 ac_status=$?
14602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14603 test $ac_status = 0; }
14604 then
14605 lt_cv_archive_cmds_need_lc_CXX=no
14606 else
14607 lt_cv_archive_cmds_need_lc_CXX=yes
14609 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14610 else
14611 cat conftest.err 1>&5
14613 $RM conftest*
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14617 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14618 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14620 esac
14623 esac
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14689 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14691 library_names_spec=
14692 libname_spec='lib$name'
14693 soname_spec=
14694 shrext_cmds=".so"
14695 postinstall_cmds=
14696 postuninstall_cmds=
14697 finish_cmds=
14698 finish_eval=
14699 shlibpath_var=
14700 shlibpath_overrides_runpath=unknown
14701 version_type=none
14702 dynamic_linker="$host_os ld.so"
14703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14704 need_lib_prefix=unknown
14705 hardcode_into_libs=no
14707 # when you set need_version to no, make sure it does not cause -set_version
14708 # flags to be left without arguments
14709 need_version=unknown
14711 case $host_os in
14712 aix3*)
14713 version_type=linux
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14715 shlibpath_var=LIBPATH
14717 # AIX 3 has no versioning support, so we append a major version to the name.
14718 soname_spec='${libname}${release}${shared_ext}$major'
14721 aix[4-9]*)
14722 version_type=linux
14723 need_lib_prefix=no
14724 need_version=no
14725 hardcode_into_libs=yes
14726 if test "$host_cpu" = ia64; then
14727 # AIX 5 supports IA64
14728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14729 shlibpath_var=LD_LIBRARY_PATH
14730 else
14731 # With GCC up to 2.95.x, collect2 would create an import file
14732 # for dependence libraries. The import file would start with
14733 # the line `#! .'. This would cause the generated library to
14734 # depend on `.', always an invalid library. This was fixed in
14735 # development snapshots of GCC prior to 3.0.
14736 case $host_os in
14737 aix4 | aix4.[01] | aix4.[01].*)
14738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14739 echo ' yes '
14740 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14742 else
14743 can_build_shared=no
14746 esac
14747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14748 # soname into executable. Probably we can add versioning support to
14749 # collect2, so additional links can be useful in future.
14750 if test "$aix_use_runtimelinking" = yes; then
14751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14752 # instead of lib<name>.a to let people know that these are not
14753 # typical AIX shared libraries.
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755 else
14756 # We preserve .a as extension for shared libraries through AIX4.2
14757 # and later when we are not doing run time linking.
14758 library_names_spec='${libname}${release}.a $libname.a'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14761 shlibpath_var=LIBPATH
14765 amigaos*)
14766 case $host_cpu in
14767 powerpc)
14768 # Since July 2007 AmigaOS4 officially supports .so libraries.
14769 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 m68k)
14773 library_names_spec='$libname.ixlibrary $libname.a'
14774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14775 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'
14777 esac
14780 beos*)
14781 library_names_spec='${libname}${shared_ext}'
14782 dynamic_linker="$host_os ld.so"
14783 shlibpath_var=LIBRARY_PATH
14786 bsdi[45]*)
14787 version_type=linux
14788 need_version=no
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14795 # the default ld.so.conf also contains /usr/contrib/lib and
14796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14797 # libtool to hard-code these into programs
14800 cygwin* | mingw* | pw32* | cegcc*)
14801 version_type=windows
14802 shrext_cmds=".dll"
14803 need_version=no
14804 need_lib_prefix=no
14806 case $GCC,$host_os in
14807 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14808 library_names_spec='$libname.dll.a'
14809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14810 postinstall_cmds='base_file=`basename \${file}`~
14811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14812 dldir=$destdir/`dirname \$dlpath`~
14813 test -d \$dldir || mkdir -p \$dldir~
14814 $install_prog $dir/$dlname \$dldir/$dlname~
14815 chmod a+x \$dldir/$dlname~
14816 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14817 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14820 dlpath=$dir/\$dldll~
14821 $RM \$dlpath'
14822 shlibpath_overrides_runpath=yes
14824 case $host_os in
14825 cygwin*)
14826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14827 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14830 mingw* | cegcc*)
14831 # MinGW DLLs use traditional 'lib' prefix
14832 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834 pw32*)
14835 # pw32 DLLs use 'pw' prefix rather than 'lib'
14836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14838 esac
14842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14844 esac
14845 dynamic_linker='Win32 ld.exe'
14846 # FIXME: first we should search . and the directory the executable is in
14847 shlibpath_var=PATH
14850 darwin* | rhapsody*)
14851 dynamic_linker="$host_os dyld"
14852 version_type=darwin
14853 need_lib_prefix=no
14854 need_version=no
14855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856 soname_spec='${libname}${release}${major}$shared_ext'
14857 shlibpath_overrides_runpath=yes
14858 shlibpath_var=DYLD_LIBRARY_PATH
14859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14864 dgux*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14873 freebsd* | dragonfly*)
14874 # DragonFly does not have aout. When/if they implement a new
14875 # versioning mechanism, adjust this.
14876 if test -x /usr/bin/objformat; then
14877 objformat=`/usr/bin/objformat`
14878 else
14879 case $host_os in
14880 freebsd[23].*) objformat=aout ;;
14881 *) objformat=elf ;;
14882 esac
14884 version_type=freebsd-$objformat
14885 case $version_type in
14886 freebsd-elf*)
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14888 need_version=no
14889 need_lib_prefix=no
14891 freebsd-*)
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14893 need_version=yes
14895 esac
14896 shlibpath_var=LD_LIBRARY_PATH
14897 case $host_os in
14898 freebsd2.*)
14899 shlibpath_overrides_runpath=yes
14901 freebsd3.[01]* | freebsdelf3.[01]*)
14902 shlibpath_overrides_runpath=yes
14903 hardcode_into_libs=yes
14905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14907 shlibpath_overrides_runpath=no
14908 hardcode_into_libs=yes
14910 *) # from 4.6 on, and DragonFly
14911 shlibpath_overrides_runpath=yes
14912 hardcode_into_libs=yes
14914 esac
14917 gnu*)
14918 version_type=linux
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 hardcode_into_libs=yes
14927 haiku*)
14928 version_type=linux
14929 need_lib_prefix=no
14930 need_version=no
14931 dynamic_linker="$host_os runtime_loader"
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes
14936 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14937 hardcode_into_libs=yes
14940 hpux9* | hpux10* | hpux11*)
14941 # Give a soname corresponding to the major version so that dld.sl refuses to
14942 # link against other versions.
14943 version_type=sunos
14944 need_lib_prefix=no
14945 need_version=no
14946 case $host_cpu in
14947 ia64*)
14948 shrext_cmds='.so'
14949 hardcode_into_libs=yes
14950 dynamic_linker="$host_os dld.so"
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 if test "X$HPUX_IA64_MODE" = X32; then
14956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14957 else
14958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14962 hppa*64*)
14963 shrext_cmds='.sl'
14964 hardcode_into_libs=yes
14965 dynamic_linker="$host_os dld.sl"
14966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14974 shrext_cmds='.sl'
14975 dynamic_linker="$host_os dld.sl"
14976 shlibpath_var=SHLIB_PATH
14977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14981 esac
14982 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14983 postinstall_cmds='chmod 555 $lib'
14984 # or fails outright, so override atomically:
14985 install_override_mode=555
14988 interix[3-9]*)
14989 version_type=linux
14990 need_lib_prefix=no
14991 need_version=no
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 shlibpath_overrides_runpath=no
14997 hardcode_into_libs=yes
15000 irix5* | irix6* | nonstopux*)
15001 case $host_os in
15002 nonstopux*) version_type=nonstopux ;;
15004 if test "$lt_cv_prog_gnu_ld" = yes; then
15005 version_type=linux
15006 else
15007 version_type=irix
15008 fi ;;
15009 esac
15010 need_lib_prefix=no
15011 need_version=no
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15014 case $host_os in
15015 irix5* | nonstopux*)
15016 libsuff= shlibsuff=
15019 case $LD in # libtool.m4 will add one of these switches to LD
15020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15021 libsuff= shlibsuff= libmagic=32-bit;;
15022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15023 libsuff=32 shlibsuff=N32 libmagic=N32;;
15024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15026 *) libsuff= shlibsuff= libmagic=never-match;;
15027 esac
15029 esac
15030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15031 shlibpath_overrides_runpath=no
15032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15034 hardcode_into_libs=yes
15037 # No shared lib support for Linux oldld, aout, or coff.
15038 linux*oldld* | linux*aout* | linux*coff*)
15039 dynamic_linker=no
15042 # This must be Linux ELF.
15043 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15044 version_type=linux
15045 need_lib_prefix=no
15046 need_version=no
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 shlibpath_overrides_runpath=no
15053 # Some binutils ld are patched to set DT_RUNPATH
15054 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 lt_cv_shlibpath_overrides_runpath=no
15058 save_LDFLAGS=$LDFLAGS
15059 save_libdir=$libdir
15060 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15061 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15066 main ()
15070 return 0;
15072 _ACEOF
15073 if ac_fn_cxx_try_link "$LINENO"; then :
15074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15075 lt_cv_shlibpath_overrides_runpath=yes
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15080 LDFLAGS=$save_LDFLAGS
15081 libdir=$save_libdir
15085 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15087 # This implies no fast_install, which is unacceptable.
15088 # Some rework will be needed to allow for fast_install
15089 # before this can be enabled.
15090 hardcode_into_libs=yes
15092 # Append ld.so.conf contents to the search path
15093 if test -f /etc/ld.so.conf; then
15094 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' ' '`
15095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15098 # We used to test for /lib/ld.so.1 and disable shared libraries on
15099 # powerpc, because MkLinux only supported shared libraries with the
15100 # GNU dynamic linker. Since this was broken with cross compilers,
15101 # most powerpc-linux boxes support dynamic linking these days and
15102 # people can always --disable-shared, the test was removed, and we
15103 # assume the GNU/Linux dynamic linker is in use.
15104 dynamic_linker='GNU/Linux ld.so'
15107 netbsd*)
15108 version_type=sunos
15109 need_lib_prefix=no
15110 need_version=no
15111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114 dynamic_linker='NetBSD (a.out) ld.so'
15115 else
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 dynamic_linker='NetBSD ld.elf_so'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=yes
15122 hardcode_into_libs=yes
15125 newsos6)
15126 version_type=linux
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 shlibpath_var=LD_LIBRARY_PATH
15129 shlibpath_overrides_runpath=yes
15132 *nto* | *qnx*)
15133 version_type=qnx
15134 need_lib_prefix=no
15135 need_version=no
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 shlibpath_overrides_runpath=no
15140 hardcode_into_libs=yes
15141 dynamic_linker='ldqnx.so'
15144 openbsd*)
15145 version_type=sunos
15146 sys_lib_dlsearch_path_spec="/usr/lib"
15147 need_lib_prefix=no
15148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15149 case $host_os in
15150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15151 *) need_version=no ;;
15152 esac
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15157 case $host_os in
15158 openbsd2.[89] | openbsd2.[89].*)
15159 shlibpath_overrides_runpath=no
15162 shlibpath_overrides_runpath=yes
15164 esac
15165 else
15166 shlibpath_overrides_runpath=yes
15170 os2*)
15171 libname_spec='$name'
15172 shrext_cmds=".dll"
15173 need_lib_prefix=no
15174 library_names_spec='$libname${shared_ext} $libname.a'
15175 dynamic_linker='OS/2 ld.exe'
15176 shlibpath_var=LIBPATH
15179 osf3* | osf4* | osf5*)
15180 version_type=osf
15181 need_lib_prefix=no
15182 need_version=no
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15190 rdos*)
15191 dynamic_linker=no
15194 solaris*)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 hardcode_into_libs=yes
15203 # ldd complains unless libraries are executable
15204 postinstall_cmds='chmod +x $lib'
15207 sunos4*)
15208 version_type=sunos
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes
15213 if test "$with_gnu_ld" = yes; then
15214 need_lib_prefix=no
15216 need_version=yes
15219 sysv4 | sysv4.3*)
15220 version_type=linux
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 case $host_vendor in
15225 sni)
15226 shlibpath_overrides_runpath=no
15227 need_lib_prefix=no
15228 runpath_var=LD_RUN_PATH
15230 siemens)
15231 need_lib_prefix=no
15233 motorola)
15234 need_lib_prefix=no
15235 need_version=no
15236 shlibpath_overrides_runpath=no
15237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15239 esac
15242 sysv4*MP*)
15243 if test -d /usr/nec ;then
15244 version_type=linux
15245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15246 soname_spec='$libname${shared_ext}.$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15252 version_type=freebsd-elf
15253 need_lib_prefix=no
15254 need_version=no
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 shlibpath_var=LD_LIBRARY_PATH
15258 shlibpath_overrides_runpath=yes
15259 hardcode_into_libs=yes
15260 if test "$with_gnu_ld" = yes; then
15261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15262 else
15263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15264 case $host_os in
15265 sco3.2v5*)
15266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15268 esac
15270 sys_lib_dlsearch_path_spec='/usr/lib'
15273 tpf*)
15274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=no
15281 hardcode_into_libs=yes
15284 uts4*)
15285 version_type=linux
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LD_LIBRARY_PATH
15292 dynamic_linker=no
15294 esac
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15296 $as_echo "$dynamic_linker" >&6; }
15297 test "$dynamic_linker" = no && can_build_shared=no
15299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15300 if test "$GCC" = yes; then
15301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15304 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15305 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15307 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15308 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15349 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15350 hardcode_action_CXX=
15351 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15352 test -n "$runpath_var_CXX" ||
15353 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15355 # We can hardcode non-existent directories.
15356 if test "$hardcode_direct_CXX" != no &&
15357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15358 # have to relink, otherwise we might link with an installed library
15359 # when we should be linking with a yet-to-be-installed one
15360 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15361 test "$hardcode_minus_L_CXX" != no; then
15362 # Linking always hardcodes the temporary library directory.
15363 hardcode_action_CXX=relink
15364 else
15365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15366 hardcode_action_CXX=immediate
15368 else
15369 # We cannot hardcode anything, or else we can only hardcode existing
15370 # directories.
15371 hardcode_action_CXX=unsupported
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15374 $as_echo "$hardcode_action_CXX" >&6; }
15376 if test "$hardcode_action_CXX" = relink ||
15377 test "$inherit_rpath_CXX" = yes; then
15378 # Fast installation is not supported
15379 enable_fast_install=no
15380 elif test "$shlibpath_overrides_runpath" = yes ||
15381 test "$enable_shared" = no; then
15382 # Fast installation is not necessary
15383 enable_fast_install=needless
15392 fi # test -n "$compiler"
15394 CC=$lt_save_CC
15395 LDCXX=$LD
15396 LD=$lt_save_LD
15397 GCC=$lt_save_GCC
15398 with_gnu_ld=$lt_save_with_gnu_ld
15399 lt_cv_path_LDCXX=$lt_cv_path_LD
15400 lt_cv_path_LD=$lt_save_path_LD
15401 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15402 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15403 fi # test "$_lt_caught_CXX_error" != yes
15405 ac_ext=c
15406 ac_cpp='$CPP $CPPFLAGS'
15407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423 ac_config_commands="$ac_config_commands libtool"
15428 # Only expand once:
15434 case $host in
15435 *-cygwin* | *-mingw*)
15436 # 'host' will be top-level target in the case of a target lib,
15437 # we must compare to with_cross_host to decide if this is a native
15438 # or cross-compiler and select where to install dlls appropriately.
15439 if test -n "$with_cross_host" &&
15440 test x"$with_cross_host" != x"no"; then
15441 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15442 else
15443 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15447 lt_host_flags=
15449 esac
15456 # For libtool versioning info, format is CURRENT:REVISION:AGE
15457 libtool_VERSION=1:0:0
15460 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15462 # Add CET specific flags if Intel CET is enabled.
15463 # Check whether --enable-cet was given.
15464 if test "${enable_cet+set}" = set; then :
15465 enableval=$enable_cet;
15466 case "$enableval" in
15467 yes|no|default) ;;
15468 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15469 esac
15471 else
15472 enable_cet=default
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15477 $as_echo_n "checking for CET support... " >&6; }
15479 case "$host" in
15480 i[34567]86-*-linux* | x86_64-*-linux*)
15481 case "$enable_cet" in
15482 default)
15483 # Check if target supports multi-byte NOPs
15484 # and if assembler supports CET insn.
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h. */
15489 main ()
15492 #if !defined(__SSE2__)
15493 #error target does not support multi-byte NOPs
15494 #else
15495 asm ("setssbsy");
15496 #endif
15499 return 0;
15501 _ACEOF
15502 if ac_fn_c_try_compile "$LINENO"; then :
15503 enable_cet=yes
15504 else
15505 enable_cet=no
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 yes)
15510 # Check if assembler supports CET.
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15515 main ()
15517 asm ("setssbsy");
15519 return 0;
15521 _ACEOF
15522 if ac_fn_c_try_compile "$LINENO"; then :
15524 else
15525 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
15527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 esac
15532 enable_cet=no
15534 esac
15535 if test x$enable_cet = xyes; then
15536 CET_FLAGS="-fcf-protection -mcet"
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15538 $as_echo "yes" >&6; }
15539 else
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15541 $as_echo "no" >&6; }
15544 XCFLAGS="$XCFLAGS $CET_FLAGS"
15548 if test "${multilib}" = "yes"; then
15549 multilib_arg="--enable-multilib"
15550 else
15551 multilib_arg=
15554 ac_config_files="$ac_config_files Makefile"
15557 if test "x$VTV_SUPPORTED" = "xyes"; then
15558 ac_config_files="$ac_config_files testsuite/Makefile"
15562 case "$target_os" in
15563 cygwin*|mingw32*)
15564 vtv_cygmin="yes"
15567 vtv_cygmin="no"
15569 esac
15571 if test $vtv_cygmin = yes; then
15572 VTV_CYGMIN_TRUE=
15573 VTV_CYGMIN_FALSE='#'
15574 else
15575 VTV_CYGMIN_TRUE='#'
15576 VTV_CYGMIN_FALSE=
15580 for ac_func in _obstack_begin
15581 do :
15582 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15583 if test "x$ac_cv_func__obstack_begin" = x""yes; then :
15584 cat >>confdefs.h <<_ACEOF
15585 #define HAVE__OBSTACK_BEGIN 1
15586 _ACEOF
15589 done
15591 if test $ac_cv_func__obstack_begin = no; then
15592 VTV_NO_OBSTACK_TRUE=
15593 VTV_NO_OBSTACK_FALSE='#'
15594 else
15595 VTV_NO_OBSTACK_TRUE='#'
15596 VTV_NO_OBSTACK_FALSE=
15600 # Determine what GCC version number to use in filesystem paths.
15602 get_gcc_base_ver="cat"
15604 # Check whether --with-gcc-major-version-only was given.
15605 if test "${with_gcc_major_version_only+set}" = set; then :
15606 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15607 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
15615 cat >confcache <<\_ACEOF
15616 # This file is a shell script that caches the results of configure
15617 # tests run on this system so they can be shared between configure
15618 # scripts and configure runs, see configure's option --config-cache.
15619 # It is not useful on other systems. If it contains results you don't
15620 # want to keep, you may remove or edit it.
15622 # config.status only pays attention to the cache file if you give it
15623 # the --recheck option to rerun configure.
15625 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15627 # following values.
15629 _ACEOF
15631 # The following way of writing the cache mishandles newlines in values,
15632 # but we know of no workaround that is simple, portable, and efficient.
15633 # So, we kill variables containing newlines.
15634 # Ultrix sh set writes to stderr and can't be redirected directly,
15635 # and sets the high bit in the cache file unless we assign to the vars.
15637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15638 eval ac_val=\$$ac_var
15639 case $ac_val in #(
15640 *${as_nl}*)
15641 case $ac_var in #(
15642 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15643 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15644 esac
15645 case $ac_var in #(
15646 _ | IFS | as_nl) ;; #(
15647 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15648 *) { eval $ac_var=; unset $ac_var;} ;;
15649 esac ;;
15650 esac
15651 done
15653 (set) 2>&1 |
15654 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15655 *${as_nl}ac_space=\ *)
15656 # `set' does not quote correctly, so add quotes: double-quote
15657 # substitution turns \\\\ into \\, and sed turns \\ into \.
15658 sed -n \
15659 "s/'/'\\\\''/g;
15660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15661 ;; #(
15663 # `set' quotes correctly as required by POSIX, so do not add quotes.
15664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15666 esac |
15667 sort
15669 sed '
15670 /^ac_cv_env_/b end
15671 t clear
15672 :clear
15673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15674 t end
15675 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15676 :end' >>confcache
15677 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15678 if test -w "$cache_file"; then
15679 test "x$cache_file" != "x/dev/null" &&
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15681 $as_echo "$as_me: updating cache $cache_file" >&6;}
15682 cat confcache >$cache_file
15683 else
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15685 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15688 rm -f confcache
15690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15691 # Let make expand exec_prefix.
15692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15694 # Transform confdefs.h into DEFS.
15695 # Protect against shell expansion while executing Makefile rules.
15696 # Protect against Makefile macro expansion.
15698 # If the first sed substitution is executed (which looks for macros that
15699 # take arguments), then branch to the quote section. Otherwise,
15700 # look for a macro that doesn't take arguments.
15701 ac_script='
15702 :mline
15703 /\\$/{
15705 s,\\\n,,
15706 b mline
15708 t clear
15709 :clear
15710 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15711 t quote
15712 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15713 t quote
15714 b any
15715 :quote
15716 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15717 s/\[/\\&/g
15718 s/\]/\\&/g
15719 s/\$/$$/g
15721 :any
15724 s/^\n//
15725 s/\n/ /g
15729 DEFS=`sed -n "$ac_script" confdefs.h`
15732 ac_libobjs=
15733 ac_ltlibobjs=
15734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15735 # 1. Remove the extension, and $U if already installed.
15736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15739 # will be set to the directory where LIBOBJS objects are built.
15740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15742 done
15743 LIBOBJS=$ac_libobjs
15745 LTLIBOBJS=$ac_ltlibobjs
15748 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15749 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15753 as_fn_error "conditional \"AMDEP\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15757 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760 if test -n "$EXEEXT"; then
15761 am__EXEEXT_TRUE=
15762 am__EXEEXT_FALSE='#'
15763 else
15764 am__EXEEXT_TRUE='#'
15765 am__EXEEXT_FALSE=
15768 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15769 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15772 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15773 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15776 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15777 as_fn_error "conditional \"VTV_CYGMIN\" was never defined.
15778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15780 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
15781 as_fn_error "conditional \"VTV_NO_OBSTACK\" was never defined.
15782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15785 : ${CONFIG_STATUS=./config.status}
15786 ac_write_fail=0
15787 ac_clean_files_save=$ac_clean_files
15788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15790 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15791 as_write_fail=0
15792 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15793 #! $SHELL
15794 # Generated by $as_me.
15795 # Run this file to recreate the current configuration.
15796 # Compiler output produced by configure, useful for debugging
15797 # configure, is in config.log if it exists.
15799 debug=false
15800 ac_cs_recheck=false
15801 ac_cs_silent=false
15803 SHELL=\${CONFIG_SHELL-$SHELL}
15804 export SHELL
15805 _ASEOF
15806 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15807 ## -------------------- ##
15808 ## M4sh Initialization. ##
15809 ## -------------------- ##
15811 # Be more Bourne compatible
15812 DUALCASE=1; export DUALCASE # for MKS sh
15813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15814 emulate sh
15815 NULLCMD=:
15816 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15817 # is contrary to our usage. Disable this feature.
15818 alias -g '${1+"$@"}'='"$@"'
15819 setopt NO_GLOB_SUBST
15820 else
15821 case `(set -o) 2>/dev/null` in #(
15822 *posix*) :
15823 set -o posix ;; #(
15824 *) :
15826 esac
15830 as_nl='
15832 export as_nl
15833 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15834 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15836 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15837 # Prefer a ksh shell builtin over an external printf program on Solaris,
15838 # but without wasting forks for bash or zsh.
15839 if test -z "$BASH_VERSION$ZSH_VERSION" \
15840 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15841 as_echo='print -r --'
15842 as_echo_n='print -rn --'
15843 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15844 as_echo='printf %s\n'
15845 as_echo_n='printf %s'
15846 else
15847 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15848 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15849 as_echo_n='/usr/ucb/echo -n'
15850 else
15851 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15852 as_echo_n_body='eval
15853 arg=$1;
15854 case $arg in #(
15855 *"$as_nl"*)
15856 expr "X$arg" : "X\\(.*\\)$as_nl";
15857 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15858 esac;
15859 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15861 export as_echo_n_body
15862 as_echo_n='sh -c $as_echo_n_body as_echo'
15864 export as_echo_body
15865 as_echo='sh -c $as_echo_body as_echo'
15868 # The user is always right.
15869 if test "${PATH_SEPARATOR+set}" != set; then
15870 PATH_SEPARATOR=:
15871 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15872 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15873 PATH_SEPARATOR=';'
15878 # IFS
15879 # We need space, tab and new line, in precisely that order. Quoting is
15880 # there to prevent editors from complaining about space-tab.
15881 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15882 # splitting by setting IFS to empty value.)
15883 IFS=" "" $as_nl"
15885 # Find who we are. Look in the path if we contain no directory separator.
15886 case $0 in #((
15887 *[\\/]* ) as_myself=$0 ;;
15888 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15889 for as_dir in $PATH
15891 IFS=$as_save_IFS
15892 test -z "$as_dir" && as_dir=.
15893 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15894 done
15895 IFS=$as_save_IFS
15898 esac
15899 # We did not find ourselves, most probably we were run as `sh COMMAND'
15900 # in which case we are not to be found in the path.
15901 if test "x$as_myself" = x; then
15902 as_myself=$0
15904 if test ! -f "$as_myself"; then
15905 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15906 exit 1
15909 # Unset variables that we do not need and which cause bugs (e.g. in
15910 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15911 # suppresses any "Segmentation fault" message there. '((' could
15912 # trigger a bug in pdksh 5.2.14.
15913 for as_var in BASH_ENV ENV MAIL MAILPATH
15914 do eval test x\${$as_var+set} = xset \
15915 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15916 done
15917 PS1='$ '
15918 PS2='> '
15919 PS4='+ '
15921 # NLS nuisances.
15922 LC_ALL=C
15923 export LC_ALL
15924 LANGUAGE=C
15925 export LANGUAGE
15927 # CDPATH.
15928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15931 # as_fn_error ERROR [LINENO LOG_FD]
15932 # ---------------------------------
15933 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15934 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15935 # script with status $?, using 1 if that was 0.
15936 as_fn_error ()
15938 as_status=$?; test $as_status -eq 0 && as_status=1
15939 if test "$3"; then
15940 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15941 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15943 $as_echo "$as_me: error: $1" >&2
15944 as_fn_exit $as_status
15945 } # as_fn_error
15948 # as_fn_set_status STATUS
15949 # -----------------------
15950 # Set $? to STATUS, without forking.
15951 as_fn_set_status ()
15953 return $1
15954 } # as_fn_set_status
15956 # as_fn_exit STATUS
15957 # -----------------
15958 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15959 as_fn_exit ()
15961 set +e
15962 as_fn_set_status $1
15963 exit $1
15964 } # as_fn_exit
15966 # as_fn_unset VAR
15967 # ---------------
15968 # Portably unset VAR.
15969 as_fn_unset ()
15971 { eval $1=; unset $1;}
15973 as_unset=as_fn_unset
15974 # as_fn_append VAR VALUE
15975 # ----------------------
15976 # Append the text in VALUE to the end of the definition contained in VAR. Take
15977 # advantage of any shell optimizations that allow amortized linear growth over
15978 # repeated appends, instead of the typical quadratic growth present in naive
15979 # implementations.
15980 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15981 eval 'as_fn_append ()
15983 eval $1+=\$2
15985 else
15986 as_fn_append ()
15988 eval $1=\$$1\$2
15990 fi # as_fn_append
15992 # as_fn_arith ARG...
15993 # ------------------
15994 # Perform arithmetic evaluation on the ARGs, and store the result in the
15995 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15996 # must be portable across $(()) and expr.
15997 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15998 eval 'as_fn_arith ()
16000 as_val=$(( $* ))
16002 else
16003 as_fn_arith ()
16005 as_val=`expr "$@" || test $? -eq 1`
16007 fi # as_fn_arith
16010 if expr a : '\(a\)' >/dev/null 2>&1 &&
16011 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16012 as_expr=expr
16013 else
16014 as_expr=false
16017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16018 as_basename=basename
16019 else
16020 as_basename=false
16023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16024 as_dirname=dirname
16025 else
16026 as_dirname=false
16029 as_me=`$as_basename -- "$0" ||
16030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16031 X"$0" : 'X\(//\)$' \| \
16032 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16033 $as_echo X/"$0" |
16034 sed '/^.*\/\([^/][^/]*\)\/*$/{
16035 s//\1/
16038 /^X\/\(\/\/\)$/{
16039 s//\1/
16042 /^X\/\(\/\).*/{
16043 s//\1/
16046 s/.*/./; q'`
16048 # Avoid depending upon Character Ranges.
16049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16052 as_cr_digits='0123456789'
16053 as_cr_alnum=$as_cr_Letters$as_cr_digits
16055 ECHO_C= ECHO_N= ECHO_T=
16056 case `echo -n x` in #(((((
16057 -n*)
16058 case `echo 'xy\c'` in
16059 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16060 xy) ECHO_C='\c';;
16061 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16062 ECHO_T=' ';;
16063 esac;;
16065 ECHO_N='-n';;
16066 esac
16068 rm -f conf$$ conf$$.exe conf$$.file
16069 if test -d conf$$.dir; then
16070 rm -f conf$$.dir/conf$$.file
16071 else
16072 rm -f conf$$.dir
16073 mkdir conf$$.dir 2>/dev/null
16075 if (echo >conf$$.file) 2>/dev/null; then
16076 if ln -s conf$$.file conf$$ 2>/dev/null; then
16077 as_ln_s='ln -s'
16078 # ... but there are two gotchas:
16079 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16080 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16081 # In both cases, we have to default to `cp -p'.
16082 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16083 as_ln_s='cp -p'
16084 elif ln conf$$.file conf$$ 2>/dev/null; then
16085 as_ln_s=ln
16086 else
16087 as_ln_s='cp -p'
16089 else
16090 as_ln_s='cp -p'
16092 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16093 rmdir conf$$.dir 2>/dev/null
16096 # as_fn_mkdir_p
16097 # -------------
16098 # Create "$as_dir" as a directory, including parents if necessary.
16099 as_fn_mkdir_p ()
16102 case $as_dir in #(
16103 -*) as_dir=./$as_dir;;
16104 esac
16105 test -d "$as_dir" || eval $as_mkdir_p || {
16106 as_dirs=
16107 while :; do
16108 case $as_dir in #(
16109 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16110 *) as_qdir=$as_dir;;
16111 esac
16112 as_dirs="'$as_qdir' $as_dirs"
16113 as_dir=`$as_dirname -- "$as_dir" ||
16114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16115 X"$as_dir" : 'X\(//\)[^/]' \| \
16116 X"$as_dir" : 'X\(//\)$' \| \
16117 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16118 $as_echo X"$as_dir" |
16119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16120 s//\1/
16123 /^X\(\/\/\)[^/].*/{
16124 s//\1/
16127 /^X\(\/\/\)$/{
16128 s//\1/
16131 /^X\(\/\).*/{
16132 s//\1/
16135 s/.*/./; q'`
16136 test -d "$as_dir" && break
16137 done
16138 test -z "$as_dirs" || eval "mkdir $as_dirs"
16139 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16142 } # as_fn_mkdir_p
16143 if mkdir -p . 2>/dev/null; then
16144 as_mkdir_p='mkdir -p "$as_dir"'
16145 else
16146 test -d ./-p && rmdir ./-p
16147 as_mkdir_p=false
16150 if test -x / >/dev/null 2>&1; then
16151 as_test_x='test -x'
16152 else
16153 if ls -dL / >/dev/null 2>&1; then
16154 as_ls_L_option=L
16155 else
16156 as_ls_L_option=
16158 as_test_x='
16159 eval sh -c '\''
16160 if test -d "$1"; then
16161 test -d "$1/.";
16162 else
16163 case $1 in #(
16164 -*)set "./$1";;
16165 esac;
16166 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16167 ???[sx]*):;;*)false;;esac;fi
16168 '\'' sh
16171 as_executable_p=$as_test_x
16173 # Sed expression to map a string onto a valid CPP name.
16174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16176 # Sed expression to map a string onto a valid variable name.
16177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16180 exec 6>&1
16181 ## ----------------------------------- ##
16182 ## Main body of $CONFIG_STATUS script. ##
16183 ## ----------------------------------- ##
16184 _ASEOF
16185 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 # Save the log message, to keep $0 and so on meaningful, and to
16189 # report actual input values of CONFIG_FILES etc. instead of their
16190 # values after options handling.
16191 ac_log="
16192 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16193 generated by GNU Autoconf 2.64. Invocation command line was
16195 CONFIG_FILES = $CONFIG_FILES
16196 CONFIG_HEADERS = $CONFIG_HEADERS
16197 CONFIG_LINKS = $CONFIG_LINKS
16198 CONFIG_COMMANDS = $CONFIG_COMMANDS
16199 $ $0 $@
16201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16204 _ACEOF
16206 case $ac_config_files in *"
16207 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16208 esac
16212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16213 # Files that config.status was made for.
16214 config_files="$ac_config_files"
16215 config_commands="$ac_config_commands"
16217 _ACEOF
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220 ac_cs_usage="\
16221 \`$as_me' instantiates files and other configuration actions
16222 from templates according to the current configuration. Unless the files
16223 and actions are specified as TAGs, all are instantiated by default.
16225 Usage: $0 [OPTION]... [TAG]...
16227 -h, --help print this help, then exit
16228 -V, --version print version number and configuration settings, then exit
16229 -q, --quiet, --silent
16230 do not print progress messages
16231 -d, --debug don't remove temporary files
16232 --recheck update $as_me by reconfiguring in the same conditions
16233 --file=FILE[:TEMPLATE]
16234 instantiate the configuration file FILE
16236 Configuration files:
16237 $config_files
16239 Configuration commands:
16240 $config_commands
16242 Report bugs to the package provider.
16243 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16244 General help using GNU software: <http://www.gnu.org/gethelp/>."
16246 _ACEOF
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248 ac_cs_version="\\
16249 GNU Vtable Verification Runtime Library config.status 1.0
16250 configured by $0, generated by GNU Autoconf 2.64,
16251 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16253 Copyright (C) 2009 Free Software Foundation, Inc.
16254 This config.status script is free software; the Free Software Foundation
16255 gives unlimited permission to copy, distribute and modify it."
16257 ac_pwd='$ac_pwd'
16258 srcdir='$srcdir'
16259 INSTALL='$INSTALL'
16260 MKDIR_P='$MKDIR_P'
16261 AWK='$AWK'
16262 test -n "\$AWK" || AWK=awk
16263 _ACEOF
16265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266 # The default lists apply if the user does not specify any file.
16267 ac_need_defaults=:
16268 while test $# != 0
16270 case $1 in
16271 --*=*)
16272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16273 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16274 ac_shift=:
16277 ac_option=$1
16278 ac_optarg=$2
16279 ac_shift=shift
16281 esac
16283 case $ac_option in
16284 # Handling of the options.
16285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16286 ac_cs_recheck=: ;;
16287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16288 $as_echo "$ac_cs_version"; exit ;;
16289 --debug | --debu | --deb | --de | --d | -d )
16290 debug=: ;;
16291 --file | --fil | --fi | --f )
16292 $ac_shift
16293 case $ac_optarg in
16294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16295 esac
16296 as_fn_append CONFIG_FILES " '$ac_optarg'"
16297 ac_need_defaults=false;;
16298 --he | --h | --help | --hel | -h )
16299 $as_echo "$ac_cs_usage"; exit ;;
16300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16302 ac_cs_silent=: ;;
16304 # This is an error.
16305 -*) as_fn_error "unrecognized option: \`$1'
16306 Try \`$0 --help' for more information." ;;
16308 *) as_fn_append ac_config_targets " $1"
16309 ac_need_defaults=false ;;
16311 esac
16312 shift
16313 done
16315 ac_configure_extra_args=
16317 if $ac_cs_silent; then
16318 exec 6>/dev/null
16319 ac_configure_extra_args="$ac_configure_extra_args --silent"
16322 _ACEOF
16323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16324 if \$ac_cs_recheck; then
16325 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16326 shift
16327 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16328 CONFIG_SHELL='$SHELL'
16329 export CONFIG_SHELL
16330 exec "\$@"
16333 _ACEOF
16334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16335 exec 5>>config.log
16337 echo
16338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16339 ## Running $as_me. ##
16340 _ASBOX
16341 $as_echo "$ac_log"
16342 } >&5
16344 _ACEOF
16345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16347 # INIT-COMMANDS
16350 srcdir="$srcdir"
16351 host="$host"
16352 target="$target"
16353 with_multisubdir="$with_multisubdir"
16354 with_multisrctop="$with_multisrctop"
16355 with_target_subdir="$with_target_subdir"
16356 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16357 multi_basedir="$multi_basedir"
16358 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16359 CC="$CC"
16360 CXX="$CXX"
16361 GFORTRAN="$GFORTRAN"
16362 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16365 # The HP-UX ksh and POSIX shell print the target directory to stdout
16366 # if CDPATH is set.
16367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16369 sed_quote_subst='$sed_quote_subst'
16370 double_quote_subst='$double_quote_subst'
16371 delay_variable_subst='$delay_variable_subst'
16372 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16373 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16374 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16375 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16376 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16377 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16378 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16379 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16380 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16381 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16382 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16383 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16384 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16385 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16386 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16387 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16388 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16389 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16390 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16391 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16392 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16393 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16394 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16395 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16396 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16397 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16398 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16399 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16400 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16401 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16402 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16403 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16404 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16405 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16406 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16407 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16408 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16409 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16410 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16411 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16412 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16413 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16414 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16415 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16416 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16419 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16420 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"`'
16421 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16422 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16423 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16424 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16425 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16426 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16427 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16428 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16429 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16430 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16431 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16432 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16433 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16434 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16435 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16436 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16437 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16438 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16439 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16440 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16441 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16442 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16443 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16444 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16445 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16446 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16447 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16448 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16449 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16450 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16451 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16452 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16453 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16454 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16455 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16456 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16457 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16458 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16459 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16460 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16461 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16462 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16463 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16464 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16465 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16466 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16467 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16468 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16469 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16470 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16471 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16472 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16473 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16474 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16475 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16476 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16477 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16478 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16479 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16480 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16481 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16482 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16483 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16484 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16485 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16486 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16487 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16488 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16489 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16490 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16491 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16492 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16493 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16494 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16495 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16496 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16497 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16498 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16499 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16500 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16501 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16502 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16503 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16504 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16505 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16506 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16507 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16508 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16509 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16510 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16511 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16512 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16513 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16514 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16515 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16516 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16517 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16518 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16519 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16520 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16521 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16522 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16523 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16524 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16525 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16526 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16527 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16528 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16529 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16530 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16531 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16532 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16533 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16534 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16535 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16536 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16537 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16538 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16539 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16540 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16541 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16542 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16543 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16544 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16545 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16546 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16548 LTCC='$LTCC'
16549 LTCFLAGS='$LTCFLAGS'
16550 compiler='$compiler_DEFAULT'
16552 # A function that is used when there is no print builtin or printf.
16553 func_fallback_echo ()
16555 eval 'cat <<_LTECHO_EOF
16557 _LTECHO_EOF'
16560 # Quote evaled strings.
16561 for var in SHELL \
16562 ECHO \
16563 SED \
16564 GREP \
16565 EGREP \
16566 FGREP \
16567 LD \
16568 NM \
16569 LN_S \
16570 lt_SP2NL \
16571 lt_NL2SP \
16572 reload_flag \
16573 OBJDUMP \
16574 deplibs_check_method \
16575 file_magic_cmd \
16576 AR \
16577 AR_FLAGS \
16578 STRIP \
16579 RANLIB \
16580 CC \
16581 CFLAGS \
16582 compiler \
16583 lt_cv_sys_global_symbol_pipe \
16584 lt_cv_sys_global_symbol_to_cdecl \
16585 lt_cv_sys_global_symbol_to_c_name_address \
16586 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16587 lt_prog_compiler_no_builtin_flag \
16588 lt_prog_compiler_wl \
16589 lt_prog_compiler_pic \
16590 lt_prog_compiler_static \
16591 lt_cv_prog_compiler_c_o \
16592 need_locks \
16593 DSYMUTIL \
16594 NMEDIT \
16595 LIPO \
16596 OTOOL \
16597 OTOOL64 \
16598 shrext_cmds \
16599 export_dynamic_flag_spec \
16600 whole_archive_flag_spec \
16601 compiler_needs_object \
16602 with_gnu_ld \
16603 allow_undefined_flag \
16604 no_undefined_flag \
16605 hardcode_libdir_flag_spec \
16606 hardcode_libdir_flag_spec_ld \
16607 hardcode_libdir_separator \
16608 fix_srcfile_path \
16609 exclude_expsyms \
16610 include_expsyms \
16611 file_list_spec \
16612 variables_saved_for_relink \
16613 libname_spec \
16614 library_names_spec \
16615 soname_spec \
16616 install_override_mode \
16617 finish_eval \
16618 old_striplib \
16619 striplib \
16620 compiler_lib_search_dirs \
16621 predep_objects \
16622 postdep_objects \
16623 predeps \
16624 postdeps \
16625 compiler_lib_search_path \
16626 LD_CXX \
16627 reload_flag_CXX \
16628 compiler_CXX \
16629 lt_prog_compiler_no_builtin_flag_CXX \
16630 lt_prog_compiler_wl_CXX \
16631 lt_prog_compiler_pic_CXX \
16632 lt_prog_compiler_static_CXX \
16633 lt_cv_prog_compiler_c_o_CXX \
16634 export_dynamic_flag_spec_CXX \
16635 whole_archive_flag_spec_CXX \
16636 compiler_needs_object_CXX \
16637 with_gnu_ld_CXX \
16638 allow_undefined_flag_CXX \
16639 no_undefined_flag_CXX \
16640 hardcode_libdir_flag_spec_CXX \
16641 hardcode_libdir_flag_spec_ld_CXX \
16642 hardcode_libdir_separator_CXX \
16643 fix_srcfile_path_CXX \
16644 exclude_expsyms_CXX \
16645 include_expsyms_CXX \
16646 file_list_spec_CXX \
16647 compiler_lib_search_dirs_CXX \
16648 predep_objects_CXX \
16649 postdep_objects_CXX \
16650 predeps_CXX \
16651 postdeps_CXX \
16652 compiler_lib_search_path_CXX; do
16653 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16654 *[\\\\\\\`\\"\\\$]*)
16655 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16658 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16660 esac
16661 done
16663 # Double-quote double-evaled strings.
16664 for var in reload_cmds \
16665 old_postinstall_cmds \
16666 old_postuninstall_cmds \
16667 old_archive_cmds \
16668 extract_expsyms_cmds \
16669 old_archive_from_new_cmds \
16670 old_archive_from_expsyms_cmds \
16671 archive_cmds \
16672 archive_expsym_cmds \
16673 module_cmds \
16674 module_expsym_cmds \
16675 export_symbols_cmds \
16676 prelink_cmds \
16677 postinstall_cmds \
16678 postuninstall_cmds \
16679 finish_cmds \
16680 sys_lib_search_path_spec \
16681 sys_lib_dlsearch_path_spec \
16682 reload_cmds_CXX \
16683 old_archive_cmds_CXX \
16684 old_archive_from_new_cmds_CXX \
16685 old_archive_from_expsyms_cmds_CXX \
16686 archive_cmds_CXX \
16687 archive_expsym_cmds_CXX \
16688 module_cmds_CXX \
16689 module_expsym_cmds_CXX \
16690 export_symbols_cmds_CXX \
16691 prelink_cmds_CXX; do
16692 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16693 *[\\\\\\\`\\"\\\$]*)
16694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16699 esac
16700 done
16702 ac_aux_dir='$ac_aux_dir'
16703 xsi_shell='$xsi_shell'
16704 lt_shell_append='$lt_shell_append'
16706 # See if we are running on zsh, and set the options which allow our
16707 # commands through without removal of \ escapes INIT.
16708 if test -n "\${ZSH_VERSION+set}" ; then
16709 setopt NO_GLOB_SUBST
16713 PACKAGE='$PACKAGE'
16714 VERSION='$VERSION'
16715 TIMESTAMP='$TIMESTAMP'
16716 RM='$RM'
16717 ofile='$ofile'
16724 _ACEOF
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16728 # Handling of arguments.
16729 for ac_config_target in $ac_config_targets
16731 case $ac_config_target in
16732 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16733 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16734 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16735 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16736 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16738 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16739 esac
16740 done
16743 # If the user did not use the arguments to specify the items to instantiate,
16744 # then the envvar interface is used. Set only those that are not.
16745 # We use the long form for the default assignment because of an extremely
16746 # bizarre bug on SunOS 4.1.3.
16747 if $ac_need_defaults; then
16748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16752 # Have a temporary directory for convenience. Make it in the build tree
16753 # simply because there is no reason against having it here, and in addition,
16754 # creating and moving files from /tmp can sometimes cause problems.
16755 # Hook for its removal unless debugging.
16756 # Note that there is a small window in which the directory will not be cleaned:
16757 # after its creation but before its name has been assigned to `$tmp'.
16758 $debug ||
16760 tmp=
16761 trap 'exit_status=$?
16762 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16764 trap 'as_fn_exit 1' 1 2 13 15
16766 # Create a (secure) tmp directory for tmp files.
16769 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16770 test -n "$tmp" && test -d "$tmp"
16771 } ||
16773 tmp=./conf$$-$RANDOM
16774 (umask 077 && mkdir "$tmp")
16775 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16777 # Set up the scripts for CONFIG_FILES section.
16778 # No need to generate them if there are no CONFIG_FILES.
16779 # This happens for instance with `./config.status config.h'.
16780 if test -n "$CONFIG_FILES"; then
16783 ac_cr=`echo X | tr X '\015'`
16784 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16785 # But we know of no other shell where ac_cr would be empty at this
16786 # point, so we can use a bashism as a fallback.
16787 if test "x$ac_cr" = x; then
16788 eval ac_cr=\$\'\\r\'
16790 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16791 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16792 ac_cs_awk_cr='\r'
16793 else
16794 ac_cs_awk_cr=$ac_cr
16797 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16798 _ACEOF
16802 echo "cat >conf$$subs.awk <<_ACEOF" &&
16803 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16804 echo "_ACEOF"
16805 } >conf$$subs.sh ||
16806 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16807 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16808 ac_delim='%!_!# '
16809 for ac_last_try in false false false false false :; do
16810 . ./conf$$subs.sh ||
16811 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16813 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16814 if test $ac_delim_n = $ac_delim_num; then
16815 break
16816 elif $ac_last_try; then
16817 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16818 else
16819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16821 done
16822 rm -f conf$$subs.sh
16824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16825 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16826 _ACEOF
16827 sed -n '
16829 s/^/S["/; s/!.*/"]=/
16832 s/^[^!]*!//
16833 :repl
16834 t repl
16835 s/'"$ac_delim"'$//
16836 t delim
16839 s/\(.\{148\}\).*/\1/
16840 t more1
16841 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16844 b repl
16845 :more1
16846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16849 s/.\{148\}//
16850 t nl
16851 :delim
16853 s/\(.\{148\}\).*/\1/
16854 t more2
16855 s/["\\]/\\&/g; s/^/"/; s/$/"/
16858 :more2
16859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16862 s/.\{148\}//
16863 t delim
16864 ' <conf$$subs.awk | sed '
16865 /^[^""]/{
16867 s/\n//
16869 ' >>$CONFIG_STATUS || ac_write_fail=1
16870 rm -f conf$$subs.awk
16871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 _ACAWK
16873 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16874 for (key in S) S_is_set[key] = 1
16875 FS = "\a"
16879 line = $ 0
16880 nfields = split(line, field, "@")
16881 substed = 0
16882 len = length(field[1])
16883 for (i = 2; i < nfields; i++) {
16884 key = field[i]
16885 keylen = length(key)
16886 if (S_is_set[key]) {
16887 value = S[key]
16888 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16889 len += length(value) + length(field[++i])
16890 substed = 1
16891 } else
16892 len += 1 + keylen
16895 print line
16898 _ACAWK
16899 _ACEOF
16900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16901 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16902 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16903 else
16905 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16906 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16907 _ACEOF
16909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16911 # trailing colons and then remove the whole line if VPATH becomes empty
16912 # (actually we leave an empty line to preserve line numbers).
16913 if test "x$srcdir" = x.; then
16914 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16915 s/:*\$(srcdir):*/:/
16916 s/:*\${srcdir}:*/:/
16917 s/:*@srcdir@:*/:/
16918 s/^\([^=]*=[ ]*\):*/\1/
16919 s/:*$//
16920 s/^[^=]*=[ ]*$//
16924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 fi # test -n "$CONFIG_FILES"
16928 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16929 shift
16930 for ac_tag
16932 case $ac_tag in
16933 :[FHLC]) ac_mode=$ac_tag; continue;;
16934 esac
16935 case $ac_mode$ac_tag in
16936 :[FHL]*:*);;
16937 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16938 :[FH]-) ac_tag=-:-;;
16939 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16940 esac
16941 ac_save_IFS=$IFS
16942 IFS=:
16943 set x $ac_tag
16944 IFS=$ac_save_IFS
16945 shift
16946 ac_file=$1
16947 shift
16949 case $ac_mode in
16950 :L) ac_source=$1;;
16951 :[FH])
16952 ac_file_inputs=
16953 for ac_f
16955 case $ac_f in
16956 -) ac_f="$tmp/stdin";;
16957 *) # Look for the file first in the build tree, then in the source tree
16958 # (if the path is not absolute). The absolute path cannot be DOS-style,
16959 # because $ac_f cannot contain `:'.
16960 test -f "$ac_f" ||
16961 case $ac_f in
16962 [\\/$]*) false;;
16963 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16964 esac ||
16965 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16966 esac
16967 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16968 as_fn_append ac_file_inputs " '$ac_f'"
16969 done
16971 # Let's still pretend it is `configure' which instantiates (i.e., don't
16972 # use $as_me), people would be surprised to read:
16973 # /* config.h. Generated by config.status. */
16974 configure_input='Generated from '`
16975 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16976 `' by configure.'
16977 if test x"$ac_file" != x-; then
16978 configure_input="$ac_file. $configure_input"
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16980 $as_echo "$as_me: creating $ac_file" >&6;}
16982 # Neutralize special characters interpreted by sed in replacement strings.
16983 case $configure_input in #(
16984 *\&* | *\|* | *\\* )
16985 ac_sed_conf_input=`$as_echo "$configure_input" |
16986 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16987 *) ac_sed_conf_input=$configure_input;;
16988 esac
16990 case $ac_tag in
16991 *:-:* | *:-) cat >"$tmp/stdin" \
16992 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16993 esac
16995 esac
16997 ac_dir=`$as_dirname -- "$ac_file" ||
16998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16999 X"$ac_file" : 'X\(//\)[^/]' \| \
17000 X"$ac_file" : 'X\(//\)$' \| \
17001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17002 $as_echo X"$ac_file" |
17003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17004 s//\1/
17007 /^X\(\/\/\)[^/].*/{
17008 s//\1/
17011 /^X\(\/\/\)$/{
17012 s//\1/
17015 /^X\(\/\).*/{
17016 s//\1/
17019 s/.*/./; q'`
17020 as_dir="$ac_dir"; as_fn_mkdir_p
17021 ac_builddir=.
17023 case "$ac_dir" in
17024 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17026 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17027 # A ".." for each directory in $ac_dir_suffix.
17028 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17029 case $ac_top_builddir_sub in
17030 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17031 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17032 esac ;;
17033 esac
17034 ac_abs_top_builddir=$ac_pwd
17035 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17036 # for backward compatibility:
17037 ac_top_builddir=$ac_top_build_prefix
17039 case $srcdir in
17040 .) # We are building in place.
17041 ac_srcdir=.
17042 ac_top_srcdir=$ac_top_builddir_sub
17043 ac_abs_top_srcdir=$ac_pwd ;;
17044 [\\/]* | ?:[\\/]* ) # Absolute name.
17045 ac_srcdir=$srcdir$ac_dir_suffix;
17046 ac_top_srcdir=$srcdir
17047 ac_abs_top_srcdir=$srcdir ;;
17048 *) # Relative name.
17049 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17050 ac_top_srcdir=$ac_top_build_prefix$srcdir
17051 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17052 esac
17053 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17056 case $ac_mode in
17059 # CONFIG_FILE
17062 case $INSTALL in
17063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17064 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17065 esac
17066 ac_MKDIR_P=$MKDIR_P
17067 case $MKDIR_P in
17068 [\\/$]* | ?:[\\/]* ) ;;
17069 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17070 esac
17071 _ACEOF
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 # If the template does not know about datarootdir, expand it.
17075 # FIXME: This hack should be removed a few years after 2.60.
17076 ac_datarootdir_hack=; ac_datarootdir_seen=
17077 ac_sed_dataroot='
17078 /datarootdir/ {
17082 /@datadir@/p
17083 /@docdir@/p
17084 /@infodir@/p
17085 /@localedir@/p
17086 /@mandir@/p'
17087 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17088 *datarootdir*) ac_datarootdir_seen=yes;;
17089 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17091 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17092 _ACEOF
17093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094 ac_datarootdir_hack='
17095 s&@datadir@&$datadir&g
17096 s&@docdir@&$docdir&g
17097 s&@infodir@&$infodir&g
17098 s&@localedir@&$localedir&g
17099 s&@mandir@&$mandir&g
17100 s&\\\${datarootdir}&$datarootdir&g' ;;
17101 esac
17102 _ACEOF
17104 # Neutralize VPATH when `$srcdir' = `.'.
17105 # Shell code in configure.ac might set extrasub.
17106 # FIXME: do we really want to maintain this feature?
17107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17108 ac_sed_extra="$ac_vpsub
17109 $extrasub
17110 _ACEOF
17111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17114 s|@configure_input@|$ac_sed_conf_input|;t t
17115 s&@top_builddir@&$ac_top_builddir_sub&;t t
17116 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17117 s&@srcdir@&$ac_srcdir&;t t
17118 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17119 s&@top_srcdir@&$ac_top_srcdir&;t t
17120 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17121 s&@builddir@&$ac_builddir&;t t
17122 s&@abs_builddir@&$ac_abs_builddir&;t t
17123 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17124 s&@INSTALL@&$ac_INSTALL&;t t
17125 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17126 $ac_datarootdir_hack
17128 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17129 || as_fn_error "could not create $ac_file" "$LINENO" 5
17131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17135 which seems to be undefined. Please make sure it is defined." >&5
17136 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17137 which seems to be undefined. Please make sure it is defined." >&2;}
17139 rm -f "$tmp/stdin"
17140 case $ac_file in
17141 -) cat "$tmp/out" && rm -f "$tmp/out";;
17142 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17143 esac \
17144 || as_fn_error "could not create $ac_file" "$LINENO" 5
17148 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17149 $as_echo "$as_me: executing $ac_file commands" >&6;}
17151 esac
17154 case $ac_file$ac_mode in
17155 "default-1":C)
17156 # Only add multilib support code if we just rebuilt the top-level
17157 # Makefile.
17158 case " $CONFIG_FILES " in
17159 *" Makefile "*)
17160 ac_file=Makefile . ${multi_basedir}/config-ml.in
17162 esac ;;
17163 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17164 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17165 # are listed without --file. Let's play safe and only enable the eval
17166 # if we detect the quoting.
17167 case $CONFIG_FILES in
17168 *\'*) eval set x "$CONFIG_FILES" ;;
17169 *) set x $CONFIG_FILES ;;
17170 esac
17171 shift
17172 for mf
17174 # Strip MF so we end up with the name of the file.
17175 mf=`echo "$mf" | sed -e 's/:.*$//'`
17176 # Check whether this is an Automake generated Makefile or not.
17177 # We used to match only the files named `Makefile.in', but
17178 # some people rename them; so instead we look at the file content.
17179 # Grep'ing the first line is not enough: some people post-process
17180 # each Makefile.in and add a new line on top of each file to say so.
17181 # Grep'ing the whole file is not good either: AIX grep has a line
17182 # limit of 2048, but all sed's we know have understand at least 4000.
17183 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17184 dirpart=`$as_dirname -- "$mf" ||
17185 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17186 X"$mf" : 'X\(//\)[^/]' \| \
17187 X"$mf" : 'X\(//\)$' \| \
17188 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17189 $as_echo X"$mf" |
17190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17191 s//\1/
17194 /^X\(\/\/\)[^/].*/{
17195 s//\1/
17198 /^X\(\/\/\)$/{
17199 s//\1/
17202 /^X\(\/\).*/{
17203 s//\1/
17206 s/.*/./; q'`
17207 else
17208 continue
17210 # Extract the definition of DEPDIR, am__include, and am__quote
17211 # from the Makefile without running `make'.
17212 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17213 test -z "$DEPDIR" && continue
17214 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17215 test -z "am__include" && continue
17216 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17217 # When using ansi2knr, U may be empty or an underscore; expand it
17218 U=`sed -n 's/^U = //p' < "$mf"`
17219 # Find all dependency output files, they are included files with
17220 # $(DEPDIR) in their names. We invoke sed twice because it is the
17221 # simplest approach to changing $(DEPDIR) to its actual value in the
17222 # expansion.
17223 for file in `sed -n "
17224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17226 # Make sure the directory exists.
17227 test -f "$dirpart/$file" && continue
17228 fdir=`$as_dirname -- "$file" ||
17229 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17230 X"$file" : 'X\(//\)[^/]' \| \
17231 X"$file" : 'X\(//\)$' \| \
17232 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17233 $as_echo X"$file" |
17234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17235 s//\1/
17238 /^X\(\/\/\)[^/].*/{
17239 s//\1/
17242 /^X\(\/\/\)$/{
17243 s//\1/
17246 /^X\(\/\).*/{
17247 s//\1/
17250 s/.*/./; q'`
17251 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17252 # echo "creating $dirpart/$file"
17253 echo '# dummy' > "$dirpart/$file"
17254 done
17255 done
17258 "libtool":C)
17260 # See if we are running on zsh, and set the options which allow our
17261 # commands through without removal of \ escapes.
17262 if test -n "${ZSH_VERSION+set}" ; then
17263 setopt NO_GLOB_SUBST
17266 cfgfile="${ofile}T"
17267 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17268 $RM "$cfgfile"
17270 cat <<_LT_EOF >> "$cfgfile"
17271 #! $SHELL
17273 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17274 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17276 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17278 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17279 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17280 # Written by Gordon Matzigkeit, 1996
17282 # This file is part of GNU Libtool.
17284 # GNU Libtool is free software; you can redistribute it and/or
17285 # modify it under the terms of the GNU General Public License as
17286 # published by the Free Software Foundation; either version 2 of
17287 # the License, or (at your option) any later version.
17289 # As a special exception to the GNU General Public License,
17290 # if you distribute this file as part of a program or library that
17291 # is built using GNU Libtool, you may include this file under the
17292 # same distribution terms that you use for the rest of that program.
17294 # GNU Libtool is distributed in the hope that it will be useful,
17295 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17296 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17297 # GNU General Public License for more details.
17299 # You should have received a copy of the GNU General Public License
17300 # along with GNU Libtool; see the file COPYING. If not, a copy
17301 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17302 # obtained by writing to the Free Software Foundation, Inc.,
17303 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17306 # The names of the tagged configurations supported by this script.
17307 available_tags="CXX "
17309 # ### BEGIN LIBTOOL CONFIG
17311 # Which release of libtool.m4 was used?
17312 macro_version=$macro_version
17313 macro_revision=$macro_revision
17315 # Whether or not to build shared libraries.
17316 build_libtool_libs=$enable_shared
17318 # Whether or not to build static libraries.
17319 build_old_libs=$enable_static
17321 # What type of objects to build.
17322 pic_mode=$pic_mode
17324 # Whether or not to optimize for fast installation.
17325 fast_install=$enable_fast_install
17327 # Shell to use when invoking shell scripts.
17328 SHELL=$lt_SHELL
17330 # An echo program that protects backslashes.
17331 ECHO=$lt_ECHO
17333 # The host system.
17334 host_alias=$host_alias
17335 host=$host
17336 host_os=$host_os
17338 # The build system.
17339 build_alias=$build_alias
17340 build=$build
17341 build_os=$build_os
17343 # A sed program that does not truncate output.
17344 SED=$lt_SED
17346 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17347 Xsed="\$SED -e 1s/^X//"
17349 # A grep program that handles long lines.
17350 GREP=$lt_GREP
17352 # An ERE matcher.
17353 EGREP=$lt_EGREP
17355 # A literal string matcher.
17356 FGREP=$lt_FGREP
17358 # A BSD- or MS-compatible name lister.
17359 NM=$lt_NM
17361 # Whether we need soft or hard links.
17362 LN_S=$lt_LN_S
17364 # What is the maximum length of a command?
17365 max_cmd_len=$max_cmd_len
17367 # Object file suffix (normally "o").
17368 objext=$ac_objext
17370 # Executable file suffix (normally "").
17371 exeext=$exeext
17373 # whether the shell understands "unset".
17374 lt_unset=$lt_unset
17376 # turn spaces into newlines.
17377 SP2NL=$lt_lt_SP2NL
17379 # turn newlines into spaces.
17380 NL2SP=$lt_lt_NL2SP
17382 # An object symbol dumper.
17383 OBJDUMP=$lt_OBJDUMP
17385 # Method to check whether dependent libraries are shared objects.
17386 deplibs_check_method=$lt_deplibs_check_method
17388 # Command to use when deplibs_check_method == "file_magic".
17389 file_magic_cmd=$lt_file_magic_cmd
17391 # The archiver.
17392 AR=$lt_AR
17393 AR_FLAGS=$lt_AR_FLAGS
17395 # A symbol stripping program.
17396 STRIP=$lt_STRIP
17398 # Commands used to install an old-style archive.
17399 RANLIB=$lt_RANLIB
17400 old_postinstall_cmds=$lt_old_postinstall_cmds
17401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17403 # Whether to use a lock for old archive extraction.
17404 lock_old_archive_extraction=$lock_old_archive_extraction
17406 # A C compiler.
17407 LTCC=$lt_CC
17409 # LTCC compiler flags.
17410 LTCFLAGS=$lt_CFLAGS
17412 # Take the output of nm and produce a listing of raw symbols and C names.
17413 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17415 # Transform the output of nm in a proper C declaration.
17416 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17418 # Transform the output of nm in a C name address pair.
17419 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17421 # Transform the output of nm in a C name address pair when lib prefix is needed.
17422 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17424 # The name of the directory that contains temporary libtool files.
17425 objdir=$objdir
17427 # Used to examine libraries when file_magic_cmd begins with "file".
17428 MAGIC_CMD=$MAGIC_CMD
17430 # Must we lock files when doing compilation?
17431 need_locks=$lt_need_locks
17433 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17434 DSYMUTIL=$lt_DSYMUTIL
17436 # Tool to change global to local symbols on Mac OS X.
17437 NMEDIT=$lt_NMEDIT
17439 # Tool to manipulate fat objects and archives on Mac OS X.
17440 LIPO=$lt_LIPO
17442 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17443 OTOOL=$lt_OTOOL
17445 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17446 OTOOL64=$lt_OTOOL64
17448 # Old archive suffix (normally "a").
17449 libext=$libext
17451 # Shared library suffix (normally ".so").
17452 shrext_cmds=$lt_shrext_cmds
17454 # The commands to extract the exported symbol list from a shared archive.
17455 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17457 # Variables whose values should be saved in libtool wrapper scripts and
17458 # restored at link time.
17459 variables_saved_for_relink=$lt_variables_saved_for_relink
17461 # Do we need the "lib" prefix for modules?
17462 need_lib_prefix=$need_lib_prefix
17464 # Do we need a version for libraries?
17465 need_version=$need_version
17467 # Library versioning type.
17468 version_type=$version_type
17470 # Shared library runtime path variable.
17471 runpath_var=$runpath_var
17473 # Shared library path variable.
17474 shlibpath_var=$shlibpath_var
17476 # Is shlibpath searched before the hard-coded library search path?
17477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17479 # Format of library name prefix.
17480 libname_spec=$lt_libname_spec
17482 # List of archive names. First name is the real one, the rest are links.
17483 # The last name is the one that the linker finds with -lNAME
17484 library_names_spec=$lt_library_names_spec
17486 # The coded name of the library, if different from the real name.
17487 soname_spec=$lt_soname_spec
17489 # Permission mode override for installation of shared libraries.
17490 install_override_mode=$lt_install_override_mode
17492 # Command to use after installation of a shared archive.
17493 postinstall_cmds=$lt_postinstall_cmds
17495 # Command to use after uninstallation of a shared archive.
17496 postuninstall_cmds=$lt_postuninstall_cmds
17498 # Commands used to finish a libtool library installation in a directory.
17499 finish_cmds=$lt_finish_cmds
17501 # As "finish_cmds", except a single script fragment to be evaled but
17502 # not shown.
17503 finish_eval=$lt_finish_eval
17505 # Whether we should hardcode library paths into libraries.
17506 hardcode_into_libs=$hardcode_into_libs
17508 # Compile-time system search path for libraries.
17509 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17511 # Run-time system search path for libraries.
17512 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17514 # Whether dlopen is supported.
17515 dlopen_support=$enable_dlopen
17517 # Whether dlopen of programs is supported.
17518 dlopen_self=$enable_dlopen_self
17520 # Whether dlopen of statically linked programs is supported.
17521 dlopen_self_static=$enable_dlopen_self_static
17523 # Commands to strip libraries.
17524 old_striplib=$lt_old_striplib
17525 striplib=$lt_striplib
17528 # The linker used to build libraries.
17529 LD=$lt_LD
17531 # How to create reloadable object files.
17532 reload_flag=$lt_reload_flag
17533 reload_cmds=$lt_reload_cmds
17535 # Commands used to build an old-style archive.
17536 old_archive_cmds=$lt_old_archive_cmds
17538 # A language specific compiler.
17539 CC=$lt_compiler
17541 # Is the compiler the GNU compiler?
17542 with_gcc=$GCC
17544 # Compiler flag to turn off builtin functions.
17545 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17547 # How to pass a linker flag through the compiler.
17548 wl=$lt_lt_prog_compiler_wl
17550 # Additional compiler flags for building library objects.
17551 pic_flag=$lt_lt_prog_compiler_pic
17553 # Compiler flag to prevent dynamic linking.
17554 link_static_flag=$lt_lt_prog_compiler_static
17556 # Does compiler simultaneously support -c and -o options?
17557 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17559 # Whether or not to add -lc for building shared libraries.
17560 build_libtool_need_lc=$archive_cmds_need_lc
17562 # Whether or not to disallow shared libs when runtime libs are static.
17563 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17565 # Compiler flag to allow reflexive dlopens.
17566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17568 # Compiler flag to generate shared objects directly from archives.
17569 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17571 # Whether the compiler copes with passing no objects directly.
17572 compiler_needs_object=$lt_compiler_needs_object
17574 # Create an old-style archive from a shared archive.
17575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17577 # Create a temporary old-style archive to link instead of a shared archive.
17578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17580 # Commands used to build a shared archive.
17581 archive_cmds=$lt_archive_cmds
17582 archive_expsym_cmds=$lt_archive_expsym_cmds
17584 # Commands used to build a loadable module if different from building
17585 # a shared archive.
17586 module_cmds=$lt_module_cmds
17587 module_expsym_cmds=$lt_module_expsym_cmds
17589 # Whether we are building with GNU ld or not.
17590 with_gnu_ld=$lt_with_gnu_ld
17592 # Flag that allows shared libraries with undefined symbols to be built.
17593 allow_undefined_flag=$lt_allow_undefined_flag
17595 # Flag that enforces no undefined symbols.
17596 no_undefined_flag=$lt_no_undefined_flag
17598 # Flag to hardcode \$libdir into a binary during linking.
17599 # This must work even if \$libdir does not exist
17600 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17602 # If ld is used when linking, flag to hardcode \$libdir into a binary
17603 # during linking. This must work even if \$libdir does not exist.
17604 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17606 # Whether we need a single "-rpath" flag with a separated argument.
17607 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17609 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17610 # DIR into the resulting binary.
17611 hardcode_direct=$hardcode_direct
17613 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17614 # DIR into the resulting binary and the resulting library dependency is
17615 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17616 # library is relocated.
17617 hardcode_direct_absolute=$hardcode_direct_absolute
17619 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17620 # into the resulting binary.
17621 hardcode_minus_L=$hardcode_minus_L
17623 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17624 # into the resulting binary.
17625 hardcode_shlibpath_var=$hardcode_shlibpath_var
17627 # Set to "yes" if building a shared library automatically hardcodes DIR
17628 # into the library and all subsequent libraries and executables linked
17629 # against it.
17630 hardcode_automatic=$hardcode_automatic
17632 # Set to yes if linker adds runtime paths of dependent libraries
17633 # to runtime path list.
17634 inherit_rpath=$inherit_rpath
17636 # Whether libtool must link a program against all its dependency libraries.
17637 link_all_deplibs=$link_all_deplibs
17639 # Fix the shell variable \$srcfile for the compiler.
17640 fix_srcfile_path=$lt_fix_srcfile_path
17642 # Set to "yes" if exported symbols are required.
17643 always_export_symbols=$always_export_symbols
17645 # The commands to list exported symbols.
17646 export_symbols_cmds=$lt_export_symbols_cmds
17648 # Symbols that should not be listed in the preloaded symbols.
17649 exclude_expsyms=$lt_exclude_expsyms
17651 # Symbols that must always be exported.
17652 include_expsyms=$lt_include_expsyms
17654 # Commands necessary for linking programs (against libraries) with templates.
17655 prelink_cmds=$lt_prelink_cmds
17657 # Specify filename containing input files.
17658 file_list_spec=$lt_file_list_spec
17660 # How to hardcode a shared library path into an executable.
17661 hardcode_action=$hardcode_action
17663 # The directories searched by this compiler when creating a shared library.
17664 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17666 # Dependencies to place before and after the objects being linked to
17667 # create a shared library.
17668 predep_objects=$lt_predep_objects
17669 postdep_objects=$lt_postdep_objects
17670 predeps=$lt_predeps
17671 postdeps=$lt_postdeps
17673 # The library search path used internally by the compiler when linking
17674 # a shared library.
17675 compiler_lib_search_path=$lt_compiler_lib_search_path
17677 # ### END LIBTOOL CONFIG
17679 _LT_EOF
17681 case $host_os in
17682 aix3*)
17683 cat <<\_LT_EOF >> "$cfgfile"
17684 # AIX sometimes has problems with the GCC collect2 program. For some
17685 # reason, if we set the COLLECT_NAMES environment variable, the problems
17686 # vanish in a puff of smoke.
17687 if test "X${COLLECT_NAMES+set}" != Xset; then
17688 COLLECT_NAMES=
17689 export COLLECT_NAMES
17691 _LT_EOF
17693 esac
17696 ltmain="$ac_aux_dir/ltmain.sh"
17699 # We use sed instead of cat because bash on DJGPP gets confused if
17700 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17701 # text mode, it properly converts lines to CR/LF. This bash problem
17702 # is reportedly fixed, but why not run on old versions too?
17703 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17704 || (rm -f "$cfgfile"; exit 1)
17706 case $xsi_shell in
17707 yes)
17708 cat << \_LT_EOF >> "$cfgfile"
17710 # func_dirname file append nondir_replacement
17711 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17712 # otherwise set result to NONDIR_REPLACEMENT.
17713 func_dirname ()
17715 case ${1} in
17716 */*) func_dirname_result="${1%/*}${2}" ;;
17717 * ) func_dirname_result="${3}" ;;
17718 esac
17721 # func_basename file
17722 func_basename ()
17724 func_basename_result="${1##*/}"
17727 # func_dirname_and_basename file append nondir_replacement
17728 # perform func_basename and func_dirname in a single function
17729 # call:
17730 # dirname: Compute the dirname of FILE. If nonempty,
17731 # add APPEND to the result, otherwise set result
17732 # to NONDIR_REPLACEMENT.
17733 # value returned in "$func_dirname_result"
17734 # basename: Compute filename of FILE.
17735 # value retuned in "$func_basename_result"
17736 # Implementation must be kept synchronized with func_dirname
17737 # and func_basename. For efficiency, we do not delegate to
17738 # those functions but instead duplicate the functionality here.
17739 func_dirname_and_basename ()
17741 case ${1} in
17742 */*) func_dirname_result="${1%/*}${2}" ;;
17743 * ) func_dirname_result="${3}" ;;
17744 esac
17745 func_basename_result="${1##*/}"
17748 # func_stripname prefix suffix name
17749 # strip PREFIX and SUFFIX off of NAME.
17750 # PREFIX and SUFFIX must not contain globbing or regex special
17751 # characters, hashes, percent signs, but SUFFIX may contain a leading
17752 # dot (in which case that matches only a dot).
17753 func_stripname ()
17755 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17756 # positional parameters, so assign one to ordinary parameter first.
17757 func_stripname_result=${3}
17758 func_stripname_result=${func_stripname_result#"${1}"}
17759 func_stripname_result=${func_stripname_result%"${2}"}
17762 # func_opt_split
17763 func_opt_split ()
17765 func_opt_split_opt=${1%%=*}
17766 func_opt_split_arg=${1#*=}
17769 # func_lo2o object
17770 func_lo2o ()
17772 case ${1} in
17773 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17774 *) func_lo2o_result=${1} ;;
17775 esac
17778 # func_xform libobj-or-source
17779 func_xform ()
17781 func_xform_result=${1%.*}.lo
17784 # func_arith arithmetic-term...
17785 func_arith ()
17787 func_arith_result=$(( $* ))
17790 # func_len string
17791 # STRING may not start with a hyphen.
17792 func_len ()
17794 func_len_result=${#1}
17797 _LT_EOF
17799 *) # Bourne compatible functions.
17800 cat << \_LT_EOF >> "$cfgfile"
17802 # func_dirname file append nondir_replacement
17803 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17804 # otherwise set result to NONDIR_REPLACEMENT.
17805 func_dirname ()
17807 # Extract subdirectory from the argument.
17808 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17809 if test "X$func_dirname_result" = "X${1}"; then
17810 func_dirname_result="${3}"
17811 else
17812 func_dirname_result="$func_dirname_result${2}"
17816 # func_basename file
17817 func_basename ()
17819 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17823 # func_stripname prefix suffix name
17824 # strip PREFIX and SUFFIX off of NAME.
17825 # PREFIX and SUFFIX must not contain globbing or regex special
17826 # characters, hashes, percent signs, but SUFFIX may contain a leading
17827 # dot (in which case that matches only a dot).
17828 # func_strip_suffix prefix name
17829 func_stripname ()
17831 case ${2} in
17832 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17833 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17834 esac
17837 # sed scripts:
17838 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17839 my_sed_long_arg='1s/^-[^=]*=//'
17841 # func_opt_split
17842 func_opt_split ()
17844 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17845 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17848 # func_lo2o object
17849 func_lo2o ()
17851 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17854 # func_xform libobj-or-source
17855 func_xform ()
17857 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17860 # func_arith arithmetic-term...
17861 func_arith ()
17863 func_arith_result=`expr "$@"`
17866 # func_len string
17867 # STRING may not start with a hyphen.
17868 func_len ()
17870 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17873 _LT_EOF
17874 esac
17876 case $lt_shell_append in
17877 yes)
17878 cat << \_LT_EOF >> "$cfgfile"
17880 # func_append var value
17881 # Append VALUE to the end of shell variable VAR.
17882 func_append ()
17884 eval "$1+=\$2"
17886 _LT_EOF
17889 cat << \_LT_EOF >> "$cfgfile"
17891 # func_append var value
17892 # Append VALUE to the end of shell variable VAR.
17893 func_append ()
17895 eval "$1=\$$1\$2"
17898 _LT_EOF
17900 esac
17903 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17904 || (rm -f "$cfgfile"; exit 1)
17906 mv -f "$cfgfile" "$ofile" ||
17907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17908 chmod +x "$ofile"
17911 cat <<_LT_EOF >> "$ofile"
17913 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17915 # The linker used to build libraries.
17916 LD=$lt_LD_CXX
17918 # How to create reloadable object files.
17919 reload_flag=$lt_reload_flag_CXX
17920 reload_cmds=$lt_reload_cmds_CXX
17922 # Commands used to build an old-style archive.
17923 old_archive_cmds=$lt_old_archive_cmds_CXX
17925 # A language specific compiler.
17926 CC=$lt_compiler_CXX
17928 # Is the compiler the GNU compiler?
17929 with_gcc=$GCC_CXX
17931 # Compiler flag to turn off builtin functions.
17932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17934 # How to pass a linker flag through the compiler.
17935 wl=$lt_lt_prog_compiler_wl_CXX
17937 # Additional compiler flags for building library objects.
17938 pic_flag=$lt_lt_prog_compiler_pic_CXX
17940 # Compiler flag to prevent dynamic linking.
17941 link_static_flag=$lt_lt_prog_compiler_static_CXX
17943 # Does compiler simultaneously support -c and -o options?
17944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17946 # Whether or not to add -lc for building shared libraries.
17947 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17949 # Whether or not to disallow shared libs when runtime libs are static.
17950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17952 # Compiler flag to allow reflexive dlopens.
17953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17955 # Compiler flag to generate shared objects directly from archives.
17956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17958 # Whether the compiler copes with passing no objects directly.
17959 compiler_needs_object=$lt_compiler_needs_object_CXX
17961 # Create an old-style archive from a shared archive.
17962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17964 # Create a temporary old-style archive to link instead of a shared archive.
17965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17967 # Commands used to build a shared archive.
17968 archive_cmds=$lt_archive_cmds_CXX
17969 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17971 # Commands used to build a loadable module if different from building
17972 # a shared archive.
17973 module_cmds=$lt_module_cmds_CXX
17974 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17976 # Whether we are building with GNU ld or not.
17977 with_gnu_ld=$lt_with_gnu_ld_CXX
17979 # Flag that allows shared libraries with undefined symbols to be built.
17980 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17982 # Flag that enforces no undefined symbols.
17983 no_undefined_flag=$lt_no_undefined_flag_CXX
17985 # Flag to hardcode \$libdir into a binary during linking.
17986 # This must work even if \$libdir does not exist
17987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17989 # If ld is used when linking, flag to hardcode \$libdir into a binary
17990 # during linking. This must work even if \$libdir does not exist.
17991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17993 # Whether we need a single "-rpath" flag with a separated argument.
17994 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17997 # DIR into the resulting binary.
17998 hardcode_direct=$hardcode_direct_CXX
18000 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18001 # DIR into the resulting binary and the resulting library dependency is
18002 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18003 # library is relocated.
18004 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18006 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18007 # into the resulting binary.
18008 hardcode_minus_L=$hardcode_minus_L_CXX
18010 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18011 # into the resulting binary.
18012 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18014 # Set to "yes" if building a shared library automatically hardcodes DIR
18015 # into the library and all subsequent libraries and executables linked
18016 # against it.
18017 hardcode_automatic=$hardcode_automatic_CXX
18019 # Set to yes if linker adds runtime paths of dependent libraries
18020 # to runtime path list.
18021 inherit_rpath=$inherit_rpath_CXX
18023 # Whether libtool must link a program against all its dependency libraries.
18024 link_all_deplibs=$link_all_deplibs_CXX
18026 # Fix the shell variable \$srcfile for the compiler.
18027 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18029 # Set to "yes" if exported symbols are required.
18030 always_export_symbols=$always_export_symbols_CXX
18032 # The commands to list exported symbols.
18033 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18035 # Symbols that should not be listed in the preloaded symbols.
18036 exclude_expsyms=$lt_exclude_expsyms_CXX
18038 # Symbols that must always be exported.
18039 include_expsyms=$lt_include_expsyms_CXX
18041 # Commands necessary for linking programs (against libraries) with templates.
18042 prelink_cmds=$lt_prelink_cmds_CXX
18044 # Specify filename containing input files.
18045 file_list_spec=$lt_file_list_spec_CXX
18047 # How to hardcode a shared library path into an executable.
18048 hardcode_action=$hardcode_action_CXX
18050 # The directories searched by this compiler when creating a shared library.
18051 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18053 # Dependencies to place before and after the objects being linked to
18054 # create a shared library.
18055 predep_objects=$lt_predep_objects_CXX
18056 postdep_objects=$lt_postdep_objects_CXX
18057 predeps=$lt_predeps_CXX
18058 postdeps=$lt_postdeps_CXX
18060 # The library search path used internally by the compiler when linking
18061 # a shared library.
18062 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18064 # ### END LIBTOOL TAG CONFIG: CXX
18065 _LT_EOF
18068 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18069 s!`test -f '$<' || echo '$(srcdir)/'`!!
18070 _EOF
18071 sed -f vpsed$$ $ac_file > tmp$$
18072 mv tmp$$ $ac_file
18073 rm vpsed$$
18074 echo 'MULTISUBDIR =' >> $ac_file
18075 ml_norecursion=yes
18076 . ${multi_basedir}/config-ml.in
18077 { ml_norecursion=; unset ml_norecursion;}
18080 esac
18081 done # for ac_tag
18084 as_fn_exit 0
18085 _ACEOF
18086 ac_clean_files=$ac_clean_files_save
18088 test $ac_write_fail = 0 ||
18089 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18092 # configure is writing to config.log, and then calls config.status.
18093 # config.status does its own redirection, appending to config.log.
18094 # Unfortunately, on DOS this fails, as config.log is still kept open
18095 # by configure, so config.status won't be able to write to it; its
18096 # output is simply discarded. So we exec the FD to /dev/null,
18097 # effectively closing config.log, so it can be properly (re)opened and
18098 # appended to by config.status. When coming back to configure, we
18099 # need to make the FD available again.
18100 if test "$no_create" != yes; then
18101 ac_cs_success=:
18102 ac_config_status_args=
18103 test "$silent" = yes &&
18104 ac_config_status_args="$ac_config_status_args --quiet"
18105 exec 5>/dev/null
18106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18107 exec 5>>config.log
18108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18109 # would make configure fail if this is the last instruction.
18110 $ac_cs_success || as_fn_exit $?
18112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}