2015-05-20 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / libitm / configure
blob55332bb9de833d8a0fa59d0e249f3132927f4d0e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU TM 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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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 TM Runtime Library'
558 PACKAGE_TARNAME='libitm'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU TM Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libitm/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_FUTEX_FALSE
605 ARCH_FUTEX_TRUE
606 ARCH_X86_AVX_FALSE
607 ARCH_X86_AVX_TRUE
608 ARCH_X86_FALSE
609 ARCH_X86_TRUE
610 ARCH_ARM_FALSE
611 ARCH_ARM_TRUE
612 link_itm
613 XLDFLAGS
614 XCFLAGS
615 config_path
616 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
617 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
618 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
619 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
620 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
621 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
622 OPT_LDFLAGS
623 SECTION_LDFLAGS
624 HAVE_HWCAP_FALSE
625 HAVE_HWCAP_TRUE
626 HWCAP_LDFLAGS
627 libtool_VERSION
628 MAINT
629 MAINTAINER_MODE_FALSE
630 MAINTAINER_MODE_TRUE
631 enable_static
632 enable_shared
633 CXXCPP
635 OTOOL64
636 OTOOL
637 LIPO
638 NMEDIT
639 DSYMUTIL
640 OBJDUMP
641 LN_S
642 ac_ct_DUMPBIN
643 DUMPBIN
645 FGREP
646 EGREP
647 GREP
649 LIBTOOL
650 BUILD_INFO_FALSE
651 BUILD_INFO_TRUE
652 PERL
653 RANLIB
656 am__fastdepCCAS_FALSE
657 am__fastdepCCAS_TRUE
658 CCASDEPMODE
659 CCASFLAGS
660 CCAS
661 am__fastdepCXX_FALSE
662 am__fastdepCXX_TRUE
663 CXXDEPMODE
664 ac_ct_CXX
665 CXXFLAGS
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
684 toolexeclibdir
685 toolexecdir
686 multi_basedir
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 GENINSRC_FALSE
723 GENINSRC_TRUE
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_version_specific_runtime_libs
766 enable_generated_files_in_srcdir
767 enable_multilib
768 enable_dependency_tracking
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
775 enable_maintainer_mode
776 enable_linux_futex
777 enable_tls
778 enable_symvers
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
784 CPPFLAGS
785 CXXCPP'
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
836 ac_prev=
837 ac_dashdash=
838 for ac_option
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
856 ac_dashdash=yes ;;
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
875 --config-cache | -C)
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) as_fn_error "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information."
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 esac
1193 done
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error "missing argument to $ac_option"
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error "pwd does not report name of working directory"
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1279 /^X\(\/\/\)$/{
1280 s//\1/
1283 /^X\(\/\).*/{
1284 s//\1/
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1292 else
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1382 cat <<\_ACEOF
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1399 esac
1400 cat <<\_ACEOF
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-version-specific-runtime-libs
1407 Specify that runtime libraries should be installed
1408 in a compiler-specific directory [default=no]
1409 --enable-generated-files-in-srcdir
1410 put copies of generated files in source dir intended
1411 for creating source tarballs for users without
1412 texinfo bison or flex. [default=no]
1413 --enable-multilib build many library versions (default)
1414 --disable-dependency-tracking speeds up one-time build
1415 --enable-dependency-tracking do not reject slow dependency extractors
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --enable-maintainer-mode enable make rules and dependencies not useful
1422 (and sometimes confusing) to the casual installer
1423 --enable-linux-futex use the Linux futex system call [default=default]
1424 --enable-tls Use thread-local storage [default=yes]
1425 --enable-symvers=STYLE enables symbol versioning of the shared library
1426 [default=yes]
1428 Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-pic try to use only PIC/non-PIC objects [default=use
1432 both]
1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 CXX C++ compiler command
1444 CXXFLAGS C++ compiler flags
1445 CCAS assembler compiler command (defaults to CC)
1446 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1447 CPP C preprocessor
1448 CXXCPP C++ preprocessor
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to the package provider.
1454 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1455 General help using GNU software: <http://www.gnu.org/gethelp/>.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 GNU TM Runtime Library configure 1.0
1519 generated by GNU Autoconf 2.64
1521 Copyright (C) 2009 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_cxx_try_compile LINENO
1571 # ----------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_cxx_try_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_cxx_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1601 ac_retval=1
1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604 return $ac_retval
1606 } # ac_fn_cxx_try_compile
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 $as_test_x conftest$ac_exeext
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=1
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1652 } # ac_fn_c_try_link
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673 else
1674 eval "$3=no"
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 } # ac_fn_c_check_header_compile
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_cpp ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } >/dev/null && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_retval=1
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1720 } # ac_fn_c_try_cpp
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=$ac_status
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_run
1764 # ac_fn_c_check_func LINENO FUNC VAR
1765 # ----------------------------------
1766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767 ac_fn_c_check_func ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779 #define $2 innocuous_$2
1781 /* System header to define __stub macros and hopefully few prototypes,
1782 which can conflict with char $2 (); below.
1783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784 <limits.h> exists even on freestanding compilers. */
1786 #ifdef __STDC__
1787 # include <limits.h>
1788 #else
1789 # include <assert.h>
1790 #endif
1792 #undef $2
1794 /* Override any GCC internal prototype to avoid an error.
1795 Use char because int might match the return type of a GCC
1796 builtin and then its argument prototype would still apply. */
1797 #ifdef __cplusplus
1798 extern "C"
1799 #endif
1800 char $2 ();
1801 /* The GNU C library defines this for functions which it implements
1802 to always fail with ENOSYS. Some functions are actually named
1803 something starting with __ and the normal name is an alias. */
1804 #if defined __stub_$2 || defined __stub___$2
1805 choke me
1806 #endif
1809 main ()
1811 return $2 ();
1813 return 0;
1815 _ACEOF
1816 if ac_fn_c_try_link "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1821 rm -f core conftest.err conftest.$ac_objext \
1822 conftest$ac_exeext conftest.$ac_ext
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_check_func
1831 # ac_fn_cxx_try_cpp LINENO
1832 # ------------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_cpp ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } >/dev/null && {
1853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1854 test ! -s conftest.err
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1861 ac_retval=1
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 return $ac_retval
1866 } # ac_fn_cxx_try_cpp
1868 # ac_fn_cxx_try_link LINENO
1869 # -------------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_cxx_try_link ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 rm -f conftest.$ac_objext conftest$ac_exeext
1875 if { { ac_try="$ac_link"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_link") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && {
1891 test -z "$ac_cxx_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest$ac_exeext && {
1894 test "$cross_compiling" = yes ||
1895 $as_test_x conftest$ac_exeext
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=1
1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1906 # interfere with the next link command; also delete a directory that is
1907 # left behind by Apple's compiler. We do this before executing the actions.
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910 return $ac_retval
1912 } # ac_fn_cxx_try_link
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1918 # accordingly.
1919 ac_fn_c_check_header_mongrel ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926 $as_echo_n "(cached) " >&6
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 else
1932 # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_header_compiler=yes
1942 else
1943 ac_header_compiler=no
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957 ac_header_preproc=yes
1958 else
1959 ac_header_preproc=no
1961 rm -f conftest.err conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1965 # So? What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967 yes:no: )
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 no:yes:* )
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 esac
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 eval "$3=\$ac_header_compiler"
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 } # ac_fn_c_check_header_mongrel
2001 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2002 # -------------------------------------------
2003 # Tests whether TYPE exists after having included INCLUDES, setting cache
2004 # variable VAR accordingly.
2005 ac_fn_c_check_type ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 eval "$3=no"
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 if (sizeof ($2))
2021 return 0;
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 if (sizeof (($2)))
2034 return 0;
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2041 else
2042 eval "$3=yes"
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 } # ac_fn_c_check_type
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 # computed
2060 ac_fn_c_compute_int ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_lo=0 ac_mid=0
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid; break
2096 else
2097 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098 if test $ac_lo -le $ac_mid; then
2099 ac_lo= ac_hi=
2100 break
2102 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 done
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) < 0)];
2114 test_array [0] = 0
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=-1 ac_mid=-1
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=$ac_mid; break
2138 else
2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140 if test $ac_mid -le $ac_hi; then
2141 ac_lo= ac_hi=
2142 break
2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 ac_lo= ac_hi=
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 main ()
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid
2172 else
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 case $ac_lo in #((
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 '') ac_retval=1 ;;
2180 esac
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2187 #include <stdio.h>
2188 #include <stdlib.h>
2190 main ()
2193 FILE *f = fopen ("conftest.val", "w");
2194 if (! f)
2195 return 1;
2196 if (($2) < 0)
2198 long int i = longval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%ld", i);
2203 else
2205 unsigned long int i = ulongval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 else
2221 ac_retval=1
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 rm -f conftest.val
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 return $ac_retval
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_decl LINENO SYMBOL VAR
2234 # ------------------------------------
2235 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2236 ac_fn_c_check_decl ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 as_decl_name=`echo $2|sed 's/ *(.*//'`
2240 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 main ()
2252 #ifndef $as_decl_name
2253 #ifdef __cplusplus
2254 (void) $as_decl_use;
2255 #else
2256 (void) $as_decl_name;
2257 #endif
2258 #endif
2261 return 0;
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 eval "$3=yes"
2266 else
2267 eval "$3=no"
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276 } # ac_fn_c_check_decl
2277 cat >config.log <<_ACEOF
2278 This file contains any messages produced by compilers while
2279 running configure, to aid debugging if configure makes a mistake.
2281 It was created by GNU TM Runtime Library $as_me 1.0, which was
2282 generated by GNU Autoconf 2.64. Invocation command line was
2284 $ $0 $@
2286 _ACEOF
2287 exec 5>>config.log
2289 cat <<_ASUNAME
2290 ## --------- ##
2291 ## Platform. ##
2292 ## --------- ##
2294 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2295 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2296 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2297 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2298 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2300 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2301 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2303 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2304 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2305 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2306 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2307 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2308 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2309 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2311 _ASUNAME
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 $as_echo "PATH: $as_dir"
2319 done
2320 IFS=$as_save_IFS
2322 } >&5
2324 cat >&5 <<_ACEOF
2327 ## ----------- ##
2328 ## Core tests. ##
2329 ## ----------- ##
2331 _ACEOF
2334 # Keep a trace of the command line.
2335 # Strip out --no-create and --no-recursion so they do not pile up.
2336 # Strip out --silent because we don't want to record it for future runs.
2337 # Also quote any args containing shell meta-characters.
2338 # Make two passes to allow for proper duplicate-argument suppression.
2339 ac_configure_args=
2340 ac_configure_args0=
2341 ac_configure_args1=
2342 ac_must_keep_next=false
2343 for ac_pass in 1 2
2345 for ac_arg
2347 case $ac_arg in
2348 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2350 | -silent | --silent | --silen | --sile | --sil)
2351 continue ;;
2352 *\'*)
2353 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2354 esac
2355 case $ac_pass in
2356 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2358 as_fn_append ac_configure_args1 " '$ac_arg'"
2359 if test $ac_must_keep_next = true; then
2360 ac_must_keep_next=false # Got value, back to normal.
2361 else
2362 case $ac_arg in
2363 *=* | --config-cache | -C | -disable-* | --disable-* \
2364 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2365 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2366 | -with-* | --with-* | -without-* | --without-* | --x)
2367 case "$ac_configure_args0 " in
2368 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2369 esac
2371 -* ) ac_must_keep_next=true ;;
2372 esac
2374 as_fn_append ac_configure_args " '$ac_arg'"
2376 esac
2377 done
2378 done
2379 { ac_configure_args0=; unset ac_configure_args0;}
2380 { ac_configure_args1=; unset ac_configure_args1;}
2382 # When interrupted or exit'd, cleanup temporary files, and complete
2383 # config.log. We remove comments because anyway the quotes in there
2384 # would cause problems or look ugly.
2385 # WARNING: Use '\'' to represent an apostrophe within the trap.
2386 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2387 trap 'exit_status=$?
2388 # Save into config.log some information that might help in debugging.
2390 echo
2392 cat <<\_ASBOX
2393 ## ---------------- ##
2394 ## Cache variables. ##
2395 ## ---------------- ##
2396 _ASBOX
2397 echo
2398 # The following way of writing the cache mishandles newlines in values,
2400 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2401 eval ac_val=\$$ac_var
2402 case $ac_val in #(
2403 *${as_nl}*)
2404 case $ac_var in #(
2405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2406 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2407 esac
2408 case $ac_var in #(
2409 _ | IFS | as_nl) ;; #(
2410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2411 *) { eval $ac_var=; unset $ac_var;} ;;
2412 esac ;;
2413 esac
2414 done
2415 (set) 2>&1 |
2416 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2417 *${as_nl}ac_space=\ *)
2418 sed -n \
2419 "s/'\''/'\''\\\\'\'''\''/g;
2420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2421 ;; #(
2423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2425 esac |
2426 sort
2428 echo
2430 cat <<\_ASBOX
2431 ## ----------------- ##
2432 ## Output variables. ##
2433 ## ----------------- ##
2434 _ASBOX
2435 echo
2436 for ac_var in $ac_subst_vars
2438 eval ac_val=\$$ac_var
2439 case $ac_val in
2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441 esac
2442 $as_echo "$ac_var='\''$ac_val'\''"
2443 done | sort
2444 echo
2446 if test -n "$ac_subst_files"; then
2447 cat <<\_ASBOX
2448 ## ------------------- ##
2449 ## File substitutions. ##
2450 ## ------------------- ##
2451 _ASBOX
2452 echo
2453 for ac_var in $ac_subst_files
2455 eval ac_val=\$$ac_var
2456 case $ac_val in
2457 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458 esac
2459 $as_echo "$ac_var='\''$ac_val'\''"
2460 done | sort
2461 echo
2464 if test -s confdefs.h; then
2465 cat <<\_ASBOX
2466 ## ----------- ##
2467 ## confdefs.h. ##
2468 ## ----------- ##
2469 _ASBOX
2470 echo
2471 cat confdefs.h
2472 echo
2474 test "$ac_signal" != 0 &&
2475 $as_echo "$as_me: caught signal $ac_signal"
2476 $as_echo "$as_me: exit $exit_status"
2477 } >&5
2478 rm -f core *.core core.conftest.* &&
2479 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2480 exit $exit_status
2482 for ac_signal in 1 2 13 15; do
2483 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2484 done
2485 ac_signal=0
2487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2488 rm -f -r conftest* confdefs.h
2490 $as_echo "/* confdefs.h */" > confdefs.h
2492 # Predefined preprocessor variables.
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_NAME "$PACKAGE_NAME"
2496 _ACEOF
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2500 _ACEOF
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2504 _ACEOF
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_STRING "$PACKAGE_STRING"
2508 _ACEOF
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2512 _ACEOF
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_URL "$PACKAGE_URL"
2516 _ACEOF
2519 # Let the site file select an alternate cache file if it wants to.
2520 # Prefer an explicitly selected file to automatically selected ones.
2521 ac_site_file1=NONE
2522 ac_site_file2=NONE
2523 if test -n "$CONFIG_SITE"; then
2524 ac_site_file1=$CONFIG_SITE
2525 elif test "x$prefix" != xNONE; then
2526 ac_site_file1=$prefix/share/config.site
2527 ac_site_file2=$prefix/etc/config.site
2528 else
2529 ac_site_file1=$ac_default_prefix/share/config.site
2530 ac_site_file2=$ac_default_prefix/etc/config.site
2532 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2534 test "x$ac_site_file" = xNONE && continue
2535 if test -r "$ac_site_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2537 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538 sed 's/^/| /' "$ac_site_file" >&5
2539 . "$ac_site_file"
2541 done
2543 if test -r "$cache_file"; then
2544 # Some versions of bash will fail to source /dev/null (special
2545 # files actually), so we avoid doing that.
2546 if test -f "$cache_file"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548 $as_echo "$as_me: loading cache $cache_file" >&6;}
2549 case $cache_file in
2550 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551 *) . "./$cache_file";;
2552 esac
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2556 $as_echo "$as_me: creating cache $cache_file" >&6;}
2557 >$cache_file
2560 # Check that the precious variables saved in the cache have kept the same
2561 # value.
2562 ac_cache_corrupted=false
2563 for ac_var in $ac_precious_vars; do
2564 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565 eval ac_new_set=\$ac_env_${ac_var}_set
2566 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567 eval ac_new_val=\$ac_env_${ac_var}_value
2568 case $ac_old_set,$ac_new_set in
2569 set,)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,set)
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576 ac_cache_corrupted=: ;;
2577 ,);;
2579 if test "x$ac_old_val" != "x$ac_new_val"; then
2580 # differences in whitespace do not lead to failure.
2581 ac_old_val_w=`echo x $ac_old_val`
2582 ac_new_val_w=`echo x $ac_new_val`
2583 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2585 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586 ac_cache_corrupted=:
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590 eval $ac_var=\$ac_old_val
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2593 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2595 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2596 fi;;
2597 esac
2598 # Pass precious variables to config.status.
2599 if test "$ac_new_set" = set; then
2600 case $ac_new_val in
2601 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602 *) ac_arg=$ac_var=$ac_new_val ;;
2603 esac
2604 case " $ac_configure_args " in
2605 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2606 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607 esac
2609 done
2610 if $ac_cache_corrupted; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2615 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2617 ## -------------------- ##
2618 ## Main body of script. ##
2619 ## -------------------- ##
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 ac_config_headers="$ac_config_headers config.h"
2634 # -------
2635 # Options
2636 # -------
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2639 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2640 # Check whether --enable-version-specific-runtime-libs was given.
2641 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2642 enableval=$enable_version_specific_runtime_libs;
2643 case "$enableval" in
2644 yes|no) ;;
2645 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2646 esac
2648 else
2649 enable_version_specific_runtime_libs=no
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2654 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2656 # We would like our source tree to be readonly. However when releases or
2657 # pre-releases are generated, the flex/bison generated files as well as the
2658 # various formats of manuals need to be included along with the rest of the
2659 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2660 # just that.
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2662 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2663 # Check whether --enable-generated-files-in-srcdir was given.
2664 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2665 enableval=$enable_generated_files_in_srcdir;
2666 case "$enableval" in
2667 yes|no) ;;
2668 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2669 esac
2671 else
2672 enable_generated_files_in_srcdir=no
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2677 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2678 if test "$enable_generated_files_in_srcdir" = yes; then
2679 GENINSRC_TRUE=
2680 GENINSRC_FALSE='#'
2681 else
2682 GENINSRC_TRUE='#'
2683 GENINSRC_FALSE=
2688 # -------
2689 # -------
2691 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2693 # You will slowly go insane if you do not grok the following fact: when
2694 # building this library, the top-level /target/ becomes the library's /host/.
2696 # configure then causes --target to default to --host, exactly like any
2697 # other package using autoconf. Therefore, 'target' and 'host' will
2698 # always be the same. This makes sense both for native and cross compilers
2699 # just think about it for a little while. :-)
2701 # Also, if this library is being configured as part of a cross compiler, the
2702 # top-level configure script will pass the "real" host as $with_cross_host.
2704 # Do not delete or change the following two lines. For why, see
2705 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2706 ac_aux_dir=
2707 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2708 for ac_t in install-sh install.sh shtool; do
2709 if test -f "$ac_dir/$ac_t"; then
2710 ac_aux_dir=$ac_dir
2711 ac_install_sh="$ac_aux_dir/$ac_t -c"
2712 break 2
2714 done
2715 done
2716 if test -z "$ac_aux_dir"; then
2717 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2725 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2726 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729 # Make sure we can run config.sub.
2730 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2731 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2734 $as_echo_n "checking build system type... " >&6; }
2735 if test "${ac_cv_build+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 ac_build_alias=$build_alias
2739 test "x$ac_build_alias" = x &&
2740 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2741 test "x$ac_build_alias" = x &&
2742 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2743 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2744 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2748 $as_echo "$ac_cv_build" >&6; }
2749 case $ac_cv_build in
2750 *-*-*) ;;
2751 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2752 esac
2753 build=$ac_cv_build
2754 ac_save_IFS=$IFS; IFS='-'
2755 set x $ac_cv_build
2756 shift
2757 build_cpu=$1
2758 build_vendor=$2
2759 shift; shift
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2762 build_os=$*
2763 IFS=$ac_save_IFS
2764 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2768 $as_echo_n "checking host system type... " >&6; }
2769 if test "${ac_cv_host+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test "x$host_alias" = x; then
2773 ac_cv_host=$ac_cv_build
2774 else
2775 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2776 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2781 $as_echo "$ac_cv_host" >&6; }
2782 case $ac_cv_host in
2783 *-*-*) ;;
2784 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2785 esac
2786 host=$ac_cv_host
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_host
2789 shift
2790 host_cpu=$1
2791 host_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 host_os=$*
2796 IFS=$ac_save_IFS
2797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2801 $as_echo_n "checking target system type... " >&6; }
2802 if test "${ac_cv_target+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test "x$target_alias" = x; then
2806 ac_cv_target=$ac_cv_host
2807 else
2808 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2809 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2814 $as_echo "$ac_cv_target" >&6; }
2815 case $ac_cv_target in
2816 *-*-*) ;;
2817 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2818 esac
2819 target=$ac_cv_target
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_target
2822 shift
2823 target_cpu=$1
2824 target_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 target_os=$*
2829 IFS=$ac_save_IFS
2830 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2833 # The aliases save the names the user supplied, while $host etc.
2834 # will get canonicalized.
2835 test -n "$target_alias" &&
2836 test "$program_prefix$program_suffix$program_transform_name" = \
2837 NONENONEs,x,x, &&
2838 program_prefix=${target_alias}-
2840 target_alias=${target_alias-$host_alias}
2842 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2843 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2844 # 1.9.0: minimum required version
2845 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2846 # of other PACKAGE_* variables will, however, and there's nothing
2847 # we can do about that; they come from AC_INIT).
2848 # no-dist: we don't want 'dist' and related rules.
2849 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2850 # file in the top srcdir, etc, etc), so stop complaining.
2851 # -Wall: turns on all automake warnings...
2852 # -Wno-portability: ...except this one, since GNU make is required.
2853 # -Wno-override: ... and this one, since we do want this in testsuite.
2854 am__api_version='1.11'
2856 # Find a good install program. We prefer a C program (faster),
2857 # so one script is as good as another. But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2862 # AIX /bin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 # Reject install programs that cannot install multiple files.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2872 if test -z "$INSTALL"; then
2873 if test "${ac_cv_path_install+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in #((
2883 ./ | .// | /[cC]/* | \
2884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2886 /usr/ucb/* ) ;;
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2890 # by default.
2891 for ac_prog in ginstall scoinst install; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2894 if test $ac_prog = install &&
2895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2898 elif test $ac_prog = install &&
2899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2902 else
2903 rm -rf conftest.one conftest.two conftest.dir
2904 echo one > conftest.one
2905 echo two > conftest.two
2906 mkdir conftest.dir
2907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2908 test -s conftest.one && test -s conftest.two &&
2909 test -s conftest.dir/conftest.one &&
2910 test -s conftest.dir/conftest.two
2911 then
2912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2913 break 3
2917 done
2918 done
2920 esac
2922 done
2923 IFS=$as_save_IFS
2925 rm -rf conftest.one conftest.two conftest.dir
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL=$ac_cv_path_install
2930 else
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 INSTALL=$ac_install_sh
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2939 $as_echo "$INSTALL" >&6; }
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2950 $as_echo_n "checking whether build environment is sane... " >&6; }
2951 # Just in case
2952 sleep 1
2953 echo timestamp > conftest.file
2954 # Reject unsafe characters in $srcdir or the absolute working directory
2955 # name. Accept space and tab only in the latter.
2956 am_lf='
2958 case `pwd` in
2959 *[\\\"\#\$\&\'\`$am_lf]*)
2960 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2961 esac
2962 case $srcdir in
2963 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2964 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2965 esac
2967 # Do `set' in a subshell so we don't clobber the current shell's
2968 # arguments. Must try -L first in case configure is actually a
2969 # symlink; some systems play weird games with the mod time of symlinks
2970 # (eg FreeBSD returns the mod time of the symlink's containing
2971 # directory).
2972 if (
2973 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2974 if test "$*" = "X"; then
2975 # -L didn't work.
2976 set X `ls -t "$srcdir/configure" conftest.file`
2978 rm -f conftest.file
2979 if test "$*" != "X $srcdir/configure conftest.file" \
2980 && test "$*" != "X conftest.file $srcdir/configure"; then
2982 # If neither matched, then we have a broken ls. This can happen
2983 # if, for instance, CONFIG_SHELL is bash and it inherits a
2984 # broken ls alias from the environment. This has actually
2985 # happened. Such a system could not be considered "sane".
2986 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2987 alias in your environment" "$LINENO" 5
2990 test "$2" = conftest.file
2992 then
2993 # Ok.
2995 else
2996 as_fn_error "newly created file is older than distributed files!
2997 Check your system clock" "$LINENO" 5
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3000 $as_echo "yes" >&6; }
3001 test "$program_prefix" != NONE &&
3002 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3003 # Use a double $ so make ignores it.
3004 test "$program_suffix" != NONE &&
3005 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3006 # Double any \ or $.
3007 # By default was `s,x,x', remove it if useless.
3008 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3009 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3011 # expand $ac_aux_dir to an absolute path
3012 am_aux_dir=`cd $ac_aux_dir && pwd`
3014 if test x"${MISSING+set}" != xset; then
3015 case $am_aux_dir in
3016 *\ * | *\ *)
3017 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3019 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3020 esac
3022 # Use eval to expand $SHELL
3023 if eval "$MISSING --run true"; then
3024 am_missing_run="$MISSING --run "
3025 else
3026 am_missing_run=
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3028 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3031 if test x"${install_sh}" != xset; then
3032 case $am_aux_dir in
3033 *\ * | *\ *)
3034 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3036 install_sh="\${SHELL} $am_aux_dir/install-sh"
3037 esac
3040 # Installed binaries are usually stripped using `strip' when the user
3041 # run `make install-strip'. However `strip' might not be the right
3042 # tool to use in cross-compilation environments, therefore Automake
3043 # will honor the `STRIP' environment variable to overrule this program.
3044 if test "$cross_compiling" != no; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}strip; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_STRIP+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$STRIP"; then
3054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3069 IFS=$as_save_IFS
3073 STRIP=$ac_cv_prog_STRIP
3074 if test -n "$STRIP"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3076 $as_echo "$STRIP" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 if test -z "$ac_cv_prog_STRIP"; then
3085 ac_ct_STRIP=$STRIP
3086 # Extract the first word of "strip", so it can be a program name with args.
3087 set dummy strip; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$ac_ct_STRIP"; then
3094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_ac_ct_STRIP="strip"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3114 if test -n "$ac_ct_STRIP"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3116 $as_echo "$ac_ct_STRIP" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3122 if test "x$ac_ct_STRIP" = x; then
3123 STRIP=":"
3124 else
3125 case $cross_compiling:$ac_tool_warned in
3126 yes:)
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3130 esac
3131 STRIP=$ac_ct_STRIP
3133 else
3134 STRIP="$ac_cv_prog_STRIP"
3138 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3141 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3142 if test -z "$MKDIR_P"; then
3143 if test "${ac_cv_path_mkdir+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_prog in mkdir gmkdir; do
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3154 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3155 'mkdir (GNU coreutils) '* | \
3156 'mkdir (coreutils) '* | \
3157 'mkdir (fileutils) '4.1*)
3158 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3159 break 3;;
3160 esac
3161 done
3162 done
3163 done
3164 IFS=$as_save_IFS
3168 if test "${ac_cv_path_mkdir+set}" = set; then
3169 MKDIR_P="$ac_cv_path_mkdir -p"
3170 else
3171 # As a last resort, use the slow shell script. Don't cache a
3172 # value for MKDIR_P within a source directory, because that will
3173 # break other packages using the cache if that directory is
3174 # removed, or if the value is a relative name.
3175 test -d ./--version && rmdir ./--version
3176 MKDIR_P="$ac_install_sh -d"
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3180 $as_echo "$MKDIR_P" >&6; }
3182 mkdir_p="$MKDIR_P"
3183 case $mkdir_p in
3184 [\\/$]* | ?:[\\/]*) ;;
3185 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3186 esac
3188 for ac_prog in gawk mawk nawk awk
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_AWK+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$AWK"; then
3198 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_AWK="$ac_prog"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3213 IFS=$as_save_IFS
3217 AWK=$ac_cv_prog_AWK
3218 if test -n "$AWK"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3220 $as_echo "$AWK" >&6; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3227 test -n "$AWK" && break
3228 done
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3231 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3232 set x ${MAKE-make}
3233 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3234 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 cat >conftest.make <<\_ACEOF
3238 SHELL = /bin/sh
3239 all:
3240 @echo '@@@%%%=$(MAKE)=@@@%%%'
3241 _ACEOF
3242 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3243 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3244 *@@@%%%=?*=@@@%%%*)
3245 eval ac_cv_prog_make_${ac_make}_set=yes;;
3247 eval ac_cv_prog_make_${ac_make}_set=no;;
3248 esac
3249 rm -f conftest.make
3251 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3254 SET_MAKE=
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 SET_MAKE="MAKE=${MAKE-make}"
3261 rm -rf .tst 2>/dev/null
3262 mkdir .tst 2>/dev/null
3263 if test -d .tst; then
3264 am__leading_dot=.
3265 else
3266 am__leading_dot=_
3268 rmdir .tst 2>/dev/null
3270 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3271 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3272 # is not polluted with repeated "-I."
3273 am__isrc=' -I$(srcdir)'
3274 # test to see if srcdir already configured
3275 if test -f $srcdir/config.status; then
3276 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3280 # test whether we have cygpath
3281 if test -z "$CYGPATH_W"; then
3282 if (cygpath --version) >/dev/null 2>/dev/null; then
3283 CYGPATH_W='cygpath -w'
3284 else
3285 CYGPATH_W=echo
3290 # Define the identity of the package.
3291 PACKAGE='libitm'
3292 VERSION='1.0'
3295 cat >>confdefs.h <<_ACEOF
3296 #define PACKAGE "$PACKAGE"
3297 _ACEOF
3300 cat >>confdefs.h <<_ACEOF
3301 #define VERSION "$VERSION"
3302 _ACEOF
3304 # Some tools Automake needs.
3306 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3309 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3312 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3315 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3318 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3320 # We need awk for the "check" target. The system "awk" is bad on
3321 # some platforms.
3322 # Always define AMTAR for backward compatibility. Yes, it's still used
3323 # in the wild :-( We should find a proper way to deprecate it ...
3324 AMTAR='$${TAR-tar}'
3326 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3332 # Default to --enable-multilib
3333 # Check whether --enable-multilib was given.
3334 if test "${enable_multilib+set}" = set; then :
3335 enableval=$enable_multilib; case "$enableval" in
3336 yes) multilib=yes ;;
3337 no) multilib=no ;;
3338 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3339 esac
3340 else
3341 multilib=yes
3345 # We may get other options which we leave undocumented:
3346 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3347 # See config-ml.in if you want the gory details.
3349 if test "$srcdir" = "."; then
3350 if test "$with_target_subdir" != "."; then
3351 multi_basedir="$srcdir/$with_multisrctop../.."
3352 else
3353 multi_basedir="$srcdir/$with_multisrctop.."
3355 else
3356 multi_basedir="$srcdir/.."
3360 # Even if the default multilib is not a cross compilation,
3361 # it may be that some of the other multilibs are.
3362 if test $cross_compiling = no && test $multilib = yes \
3363 && test "x${with_multisubdir}" != x ; then
3364 cross_compiling=maybe
3367 ac_config_commands="$ac_config_commands default-1"
3370 # Calculate toolexeclibdir
3371 # Also toolexecdir, though it's only used in toolexeclibdir
3372 case ${enable_version_specific_runtime_libs} in
3373 yes)
3374 # Need the gcc compiler version to know where to install libraries
3375 # and header files if --enable-version-specific-runtime-libs option
3376 # is selected.
3377 toolexecdir='$(libdir)/gcc/$(target_alias)'
3378 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3381 if test -n "$with_cross_host" &&
3382 test x"$with_cross_host" != x"no"; then
3383 # Install a library built with a cross compiler in tooldir, not libdir.
3384 toolexecdir='$(exec_prefix)/$(target_alias)'
3385 toolexeclibdir='$(toolexecdir)/lib'
3386 else
3387 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3388 toolexeclibdir='$(libdir)'
3390 multi_os_directory=`$CC -print-multi-os-directory`
3391 case $multi_os_directory in
3392 .) ;; # Avoid trailing /.
3393 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3394 esac
3396 esac
3400 # Check the compiler.
3401 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3402 # We must force CC to /not/ be precious variables; otherwise
3403 # the wrong, non-multilib-adjusted value will be used in multilibs.
3404 # As a side effect, we have to subst CFLAGS ourselves.
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_CC+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3435 done
3436 done
3437 IFS=$as_save_IFS
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3452 if test -z "$ac_cv_prog_CC"; then
3453 ac_ct_CC=$CC
3454 # Extract the first word of "gcc", so it can be a program name with args.
3455 set dummy gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$ac_ct_CC"; then
3462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_ac_ct_CC="gcc"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3475 done
3476 done
3477 IFS=$as_save_IFS
3481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3482 if test -n "$ac_ct_CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3484 $as_echo "$ac_ct_CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3490 if test "x$ac_ct_CC" = x; then
3491 CC=""
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 CC=$ac_ct_CC
3501 else
3502 CC="$ac_cv_prog_CC"
3505 if test -z "$CC"; then
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}cc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_CC="${ac_tool_prefix}cc"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3530 IFS=$as_save_IFS
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3546 if test -z "$CC"; then
3547 # Extract the first word of "cc", so it can be a program name with args.
3548 set dummy cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 ac_prog_rejected=no
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3566 ac_prog_rejected=yes
3567 continue
3569 ac_cv_prog_CC="cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3577 if test $ac_prog_rejected = yes; then
3578 # We found a bogon in the path, so make sure we never use it.
3579 set dummy $ac_cv_prog_CC
3580 shift
3581 if test $# != 0; then
3582 # We chose a different compiler from the bogus one.
3583 # However, it has the same basename, so the bogon will be chosen
3584 # first if we set CC to just the basename; use the full file name.
3585 shift
3586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594 $as_echo "$CC" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3602 if test -z "$CC"; then
3603 if test -n "$ac_tool_prefix"; then
3604 for ac_prog in cl.exe
3606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if test "${ac_cv_prog_CC+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3627 done
3628 done
3629 IFS=$as_save_IFS
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3643 test -n "$CC" && break
3644 done
3646 if test -z "$CC"; then
3647 ac_ct_CC=$CC
3648 for ac_prog in cl.exe
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$ac_ct_CC"; then
3658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_ac_ct_CC="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3678 if test -n "$ac_ct_CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3680 $as_echo "$ac_ct_CC" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$ac_ct_CC" && break
3688 done
3690 if test "x$ac_ct_CC" = x; then
3691 CC=""
3692 else
3693 case $cross_compiling:$ac_tool_warned in
3694 yes:)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3697 ac_tool_warned=yes ;;
3698 esac
3699 CC=$ac_ct_CC
3706 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error "no acceptable C compiler found in \$PATH
3709 See \`config.log' for more details." "$LINENO" 5; }
3711 # Provide some information about the compiler.
3712 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3713 set X $ac_compile
3714 ac_compiler=$2
3715 for ac_option in --version -v -V -qversion; do
3716 { { ac_try="$ac_compiler $ac_option >&5"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3724 ac_status=$?
3725 if test -s conftest.err; then
3726 sed '10a\
3727 ... rest of stderr output deleted ...
3728 10q' conftest.err >conftest.er1
3729 cat conftest.er1 >&5
3730 rm -f conftest.er1 conftest.err
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }
3734 done
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3740 main ()
3744 return 0;
3746 _ACEOF
3747 ac_clean_files_save=$ac_clean_files
3748 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3749 # Try to create an executable without -o first, disregard a.out.
3750 # It will help us diagnose broken compilers, and finding out an intuition
3751 # of exeext.
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3753 $as_echo_n "checking for C compiler default output file name... " >&6; }
3754 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3756 # The possible output files:
3757 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3759 ac_rmfiles=
3760 for ac_file in $ac_files
3762 case $ac_file in
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3765 esac
3766 done
3767 rm -f $ac_rmfiles
3769 if { { ac_try="$ac_link_default"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_link_default") 2>&5
3777 ac_status=$?
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; then :
3780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3781 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3782 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3783 # so that the user can short-circuit this test for compilers unknown to
3784 # Autoconf.
3785 for ac_file in $ac_files ''
3787 test -f "$ac_file" || continue
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3791 [ab].out )
3792 # We found the default executable, but exeext='' is most
3793 # certainly right.
3794 break;;
3795 *.* )
3796 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3797 then :; else
3798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 # We set ac_cv_exeext here because the later test for it is not
3801 # safe: cross compilers may not add the suffix if given an `-o'
3802 # argument, so we may need to know it at that point already.
3803 # Even if this section looks crufty: it has the advantage of
3804 # actually working.
3805 break;;
3807 break;;
3808 esac
3809 done
3810 test "$ac_cv_exeext" = no && ac_cv_exeext=
3812 else
3813 ac_file=''
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3816 $as_echo "$ac_file" >&6; }
3817 if test -z "$ac_file"; then :
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 { as_fn_set_status 77
3824 as_fn_error "C compiler cannot create executables
3825 See \`config.log' for more details." "$LINENO" 5; }; }
3827 ac_exeext=$ac_cv_exeext
3829 # Check that the compiler produces executables we can run. If not, either
3830 # the compiler is broken, or we cross compile.
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3832 $as_echo_n "checking whether the C compiler works... " >&6; }
3833 # If not cross compiling, check that we can run a simple program.
3834 if test "$cross_compiling" != yes; then
3835 if { ac_try='./$ac_file'
3836 { { case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_try") 2>&5
3843 ac_status=$?
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }; }; then
3846 cross_compiling=no
3847 else
3848 if test "$cross_compiling" = maybe; then
3849 cross_compiling=yes
3850 else
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error "cannot run C compiled programs.
3854 If you meant to cross compile, use \`--host'.
3855 See \`config.log' for more details." "$LINENO" 5; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3860 $as_echo "yes" >&6; }
3862 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3863 ac_clean_files=$ac_clean_files_save
3864 # Check that the compiler produces executables we can run. If not, either
3865 # the compiler is broken, or we cross compile.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3867 $as_echo_n "checking whether we are cross compiling... " >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3869 $as_echo "$cross_compiling" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3872 $as_echo_n "checking for suffix of executables... " >&6; }
3873 if { { ac_try="$ac_link"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3885 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3886 # work properly (i.e., refer to `conftest.exe'), while it won't with
3887 # `rm'.
3888 for ac_file in conftest.exe conftest conftest.*; do
3889 test -f "$ac_file" || continue
3890 case $ac_file in
3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3893 break;;
3894 * ) break;;
3895 esac
3896 done
3897 else
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error "cannot compute suffix of executables: cannot compile and link
3901 See \`config.log' for more details." "$LINENO" 5; }
3903 rm -f conftest$ac_cv_exeext
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3905 $as_echo "$ac_cv_exeext" >&6; }
3907 rm -f conftest.$ac_ext
3908 EXEEXT=$ac_cv_exeext
3909 ac_exeext=$EXEEXT
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3911 $as_echo_n "checking for suffix of object files... " >&6; }
3912 if test "${ac_cv_objext+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3919 main ()
3923 return 0;
3925 _ACEOF
3926 rm -f conftest.o conftest.obj
3927 if { { ac_try="$ac_compile"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_compile") 2>&5
3935 ac_status=$?
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; then :
3938 for ac_file in conftest.o conftest.obj conftest.*; do
3939 test -f "$ac_file" || continue;
3940 case $ac_file in
3941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3943 break;;
3944 esac
3945 done
3946 else
3947 $as_echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error "cannot compute suffix of object files: cannot compile
3953 See \`config.log' for more details." "$LINENO" 5; }
3955 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3958 $as_echo "$ac_cv_objext" >&6; }
3959 OBJEXT=$ac_cv_objext
3960 ac_objext=$OBJEXT
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3963 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3970 main ()
3972 #ifndef __GNUC__
3973 choke me
3974 #endif
3977 return 0;
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_compiler_gnu=yes
3982 else
3983 ac_compiler_gnu=no
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3990 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3991 if test $ac_compiler_gnu = yes; then
3992 GCC=yes
3993 else
3994 GCC=
3996 ac_test_CFLAGS=${CFLAGS+set}
3997 ac_save_CFLAGS=$CFLAGS
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3999 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4000 if test "${ac_cv_prog_cc_g+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_save_c_werror_flag=$ac_c_werror_flag
4004 ac_c_werror_flag=yes
4005 ac_cv_prog_cc_g=no
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_g=yes
4020 else
4021 CFLAGS=""
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"; then :
4035 else
4036 ac_c_werror_flag=$ac_save_c_werror_flag
4037 CFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_g=yes
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4060 $as_echo "$ac_cv_prog_cc_g" >&6; }
4061 if test "$ac_test_CFLAGS" = set; then
4062 CFLAGS=$ac_save_CFLAGS
4063 elif test $ac_cv_prog_cc_g = yes; then
4064 if test "$GCC" = yes; then
4065 CFLAGS="-g -O2"
4066 else
4067 CFLAGS="-g"
4069 else
4070 if test "$GCC" = yes; then
4071 CFLAGS="-O2"
4072 else
4073 CFLAGS=
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4077 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4078 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_cv_prog_cc_c89=no
4082 ac_save_CC=$CC
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <stdarg.h>
4086 #include <stdio.h>
4087 #include <sys/types.h>
4088 #include <sys/stat.h>
4089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4090 struct buf { int x; };
4091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4092 static char *e (p, i)
4093 char **p;
4094 int i;
4096 return p[i];
4098 static char *f (char * (*g) (char **, int), char **p, ...)
4100 char *s;
4101 va_list v;
4102 va_start (v,p);
4103 s = g (p, va_arg (v,int));
4104 va_end (v);
4105 return s;
4108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4109 function prototypes and stuff, but not '\xHH' hex character constants.
4110 These don't provoke an error unfortunately, instead are silently treated
4111 as 'x'. The following induces an error, until -std is added to get
4112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4113 array size at least. It's necessary to write '\x00'==0 to get something
4114 that's true only with -std. */
4115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4118 inside strings and character constants. */
4119 #define FOO(x) 'x'
4120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122 int test (int i, double x);
4123 struct s1 {int (*f) (int a);};
4124 struct s2 {int (*f) (double a);};
4125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4126 int argc;
4127 char **argv;
4129 main ()
4131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 return 0;
4135 _ACEOF
4136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 CC="$ac_save_CC $ac_arg"
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_cv_prog_cc_c89=$ac_arg
4143 rm -f core conftest.err conftest.$ac_objext
4144 test "x$ac_cv_prog_cc_c89" != "xno" && break
4145 done
4146 rm -f conftest.$ac_ext
4147 CC=$ac_save_CC
4150 # AC_CACHE_VAL
4151 case "x$ac_cv_prog_cc_c89" in
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4154 $as_echo "none needed" >&6; } ;;
4155 xno)
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4157 $as_echo "unsupported" >&6; } ;;
4159 CC="$CC $ac_cv_prog_cc_c89"
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4162 esac
4163 if test "x$ac_cv_prog_cc_c89" != xno; then :
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 DEPDIR="${am__leading_dot}deps"
4174 ac_config_commands="$ac_config_commands depfiles"
4177 am_make=${MAKE-make}
4178 cat > confinc << 'END'
4179 am__doit:
4180 @echo this is the am__doit target
4181 .PHONY: am__doit
4183 # If we don't find an include directive, just comment out the code.
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4185 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4186 am__include="#"
4187 am__quote=
4188 _am_result=none
4189 # First try GNU make style include.
4190 echo "include confinc" > confmf
4191 # Ignore all kinds of additional output from `make'.
4192 case `$am_make -s -f confmf 2> /dev/null` in #(
4193 *the\ am__doit\ target*)
4194 am__include=include
4195 am__quote=
4196 _am_result=GNU
4198 esac
4199 # Now try BSD make style include.
4200 if test "$am__include" = "#"; then
4201 echo '.include "confinc"' > confmf
4202 case `$am_make -s -f confmf 2> /dev/null` in #(
4203 *the\ am__doit\ target*)
4204 am__include=.include
4205 am__quote="\""
4206 _am_result=BSD
4208 esac
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4213 $as_echo "$_am_result" >&6; }
4214 rm -f confinc confmf
4216 # Check whether --enable-dependency-tracking was given.
4217 if test "${enable_dependency_tracking+set}" = set; then :
4218 enableval=$enable_dependency_tracking;
4221 if test "x$enable_dependency_tracking" != xno; then
4222 am_depcomp="$ac_aux_dir/depcomp"
4223 AMDEPBACKSLASH='\'
4224 am__nodep='_no'
4226 if test "x$enable_dependency_tracking" != xno; then
4227 AMDEP_TRUE=
4228 AMDEP_FALSE='#'
4229 else
4230 AMDEP_TRUE='#'
4231 AMDEP_FALSE=
4236 depcc="$CC" am_compiler_list=
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4239 $as_echo_n "checking dependency style of $depcc... " >&6; }
4240 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4244 # We make a subdir and do the tests there. Otherwise we can end up
4245 # making bogus files that we don't know about and never remove. For
4246 # instance it was reported that on HP-UX the gcc test will end up
4247 # making a dummy file named `D' -- because `-MD' means `put the output
4248 # in D'.
4249 rm -rf conftest.dir
4250 mkdir conftest.dir
4251 # Copy depcomp to subdir because otherwise we won't find it if we're
4252 # using a relative directory.
4253 cp "$am_depcomp" conftest.dir
4254 cd conftest.dir
4255 # We will build objects and dependencies in a subdirectory because
4256 # it helps to detect inapplicable dependency modes. For instance
4257 # both Tru64's cc and ICC support -MD to output dependencies as a
4258 # side effect of compilation, but ICC will put the dependencies in
4259 # the current directory while Tru64 will put them in the object
4260 # directory.
4261 mkdir sub
4263 am_cv_CC_dependencies_compiler_type=none
4264 if test "$am_compiler_list" = ""; then
4265 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4267 am__universal=false
4268 case " $depcc " in #(
4269 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4270 esac
4272 for depmode in $am_compiler_list; do
4273 # Setup a source with many dependencies, because some compilers
4274 # like to wrap large dependency lists on column 80 (with \), and
4275 # we should not choose a depcomp mode which is confused by this.
4277 # We need to recreate these files for each test, as the compiler may
4278 # overwrite some of them when testing with obscure command lines.
4279 # This happens at least with the AIX C compiler.
4280 : > sub/conftest.c
4281 for i in 1 2 3 4 5 6; do
4282 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4283 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4284 # Solaris 8's {/usr,}/bin/sh.
4285 touch sub/conftst$i.h
4286 done
4287 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4289 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4290 # mode. It turns out that the SunPro C++ compiler does not properly
4291 # handle `-M -o', and we need to detect this. Also, some Intel
4292 # versions had trouble with output in subdirs
4293 am__obj=sub/conftest.${OBJEXT-o}
4294 am__minus_obj="-o $am__obj"
4295 case $depmode in
4296 gcc)
4297 # This depmode causes a compiler race in universal mode.
4298 test "$am__universal" = false || continue
4300 nosideeffect)
4301 # after this tag, mechanisms are not by side-effect, so they'll
4302 # only be used when explicitly requested
4303 if test "x$enable_dependency_tracking" = xyes; then
4304 continue
4305 else
4306 break
4309 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4310 # This compiler won't grok `-c -o', but also, the minuso test has
4311 # not run yet. These depmodes are late enough in the game, and
4312 # so weak that their functioning should not be impacted.
4313 am__obj=conftest.${OBJEXT-o}
4314 am__minus_obj=
4316 none) break ;;
4317 esac
4318 if depmode=$depmode \
4319 source=sub/conftest.c object=$am__obj \
4320 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4321 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4322 >/dev/null 2>conftest.err &&
4323 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4324 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4325 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4326 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4327 # icc doesn't choke on unknown options, it will just issue warnings
4328 # or remarks (even with -Werror). So we grep stderr for any message
4329 # that says an option was ignored or not supported.
4330 # When given -MP, icc 7.0 and 7.1 complain thusly:
4331 # icc: Command line warning: ignoring option '-M'; no argument required
4332 # The diagnosis changed in icc 8.0:
4333 # icc: Command line remark: option '-MP' not supported
4334 if (grep 'ignoring option' conftest.err ||
4335 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4336 am_cv_CC_dependencies_compiler_type=$depmode
4337 break
4340 done
4342 cd ..
4343 rm -rf conftest.dir
4344 else
4345 am_cv_CC_dependencies_compiler_type=none
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4350 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4351 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4354 test "x$enable_dependency_tracking" != xno \
4355 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4356 am__fastdepCC_TRUE=
4357 am__fastdepCC_FALSE='#'
4358 else
4359 am__fastdepCC_TRUE='#'
4360 am__fastdepCC_FALSE=
4364 ac_ext=cpp
4365 ac_cpp='$CXXCPP $CPPFLAGS'
4366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4369 if test -z "$CXX"; then
4370 if test -n "$CCC"; then
4371 CXX=$CCC
4372 else
4373 if test -n "$ac_tool_prefix"; then
4374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_prog_CXX+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 if test -n "$CXX"; then
4384 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4397 done
4398 done
4399 IFS=$as_save_IFS
4403 CXX=$ac_cv_prog_CXX
4404 if test -n "$CXX"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4406 $as_echo "$CXX" >&6; }
4407 else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4413 test -n "$CXX" && break
4414 done
4416 if test -z "$CXX"; then
4417 ac_ct_CXX=$CXX
4418 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4420 # Extract the first word of "$ac_prog", so it can be a program name with args.
4421 set dummy $ac_prog; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if test -n "$ac_ct_CXX"; then
4428 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_ac_ct_CXX="$ac_prog"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4448 if test -n "$ac_ct_CXX"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4450 $as_echo "$ac_ct_CXX" >&6; }
4451 else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4457 test -n "$ac_ct_CXX" && break
4458 done
4460 if test "x$ac_ct_CXX" = x; then
4461 CXX="g++"
4462 else
4463 case $cross_compiling:$ac_tool_warned in
4464 yes:)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned=yes ;;
4468 esac
4469 CXX=$ac_ct_CXX
4475 # Provide some information about the compiler.
4476 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4477 set X $ac_compile
4478 ac_compiler=$2
4479 for ac_option in --version -v -V -qversion; do
4480 { { ac_try="$ac_compiler $ac_option >&5"
4481 case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 $as_echo "$ac_try_echo"; } >&5
4487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4488 ac_status=$?
4489 if test -s conftest.err; then
4490 sed '10a\
4491 ... rest of stderr output deleted ...
4492 10q' conftest.err >conftest.er1
4493 cat conftest.er1 >&5
4494 rm -f conftest.er1 conftest.err
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }
4498 done
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4501 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4502 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4509 main ()
4511 #ifndef __GNUC__
4512 choke me
4513 #endif
4516 return 0;
4518 _ACEOF
4519 if ac_fn_cxx_try_compile "$LINENO"; then :
4520 ac_compiler_gnu=yes
4521 else
4522 ac_compiler_gnu=no
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4529 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4530 if test $ac_compiler_gnu = yes; then
4531 GXX=yes
4532 else
4533 GXX=
4535 ac_test_CXXFLAGS=${CXXFLAGS+set}
4536 ac_save_CXXFLAGS=$CXXFLAGS
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4538 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4539 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4543 ac_cxx_werror_flag=yes
4544 ac_cv_prog_cxx_g=no
4545 CXXFLAGS="-g"
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4550 main ()
4554 return 0;
4556 _ACEOF
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4558 ac_cv_prog_cxx_g=yes
4559 else
4560 CXXFLAGS=""
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4565 main ()
4569 return 0;
4571 _ACEOF
4572 if ac_fn_cxx_try_compile "$LINENO"; then :
4574 else
4575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4576 CXXFLAGS="-g"
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4581 main ()
4585 return 0;
4587 _ACEOF
4588 if ac_fn_cxx_try_compile "$LINENO"; then :
4589 ac_cv_prog_cxx_g=yes
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4599 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4600 if test "$ac_test_CXXFLAGS" = set; then
4601 CXXFLAGS=$ac_save_CXXFLAGS
4602 elif test $ac_cv_prog_cxx_g = yes; then
4603 if test "$GXX" = yes; then
4604 CXXFLAGS="-g -O2"
4605 else
4606 CXXFLAGS="-g"
4608 else
4609 if test "$GXX" = yes; then
4610 CXXFLAGS="-O2"
4611 else
4612 CXXFLAGS=
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 depcc="$CXX" am_compiler_list=
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4624 $as_echo_n "checking dependency style of $depcc... " >&6; }
4625 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4629 # We make a subdir and do the tests there. Otherwise we can end up
4630 # making bogus files that we don't know about and never remove. For
4631 # instance it was reported that on HP-UX the gcc test will end up
4632 # making a dummy file named `D' -- because `-MD' means `put the output
4633 # in D'.
4634 rm -rf conftest.dir
4635 mkdir conftest.dir
4636 # Copy depcomp to subdir because otherwise we won't find it if we're
4637 # using a relative directory.
4638 cp "$am_depcomp" conftest.dir
4639 cd conftest.dir
4640 # We will build objects and dependencies in a subdirectory because
4641 # it helps to detect inapplicable dependency modes. For instance
4642 # both Tru64's cc and ICC support -MD to output dependencies as a
4643 # side effect of compilation, but ICC will put the dependencies in
4644 # the current directory while Tru64 will put them in the object
4645 # directory.
4646 mkdir sub
4648 am_cv_CXX_dependencies_compiler_type=none
4649 if test "$am_compiler_list" = ""; then
4650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652 am__universal=false
4653 case " $depcc " in #(
4654 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4655 esac
4657 for depmode in $am_compiler_list; do
4658 # Setup a source with many dependencies, because some compilers
4659 # like to wrap large dependency lists on column 80 (with \), and
4660 # we should not choose a depcomp mode which is confused by this.
4662 # We need to recreate these files for each test, as the compiler may
4663 # overwrite some of them when testing with obscure command lines.
4664 # This happens at least with the AIX C compiler.
4665 : > sub/conftest.c
4666 for i in 1 2 3 4 5 6; do
4667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4669 # Solaris 8's {/usr,}/bin/sh.
4670 touch sub/conftst$i.h
4671 done
4672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4675 # mode. It turns out that the SunPro C++ compiler does not properly
4676 # handle `-M -o', and we need to detect this. Also, some Intel
4677 # versions had trouble with output in subdirs
4678 am__obj=sub/conftest.${OBJEXT-o}
4679 am__minus_obj="-o $am__obj"
4680 case $depmode in
4681 gcc)
4682 # This depmode causes a compiler race in universal mode.
4683 test "$am__universal" = false || continue
4685 nosideeffect)
4686 # after this tag, mechanisms are not by side-effect, so they'll
4687 # only be used when explicitly requested
4688 if test "x$enable_dependency_tracking" = xyes; then
4689 continue
4690 else
4691 break
4694 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4695 # This compiler won't grok `-c -o', but also, the minuso test has
4696 # not run yet. These depmodes are late enough in the game, and
4697 # so weak that their functioning should not be impacted.
4698 am__obj=conftest.${OBJEXT-o}
4699 am__minus_obj=
4701 none) break ;;
4702 esac
4703 if depmode=$depmode \
4704 source=sub/conftest.c object=$am__obj \
4705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4707 >/dev/null 2>conftest.err &&
4708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4712 # icc doesn't choke on unknown options, it will just issue warnings
4713 # or remarks (even with -Werror). So we grep stderr for any message
4714 # that says an option was ignored or not supported.
4715 # When given -MP, icc 7.0 and 7.1 complain thusly:
4716 # icc: Command line warning: ignoring option '-M'; no argument required
4717 # The diagnosis changed in icc 8.0:
4718 # icc: Command line remark: option '-MP' not supported
4719 if (grep 'ignoring option' conftest.err ||
4720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4721 am_cv_CXX_dependencies_compiler_type=$depmode
4722 break
4725 done
4727 cd ..
4728 rm -rf conftest.dir
4729 else
4730 am_cv_CXX_dependencies_compiler_type=none
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4735 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4736 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4739 test "x$enable_dependency_tracking" != xno \
4740 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4741 am__fastdepCXX_TRUE=
4742 am__fastdepCXX_FALSE='#'
4743 else
4744 am__fastdepCXX_TRUE='#'
4745 am__fastdepCXX_FALSE=
4749 # By default we simply use the C compiler to build assembly code.
4751 test "${CCAS+set}" = set || CCAS=$CC
4752 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4756 depcc="$CCAS" am_compiler_list=
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4759 $as_echo_n "checking dependency style of $depcc... " >&6; }
4760 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4764 # We make a subdir and do the tests there. Otherwise we can end up
4765 # making bogus files that we don't know about and never remove. For
4766 # instance it was reported that on HP-UX the gcc test will end up
4767 # making a dummy file named `D' -- because `-MD' means `put the output
4768 # in D'.
4769 rm -rf conftest.dir
4770 mkdir conftest.dir
4771 # Copy depcomp to subdir because otherwise we won't find it if we're
4772 # using a relative directory.
4773 cp "$am_depcomp" conftest.dir
4774 cd conftest.dir
4775 # We will build objects and dependencies in a subdirectory because
4776 # it helps to detect inapplicable dependency modes. For instance
4777 # both Tru64's cc and ICC support -MD to output dependencies as a
4778 # side effect of compilation, but ICC will put the dependencies in
4779 # the current directory while Tru64 will put them in the object
4780 # directory.
4781 mkdir sub
4783 am_cv_CCAS_dependencies_compiler_type=none
4784 if test "$am_compiler_list" = ""; then
4785 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787 am__universal=false
4790 for depmode in $am_compiler_list; do
4791 # Setup a source with many dependencies, because some compilers
4792 # like to wrap large dependency lists on column 80 (with \), and
4793 # we should not choose a depcomp mode which is confused by this.
4795 # We need to recreate these files for each test, as the compiler may
4796 # overwrite some of them when testing with obscure command lines.
4797 # This happens at least with the AIX C compiler.
4798 : > sub/conftest.c
4799 for i in 1 2 3 4 5 6; do
4800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4801 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4802 # Solaris 8's {/usr,}/bin/sh.
4803 touch sub/conftst$i.h
4804 done
4805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4807 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4808 # mode. It turns out that the SunPro C++ compiler does not properly
4809 # handle `-M -o', and we need to detect this. Also, some Intel
4810 # versions had trouble with output in subdirs
4811 am__obj=sub/conftest.${OBJEXT-o}
4812 am__minus_obj="-o $am__obj"
4813 case $depmode in
4814 gcc)
4815 # This depmode causes a compiler race in universal mode.
4816 test "$am__universal" = false || continue
4818 nosideeffect)
4819 # after this tag, mechanisms are not by side-effect, so they'll
4820 # only be used when explicitly requested
4821 if test "x$enable_dependency_tracking" = xyes; then
4822 continue
4823 else
4824 break
4827 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4828 # This compiler won't grok `-c -o', but also, the minuso test has
4829 # not run yet. These depmodes are late enough in the game, and
4830 # so weak that their functioning should not be impacted.
4831 am__obj=conftest.${OBJEXT-o}
4832 am__minus_obj=
4834 none) break ;;
4835 esac
4836 if depmode=$depmode \
4837 source=sub/conftest.c object=$am__obj \
4838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4839 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4840 >/dev/null 2>conftest.err &&
4841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845 # icc doesn't choke on unknown options, it will just issue warnings
4846 # or remarks (even with -Werror). So we grep stderr for any message
4847 # that says an option was ignored or not supported.
4848 # When given -MP, icc 7.0 and 7.1 complain thusly:
4849 # icc: Command line warning: ignoring option '-M'; no argument required
4850 # The diagnosis changed in icc 8.0:
4851 # icc: Command line remark: option '-MP' not supported
4852 if (grep 'ignoring option' conftest.err ||
4853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854 am_cv_CCAS_dependencies_compiler_type=$depmode
4855 break
4858 done
4860 cd ..
4861 rm -rf conftest.dir
4862 else
4863 am_cv_CCAS_dependencies_compiler_type=none
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4868 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4869 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4872 test "x$enable_dependency_tracking" != xno \
4873 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4874 am__fastdepCCAS_TRUE=
4875 am__fastdepCCAS_FALSE='#'
4876 else
4877 am__fastdepCCAS_TRUE='#'
4878 am__fastdepCCAS_FALSE=
4886 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4887 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4888 # in both places for now and restore CFLAGS at the end of config.
4889 save_CFLAGS="$CFLAGS"
4891 # Find other programs we need.
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}ar; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_AR+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$AR"; then
4901 ac_cv_prog_AR="$AR" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_AR="${ac_tool_prefix}ar"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 AR=$ac_cv_prog_AR
4921 if test -n "$AR"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4923 $as_echo "$AR" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4931 if test -z "$ac_cv_prog_AR"; then
4932 ac_ct_AR=$AR
4933 # Extract the first word of "ar", so it can be a program name with args.
4934 set dummy ar; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$ac_ct_AR"; then
4941 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_ac_ct_AR="ar"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4961 if test -n "$ac_ct_AR"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4963 $as_echo "$ac_ct_AR" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4969 if test "x$ac_ct_AR" = x; then
4970 AR=""
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978 AR=$ac_ct_AR
4980 else
4981 AR="$ac_cv_prog_AR"
4984 if test -n "$ac_tool_prefix"; then
4985 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4986 set dummy ${ac_tool_prefix}nm; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_NM+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$NM"; then
4993 ac_cv_prog_NM="$NM" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_NM="${ac_tool_prefix}nm"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 NM=$ac_cv_prog_NM
5013 if test -n "$NM"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5015 $as_echo "$NM" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5023 if test -z "$ac_cv_prog_NM"; then
5024 ac_ct_NM=$NM
5025 # Extract the first word of "nm", so it can be a program name with args.
5026 set dummy nm; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -n "$ac_ct_NM"; then
5033 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_ac_ct_NM="nm"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5046 done
5047 done
5048 IFS=$as_save_IFS
5052 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5053 if test -n "$ac_ct_NM"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5055 $as_echo "$ac_ct_NM" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5061 if test "x$ac_ct_NM" = x; then
5062 NM=""
5063 else
5064 case $cross_compiling:$ac_tool_warned in
5065 yes:)
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068 ac_tool_warned=yes ;;
5069 esac
5070 NM=$ac_ct_NM
5072 else
5073 NM="$ac_cv_prog_NM"
5076 if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$RANLIB"; then
5085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5100 IFS=$as_save_IFS
5104 RANLIB=$ac_cv_prog_RANLIB
5105 if test -n "$RANLIB"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5107 $as_echo "$RANLIB" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5115 if test -z "$ac_cv_prog_RANLIB"; then
5116 ac_ct_RANLIB=$RANLIB
5117 # Extract the first word of "ranlib", so it can be a program name with args.
5118 set dummy ranlib; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$ac_ct_RANLIB"; then
5125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_ac_ct_RANLIB="ranlib"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5140 IFS=$as_save_IFS
5144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5145 if test -n "$ac_ct_RANLIB"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5147 $as_echo "$ac_ct_RANLIB" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5153 if test "x$ac_ct_RANLIB" = x; then
5154 RANLIB="ranlib-not-found-in-path-error"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162 RANLIB=$ac_ct_RANLIB
5164 else
5165 RANLIB="$ac_cv_prog_RANLIB"
5168 # Extract the first word of "perl", so it can be a program name with args.
5169 set dummy perl; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_path_PERL+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 case $PERL in
5176 [\\/]* | ?:[\\/]*)
5177 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5193 IFS=$as_save_IFS
5195 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5197 esac
5199 PERL=$ac_cv_path_PERL
5200 if test -n "$PERL"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5202 $as_echo "$PERL" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5211 set x ${MAKE-make}
5212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 cat >conftest.make <<\_ACEOF
5217 SHELL = /bin/sh
5218 all:
5219 @echo '@@@%%%=$(MAKE)=@@@%%%'
5220 _ACEOF
5221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5223 *@@@%%%=?*=@@@%%%*)
5224 eval ac_cv_prog_make_${ac_make}_set=yes;;
5226 eval ac_cv_prog_make_${ac_make}_set=no;;
5227 esac
5228 rm -f conftest.make
5230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232 $as_echo "yes" >&6; }
5233 SET_MAKE=
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 SET_MAKE="MAKE=${MAKE-make}"
5242 # See if makeinfo has been installed and is modern enough
5243 # that we can use it.
5245 # Extract the first word of "makeinfo", so it can be a program name with args.
5246 set dummy makeinfo; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$MAKEINFO"; then
5253 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_MAKEINFO="makeinfo"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 MAKEINFO=$ac_cv_prog_MAKEINFO
5273 if test -n "$MAKEINFO"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5275 $as_echo "$MAKEINFO" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 if test -n "$MAKEINFO"; then
5283 # Found it, now check the version.
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5285 $as_echo_n "checking for modern makeinfo... " >&6; }
5286 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5290 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5292 case $ac_prog_version in
5293 '') gcc_cv_prog_makeinfo_modern=no;;
5294 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5295 *) gcc_cv_prog_makeinfo_modern=no;;
5296 esac
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5300 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5301 else
5302 gcc_cv_prog_makeinfo_modern=no
5304 if test $gcc_cv_prog_makeinfo_modern = no; then
5305 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5308 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5309 BUILD_INFO_TRUE=
5310 BUILD_INFO_FALSE='#'
5311 else
5312 BUILD_INFO_TRUE='#'
5313 BUILD_INFO_FALSE=
5318 # Configure libtool
5319 case `pwd` in
5320 *\ * | *\ *)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5322 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5323 esac
5327 macro_version='2.2.7a'
5328 macro_revision='1.3134'
5342 ltmain="$ac_aux_dir/ltmain.sh"
5344 # Backslashify metacharacters that are still active within
5345 # double-quoted strings.
5346 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5348 # Same as above, but do not quote variable references.
5349 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5351 # Sed substitution to delay expansion of an escaped shell variable in a
5352 # double_quote_subst'ed string.
5353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5355 # Sed substitution to delay expansion of an escaped single quote.
5356 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5358 # Sed substitution to avoid accidental globbing in evaled expressions
5359 no_glob_subst='s/\*/\\\*/g'
5361 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5362 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5366 $as_echo_n "checking how to print strings... " >&6; }
5367 # Test print first, because it will be a builtin if present.
5368 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5369 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5370 ECHO='print -r --'
5371 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5372 ECHO='printf %s\n'
5373 else
5374 # Use this function as a fallback that always works.
5375 func_fallback_echo ()
5377 eval 'cat <<_LTECHO_EOF
5379 _LTECHO_EOF'
5381 ECHO='func_fallback_echo'
5384 # func_echo_all arg...
5385 # Invoke $ECHO with all args, space-separated.
5386 func_echo_all ()
5388 $ECHO ""
5391 case "$ECHO" in
5392 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5393 $as_echo "printf" >&6; } ;;
5394 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5395 $as_echo "print -r" >&6; } ;;
5396 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5397 $as_echo "cat" >&6; } ;;
5398 esac
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5414 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5415 if test "${ac_cv_path_SED+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5419 for ac_i in 1 2 3 4 5 6 7; do
5420 ac_script="$ac_script$as_nl$ac_script"
5421 done
5422 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5423 { ac_script=; unset ac_script;}
5424 if test -z "$SED"; then
5425 ac_path_SED_found=false
5426 # Loop through the user's path and test for each of PROGNAME-LIST
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_prog in sed gsed; do
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5435 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5436 # Check for GNU ac_path_SED and select it if it is found.
5437 # Check for GNU $ac_path_SED
5438 case `"$ac_path_SED" --version 2>&1` in
5439 *GNU*)
5440 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5442 ac_count=0
5443 $as_echo_n 0123456789 >"conftest.in"
5444 while :
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 $as_echo '' >> "conftest.nl"
5450 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452 as_fn_arith $ac_count + 1 && ac_count=$as_val
5453 if test $ac_count -gt ${ac_path_SED_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_SED="$ac_path_SED"
5456 ac_path_SED_max=$ac_count
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5460 done
5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462 esac
5464 $ac_path_SED_found && break 3
5465 done
5466 done
5467 done
5468 IFS=$as_save_IFS
5469 if test -z "$ac_cv_path_SED"; then
5470 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5472 else
5473 ac_cv_path_SED=$SED
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5478 $as_echo "$ac_cv_path_SED" >&6; }
5479 SED="$ac_cv_path_SED"
5480 rm -f conftest.sed
5482 test -z "$SED" && SED=sed
5483 Xsed="$SED -e 1s/^X//"
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5497 if test "${ac_cv_path_GREP+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -z "$GREP"; then
5501 ac_path_GREP_found=false
5502 # Loop through the user's path and test for each of PROGNAME-LIST
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_prog in grep ggrep; do
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5511 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5512 # Check for GNU ac_path_GREP and select it if it is found.
5513 # Check for GNU $ac_path_GREP
5514 case `"$ac_path_GREP" --version 2>&1` in
5515 *GNU*)
5516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5518 ac_count=0
5519 $as_echo_n 0123456789 >"conftest.in"
5520 while :
5522 cat "conftest.in" "conftest.in" >"conftest.tmp"
5523 mv "conftest.tmp" "conftest.in"
5524 cp "conftest.in" "conftest.nl"
5525 $as_echo 'GREP' >> "conftest.nl"
5526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5528 as_fn_arith $ac_count + 1 && ac_count=$as_val
5529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5530 # Best one so far, save it but keep looking for a better one
5531 ac_cv_path_GREP="$ac_path_GREP"
5532 ac_path_GREP_max=$ac_count
5534 # 10*(2^10) chars as input seems more than enough
5535 test $ac_count -gt 10 && break
5536 done
5537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5538 esac
5540 $ac_path_GREP_found && break 3
5541 done
5542 done
5543 done
5544 IFS=$as_save_IFS
5545 if test -z "$ac_cv_path_GREP"; then
5546 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5548 else
5549 ac_cv_path_GREP=$GREP
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5554 $as_echo "$ac_cv_path_GREP" >&6; }
5555 GREP="$ac_cv_path_GREP"
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5559 $as_echo_n "checking for egrep... " >&6; }
5560 if test "${ac_cv_path_EGREP+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5564 then ac_cv_path_EGREP="$GREP -E"
5565 else
5566 if test -z "$EGREP"; then
5567 ac_path_EGREP_found=false
5568 # Loop through the user's path and test for each of PROGNAME-LIST
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_prog in egrep; do
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5577 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5578 # Check for GNU ac_path_EGREP and select it if it is found.
5579 # Check for GNU $ac_path_EGREP
5580 case `"$ac_path_EGREP" --version 2>&1` in
5581 *GNU*)
5582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5584 ac_count=0
5585 $as_echo_n 0123456789 >"conftest.in"
5586 while :
5588 cat "conftest.in" "conftest.in" >"conftest.tmp"
5589 mv "conftest.tmp" "conftest.in"
5590 cp "conftest.in" "conftest.nl"
5591 $as_echo 'EGREP' >> "conftest.nl"
5592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5594 as_fn_arith $ac_count + 1 && ac_count=$as_val
5595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5596 # Best one so far, save it but keep looking for a better one
5597 ac_cv_path_EGREP="$ac_path_EGREP"
5598 ac_path_EGREP_max=$ac_count
5600 # 10*(2^10) chars as input seems more than enough
5601 test $ac_count -gt 10 && break
5602 done
5603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5604 esac
5606 $ac_path_EGREP_found && break 3
5607 done
5608 done
5609 done
5610 IFS=$as_save_IFS
5611 if test -z "$ac_cv_path_EGREP"; then
5612 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5614 else
5615 ac_cv_path_EGREP=$EGREP
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5621 $as_echo "$ac_cv_path_EGREP" >&6; }
5622 EGREP="$ac_cv_path_EGREP"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5626 $as_echo_n "checking for fgrep... " >&6; }
5627 if test "${ac_cv_path_FGREP+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5631 then ac_cv_path_FGREP="$GREP -F"
5632 else
5633 if test -z "$FGREP"; then
5634 ac_path_FGREP_found=false
5635 # Loop through the user's path and test for each of PROGNAME-LIST
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_prog in fgrep; do
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5644 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5645 # Check for GNU ac_path_FGREP and select it if it is found.
5646 # Check for GNU $ac_path_FGREP
5647 case `"$ac_path_FGREP" --version 2>&1` in
5648 *GNU*)
5649 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5651 ac_count=0
5652 $as_echo_n 0123456789 >"conftest.in"
5653 while :
5655 cat "conftest.in" "conftest.in" >"conftest.tmp"
5656 mv "conftest.tmp" "conftest.in"
5657 cp "conftest.in" "conftest.nl"
5658 $as_echo 'FGREP' >> "conftest.nl"
5659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5661 as_fn_arith $ac_count + 1 && ac_count=$as_val
5662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5663 # Best one so far, save it but keep looking for a better one
5664 ac_cv_path_FGREP="$ac_path_FGREP"
5665 ac_path_FGREP_max=$ac_count
5667 # 10*(2^10) chars as input seems more than enough
5668 test $ac_count -gt 10 && break
5669 done
5670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5671 esac
5673 $ac_path_FGREP_found && break 3
5674 done
5675 done
5676 done
5677 IFS=$as_save_IFS
5678 if test -z "$ac_cv_path_FGREP"; then
5679 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5681 else
5682 ac_cv_path_FGREP=$FGREP
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5688 $as_echo "$ac_cv_path_FGREP" >&6; }
5689 FGREP="$ac_cv_path_FGREP"
5692 test -z "$GREP" && GREP=grep
5712 # Check whether --with-gnu-ld was given.
5713 if test "${with_gnu_ld+set}" = set; then :
5714 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5715 else
5716 with_gnu_ld=no
5719 ac_prog=ld
5720 if test "$GCC" = yes; then
5721 # Check if gcc -print-prog-name=ld gives a path.
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5723 $as_echo_n "checking for ld used by $CC... " >&6; }
5724 case $host in
5725 *-*-mingw*)
5726 # gcc leaves a trailing carriage return which upsets mingw
5727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5730 esac
5731 case $ac_prog in
5732 # Accept absolute paths.
5733 [\\/]* | ?:[\\/]*)
5734 re_direlt='/[^/][^/]*/\.\./'
5735 # Canonicalize the pathname of ld
5736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5739 done
5740 test -z "$LD" && LD="$ac_prog"
5743 # If it fails, then pretend we aren't using GCC.
5744 ac_prog=ld
5747 # If it is relative, then search for the first ld in PATH.
5748 with_gnu_ld=unknown
5750 esac
5751 elif test "$with_gnu_ld" = yes; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5753 $as_echo_n "checking for GNU ld... " >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5756 $as_echo_n "checking for non-GNU ld... " >&6; }
5758 if test "${lt_cv_path_LD+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if test -z "$LD"; then
5762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5763 for ac_dir in $PATH; do
5764 IFS="$lt_save_ifs"
5765 test -z "$ac_dir" && ac_dir=.
5766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5767 lt_cv_path_LD="$ac_dir/$ac_prog"
5768 # Check to see if the program is GNU ld. I'd rather use --version,
5769 # but apparently some variants of GNU ld only accept -v.
5770 # Break only if it was the GNU/non-GNU ld that we prefer.
5771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5772 *GNU* | *'with BFD'*)
5773 test "$with_gnu_ld" != no && break
5776 test "$with_gnu_ld" != yes && break
5778 esac
5780 done
5781 IFS="$lt_save_ifs"
5782 else
5783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5787 LD="$lt_cv_path_LD"
5788 if test -n "$LD"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5790 $as_echo "$LD" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5795 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5797 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5798 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5802 case `$LD -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804 lt_cv_prog_gnu_ld=yes
5807 lt_cv_prog_gnu_ld=no
5809 esac
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5812 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5813 with_gnu_ld=$lt_cv_prog_gnu_ld
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5824 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5825 if test "${lt_cv_path_NM+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$NM"; then
5829 # Let the user override the test.
5830 lt_cv_path_NM="$NM"
5831 else
5832 lt_nm_to_check="${ac_tool_prefix}nm"
5833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5834 lt_nm_to_check="$lt_nm_to_check nm"
5836 for lt_tmp_nm in $lt_nm_to_check; do
5837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5839 IFS="$lt_save_ifs"
5840 test -z "$ac_dir" && ac_dir=.
5841 tmp_nm="$ac_dir/$lt_tmp_nm"
5842 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5843 # Check to see if the nm accepts a BSD-compat flag.
5844 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5845 # nm: unknown option "B" ignored
5846 # Tru64's nm complains that /dev/null is an invalid object file
5847 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5848 */dev/null* | *'Invalid file or object type'*)
5849 lt_cv_path_NM="$tmp_nm -B"
5850 break
5853 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5854 */dev/null*)
5855 lt_cv_path_NM="$tmp_nm -p"
5856 break
5859 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5860 continue # so that we can try to find one that supports BSD flags
5862 esac
5864 esac
5866 done
5867 IFS="$lt_save_ifs"
5868 done
5869 : ${lt_cv_path_NM=no}
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5873 $as_echo "$lt_cv_path_NM" >&6; }
5874 if test "$lt_cv_path_NM" != "no"; then
5875 NM="$lt_cv_path_NM"
5876 else
5877 # Didn't find any BSD compatible name lister, look for dumpbin.
5878 if test -n "$DUMPBIN"; then :
5879 # Let the user override the test.
5880 else
5881 if test -n "$ac_tool_prefix"; then
5882 for ac_prog in dumpbin "link -dump"
5884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 if test -n "$DUMPBIN"; then
5892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5905 done
5906 done
5907 IFS=$as_save_IFS
5911 DUMPBIN=$ac_cv_prog_DUMPBIN
5912 if test -n "$DUMPBIN"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5914 $as_echo "$DUMPBIN" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5921 test -n "$DUMPBIN" && break
5922 done
5924 if test -z "$DUMPBIN"; then
5925 ac_ct_DUMPBIN=$DUMPBIN
5926 for ac_prog in dumpbin "link -dump"
5928 # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 set dummy $ac_prog; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if test -n "$ac_ct_DUMPBIN"; then
5936 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 break 2
5949 done
5950 done
5951 IFS=$as_save_IFS
5955 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5956 if test -n "$ac_ct_DUMPBIN"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5958 $as_echo "$ac_ct_DUMPBIN" >&6; }
5959 else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5965 test -n "$ac_ct_DUMPBIN" && break
5966 done
5968 if test "x$ac_ct_DUMPBIN" = x; then
5969 DUMPBIN=":"
5970 else
5971 case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977 DUMPBIN=$ac_ct_DUMPBIN
5981 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5982 *COFF*)
5983 DUMPBIN="$DUMPBIN -symbols"
5986 DUMPBIN=:
5988 esac
5991 if test "$DUMPBIN" != ":"; then
5992 NM="$DUMPBIN"
5995 test -z "$NM" && NM=nm
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6003 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6004 if test "${lt_cv_nm_interface+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 lt_cv_nm_interface="BSD nm"
6008 echo "int some_variable = 0;" > conftest.$ac_ext
6009 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6010 (eval "$ac_compile" 2>conftest.err)
6011 cat conftest.err >&5
6012 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6013 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6014 cat conftest.err >&5
6015 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6016 cat conftest.out >&5
6017 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6018 lt_cv_nm_interface="MS dumpbin"
6020 rm -f conftest*
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6023 $as_echo "$lt_cv_nm_interface" >&6; }
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6026 $as_echo_n "checking whether ln -s works... " >&6; }
6027 LN_S=$as_ln_s
6028 if test "$LN_S" = "ln -s"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6030 $as_echo "yes" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6033 $as_echo "no, using $LN_S" >&6; }
6036 # find the maximum length of command line arguments
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6038 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6039 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6043 teststring="ABCD"
6045 case $build_os in
6046 msdosdjgpp*)
6047 # On DJGPP, this test can blow up pretty badly due to problems in libc
6048 # (any single argument exceeding 2000 bytes causes a buffer overrun
6049 # during glob expansion). Even if it were fixed, the result of this
6050 # check would be larger than it should be.
6051 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6054 gnu*)
6055 # Under GNU Hurd, this test is not required because there is
6056 # no limit to the length of command line arguments.
6057 # Libtool will interpret -1 as no limit whatsoever
6058 lt_cv_sys_max_cmd_len=-1;
6061 cygwin* | mingw* | cegcc*)
6062 # On Win9x/ME, this test blows up -- it succeeds, but takes
6063 # about 5 minutes as the teststring grows exponentially.
6064 # Worse, since 9x/ME are not pre-emptively multitasking,
6065 # you end up with a "frozen" computer, even though with patience
6066 # the test eventually succeeds (with a max line length of 256k).
6067 # Instead, let's just punt: use the minimum linelength reported by
6068 # all of the supported platforms: 8192 (on NT/2K/XP).
6069 lt_cv_sys_max_cmd_len=8192;
6072 mint*)
6073 # On MiNT this can take a long time and run out of memory.
6074 lt_cv_sys_max_cmd_len=8192;
6077 amigaos*)
6078 # On AmigaOS with pdksh, this test takes hours, literally.
6079 # So we just punt and use a minimum line length of 8192.
6080 lt_cv_sys_max_cmd_len=8192;
6083 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6084 # This has been around since 386BSD, at least. Likely further.
6085 if test -x /sbin/sysctl; then
6086 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6087 elif test -x /usr/sbin/sysctl; then
6088 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6089 else
6090 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6092 # And add a safety zone
6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6097 interix*)
6098 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6099 lt_cv_sys_max_cmd_len=196608
6102 osf*)
6103 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6104 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6105 # nice to cause kernel panics so lets avoid the loop below.
6106 # First set a reasonable default.
6107 lt_cv_sys_max_cmd_len=16384
6109 if test -x /sbin/sysconfig; then
6110 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6111 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6112 esac
6115 sco3.2v5*)
6116 lt_cv_sys_max_cmd_len=102400
6118 sysv5* | sco5v6* | sysv4.2uw2*)
6119 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6120 if test -n "$kargmax"; then
6121 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6122 else
6123 lt_cv_sys_max_cmd_len=32768
6127 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6128 if test -n "$lt_cv_sys_max_cmd_len"; then
6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6131 else
6132 # Make teststring a little bigger before we do anything with it.
6133 # a 1K string should be a reasonable start.
6134 for i in 1 2 3 4 5 6 7 8 ; do
6135 teststring=$teststring$teststring
6136 done
6137 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6138 # If test is not a shell built-in, we'll probably end up computing a
6139 # maximum length that is only half of the actual maximum length, but
6140 # we can't tell.
6141 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6142 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6143 test $i != 17 # 1/2 MB should be enough
6145 i=`expr $i + 1`
6146 teststring=$teststring$teststring
6147 done
6148 # Only check the string length outside the loop.
6149 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6150 teststring=
6151 # Add a significant safety factor because C++ compilers can tack on
6152 # massive amounts of additional arguments before passing them to the
6153 # linker. It appears as though 1/2 is a usable value.
6154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6157 esac
6161 if test -n $lt_cv_sys_max_cmd_len ; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6163 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6166 $as_echo "none" >&6; }
6168 max_cmd_len=$lt_cv_sys_max_cmd_len
6175 : ${CP="cp -f"}
6176 : ${MV="mv -f"}
6177 : ${RM="rm -f"}
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6180 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6181 # Try some XSI features
6182 xsi_shell=no
6183 ( _lt_dummy="a/b/c"
6184 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6185 = c,a/b,, \
6186 && eval 'test $(( 1 + 1 )) -eq 2 \
6187 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6188 && xsi_shell=yes
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6190 $as_echo "$xsi_shell" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6194 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6195 lt_shell_append=no
6196 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6197 >/dev/null 2>&1 \
6198 && lt_shell_append=yes
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6200 $as_echo "$lt_shell_append" >&6; }
6203 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6204 lt_unset=unset
6205 else
6206 lt_unset=false
6213 # test EBCDIC or ASCII
6214 case `echo X|tr X '\101'` in
6215 A) # ASCII based system
6216 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6217 lt_SP2NL='tr \040 \012'
6218 lt_NL2SP='tr \015\012 \040\040'
6220 *) # EBCDIC based system
6221 lt_SP2NL='tr \100 \n'
6222 lt_NL2SP='tr \r\n \100\100'
6224 esac
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6235 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6236 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 lt_cv_ld_reload_flag='-r'
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6242 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6243 reload_flag=$lt_cv_ld_reload_flag
6244 case $reload_flag in
6245 "" | " "*) ;;
6246 *) reload_flag=" $reload_flag" ;;
6247 esac
6248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249 case $host_os in
6250 darwin*)
6251 if test "$GCC" = yes; then
6252 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6253 else
6254 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6257 esac
6267 if test -n "$ac_tool_prefix"; then
6268 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -n "$OBJDUMP"; then
6276 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6289 done
6290 done
6291 IFS=$as_save_IFS
6295 OBJDUMP=$ac_cv_prog_OBJDUMP
6296 if test -n "$OBJDUMP"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6298 $as_echo "$OBJDUMP" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6306 if test -z "$ac_cv_prog_OBJDUMP"; then
6307 ac_ct_OBJDUMP=$OBJDUMP
6308 # Extract the first word of "objdump", so it can be a program name with args.
6309 set dummy objdump; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test -n "$ac_ct_OBJDUMP"; then
6316 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6329 done
6330 done
6331 IFS=$as_save_IFS
6335 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6336 if test -n "$ac_ct_OBJDUMP"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6338 $as_echo "$ac_ct_OBJDUMP" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6344 if test "x$ac_ct_OBJDUMP" = x; then
6345 OBJDUMP="false"
6346 else
6347 case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353 OBJDUMP=$ac_ct_OBJDUMP
6355 else
6356 OBJDUMP="$ac_cv_prog_OBJDUMP"
6359 test -z "$OBJDUMP" && OBJDUMP=objdump
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6370 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6371 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 lt_cv_file_magic_cmd='$MAGIC_CMD'
6375 lt_cv_file_magic_test_file=
6376 lt_cv_deplibs_check_method='unknown'
6377 # Need to set the preceding variable on all platforms that support
6378 # interlibrary dependencies.
6379 # 'none' -- dependencies not supported.
6380 # `unknown' -- same as none, but documents that we really don't know.
6381 # 'pass_all' -- all dependencies passed with no checks.
6382 # 'test_compile' -- check by making test program.
6383 # 'file_magic [[regex]]' -- check by looking for files in library path
6384 # which responds to the $file_magic_cmd with a given extended regex.
6385 # If you have `file' or equivalent on your system and you're not sure
6386 # whether `pass_all' will *always* work, you probably want this one.
6388 case $host_os in
6389 aix[4-9]*)
6390 lt_cv_deplibs_check_method=pass_all
6393 beos*)
6394 lt_cv_deplibs_check_method=pass_all
6397 bsdi[45]*)
6398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6399 lt_cv_file_magic_cmd='/usr/bin/file -L'
6400 lt_cv_file_magic_test_file=/shlib/libc.so
6403 cygwin*)
6404 # func_win32_libid is a shell function defined in ltmain.sh
6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406 lt_cv_file_magic_cmd='func_win32_libid'
6409 mingw* | pw32*)
6410 # Base MSYS/MinGW do not provide the 'file' command needed by
6411 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6412 # unless we find 'file', for example because we are cross-compiling.
6413 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6414 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6416 lt_cv_file_magic_cmd='func_win32_libid'
6417 else
6418 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6419 lt_cv_file_magic_cmd='$OBJDUMP -f'
6423 cegcc*)
6424 # use the weaker test based on 'objdump'. See mingw*.
6425 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6429 darwin* | rhapsody*)
6430 lt_cv_deplibs_check_method=pass_all
6433 freebsd* | dragonfly*)
6434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6435 case $host_cpu in
6436 i*86 )
6437 # Not sure whether the presence of OpenBSD here was a mistake.
6438 # Let's accept both of them until this is cleared up.
6439 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6440 lt_cv_file_magic_cmd=/usr/bin/file
6441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6443 esac
6444 else
6445 lt_cv_deplibs_check_method=pass_all
6449 gnu*)
6450 lt_cv_deplibs_check_method=pass_all
6453 haiku*)
6454 lt_cv_deplibs_check_method=pass_all
6457 hpux10.20* | hpux11*)
6458 lt_cv_file_magic_cmd=/usr/bin/file
6459 case $host_cpu in
6460 ia64*)
6461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6462 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6464 hppa*64*)
6465 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]'
6466 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6470 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6472 esac
6475 interix[3-9]*)
6476 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6480 irix5* | irix6* | nonstopux*)
6481 case $LD in
6482 *-32|*"-32 ") libmagic=32-bit;;
6483 *-n32|*"-n32 ") libmagic=N32;;
6484 *-64|*"-64 ") libmagic=64-bit;;
6485 *) libmagic=never-match;;
6486 esac
6487 lt_cv_deplibs_check_method=pass_all
6490 # This must be Linux ELF.
6491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6492 lt_cv_deplibs_check_method=pass_all
6495 netbsd*)
6496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498 else
6499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6503 newos6*)
6504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6505 lt_cv_file_magic_cmd=/usr/bin/file
6506 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6509 *nto* | *qnx*)
6510 lt_cv_deplibs_check_method=pass_all
6513 openbsd*)
6514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6516 else
6517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6521 osf3* | osf4* | osf5*)
6522 lt_cv_deplibs_check_method=pass_all
6525 rdos*)
6526 lt_cv_deplibs_check_method=pass_all
6529 solaris*)
6530 lt_cv_deplibs_check_method=pass_all
6533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6534 lt_cv_deplibs_check_method=pass_all
6537 sysv4 | sysv4.3*)
6538 case $host_vendor in
6539 motorola)
6540 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]'
6541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6543 ncr)
6544 lt_cv_deplibs_check_method=pass_all
6546 sequent)
6547 lt_cv_file_magic_cmd='/bin/file'
6548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6550 sni)
6551 lt_cv_file_magic_cmd='/bin/file'
6552 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6553 lt_cv_file_magic_test_file=/lib/libc.so
6555 siemens)
6556 lt_cv_deplibs_check_method=pass_all
6559 lt_cv_deplibs_check_method=pass_all
6561 esac
6564 tpf*)
6565 lt_cv_deplibs_check_method=pass_all
6567 esac
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6571 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6572 file_magic_cmd=$lt_cv_file_magic_cmd
6573 deplibs_check_method=$lt_cv_deplibs_check_method
6574 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6587 if test -n "$ac_tool_prefix"; then
6588 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6589 set dummy ${ac_tool_prefix}ar; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_AR+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$AR"; then
6596 ac_cv_prog_AR="$AR" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_AR="${ac_tool_prefix}ar"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6615 AR=$ac_cv_prog_AR
6616 if test -n "$AR"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6618 $as_echo "$AR" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6626 if test -z "$ac_cv_prog_AR"; then
6627 ac_ct_AR=$AR
6628 # Extract the first word of "ar", so it can be a program name with args.
6629 set dummy ar; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$ac_ct_AR"; then
6636 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_ac_ct_AR="ar"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6651 IFS=$as_save_IFS
6655 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6656 if test -n "$ac_ct_AR"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6658 $as_echo "$ac_ct_AR" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6664 if test "x$ac_ct_AR" = x; then
6665 AR="false"
6666 else
6667 case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6672 esac
6673 AR=$ac_ct_AR
6675 else
6676 AR="$ac_cv_prog_AR"
6679 test -z "$AR" && AR=ar
6680 test -z "$AR_FLAGS" && AR_FLAGS=cru
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}strip; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_STRIP+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$STRIP"; then
6701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6714 done
6715 done
6716 IFS=$as_save_IFS
6720 STRIP=$ac_cv_prog_STRIP
6721 if test -n "$STRIP"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6723 $as_echo "$STRIP" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6731 if test -z "$ac_cv_prog_STRIP"; then
6732 ac_ct_STRIP=$STRIP
6733 # Extract the first word of "strip", so it can be a program name with args.
6734 set dummy strip; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$ac_ct_STRIP"; then
6741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_ac_ct_STRIP="strip"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6761 if test -n "$ac_ct_STRIP"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6763 $as_echo "$ac_ct_STRIP" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6769 if test "x$ac_ct_STRIP" = x; then
6770 STRIP=":"
6771 else
6772 case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778 STRIP=$ac_ct_STRIP
6780 else
6781 STRIP="$ac_cv_prog_STRIP"
6784 test -z "$STRIP" && STRIP=:
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$RANLIB"; then
6800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6813 done
6814 done
6815 IFS=$as_save_IFS
6819 RANLIB=$ac_cv_prog_RANLIB
6820 if test -n "$RANLIB"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6822 $as_echo "$RANLIB" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6830 if test -z "$ac_cv_prog_RANLIB"; then
6831 ac_ct_RANLIB=$RANLIB
6832 # Extract the first word of "ranlib", so it can be a program name with args.
6833 set dummy ranlib; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$ac_ct_RANLIB"; then
6840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_ac_ct_RANLIB="ranlib"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6853 done
6854 done
6855 IFS=$as_save_IFS
6859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6860 if test -n "$ac_ct_RANLIB"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6862 $as_echo "$ac_ct_RANLIB" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6868 if test "x$ac_ct_RANLIB" = x; then
6869 RANLIB=":"
6870 else
6871 case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877 RANLIB=$ac_ct_RANLIB
6879 else
6880 RANLIB="$ac_cv_prog_RANLIB"
6883 test -z "$RANLIB" && RANLIB=:
6890 # Determine commands to create old-style static archives.
6891 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6892 old_postinstall_cmds='chmod 644 $oldlib'
6893 old_postuninstall_cmds=
6895 if test -n "$RANLIB"; then
6896 case $host_os in
6897 openbsd*)
6898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6903 esac
6904 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6907 case $host_os in
6908 darwin*)
6909 lock_old_archive_extraction=yes ;;
6911 lock_old_archive_extraction=no ;;
6912 esac
6952 # If no C compiler was specified, use CC.
6953 LTCC=${LTCC-"$CC"}
6955 # If no C compiler flags were specified, use CFLAGS.
6956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6958 # Allow CC to be a program name with arguments.
6959 compiler=$CC
6962 # Check for command to grab the raw symbol name followed by C symbol from nm.
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6964 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6965 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6969 # These are sane defaults that work on at least a few old systems.
6970 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6972 # Character class describing NM global symbol codes.
6973 symcode='[BCDEGRST]'
6975 # Regexp to match symbols that can be accessed directly from C.
6976 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6978 # Define system-specific variables.
6979 case $host_os in
6980 aix*)
6981 symcode='[BCDT]'
6983 cygwin* | mingw* | pw32* | cegcc*)
6984 symcode='[ABCDGISTW]'
6986 hpux*)
6987 if test "$host_cpu" = ia64; then
6988 symcode='[ABCDEGRST]'
6991 irix* | nonstopux*)
6992 symcode='[BCDEGRST]'
6994 osf*)
6995 symcode='[BCDEGQRST]'
6997 solaris*)
6998 symcode='[BDRT]'
7000 sco3.2v5*)
7001 symcode='[DT]'
7003 sysv4.2uw2*)
7004 symcode='[DT]'
7006 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7007 symcode='[ABDT]'
7009 sysv4)
7010 symcode='[DFNSTU]'
7012 esac
7014 # If we're using GNU nm, then use its standard symbol codes.
7015 case `$NM -V 2>&1` in
7016 *GNU* | *'with BFD'*)
7017 symcode='[ABCDGIRSTW]' ;;
7018 esac
7020 # Transform an extracted symbol line into a proper C declaration.
7021 # Some systems (esp. on ia64) link data and code symbols differently,
7022 # so use this general approach.
7023 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7025 # Transform an extracted symbol line into symbol name and symbol address
7026 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7027 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'"
7029 # Handle CRLF in mingw tool chain
7030 opt_cr=
7031 case $build_os in
7032 mingw*)
7033 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7035 esac
7037 # Try without a prefix underscore, then with it.
7038 for ac_symprfx in "" "_"; do
7040 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7041 symxfrm="\\1 $ac_symprfx\\2 \\2"
7043 # Write the raw and C identifiers.
7044 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7045 # Fake it for dumpbin and say T for any non-static function
7046 # and D for any global variable.
7047 # Also find C++ and __fastcall symbols from MSVC++,
7048 # which start with @ or ?.
7049 lt_cv_sys_global_symbol_pipe="$AWK '"\
7050 " {last_section=section; section=\$ 3};"\
7051 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7052 " \$ 0!~/External *\|/{next};"\
7053 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7054 " {if(hide[section]) next};"\
7055 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7056 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7057 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7058 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7059 " ' prfx=^$ac_symprfx"
7060 else
7061 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7064 # Check to see that the pipe works correctly.
7065 pipe_works=no
7067 rm -f conftest*
7068 cat > conftest.$ac_ext <<_LT_EOF
7069 #ifdef __cplusplus
7070 extern "C" {
7071 #endif
7072 char nm_test_var;
7073 void nm_test_func(void);
7074 void nm_test_func(void){}
7075 #ifdef __cplusplus
7077 #endif
7078 int main(){nm_test_var='a';nm_test_func();return(0);}
7079 _LT_EOF
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082 (eval $ac_compile) 2>&5
7083 ac_status=$?
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; }; then
7086 # Now try to grab the symbols.
7087 nlist=conftest.nm
7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7089 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7090 ac_status=$?
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; } && test -s "$nlist"; then
7093 # Try sorting and uniquifying the output.
7094 if sort "$nlist" | uniq > "$nlist"T; then
7095 mv -f "$nlist"T "$nlist"
7096 else
7097 rm -f "$nlist"T
7100 # Make sure that we snagged all the symbols we need.
7101 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7102 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7103 cat <<_LT_EOF > conftest.$ac_ext
7104 #ifdef __cplusplus
7105 extern "C" {
7106 #endif
7108 _LT_EOF
7109 # Now generate the symbol file.
7110 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7112 cat <<_LT_EOF >> conftest.$ac_ext
7114 /* The mapping between symbol names and symbols. */
7115 const struct {
7116 const char *name;
7117 void *address;
7119 lt__PROGRAM__LTX_preloaded_symbols[] =
7121 { "@PROGRAM@", (void *) 0 },
7122 _LT_EOF
7123 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7124 cat <<\_LT_EOF >> conftest.$ac_ext
7125 {0, (void *) 0}
7128 /* This works around a problem in FreeBSD linker */
7129 #ifdef FREEBSD_WORKAROUND
7130 static const void *lt_preloaded_setup() {
7131 return lt__PROGRAM__LTX_preloaded_symbols;
7133 #endif
7135 #ifdef __cplusplus
7137 #endif
7138 _LT_EOF
7139 # Now try linking the two files.
7140 mv conftest.$ac_objext conftstm.$ac_objext
7141 lt_save_LIBS="$LIBS"
7142 lt_save_CFLAGS="$CFLAGS"
7143 LIBS="conftstm.$ac_objext"
7144 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7146 (eval $ac_link) 2>&5
7147 ac_status=$?
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7150 pipe_works=yes
7152 LIBS="$lt_save_LIBS"
7153 CFLAGS="$lt_save_CFLAGS"
7154 else
7155 echo "cannot find nm_test_func in $nlist" >&5
7157 else
7158 echo "cannot find nm_test_var in $nlist" >&5
7160 else
7161 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7163 else
7164 echo "$progname: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 rm -rf conftest* conftst*
7169 # Do not use the global_symbol_pipe unless it works.
7170 if test "$pipe_works" = yes; then
7171 break
7172 else
7173 lt_cv_sys_global_symbol_pipe=
7175 done
7179 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7180 lt_cv_sys_global_symbol_to_cdecl=
7182 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7184 $as_echo "failed" >&6; }
7185 else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7187 $as_echo "ok" >&6; }
7212 # Check whether --enable-libtool-lock was given.
7213 if test "${enable_libtool_lock+set}" = set; then :
7214 enableval=$enable_libtool_lock;
7217 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7219 # Some flags need to be propagated to the compiler or linker for good
7220 # libtool support.
7221 case $host in
7222 ia64-*-hpux*)
7223 # Find out which ABI we are using.
7224 echo 'int i;' > conftest.$ac_ext
7225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7226 (eval $ac_compile) 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; }; then
7230 case `/usr/bin/file conftest.$ac_objext` in
7231 *ELF-32*)
7232 HPUX_IA64_MODE="32"
7234 *ELF-64*)
7235 HPUX_IA64_MODE="64"
7237 esac
7239 rm -rf conftest*
7241 *-*-irix6*)
7242 # Find out which ABI we are using.
7243 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7246 ac_status=$?
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 if test "$lt_cv_prog_gnu_ld" = yes; then
7250 case `/usr/bin/file conftest.$ac_objext` in
7251 *32-bit*)
7252 LD="${LD-ld} -melf32bsmip"
7254 *N32*)
7255 LD="${LD-ld} -melf32bmipn32"
7257 *64-bit*)
7258 LD="${LD-ld} -melf64bmip"
7260 esac
7261 else
7262 case `/usr/bin/file conftest.$ac_objext` in
7263 *32-bit*)
7264 LD="${LD-ld} -32"
7266 *N32*)
7267 LD="${LD-ld} -n32"
7269 *64-bit*)
7270 LD="${LD-ld} -64"
7272 esac
7275 rm -rf conftest*
7278 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7279 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7280 # Find out which ABI we are using.
7281 echo 'int i;' > conftest.$ac_ext
7282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7283 (eval $ac_compile) 2>&5
7284 ac_status=$?
7285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; }; then
7287 case `/usr/bin/file conftest.o` in
7288 *32-bit*)
7289 case $host in
7290 x86_64-*kfreebsd*-gnu)
7291 LD="${LD-ld} -m elf_i386_fbsd"
7293 x86_64-*linux*)
7294 case `/usr/bin/file conftest.o` in
7295 *x86-64*)
7296 LD="${LD-ld} -m elf32_x86_64"
7299 LD="${LD-ld} -m elf_i386"
7301 esac
7303 powerpc64le-*linux*)
7304 LD="${LD-ld} -m elf32lppclinux"
7306 powerpc64-*linux*)
7307 LD="${LD-ld} -m elf32ppclinux"
7309 s390x-*linux*)
7310 LD="${LD-ld} -m elf_s390"
7312 sparc64-*linux*)
7313 LD="${LD-ld} -m elf32_sparc"
7315 esac
7317 *64-bit*)
7318 case $host in
7319 x86_64-*kfreebsd*-gnu)
7320 LD="${LD-ld} -m elf_x86_64_fbsd"
7322 x86_64-*linux*)
7323 LD="${LD-ld} -m elf_x86_64"
7325 powerpcle-*linux*)
7326 LD="${LD-ld} -m elf64lppc"
7328 powerpc-*linux*)
7329 LD="${LD-ld} -m elf64ppc"
7331 s390*-*linux*|s390*-*tpf*)
7332 LD="${LD-ld} -m elf64_s390"
7334 sparc*-*linux*)
7335 LD="${LD-ld} -m elf64_sparc"
7337 esac
7339 esac
7341 rm -rf conftest*
7344 *-*-sco3.2v5*)
7345 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7346 SAVE_CFLAGS="$CFLAGS"
7347 CFLAGS="$CFLAGS -belf"
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7349 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7350 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 ac_ext=c
7354 ac_cpp='$CPP $CPPFLAGS'
7355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7363 main ()
7367 return 0;
7369 _ACEOF
7370 if ac_fn_c_try_link "$LINENO"; then :
7371 lt_cv_cc_needs_belf=yes
7372 else
7373 lt_cv_cc_needs_belf=no
7375 rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
7377 ac_ext=c
7378 ac_cpp='$CPP $CPPFLAGS'
7379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7385 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7386 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7387 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7388 CFLAGS="$SAVE_CFLAGS"
7391 sparc*-*solaris*)
7392 # Find out which ABI we are using.
7393 echo 'int i;' > conftest.$ac_ext
7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7395 (eval $ac_compile) 2>&5
7396 ac_status=$?
7397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398 test $ac_status = 0; }; then
7399 case `/usr/bin/file conftest.o` in
7400 *64-bit*)
7401 case $lt_cv_prog_gnu_ld in
7402 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7404 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7405 LD="${LD-ld} -64"
7408 esac
7410 esac
7412 rm -rf conftest*
7414 esac
7416 need_locks="$enable_libtool_lock"
7419 case $host_os in
7420 rhapsody* | darwin*)
7421 if test -n "$ac_tool_prefix"; then
7422 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 if test -n "$DSYMUTIL"; then
7430 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7443 done
7444 done
7445 IFS=$as_save_IFS
7449 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7450 if test -n "$DSYMUTIL"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7452 $as_echo "$DSYMUTIL" >&6; }
7453 else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7460 if test -z "$ac_cv_prog_DSYMUTIL"; then
7461 ac_ct_DSYMUTIL=$DSYMUTIL
7462 # Extract the first word of "dsymutil", so it can be a program name with args.
7463 set dummy dsymutil; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7489 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7490 if test -n "$ac_ct_DSYMUTIL"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7492 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7498 if test "x$ac_ct_DSYMUTIL" = x; then
7499 DSYMUTIL=":"
7500 else
7501 case $cross_compiling:$ac_tool_warned in
7502 yes:)
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505 ac_tool_warned=yes ;;
7506 esac
7507 DSYMUTIL=$ac_ct_DSYMUTIL
7509 else
7510 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$NMEDIT"; then
7522 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7541 NMEDIT=$ac_cv_prog_NMEDIT
7542 if test -n "$NMEDIT"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7544 $as_echo "$NMEDIT" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7552 if test -z "$ac_cv_prog_NMEDIT"; then
7553 ac_ct_NMEDIT=$NMEDIT
7554 # Extract the first word of "nmedit", so it can be a program name with args.
7555 set dummy nmedit; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_NMEDIT"; then
7562 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7582 if test -n "$ac_ct_NMEDIT"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7584 $as_echo "$ac_ct_NMEDIT" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7590 if test "x$ac_ct_NMEDIT" = x; then
7591 NMEDIT=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 NMEDIT=$ac_ct_NMEDIT
7601 else
7602 NMEDIT="$ac_cv_prog_NMEDIT"
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if test "${ac_cv_prog_LIPO+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$LIPO"; then
7614 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7627 done
7628 done
7629 IFS=$as_save_IFS
7633 LIPO=$ac_cv_prog_LIPO
7634 if test -n "$LIPO"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7636 $as_echo "$LIPO" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7644 if test -z "$ac_cv_prog_LIPO"; then
7645 ac_ct_LIPO=$LIPO
7646 # Extract the first word of "lipo", so it can be a program name with args.
7647 set dummy lipo; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$ac_ct_LIPO"; then
7654 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_prog_ac_ct_LIPO="lipo"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7667 done
7668 done
7669 IFS=$as_save_IFS
7673 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7674 if test -n "$ac_ct_LIPO"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7676 $as_echo "$ac_ct_LIPO" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7682 if test "x$ac_ct_LIPO" = x; then
7683 LIPO=":"
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691 LIPO=$ac_ct_LIPO
7693 else
7694 LIPO="$ac_cv_prog_LIPO"
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}otool; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$OTOOL"; then
7706 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7719 done
7720 done
7721 IFS=$as_save_IFS
7725 OTOOL=$ac_cv_prog_OTOOL
7726 if test -n "$OTOOL"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7728 $as_echo "$OTOOL" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7736 if test -z "$ac_cv_prog_OTOOL"; then
7737 ac_ct_OTOOL=$OTOOL
7738 # Extract the first word of "otool", so it can be a program name with args.
7739 set dummy otool; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$ac_ct_OTOOL"; then
7746 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_ac_ct_OTOOL="otool"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7759 done
7760 done
7761 IFS=$as_save_IFS
7765 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7766 if test -n "$ac_ct_OTOOL"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7768 $as_echo "$ac_ct_OTOOL" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7774 if test "x$ac_ct_OTOOL" = x; then
7775 OTOOL=":"
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783 OTOOL=$ac_ct_OTOOL
7785 else
7786 OTOOL="$ac_cv_prog_OTOOL"
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$OTOOL64"; then
7798 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7817 OTOOL64=$ac_cv_prog_OTOOL64
7818 if test -n "$OTOOL64"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7820 $as_echo "$OTOOL64" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7828 if test -z "$ac_cv_prog_OTOOL64"; then
7829 ac_ct_OTOOL64=$OTOOL64
7830 # Extract the first word of "otool64", so it can be a program name with args.
7831 set dummy otool64; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$ac_ct_OTOOL64"; then
7838 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_ac_ct_OTOOL64="otool64"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7858 if test -n "$ac_ct_OTOOL64"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7860 $as_echo "$ac_ct_OTOOL64" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7866 if test "x$ac_ct_OTOOL64" = x; then
7867 OTOOL64=":"
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870 yes:)
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873 ac_tool_warned=yes ;;
7874 esac
7875 OTOOL64=$ac_ct_OTOOL64
7877 else
7878 OTOOL64="$ac_cv_prog_OTOOL64"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7908 $as_echo_n "checking for -single_module linker flag... " >&6; }
7909 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 lt_cv_apple_cc_single_mod=no
7913 if test -z "${LT_MULTI_MODULE}"; then
7914 # By default we will add the -single_module flag. You can override
7915 # by either setting the environment variable LT_MULTI_MODULE
7916 # non-empty at configure time, or by adding -multi_module to the
7917 # link flags.
7918 rm -rf libconftest.dylib*
7919 echo "int foo(void){return 1;}" > conftest.c
7920 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7921 -dynamiclib -Wl,-single_module conftest.c" >&5
7922 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7923 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7924 _lt_result=$?
7925 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7926 lt_cv_apple_cc_single_mod=yes
7927 else
7928 cat conftest.err >&5
7930 rm -rf libconftest.dylib*
7931 rm -f conftest.*
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7935 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7937 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7938 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 lt_cv_ld_exported_symbols_list=no
7942 save_LDFLAGS=$LDFLAGS
7943 echo "_main" > conftest.sym
7944 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7949 main ()
7953 return 0;
7955 _ACEOF
7956 if ac_fn_c_try_link "$LINENO"; then :
7957 lt_cv_ld_exported_symbols_list=yes
7958 else
7959 lt_cv_ld_exported_symbols_list=no
7961 rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
7963 LDFLAGS="$save_LDFLAGS"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7967 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7969 $as_echo_n "checking for -force_load linker flag... " >&6; }
7970 if test "${lt_cv_ld_force_load+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 lt_cv_ld_force_load=no
7974 cat > conftest.c << _LT_EOF
7975 int forced_loaded() { return 2;}
7976 _LT_EOF
7977 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7978 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7979 echo "$AR cru libconftest.a conftest.o" >&5
7980 $AR cru libconftest.a conftest.o 2>&5
7981 cat > conftest.c << _LT_EOF
7982 int main() { return 0;}
7983 _LT_EOF
7984 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7985 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7986 _lt_result=$?
7987 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7988 lt_cv_ld_force_load=yes
7989 else
7990 cat conftest.err >&5
7992 rm -f conftest.err libconftest.a conftest conftest.c
7993 rm -rf conftest.dSYM
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7997 $as_echo "$lt_cv_ld_force_load" >&6; }
7998 case $host_os in
7999 rhapsody* | darwin1.[012])
8000 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8001 darwin1.*)
8002 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8003 darwin*) # darwin 5.x on
8004 # if running on 10.5 or later, the deployment target defaults
8005 # to the OS version, if on x86, and 10.4, the deployment
8006 # target defaults to 10.4. Don't you love it?
8007 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8008 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8010 10.[012][,.]*)
8011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8012 10.*)
8013 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8014 esac
8016 esac
8017 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8018 _lt_dar_single_mod='$single_module'
8020 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8021 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8022 else
8023 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8026 _lt_dsymutil='~$DSYMUTIL $lib || :'
8027 else
8028 _lt_dsymutil=
8031 esac
8033 ac_ext=c
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8040 # On Suns, sometimes $CPP names a directory.
8041 if test -n "$CPP" && test -d "$CPP"; then
8042 CPP=
8044 if test -z "$CPP"; then
8045 if test "${ac_cv_prog_CPP+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 # Double quotes because CPP needs to be expanded
8049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8051 ac_preproc_ok=false
8052 for ac_c_preproc_warn_flag in '' yes
8054 # Use a header file that comes with gcc, so configuring glibc
8055 # with a fresh cross-compiler works.
8056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8057 # <limits.h> exists even on freestanding compilers.
8058 # On the NeXT, cc -E runs the code through the compiler's parser,
8059 # not just through cpp. "Syntax error" is here to catch this case.
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 #ifdef __STDC__
8063 # include <limits.h>
8064 #else
8065 # include <assert.h>
8066 #endif
8067 Syntax error
8068 _ACEOF
8069 if ac_fn_c_try_cpp "$LINENO"; then :
8071 else
8072 # Broken: fails on valid input.
8073 continue
8075 rm -f conftest.err conftest.$ac_ext
8077 # OK, works on sane cases. Now check whether nonexistent headers
8078 # can be detected and how.
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 #include <ac_nonexistent.h>
8082 _ACEOF
8083 if ac_fn_c_try_cpp "$LINENO"; then :
8084 # Broken: success on invalid input.
8085 continue
8086 else
8087 # Passes both tests.
8088 ac_preproc_ok=:
8089 break
8091 rm -f conftest.err conftest.$ac_ext
8093 done
8094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8095 rm -f conftest.err conftest.$ac_ext
8096 if $ac_preproc_ok; then :
8097 break
8100 done
8101 ac_cv_prog_CPP=$CPP
8104 CPP=$ac_cv_prog_CPP
8105 else
8106 ac_cv_prog_CPP=$CPP
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8109 $as_echo "$CPP" >&6; }
8110 ac_preproc_ok=false
8111 for ac_c_preproc_warn_flag in '' yes
8113 # Use a header file that comes with gcc, so configuring glibc
8114 # with a fresh cross-compiler works.
8115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8116 # <limits.h> exists even on freestanding compilers.
8117 # On the NeXT, cc -E runs the code through the compiler's parser,
8118 # not just through cpp. "Syntax error" is here to catch this case.
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 #ifdef __STDC__
8122 # include <limits.h>
8123 #else
8124 # include <assert.h>
8125 #endif
8126 Syntax error
8127 _ACEOF
8128 if ac_fn_c_try_cpp "$LINENO"; then :
8130 else
8131 # Broken: fails on valid input.
8132 continue
8134 rm -f conftest.err conftest.$ac_ext
8136 # OK, works on sane cases. Now check whether nonexistent headers
8137 # can be detected and how.
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 #include <ac_nonexistent.h>
8141 _ACEOF
8142 if ac_fn_c_try_cpp "$LINENO"; then :
8143 # Broken: success on invalid input.
8144 continue
8145 else
8146 # Passes both tests.
8147 ac_preproc_ok=:
8148 break
8150 rm -f conftest.err conftest.$ac_ext
8152 done
8153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8154 rm -f conftest.err conftest.$ac_ext
8155 if $ac_preproc_ok; then :
8157 else
8158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8160 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8161 See \`config.log' for more details." "$LINENO" 5; }
8164 ac_ext=c
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8172 $as_echo_n "checking for ANSI C header files... " >&6; }
8173 if test "${ac_cv_header_stdc+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178 #include <stdlib.h>
8179 #include <stdarg.h>
8180 #include <string.h>
8181 #include <float.h>
8184 main ()
8188 return 0;
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192 ac_cv_header_stdc=yes
8193 else
8194 ac_cv_header_stdc=no
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 if test $ac_cv_header_stdc = yes; then
8199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 #include <string.h>
8204 _ACEOF
8205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8206 $EGREP "memchr" >/dev/null 2>&1; then :
8208 else
8209 ac_cv_header_stdc=no
8211 rm -f conftest*
8215 if test $ac_cv_header_stdc = yes; then
8216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #include <stdlib.h>
8221 _ACEOF
8222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8223 $EGREP "free" >/dev/null 2>&1; then :
8225 else
8226 ac_cv_header_stdc=no
8228 rm -f conftest*
8232 if test $ac_cv_header_stdc = yes; then
8233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8234 if test "$cross_compiling" = yes; then :
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 #include <ctype.h>
8240 #include <stdlib.h>
8241 #if ((' ' & 0x0FF) == 0x020)
8242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8244 #else
8245 # define ISLOWER(c) \
8246 (('a' <= (c) && (c) <= 'i') \
8247 || ('j' <= (c) && (c) <= 'r') \
8248 || ('s' <= (c) && (c) <= 'z'))
8249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8250 #endif
8252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8254 main ()
8256 int i;
8257 for (i = 0; i < 256; i++)
8258 if (XOR (islower (i), ISLOWER (i))
8259 || toupper (i) != TOUPPER (i))
8260 return 2;
8261 return 0;
8263 _ACEOF
8264 if ac_fn_c_try_run "$LINENO"; then :
8266 else
8267 ac_cv_header_stdc=no
8269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8270 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8276 $as_echo "$ac_cv_header_stdc" >&6; }
8277 if test $ac_cv_header_stdc = yes; then
8279 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8283 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8285 inttypes.h stdint.h unistd.h
8286 do :
8287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8290 eval as_val=\$$as_ac_Header
8291 if test "x$as_val" = x""yes; then :
8292 cat >>confdefs.h <<_ACEOF
8293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8294 _ACEOF
8298 done
8301 for ac_header in dlfcn.h
8302 do :
8303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8305 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8306 cat >>confdefs.h <<_ACEOF
8307 #define HAVE_DLFCN_H 1
8308 _ACEOF
8312 done
8319 # Set options
8323 enable_dlopen=no
8326 enable_win32_dll=no
8329 # Check whether --enable-shared was given.
8330 if test "${enable_shared+set}" = set; then :
8331 enableval=$enable_shared; p=${PACKAGE-default}
8332 case $enableval in
8333 yes) enable_shared=yes ;;
8334 no) enable_shared=no ;;
8336 enable_shared=no
8337 # Look at the argument we got. We use all the common list separators.
8338 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8339 for pkg in $enableval; do
8340 IFS="$lt_save_ifs"
8341 if test "X$pkg" = "X$p"; then
8342 enable_shared=yes
8344 done
8345 IFS="$lt_save_ifs"
8347 esac
8348 else
8349 enable_shared=yes
8360 # Check whether --enable-static was given.
8361 if test "${enable_static+set}" = set; then :
8362 enableval=$enable_static; p=${PACKAGE-default}
8363 case $enableval in
8364 yes) enable_static=yes ;;
8365 no) enable_static=no ;;
8367 enable_static=no
8368 # Look at the argument we got. We use all the common list separators.
8369 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8370 for pkg in $enableval; do
8371 IFS="$lt_save_ifs"
8372 if test "X$pkg" = "X$p"; then
8373 enable_static=yes
8375 done
8376 IFS="$lt_save_ifs"
8378 esac
8379 else
8380 enable_static=yes
8392 # Check whether --with-pic was given.
8393 if test "${with_pic+set}" = set; then :
8394 withval=$with_pic; pic_mode="$withval"
8395 else
8396 pic_mode=default
8400 test -z "$pic_mode" && pic_mode=default
8408 # Check whether --enable-fast-install was given.
8409 if test "${enable_fast_install+set}" = set; then :
8410 enableval=$enable_fast_install; p=${PACKAGE-default}
8411 case $enableval in
8412 yes) enable_fast_install=yes ;;
8413 no) enable_fast_install=no ;;
8415 enable_fast_install=no
8416 # Look at the argument we got. We use all the common list separators.
8417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8418 for pkg in $enableval; do
8419 IFS="$lt_save_ifs"
8420 if test "X$pkg" = "X$p"; then
8421 enable_fast_install=yes
8423 done
8424 IFS="$lt_save_ifs"
8426 esac
8427 else
8428 enable_fast_install=yes
8441 # This can be used to rebuild libtool when needed
8442 LIBTOOL_DEPS="$ltmain"
8444 # Always use our own libtool.
8445 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8472 test -z "$LN_S" && LN_S="ln -s"
8487 if test -n "${ZSH_VERSION+set}" ; then
8488 setopt NO_GLOB_SUBST
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8492 $as_echo_n "checking for objdir... " >&6; }
8493 if test "${lt_cv_objdir+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 rm -f .libs 2>/dev/null
8497 mkdir .libs 2>/dev/null
8498 if test -d .libs; then
8499 lt_cv_objdir=.libs
8500 else
8501 # MS-DOS does not allow filenames that begin with a dot.
8502 lt_cv_objdir=_libs
8504 rmdir .libs 2>/dev/null
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8507 $as_echo "$lt_cv_objdir" >&6; }
8508 objdir=$lt_cv_objdir
8514 cat >>confdefs.h <<_ACEOF
8515 #define LT_OBJDIR "$lt_cv_objdir/"
8516 _ACEOF
8521 case $host_os in
8522 aix3*)
8523 # AIX sometimes has problems with the GCC collect2 program. For some
8524 # reason, if we set the COLLECT_NAMES environment variable, the problems
8525 # vanish in a puff of smoke.
8526 if test "X${COLLECT_NAMES+set}" != Xset; then
8527 COLLECT_NAMES=
8528 export COLLECT_NAMES
8531 esac
8533 # Global variables:
8534 ofile=libtool
8535 can_build_shared=yes
8537 # All known linkers require a `.a' archive for static linking (except MSVC,
8538 # which needs '.lib').
8539 libext=a
8541 with_gnu_ld="$lt_cv_prog_gnu_ld"
8543 old_CC="$CC"
8544 old_CFLAGS="$CFLAGS"
8546 # Set sane defaults for various variables
8547 test -z "$CC" && CC=cc
8548 test -z "$LTCC" && LTCC=$CC
8549 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8550 test -z "$LD" && LD=ld
8551 test -z "$ac_objext" && ac_objext=o
8553 for cc_temp in $compiler""; do
8554 case $cc_temp in
8555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8557 \-*) ;;
8558 *) break;;
8559 esac
8560 done
8561 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8564 # Only perform the check for file, if the check method requires it
8565 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8566 case $deplibs_check_method in
8567 file_magic*)
8568 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8570 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8571 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 case $MAGIC_CMD in
8575 [\\/*] | ?:[\\/]*)
8576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8579 lt_save_MAGIC_CMD="$MAGIC_CMD"
8580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582 for ac_dir in $ac_dummy; do
8583 IFS="$lt_save_ifs"
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f $ac_dir/${ac_tool_prefix}file; then
8586 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8587 if test -n "$file_magic_test_file"; then
8588 case $deplibs_check_method in
8589 "file_magic "*)
8590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593 $EGREP "$file_magic_regex" > /dev/null; then
8595 else
8596 cat <<_LT_EOF 1>&2
8598 *** Warning: the command libtool uses to detect shared libraries,
8599 *** $file_magic_cmd, produces output that libtool cannot recognize.
8600 *** The result is that libtool may fail to recognize shared libraries
8601 *** as such. This will affect the creation of libtool libraries that
8602 *** depend on shared libraries, but programs linked with such libtool
8603 *** libraries will work regardless of this problem. Nevertheless, you
8604 *** may want to report the problem to your system manager and/or to
8605 *** bug-libtool@gnu.org
8607 _LT_EOF
8608 fi ;;
8609 esac
8611 break
8613 done
8614 IFS="$lt_save_ifs"
8615 MAGIC_CMD="$lt_save_MAGIC_CMD"
8617 esac
8620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8621 if test -n "$MAGIC_CMD"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623 $as_echo "$MAGIC_CMD" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8633 if test -z "$lt_cv_path_MAGIC_CMD"; then
8634 if test -n "$ac_tool_prefix"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8636 $as_echo_n "checking for file... " >&6; }
8637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 case $MAGIC_CMD in
8641 [\\/*] | ?:[\\/]*)
8642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8645 lt_save_MAGIC_CMD="$MAGIC_CMD"
8646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648 for ac_dir in $ac_dummy; do
8649 IFS="$lt_save_ifs"
8650 test -z "$ac_dir" && ac_dir=.
8651 if test -f $ac_dir/file; then
8652 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8653 if test -n "$file_magic_test_file"; then
8654 case $deplibs_check_method in
8655 "file_magic "*)
8656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659 $EGREP "$file_magic_regex" > /dev/null; then
8661 else
8662 cat <<_LT_EOF 1>&2
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such. This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem. Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8673 _LT_EOF
8674 fi ;;
8675 esac
8677 break
8679 done
8680 IFS="$lt_save_ifs"
8681 MAGIC_CMD="$lt_save_MAGIC_CMD"
8683 esac
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8689 $as_echo "$MAGIC_CMD" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8696 else
8697 MAGIC_CMD=:
8703 esac
8705 # Use C for the default configuration in the libtool script
8707 lt_save_CC="$CC"
8708 ac_ext=c
8709 ac_cpp='$CPP $CPPFLAGS'
8710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715 # Source file extension for C test sources.
8716 ac_ext=c
8718 # Object file extension for compiled C test sources.
8719 objext=o
8720 objext=$objext
8722 # Code to be used in simple compile tests
8723 lt_simple_compile_test_code="int some_variable = 0;"
8725 # Code to be used in simple link tests
8726 lt_simple_link_test_code='int main(){return(0);}'
8734 # If no C compiler was specified, use CC.
8735 LTCC=${LTCC-"$CC"}
8737 # If no C compiler flags were specified, use CFLAGS.
8738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8740 # Allow CC to be a program name with arguments.
8741 compiler=$CC
8743 # Save the default compiler, since it gets overwritten when the other
8744 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8745 compiler_DEFAULT=$CC
8747 # save warnings/boilerplate of simple test code
8748 ac_outfile=conftest.$ac_objext
8749 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8750 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8751 _lt_compiler_boilerplate=`cat conftest.err`
8752 $RM conftest*
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8756 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8757 _lt_linker_boilerplate=`cat conftest.err`
8758 $RM -r conftest*
8761 ## CAVEAT EMPTOR:
8762 ## There is no encapsulation within the following macros, do not change
8763 ## the running order or otherwise move them around unless you know exactly
8764 ## what you are doing...
8765 if test -n "$compiler"; then
8767 lt_prog_compiler_no_builtin_flag=
8769 if test "$GCC" = yes; then
8770 case $cc_basename in
8771 nvcc*)
8772 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8774 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8775 esac
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8778 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8779 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 lt_cv_prog_compiler_rtti_exceptions=no
8783 ac_outfile=conftest.$ac_objext
8784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785 lt_compiler_flag="-fno-rtti -fno-exceptions"
8786 # Insert the option either (1) after the last *FLAGS variable, or
8787 # (2) before a word containing "conftest.", or (3) at the end.
8788 # Note that $ac_compile itself does not contain backslashes and begins
8789 # with a dollar sign (not a hyphen), so the echo should work correctly.
8790 # The option is referenced via a variable to avoid confusing sed.
8791 lt_compile=`echo "$ac_compile" | $SED \
8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794 -e 's:$: $lt_compiler_flag:'`
8795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796 (eval "$lt_compile" 2>conftest.err)
8797 ac_status=$?
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 if (exit $ac_status) && test -s "$ac_outfile"; then
8801 # The compiler can only warn and ignore the option if not recognized
8802 # So say no if there are warnings other than the usual output.
8803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8806 lt_cv_prog_compiler_rtti_exceptions=yes
8809 $RM conftest*
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8813 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8815 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8816 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8817 else
8828 lt_prog_compiler_wl=
8829 lt_prog_compiler_pic=
8830 lt_prog_compiler_static=
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8833 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8835 if test "$GCC" = yes; then
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_static='-static'
8839 case $host_os in
8840 aix*)
8841 # All AIX code is PIC.
8842 if test "$host_cpu" = ia64; then
8843 # AIX 5 now supports IA64 processor
8844 lt_prog_compiler_static='-Bstatic'
8846 lt_prog_compiler_pic='-fPIC'
8849 amigaos*)
8850 case $host_cpu in
8851 powerpc)
8852 # see comment about AmigaOS4 .so support
8853 lt_prog_compiler_pic='-fPIC'
8855 m68k)
8856 # FIXME: we need at least 68020 code to build shared libraries, but
8857 # adding the `-m68020' flag to GCC prevents building anything better,
8858 # like `-m68040'.
8859 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8861 esac
8864 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8865 # PIC is the default for these OSes.
8868 mingw* | cygwin* | pw32* | os2* | cegcc*)
8869 # This hack is so that the source file can tell whether it is being
8870 # built for inclusion in a dll (and should export symbols for example).
8871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8872 # (--disable-auto-import) libraries
8873 lt_prog_compiler_pic='-DDLL_EXPORT'
8876 darwin* | rhapsody*)
8877 # PIC is the default on this platform
8878 # Common symbols not allowed in MH_DYLIB files
8879 lt_prog_compiler_pic='-fno-common'
8882 haiku*)
8883 # PIC is the default for Haiku.
8884 # The "-static" flag exists, but is broken.
8885 lt_prog_compiler_static=
8888 hpux*)
8889 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8890 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8891 # sets the default TLS model and affects inlining.
8892 case $host_cpu in
8893 hppa*64*)
8894 # +Z the default
8897 lt_prog_compiler_pic='-fPIC'
8899 esac
8902 interix[3-9]*)
8903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8904 # Instead, we relocate shared libraries at runtime.
8907 msdosdjgpp*)
8908 # Just because we use GCC doesn't mean we suddenly get shared libraries
8909 # on systems that don't support them.
8910 lt_prog_compiler_can_build_shared=no
8911 enable_shared=no
8914 *nto* | *qnx*)
8915 # QNX uses GNU C++, but need to define -shared option too, otherwise
8916 # it will coredump.
8917 lt_prog_compiler_pic='-fPIC -shared'
8920 sysv4*MP*)
8921 if test -d /usr/nec; then
8922 lt_prog_compiler_pic=-Kconform_pic
8927 lt_prog_compiler_pic='-fPIC'
8929 esac
8931 case $cc_basename in
8932 nvcc*) # Cuda Compiler Driver 2.2
8933 lt_prog_compiler_wl='-Xlinker '
8934 lt_prog_compiler_pic='-Xcompiler -fPIC'
8936 esac
8937 else
8938 # PORTME Check for flag to pass linker flags through the system compiler.
8939 case $host_os in
8940 aix*)
8941 lt_prog_compiler_wl='-Wl,'
8942 if test "$host_cpu" = ia64; then
8943 # AIX 5 now supports IA64 processor
8944 lt_prog_compiler_static='-Bstatic'
8945 else
8946 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8950 mingw* | cygwin* | pw32* | os2* | cegcc*)
8951 # This hack is so that the source file can tell whether it is being
8952 # built for inclusion in a dll (and should export symbols for example).
8953 lt_prog_compiler_pic='-DDLL_EXPORT'
8956 hpux9* | hpux10* | hpux11*)
8957 lt_prog_compiler_wl='-Wl,'
8958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8959 # not for PA HP-UX.
8960 case $host_cpu in
8961 hppa*64*|ia64*)
8962 # +Z the default
8965 lt_prog_compiler_pic='+Z'
8967 esac
8968 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8969 lt_prog_compiler_static='${wl}-a ${wl}archive'
8972 irix5* | irix6* | nonstopux*)
8973 lt_prog_compiler_wl='-Wl,'
8974 # PIC (with -KPIC) is the default.
8975 lt_prog_compiler_static='-non_shared'
8978 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8979 case $cc_basename in
8980 # old Intel for x86_64 which still supported -KPIC.
8981 ecc*)
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_pic='-KPIC'
8984 lt_prog_compiler_static='-static'
8986 # icc used to be incompatible with GCC.
8987 # ICC 10 doesn't accept -KPIC any more.
8988 icc* | ifort*)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-fPIC'
8991 lt_prog_compiler_static='-static'
8993 # Lahey Fortran 8.1.
8994 lf95*)
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='--shared'
8997 lt_prog_compiler_static='--static'
8999 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9000 # Portland Group compilers (*not* the Pentium gcc compiler,
9001 # which looks to be a dead project)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-fpic'
9004 lt_prog_compiler_static='-Bstatic'
9006 ccc*)
9007 lt_prog_compiler_wl='-Wl,'
9008 # All Alpha code is PIC.
9009 lt_prog_compiler_static='-non_shared'
9011 xl* | bgxl* | bgf* | mpixl*)
9012 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9013 lt_prog_compiler_wl='-Wl,'
9014 lt_prog_compiler_pic='-qpic'
9015 lt_prog_compiler_static='-qstaticlink'
9018 case `$CC -V 2>&1 | sed 5q` in
9019 *Sun\ F* | *Sun*Fortran*)
9020 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9021 lt_prog_compiler_pic='-KPIC'
9022 lt_prog_compiler_static='-Bstatic'
9023 lt_prog_compiler_wl=''
9025 *Sun\ C*)
9026 # Sun C 5.9
9027 lt_prog_compiler_pic='-KPIC'
9028 lt_prog_compiler_static='-Bstatic'
9029 lt_prog_compiler_wl='-Wl,'
9031 esac
9033 esac
9036 newsos6)
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9041 *nto* | *qnx*)
9042 # QNX uses GNU C++, but need to define -shared option too, otherwise
9043 # it will coredump.
9044 lt_prog_compiler_pic='-fPIC -shared'
9047 osf3* | osf4* | osf5*)
9048 lt_prog_compiler_wl='-Wl,'
9049 # All OSF/1 code is PIC.
9050 lt_prog_compiler_static='-non_shared'
9053 rdos*)
9054 lt_prog_compiler_static='-non_shared'
9057 solaris*)
9058 lt_prog_compiler_pic='-KPIC'
9059 lt_prog_compiler_static='-Bstatic'
9060 case $cc_basename in
9061 f77* | f90* | f95*)
9062 lt_prog_compiler_wl='-Qoption ld ';;
9064 lt_prog_compiler_wl='-Wl,';;
9065 esac
9068 sunos4*)
9069 lt_prog_compiler_wl='-Qoption ld '
9070 lt_prog_compiler_pic='-PIC'
9071 lt_prog_compiler_static='-Bstatic'
9074 sysv4 | sysv4.2uw2* | sysv4.3*)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-KPIC'
9077 lt_prog_compiler_static='-Bstatic'
9080 sysv4*MP*)
9081 if test -d /usr/nec ;then
9082 lt_prog_compiler_pic='-Kconform_pic'
9083 lt_prog_compiler_static='-Bstatic'
9087 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_pic='-KPIC'
9090 lt_prog_compiler_static='-Bstatic'
9093 unicos*)
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_can_build_shared=no
9098 uts4*)
9099 lt_prog_compiler_pic='-pic'
9100 lt_prog_compiler_static='-Bstatic'
9104 lt_prog_compiler_can_build_shared=no
9106 esac
9109 case $host_os in
9110 # For platforms which do not support PIC, -DPIC is meaningless:
9111 *djgpp*)
9112 lt_prog_compiler_pic=
9115 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9117 esac
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9119 $as_echo "$lt_prog_compiler_pic" >&6; }
9127 # Check to make sure the PIC flag actually works.
9129 if test -n "$lt_prog_compiler_pic"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9131 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9132 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 lt_cv_prog_compiler_pic_works=no
9136 ac_outfile=conftest.$ac_objext
9137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9138 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9139 # Insert the option either (1) after the last *FLAGS variable, or
9140 # (2) before a word containing "conftest.", or (3) at the end.
9141 # Note that $ac_compile itself does not contain backslashes and begins
9142 # with a dollar sign (not a hyphen), so the echo should work correctly.
9143 # The option is referenced via a variable to avoid confusing sed.
9144 lt_compile=`echo "$ac_compile" | $SED \
9145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9147 -e 's:$: $lt_compiler_flag:'`
9148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9149 (eval "$lt_compile" 2>conftest.err)
9150 ac_status=$?
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 if (exit $ac_status) && test -s "$ac_outfile"; then
9154 # The compiler can only warn and ignore the option if not recognized
9155 # So say no if there are warnings other than the usual output.
9156 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9158 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9159 lt_cv_prog_compiler_pic_works=yes
9162 $RM conftest*
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9166 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9168 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9169 case $lt_prog_compiler_pic in
9170 "" | " "*) ;;
9171 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9172 esac
9173 else
9174 lt_prog_compiler_pic=
9175 lt_prog_compiler_can_build_shared=no
9186 # Check to make sure the static flag actually works.
9188 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9190 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9191 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 lt_cv_prog_compiler_static_works=no
9195 save_LDFLAGS="$LDFLAGS"
9196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9197 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9199 # The linker can only warn and ignore the option if not recognized
9200 # So say no if there are warnings
9201 if test -s conftest.err; then
9202 # Append any errors to the config.log.
9203 cat conftest.err 1>&5
9204 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206 if diff conftest.exp conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_static_works=yes
9209 else
9210 lt_cv_prog_compiler_static_works=yes
9213 $RM -r conftest*
9214 LDFLAGS="$save_LDFLAGS"
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9218 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9220 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9222 else
9223 lt_prog_compiler_static=
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9233 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9234 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 lt_cv_prog_compiler_c_o=no
9238 $RM -r conftest 2>/dev/null
9239 mkdir conftest
9240 cd conftest
9241 mkdir out
9242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9244 lt_compiler_flag="-o out/conftest2.$ac_objext"
9245 # Insert the option either (1) after the last *FLAGS variable, or
9246 # (2) before a word containing "conftest.", or (3) at the end.
9247 # Note that $ac_compile itself does not contain backslashes and begins
9248 # with a dollar sign (not a hyphen), so the echo should work correctly.
9249 lt_compile=`echo "$ac_compile" | $SED \
9250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9252 -e 's:$: $lt_compiler_flag:'`
9253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9254 (eval "$lt_compile" 2>out/conftest.err)
9255 ac_status=$?
9256 cat out/conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9259 then
9260 # The compiler can only warn and ignore the option if not recognized
9261 # So say no if there are warnings
9262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9265 lt_cv_prog_compiler_c_o=yes
9268 chmod u+w . 2>&5
9269 $RM conftest*
9270 # SGI C++ compiler will create directory out/ii_files/ for
9271 # template instantiation
9272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9273 $RM out/* && rmdir out
9274 cd ..
9275 $RM -r conftest
9276 $RM conftest*
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9280 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9289 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 lt_cv_prog_compiler_c_o=no
9293 $RM -r conftest 2>/dev/null
9294 mkdir conftest
9295 cd conftest
9296 mkdir out
9297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9299 lt_compiler_flag="-o out/conftest2.$ac_objext"
9300 # Insert the option either (1) after the last *FLAGS variable, or
9301 # (2) before a word containing "conftest.", or (3) at the end.
9302 # Note that $ac_compile itself does not contain backslashes and begins
9303 # with a dollar sign (not a hyphen), so the echo should work correctly.
9304 lt_compile=`echo "$ac_compile" | $SED \
9305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9307 -e 's:$: $lt_compiler_flag:'`
9308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9309 (eval "$lt_compile" 2>out/conftest.err)
9310 ac_status=$?
9311 cat out/conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9314 then
9315 # The compiler can only warn and ignore the option if not recognized
9316 # So say no if there are warnings
9317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9320 lt_cv_prog_compiler_c_o=yes
9323 chmod u+w . 2>&5
9324 $RM conftest*
9325 # SGI C++ compiler will create directory out/ii_files/ for
9326 # template instantiation
9327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9328 $RM out/* && rmdir out
9329 cd ..
9330 $RM -r conftest
9331 $RM conftest*
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9335 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9340 hard_links="nottested"
9341 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9342 # do not overwrite the value of need_locks provided by the user
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9344 $as_echo_n "checking if we can lock with hard links... " >&6; }
9345 hard_links=yes
9346 $RM conftest*
9347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9348 touch conftest.a
9349 ln conftest.a conftest.b 2>&5 || hard_links=no
9350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9352 $as_echo "$hard_links" >&6; }
9353 if test "$hard_links" = no; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9355 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9356 need_locks=warn
9358 else
9359 need_locks=no
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9368 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9370 runpath_var=
9371 allow_undefined_flag=
9372 always_export_symbols=no
9373 archive_cmds=
9374 archive_expsym_cmds=
9375 compiler_needs_object=no
9376 enable_shared_with_static_runtimes=no
9377 export_dynamic_flag_spec=
9378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9379 hardcode_automatic=no
9380 hardcode_direct=no
9381 hardcode_direct_absolute=no
9382 hardcode_libdir_flag_spec=
9383 hardcode_libdir_flag_spec_ld=
9384 hardcode_libdir_separator=
9385 hardcode_minus_L=no
9386 hardcode_shlibpath_var=unsupported
9387 inherit_rpath=no
9388 link_all_deplibs=unknown
9389 module_cmds=
9390 module_expsym_cmds=
9391 old_archive_from_new_cmds=
9392 old_archive_from_expsyms_cmds=
9393 thread_safe_flag_spec=
9394 whole_archive_flag_spec=
9395 # include_expsyms should be a list of space-separated symbols to be *always*
9396 # included in the symbol list
9397 include_expsyms=
9398 # exclude_expsyms can be an extended regexp of symbols to exclude
9399 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9400 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9401 # as well as any symbol that contains `d'.
9402 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9403 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9404 # platforms (ab)use it in PIC code, but their linkers get confused if
9405 # the symbol is explicitly referenced. Since portable code cannot
9406 # rely on this symbol name, it's probably fine to never include it in
9407 # preloaded symbol tables.
9408 # Exclude shared library initialization/finalization symbols.
9409 extract_expsyms_cmds=
9411 case $host_os in
9412 cygwin* | mingw* | pw32* | cegcc*)
9413 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9414 # When not using gcc, we currently assume that we are using
9415 # Microsoft Visual C++.
9416 if test "$GCC" != yes; then
9417 with_gnu_ld=no
9420 interix*)
9421 # we just hope/assume this is gcc and not c89 (= MSVC++)
9422 with_gnu_ld=yes
9424 openbsd*)
9425 with_gnu_ld=no
9427 esac
9429 ld_shlibs=yes
9431 # On some targets, GNU ld is compatible enough with the native linker
9432 # that we're better off using the native interface for both.
9433 lt_use_gnu_ld_interface=no
9434 if test "$with_gnu_ld" = yes; then
9435 case $host_os in
9436 aix*)
9437 # The AIX port of GNU ld has always aspired to compatibility
9438 # with the native linker. However, as the warning in the GNU ld
9439 # block says, versions before 2.19.5* couldn't really create working
9440 # shared libraries, regardless of the interface used.
9441 case `$LD -v 2>&1` in
9442 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9443 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9444 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9446 lt_use_gnu_ld_interface=yes
9448 esac
9451 lt_use_gnu_ld_interface=yes
9453 esac
9456 if test "$lt_use_gnu_ld_interface" = yes; then
9457 # If archive_cmds runs LD, not CC, wlarc should be empty
9458 wlarc='${wl}'
9460 # Set some defaults for GNU ld with shared library support. These
9461 # are reset later if shared libraries are not supported. Putting them
9462 # here allows them to be overridden if necessary.
9463 runpath_var=LD_RUN_PATH
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 export_dynamic_flag_spec='${wl}--export-dynamic'
9466 # ancient GNU ld didn't support --whole-archive et. al.
9467 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9468 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9469 else
9470 whole_archive_flag_spec=
9472 supports_anon_versioning=no
9473 case `$LD -v 2>&1` in
9474 *GNU\ gold*) supports_anon_versioning=yes ;;
9475 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9476 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9477 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9478 *\ 2.11.*) ;; # other 2.11 versions
9479 *) supports_anon_versioning=yes ;;
9480 esac
9482 # See if GNU ld supports shared libraries.
9483 case $host_os in
9484 aix[3-9]*)
9485 # On AIX/PPC, the GNU linker is very broken
9486 if test "$host_cpu" != ia64; then
9487 ld_shlibs=no
9488 cat <<_LT_EOF 1>&2
9490 *** Warning: the GNU linker, at least up to release 2.19, is reported
9491 *** to be unable to reliably create shared libraries on AIX.
9492 *** Therefore, libtool is disabling shared libraries support. If you
9493 *** really care for shared libraries, you may want to install binutils
9494 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9495 *** You will then need to restart the configuration process.
9497 _LT_EOF
9501 amigaos*)
9502 case $host_cpu in
9503 powerpc)
9504 # see comment about AmigaOS4 .so support
9505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506 archive_expsym_cmds=''
9508 m68k)
9509 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)'
9510 hardcode_libdir_flag_spec='-L$libdir'
9511 hardcode_minus_L=yes
9513 esac
9516 beos*)
9517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9518 allow_undefined_flag=unsupported
9519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9520 # support --undefined. This deserves some investigation. FIXME
9521 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 else
9523 ld_shlibs=no
9527 cygwin* | mingw* | pw32* | cegcc*)
9528 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9529 # as there is no search path for DLLs.
9530 hardcode_libdir_flag_spec='-L$libdir'
9531 export_dynamic_flag_spec='${wl}--export-all-symbols'
9532 allow_undefined_flag=unsupported
9533 always_export_symbols=no
9534 enable_shared_with_static_runtimes=yes
9535 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9537 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9539 # If the export-symbols file already is a .def file (1st line
9540 # is EXPORTS), use it as is; otherwise, prepend...
9541 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9542 cp $export_symbols $output_objdir/$soname.def;
9543 else
9544 echo EXPORTS > $output_objdir/$soname.def;
9545 cat $export_symbols >> $output_objdir/$soname.def;
9547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9548 else
9549 ld_shlibs=no
9553 haiku*)
9554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555 link_all_deplibs=yes
9558 interix[3-9]*)
9559 hardcode_direct=no
9560 hardcode_shlibpath_var=no
9561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9562 export_dynamic_flag_spec='${wl}-E'
9563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9564 # Instead, shared libraries are loaded at an image base (0x10000000 by
9565 # default) and relocated if they conflict, which is a slow very memory
9566 # consuming and fragmenting process. To avoid this, we pick a random,
9567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9570 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'
9573 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9574 tmp_diet=no
9575 if test "$host_os" = linux-dietlibc; then
9576 case $cc_basename in
9577 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9578 esac
9580 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9581 && test "$tmp_diet" = no
9582 then
9583 tmp_addflag=' $pic_flag'
9584 tmp_sharedflag='-shared'
9585 case $cc_basename,$host_cpu in
9586 pgcc*) # Portland Group C compiler
9587 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'
9588 tmp_addflag=' $pic_flag'
9590 pgf77* | pgf90* | pgf95* | pgfortran*)
9591 # Portland Group f77 and f90 compilers
9592 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'
9593 tmp_addflag=' $pic_flag -Mnomain' ;;
9594 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9595 tmp_addflag=' -i_dynamic' ;;
9596 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9597 tmp_addflag=' -i_dynamic -nofor_main' ;;
9598 ifc* | ifort*) # Intel Fortran compiler
9599 tmp_addflag=' -nofor_main' ;;
9600 lf95*) # Lahey Fortran 8.1
9601 whole_archive_flag_spec=
9602 tmp_sharedflag='--shared' ;;
9603 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9604 tmp_sharedflag='-qmkshrobj'
9605 tmp_addflag= ;;
9606 nvcc*) # Cuda Compiler Driver 2.2
9607 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'
9608 compiler_needs_object=yes
9610 esac
9611 case `$CC -V 2>&1 | sed 5q` in
9612 *Sun\ C*) # Sun C 5.9
9613 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'
9614 compiler_needs_object=yes
9615 tmp_sharedflag='-G' ;;
9616 *Sun\ F*) # Sun Fortran 8.3
9617 tmp_sharedflag='-G' ;;
9618 esac
9619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621 if test "x$supports_anon_versioning" = xyes; then
9622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9624 echo "local: *; };" >> $output_objdir/$libname.ver~
9625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9628 case $cc_basename in
9629 xlf* | bgf* | bgxlf* | mpixlf*)
9630 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9631 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9632 hardcode_libdir_flag_spec=
9633 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9634 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9635 if test "x$supports_anon_versioning" = xyes; then
9636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9638 echo "local: *; };" >> $output_objdir/$libname.ver~
9639 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9642 esac
9643 else
9644 ld_shlibs=no
9648 netbsd*)
9649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9650 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9651 wlarc=
9652 else
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9658 solaris*)
9659 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9660 ld_shlibs=no
9661 cat <<_LT_EOF 1>&2
9663 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9664 *** create shared libraries on Solaris systems. Therefore, libtool
9665 *** is disabling shared libraries support. We urge you to upgrade GNU
9666 *** binutils to release 2.9.1 or newer. Another option is to modify
9667 *** your PATH or compiler configuration so that the native linker is
9668 *** used, and then restart.
9670 _LT_EOF
9671 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9674 else
9675 ld_shlibs=no
9679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9680 case `$LD -v 2>&1` in
9681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9682 ld_shlibs=no
9683 cat <<_LT_EOF 1>&2
9685 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9686 *** reliably create shared libraries on SCO systems. Therefore, libtool
9687 *** is disabling shared libraries support. We urge you to upgrade GNU
9688 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9689 *** your PATH or compiler configuration so that the native linker is
9690 *** used, and then restart.
9692 _LT_EOF
9695 # For security reasons, it is highly recommended that you always
9696 # use absolute paths for naming shared libraries, and exclude the
9697 # DT_RUNPATH tag from executables and libraries. But doing so
9698 # requires that you compile everything twice, which is a pain.
9699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9703 else
9704 ld_shlibs=no
9707 esac
9710 sunos4*)
9711 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9712 wlarc=
9713 hardcode_direct=yes
9714 hardcode_shlibpath_var=no
9718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9721 else
9722 ld_shlibs=no
9725 esac
9727 if test "$ld_shlibs" = no; then
9728 runpath_var=
9729 hardcode_libdir_flag_spec=
9730 export_dynamic_flag_spec=
9731 whole_archive_flag_spec=
9733 else
9734 # PORTME fill in a description of your system's linker (not GNU ld)
9735 case $host_os in
9736 aix3*)
9737 allow_undefined_flag=unsupported
9738 always_export_symbols=yes
9739 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'
9740 # Note: this linker hardcodes the directories in LIBPATH if there
9741 # are no directories specified by -L.
9742 hardcode_minus_L=yes
9743 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9744 # Neither direct hardcoding nor static linking is supported with a
9745 # broken collect2.
9746 hardcode_direct=unsupported
9750 aix[4-9]*)
9751 if test "$host_cpu" = ia64; then
9752 # On IA64, the linker does run time linking by default, so we don't
9753 # have to do anything special.
9754 aix_use_runtimelinking=no
9755 exp_sym_flag='-Bexport'
9756 no_entry_flag=""
9757 else
9758 # If we're using GNU nm, then we don't want the "-C" option.
9759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9760 # Also, AIX nm treats weak defined symbols like other global
9761 # defined symbols, whereas GNU nm marks them as "W".
9762 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9763 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'
9764 else
9765 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9767 aix_use_runtimelinking=no
9769 # Test if we are trying to use run time linking or normal
9770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9771 # need to do runtime linking.
9772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9773 for ld_flag in $LDFLAGS; do
9774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9775 aix_use_runtimelinking=yes
9776 break
9778 done
9780 esac
9782 exp_sym_flag='-bexport'
9783 no_entry_flag='-bnoentry'
9786 # When large executables or shared objects are built, AIX ld can
9787 # have problems creating the table of contents. If linking a library
9788 # or program results in "error TOC overflow" add -mminimal-toc to
9789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9792 archive_cmds=''
9793 hardcode_direct=yes
9794 hardcode_direct_absolute=yes
9795 hardcode_libdir_separator=':'
9796 link_all_deplibs=yes
9797 file_list_spec='${wl}-f,'
9799 if test "$GCC" = yes; then
9800 case $host_os in aix4.[012]|aix4.[012].*)
9801 # We only want to do this on AIX 4.2 and lower, the check
9802 # below for broken collect2 doesn't work under 4.3+
9803 collect2name=`${CC} -print-prog-name=collect2`
9804 if test -f "$collect2name" &&
9805 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9806 then
9807 # We have reworked collect2
9809 else
9810 # We have old collect2
9811 hardcode_direct=unsupported
9812 # It fails to find uninstalled libraries when the uninstalled
9813 # path is not listed in the libpath. Setting hardcode_minus_L
9814 # to unsupported forces relinking
9815 hardcode_minus_L=yes
9816 hardcode_libdir_flag_spec='-L$libdir'
9817 hardcode_libdir_separator=
9820 esac
9821 shared_flag='-shared'
9822 if test "$aix_use_runtimelinking" = yes; then
9823 shared_flag="$shared_flag "'${wl}-G'
9825 else
9826 # not using gcc
9827 if test "$host_cpu" = ia64; then
9828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9829 # chokes on -Wl,-G. The following line is correct:
9830 shared_flag='-G'
9831 else
9832 if test "$aix_use_runtimelinking" = yes; then
9833 shared_flag='${wl}-G'
9834 else
9835 shared_flag='${wl}-bM:SRE'
9840 export_dynamic_flag_spec='${wl}-bexpall'
9841 # It seems that -bexpall does not export symbols beginning with
9842 # underscore (_), so it is better to generate a list of symbols to export.
9843 always_export_symbols=yes
9844 if test "$aix_use_runtimelinking" = yes; then
9845 # Warning - without using the other runtime loading flags (-brtl),
9846 # -berok will link without error, but may produce a broken library.
9847 allow_undefined_flag='-berok'
9848 # Determine the default libpath from the value encoded in an
9849 # empty executable.
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9854 main ()
9858 return 0;
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9863 lt_aix_libpath_sed='
9864 /Import File Strings/,/^$/ {
9865 /^0/ {
9866 s/^0 *\(.*\)$/\1/
9870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871 # Check for a 64-bit object if we didn't find anything.
9872 if test -z "$aix_libpath"; then
9873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9876 rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9881 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"
9882 else
9883 if test "$host_cpu" = ia64; then
9884 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9885 allow_undefined_flag="-z nodefs"
9886 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"
9887 else
9888 # Determine the default libpath from the value encoded in an
9889 # empty executable.
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9894 main ()
9898 return 0;
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9903 lt_aix_libpath_sed='
9904 /Import File Strings/,/^$/ {
9905 /^0/ {
9906 s/^0 *\(.*\)$/\1/
9910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911 # Check for a 64-bit object if we didn't find anything.
9912 if test -z "$aix_libpath"; then
9913 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9921 # Warning - without using the other run time loading flags,
9922 # -berok will link without error, but may produce a broken library.
9923 no_undefined_flag=' ${wl}-bernotok'
9924 allow_undefined_flag=' ${wl}-berok'
9925 if test "$with_gnu_ld" = yes; then
9926 # We only use this code for GNU lds that support --whole-archive.
9927 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9928 else
9929 # Exported symbols can be pulled into shared objects from archives
9930 whole_archive_flag_spec='$convenience'
9932 archive_cmds_need_lc=yes
9933 # This is similar to how AIX traditionally builds its shared libraries.
9934 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'
9939 amigaos*)
9940 case $host_cpu in
9941 powerpc)
9942 # see comment about AmigaOS4 .so support
9943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944 archive_expsym_cmds=''
9946 m68k)
9947 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)'
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_minus_L=yes
9951 esac
9954 bsdi[45]*)
9955 export_dynamic_flag_spec=-rdynamic
9958 cygwin* | mingw* | pw32* | cegcc*)
9959 # When not using gcc, we currently assume that we are using
9960 # Microsoft Visual C++.
9961 # hardcode_libdir_flag_spec is actually meaningless, as there is
9962 # no search path for DLLs.
9963 hardcode_libdir_flag_spec=' '
9964 allow_undefined_flag=unsupported
9965 # Tell ltmain to make .lib files, not .a files.
9966 libext=lib
9967 # Tell ltmain to make .dll files, not .so files.
9968 shrext_cmds=".dll"
9969 # FIXME: Setting linknames here is a bad hack.
9970 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9971 # The linker will automatically build a .lib file if we build a DLL.
9972 old_archive_from_new_cmds='true'
9973 # FIXME: Should let the user specify the lib program.
9974 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9975 fix_srcfile_path='`cygpath -w "$srcfile"`'
9976 enable_shared_with_static_runtimes=yes
9979 darwin* | rhapsody*)
9982 archive_cmds_need_lc=no
9983 hardcode_direct=no
9984 hardcode_automatic=yes
9985 hardcode_shlibpath_var=unsupported
9986 if test "$lt_cv_ld_force_load" = "yes"; then
9987 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\"`'
9988 else
9989 whole_archive_flag_spec=''
9991 link_all_deplibs=yes
9992 allow_undefined_flag="$_lt_dar_allow_undefined"
9993 case $cc_basename in
9994 ifort*) _lt_dar_can_shared=yes ;;
9995 *) _lt_dar_can_shared=$GCC ;;
9996 esac
9997 if test "$_lt_dar_can_shared" = "yes"; then
9998 output_verbose_link_cmd=func_echo_all
9999 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10000 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10001 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}"
10002 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}"
10004 else
10005 ld_shlibs=no
10010 dgux*)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_shlibpath_var=no
10016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10017 # support. Future versions do this automatically, but an explicit c++rt0.o
10018 # does not break anything, and helps significantly (at the cost of a little
10019 # extra space).
10020 freebsd2.2*)
10021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10022 hardcode_libdir_flag_spec='-R$libdir'
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10028 freebsd2.*)
10029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_direct=yes
10031 hardcode_minus_L=yes
10032 hardcode_shlibpath_var=no
10035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10036 freebsd* | dragonfly*)
10037 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10038 hardcode_libdir_flag_spec='-R$libdir'
10039 hardcode_direct=yes
10040 hardcode_shlibpath_var=no
10043 hpux9*)
10044 if test "$GCC" = yes; then
10045 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'
10046 else
10047 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'
10049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10050 hardcode_libdir_separator=:
10051 hardcode_direct=yes
10053 # hardcode_minus_L: Not really in the search PATH,
10054 # but as the default location of the library.
10055 hardcode_minus_L=yes
10056 export_dynamic_flag_spec='${wl}-E'
10059 hpux10*)
10060 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10062 else
10063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10065 if test "$with_gnu_ld" = no; then
10066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10067 hardcode_libdir_flag_spec_ld='+b $libdir'
10068 hardcode_libdir_separator=:
10069 hardcode_direct=yes
10070 hardcode_direct_absolute=yes
10071 export_dynamic_flag_spec='${wl}-E'
10072 # hardcode_minus_L: Not really in the search PATH,
10073 # but as the default location of the library.
10074 hardcode_minus_L=yes
10078 hpux11*)
10079 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10080 case $host_cpu in
10081 hppa*64*)
10082 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 ia64*)
10085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10090 esac
10091 else
10092 case $host_cpu in
10093 hppa*64*)
10094 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 ia64*)
10097 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10101 # Older versions of the 11.00 compiler do not understand -b yet
10102 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10104 $as_echo_n "checking if $CC understands -b... " >&6; }
10105 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 lt_cv_prog_compiler__b=no
10109 save_LDFLAGS="$LDFLAGS"
10110 LDFLAGS="$LDFLAGS -b"
10111 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10113 # The linker can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 if test -s conftest.err; then
10116 # Append any errors to the config.log.
10117 cat conftest.err 1>&5
10118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10120 if diff conftest.exp conftest.er2 >/dev/null; then
10121 lt_cv_prog_compiler__b=yes
10123 else
10124 lt_cv_prog_compiler__b=yes
10127 $RM -r conftest*
10128 LDFLAGS="$save_LDFLAGS"
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10132 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10134 if test x"$lt_cv_prog_compiler__b" = xyes; then
10135 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10136 else
10137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10141 esac
10143 if test "$with_gnu_ld" = no; then
10144 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10145 hardcode_libdir_separator=:
10147 case $host_cpu in
10148 hppa*64*|ia64*)
10149 hardcode_direct=no
10150 hardcode_shlibpath_var=no
10153 hardcode_direct=yes
10154 hardcode_direct_absolute=yes
10155 export_dynamic_flag_spec='${wl}-E'
10157 # hardcode_minus_L: Not really in the search PATH,
10158 # but as the default location of the library.
10159 hardcode_minus_L=yes
10161 esac
10165 irix5* | irix6* | nonstopux*)
10166 if test "$GCC" = yes; then
10167 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'
10168 # Try to use the -exported_symbol ld option, if it does not
10169 # work, assume that -exports_file does not work either and
10170 # implicitly export all symbols.
10171 save_LDFLAGS="$LDFLAGS"
10172 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int foo(void) {}
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10178 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'
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 LDFLAGS="$save_LDFLAGS"
10184 else
10185 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'
10186 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'
10188 archive_cmds_need_lc='no'
10189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10190 hardcode_libdir_separator=:
10191 inherit_rpath=yes
10192 link_all_deplibs=yes
10195 netbsd*)
10196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10198 else
10199 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10201 hardcode_libdir_flag_spec='-R$libdir'
10202 hardcode_direct=yes
10203 hardcode_shlibpath_var=no
10206 newsos6)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=yes
10209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210 hardcode_libdir_separator=:
10211 hardcode_shlibpath_var=no
10214 *nto* | *qnx*)
10217 openbsd*)
10218 if test -f /usr/libexec/ld.so; then
10219 hardcode_direct=yes
10220 hardcode_shlibpath_var=no
10221 hardcode_direct_absolute=yes
10222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10226 export_dynamic_flag_spec='${wl}-E'
10227 else
10228 case $host_os in
10229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_libdir_flag_spec='-R$libdir'
10234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10237 esac
10239 else
10240 ld_shlibs=no
10244 os2*)
10245 hardcode_libdir_flag_spec='-L$libdir'
10246 hardcode_minus_L=yes
10247 allow_undefined_flag=unsupported
10248 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'
10249 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10252 osf3*)
10253 if test "$GCC" = yes; then
10254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10255 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'
10256 else
10257 allow_undefined_flag=' -expect_unresolved \*'
10258 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'
10260 archive_cmds_need_lc='no'
10261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10262 hardcode_libdir_separator=:
10265 osf4* | osf5*) # as osf3* with the addition of -msym flag
10266 if test "$GCC" = yes; then
10267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10268 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'
10269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 else
10271 allow_undefined_flag=' -expect_unresolved \*'
10272 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'
10273 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~
10274 $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'
10276 # Both c and cxx compiler support -rpath directly
10277 hardcode_libdir_flag_spec='-rpath $libdir'
10279 archive_cmds_need_lc='no'
10280 hardcode_libdir_separator=:
10283 solaris*)
10284 no_undefined_flag=' -z defs'
10285 if test "$GCC" = yes; then
10286 wlarc='${wl}'
10287 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10289 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10290 else
10291 case `$CC -V 2>&1` in
10292 *"Compilers 5.0"*)
10293 wlarc=''
10294 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10299 wlarc='${wl}'
10300 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10304 esac
10306 hardcode_libdir_flag_spec='-R$libdir'
10307 hardcode_shlibpath_var=no
10308 case $host_os in
10309 solaris2.[0-5] | solaris2.[0-5].*) ;;
10311 # The compiler driver will combine and reorder linker options,
10312 # but understands `-z linker_flag'. GCC discards it without `$wl',
10313 # but is careful enough not to reorder.
10314 # Supported since Solaris 2.6 (maybe 2.5.1?)
10315 if test "$GCC" = yes; then
10316 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10317 else
10318 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10321 esac
10322 link_all_deplibs=yes
10325 sunos4*)
10326 if test "x$host_vendor" = xsequent; then
10327 # Use $CC to link under sequent, because it throws in some extra .o
10328 # files that make .init and .fini sections work.
10329 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10330 else
10331 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 hardcode_direct=yes
10335 hardcode_minus_L=yes
10336 hardcode_shlibpath_var=no
10339 sysv4)
10340 case $host_vendor in
10341 sni)
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_direct=yes # is this really true???
10345 siemens)
10346 ## LD is ld it makes a PLAMLIB
10347 ## CC just makes a GrossModule.
10348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10349 reload_cmds='$CC -r -o $output$reload_objs'
10350 hardcode_direct=no
10352 motorola)
10353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10356 esac
10357 runpath_var='LD_RUN_PATH'
10358 hardcode_shlibpath_var=no
10361 sysv4.3*)
10362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_shlibpath_var=no
10364 export_dynamic_flag_spec='-Bexport'
10367 sysv4*MP*)
10368 if test -d /usr/nec; then
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_shlibpath_var=no
10371 runpath_var=LD_RUN_PATH
10372 hardcode_runpath_var=yes
10373 ld_shlibs=yes
10377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10378 no_undefined_flag='${wl}-z,text'
10379 archive_cmds_need_lc=no
10380 hardcode_shlibpath_var=no
10381 runpath_var='LD_RUN_PATH'
10383 if test "$GCC" = yes; then
10384 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 else
10387 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 sysv5* | sco3.2v5* | sco5v6*)
10393 # Note: We can NOT use -z defs as we might desire, because we do not
10394 # link with -lc, and that would cause any symbols used from libc to
10395 # always be unresolved, which means just about no library would
10396 # ever link correctly. If we're not using GNU ld we use -z text
10397 # though, which does catch some bad symbols but isn't as heavy-handed
10398 # as -z defs.
10399 no_undefined_flag='${wl}-z,text'
10400 allow_undefined_flag='${wl}-z,nodefs'
10401 archive_cmds_need_lc=no
10402 hardcode_shlibpath_var=no
10403 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10404 hardcode_libdir_separator=':'
10405 link_all_deplibs=yes
10406 export_dynamic_flag_spec='${wl}-Bexport'
10407 runpath_var='LD_RUN_PATH'
10409 if test "$GCC" = yes; then
10410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412 else
10413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 uts4*)
10419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_shlibpath_var=no
10425 ld_shlibs=no
10427 esac
10429 if test x$host_vendor = xsni; then
10430 case $host in
10431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10432 export_dynamic_flag_spec='${wl}-Blargedynsym'
10434 esac
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10439 $as_echo "$ld_shlibs" >&6; }
10440 test "$ld_shlibs" = no && can_build_shared=no
10442 with_gnu_ld=$with_gnu_ld
10459 # Do we need to explicitly link libc?
10461 case "x$archive_cmds_need_lc" in
10462 x|xyes)
10463 # Assume -lc should be added
10464 archive_cmds_need_lc=yes
10466 if test "$enable_shared" = yes && test "$GCC" = yes; then
10467 case $archive_cmds in
10468 *'~'*)
10469 # FIXME: we may have to deal with multi-command sequences.
10471 '$CC '*)
10472 # Test whether the compiler implicitly links with -lc since on some
10473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10474 # to ld, don't add -lc before -lgcc.
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10476 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10477 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 $RM conftest*
10481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10484 (eval $ac_compile) 2>&5
10485 ac_status=$?
10486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10487 test $ac_status = 0; } 2>conftest.err; then
10488 soname=conftest
10489 lib=conftest
10490 libobjs=conftest.$ac_objext
10491 deplibs=
10492 wl=$lt_prog_compiler_wl
10493 pic_flag=$lt_prog_compiler_pic
10494 compiler_flags=-v
10495 linker_flags=-v
10496 verstring=
10497 output_objdir=.
10498 libname=conftest
10499 lt_save_allow_undefined_flag=$allow_undefined_flag
10500 allow_undefined_flag=
10501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10502 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10503 ac_status=$?
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; }
10506 then
10507 lt_cv_archive_cmds_need_lc=no
10508 else
10509 lt_cv_archive_cmds_need_lc=yes
10511 allow_undefined_flag=$lt_save_allow_undefined_flag
10512 else
10513 cat conftest.err 1>&5
10515 $RM conftest*
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10519 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10520 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10522 esac
10525 esac
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10684 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10686 if test "$GCC" = yes; then
10687 case $host_os in
10688 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10689 *) lt_awk_arg="/^libraries:/" ;;
10690 esac
10691 case $host_os in
10692 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10693 *) lt_sed_strip_eq="s,=/,/,g" ;;
10694 esac
10695 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10696 case $lt_search_path_spec in
10697 *\;*)
10698 # if the path contains ";" then we assume it to be the separator
10699 # otherwise default to the standard path separator (i.e. ":") - it is
10700 # assumed that no part of a normal pathname contains ";" but that should
10701 # okay in the real world where ";" in dirpaths is itself problematic.
10702 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10707 esac
10708 # Ok, now we have the path, separated by spaces, we can step through it
10709 # and add multilib dir if necessary.
10710 lt_tmp_lt_search_path_spec=
10711 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10712 for lt_sys_path in $lt_search_path_spec; do
10713 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10715 else
10716 test -d "$lt_sys_path" && \
10717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10719 done
10720 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10721 BEGIN {RS=" "; FS="/|\n";} {
10722 lt_foo="";
10723 lt_count=0;
10724 for (lt_i = NF; lt_i > 0; lt_i--) {
10725 if ($lt_i != "" && $lt_i != ".") {
10726 if ($lt_i == "..") {
10727 lt_count++;
10728 } else {
10729 if (lt_count == 0) {
10730 lt_foo="/" $lt_i lt_foo;
10731 } else {
10732 lt_count--;
10737 if (lt_foo != "") { lt_freq[lt_foo]++; }
10738 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10740 # AWK program above erroneously prepends '/' to C:/dos/paths
10741 # for these hosts.
10742 case $host_os in
10743 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10744 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10745 esac
10746 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10747 else
10748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10750 library_names_spec=
10751 libname_spec='lib$name'
10752 soname_spec=
10753 shrext_cmds=".so"
10754 postinstall_cmds=
10755 postuninstall_cmds=
10756 finish_cmds=
10757 finish_eval=
10758 shlibpath_var=
10759 shlibpath_overrides_runpath=unknown
10760 version_type=none
10761 dynamic_linker="$host_os ld.so"
10762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10763 need_lib_prefix=unknown
10764 hardcode_into_libs=no
10766 # when you set need_version to no, make sure it does not cause -set_version
10767 # flags to be left without arguments
10768 need_version=unknown
10770 case $host_os in
10771 aix3*)
10772 version_type=linux
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10774 shlibpath_var=LIBPATH
10776 # AIX 3 has no versioning support, so we append a major version to the name.
10777 soname_spec='${libname}${release}${shared_ext}$major'
10780 aix[4-9]*)
10781 version_type=linux
10782 need_lib_prefix=no
10783 need_version=no
10784 hardcode_into_libs=yes
10785 if test "$host_cpu" = ia64; then
10786 # AIX 5 supports IA64
10787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 else
10790 # With GCC up to 2.95.x, collect2 would create an import file
10791 # for dependence libraries. The import file would start with
10792 # the line `#! .'. This would cause the generated library to
10793 # depend on `.', always an invalid library. This was fixed in
10794 # development snapshots of GCC prior to 3.0.
10795 case $host_os in
10796 aix4 | aix4.[01] | aix4.[01].*)
10797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10798 echo ' yes '
10799 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10801 else
10802 can_build_shared=no
10805 esac
10806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10807 # soname into executable. Probably we can add versioning support to
10808 # collect2, so additional links can be useful in future.
10809 if test "$aix_use_runtimelinking" = yes; then
10810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10811 # instead of lib<name>.a to let people know that these are not
10812 # typical AIX shared libraries.
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 else
10815 # We preserve .a as extension for shared libraries through AIX4.2
10816 # and later when we are not doing run time linking.
10817 library_names_spec='${libname}${release}.a $libname.a'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10820 shlibpath_var=LIBPATH
10824 amigaos*)
10825 case $host_cpu in
10826 powerpc)
10827 # Since July 2007 AmigaOS4 officially supports .so libraries.
10828 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 m68k)
10832 library_names_spec='$libname.ixlibrary $libname.a'
10833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10834 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'
10836 esac
10839 beos*)
10840 library_names_spec='${libname}${shared_ext}'
10841 dynamic_linker="$host_os ld.so"
10842 shlibpath_var=LIBRARY_PATH
10845 bsdi[45]*)
10846 version_type=linux
10847 need_version=no
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10854 # the default ld.so.conf also contains /usr/contrib/lib and
10855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10856 # libtool to hard-code these into programs
10859 cygwin* | mingw* | pw32* | cegcc*)
10860 version_type=windows
10861 shrext_cmds=".dll"
10862 need_version=no
10863 need_lib_prefix=no
10865 case $GCC,$host_os in
10866 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10867 library_names_spec='$libname.dll.a'
10868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10869 postinstall_cmds='base_file=`basename \${file}`~
10870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10871 dldir=$destdir/`dirname \$dlpath`~
10872 test -d \$dldir || mkdir -p \$dldir~
10873 $install_prog $dir/$dlname \$dldir/$dlname~
10874 chmod a+x \$dldir/$dlname~
10875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10879 dlpath=$dir/\$dldll~
10880 $RM \$dlpath'
10881 shlibpath_overrides_runpath=yes
10883 case $host_os in
10884 cygwin*)
10885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10888 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10890 mingw* | cegcc*)
10891 # MinGW DLLs use traditional 'lib' prefix
10892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10894 pw32*)
10895 # pw32 DLLs use 'pw' prefix rather than 'lib'
10896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10898 esac
10902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10904 esac
10905 dynamic_linker='Win32 ld.exe'
10906 # FIXME: first we should search . and the directory the executable is in
10907 shlibpath_var=PATH
10910 darwin* | rhapsody*)
10911 dynamic_linker="$host_os dyld"
10912 version_type=darwin
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10916 soname_spec='${libname}${release}${major}$shared_ext'
10917 shlibpath_overrides_runpath=yes
10918 shlibpath_var=DYLD_LIBRARY_PATH
10919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10925 dgux*)
10926 version_type=linux
10927 need_lib_prefix=no
10928 need_version=no
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LD_LIBRARY_PATH
10934 freebsd* | dragonfly*)
10935 # DragonFly does not have aout. When/if they implement a new
10936 # versioning mechanism, adjust this.
10937 if test -x /usr/bin/objformat; then
10938 objformat=`/usr/bin/objformat`
10939 else
10940 case $host_os in
10941 freebsd[23].*) objformat=aout ;;
10942 *) objformat=elf ;;
10943 esac
10945 version_type=freebsd-$objformat
10946 case $version_type in
10947 freebsd-elf*)
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10949 need_version=no
10950 need_lib_prefix=no
10952 freebsd-*)
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10954 need_version=yes
10956 esac
10957 shlibpath_var=LD_LIBRARY_PATH
10958 case $host_os in
10959 freebsd2.*)
10960 shlibpath_overrides_runpath=yes
10962 freebsd3.[01]* | freebsdelf3.[01]*)
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10968 shlibpath_overrides_runpath=no
10969 hardcode_into_libs=yes
10971 *) # from 4.6 on, and DragonFly
10972 shlibpath_overrides_runpath=yes
10973 hardcode_into_libs=yes
10975 esac
10978 gnu*)
10979 version_type=linux
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 hardcode_into_libs=yes
10988 haiku*)
10989 version_type=linux
10990 need_lib_prefix=no
10991 need_version=no
10992 dynamic_linker="$host_os runtime_loader"
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 shlibpath_var=LIBRARY_PATH
10996 shlibpath_overrides_runpath=yes
10997 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10998 hardcode_into_libs=yes
11001 hpux9* | hpux10* | hpux11*)
11002 # Give a soname corresponding to the major version so that dld.sl refuses to
11003 # link against other versions.
11004 version_type=sunos
11005 need_lib_prefix=no
11006 need_version=no
11007 case $host_cpu in
11008 ia64*)
11009 shrext_cmds='.so'
11010 hardcode_into_libs=yes
11011 dynamic_linker="$host_os dld.so"
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 if test "X$HPUX_IA64_MODE" = X32; then
11017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11018 else
11019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11023 hppa*64*)
11024 shrext_cmds='.sl'
11025 hardcode_into_libs=yes
11026 dynamic_linker="$host_os dld.sl"
11027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11035 shrext_cmds='.sl'
11036 dynamic_linker="$host_os dld.sl"
11037 shlibpath_var=SHLIB_PATH
11038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11042 esac
11043 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11044 postinstall_cmds='chmod 555 $lib'
11045 # or fails outright, so override atomically:
11046 install_override_mode=555
11049 interix[3-9]*)
11050 version_type=linux
11051 need_lib_prefix=no
11052 need_version=no
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=no
11058 hardcode_into_libs=yes
11061 irix5* | irix6* | nonstopux*)
11062 case $host_os in
11063 nonstopux*) version_type=nonstopux ;;
11065 if test "$lt_cv_prog_gnu_ld" = yes; then
11066 version_type=linux
11067 else
11068 version_type=irix
11069 fi ;;
11070 esac
11071 need_lib_prefix=no
11072 need_version=no
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11075 case $host_os in
11076 irix5* | nonstopux*)
11077 libsuff= shlibsuff=
11080 case $LD in # libtool.m4 will add one of these switches to LD
11081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11082 libsuff= shlibsuff= libmagic=32-bit;;
11083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11084 libsuff=32 shlibsuff=N32 libmagic=N32;;
11085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11087 *) libsuff= shlibsuff= libmagic=never-match;;
11088 esac
11090 esac
11091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11092 shlibpath_overrides_runpath=no
11093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11095 hardcode_into_libs=yes
11098 # No shared lib support for Linux oldld, aout, or coff.
11099 linux*oldld* | linux*aout* | linux*coff*)
11100 dynamic_linker=no
11103 # This must be Linux ELF.
11104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11105 version_type=linux
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11114 # Some binutils ld are patched to set DT_RUNPATH
11115 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 lt_cv_shlibpath_overrides_runpath=no
11119 save_LDFLAGS=$LDFLAGS
11120 save_libdir=$libdir
11121 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11122 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11127 main ()
11131 return 0;
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11136 lt_cv_shlibpath_overrides_runpath=yes
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LDFLAGS=$save_LDFLAGS
11142 libdir=$save_libdir
11146 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11148 # This implies no fast_install, which is unacceptable.
11149 # Some rework will be needed to allow for fast_install
11150 # before this can be enabled.
11151 hardcode_into_libs=yes
11153 # Append ld.so.conf contents to the search path
11154 if test -f /etc/ld.so.conf; then
11155 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' ' '`
11156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11159 # We used to test for /lib/ld.so.1 and disable shared libraries on
11160 # powerpc, because MkLinux only supported shared libraries with the
11161 # GNU dynamic linker. Since this was broken with cross compilers,
11162 # most powerpc-linux boxes support dynamic linking these days and
11163 # people can always --disable-shared, the test was removed, and we
11164 # assume the GNU/Linux dynamic linker is in use.
11165 dynamic_linker='GNU/Linux ld.so'
11168 netbsd*)
11169 version_type=sunos
11170 need_lib_prefix=no
11171 need_version=no
11172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11175 dynamic_linker='NetBSD (a.out) ld.so'
11176 else
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 dynamic_linker='NetBSD ld.elf_so'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 hardcode_into_libs=yes
11186 newsos6)
11187 version_type=linux
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 shlibpath_overrides_runpath=yes
11193 *nto* | *qnx*)
11194 version_type=qnx
11195 need_lib_prefix=no
11196 need_version=no
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=no
11201 hardcode_into_libs=yes
11202 dynamic_linker='ldqnx.so'
11205 openbsd*)
11206 version_type=sunos
11207 sys_lib_dlsearch_path_spec="/usr/lib"
11208 need_lib_prefix=no
11209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11210 case $host_os in
11211 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11212 *) need_version=no ;;
11213 esac
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11218 case $host_os in
11219 openbsd2.[89] | openbsd2.[89].*)
11220 shlibpath_overrides_runpath=no
11223 shlibpath_overrides_runpath=yes
11225 esac
11226 else
11227 shlibpath_overrides_runpath=yes
11231 os2*)
11232 libname_spec='$name'
11233 shrext_cmds=".dll"
11234 need_lib_prefix=no
11235 library_names_spec='$libname${shared_ext} $libname.a'
11236 dynamic_linker='OS/2 ld.exe'
11237 shlibpath_var=LIBPATH
11240 osf3* | osf4* | osf5*)
11241 version_type=osf
11242 need_lib_prefix=no
11243 need_version=no
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11251 rdos*)
11252 dynamic_linker=no
11255 solaris*)
11256 version_type=linux
11257 need_lib_prefix=no
11258 need_version=no
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=yes
11263 hardcode_into_libs=yes
11264 # ldd complains unless libraries are executable
11265 postinstall_cmds='chmod +x $lib'
11268 sunos4*)
11269 version_type=sunos
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11274 if test "$with_gnu_ld" = yes; then
11275 need_lib_prefix=no
11277 need_version=yes
11280 sysv4 | sysv4.3*)
11281 version_type=linux
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 case $host_vendor in
11286 sni)
11287 shlibpath_overrides_runpath=no
11288 need_lib_prefix=no
11289 runpath_var=LD_RUN_PATH
11291 siemens)
11292 need_lib_prefix=no
11294 motorola)
11295 need_lib_prefix=no
11296 need_version=no
11297 shlibpath_overrides_runpath=no
11298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11300 esac
11303 sysv4*MP*)
11304 if test -d /usr/nec ;then
11305 version_type=linux
11306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11307 soname_spec='$libname${shared_ext}.$major'
11308 shlibpath_var=LD_LIBRARY_PATH
11312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11313 version_type=freebsd-elf
11314 need_lib_prefix=no
11315 need_version=no
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11321 if test "$with_gnu_ld" = yes; then
11322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11323 else
11324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11325 case $host_os in
11326 sco3.2v5*)
11327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11329 esac
11331 sys_lib_dlsearch_path_spec='/usr/lib'
11334 tpf*)
11335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11336 version_type=linux
11337 need_lib_prefix=no
11338 need_version=no
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 shlibpath_overrides_runpath=no
11342 hardcode_into_libs=yes
11345 uts4*)
11346 version_type=linux
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348 soname_spec='${libname}${release}${shared_ext}$major'
11349 shlibpath_var=LD_LIBRARY_PATH
11353 dynamic_linker=no
11355 esac
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11357 $as_echo "$dynamic_linker" >&6; }
11358 test "$dynamic_linker" = no && can_build_shared=no
11360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11361 if test "$GCC" = yes; then
11362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11365 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11366 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11368 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11369 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11464 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11465 hardcode_action=
11466 if test -n "$hardcode_libdir_flag_spec" ||
11467 test -n "$runpath_var" ||
11468 test "X$hardcode_automatic" = "Xyes" ; then
11470 # We can hardcode non-existent directories.
11471 if test "$hardcode_direct" != no &&
11472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11473 # have to relink, otherwise we might link with an installed library
11474 # when we should be linking with a yet-to-be-installed one
11475 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11476 test "$hardcode_minus_L" != no; then
11477 # Linking always hardcodes the temporary library directory.
11478 hardcode_action=relink
11479 else
11480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11481 hardcode_action=immediate
11483 else
11484 # We cannot hardcode anything, or else we can only hardcode existing
11485 # directories.
11486 hardcode_action=unsupported
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11489 $as_echo "$hardcode_action" >&6; }
11491 if test "$hardcode_action" = relink ||
11492 test "$inherit_rpath" = yes; then
11493 # Fast installation is not supported
11494 enable_fast_install=no
11495 elif test "$shlibpath_overrides_runpath" = yes ||
11496 test "$enable_shared" = no; then
11497 # Fast installation is not necessary
11498 enable_fast_install=needless
11506 if test "x$enable_dlopen" != xyes; then
11507 enable_dlopen=unknown
11508 enable_dlopen_self=unknown
11509 enable_dlopen_self_static=unknown
11510 else
11511 lt_cv_dlopen=no
11512 lt_cv_dlopen_libs=
11514 case $host_os in
11515 beos*)
11516 lt_cv_dlopen="load_add_on"
11517 lt_cv_dlopen_libs=
11518 lt_cv_dlopen_self=yes
11521 mingw* | pw32* | cegcc*)
11522 lt_cv_dlopen="LoadLibrary"
11523 lt_cv_dlopen_libs=
11526 cygwin*)
11527 lt_cv_dlopen="dlopen"
11528 lt_cv_dlopen_libs=
11531 darwin*)
11532 # if libdl is installed we need to link against it
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11534 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11535 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-ldl $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char dlopen ();
11551 main ()
11553 return dlopen ();
11555 return 0;
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_dl_dlopen=yes
11560 else
11561 ac_cv_lib_dl_dlopen=no
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11568 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11569 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11571 else
11573 lt_cv_dlopen="dyld"
11574 lt_cv_dlopen_libs=
11575 lt_cv_dlopen_self=yes
11582 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11583 if test "x$ac_cv_func_shl_load" = x""yes; then :
11584 lt_cv_dlopen="shl_load"
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11587 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 ac_check_lib_save_LIBS=$LIBS
11592 LIBS="-ldld $LIBS"
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11596 /* Override any GCC internal prototype to avoid an error.
11597 Use char because int might match the return type of a GCC
11598 builtin and then its argument prototype would still apply. */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 char shl_load ();
11604 main ()
11606 return shl_load ();
11608 return 0;
11610 _ACEOF
11611 if ac_fn_c_try_link "$LINENO"; then :
11612 ac_cv_lib_dld_shl_load=yes
11613 else
11614 ac_cv_lib_dld_shl_load=no
11616 rm -f core conftest.err conftest.$ac_objext \
11617 conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11621 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11622 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11624 else
11625 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11626 if test "x$ac_cv_func_dlopen" = x""yes; then :
11627 lt_cv_dlopen="dlopen"
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11630 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_check_lib_save_LIBS=$LIBS
11635 LIBS="-ldl $LIBS"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 char dlopen ();
11647 main ()
11649 return dlopen ();
11651 return 0;
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 ac_cv_lib_dl_dlopen=yes
11656 else
11657 ac_cv_lib_dl_dlopen=no
11659 rm -f core conftest.err conftest.$ac_objext \
11660 conftest$ac_exeext conftest.$ac_ext
11661 LIBS=$ac_check_lib_save_LIBS
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11664 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11665 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11667 else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11669 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11670 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-lsvld $LIBS"
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11678 /* Override any GCC internal prototype to avoid an error.
11679 Use char because int might match the return type of a GCC
11680 builtin and then its argument prototype would still apply. */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 char dlopen ();
11686 main ()
11688 return dlopen ();
11690 return 0;
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694 ac_cv_lib_svld_dlopen=yes
11695 else
11696 ac_cv_lib_svld_dlopen=no
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LIBS=$ac_check_lib_save_LIBS
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11703 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11704 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11708 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11709 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-ldld $LIBS"
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 char dld_link ();
11725 main ()
11727 return dld_link ();
11729 return 0;
11731 _ACEOF
11732 if ac_fn_c_try_link "$LINENO"; then :
11733 ac_cv_lib_dld_dld_link=yes
11734 else
11735 ac_cv_lib_dld_dld_link=no
11737 rm -f core conftest.err conftest.$ac_objext \
11738 conftest$ac_exeext conftest.$ac_ext
11739 LIBS=$ac_check_lib_save_LIBS
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11742 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11743 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11744 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11763 esac
11765 if test "x$lt_cv_dlopen" != xno; then
11766 enable_dlopen=yes
11767 else
11768 enable_dlopen=no
11771 case $lt_cv_dlopen in
11772 dlopen)
11773 save_CPPFLAGS="$CPPFLAGS"
11774 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11776 save_LDFLAGS="$LDFLAGS"
11777 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11779 save_LIBS="$LIBS"
11780 LIBS="$lt_cv_dlopen_libs $LIBS"
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11783 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11784 if test "${lt_cv_dlopen_self+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test "$cross_compiling" = yes; then :
11788 lt_cv_dlopen_self=cross
11789 else
11790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11791 lt_status=$lt_dlunknown
11792 cat > conftest.$ac_ext <<_LT_EOF
11793 #line 11793 "configure"
11794 #include "confdefs.h"
11796 #if HAVE_DLFCN_H
11797 #include <dlfcn.h>
11798 #endif
11800 #include <stdio.h>
11802 #ifdef RTLD_GLOBAL
11803 # define LT_DLGLOBAL RTLD_GLOBAL
11804 #else
11805 # ifdef DL_GLOBAL
11806 # define LT_DLGLOBAL DL_GLOBAL
11807 # else
11808 # define LT_DLGLOBAL 0
11809 # endif
11810 #endif
11812 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11813 find out it does not work in some platform. */
11814 #ifndef LT_DLLAZY_OR_NOW
11815 # ifdef RTLD_LAZY
11816 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11817 # else
11818 # ifdef DL_LAZY
11819 # define LT_DLLAZY_OR_NOW DL_LAZY
11820 # else
11821 # ifdef RTLD_NOW
11822 # define LT_DLLAZY_OR_NOW RTLD_NOW
11823 # else
11824 # ifdef DL_NOW
11825 # define LT_DLLAZY_OR_NOW DL_NOW
11826 # else
11827 # define LT_DLLAZY_OR_NOW 0
11828 # endif
11829 # endif
11830 # endif
11831 # endif
11832 #endif
11834 /* When -fvisbility=hidden is used, assume the code has been annotated
11835 correspondingly for the symbols needed. */
11836 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11837 void fnord () __attribute__((visibility("default")));
11838 #endif
11840 void fnord () { int i=42; }
11841 int main ()
11843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11844 int status = $lt_dlunknown;
11846 if (self)
11848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11849 else
11851 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11852 else puts (dlerror ());
11854 /* dlclose (self); */
11856 else
11857 puts (dlerror ());
11859 return status;
11861 _LT_EOF
11862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11863 (eval $ac_link) 2>&5
11864 ac_status=$?
11865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11866 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11867 (./conftest; exit; ) >&5 2>/dev/null
11868 lt_status=$?
11869 case x$lt_status in
11870 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11871 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11872 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11873 esac
11874 else :
11875 # compilation failed
11876 lt_cv_dlopen_self=no
11879 rm -fr conftest*
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11884 $as_echo "$lt_cv_dlopen_self" >&6; }
11886 if test "x$lt_cv_dlopen_self" = xyes; then
11887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11889 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11890 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 if test "$cross_compiling" = yes; then :
11894 lt_cv_dlopen_self_static=cross
11895 else
11896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11897 lt_status=$lt_dlunknown
11898 cat > conftest.$ac_ext <<_LT_EOF
11899 #line 11899 "configure"
11900 #include "confdefs.h"
11902 #if HAVE_DLFCN_H
11903 #include <dlfcn.h>
11904 #endif
11906 #include <stdio.h>
11908 #ifdef RTLD_GLOBAL
11909 # define LT_DLGLOBAL RTLD_GLOBAL
11910 #else
11911 # ifdef DL_GLOBAL
11912 # define LT_DLGLOBAL DL_GLOBAL
11913 # else
11914 # define LT_DLGLOBAL 0
11915 # endif
11916 #endif
11918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11919 find out it does not work in some platform. */
11920 #ifndef LT_DLLAZY_OR_NOW
11921 # ifdef RTLD_LAZY
11922 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11923 # else
11924 # ifdef DL_LAZY
11925 # define LT_DLLAZY_OR_NOW DL_LAZY
11926 # else
11927 # ifdef RTLD_NOW
11928 # define LT_DLLAZY_OR_NOW RTLD_NOW
11929 # else
11930 # ifdef DL_NOW
11931 # define LT_DLLAZY_OR_NOW DL_NOW
11932 # else
11933 # define LT_DLLAZY_OR_NOW 0
11934 # endif
11935 # endif
11936 # endif
11937 # endif
11938 #endif
11940 /* When -fvisbility=hidden is used, assume the code has been annotated
11941 correspondingly for the symbols needed. */
11942 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11943 void fnord () __attribute__((visibility("default")));
11944 #endif
11946 void fnord () { int i=42; }
11947 int main ()
11949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11950 int status = $lt_dlunknown;
11952 if (self)
11954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11955 else
11957 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11958 else puts (dlerror ());
11960 /* dlclose (self); */
11962 else
11963 puts (dlerror ());
11965 return status;
11967 _LT_EOF
11968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11969 (eval $ac_link) 2>&5
11970 ac_status=$?
11971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11973 (./conftest; exit; ) >&5 2>/dev/null
11974 lt_status=$?
11975 case x$lt_status in
11976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11978 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11979 esac
11980 else :
11981 # compilation failed
11982 lt_cv_dlopen_self_static=no
11985 rm -fr conftest*
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11990 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11993 CPPFLAGS="$save_CPPFLAGS"
11994 LDFLAGS="$save_LDFLAGS"
11995 LIBS="$save_LIBS"
11997 esac
11999 case $lt_cv_dlopen_self in
12000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12001 *) enable_dlopen_self=unknown ;;
12002 esac
12004 case $lt_cv_dlopen_self_static in
12005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12006 *) enable_dlopen_self_static=unknown ;;
12007 esac
12026 striplib=
12027 old_striplib=
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12029 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12030 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12031 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12032 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12034 $as_echo "yes" >&6; }
12035 else
12036 # FIXME - insert some real tests, host_os isn't really good enough
12037 case $host_os in
12038 darwin*)
12039 if test -n "$STRIP" ; then
12040 striplib="$STRIP -x"
12041 old_striplib="$STRIP -S"
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043 $as_echo "yes" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12053 esac
12067 # Report which library types will actually be built
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12069 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12071 $as_echo "$can_build_shared" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12074 $as_echo_n "checking whether to build shared libraries... " >&6; }
12075 test "$can_build_shared" = "no" && enable_shared=no
12077 # On AIX, shared libraries and static libraries use the same namespace, and
12078 # are all built from PIC.
12079 case $host_os in
12080 aix3*)
12081 test "$enable_shared" = yes && enable_static=no
12082 if test -n "$RANLIB"; then
12083 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12084 postinstall_cmds='$RANLIB $lib'
12088 aix[4-9]*)
12089 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12090 test "$enable_shared" = yes && enable_static=no
12093 esac
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12095 $as_echo "$enable_shared" >&6; }
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12098 $as_echo_n "checking whether to build static libraries... " >&6; }
12099 # Make sure either enable_shared or enable_static is yes.
12100 test "$enable_shared" = yes || enable_static=yes
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12102 $as_echo "$enable_static" >&6; }
12108 ac_ext=c
12109 ac_cpp='$CPP $CPPFLAGS'
12110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12114 CC="$lt_save_CC"
12116 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12117 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12118 (test "X$CXX" != "Xg++"))) ; then
12119 ac_ext=cpp
12120 ac_cpp='$CXXCPP $CPPFLAGS'
12121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12125 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12126 if test -z "$CXXCPP"; then
12127 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 # Double quotes because CXXCPP needs to be expanded
12131 for CXXCPP in "$CXX -E" "/lib/cpp"
12133 ac_preproc_ok=false
12134 for ac_cxx_preproc_warn_flag in '' yes
12136 # Use a header file that comes with gcc, so configuring glibc
12137 # with a fresh cross-compiler works.
12138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12139 # <limits.h> exists even on freestanding compilers.
12140 # On the NeXT, cc -E runs the code through the compiler's parser,
12141 # not just through cpp. "Syntax error" is here to catch this case.
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #ifdef __STDC__
12145 # include <limits.h>
12146 #else
12147 # include <assert.h>
12148 #endif
12149 Syntax error
12150 _ACEOF
12151 if ac_fn_cxx_try_cpp "$LINENO"; then :
12153 else
12154 # Broken: fails on valid input.
12155 continue
12157 rm -f conftest.err conftest.$ac_ext
12159 # OK, works on sane cases. Now check whether nonexistent headers
12160 # can be detected and how.
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163 #include <ac_nonexistent.h>
12164 _ACEOF
12165 if ac_fn_cxx_try_cpp "$LINENO"; then :
12166 # Broken: success on invalid input.
12167 continue
12168 else
12169 # Passes both tests.
12170 ac_preproc_ok=:
12171 break
12173 rm -f conftest.err conftest.$ac_ext
12175 done
12176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12177 rm -f conftest.err conftest.$ac_ext
12178 if $ac_preproc_ok; then :
12179 break
12182 done
12183 ac_cv_prog_CXXCPP=$CXXCPP
12186 CXXCPP=$ac_cv_prog_CXXCPP
12187 else
12188 ac_cv_prog_CXXCPP=$CXXCPP
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12191 $as_echo "$CXXCPP" >&6; }
12192 ac_preproc_ok=false
12193 for ac_cxx_preproc_warn_flag in '' yes
12195 # Use a header file that comes with gcc, so configuring glibc
12196 # with a fresh cross-compiler works.
12197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12198 # <limits.h> exists even on freestanding compilers.
12199 # On the NeXT, cc -E runs the code through the compiler's parser,
12200 # not just through cpp. "Syntax error" is here to catch this case.
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203 #ifdef __STDC__
12204 # include <limits.h>
12205 #else
12206 # include <assert.h>
12207 #endif
12208 Syntax error
12209 _ACEOF
12210 if ac_fn_cxx_try_cpp "$LINENO"; then :
12212 else
12213 # Broken: fails on valid input.
12214 continue
12216 rm -f conftest.err conftest.$ac_ext
12218 # OK, works on sane cases. Now check whether nonexistent headers
12219 # can be detected and how.
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12222 #include <ac_nonexistent.h>
12223 _ACEOF
12224 if ac_fn_cxx_try_cpp "$LINENO"; then :
12225 # Broken: success on invalid input.
12226 continue
12227 else
12228 # Passes both tests.
12229 ac_preproc_ok=:
12230 break
12232 rm -f conftest.err conftest.$ac_ext
12234 done
12235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12236 rm -f conftest.err conftest.$ac_ext
12237 if $ac_preproc_ok; then :
12239 else
12240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12242 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12243 See \`config.log' for more details." "$LINENO" 5; }
12246 ac_ext=c
12247 ac_cpp='$CPP $CPPFLAGS'
12248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12252 else
12253 _lt_caught_CXX_error=yes
12256 ac_ext=cpp
12257 ac_cpp='$CXXCPP $CPPFLAGS'
12258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12262 archive_cmds_need_lc_CXX=no
12263 allow_undefined_flag_CXX=
12264 always_export_symbols_CXX=no
12265 archive_expsym_cmds_CXX=
12266 compiler_needs_object_CXX=no
12267 export_dynamic_flag_spec_CXX=
12268 hardcode_direct_CXX=no
12269 hardcode_direct_absolute_CXX=no
12270 hardcode_libdir_flag_spec_CXX=
12271 hardcode_libdir_flag_spec_ld_CXX=
12272 hardcode_libdir_separator_CXX=
12273 hardcode_minus_L_CXX=no
12274 hardcode_shlibpath_var_CXX=unsupported
12275 hardcode_automatic_CXX=no
12276 inherit_rpath_CXX=no
12277 module_cmds_CXX=
12278 module_expsym_cmds_CXX=
12279 link_all_deplibs_CXX=unknown
12280 old_archive_cmds_CXX=$old_archive_cmds
12281 reload_flag_CXX=$reload_flag
12282 reload_cmds_CXX=$reload_cmds
12283 no_undefined_flag_CXX=
12284 whole_archive_flag_spec_CXX=
12285 enable_shared_with_static_runtimes_CXX=no
12287 # Source file extension for C++ test sources.
12288 ac_ext=cpp
12290 # Object file extension for compiled C++ test sources.
12291 objext=o
12292 objext_CXX=$objext
12294 # No sense in running all these tests if we already determined that
12295 # the CXX compiler isn't working. Some variables (like enable_shared)
12296 # are currently assumed to apply to all compilers on this platform,
12297 # and will be corrupted by setting them based on a non-working compiler.
12298 if test "$_lt_caught_CXX_error" != yes; then
12299 # Code to be used in simple compile tests
12300 lt_simple_compile_test_code="int some_variable = 0;"
12302 # Code to be used in simple link tests
12303 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12312 # If no C compiler was specified, use CC.
12313 LTCC=${LTCC-"$CC"}
12315 # If no C compiler flags were specified, use CFLAGS.
12316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12318 # Allow CC to be a program name with arguments.
12319 compiler=$CC
12322 # save warnings/boilerplate of simple test code
12323 ac_outfile=conftest.$ac_objext
12324 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12326 _lt_compiler_boilerplate=`cat conftest.err`
12327 $RM conftest*
12329 ac_outfile=conftest.$ac_objext
12330 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12332 _lt_linker_boilerplate=`cat conftest.err`
12333 $RM -r conftest*
12336 # Allow CC to be a program name with arguments.
12337 lt_save_CC=$CC
12338 lt_save_LD=$LD
12339 lt_save_GCC=$GCC
12340 GCC=$GXX
12341 lt_save_with_gnu_ld=$with_gnu_ld
12342 lt_save_path_LD=$lt_cv_path_LD
12343 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12344 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12345 else
12346 $as_unset lt_cv_prog_gnu_ld
12348 if test -n "${lt_cv_path_LDCXX+set}"; then
12349 lt_cv_path_LD=$lt_cv_path_LDCXX
12350 else
12351 $as_unset lt_cv_path_LD
12353 test -z "${LDCXX+set}" || LD=$LDCXX
12354 CC=${CXX-"c++"}
12355 compiler=$CC
12356 compiler_CXX=$CC
12357 for cc_temp in $compiler""; do
12358 case $cc_temp in
12359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12361 \-*) ;;
12362 *) break;;
12363 esac
12364 done
12365 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12368 if test -n "$compiler"; then
12369 # We don't want -fno-exception when compiling C++ code, so set the
12370 # no_builtin_flag separately
12371 if test "$GXX" = yes; then
12372 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12373 else
12374 lt_prog_compiler_no_builtin_flag_CXX=
12377 if test "$GXX" = yes; then
12378 # Set up default GNU C++ configuration
12382 # Check whether --with-gnu-ld was given.
12383 if test "${with_gnu_ld+set}" = set; then :
12384 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12385 else
12386 with_gnu_ld=no
12389 ac_prog=ld
12390 if test "$GCC" = yes; then
12391 # Check if gcc -print-prog-name=ld gives a path.
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12393 $as_echo_n "checking for ld used by $CC... " >&6; }
12394 case $host in
12395 *-*-mingw*)
12396 # gcc leaves a trailing carriage return which upsets mingw
12397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12400 esac
12401 case $ac_prog in
12402 # Accept absolute paths.
12403 [\\/]* | ?:[\\/]*)
12404 re_direlt='/[^/][^/]*/\.\./'
12405 # Canonicalize the pathname of ld
12406 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12407 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12408 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12409 done
12410 test -z "$LD" && LD="$ac_prog"
12413 # If it fails, then pretend we aren't using GCC.
12414 ac_prog=ld
12417 # If it is relative, then search for the first ld in PATH.
12418 with_gnu_ld=unknown
12420 esac
12421 elif test "$with_gnu_ld" = yes; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12423 $as_echo_n "checking for GNU ld... " >&6; }
12424 else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12426 $as_echo_n "checking for non-GNU ld... " >&6; }
12428 if test "${lt_cv_path_LD+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test -z "$LD"; then
12432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12433 for ac_dir in $PATH; do
12434 IFS="$lt_save_ifs"
12435 test -z "$ac_dir" && ac_dir=.
12436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12437 lt_cv_path_LD="$ac_dir/$ac_prog"
12438 # Check to see if the program is GNU ld. I'd rather use --version,
12439 # but apparently some variants of GNU ld only accept -v.
12440 # Break only if it was the GNU/non-GNU ld that we prefer.
12441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12442 *GNU* | *'with BFD'*)
12443 test "$with_gnu_ld" != no && break
12446 test "$with_gnu_ld" != yes && break
12448 esac
12450 done
12451 IFS="$lt_save_ifs"
12452 else
12453 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12457 LD="$lt_cv_path_LD"
12458 if test -n "$LD"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12460 $as_echo "$LD" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12465 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12467 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12468 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12472 case `$LD -v 2>&1 </dev/null` in
12473 *GNU* | *'with BFD'*)
12474 lt_cv_prog_gnu_ld=yes
12477 lt_cv_prog_gnu_ld=no
12479 esac
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12482 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12483 with_gnu_ld=$lt_cv_prog_gnu_ld
12491 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12492 # archiving commands below assume that GNU ld is being used.
12493 if test "$with_gnu_ld" = yes; then
12494 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12495 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'
12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12500 # If archive_cmds runs LD, not CC, wlarc should be empty
12501 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12502 # investigate it a little bit more. (MM)
12503 wlarc='${wl}'
12505 # ancient GNU ld didn't support --whole-archive et. al.
12506 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12507 $GREP 'no-whole-archive' > /dev/null; then
12508 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12509 else
12510 whole_archive_flag_spec_CXX=
12512 else
12513 with_gnu_ld=no
12514 wlarc=
12516 # A generic and very simple default shared library creation
12517 # command for GNU C++ for the case where it uses the native
12518 # linker, instead of GNU ld. If possible, this setting should
12519 # overridden to take advantage of the native linker features on
12520 # the platform it is being used on.
12521 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12524 # Commands to make compiler produce verbose output that lists
12525 # what "hidden" libraries, object files and flags are used when
12526 # linking a shared library.
12527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12529 else
12530 GXX=no
12531 with_gnu_ld=no
12532 wlarc=
12535 # PORTME: fill in a description of your system's C++ link characteristics
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12537 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12538 ld_shlibs_CXX=yes
12539 case $host_os in
12540 aix3*)
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12544 aix[4-9]*)
12545 if test "$host_cpu" = ia64; then
12546 # On IA64, the linker does run time linking by default, so we don't
12547 # have to do anything special.
12548 aix_use_runtimelinking=no
12549 exp_sym_flag='-Bexport'
12550 no_entry_flag=""
12551 else
12552 aix_use_runtimelinking=no
12554 # Test if we are trying to use run time linking or normal
12555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12556 # need to do runtime linking.
12557 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12558 for ld_flag in $LDFLAGS; do
12559 case $ld_flag in
12560 *-brtl*)
12561 aix_use_runtimelinking=yes
12562 break
12564 esac
12565 done
12567 esac
12569 exp_sym_flag='-bexport'
12570 no_entry_flag='-bnoentry'
12573 # When large executables or shared objects are built, AIX ld can
12574 # have problems creating the table of contents. If linking a library
12575 # or program results in "error TOC overflow" add -mminimal-toc to
12576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12579 archive_cmds_CXX=''
12580 hardcode_direct_CXX=yes
12581 hardcode_direct_absolute_CXX=yes
12582 hardcode_libdir_separator_CXX=':'
12583 link_all_deplibs_CXX=yes
12584 file_list_spec_CXX='${wl}-f,'
12586 if test "$GXX" = yes; then
12587 case $host_os in aix4.[012]|aix4.[012].*)
12588 # We only want to do this on AIX 4.2 and lower, the check
12589 # below for broken collect2 doesn't work under 4.3+
12590 collect2name=`${CC} -print-prog-name=collect2`
12591 if test -f "$collect2name" &&
12592 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12593 then
12594 # We have reworked collect2
12596 else
12597 # We have old collect2
12598 hardcode_direct_CXX=unsupported
12599 # It fails to find uninstalled libraries when the uninstalled
12600 # path is not listed in the libpath. Setting hardcode_minus_L
12601 # to unsupported forces relinking
12602 hardcode_minus_L_CXX=yes
12603 hardcode_libdir_flag_spec_CXX='-L$libdir'
12604 hardcode_libdir_separator_CXX=
12606 esac
12607 shared_flag='-shared'
12608 if test "$aix_use_runtimelinking" = yes; then
12609 shared_flag="$shared_flag "'${wl}-G'
12611 else
12612 # not using gcc
12613 if test "$host_cpu" = ia64; then
12614 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12615 # chokes on -Wl,-G. The following line is correct:
12616 shared_flag='-G'
12617 else
12618 if test "$aix_use_runtimelinking" = yes; then
12619 shared_flag='${wl}-G'
12620 else
12621 shared_flag='${wl}-bM:SRE'
12626 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12627 # It seems that -bexpall does not export symbols beginning with
12628 # underscore (_), so it is better to generate a list of symbols to
12629 # export.
12630 always_export_symbols_CXX=yes
12631 if test "$aix_use_runtimelinking" = yes; then
12632 # Warning - without using the other runtime loading flags (-brtl),
12633 # -berok will link without error, but may produce a broken library.
12634 allow_undefined_flag_CXX='-berok'
12635 # Determine the default libpath from the value encoded in an empty
12636 # executable.
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12641 main ()
12645 return 0;
12647 _ACEOF
12648 if ac_fn_cxx_try_link "$LINENO"; then :
12650 lt_aix_libpath_sed='
12651 /Import File Strings/,/^$/ {
12652 /^0/ {
12653 s/^0 *\(.*\)$/\1/
12657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12658 # Check for a 64-bit object if we didn't find anything.
12659 if test -z "$aix_libpath"; then
12660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12663 rm -f core conftest.err conftest.$ac_objext \
12664 conftest$ac_exeext conftest.$ac_ext
12665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12669 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"
12670 else
12671 if test "$host_cpu" = ia64; then
12672 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12673 allow_undefined_flag_CXX="-z nodefs"
12674 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"
12675 else
12676 # Determine the default libpath from the value encoded in an
12677 # empty executable.
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12682 main ()
12686 return 0;
12688 _ACEOF
12689 if ac_fn_cxx_try_link "$LINENO"; then :
12691 lt_aix_libpath_sed='
12692 /Import File Strings/,/^$/ {
12693 /^0/ {
12694 s/^0 *\(.*\)$/\1/
12698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12699 # Check for a 64-bit object if we didn't find anything.
12700 if test -z "$aix_libpath"; then
12701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12708 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12709 # Warning - without using the other run time loading flags,
12710 # -berok will link without error, but may produce a broken library.
12711 no_undefined_flag_CXX=' ${wl}-bernotok'
12712 allow_undefined_flag_CXX=' ${wl}-berok'
12713 if test "$with_gnu_ld" = yes; then
12714 # We only use this code for GNU lds that support --whole-archive.
12715 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12716 else
12717 # Exported symbols can be pulled into shared objects from archives
12718 whole_archive_flag_spec_CXX='$convenience'
12720 archive_cmds_need_lc_CXX=yes
12721 # This is similar to how AIX traditionally builds its shared
12722 # libraries.
12723 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'
12728 beos*)
12729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12730 allow_undefined_flag_CXX=unsupported
12731 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12732 # support --undefined. This deserves some investigation. FIXME
12733 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734 else
12735 ld_shlibs_CXX=no
12739 chorus*)
12740 case $cc_basename in
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12745 esac
12748 cygwin* | mingw* | pw32* | cegcc*)
12749 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12750 # as there is no search path for DLLs.
12751 hardcode_libdir_flag_spec_CXX='-L$libdir'
12752 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12753 allow_undefined_flag_CXX=unsupported
12754 always_export_symbols_CXX=no
12755 enable_shared_with_static_runtimes_CXX=yes
12757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12758 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'
12759 # If the export-symbols file already is a .def file (1st line
12760 # is EXPORTS), use it as is; otherwise, prepend...
12761 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12762 cp $export_symbols $output_objdir/$soname.def;
12763 else
12764 echo EXPORTS > $output_objdir/$soname.def;
12765 cat $export_symbols >> $output_objdir/$soname.def;
12767 $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'
12768 else
12769 ld_shlibs_CXX=no
12772 darwin* | rhapsody*)
12775 archive_cmds_need_lc_CXX=no
12776 hardcode_direct_CXX=no
12777 hardcode_automatic_CXX=yes
12778 hardcode_shlibpath_var_CXX=unsupported
12779 if test "$lt_cv_ld_force_load" = "yes"; then
12780 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\"`'
12781 else
12782 whole_archive_flag_spec_CXX=''
12784 link_all_deplibs_CXX=yes
12785 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12786 case $cc_basename in
12787 ifort*) _lt_dar_can_shared=yes ;;
12788 *) _lt_dar_can_shared=$GCC ;;
12789 esac
12790 if test "$_lt_dar_can_shared" = "yes"; then
12791 output_verbose_link_cmd=func_echo_all
12792 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}"
12793 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12794 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}"
12795 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}"
12796 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12797 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}"
12798 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}"
12801 else
12802 ld_shlibs_CXX=no
12807 dgux*)
12808 case $cc_basename in
12809 ec++*)
12810 # FIXME: insert proper C++ library support
12811 ld_shlibs_CXX=no
12813 ghcx*)
12814 # Green Hills C++ Compiler
12815 # FIXME: insert proper C++ library support
12816 ld_shlibs_CXX=no
12819 # FIXME: insert proper C++ library support
12820 ld_shlibs_CXX=no
12822 esac
12825 freebsd2.*)
12826 # C++ shared libraries reported to be fairly broken before
12827 # switch to ELF
12828 ld_shlibs_CXX=no
12831 freebsd-elf*)
12832 archive_cmds_need_lc_CXX=no
12835 freebsd* | dragonfly*)
12836 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12837 # conventions
12838 ld_shlibs_CXX=yes
12841 gnu*)
12844 haiku*)
12845 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 link_all_deplibs_CXX=yes
12849 hpux9*)
12850 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12851 hardcode_libdir_separator_CXX=:
12852 export_dynamic_flag_spec_CXX='${wl}-E'
12853 hardcode_direct_CXX=yes
12854 hardcode_minus_L_CXX=yes # Not in the search PATH,
12855 # but as the default
12856 # location of the library.
12858 case $cc_basename in
12859 CC*)
12860 # FIXME: insert proper C++ library support
12861 ld_shlibs_CXX=no
12863 aCC*)
12864 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'
12865 # Commands to make compiler produce verbose output that lists
12866 # what "hidden" libraries, object files and flags are used when
12867 # linking a shared library.
12869 # There doesn't appear to be a way to prevent this compiler from
12870 # explicitly linking system object files so we need to strip them
12871 # from the output so that they don't get included in the library
12872 # dependencies.
12873 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"'
12876 if test "$GXX" = yes; then
12877 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'
12878 else
12879 # FIXME: insert proper C++ library support
12880 ld_shlibs_CXX=no
12883 esac
12886 hpux10*|hpux11*)
12887 if test $with_gnu_ld = no; then
12888 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12889 hardcode_libdir_separator_CXX=:
12891 case $host_cpu in
12892 hppa*64*|ia64*)
12895 export_dynamic_flag_spec_CXX='${wl}-E'
12897 esac
12899 case $host_cpu in
12900 hppa*64*|ia64*)
12901 hardcode_direct_CXX=no
12902 hardcode_shlibpath_var_CXX=no
12905 hardcode_direct_CXX=yes
12906 hardcode_direct_absolute_CXX=yes
12907 hardcode_minus_L_CXX=yes # Not in the search PATH,
12908 # but as the default
12909 # location of the library.
12911 esac
12913 case $cc_basename in
12914 CC*)
12915 # FIXME: insert proper C++ library support
12916 ld_shlibs_CXX=no
12918 aCC*)
12919 case $host_cpu in
12920 hppa*64*)
12921 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923 ia64*)
12924 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12927 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 esac
12930 # Commands to make compiler produce verbose output that lists
12931 # what "hidden" libraries, object files and flags are used when
12932 # linking a shared library.
12934 # There doesn't appear to be a way to prevent this compiler from
12935 # explicitly linking system object files so we need to strip them
12936 # from the output so that they don't get included in the library
12937 # dependencies.
12938 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"'
12941 if test "$GXX" = yes; then
12942 if test $with_gnu_ld = no; then
12943 case $host_cpu in
12944 hppa*64*)
12945 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12947 ia64*)
12948 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12951 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'
12953 esac
12955 else
12956 # FIXME: insert proper C++ library support
12957 ld_shlibs_CXX=no
12960 esac
12963 interix[3-9]*)
12964 hardcode_direct_CXX=no
12965 hardcode_shlibpath_var_CXX=no
12966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12967 export_dynamic_flag_spec_CXX='${wl}-E'
12968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12969 # Instead, shared libraries are loaded at an image base (0x10000000 by
12970 # default) and relocated if they conflict, which is a slow very memory
12971 # consuming and fragmenting process. To avoid this, we pick a random,
12972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12973 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12974 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'
12975 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'
12977 irix5* | irix6*)
12978 case $cc_basename in
12979 CC*)
12980 # SGI C++
12981 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'
12983 # Archives containing C++ object files must be created using
12984 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12985 # necessary to make sure instantiated templates are included
12986 # in the archive.
12987 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12990 if test "$GXX" = yes; then
12991 if test "$with_gnu_ld" = no; then
12992 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'
12993 else
12994 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'
12997 link_all_deplibs_CXX=yes
12999 esac
13000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13001 hardcode_libdir_separator_CXX=:
13002 inherit_rpath_CXX=yes
13005 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13006 case $cc_basename in
13007 KCC*)
13008 # Kuck and Associates, Inc. (KAI) C++ Compiler
13010 # KCC will only create a shared library if the output file
13011 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13012 # to its proper name (with version) after linking.
13013 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'
13014 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'
13015 # Commands to make compiler produce verbose output that lists
13016 # what "hidden" libraries, object files and flags are used when
13017 # linking a shared library.
13019 # There doesn't appear to be a way to prevent this compiler from
13020 # explicitly linking system object files so we need to strip them
13021 # from the output so that they don't get included in the library
13022 # dependencies.
13023 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"'
13025 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13028 # Archives containing C++ object files must be created using
13029 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13030 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13032 icpc* | ecpc* )
13033 # Intel C++
13034 with_gnu_ld=yes
13035 # version 8.0 and above of icpc choke on multiply defined symbols
13036 # if we add $predep_objects and $postdep_objects, however 7.1 and
13037 # earlier do not add the objects themselves.
13038 case `$CC -V 2>&1` in
13039 *"Version 7."*)
13040 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13041 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'
13043 *) # Version 8.0 or newer
13044 tmp_idyn=
13045 case $host_cpu in
13046 ia64*) tmp_idyn=' -i_dynamic';;
13047 esac
13048 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049 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'
13051 esac
13052 archive_cmds_need_lc_CXX=no
13053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13055 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13057 pgCC* | pgcpp*)
13058 # Portland Group C++ compiler
13059 case `$CC -V` in
13060 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13061 prelink_cmds_CXX='tpldir=Template.dir~
13062 rm -rf $tpldir~
13063 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13064 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13065 old_archive_cmds_CXX='tpldir=Template.dir~
13066 rm -rf $tpldir~
13067 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13068 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13069 $RANLIB $oldlib'
13070 archive_cmds_CXX='tpldir=Template.dir~
13071 rm -rf $tpldir~
13072 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13073 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13074 archive_expsym_cmds_CXX='tpldir=Template.dir~
13075 rm -rf $tpldir~
13076 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13077 $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'
13079 *) # Version 6 and above use weak symbols
13080 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13081 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'
13083 esac
13085 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13087 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'
13089 cxx*)
13090 # Compaq C++
13091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 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'
13094 runpath_var=LD_RUN_PATH
13095 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13096 hardcode_libdir_separator_CXX=:
13098 # Commands to make compiler produce verbose output that lists
13099 # what "hidden" libraries, object files and flags are used when
13100 # linking a shared library.
13102 # There doesn't appear to be a way to prevent this compiler from
13103 # explicitly linking system object files so we need to strip them
13104 # from the output so that they don't get included in the library
13105 # dependencies.
13106 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'
13108 xl* | mpixl* | bgxl*)
13109 # IBM XL 8.0 on PPC, with GNU ld
13110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13112 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13113 if test "x$supports_anon_versioning" = xyes; then
13114 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13116 echo "local: *; };" >> $output_objdir/$libname.ver~
13117 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13121 case `$CC -V 2>&1 | sed 5q` in
13122 *Sun\ C*)
13123 # Sun C++ 5.9
13124 no_undefined_flag_CXX=' -zdefs'
13125 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13126 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'
13127 hardcode_libdir_flag_spec_CXX='-R$libdir'
13128 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'
13129 compiler_needs_object_CXX=yes
13131 # Not sure whether something based on
13132 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13133 # would be better.
13134 output_verbose_link_cmd='func_echo_all'
13136 # Archives containing C++ object files must be created using
13137 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13138 # necessary to make sure instantiated templates are included
13139 # in the archive.
13140 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13142 esac
13144 esac
13147 lynxos*)
13148 # FIXME: insert proper C++ library support
13149 ld_shlibs_CXX=no
13152 m88k*)
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13157 mvs*)
13158 case $cc_basename in
13159 cxx*)
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13167 esac
13170 netbsd*)
13171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13172 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13173 wlarc=
13174 hardcode_libdir_flag_spec_CXX='-R$libdir'
13175 hardcode_direct_CXX=yes
13176 hardcode_shlibpath_var_CXX=no
13178 # Workaround some broken pre-1.5 toolchains
13179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13182 *nto* | *qnx*)
13183 ld_shlibs_CXX=yes
13186 openbsd2*)
13187 # C++ shared libraries are fairly broken
13188 ld_shlibs_CXX=no
13191 openbsd*)
13192 if test -f /usr/libexec/ld.so; then
13193 hardcode_direct_CXX=yes
13194 hardcode_shlibpath_var_CXX=no
13195 hardcode_direct_absolute_CXX=yes
13196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13199 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13200 export_dynamic_flag_spec_CXX='${wl}-E'
13201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13203 output_verbose_link_cmd=func_echo_all
13204 else
13205 ld_shlibs_CXX=no
13209 osf3* | osf4* | osf5*)
13210 case $cc_basename in
13211 KCC*)
13212 # Kuck and Associates, Inc. (KAI) C++ Compiler
13214 # KCC will only create a shared library if the output file
13215 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13216 # to its proper name (with version) after linking.
13217 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'
13219 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13220 hardcode_libdir_separator_CXX=:
13222 # Archives containing C++ object files must be created using
13223 # the KAI C++ compiler.
13224 case $host in
13225 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13226 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13227 esac
13229 RCC*)
13230 # Rational C++ 2.4.1
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13234 cxx*)
13235 case $host in
13236 osf3*)
13237 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13238 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'
13239 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13242 allow_undefined_flag_CXX=' -expect_unresolved \*'
13243 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'
13244 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13245 echo "-hidden">> $lib.exp~
13246 $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~
13247 $RM $lib.exp'
13248 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13250 esac
13252 hardcode_libdir_separator_CXX=:
13254 # Commands to make compiler produce verbose output that lists
13255 # what "hidden" libraries, object files and flags are used when
13256 # linking a shared library.
13258 # There doesn't appear to be a way to prevent this compiler from
13259 # explicitly linking system object files so we need to strip them
13260 # from the output so that they don't get included in the library
13261 # dependencies.
13262 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"'
13265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13266 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13267 case $host in
13268 osf3*)
13269 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'
13272 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'
13274 esac
13276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13277 hardcode_libdir_separator_CXX=:
13279 # Commands to make compiler produce verbose output that lists
13280 # what "hidden" libraries, object files and flags are used when
13281 # linking a shared library.
13282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13284 else
13285 # FIXME: insert proper C++ library support
13286 ld_shlibs_CXX=no
13289 esac
13292 psos*)
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13297 sunos4*)
13298 case $cc_basename in
13299 CC*)
13300 # Sun C++ 4.x
13301 # FIXME: insert proper C++ library support
13302 ld_shlibs_CXX=no
13304 lcc*)
13305 # Lucid
13306 # FIXME: insert proper C++ library support
13307 ld_shlibs_CXX=no
13310 # FIXME: insert proper C++ library support
13311 ld_shlibs_CXX=no
13313 esac
13316 solaris*)
13317 case $cc_basename in
13318 CC*)
13319 # Sun C++ 4.2, 5.x and Centerline C++
13320 archive_cmds_need_lc_CXX=yes
13321 no_undefined_flag_CXX=' -zdefs'
13322 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13324 $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'
13326 hardcode_libdir_flag_spec_CXX='-R$libdir'
13327 hardcode_shlibpath_var_CXX=no
13328 case $host_os in
13329 solaris2.[0-5] | solaris2.[0-5].*) ;;
13331 # The compiler driver will combine and reorder linker options,
13332 # but understands `-z linker_flag'.
13333 # Supported since Solaris 2.6 (maybe 2.5.1?)
13334 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13336 esac
13337 link_all_deplibs_CXX=yes
13339 output_verbose_link_cmd='func_echo_all'
13341 # Archives containing C++ object files must be created using
13342 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13343 # necessary to make sure instantiated templates are included
13344 # in the archive.
13345 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13347 gcx*)
13348 # Green Hills C++ Compiler
13349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13351 # The C++ compiler must be used to create the archive.
13352 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13355 # GNU C++ compiler with Solaris linker
13356 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13357 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13358 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13359 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13360 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13361 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13363 # Commands to make compiler produce verbose output that lists
13364 # what "hidden" libraries, object files and flags are used when
13365 # linking a shared library.
13366 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13367 else
13368 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13369 # platform.
13370 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13371 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13372 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13374 # Commands to make compiler produce verbose output that lists
13375 # what "hidden" libraries, object files and flags are used when
13376 # linking a shared library.
13377 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13380 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13381 case $host_os in
13382 solaris2.[0-5] | solaris2.[0-5].*) ;;
13384 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13386 esac
13389 esac
13392 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13393 no_undefined_flag_CXX='${wl}-z,text'
13394 archive_cmds_need_lc_CXX=no
13395 hardcode_shlibpath_var_CXX=no
13396 runpath_var='LD_RUN_PATH'
13398 case $cc_basename in
13399 CC*)
13400 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13401 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13404 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13405 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13407 esac
13410 sysv5* | sco3.2v5* | sco5v6*)
13411 # Note: We can NOT use -z defs as we might desire, because we do not
13412 # link with -lc, and that would cause any symbols used from libc to
13413 # always be unresolved, which means just about no library would
13414 # ever link correctly. If we're not using GNU ld we use -z text
13415 # though, which does catch some bad symbols but isn't as heavy-handed
13416 # as -z defs.
13417 no_undefined_flag_CXX='${wl}-z,text'
13418 allow_undefined_flag_CXX='${wl}-z,nodefs'
13419 archive_cmds_need_lc_CXX=no
13420 hardcode_shlibpath_var_CXX=no
13421 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13422 hardcode_libdir_separator_CXX=':'
13423 link_all_deplibs_CXX=yes
13424 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13425 runpath_var='LD_RUN_PATH'
13427 case $cc_basename in
13428 CC*)
13429 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13430 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13431 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13432 '"$old_archive_cmds_CXX"
13433 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13434 '"$reload_cmds_CXX"
13437 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13440 esac
13443 tandem*)
13444 case $cc_basename in
13445 NCC*)
13446 # NonStop-UX NCC 3.20
13447 # FIXME: insert proper C++ library support
13448 ld_shlibs_CXX=no
13451 # FIXME: insert proper C++ library support
13452 ld_shlibs_CXX=no
13454 esac
13457 vxworks*)
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13463 # FIXME: insert proper C++ library support
13464 ld_shlibs_CXX=no
13466 esac
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13469 $as_echo "$ld_shlibs_CXX" >&6; }
13470 test "$ld_shlibs_CXX" = no && can_build_shared=no
13472 GCC_CXX="$GXX"
13473 LD_CXX="$LD"
13475 ## CAVEAT EMPTOR:
13476 ## There is no encapsulation within the following macros, do not change
13477 ## the running order or otherwise move them around unless you know exactly
13478 ## what you are doing...
13479 # Dependencies to place before and after the object being linked:
13480 predep_objects_CXX=
13481 postdep_objects_CXX=
13482 predeps_CXX=
13483 postdeps_CXX=
13484 compiler_lib_search_path_CXX=
13486 cat > conftest.$ac_ext <<_LT_EOF
13487 class Foo
13489 public:
13490 Foo (void) { a = 0; }
13491 private:
13492 int a;
13494 _LT_EOF
13496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13497 (eval $ac_compile) 2>&5
13498 ac_status=$?
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500 test $ac_status = 0; }; then
13501 # Parse the compiler output and extract the necessary
13502 # objects, libraries and library flags.
13504 # Sentinel used to keep track of whether or not we are before
13505 # the conftest object file.
13506 pre_test_object_deps_done=no
13508 for p in `eval "$output_verbose_link_cmd"`; do
13509 case $p in
13511 -L* | -R* | -l*)
13512 # Some compilers place space between "-{L,R}" and the path.
13513 # Remove the space.
13514 if test $p = "-L" ||
13515 test $p = "-R"; then
13516 prev=$p
13517 continue
13518 else
13519 prev=
13522 if test "$pre_test_object_deps_done" = no; then
13523 case $p in
13524 -L* | -R*)
13525 # Internal compiler library paths should come after those
13526 # provided the user. The postdeps already come after the
13527 # user supplied libs so there is no need to process them.
13528 if test -z "$compiler_lib_search_path_CXX"; then
13529 compiler_lib_search_path_CXX="${prev}${p}"
13530 else
13531 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13534 # The "-l" case would never come before the object being
13535 # linked, so don't bother handling this case.
13536 esac
13537 else
13538 if test -z "$postdeps_CXX"; then
13539 postdeps_CXX="${prev}${p}"
13540 else
13541 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13546 *.$objext)
13547 # This assumes that the test object file only shows up
13548 # once in the compiler output.
13549 if test "$p" = "conftest.$objext"; then
13550 pre_test_object_deps_done=yes
13551 continue
13554 if test "$pre_test_object_deps_done" = no; then
13555 if test -z "$predep_objects_CXX"; then
13556 predep_objects_CXX="$p"
13557 else
13558 predep_objects_CXX="$predep_objects_CXX $p"
13560 else
13561 if test -z "$postdep_objects_CXX"; then
13562 postdep_objects_CXX="$p"
13563 else
13564 postdep_objects_CXX="$postdep_objects_CXX $p"
13569 *) ;; # Ignore the rest.
13571 esac
13572 done
13574 # Clean up.
13575 rm -f a.out a.exe
13576 else
13577 echo "libtool.m4: error: problem compiling CXX test program"
13580 $RM -f confest.$objext
13582 # PORTME: override above test on systems where it is broken
13583 case $host_os in
13584 interix[3-9]*)
13585 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13586 # hack all around it, let's just trust "g++" to DTRT.
13587 predep_objects_CXX=
13588 postdep_objects_CXX=
13589 postdeps_CXX=
13592 linux*)
13593 case `$CC -V 2>&1 | sed 5q` in
13594 *Sun\ C*)
13595 # Sun C++ 5.9
13597 # The more standards-conforming stlport4 library is
13598 # incompatible with the Cstd library. Avoid specifying
13599 # it if it's in CXXFLAGS. Ignore libCrun as
13600 # -library=stlport4 depends on it.
13601 case " $CXX $CXXFLAGS " in
13602 *" -library=stlport4 "*)
13603 solaris_use_stlport4=yes
13605 esac
13607 if test "$solaris_use_stlport4" != yes; then
13608 postdeps_CXX='-library=Cstd -library=Crun'
13611 esac
13614 solaris*)
13615 case $cc_basename in
13616 CC*)
13617 # The more standards-conforming stlport4 library is
13618 # incompatible with the Cstd library. Avoid specifying
13619 # it if it's in CXXFLAGS. Ignore libCrun as
13620 # -library=stlport4 depends on it.
13621 case " $CXX $CXXFLAGS " in
13622 *" -library=stlport4 "*)
13623 solaris_use_stlport4=yes
13625 esac
13627 # Adding this requires a known-good setup of shared libraries for
13628 # Sun compiler versions before 5.6, else PIC objects from an old
13629 # archive will be linked into the output, leading to subtle bugs.
13630 if test "$solaris_use_stlport4" != yes; then
13631 postdeps_CXX='-library=Cstd -library=Crun'
13634 esac
13636 esac
13639 case " $postdeps_CXX " in
13640 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13641 esac
13642 compiler_lib_search_dirs_CXX=
13643 if test -n "${compiler_lib_search_path_CXX}"; then
13644 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13677 lt_prog_compiler_wl_CXX=
13678 lt_prog_compiler_pic_CXX=
13679 lt_prog_compiler_static_CXX=
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13682 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13684 # C++ specific cases for pic, static, wl, etc.
13685 if test "$GXX" = yes; then
13686 lt_prog_compiler_wl_CXX='-Wl,'
13687 lt_prog_compiler_static_CXX='-static'
13689 case $host_os in
13690 aix*)
13691 # All AIX code is PIC.
13692 if test "$host_cpu" = ia64; then
13693 # AIX 5 now supports IA64 processor
13694 lt_prog_compiler_static_CXX='-Bstatic'
13696 lt_prog_compiler_pic_CXX='-fPIC'
13699 amigaos*)
13700 case $host_cpu in
13701 powerpc)
13702 # see comment about AmigaOS4 .so support
13703 lt_prog_compiler_pic_CXX='-fPIC'
13705 m68k)
13706 # FIXME: we need at least 68020 code to build shared libraries, but
13707 # adding the `-m68020' flag to GCC prevents building anything better,
13708 # like `-m68040'.
13709 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13711 esac
13714 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13715 # PIC is the default for these OSes.
13717 mingw* | cygwin* | os2* | pw32* | cegcc*)
13718 # This hack is so that the source file can tell whether it is being
13719 # built for inclusion in a dll (and should export symbols for example).
13720 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13721 # (--disable-auto-import) libraries
13722 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13724 darwin* | rhapsody*)
13725 # PIC is the default on this platform
13726 # Common symbols not allowed in MH_DYLIB files
13727 lt_prog_compiler_pic_CXX='-fno-common'
13729 *djgpp*)
13730 # DJGPP does not support shared libraries at all
13731 lt_prog_compiler_pic_CXX=
13733 haiku*)
13734 # PIC is the default for Haiku.
13735 # The "-static" flag exists, but is broken.
13736 lt_prog_compiler_static_CXX=
13738 interix[3-9]*)
13739 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13740 # Instead, we relocate shared libraries at runtime.
13742 sysv4*MP*)
13743 if test -d /usr/nec; then
13744 lt_prog_compiler_pic_CXX=-Kconform_pic
13747 hpux*)
13748 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13749 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13750 # sets the default TLS model and affects inlining.
13751 case $host_cpu in
13752 hppa*64*)
13755 lt_prog_compiler_pic_CXX='-fPIC'
13757 esac
13759 *qnx* | *nto*)
13760 # QNX uses GNU C++, but need to define -shared option too, otherwise
13761 # it will coredump.
13762 lt_prog_compiler_pic_CXX='-fPIC -shared'
13765 lt_prog_compiler_pic_CXX='-fPIC'
13767 esac
13768 else
13769 case $host_os in
13770 aix[4-9]*)
13771 # All AIX code is PIC.
13772 if test "$host_cpu" = ia64; then
13773 # AIX 5 now supports IA64 processor
13774 lt_prog_compiler_static_CXX='-Bstatic'
13775 else
13776 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13779 chorus*)
13780 case $cc_basename in
13781 cxch68*)
13782 # Green Hills C++ Compiler
13783 # _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"
13785 esac
13787 dgux*)
13788 case $cc_basename in
13789 ec++*)
13790 lt_prog_compiler_pic_CXX='-KPIC'
13792 ghcx*)
13793 # Green Hills C++ Compiler
13794 lt_prog_compiler_pic_CXX='-pic'
13798 esac
13800 freebsd* | dragonfly*)
13801 # FreeBSD uses GNU C++
13803 hpux9* | hpux10* | hpux11*)
13804 case $cc_basename in
13805 CC*)
13806 lt_prog_compiler_wl_CXX='-Wl,'
13807 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13808 if test "$host_cpu" != ia64; then
13809 lt_prog_compiler_pic_CXX='+Z'
13812 aCC*)
13813 lt_prog_compiler_wl_CXX='-Wl,'
13814 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13815 case $host_cpu in
13816 hppa*64*|ia64*)
13817 # +Z the default
13820 lt_prog_compiler_pic_CXX='+Z'
13822 esac
13826 esac
13828 interix*)
13829 # This is c89, which is MS Visual C++ (no shared libs)
13830 # Anyone wants to do a port?
13832 irix5* | irix6* | nonstopux*)
13833 case $cc_basename in
13834 CC*)
13835 lt_prog_compiler_wl_CXX='-Wl,'
13836 lt_prog_compiler_static_CXX='-non_shared'
13837 # CC pic flag -KPIC is the default.
13841 esac
13843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13844 case $cc_basename in
13845 KCC*)
13846 # KAI C++ Compiler
13847 lt_prog_compiler_wl_CXX='--backend -Wl,'
13848 lt_prog_compiler_pic_CXX='-fPIC'
13850 ecpc* )
13851 # old Intel C++ for x86_64 which still supported -KPIC.
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 lt_prog_compiler_pic_CXX='-KPIC'
13854 lt_prog_compiler_static_CXX='-static'
13856 icpc* )
13857 # Intel C++, used to be incompatible with GCC.
13858 # ICC 10 doesn't accept -KPIC any more.
13859 lt_prog_compiler_wl_CXX='-Wl,'
13860 lt_prog_compiler_pic_CXX='-fPIC'
13861 lt_prog_compiler_static_CXX='-static'
13863 pgCC* | pgcpp*)
13864 # Portland Group C++ compiler
13865 lt_prog_compiler_wl_CXX='-Wl,'
13866 lt_prog_compiler_pic_CXX='-fpic'
13867 lt_prog_compiler_static_CXX='-Bstatic'
13869 cxx*)
13870 # Compaq C++
13871 # Make sure the PIC flag is empty. It appears that all Alpha
13872 # Linux and Compaq Tru64 Unix objects are PIC.
13873 lt_prog_compiler_pic_CXX=
13874 lt_prog_compiler_static_CXX='-non_shared'
13876 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13877 # IBM XL 8.0, 9.0 on PPC and BlueGene
13878 lt_prog_compiler_wl_CXX='-Wl,'
13879 lt_prog_compiler_pic_CXX='-qpic'
13880 lt_prog_compiler_static_CXX='-qstaticlink'
13883 case `$CC -V 2>&1 | sed 5q` in
13884 *Sun\ C*)
13885 # Sun C++ 5.9
13886 lt_prog_compiler_pic_CXX='-KPIC'
13887 lt_prog_compiler_static_CXX='-Bstatic'
13888 lt_prog_compiler_wl_CXX='-Qoption ld '
13890 esac
13892 esac
13894 lynxos*)
13896 m88k*)
13898 mvs*)
13899 case $cc_basename in
13900 cxx*)
13901 lt_prog_compiler_pic_CXX='-W c,exportall'
13905 esac
13907 netbsd*)
13909 *qnx* | *nto*)
13910 # QNX uses GNU C++, but need to define -shared option too, otherwise
13911 # it will coredump.
13912 lt_prog_compiler_pic_CXX='-fPIC -shared'
13914 osf3* | osf4* | osf5*)
13915 case $cc_basename in
13916 KCC*)
13917 lt_prog_compiler_wl_CXX='--backend -Wl,'
13919 RCC*)
13920 # Rational C++ 2.4.1
13921 lt_prog_compiler_pic_CXX='-pic'
13923 cxx*)
13924 # Digital/Compaq C++
13925 lt_prog_compiler_wl_CXX='-Wl,'
13926 # Make sure the PIC flag is empty. It appears that all Alpha
13927 # Linux and Compaq Tru64 Unix objects are PIC.
13928 lt_prog_compiler_pic_CXX=
13929 lt_prog_compiler_static_CXX='-non_shared'
13933 esac
13935 psos*)
13937 solaris*)
13938 case $cc_basename in
13939 CC*)
13940 # Sun C++ 4.2, 5.x and Centerline C++
13941 lt_prog_compiler_pic_CXX='-KPIC'
13942 lt_prog_compiler_static_CXX='-Bstatic'
13943 lt_prog_compiler_wl_CXX='-Qoption ld '
13945 gcx*)
13946 # Green Hills C++ Compiler
13947 lt_prog_compiler_pic_CXX='-PIC'
13951 esac
13953 sunos4*)
13954 case $cc_basename in
13955 CC*)
13956 # Sun C++ 4.x
13957 lt_prog_compiler_pic_CXX='-pic'
13958 lt_prog_compiler_static_CXX='-Bstatic'
13960 lcc*)
13961 # Lucid
13962 lt_prog_compiler_pic_CXX='-pic'
13966 esac
13968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969 case $cc_basename in
13970 CC*)
13971 lt_prog_compiler_wl_CXX='-Wl,'
13972 lt_prog_compiler_pic_CXX='-KPIC'
13973 lt_prog_compiler_static_CXX='-Bstatic'
13975 esac
13977 tandem*)
13978 case $cc_basename in
13979 NCC*)
13980 # NonStop-UX NCC 3.20
13981 lt_prog_compiler_pic_CXX='-KPIC'
13985 esac
13987 vxworks*)
13990 lt_prog_compiler_can_build_shared_CXX=no
13992 esac
13995 case $host_os in
13996 # For platforms which do not support PIC, -DPIC is meaningless:
13997 *djgpp*)
13998 lt_prog_compiler_pic_CXX=
14001 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14003 esac
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14005 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14010 # Check to make sure the PIC flag actually works.
14012 if test -n "$lt_prog_compiler_pic_CXX"; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14014 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14015 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 lt_cv_prog_compiler_pic_works_CXX=no
14019 ac_outfile=conftest.$ac_objext
14020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14021 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14022 # Insert the option either (1) after the last *FLAGS variable, or
14023 # (2) before a word containing "conftest.", or (3) at the end.
14024 # Note that $ac_compile itself does not contain backslashes and begins
14025 # with a dollar sign (not a hyphen), so the echo should work correctly.
14026 # The option is referenced via a variable to avoid confusing sed.
14027 lt_compile=`echo "$ac_compile" | $SED \
14028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14030 -e 's:$: $lt_compiler_flag:'`
14031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14032 (eval "$lt_compile" 2>conftest.err)
14033 ac_status=$?
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 if (exit $ac_status) && test -s "$ac_outfile"; then
14037 # The compiler can only warn and ignore the option if not recognized
14038 # So say no if there are warnings other than the usual output.
14039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14042 lt_cv_prog_compiler_pic_works_CXX=yes
14045 $RM conftest*
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14049 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14051 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14052 case $lt_prog_compiler_pic_CXX in
14053 "" | " "*) ;;
14054 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14055 esac
14056 else
14057 lt_prog_compiler_pic_CXX=
14058 lt_prog_compiler_can_build_shared_CXX=no
14066 # Check to make sure the static flag actually works.
14068 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14070 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14071 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14072 $as_echo_n "(cached) " >&6
14073 else
14074 lt_cv_prog_compiler_static_works_CXX=no
14075 save_LDFLAGS="$LDFLAGS"
14076 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14077 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14079 # The linker can only warn and ignore the option if not recognized
14080 # So say no if there are warnings
14081 if test -s conftest.err; then
14082 # Append any errors to the config.log.
14083 cat conftest.err 1>&5
14084 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14086 if diff conftest.exp conftest.er2 >/dev/null; then
14087 lt_cv_prog_compiler_static_works_CXX=yes
14089 else
14090 lt_cv_prog_compiler_static_works_CXX=yes
14093 $RM -r conftest*
14094 LDFLAGS="$save_LDFLAGS"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14098 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14100 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14102 else
14103 lt_prog_compiler_static_CXX=
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14111 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 lt_cv_prog_compiler_c_o_CXX=no
14115 $RM -r conftest 2>/dev/null
14116 mkdir conftest
14117 cd conftest
14118 mkdir out
14119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14121 lt_compiler_flag="-o out/conftest2.$ac_objext"
14122 # Insert the option either (1) after the last *FLAGS variable, or
14123 # (2) before a word containing "conftest.", or (3) at the end.
14124 # Note that $ac_compile itself does not contain backslashes and begins
14125 # with a dollar sign (not a hyphen), so the echo should work correctly.
14126 lt_compile=`echo "$ac_compile" | $SED \
14127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14129 -e 's:$: $lt_compiler_flag:'`
14130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14131 (eval "$lt_compile" 2>out/conftest.err)
14132 ac_status=$?
14133 cat out/conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14136 then
14137 # The compiler can only warn and ignore the option if not recognized
14138 # So say no if there are warnings
14139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14142 lt_cv_prog_compiler_c_o_CXX=yes
14145 chmod u+w . 2>&5
14146 $RM conftest*
14147 # SGI C++ compiler will create directory out/ii_files/ for
14148 # template instantiation
14149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14150 $RM out/* && rmdir out
14151 cd ..
14152 $RM -r conftest
14153 $RM conftest*
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14157 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14162 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14163 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14164 $as_echo_n "(cached) " >&6
14165 else
14166 lt_cv_prog_compiler_c_o_CXX=no
14167 $RM -r conftest 2>/dev/null
14168 mkdir conftest
14169 cd conftest
14170 mkdir out
14171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14173 lt_compiler_flag="-o out/conftest2.$ac_objext"
14174 # Insert the option either (1) after the last *FLAGS variable, or
14175 # (2) before a word containing "conftest.", or (3) at the end.
14176 # Note that $ac_compile itself does not contain backslashes and begins
14177 # with a dollar sign (not a hyphen), so the echo should work correctly.
14178 lt_compile=`echo "$ac_compile" | $SED \
14179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14181 -e 's:$: $lt_compiler_flag:'`
14182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14183 (eval "$lt_compile" 2>out/conftest.err)
14184 ac_status=$?
14185 cat out/conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14188 then
14189 # The compiler can only warn and ignore the option if not recognized
14190 # So say no if there are warnings
14191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14192 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14193 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14194 lt_cv_prog_compiler_c_o_CXX=yes
14197 chmod u+w . 2>&5
14198 $RM conftest*
14199 # SGI C++ compiler will create directory out/ii_files/ for
14200 # template instantiation
14201 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14202 $RM out/* && rmdir out
14203 cd ..
14204 $RM -r conftest
14205 $RM conftest*
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14209 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14214 hard_links="nottested"
14215 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14216 # do not overwrite the value of need_locks provided by the user
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14218 $as_echo_n "checking if we can lock with hard links... " >&6; }
14219 hard_links=yes
14220 $RM conftest*
14221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14222 touch conftest.a
14223 ln conftest.a conftest.b 2>&5 || hard_links=no
14224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14226 $as_echo "$hard_links" >&6; }
14227 if test "$hard_links" = no; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14229 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14230 need_locks=warn
14232 else
14233 need_locks=no
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14239 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14241 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14242 case $host_os in
14243 aix[4-9]*)
14244 # If we're using GNU nm, then we don't want the "-C" option.
14245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14246 # Also, AIX nm treats weak defined symbols like other global defined
14247 # symbols, whereas GNU nm marks them as "W".
14248 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14249 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'
14250 else
14251 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14254 pw32*)
14255 export_symbols_cmds_CXX="$ltdll_cmds"
14257 cygwin* | mingw* | cegcc*)
14258 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'
14261 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14263 esac
14264 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14267 $as_echo "$ld_shlibs_CXX" >&6; }
14268 test "$ld_shlibs_CXX" = no && can_build_shared=no
14270 with_gnu_ld_CXX=$with_gnu_ld
14278 # Do we need to explicitly link libc?
14280 case "x$archive_cmds_need_lc_CXX" in
14281 x|xyes)
14282 # Assume -lc should be added
14283 archive_cmds_need_lc_CXX=yes
14285 if test "$enable_shared" = yes && test "$GCC" = yes; then
14286 case $archive_cmds_CXX in
14287 *'~'*)
14288 # FIXME: we may have to deal with multi-command sequences.
14290 '$CC '*)
14291 # Test whether the compiler implicitly links with -lc since on some
14292 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14293 # to ld, don't add -lc before -lgcc.
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14295 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14296 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 $RM conftest*
14300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14303 (eval $ac_compile) 2>&5
14304 ac_status=$?
14305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14306 test $ac_status = 0; } 2>conftest.err; then
14307 soname=conftest
14308 lib=conftest
14309 libobjs=conftest.$ac_objext
14310 deplibs=
14311 wl=$lt_prog_compiler_wl_CXX
14312 pic_flag=$lt_prog_compiler_pic_CXX
14313 compiler_flags=-v
14314 linker_flags=-v
14315 verstring=
14316 output_objdir=.
14317 libname=conftest
14318 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14319 allow_undefined_flag_CXX=
14320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14321 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14322 ac_status=$?
14323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14324 test $ac_status = 0; }
14325 then
14326 lt_cv_archive_cmds_need_lc_CXX=no
14327 else
14328 lt_cv_archive_cmds_need_lc_CXX=yes
14330 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14331 else
14332 cat conftest.err 1>&5
14334 $RM conftest*
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14338 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14339 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14341 esac
14344 esac
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14410 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14412 library_names_spec=
14413 libname_spec='lib$name'
14414 soname_spec=
14415 shrext_cmds=".so"
14416 postinstall_cmds=
14417 postuninstall_cmds=
14418 finish_cmds=
14419 finish_eval=
14420 shlibpath_var=
14421 shlibpath_overrides_runpath=unknown
14422 version_type=none
14423 dynamic_linker="$host_os ld.so"
14424 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14425 need_lib_prefix=unknown
14426 hardcode_into_libs=no
14428 # when you set need_version to no, make sure it does not cause -set_version
14429 # flags to be left without arguments
14430 need_version=unknown
14432 case $host_os in
14433 aix3*)
14434 version_type=linux
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14436 shlibpath_var=LIBPATH
14438 # AIX 3 has no versioning support, so we append a major version to the name.
14439 soname_spec='${libname}${release}${shared_ext}$major'
14442 aix[4-9]*)
14443 version_type=linux
14444 need_lib_prefix=no
14445 need_version=no
14446 hardcode_into_libs=yes
14447 if test "$host_cpu" = ia64; then
14448 # AIX 5 supports IA64
14449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 else
14452 # With GCC up to 2.95.x, collect2 would create an import file
14453 # for dependence libraries. The import file would start with
14454 # the line `#! .'. This would cause the generated library to
14455 # depend on `.', always an invalid library. This was fixed in
14456 # development snapshots of GCC prior to 3.0.
14457 case $host_os in
14458 aix4 | aix4.[01] | aix4.[01].*)
14459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14460 echo ' yes '
14461 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14463 else
14464 can_build_shared=no
14467 esac
14468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14469 # soname into executable. Probably we can add versioning support to
14470 # collect2, so additional links can be useful in future.
14471 if test "$aix_use_runtimelinking" = yes; then
14472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14473 # instead of lib<name>.a to let people know that these are not
14474 # typical AIX shared libraries.
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476 else
14477 # We preserve .a as extension for shared libraries through AIX4.2
14478 # and later when we are not doing run time linking.
14479 library_names_spec='${libname}${release}.a $libname.a'
14480 soname_spec='${libname}${release}${shared_ext}$major'
14482 shlibpath_var=LIBPATH
14486 amigaos*)
14487 case $host_cpu in
14488 powerpc)
14489 # Since July 2007 AmigaOS4 officially supports .so libraries.
14490 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 m68k)
14494 library_names_spec='$libname.ixlibrary $libname.a'
14495 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14496 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'
14498 esac
14501 beos*)
14502 library_names_spec='${libname}${shared_ext}'
14503 dynamic_linker="$host_os ld.so"
14504 shlibpath_var=LIBRARY_PATH
14507 bsdi[45]*)
14508 version_type=linux
14509 need_version=no
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14515 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14516 # the default ld.so.conf also contains /usr/contrib/lib and
14517 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14518 # libtool to hard-code these into programs
14521 cygwin* | mingw* | pw32* | cegcc*)
14522 version_type=windows
14523 shrext_cmds=".dll"
14524 need_version=no
14525 need_lib_prefix=no
14527 case $GCC,$host_os in
14528 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14529 library_names_spec='$libname.dll.a'
14530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14531 postinstall_cmds='base_file=`basename \${file}`~
14532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14533 dldir=$destdir/`dirname \$dlpath`~
14534 test -d \$dldir || mkdir -p \$dldir~
14535 $install_prog $dir/$dlname \$dldir/$dlname~
14536 chmod a+x \$dldir/$dlname~
14537 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14538 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14541 dlpath=$dir/\$dldll~
14542 $RM \$dlpath'
14543 shlibpath_overrides_runpath=yes
14545 case $host_os in
14546 cygwin*)
14547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14551 mingw* | cegcc*)
14552 # MinGW DLLs use traditional 'lib' prefix
14553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14555 pw32*)
14556 # pw32 DLLs use 'pw' prefix rather than 'lib'
14557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14559 esac
14563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14565 esac
14566 dynamic_linker='Win32 ld.exe'
14567 # FIXME: first we should search . and the directory the executable is in
14568 shlibpath_var=PATH
14571 darwin* | rhapsody*)
14572 dynamic_linker="$host_os dyld"
14573 version_type=darwin
14574 need_lib_prefix=no
14575 need_version=no
14576 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14577 soname_spec='${libname}${release}${major}$shared_ext'
14578 shlibpath_overrides_runpath=yes
14579 shlibpath_var=DYLD_LIBRARY_PATH
14580 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14582 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14585 dgux*)
14586 version_type=linux
14587 need_lib_prefix=no
14588 need_version=no
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14594 freebsd* | dragonfly*)
14595 # DragonFly does not have aout. When/if they implement a new
14596 # versioning mechanism, adjust this.
14597 if test -x /usr/bin/objformat; then
14598 objformat=`/usr/bin/objformat`
14599 else
14600 case $host_os in
14601 freebsd[23].*) objformat=aout ;;
14602 *) objformat=elf ;;
14603 esac
14605 version_type=freebsd-$objformat
14606 case $version_type in
14607 freebsd-elf*)
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14609 need_version=no
14610 need_lib_prefix=no
14612 freebsd-*)
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14614 need_version=yes
14616 esac
14617 shlibpath_var=LD_LIBRARY_PATH
14618 case $host_os in
14619 freebsd2.*)
14620 shlibpath_overrides_runpath=yes
14622 freebsd3.[01]* | freebsdelf3.[01]*)
14623 shlibpath_overrides_runpath=yes
14624 hardcode_into_libs=yes
14626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14628 shlibpath_overrides_runpath=no
14629 hardcode_into_libs=yes
14631 *) # from 4.6 on, and DragonFly
14632 shlibpath_overrides_runpath=yes
14633 hardcode_into_libs=yes
14635 esac
14638 gnu*)
14639 version_type=linux
14640 need_lib_prefix=no
14641 need_version=no
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 hardcode_into_libs=yes
14648 haiku*)
14649 version_type=linux
14650 need_lib_prefix=no
14651 need_version=no
14652 dynamic_linker="$host_os runtime_loader"
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 shlibpath_var=LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes
14657 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14658 hardcode_into_libs=yes
14661 hpux9* | hpux10* | hpux11*)
14662 # Give a soname corresponding to the major version so that dld.sl refuses to
14663 # link against other versions.
14664 version_type=sunos
14665 need_lib_prefix=no
14666 need_version=no
14667 case $host_cpu in
14668 ia64*)
14669 shrext_cmds='.so'
14670 hardcode_into_libs=yes
14671 dynamic_linker="$host_os dld.so"
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 if test "X$HPUX_IA64_MODE" = X32; then
14677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14678 else
14679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14683 hppa*64*)
14684 shrext_cmds='.sl'
14685 hardcode_into_libs=yes
14686 dynamic_linker="$host_os dld.sl"
14687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14695 shrext_cmds='.sl'
14696 dynamic_linker="$host_os dld.sl"
14697 shlibpath_var=SHLIB_PATH
14698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14702 esac
14703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14704 postinstall_cmds='chmod 555 $lib'
14705 # or fails outright, so override atomically:
14706 install_override_mode=555
14709 interix[3-9]*)
14710 version_type=linux
14711 need_lib_prefix=no
14712 need_version=no
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=no
14718 hardcode_into_libs=yes
14721 irix5* | irix6* | nonstopux*)
14722 case $host_os in
14723 nonstopux*) version_type=nonstopux ;;
14725 if test "$lt_cv_prog_gnu_ld" = yes; then
14726 version_type=linux
14727 else
14728 version_type=irix
14729 fi ;;
14730 esac
14731 need_lib_prefix=no
14732 need_version=no
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14735 case $host_os in
14736 irix5* | nonstopux*)
14737 libsuff= shlibsuff=
14740 case $LD in # libtool.m4 will add one of these switches to LD
14741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14742 libsuff= shlibsuff= libmagic=32-bit;;
14743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14744 libsuff=32 shlibsuff=N32 libmagic=N32;;
14745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14747 *) libsuff= shlibsuff= libmagic=never-match;;
14748 esac
14750 esac
14751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14752 shlibpath_overrides_runpath=no
14753 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14754 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14755 hardcode_into_libs=yes
14758 # No shared lib support for Linux oldld, aout, or coff.
14759 linux*oldld* | linux*aout* | linux*coff*)
14760 dynamic_linker=no
14763 # This must be Linux ELF.
14764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14765 version_type=linux
14766 need_lib_prefix=no
14767 need_version=no
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=no
14774 # Some binutils ld are patched to set DT_RUNPATH
14775 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 lt_cv_shlibpath_overrides_runpath=no
14779 save_LDFLAGS=$LDFLAGS
14780 save_libdir=$libdir
14781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14787 main ()
14791 return 0;
14793 _ACEOF
14794 if ac_fn_cxx_try_link "$LINENO"; then :
14795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14796 lt_cv_shlibpath_overrides_runpath=yes
14799 rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801 LDFLAGS=$save_LDFLAGS
14802 libdir=$save_libdir
14806 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14808 # This implies no fast_install, which is unacceptable.
14809 # Some rework will be needed to allow for fast_install
14810 # before this can be enabled.
14811 hardcode_into_libs=yes
14813 # Append ld.so.conf contents to the search path
14814 if test -f /etc/ld.so.conf; then
14815 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' ' '`
14816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14819 # We used to test for /lib/ld.so.1 and disable shared libraries on
14820 # powerpc, because MkLinux only supported shared libraries with the
14821 # GNU dynamic linker. Since this was broken with cross compilers,
14822 # most powerpc-linux boxes support dynamic linking these days and
14823 # people can always --disable-shared, the test was removed, and we
14824 # assume the GNU/Linux dynamic linker is in use.
14825 dynamic_linker='GNU/Linux ld.so'
14828 netbsd*)
14829 version_type=sunos
14830 need_lib_prefix=no
14831 need_version=no
14832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14835 dynamic_linker='NetBSD (a.out) ld.so'
14836 else
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14838 soname_spec='${libname}${release}${shared_ext}$major'
14839 dynamic_linker='NetBSD ld.elf_so'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 shlibpath_overrides_runpath=yes
14843 hardcode_into_libs=yes
14846 newsos6)
14847 version_type=linux
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 shlibpath_overrides_runpath=yes
14853 *nto* | *qnx*)
14854 version_type=qnx
14855 need_lib_prefix=no
14856 need_version=no
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=no
14861 hardcode_into_libs=yes
14862 dynamic_linker='ldqnx.so'
14865 openbsd*)
14866 version_type=sunos
14867 sys_lib_dlsearch_path_spec="/usr/lib"
14868 need_lib_prefix=no
14869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14870 case $host_os in
14871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14872 *) need_version=no ;;
14873 esac
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14878 case $host_os in
14879 openbsd2.[89] | openbsd2.[89].*)
14880 shlibpath_overrides_runpath=no
14883 shlibpath_overrides_runpath=yes
14885 esac
14886 else
14887 shlibpath_overrides_runpath=yes
14891 os2*)
14892 libname_spec='$name'
14893 shrext_cmds=".dll"
14894 need_lib_prefix=no
14895 library_names_spec='$libname${shared_ext} $libname.a'
14896 dynamic_linker='OS/2 ld.exe'
14897 shlibpath_var=LIBPATH
14900 osf3* | osf4* | osf5*)
14901 version_type=osf
14902 need_lib_prefix=no
14903 need_version=no
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14911 rdos*)
14912 dynamic_linker=no
14915 solaris*)
14916 version_type=linux
14917 need_lib_prefix=no
14918 need_version=no
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14923 hardcode_into_libs=yes
14924 # ldd complains unless libraries are executable
14925 postinstall_cmds='chmod +x $lib'
14928 sunos4*)
14929 version_type=sunos
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=yes
14934 if test "$with_gnu_ld" = yes; then
14935 need_lib_prefix=no
14937 need_version=yes
14940 sysv4 | sysv4.3*)
14941 version_type=linux
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 case $host_vendor in
14946 sni)
14947 shlibpath_overrides_runpath=no
14948 need_lib_prefix=no
14949 runpath_var=LD_RUN_PATH
14951 siemens)
14952 need_lib_prefix=no
14954 motorola)
14955 need_lib_prefix=no
14956 need_version=no
14957 shlibpath_overrides_runpath=no
14958 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14960 esac
14963 sysv4*MP*)
14964 if test -d /usr/nec ;then
14965 version_type=linux
14966 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14967 soname_spec='$libname${shared_ext}.$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14973 version_type=freebsd-elf
14974 need_lib_prefix=no
14975 need_version=no
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 shlibpath_overrides_runpath=yes
14980 hardcode_into_libs=yes
14981 if test "$with_gnu_ld" = yes; then
14982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14983 else
14984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14985 case $host_os in
14986 sco3.2v5*)
14987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14989 esac
14991 sys_lib_dlsearch_path_spec='/usr/lib'
14994 tpf*)
14995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14996 version_type=linux
14997 need_lib_prefix=no
14998 need_version=no
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 shlibpath_overrides_runpath=no
15002 hardcode_into_libs=yes
15005 uts4*)
15006 version_type=linux
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 shlibpath_var=LD_LIBRARY_PATH
15013 dynamic_linker=no
15015 esac
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15017 $as_echo "$dynamic_linker" >&6; }
15018 test "$dynamic_linker" = no && can_build_shared=no
15020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15021 if test "$GCC" = yes; then
15022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15025 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15026 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15028 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15029 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15070 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15071 hardcode_action_CXX=
15072 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15073 test -n "$runpath_var_CXX" ||
15074 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15076 # We can hardcode non-existent directories.
15077 if test "$hardcode_direct_CXX" != no &&
15078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15079 # have to relink, otherwise we might link with an installed library
15080 # when we should be linking with a yet-to-be-installed one
15081 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15082 test "$hardcode_minus_L_CXX" != no; then
15083 # Linking always hardcodes the temporary library directory.
15084 hardcode_action_CXX=relink
15085 else
15086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15087 hardcode_action_CXX=immediate
15089 else
15090 # We cannot hardcode anything, or else we can only hardcode existing
15091 # directories.
15092 hardcode_action_CXX=unsupported
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15095 $as_echo "$hardcode_action_CXX" >&6; }
15097 if test "$hardcode_action_CXX" = relink ||
15098 test "$inherit_rpath_CXX" = yes; then
15099 # Fast installation is not supported
15100 enable_fast_install=no
15101 elif test "$shlibpath_overrides_runpath" = yes ||
15102 test "$enable_shared" = no; then
15103 # Fast installation is not necessary
15104 enable_fast_install=needless
15113 fi # test -n "$compiler"
15115 CC=$lt_save_CC
15116 LDCXX=$LD
15117 LD=$lt_save_LD
15118 GCC=$lt_save_GCC
15119 with_gnu_ld=$lt_save_with_gnu_ld
15120 lt_cv_path_LDCXX=$lt_cv_path_LD
15121 lt_cv_path_LD=$lt_save_path_LD
15122 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15123 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15124 fi # test "$_lt_caught_CXX_error" != yes
15126 ac_ext=c
15127 ac_cpp='$CPP $CPPFLAGS'
15128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15144 ac_config_commands="$ac_config_commands libtool"
15149 # Only expand once:
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15157 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15158 # Check whether --enable-maintainer-mode was given.
15159 if test "${enable_maintainer_mode+set}" = set; then :
15160 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15161 else
15162 USE_MAINTAINER_MODE=no
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15166 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15167 if test $USE_MAINTAINER_MODE = yes; then
15168 MAINTAINER_MODE_TRUE=
15169 MAINTAINER_MODE_FALSE='#'
15170 else
15171 MAINTAINER_MODE_TRUE='#'
15172 MAINTAINER_MODE_FALSE=
15175 MAINT=$MAINTAINER_MODE_TRUE
15179 # For libtool versioning info, format is CURRENT:REVISION:AGE
15180 libtool_VERSION=1:0:0
15183 # Check header files.
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15185 $as_echo_n "checking for ANSI C header files... " >&6; }
15186 if test "${ac_cv_header_stdc+set}" = set; then :
15187 $as_echo_n "(cached) " >&6
15188 else
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 #include <stdlib.h>
15192 #include <stdarg.h>
15193 #include <string.h>
15194 #include <float.h>
15197 main ()
15201 return 0;
15203 _ACEOF
15204 if ac_fn_c_try_compile "$LINENO"; then :
15205 ac_cv_header_stdc=yes
15206 else
15207 ac_cv_header_stdc=no
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 if test $ac_cv_header_stdc = yes; then
15212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 #include <string.h>
15217 _ACEOF
15218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15219 $EGREP "memchr" >/dev/null 2>&1; then :
15221 else
15222 ac_cv_header_stdc=no
15224 rm -f conftest*
15228 if test $ac_cv_header_stdc = yes; then
15229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232 #include <stdlib.h>
15234 _ACEOF
15235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15236 $EGREP "free" >/dev/null 2>&1; then :
15238 else
15239 ac_cv_header_stdc=no
15241 rm -f conftest*
15245 if test $ac_cv_header_stdc = yes; then
15246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15247 if test "$cross_compiling" = yes; then :
15249 else
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15252 #include <ctype.h>
15253 #include <stdlib.h>
15254 #if ((' ' & 0x0FF) == 0x020)
15255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15257 #else
15258 # define ISLOWER(c) \
15259 (('a' <= (c) && (c) <= 'i') \
15260 || ('j' <= (c) && (c) <= 'r') \
15261 || ('s' <= (c) && (c) <= 'z'))
15262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15263 #endif
15265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15267 main ()
15269 int i;
15270 for (i = 0; i < 256; i++)
15271 if (XOR (islower (i), ISLOWER (i))
15272 || toupper (i) != TOUPPER (i))
15273 return 2;
15274 return 0;
15276 _ACEOF
15277 if ac_fn_c_try_run "$LINENO"; then :
15279 else
15280 ac_cv_header_stdc=no
15282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15283 conftest.$ac_objext conftest.beam conftest.$ac_ext
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15289 $as_echo "$ac_cv_header_stdc" >&6; }
15290 if test $ac_cv_header_stdc = yes; then
15292 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15297 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15298 if test "${ac_cv_header_time+set}" = set; then :
15299 $as_echo_n "(cached) " >&6
15300 else
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 #include <sys/types.h>
15304 #include <sys/time.h>
15305 #include <time.h>
15308 main ()
15310 if ((struct tm *) 0)
15311 return 0;
15313 return 0;
15315 _ACEOF
15316 if ac_fn_c_try_compile "$LINENO"; then :
15317 ac_cv_header_time=yes
15318 else
15319 ac_cv_header_time=no
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15324 $as_echo "$ac_cv_header_time" >&6; }
15325 if test $ac_cv_header_time = yes; then
15327 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15332 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15333 if test "${gcc_cv_header_string+set}" = set; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <string.h>
15339 #include <strings.h>
15341 main ()
15345 return 0;
15347 _ACEOF
15348 if ac_fn_c_try_compile "$LINENO"; then :
15349 gcc_cv_header_string=yes
15350 else
15351 gcc_cv_header_string=no
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15356 $as_echo "$gcc_cv_header_string" >&6; }
15357 if test $gcc_cv_header_string = yes; then
15359 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15363 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15364 do :
15365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15366 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15367 eval as_val=\$$as_ac_Header
15368 if test "x$as_val" = x""yes; then :
15369 cat >>confdefs.h <<_ACEOF
15370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15371 _ACEOF
15375 done
15380 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15382 acx_cv_header_stdint=stddef.h
15383 acx_cv_header_stdint_kind="(already complete)"
15384 for i in stdint.h $inttype_headers; do
15385 unset ac_cv_type_uintptr_t
15386 unset ac_cv_type_uintmax_t
15387 unset ac_cv_type_int_least32_t
15388 unset ac_cv_type_int_fast32_t
15389 unset ac_cv_type_uint64_t
15390 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15391 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15392 #include <$i>
15394 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15395 acx_cv_header_stdint=$i
15396 else
15397 continue
15400 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15401 #include <$i>
15403 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15405 else
15406 acx_cv_header_stdint_kind="(mostly complete)"
15409 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15410 #include <$i>
15412 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15414 else
15415 acx_cv_header_stdint_kind="(mostly complete)"
15418 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15419 #include <$i>
15421 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15423 else
15424 acx_cv_header_stdint_kind="(mostly complete)"
15427 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15428 #include <$i>
15430 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15432 else
15433 acx_cv_header_stdint_kind="(lacks uint64_t)"
15436 break
15437 done
15438 if test "$acx_cv_header_stdint" = stddef.h; then
15439 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15440 for i in stdint.h $inttype_headers; do
15441 unset ac_cv_type_uintptr_t
15442 unset ac_cv_type_uint32_t
15443 unset ac_cv_type_uint64_t
15444 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15445 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15446 #include <$i>
15448 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15449 acx_cv_header_stdint=$i
15450 else
15451 continue
15454 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15455 #include <$i>
15457 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15461 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15462 #include <$i>
15464 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15468 break
15469 done
15471 if test "$acx_cv_header_stdint" = stddef.h; then
15472 acx_cv_header_stdint_kind="(u_intXX_t style)"
15473 for i in sys/types.h $inttype_headers; do
15474 unset ac_cv_type_u_int32_t
15475 unset ac_cv_type_u_int64_t
15476 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15477 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15478 #include <$i>
15480 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15481 acx_cv_header_stdint=$i
15482 else
15483 continue
15486 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15487 #include <$i>
15489 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15493 break
15494 done
15496 if test "$acx_cv_header_stdint" = stddef.h; then
15497 acx_cv_header_stdint_kind="(using manual detection)"
15500 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15501 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15502 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15503 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15504 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15506 # ----------------- Summarize what we found so far
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15509 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15511 case `$as_basename -- gstdint.h ||
15512 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15513 Xgstdint.h : 'X\(//\)$' \| \
15514 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15515 $as_echo X/gstdint.h |
15516 sed '/^.*\/\([^/][^/]*\)\/*$/{
15517 s//\1/
15520 /^X\/\(\/\/\)$/{
15521 s//\1/
15524 /^X\/\(\/\).*/{
15525 s//\1/
15528 s/.*/./; q'` in
15529 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15530 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15531 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15532 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15533 *) ;;
15534 esac
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15537 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15539 # ----------------- done included file, check C basic types --------
15541 # Lacking an uintptr_t? Test size of void *
15542 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15543 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15546 # This bug is HP SR number 8606223364.
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15548 $as_echo_n "checking size of void *... " >&6; }
15549 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15550 $as_echo_n "(cached) " >&6
15551 else
15552 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15554 else
15555 if test "$ac_cv_type_void_p" = yes; then
15556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15558 { as_fn_set_status 77
15559 as_fn_error "cannot compute sizeof (void *)
15560 See \`config.log' for more details." "$LINENO" 5; }; }
15561 else
15562 ac_cv_sizeof_void_p=0
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15568 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15572 cat >>confdefs.h <<_ACEOF
15573 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15574 _ACEOF
15577 esac
15579 # Lacking an uint64_t? Test size of long
15580 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15581 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15584 # This bug is HP SR number 8606223364.
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15586 $as_echo_n "checking size of long... " >&6; }
15587 if test "${ac_cv_sizeof_long+set}" = set; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15592 else
15593 if test "$ac_cv_type_long" = yes; then
15594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15596 { as_fn_set_status 77
15597 as_fn_error "cannot compute sizeof (long)
15598 See \`config.log' for more details." "$LINENO" 5; }; }
15599 else
15600 ac_cv_sizeof_long=0
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15606 $as_echo "$ac_cv_sizeof_long" >&6; }
15610 cat >>confdefs.h <<_ACEOF
15611 #define SIZEOF_LONG $ac_cv_sizeof_long
15612 _ACEOF
15615 esac
15617 if test $acx_cv_header_stdint = stddef.h; then
15618 # Lacking a good header? Test size of everything and deduce all types.
15619 # The cast to long int works around a bug in the HP C Compiler
15620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15622 # This bug is HP SR number 8606223364.
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15624 $as_echo_n "checking size of int... " >&6; }
15625 if test "${ac_cv_sizeof_int+set}" = set; then :
15626 $as_echo_n "(cached) " >&6
15627 else
15628 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15630 else
15631 if test "$ac_cv_type_int" = yes; then
15632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15634 { as_fn_set_status 77
15635 as_fn_error "cannot compute sizeof (int)
15636 See \`config.log' for more details." "$LINENO" 5; }; }
15637 else
15638 ac_cv_sizeof_int=0
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15644 $as_echo "$ac_cv_sizeof_int" >&6; }
15648 cat >>confdefs.h <<_ACEOF
15649 #define SIZEOF_INT $ac_cv_sizeof_int
15650 _ACEOF
15653 # The cast to long int works around a bug in the HP C Compiler
15654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15656 # This bug is HP SR number 8606223364.
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15658 $as_echo_n "checking size of short... " >&6; }
15659 if test "${ac_cv_sizeof_short+set}" = set; then :
15660 $as_echo_n "(cached) " >&6
15661 else
15662 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15664 else
15665 if test "$ac_cv_type_short" = yes; then
15666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15668 { as_fn_set_status 77
15669 as_fn_error "cannot compute sizeof (short)
15670 See \`config.log' for more details." "$LINENO" 5; }; }
15671 else
15672 ac_cv_sizeof_short=0
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15678 $as_echo "$ac_cv_sizeof_short" >&6; }
15682 cat >>confdefs.h <<_ACEOF
15683 #define SIZEOF_SHORT $ac_cv_sizeof_short
15684 _ACEOF
15687 # The cast to long int works around a bug in the HP C Compiler
15688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15690 # This bug is HP SR number 8606223364.
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15692 $as_echo_n "checking size of char... " >&6; }
15693 if test "${ac_cv_sizeof_char+set}" = set; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15698 else
15699 if test "$ac_cv_type_char" = yes; then
15700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15702 { as_fn_set_status 77
15703 as_fn_error "cannot compute sizeof (char)
15704 See \`config.log' for more details." "$LINENO" 5; }; }
15705 else
15706 ac_cv_sizeof_char=0
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15712 $as_echo "$ac_cv_sizeof_char" >&6; }
15716 cat >>confdefs.h <<_ACEOF
15717 #define SIZEOF_CHAR $ac_cv_sizeof_char
15718 _ACEOF
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15723 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15724 case "$ac_cv_sizeof_char" in
15725 1) acx_cv_type_int8_t=char ;;
15726 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15727 esac
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15729 $as_echo "$acx_cv_type_int8_t" >&6; }
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15732 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15733 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15734 2:*) acx_cv_type_int16_t=int ;;
15735 *:2) acx_cv_type_int16_t=short ;;
15736 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15737 esac
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15739 $as_echo "$acx_cv_type_int16_t" >&6; }
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15742 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15743 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15744 4:*) acx_cv_type_int32_t=int ;;
15745 *:4) acx_cv_type_int32_t=long ;;
15746 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15747 esac
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15749 $as_echo "$acx_cv_type_int32_t" >&6; }
15752 # These tests are here to make the output prettier
15754 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15755 case "$ac_cv_sizeof_long" in
15756 8) acx_cv_type_int64_t=long ;;
15757 esac
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15759 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15761 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15764 # Now we can use the above types
15766 if test "$ac_cv_type_uintptr_t" != yes; then
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15768 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15769 case $ac_cv_sizeof_void_p in
15770 2) acx_cv_type_intptr_t=int16_t ;;
15771 4) acx_cv_type_intptr_t=int32_t ;;
15772 8) acx_cv_type_intptr_t=int64_t ;;
15773 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15774 esac
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15776 $as_echo "$acx_cv_type_intptr_t" >&6; }
15779 # ----------------- done all checks, emit header -------------
15780 ac_config_commands="$ac_config_commands gstdint.h"
15786 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15787 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15788 gcc_header_sys_mman_h=yes
15789 else
15790 gcc_header_sys_mman_h=no
15794 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15795 if test "x$ac_cv_func_mmap" = x""yes; then :
15796 gcc_func_mmap=yes
15797 else
15798 gcc_func_mmap=no
15801 if test "$gcc_header_sys_mman_h" != yes \
15802 || test "$gcc_func_mmap" != yes; then
15803 gcc_cv_func_mmap_file=no
15804 gcc_cv_func_mmap_dev_zero=no
15805 gcc_cv_func_mmap_anon=no
15806 else
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15808 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15809 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15812 # Add a system to this blacklist if
15813 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15814 # memory area containing the same data that you'd get if you applied
15815 # read() to the same fd. The only system known to have a problem here
15816 # is VMS, where text files have record structure.
15817 case "$host_os" in
15818 *vms* | ultrix*)
15819 gcc_cv_func_mmap_file=no ;;
15821 gcc_cv_func_mmap_file=yes;;
15822 esac
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15825 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15827 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15828 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 # Add a system to this blacklist if it has mmap() but /dev/zero
15832 # does not exist, or if mmapping /dev/zero does not give anonymous
15833 # zeroed pages with both the following properties:
15834 # 1. If you map N consecutive pages in with one call, and then
15835 # unmap any subset of those pages, the pages that were not
15836 # explicitly unmapped remain accessible.
15837 # 2. If you map two adjacent blocks of memory and then unmap them
15838 # both at once, they must both go away.
15839 # Systems known to be in this category are Windows (all variants),
15840 # VMS, and Darwin.
15841 case "$host_os" in
15842 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15843 gcc_cv_func_mmap_dev_zero=no ;;
15845 gcc_cv_func_mmap_dev_zero=yes;;
15846 esac
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15849 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15851 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15853 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15854 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 #include <sys/types.h>
15860 #include <sys/mman.h>
15861 #include <unistd.h>
15863 #ifndef MAP_ANONYMOUS
15864 #define MAP_ANONYMOUS MAP_ANON
15865 #endif
15868 main ()
15870 int n = MAP_ANONYMOUS;
15872 return 0;
15874 _ACEOF
15875 if ac_fn_c_try_compile "$LINENO"; then :
15876 gcc_cv_decl_map_anon=yes
15877 else
15878 gcc_cv_decl_map_anon=no
15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15883 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15885 if test $gcc_cv_decl_map_anon = no; then
15886 gcc_cv_func_mmap_anon=no
15887 else
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15889 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15890 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
15892 else
15893 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15894 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15895 # doesn't give anonymous zeroed pages with the same properties listed
15896 # above for use of /dev/zero.
15897 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15898 case "$host_os" in
15899 *vms* | cygwin* | pe | mingw* | sco* | udk* )
15900 gcc_cv_func_mmap_anon=no ;;
15902 gcc_cv_func_mmap_anon=yes;;
15903 esac
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15906 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15910 if test $gcc_cv_func_mmap_file = yes; then
15912 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15915 if test $gcc_cv_func_mmap_dev_zero = yes; then
15917 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15920 if test $gcc_cv_func_mmap_anon = yes; then
15922 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15928 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15929 if test "${ac_cv_c_bigendian+set}" = set; then :
15930 $as_echo_n "(cached) " >&6
15931 else
15932 ac_cv_c_bigendian=unknown
15933 # See if we're dealing with a universal compiler.
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15936 #ifndef __APPLE_CC__
15937 not a universal capable compiler
15938 #endif
15939 typedef int dummy;
15941 _ACEOF
15942 if ac_fn_c_try_compile "$LINENO"; then :
15944 # Check for potential -arch flags. It is not universal unless
15945 # there are at least two -arch flags with different values.
15946 ac_arch=
15947 ac_prev=
15948 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15949 if test -n "$ac_prev"; then
15950 case $ac_word in
15951 i?86 | x86_64 | ppc | ppc64)
15952 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15953 ac_arch=$ac_word
15954 else
15955 ac_cv_c_bigendian=universal
15956 break
15959 esac
15960 ac_prev=
15961 elif test "x$ac_word" = "x-arch"; then
15962 ac_prev=arch
15964 done
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 if test $ac_cv_c_bigendian = unknown; then
15968 # See if sys/param.h defines the BYTE_ORDER macro.
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 #include <sys/types.h>
15972 #include <sys/param.h>
15975 main ()
15977 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15978 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15979 && LITTLE_ENDIAN)
15980 bogus endian macros
15981 #endif
15984 return 0;
15986 _ACEOF
15987 if ac_fn_c_try_compile "$LINENO"; then :
15988 # It does; now see whether it defined to BIG_ENDIAN or not.
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991 #include <sys/types.h>
15992 #include <sys/param.h>
15995 main ()
15997 #if BYTE_ORDER != BIG_ENDIAN
15998 not big endian
15999 #endif
16002 return 0;
16004 _ACEOF
16005 if ac_fn_c_try_compile "$LINENO"; then :
16006 ac_cv_c_bigendian=yes
16007 else
16008 ac_cv_c_bigendian=no
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 if test $ac_cv_c_bigendian = unknown; then
16015 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 #include <limits.h>
16021 main ()
16023 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16024 bogus endian macros
16025 #endif
16028 return 0;
16030 _ACEOF
16031 if ac_fn_c_try_compile "$LINENO"; then :
16032 # It does; now see whether it defined to _BIG_ENDIAN or not.
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16035 #include <limits.h>
16038 main ()
16040 #ifndef _BIG_ENDIAN
16041 not big endian
16042 #endif
16045 return 0;
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049 ac_cv_c_bigendian=yes
16050 else
16051 ac_cv_c_bigendian=no
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 if test $ac_cv_c_bigendian = unknown; then
16058 # Compile a test program.
16059 if test "$cross_compiling" = yes; then :
16060 # Try to guess by grepping values from an object file.
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 short int ascii_mm[] =
16064 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16065 short int ascii_ii[] =
16066 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16067 int use_ascii (int i) {
16068 return ascii_mm[i] + ascii_ii[i];
16070 short int ebcdic_ii[] =
16071 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16072 short int ebcdic_mm[] =
16073 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16074 int use_ebcdic (int i) {
16075 return ebcdic_mm[i] + ebcdic_ii[i];
16077 extern int foo;
16080 main ()
16082 return use_ascii (foo) == use_ebcdic (foo);
16084 return 0;
16086 _ACEOF
16087 if ac_fn_c_try_compile "$LINENO"; then :
16088 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16089 ac_cv_c_bigendian=yes
16091 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16092 if test "$ac_cv_c_bigendian" = unknown; then
16093 ac_cv_c_bigendian=no
16094 else
16095 # finding both strings is unlikely to happen, but who knows?
16096 ac_cv_c_bigendian=unknown
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 else
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104 $ac_includes_default
16106 main ()
16109 /* Are we little or big endian? From Harbison&Steele. */
16110 union
16112 long int l;
16113 char c[sizeof (long int)];
16114 } u;
16115 u.l = 1;
16116 return u.c[sizeof (long int) - 1] == 1;
16119 return 0;
16121 _ACEOF
16122 if ac_fn_c_try_run "$LINENO"; then :
16123 ac_cv_c_bigendian=no
16124 else
16125 ac_cv_c_bigendian=yes
16127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16128 conftest.$ac_objext conftest.beam conftest.$ac_ext
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16134 $as_echo "$ac_cv_c_bigendian" >&6; }
16135 case $ac_cv_c_bigendian in #(
16136 yes)
16137 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16138 ;; #(
16140 ;; #(
16141 universal)
16143 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16145 ;; #(
16147 as_fn_error "unknown endianness
16148 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16149 esac
16151 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16154 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16155 # In case the pthread.h system header is not found, this test will fail.
16156 XPCFLAGS=""
16157 CFLAGS="$CFLAGS -pthread"
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16160 #include <pthread.h>
16161 void *g(void *d) { return NULL; }
16163 main ()
16165 pthread_t t; pthread_create(&t,NULL,g,NULL);
16167 return 0;
16169 _ACEOF
16170 if ac_fn_c_try_link "$LINENO"; then :
16171 XPCFLAGS=" -Wc,-pthread"
16172 else
16173 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16176 #include <pthread.h>
16177 void *g(void *d) { return NULL; }
16179 main ()
16181 pthread_t t; pthread_create(&t,NULL,g,NULL);
16183 return 0;
16185 _ACEOF
16186 if ac_fn_c_try_link "$LINENO"; then :
16188 else
16189 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16191 rm -f core conftest.err conftest.$ac_objext \
16192 conftest$ac_exeext conftest.$ac_ext
16194 rm -f core conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16197 # Check for functions needed.
16198 for ac_func in strtoull memalign posix_memalign getauxval
16199 do :
16200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16202 eval as_val=\$$as_ac_var
16203 if test "x$as_val" = x""yes; then :
16204 cat >>confdefs.h <<_ACEOF
16205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16206 _ACEOF
16209 done
16212 # Check for broken semaphore implementation on darwin.
16213 # sem_init returns: sem_init error: Function not implemented.
16214 case "$host" in
16215 *-darwin*)
16217 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16220 esac
16222 # Check whether --enable-linux-futex was given.
16223 if test "${enable_linux_futex+set}" = set; then :
16224 enableval=$enable_linux_futex;
16225 case "$enableval" in
16226 yes|no|default) ;;
16227 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16228 esac
16230 else
16231 enable_linux_futex=default
16235 case "$target" in
16236 *-linux*)
16237 case "$enable_linux_futex" in
16238 default)
16239 # If headers don't have gettid/futex syscalls definition, then
16240 # default to no, otherwise there will be compile time failures.
16241 # Otherwise, default to yes. If we don't detect we are
16242 # compiled/linked against NPTL and not cross-compiling, check
16243 # if programs are run by default against NPTL and if not, issue
16244 # a warning.
16245 enable_linux_futex=no
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248 #include <sys/syscall.h>
16249 int lk;
16251 main ()
16253 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16255 return 0;
16257 _ACEOF
16258 if ac_fn_c_try_link "$LINENO"; then :
16259 save_LIBS="$LIBS"
16260 LIBS="-lpthread $LIBS"
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 #ifndef _GNU_SOURCE
16264 #define _GNU_SOURCE 1
16265 #endif
16266 #include <pthread.h>
16267 pthread_t th; void *status;
16269 main ()
16271 pthread_tryjoin_np (th, &status);
16273 return 0;
16275 _ACEOF
16276 if ac_fn_c_try_link "$LINENO"; then :
16277 enable_linux_futex=yes
16278 else
16279 if test x$cross_compiling = xno; then
16280 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16281 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16283 If so, please configure with --disable-linux-futex" >&5
16284 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16285 If so, please configure with --disable-linux-futex" >&2;}
16288 enable_linux_futex=yes
16290 rm -f core conftest.err conftest.$ac_objext \
16291 conftest$ac_exeext conftest.$ac_ext
16292 LIBS="$save_LIBS"
16294 rm -f core conftest.err conftest.$ac_objext \
16295 conftest$ac_exeext conftest.$ac_ext
16297 yes)
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300 #include <sys/syscall.h>
16301 int lk;
16303 main ()
16305 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16307 return 0;
16309 _ACEOF
16310 if ac_fn_c_try_link "$LINENO"; then :
16312 else
16313 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16315 rm -f core conftest.err conftest.$ac_objext \
16316 conftest$ac_exeext conftest.$ac_ext
16318 esac
16321 enable_linux_futex=no
16323 esac
16324 if test x$enable_linux_futex = xyes; then
16329 # See if we support thread-local storage.
16332 # Check whether --enable-tls was given.
16333 if test "${enable_tls+set}" = set; then :
16334 enableval=$enable_tls;
16335 case "$enableval" in
16336 yes|no) ;;
16337 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16338 esac
16340 else
16341 enable_tls=yes
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16346 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16347 if test "${gcc_cv_have_tls+set}" = set; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16351 if test "$cross_compiling" = yes; then :
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 __thread int a; int b; int main() { return a = b; }
16355 _ACEOF
16356 if ac_fn_c_try_link "$LINENO"; then :
16357 chktls_save_LDFLAGS="$LDFLAGS"
16358 case $host in
16359 *-*-linux*)
16360 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16362 esac
16363 chktls_save_CFLAGS="$CFLAGS"
16364 CFLAGS="-fPIC $CFLAGS"
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16367 int f() { return 0; }
16368 _ACEOF
16369 if ac_fn_c_try_link "$LINENO"; then :
16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16372 __thread int a; int b; int f() { return a = b; }
16373 _ACEOF
16374 if ac_fn_c_try_link "$LINENO"; then :
16375 gcc_cv_have_tls=yes
16376 else
16377 gcc_cv_have_tls=no
16379 rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16381 else
16382 gcc_cv_have_tls=yes
16384 rm -f core conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386 CFLAGS="$chktls_save_CFLAGS"
16387 LDFLAGS="$chktls_save_LDFLAGS"
16388 else
16389 gcc_cv_have_tls=no
16391 rm -f core conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16395 else
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 __thread int a; int b; int main() { return a = b; }
16399 _ACEOF
16400 if ac_fn_c_try_run "$LINENO"; then :
16401 chktls_save_LDFLAGS="$LDFLAGS"
16402 LDFLAGS="-static $LDFLAGS"
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 int main() { return 0; }
16406 _ACEOF
16407 if ac_fn_c_try_link "$LINENO"; then :
16408 if test "$cross_compiling" = yes; then :
16409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16411 as_fn_error "cannot run test program while cross compiling
16412 See \`config.log' for more details." "$LINENO" 5; }
16413 else
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 __thread int a; int b; int main() { return a = b; }
16417 _ACEOF
16418 if ac_fn_c_try_run "$LINENO"; then :
16419 gcc_cv_have_tls=yes
16420 else
16421 gcc_cv_have_tls=no
16423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16424 conftest.$ac_objext conftest.beam conftest.$ac_ext
16427 else
16428 gcc_cv_have_tls=yes
16430 rm -f core conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432 LDFLAGS="$chktls_save_LDFLAGS"
16433 if test $gcc_cv_have_tls = yes; then
16434 chktls_save_CFLAGS="$CFLAGS"
16435 thread_CFLAGS=failed
16436 for flag in '' '-pthread' '-lpthread'; do
16437 CFLAGS="$flag $chktls_save_CFLAGS"
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 #include <pthread.h>
16441 void *g(void *d) { return NULL; }
16443 main ()
16445 pthread_t t; pthread_create(&t,NULL,g,NULL);
16447 return 0;
16449 _ACEOF
16450 if ac_fn_c_try_link "$LINENO"; then :
16451 thread_CFLAGS="$flag"
16453 rm -f core conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 if test "X$thread_CFLAGS" != Xfailed; then
16456 break
16458 done
16459 CFLAGS="$chktls_save_CFLAGS"
16460 if test "X$thread_CFLAGS" != Xfailed; then
16461 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16462 if test "$cross_compiling" = yes; then :
16463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16465 as_fn_error "cannot run test program while cross compiling
16466 See \`config.log' for more details." "$LINENO" 5; }
16467 else
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 #include <pthread.h>
16471 __thread int a;
16472 static int *volatile a_in_other_thread;
16473 static void *
16474 thread_func (void *arg)
16476 a_in_other_thread = &a;
16477 return (void *)0;
16480 main ()
16482 pthread_t thread;
16483 void *thread_retval;
16484 int *volatile a_in_main_thread;
16485 a_in_main_thread = &a;
16486 if (pthread_create (&thread, (pthread_attr_t *)0,
16487 thread_func, (void *)0))
16488 return 0;
16489 if (pthread_join (thread, &thread_retval))
16490 return 0;
16491 return (a_in_other_thread == a_in_main_thread);
16493 return 0;
16495 _ACEOF
16496 if ac_fn_c_try_run "$LINENO"; then :
16497 gcc_cv_have_tls=yes
16498 else
16499 gcc_cv_have_tls=no
16501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16502 conftest.$ac_objext conftest.beam conftest.$ac_ext
16505 CFLAGS="$chktls_save_CFLAGS"
16508 else
16509 gcc_cv_have_tls=no
16511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16512 conftest.$ac_objext conftest.beam conftest.$ac_ext
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16517 $as_echo "$gcc_cv_have_tls" >&6; }
16518 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16520 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16524 # See what sort of export controls are available.
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16527 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16528 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16529 $as_echo_n "(cached) " >&6
16530 else
16532 save_CFLAGS="$CFLAGS"
16533 CFLAGS="$CFLAGS -Werror"
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 void __attribute__((visibility("hidden"))) foo(void) { }
16538 main ()
16542 return 0;
16544 _ACEOF
16545 if ac_fn_c_try_compile "$LINENO"; then :
16546 libitm_cv_have_attribute_visibility=yes
16547 else
16548 libitm_cv_have_attribute_visibility=no
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 CFLAGS="$save_CFLAGS"
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16554 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16555 if test $libitm_cv_have_attribute_visibility = yes; then
16557 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16562 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16563 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16564 $as_echo_n "(cached) " >&6
16565 else
16567 save_CFLAGS="$CFLAGS"
16568 CFLAGS="$CFLAGS -Werror"
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571 void __attribute__((dllexport)) foo(void) { }
16573 main ()
16577 return 0;
16579 _ACEOF
16580 if ac_fn_c_try_compile "$LINENO"; then :
16581 libitm_cv_have_attribute_dllexport=yes
16582 else
16583 libitm_cv_have_attribute_dllexport=no
16585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586 CFLAGS="$save_CFLAGS"
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16589 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16590 if test $libitm_cv_have_attribute_dllexport = yes; then
16592 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16597 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16598 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16605 void foo(void) { }
16606 extern void bar(void) __attribute__((alias("foo")));
16608 main ()
16610 bar();
16612 return 0;
16614 _ACEOF
16615 if ac_fn_c_try_link "$LINENO"; then :
16616 libitm_cv_have_attribute_alias=yes
16617 else
16618 libitm_cv_have_attribute_alias=no
16620 rm -f core conftest.err conftest.$ac_objext \
16621 conftest$ac_exeext conftest.$ac_ext
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16624 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16625 if test $libitm_cv_have_attribute_alias = yes; then
16627 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16631 # Check linker hardware capability support.
16634 # Check whether --with-gnu-ld was given.
16635 if test "${with_gnu_ld+set}" = set; then :
16636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16637 else
16638 with_gnu_ld=no
16641 ac_prog=ld
16642 if test "$GCC" = yes; then
16643 # Check if gcc -print-prog-name=ld gives a path.
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16645 $as_echo_n "checking for ld used by $CC... " >&6; }
16646 case $host in
16647 *-*-mingw*)
16648 # gcc leaves a trailing carriage return which upsets mingw
16649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16652 esac
16653 case $ac_prog in
16654 # Accept absolute paths.
16655 [\\/]* | ?:[\\/]*)
16656 re_direlt='/[^/][^/]*/\.\./'
16657 # Canonicalize the pathname of ld
16658 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16659 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16660 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16661 done
16662 test -z "$LD" && LD="$ac_prog"
16665 # If it fails, then pretend we aren't using GCC.
16666 ac_prog=ld
16669 # If it is relative, then search for the first ld in PATH.
16670 with_gnu_ld=unknown
16672 esac
16673 elif test "$with_gnu_ld" = yes; then
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16675 $as_echo_n "checking for GNU ld... " >&6; }
16676 else
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16678 $as_echo_n "checking for non-GNU ld... " >&6; }
16680 if test "${lt_cv_path_LD+set}" = set; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 if test -z "$LD"; then
16684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16685 for ac_dir in $PATH; do
16686 IFS="$lt_save_ifs"
16687 test -z "$ac_dir" && ac_dir=.
16688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16689 lt_cv_path_LD="$ac_dir/$ac_prog"
16690 # Check to see if the program is GNU ld. I'd rather use --version,
16691 # but apparently some variants of GNU ld only accept -v.
16692 # Break only if it was the GNU/non-GNU ld that we prefer.
16693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16694 *GNU* | *'with BFD'*)
16695 test "$with_gnu_ld" != no && break
16698 test "$with_gnu_ld" != yes && break
16700 esac
16702 done
16703 IFS="$lt_save_ifs"
16704 else
16705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16709 LD="$lt_cv_path_LD"
16710 if test -n "$LD"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16712 $as_echo "$LD" >&6; }
16713 else
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16717 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16719 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16720 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16721 $as_echo_n "(cached) " >&6
16722 else
16723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16724 case `$LD -v 2>&1 </dev/null` in
16725 *GNU* | *'with BFD'*)
16726 lt_cv_prog_gnu_ld=yes
16729 lt_cv_prog_gnu_ld=no
16731 esac
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16734 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16735 with_gnu_ld=$lt_cv_prog_gnu_ld
16743 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16746 ac_save_LDFLAGS="$LDFLAGS"
16747 LDFLAGS="$LFLAGS -mclear-hwcap"
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
16750 $as_echo_n "checking for -mclear-hwcap... " >&6; }
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16755 main ()
16757 return 0;
16759 return 0;
16761 _ACEOF
16762 if ac_fn_c_try_link "$LINENO"; then :
16763 ac_hwcap_ldflags=yes
16764 else
16765 ac_hwcap_ldflags=no
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769 if test "$ac_hwcap_ldflags" = "yes"; then
16770 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16773 $as_echo "$ac_hwcap_ldflags" >&6; }
16775 LDFLAGS="$ac_save_LDFLAGS"
16779 if test $ac_hwcap_ldflags != no; then
16780 HAVE_HWCAP_TRUE=
16781 HAVE_HWCAP_FALSE='#'
16782 else
16783 HAVE_HWCAP_TRUE='#'
16784 HAVE_HWCAP_FALSE=
16788 # If defaulting to -mavx, don't clear hwcaps.
16789 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16790 if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16791 HWCAP_LDFLAGS=''
16796 # If we're not using GNU ld, then there's no point in even trying these
16797 # tests. Check for that first. We should have already tested for gld
16798 # by now (in libtool), but require it now just to be safe...
16799 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16800 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16804 # The name set by libtool depends on the version of libtool. Shame on us
16805 # for depending on an impl detail, but c'est la vie. Older versions used
16806 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16807 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16808 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16809 # set (hence we're using an older libtool), then set it.
16810 if test x${with_gnu_ld+set} != xset; then
16811 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16812 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16813 with_gnu_ld=no
16814 else
16815 with_gnu_ld=$ac_cv_prog_gnu_ld
16819 # Start by getting the version number. I think the libtool test already
16820 # does some of this, but throws away the result.
16821 libitm_ld_is_gold=no
16822 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16823 libitm_ld_is_gold=yes
16826 ldver=`$LD --version 2>/dev/null |
16827 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16829 libitm_gnu_ld_version=`echo $ldver | \
16830 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16832 # Set --gc-sections.
16833 if test "$with_gnu_ld" = "notbroken"; then
16834 # GNU ld it is! Joy and bunny rabbits!
16836 # All these tests are for C++; save the language and the compiler flags.
16837 # Need to do this so that g++ won't try to link in libstdc++
16838 ac_test_CFLAGS="${CFLAGS+set}"
16839 ac_save_CFLAGS="$CFLAGS"
16840 CFLAGS='-x c++ -Wl,--gc-sections'
16842 # Check for -Wl,--gc-sections
16843 # XXX This test is broken at the moment, as symbols required for linking
16844 # are now in libsupc++ (not built yet). In addition, this test has
16845 # cored on solaris in the past. In addition, --gc-sections doesn't
16846 # really work at the moment (keeps on discarding used sections, first
16847 # .eh_frame and now some of the glibc sections for iconv).
16848 # Bzzzzt. Thanks for playing, maybe next time.
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16850 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16851 if test "$cross_compiling" = yes; then :
16852 ac_sectionLDflags=yes
16853 else
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h. */
16857 int main(void)
16859 try { throw 1; }
16860 catch (...) { };
16861 return 0;
16864 _ACEOF
16865 if ac_fn_c_try_run "$LINENO"; then :
16866 ac_sectionLDflags=yes
16867 else
16868 ac_sectionLDflags=no
16870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16871 conftest.$ac_objext conftest.beam conftest.$ac_ext
16874 if test "$ac_test_CFLAGS" = set; then
16875 CFLAGS="$ac_save_CFLAGS"
16876 else
16877 # this is the suspicious part
16878 CFLAGS=''
16880 if test "$ac_sectionLDflags" = "yes"; then
16881 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16884 $as_echo "$ac_sectionLDflags" >&6; }
16887 # Set linker optimization flags.
16888 if test x"$with_gnu_ld" = x"yes"; then
16889 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16897 # Check whether --enable-symvers was given.
16898 if test "${enable_symvers+set}" = set; then :
16899 enableval=$enable_symvers;
16900 case "$enableval" in
16901 yes|no|gnu*|sun) ;;
16902 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16903 esac
16905 else
16906 enable_symvers=yes
16911 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16912 # don't know enough about $LD to do tricks...
16915 # Turn a 'yes' into a suitable default.
16916 if test x$enable_symvers = xyes ; then
16917 # FIXME The following test is too strict, in theory.
16918 if test $enable_shared = no || test "x$LD" = x; then
16919 enable_symvers=no
16920 else
16921 if test $with_gnu_ld = yes ; then
16922 enable_symvers=gnu
16923 else
16924 case ${target_os} in
16925 # Sun symbol versioning exists since Solaris 2.5.
16926 solaris2.[5-9]* | solaris2.1[0-9]*)
16927 enable_symvers=sun ;;
16929 enable_symvers=no ;;
16930 esac
16935 # Check if 'sun' was requested on non-Solaris 2 platforms.
16936 if test x$enable_symvers = xsun ; then
16937 case ${target_os} in
16938 solaris2*)
16939 # All fine.
16942 # Unlikely to work.
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16944 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16946 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16948 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16949 enable_symvers=no
16951 esac
16954 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16955 if test $enable_symvers != no; then
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16957 $as_echo_n "checking for shared libgcc... " >&6; }
16958 ac_save_CFLAGS="$CFLAGS"
16959 CFLAGS=' -lgcc_s'
16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961 /* end confdefs.h. */
16964 main ()
16966 return 0;
16968 return 0;
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972 libitm_shared_libgcc=yes
16973 else
16974 libitm_shared_libgcc=no
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 CFLAGS="$ac_save_CFLAGS"
16979 if test $libitm_shared_libgcc = no; then
16980 cat > conftest.c <<EOF
16981 int main (void) { return 0; }
16983 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16984 -shared -shared-libgcc -o conftest.so \
16985 conftest.c -v 2>&1 >/dev/null \
16986 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16987 rm -f conftest.c conftest.so
16988 if test x${libitm_libgcc_s_suffix+set} = xset; then
16989 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16994 main ()
16996 return 0;
16998 return 0;
17000 _ACEOF
17001 if ac_fn_c_try_link "$LINENO"; then :
17002 libitm_shared_libgcc=yes
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17006 CFLAGS="$ac_save_CFLAGS"
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17010 $as_echo "$libitm_shared_libgcc" >&6; }
17013 # For GNU ld, we need at least this version. The format is described in
17014 # LIBITM_CHECK_LINKER_FEATURES above.
17015 libitm_min_gnu_ld_version=21400
17016 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17018 # Check to see if unspecified "yes" value can win, given results above.
17019 # Change "yes" into either "no" or a style name.
17020 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17021 if test $with_gnu_ld = yes; then
17022 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17023 enable_symvers=gnu
17024 elif test $libitm_ld_is_gold = yes ; then
17025 enable_symvers=gnu
17026 else
17027 # The right tools, the right setup, but too old. Fallbacks?
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17029 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17031 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17033 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17035 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17036 if test $libitm_gnu_ld_version -ge 21200 ; then
17037 # Globbing fix is present, proper block support is not.
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17039 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17040 enable_symvers=no
17041 else
17042 # 2.11 or older.
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17044 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17045 enable_symvers=no
17048 elif test $enable_symvers = sun; then
17049 : All interesting versions of Sun ld support sun style symbol versioning.
17050 else
17051 # just fail for now
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17053 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17055 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17057 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17059 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17060 enable_symvers=no
17064 if test $enable_symvers != no; then
17065 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17066 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17067 else
17068 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17069 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17072 if test $enable_symvers = gnu; then
17073 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17074 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17075 else
17076 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17077 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17080 if test $enable_symvers = sun; then
17081 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17082 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17083 else
17084 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17085 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17089 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17091 if test $enable_symvers = gnu; then
17093 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17097 # See if we can emit unwind info in the sjlj stub.
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17099 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17100 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17101 $as_echo_n "(cached) " >&6
17102 else
17104 gcc_cv_as_cfi_pseudo_op=unknown
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17107 asm (".cfi_startproc\n\t.cfi_endproc");
17109 main ()
17113 return 0;
17115 _ACEOF
17116 if ac_fn_c_try_compile "$LINENO"; then :
17117 gcc_cv_as_cfi_pseudo_op=yes
17118 else
17119 gcc_cv_as_cfi_pseudo_op=no
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17125 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17126 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17128 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17133 # Determine the proper ABI type for size_t.
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17136 $as_echo_n "checking how size_t is mangled... " >&6; }
17137 if test "${libitm_cv_size_t_mangling+set}" = set; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17145 main ()
17147 extern __SIZE_TYPE__ x; extern unsigned long x;
17149 return 0;
17151 _ACEOF
17152 if ac_fn_c_try_compile "$LINENO"; then :
17153 libitm_cv_size_t_mangling=m
17154 else
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17160 main ()
17162 extern __SIZE_TYPE__ x; extern unsigned int x;
17164 return 0;
17166 _ACEOF
17167 if ac_fn_c_try_compile "$LINENO"; then :
17168 libitm_cv_size_t_mangling=j
17169 else
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17175 main ()
17177 extern __SIZE_TYPE__ x; extern unsigned long long x;
17179 return 0;
17181 _ACEOF
17182 if ac_fn_c_try_compile "$LINENO"; then :
17183 libitm_cv_size_t_mangling=y
17184 else
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17190 main ()
17192 extern __SIZE_TYPE__ x; extern unsigned short x;
17194 return 0;
17196 _ACEOF
17197 if ac_fn_c_try_compile "$LINENO"; then :
17198 libitm_cv_size_t_mangling=t
17199 else
17200 libitm_cv_size_t_mangling=x
17202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17215 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17216 if test $libitm_cv_size_t_mangling = x; then
17217 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17220 cat >>confdefs.h <<_ACEOF
17221 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17222 _ACEOF
17226 # Get target configury.
17227 . ${srcdir}/configure.tgt
17228 if test -n "$UNSUPPORTED"; then
17229 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17232 CFLAGS="$save_CFLAGS $XCFLAGS"
17234 # Check for __sync_val_compare_and_swap, but only after the target has
17235 # had a chance to set XCFLAGS.
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17238 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17239 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17240 $as_echo_n "(cached) " >&6
17241 else
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17247 main ()
17249 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17251 return 0;
17253 _ACEOF
17254 if ac_fn_c_try_link "$LINENO"; then :
17255 libitm_cv_have_sync_builtins=yes
17256 else
17257 libitm_cv_have_sync_builtins=no
17259 rm -f core conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext conftest.$ac_ext
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17263 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17264 if test $libitm_cv_have_sync_builtins = yes; then
17266 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17271 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17272 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17273 $as_echo_n "(cached) " >&6
17274 else
17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 /* end confdefs.h. */
17278 #include <stdint.h>
17280 main ()
17282 uint64_t foo, bar;
17283 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17285 return 0;
17287 _ACEOF
17288 if ac_fn_c_try_link "$LINENO"; then :
17289 libitm_cv_have_64bit_sync_builtins=yes
17290 else
17291 libitm_cv_have_64bit_sync_builtins=no
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17297 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17298 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17300 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17304 case "${target_cpu}" in
17305 i[34567]86 | x86_64)
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17307 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17308 if test "${libitm_cv_as_avx+set}" = set; then :
17309 $as_echo_n "(cached) " >&6
17310 else
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17316 main ()
17318 asm("vzeroupper");
17320 return 0;
17322 _ACEOF
17323 if ac_fn_c_try_compile "$LINENO"; then :
17324 libitm_cv_as_avx=yes
17325 else
17326 libitm_cv_as_avx=no
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17332 $as_echo "$libitm_cv_as_avx" >&6; }
17333 if test x$libitm_cv_as_avx = xyes; then
17335 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17339 esac
17341 case "${target_cpu}" in
17342 i[34567]86 | x86_64)
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17344 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17345 if test "${libitm_cv_as_rtm+set}" = set; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17353 main ()
17355 asm("1: xbegin 1b; xend");
17357 return 0;
17359 _ACEOF
17360 if ac_fn_c_try_compile "$LINENO"; then :
17361 libitm_cv_as_rtm=yes
17362 else
17363 libitm_cv_as_rtm=no
17365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17369 $as_echo "$libitm_cv_as_rtm" >&6; }
17370 if test x$libitm_cv_as_rtm = xyes; then
17372 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17376 esac
17378 case "${target_cpu}" in
17379 powerpc*)
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17381 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17382 if test "${libitm_cv_as_htm+set}" = set; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17390 main ()
17392 asm("tbegin. 0; tend. 0");
17394 return 0;
17396 _ACEOF
17397 if ac_fn_c_try_compile "$LINENO"; then :
17398 libitm_cv_as_htm=yes
17399 else
17400 libitm_cv_as_htm=no
17402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17406 $as_echo "$libitm_cv_as_htm" >&6; }
17407 if test x$libitm_cv_as_htm = xyes; then
17409 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17413 s390*)
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17415 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17416 if test "${libitm_cv_as_htm+set}" = set; then :
17417 $as_echo_n "(cached) " >&6
17418 else
17420 save_CFLAGS="$CFLAGS"
17421 CFLAGS="$CFLAGS -march=zEC12"
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17426 main ()
17428 asm("tbegin 0,0; tend");
17430 return 0;
17432 _ACEOF
17433 if ac_fn_c_try_compile "$LINENO"; then :
17434 libitm_cv_as_htm=yes
17435 else
17436 libitm_cv_as_htm=no
17438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17439 CFLAGS="$save_CFLAGS"
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17442 $as_echo "$libitm_cv_as_htm" >&6; }
17443 if test x$libitm_cv_as_htm = xyes; then
17445 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17449 esac
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17453 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17454 if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17455 $as_echo_n "(cached) " >&6
17456 else
17458 weakref_m4_saved_CFLAGS="$CFLAGS"
17459 case "${host}" in
17460 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17461 *) ;;
17462 esac
17463 if test "$cross_compiling" = yes; then :
17465 case "${host}" in
17466 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17467 *) ac_cv_have_elf_style_weakref=yes;;
17468 esac
17469 else
17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471 /* end confdefs.h. */
17473 extern void fNotToBeFound(void) __attribute__((weak));
17474 int main ()
17476 if (fNotToBeFound)
17477 return 1;
17478 else
17479 return 0;
17482 _ACEOF
17483 if ac_fn_c_try_run "$LINENO"; then :
17484 ac_cv_have_elf_style_weakref=yes
17485 else
17486 ac_cv_have_elf_style_weakref=no
17488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17489 conftest.$ac_objext conftest.beam conftest.$ac_ext
17491 CFLAGS="$weakref_m4_saved_CFLAGS"
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17494 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17495 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17497 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17501 # Cleanup and exit.
17502 CFLAGS="$save_CFLAGS"
17503 cat >confcache <<\_ACEOF
17504 # This file is a shell script that caches the results of configure
17505 # tests run on this system so they can be shared between configure
17506 # scripts and configure runs, see configure's option --config-cache.
17507 # It is not useful on other systems. If it contains results you don't
17508 # want to keep, you may remove or edit it.
17510 # config.status only pays attention to the cache file if you give it
17511 # the --recheck option to rerun configure.
17513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17515 # following values.
17517 _ACEOF
17519 # The following way of writing the cache mishandles newlines in values,
17520 # but we know of no workaround that is simple, portable, and efficient.
17521 # So, we kill variables containing newlines.
17522 # Ultrix sh set writes to stderr and can't be redirected directly,
17523 # and sets the high bit in the cache file unless we assign to the vars.
17525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17526 eval ac_val=\$$ac_var
17527 case $ac_val in #(
17528 *${as_nl}*)
17529 case $ac_var in #(
17530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17532 esac
17533 case $ac_var in #(
17534 _ | IFS | as_nl) ;; #(
17535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17536 *) { eval $ac_var=; unset $ac_var;} ;;
17537 esac ;;
17538 esac
17539 done
17541 (set) 2>&1 |
17542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17543 *${as_nl}ac_space=\ *)
17544 # `set' does not quote correctly, so add quotes: double-quote
17545 # substitution turns \\\\ into \\, and sed turns \\ into \.
17546 sed -n \
17547 "s/'/'\\\\''/g;
17548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17549 ;; #(
17551 # `set' quotes correctly as required by POSIX, so do not add quotes.
17552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17554 esac |
17555 sort
17557 sed '
17558 /^ac_cv_env_/b end
17559 t clear
17560 :clear
17561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17562 t end
17563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17564 :end' >>confcache
17565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17566 if test -w "$cache_file"; then
17567 test "x$cache_file" != "x/dev/null" &&
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17569 $as_echo "$as_me: updating cache $cache_file" >&6;}
17570 cat confcache >$cache_file
17571 else
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17573 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17576 rm -f confcache
17578 # Add -Wall -Werror if we are using GCC.
17579 if test "x$GCC" = "xyes"; then
17580 XCFLAGS="$XCFLAGS -Wall -Werror"
17583 XCFLAGS="$XCFLAGS $XPCFLAGS"
17589 if test ${multilib} = yes; then
17590 multilib_arg="--enable-multilib"
17591 else
17592 multilib_arg=
17595 # Set up the set of libraries that we need to link against for libitm.
17596 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17597 # which will force linkage against -lpthread (or equivalent for the system).
17598 # That's not 100% ideal, but about the best we can do easily.
17599 if test $enable_shared = yes; then
17600 link_itm="-litm %{static: $LIBS}"
17601 else
17602 link_itm="-litm $LIBS"
17606 if test "$ARCH" = arm; then
17607 ARCH_ARM_TRUE=
17608 ARCH_ARM_FALSE='#'
17609 else
17610 ARCH_ARM_TRUE='#'
17611 ARCH_ARM_FALSE=
17614 if test "$ARCH" = x86; then
17615 ARCH_X86_TRUE=
17616 ARCH_X86_FALSE='#'
17617 else
17618 ARCH_X86_TRUE='#'
17619 ARCH_X86_FALSE=
17622 if test "$libitm_cv_as_avx" = yes; then
17623 ARCH_X86_AVX_TRUE=
17624 ARCH_X86_AVX_FALSE='#'
17625 else
17626 ARCH_X86_AVX_TRUE='#'
17627 ARCH_X86_AVX_FALSE=
17630 if test $enable_linux_futex = yes; then
17631 ARCH_FUTEX_TRUE=
17632 ARCH_FUTEX_FALSE='#'
17633 else
17634 ARCH_FUTEX_TRUE='#'
17635 ARCH_FUTEX_FALSE=
17639 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17641 cat >confcache <<\_ACEOF
17642 # This file is a shell script that caches the results of configure
17643 # tests run on this system so they can be shared between configure
17644 # scripts and configure runs, see configure's option --config-cache.
17645 # It is not useful on other systems. If it contains results you don't
17646 # want to keep, you may remove or edit it.
17648 # config.status only pays attention to the cache file if you give it
17649 # the --recheck option to rerun configure.
17651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17653 # following values.
17655 _ACEOF
17657 # The following way of writing the cache mishandles newlines in values,
17658 # but we know of no workaround that is simple, portable, and efficient.
17659 # So, we kill variables containing newlines.
17660 # Ultrix sh set writes to stderr and can't be redirected directly,
17661 # and sets the high bit in the cache file unless we assign to the vars.
17663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17664 eval ac_val=\$$ac_var
17665 case $ac_val in #(
17666 *${as_nl}*)
17667 case $ac_var in #(
17668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17670 esac
17671 case $ac_var in #(
17672 _ | IFS | as_nl) ;; #(
17673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17674 *) { eval $ac_var=; unset $ac_var;} ;;
17675 esac ;;
17676 esac
17677 done
17679 (set) 2>&1 |
17680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17681 *${as_nl}ac_space=\ *)
17682 # `set' does not quote correctly, so add quotes: double-quote
17683 # substitution turns \\\\ into \\, and sed turns \\ into \.
17684 sed -n \
17685 "s/'/'\\\\''/g;
17686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17687 ;; #(
17689 # `set' quotes correctly as required by POSIX, so do not add quotes.
17690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17692 esac |
17693 sort
17695 sed '
17696 /^ac_cv_env_/b end
17697 t clear
17698 :clear
17699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17700 t end
17701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17702 :end' >>confcache
17703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17704 if test -w "$cache_file"; then
17705 test "x$cache_file" != "x/dev/null" &&
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17707 $as_echo "$as_me: updating cache $cache_file" >&6;}
17708 cat confcache >$cache_file
17709 else
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17714 rm -f confcache
17716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17717 # Let make expand exec_prefix.
17718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17720 DEFS=-DHAVE_CONFIG_H
17722 ac_libobjs=
17723 ac_ltlibobjs=
17724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17725 # 1. Remove the extension, and $U if already installed.
17726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17727 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17729 # will be set to the directory where LIBOBJS objects are built.
17730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17732 done
17733 LIBOBJS=$ac_libobjs
17735 LTLIBOBJS=$ac_ltlibobjs
17738 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17739 as_fn_error "conditional \"GENINSRC\" was never defined.
17740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17742 if test -n "$EXEEXT"; then
17743 am__EXEEXT_TRUE=
17744 am__EXEEXT_FALSE='#'
17745 else
17746 am__EXEEXT_TRUE='#'
17747 am__EXEEXT_FALSE=
17750 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17751 as_fn_error "conditional \"AMDEP\" was never defined.
17752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17754 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17755 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17758 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17759 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17762 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17763 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17766 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17767 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17770 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17771 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17775 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17776 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17779 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17780 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17783 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17784 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17787 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17788 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17791 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17792 as_fn_error "conditional \"ARCH_ARM\" was never defined.
17793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17795 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17796 as_fn_error "conditional \"ARCH_X86\" was never defined.
17797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17799 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17800 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17803 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17804 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17808 : ${CONFIG_STATUS=./config.status}
17809 ac_write_fail=0
17810 ac_clean_files_save=$ac_clean_files
17811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17813 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17814 as_write_fail=0
17815 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17816 #! $SHELL
17817 # Generated by $as_me.
17818 # Run this file to recreate the current configuration.
17819 # Compiler output produced by configure, useful for debugging
17820 # configure, is in config.log if it exists.
17822 debug=false
17823 ac_cs_recheck=false
17824 ac_cs_silent=false
17826 SHELL=\${CONFIG_SHELL-$SHELL}
17827 export SHELL
17828 _ASEOF
17829 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17830 ## -------------------- ##
17831 ## M4sh Initialization. ##
17832 ## -------------------- ##
17834 # Be more Bourne compatible
17835 DUALCASE=1; export DUALCASE # for MKS sh
17836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17837 emulate sh
17838 NULLCMD=:
17839 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17840 # is contrary to our usage. Disable this feature.
17841 alias -g '${1+"$@"}'='"$@"'
17842 setopt NO_GLOB_SUBST
17843 else
17844 case `(set -o) 2>/dev/null` in #(
17845 *posix*) :
17846 set -o posix ;; #(
17847 *) :
17849 esac
17853 as_nl='
17855 export as_nl
17856 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17857 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17859 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17860 # Prefer a ksh shell builtin over an external printf program on Solaris,
17861 # but without wasting forks for bash or zsh.
17862 if test -z "$BASH_VERSION$ZSH_VERSION" \
17863 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17864 as_echo='print -r --'
17865 as_echo_n='print -rn --'
17866 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17867 as_echo='printf %s\n'
17868 as_echo_n='printf %s'
17869 else
17870 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17871 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17872 as_echo_n='/usr/ucb/echo -n'
17873 else
17874 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17875 as_echo_n_body='eval
17876 arg=$1;
17877 case $arg in #(
17878 *"$as_nl"*)
17879 expr "X$arg" : "X\\(.*\\)$as_nl";
17880 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17881 esac;
17882 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17884 export as_echo_n_body
17885 as_echo_n='sh -c $as_echo_n_body as_echo'
17887 export as_echo_body
17888 as_echo='sh -c $as_echo_body as_echo'
17891 # The user is always right.
17892 if test "${PATH_SEPARATOR+set}" != set; then
17893 PATH_SEPARATOR=:
17894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17896 PATH_SEPARATOR=';'
17901 # IFS
17902 # We need space, tab and new line, in precisely that order. Quoting is
17903 # there to prevent editors from complaining about space-tab.
17904 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17905 # splitting by setting IFS to empty value.)
17906 IFS=" "" $as_nl"
17908 # Find who we are. Look in the path if we contain no directory separator.
17909 case $0 in #((
17910 *[\\/]* ) as_myself=$0 ;;
17911 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17912 for as_dir in $PATH
17914 IFS=$as_save_IFS
17915 test -z "$as_dir" && as_dir=.
17916 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17917 done
17918 IFS=$as_save_IFS
17921 esac
17922 # We did not find ourselves, most probably we were run as `sh COMMAND'
17923 # in which case we are not to be found in the path.
17924 if test "x$as_myself" = x; then
17925 as_myself=$0
17927 if test ! -f "$as_myself"; then
17928 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17929 exit 1
17932 # Unset variables that we do not need and which cause bugs (e.g. in
17933 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17934 # suppresses any "Segmentation fault" message there. '((' could
17935 # trigger a bug in pdksh 5.2.14.
17936 for as_var in BASH_ENV ENV MAIL MAILPATH
17937 do eval test x\${$as_var+set} = xset \
17938 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17939 done
17940 PS1='$ '
17941 PS2='> '
17942 PS4='+ '
17944 # NLS nuisances.
17945 LC_ALL=C
17946 export LC_ALL
17947 LANGUAGE=C
17948 export LANGUAGE
17950 # CDPATH.
17951 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17954 # as_fn_error ERROR [LINENO LOG_FD]
17955 # ---------------------------------
17956 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17957 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17958 # script with status $?, using 1 if that was 0.
17959 as_fn_error ()
17961 as_status=$?; test $as_status -eq 0 && as_status=1
17962 if test "$3"; then
17963 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17964 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17966 $as_echo "$as_me: error: $1" >&2
17967 as_fn_exit $as_status
17968 } # as_fn_error
17971 # as_fn_set_status STATUS
17972 # -----------------------
17973 # Set $? to STATUS, without forking.
17974 as_fn_set_status ()
17976 return $1
17977 } # as_fn_set_status
17979 # as_fn_exit STATUS
17980 # -----------------
17981 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17982 as_fn_exit ()
17984 set +e
17985 as_fn_set_status $1
17986 exit $1
17987 } # as_fn_exit
17989 # as_fn_unset VAR
17990 # ---------------
17991 # Portably unset VAR.
17992 as_fn_unset ()
17994 { eval $1=; unset $1;}
17996 as_unset=as_fn_unset
17997 # as_fn_append VAR VALUE
17998 # ----------------------
17999 # Append the text in VALUE to the end of the definition contained in VAR. Take
18000 # advantage of any shell optimizations that allow amortized linear growth over
18001 # repeated appends, instead of the typical quadratic growth present in naive
18002 # implementations.
18003 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18004 eval 'as_fn_append ()
18006 eval $1+=\$2
18008 else
18009 as_fn_append ()
18011 eval $1=\$$1\$2
18013 fi # as_fn_append
18015 # as_fn_arith ARG...
18016 # ------------------
18017 # Perform arithmetic evaluation on the ARGs, and store the result in the
18018 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18019 # must be portable across $(()) and expr.
18020 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18021 eval 'as_fn_arith ()
18023 as_val=$(( $* ))
18025 else
18026 as_fn_arith ()
18028 as_val=`expr "$@" || test $? -eq 1`
18030 fi # as_fn_arith
18033 if expr a : '\(a\)' >/dev/null 2>&1 &&
18034 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18035 as_expr=expr
18036 else
18037 as_expr=false
18040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18041 as_basename=basename
18042 else
18043 as_basename=false
18046 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18047 as_dirname=dirname
18048 else
18049 as_dirname=false
18052 as_me=`$as_basename -- "$0" ||
18053 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18054 X"$0" : 'X\(//\)$' \| \
18055 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18056 $as_echo X/"$0" |
18057 sed '/^.*\/\([^/][^/]*\)\/*$/{
18058 s//\1/
18061 /^X\/\(\/\/\)$/{
18062 s//\1/
18065 /^X\/\(\/\).*/{
18066 s//\1/
18069 s/.*/./; q'`
18071 # Avoid depending upon Character Ranges.
18072 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18073 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18074 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18075 as_cr_digits='0123456789'
18076 as_cr_alnum=$as_cr_Letters$as_cr_digits
18078 ECHO_C= ECHO_N= ECHO_T=
18079 case `echo -n x` in #(((((
18080 -n*)
18081 case `echo 'xy\c'` in
18082 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18083 xy) ECHO_C='\c';;
18084 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18085 ECHO_T=' ';;
18086 esac;;
18088 ECHO_N='-n';;
18089 esac
18091 rm -f conf$$ conf$$.exe conf$$.file
18092 if test -d conf$$.dir; then
18093 rm -f conf$$.dir/conf$$.file
18094 else
18095 rm -f conf$$.dir
18096 mkdir conf$$.dir 2>/dev/null
18098 if (echo >conf$$.file) 2>/dev/null; then
18099 if ln -s conf$$.file conf$$ 2>/dev/null; then
18100 as_ln_s='ln -s'
18101 # ... but there are two gotchas:
18102 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18103 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18104 # In both cases, we have to default to `cp -p'.
18105 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18106 as_ln_s='cp -p'
18107 elif ln conf$$.file conf$$ 2>/dev/null; then
18108 as_ln_s=ln
18109 else
18110 as_ln_s='cp -p'
18112 else
18113 as_ln_s='cp -p'
18115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18116 rmdir conf$$.dir 2>/dev/null
18119 # as_fn_mkdir_p
18120 # -------------
18121 # Create "$as_dir" as a directory, including parents if necessary.
18122 as_fn_mkdir_p ()
18125 case $as_dir in #(
18126 -*) as_dir=./$as_dir;;
18127 esac
18128 test -d "$as_dir" || eval $as_mkdir_p || {
18129 as_dirs=
18130 while :; do
18131 case $as_dir in #(
18132 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18133 *) as_qdir=$as_dir;;
18134 esac
18135 as_dirs="'$as_qdir' $as_dirs"
18136 as_dir=`$as_dirname -- "$as_dir" ||
18137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18138 X"$as_dir" : 'X\(//\)[^/]' \| \
18139 X"$as_dir" : 'X\(//\)$' \| \
18140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18141 $as_echo X"$as_dir" |
18142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18143 s//\1/
18146 /^X\(\/\/\)[^/].*/{
18147 s//\1/
18150 /^X\(\/\/\)$/{
18151 s//\1/
18154 /^X\(\/\).*/{
18155 s//\1/
18158 s/.*/./; q'`
18159 test -d "$as_dir" && break
18160 done
18161 test -z "$as_dirs" || eval "mkdir $as_dirs"
18162 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18165 } # as_fn_mkdir_p
18166 if mkdir -p . 2>/dev/null; then
18167 as_mkdir_p='mkdir -p "$as_dir"'
18168 else
18169 test -d ./-p && rmdir ./-p
18170 as_mkdir_p=false
18173 if test -x / >/dev/null 2>&1; then
18174 as_test_x='test -x'
18175 else
18176 if ls -dL / >/dev/null 2>&1; then
18177 as_ls_L_option=L
18178 else
18179 as_ls_L_option=
18181 as_test_x='
18182 eval sh -c '\''
18183 if test -d "$1"; then
18184 test -d "$1/.";
18185 else
18186 case $1 in #(
18187 -*)set "./$1";;
18188 esac;
18189 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18190 ???[sx]*):;;*)false;;esac;fi
18191 '\'' sh
18194 as_executable_p=$as_test_x
18196 # Sed expression to map a string onto a valid CPP name.
18197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18199 # Sed expression to map a string onto a valid variable name.
18200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18203 exec 6>&1
18204 ## ----------------------------------- ##
18205 ## Main body of $CONFIG_STATUS script. ##
18206 ## ----------------------------------- ##
18207 _ASEOF
18208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18211 # Save the log message, to keep $0 and so on meaningful, and to
18212 # report actual input values of CONFIG_FILES etc. instead of their
18213 # values after options handling.
18214 ac_log="
18215 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18216 generated by GNU Autoconf 2.64. Invocation command line was
18218 CONFIG_FILES = $CONFIG_FILES
18219 CONFIG_HEADERS = $CONFIG_HEADERS
18220 CONFIG_LINKS = $CONFIG_LINKS
18221 CONFIG_COMMANDS = $CONFIG_COMMANDS
18222 $ $0 $@
18224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18227 _ACEOF
18229 case $ac_config_files in *"
18230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18231 esac
18233 case $ac_config_headers in *"
18234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18235 esac
18238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18239 # Files that config.status was made for.
18240 config_files="$ac_config_files"
18241 config_headers="$ac_config_headers"
18242 config_commands="$ac_config_commands"
18244 _ACEOF
18246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18247 ac_cs_usage="\
18248 \`$as_me' instantiates files and other configuration actions
18249 from templates according to the current configuration. Unless the files
18250 and actions are specified as TAGs, all are instantiated by default.
18252 Usage: $0 [OPTION]... [TAG]...
18254 -h, --help print this help, then exit
18255 -V, --version print version number and configuration settings, then exit
18256 -q, --quiet, --silent
18257 do not print progress messages
18258 -d, --debug don't remove temporary files
18259 --recheck update $as_me by reconfiguring in the same conditions
18260 --file=FILE[:TEMPLATE]
18261 instantiate the configuration file FILE
18262 --header=FILE[:TEMPLATE]
18263 instantiate the configuration header FILE
18265 Configuration files:
18266 $config_files
18268 Configuration headers:
18269 $config_headers
18271 Configuration commands:
18272 $config_commands
18274 Report bugs to the package provider.
18275 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18276 General help using GNU software: <http://www.gnu.org/gethelp/>."
18278 _ACEOF
18279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18280 ac_cs_version="\\
18281 GNU TM Runtime Library config.status 1.0
18282 configured by $0, generated by GNU Autoconf 2.64,
18283 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18285 Copyright (C) 2009 Free Software Foundation, Inc.
18286 This config.status script is free software; the Free Software Foundation
18287 gives unlimited permission to copy, distribute and modify it."
18289 ac_pwd='$ac_pwd'
18290 srcdir='$srcdir'
18291 INSTALL='$INSTALL'
18292 MKDIR_P='$MKDIR_P'
18293 AWK='$AWK'
18294 test -n "\$AWK" || AWK=awk
18295 _ACEOF
18297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18298 # The default lists apply if the user does not specify any file.
18299 ac_need_defaults=:
18300 while test $# != 0
18302 case $1 in
18303 --*=*)
18304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18306 ac_shift=:
18309 ac_option=$1
18310 ac_optarg=$2
18311 ac_shift=shift
18313 esac
18315 case $ac_option in
18316 # Handling of the options.
18317 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18318 ac_cs_recheck=: ;;
18319 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18320 $as_echo "$ac_cs_version"; exit ;;
18321 --debug | --debu | --deb | --de | --d | -d )
18322 debug=: ;;
18323 --file | --fil | --fi | --f )
18324 $ac_shift
18325 case $ac_optarg in
18326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18327 esac
18328 as_fn_append CONFIG_FILES " '$ac_optarg'"
18329 ac_need_defaults=false;;
18330 --header | --heade | --head | --hea )
18331 $ac_shift
18332 case $ac_optarg in
18333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18334 esac
18335 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18336 ac_need_defaults=false;;
18337 --he | --h)
18338 # Conflict between --help and --header
18339 as_fn_error "ambiguous option: \`$1'
18340 Try \`$0 --help' for more information.";;
18341 --help | --hel | -h )
18342 $as_echo "$ac_cs_usage"; exit ;;
18343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18344 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18345 ac_cs_silent=: ;;
18347 # This is an error.
18348 -*) as_fn_error "unrecognized option: \`$1'
18349 Try \`$0 --help' for more information." ;;
18351 *) as_fn_append ac_config_targets " $1"
18352 ac_need_defaults=false ;;
18354 esac
18355 shift
18356 done
18358 ac_configure_extra_args=
18360 if $ac_cs_silent; then
18361 exec 6>/dev/null
18362 ac_configure_extra_args="$ac_configure_extra_args --silent"
18365 _ACEOF
18366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18367 if \$ac_cs_recheck; then
18368 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18369 shift
18370 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18371 CONFIG_SHELL='$SHELL'
18372 export CONFIG_SHELL
18373 exec "\$@"
18376 _ACEOF
18377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18378 exec 5>>config.log
18380 echo
18381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18382 ## Running $as_me. ##
18383 _ASBOX
18384 $as_echo "$ac_log"
18385 } >&5
18387 _ACEOF
18388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18390 # INIT-COMMANDS
18393 srcdir="$srcdir"
18394 host="$host"
18395 target="$target"
18396 with_multisubdir="$with_multisubdir"
18397 with_multisrctop="$with_multisrctop"
18398 with_target_subdir="$with_target_subdir"
18399 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18400 multi_basedir="$multi_basedir"
18401 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18402 CC="$CC"
18403 CXX="$CXX"
18404 GFORTRAN="$GFORTRAN"
18405 GCJ="$GCJ"
18406 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18409 # The HP-UX ksh and POSIX shell print the target directory to stdout
18410 # if CDPATH is set.
18411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18413 sed_quote_subst='$sed_quote_subst'
18414 double_quote_subst='$double_quote_subst'
18415 delay_variable_subst='$delay_variable_subst'
18416 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18417 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18418 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18419 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18420 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18421 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18422 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18423 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18424 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18425 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18426 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18427 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18428 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18429 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18430 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18431 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18432 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18433 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18434 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18435 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18436 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18437 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18438 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18439 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18440 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18441 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18442 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18443 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18444 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18445 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18446 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18447 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18448 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18449 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18450 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18451 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18452 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18453 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18454 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18455 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18456 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18457 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18458 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18459 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18460 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18461 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18462 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18463 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18464 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"`'
18465 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18466 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18467 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18468 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18469 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18470 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18471 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18472 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18473 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18474 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18475 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18476 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18477 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18478 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18479 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18480 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18481 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18482 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18483 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18484 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18485 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18486 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18487 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18488 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18489 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18490 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18491 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18492 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18493 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18494 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18495 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18496 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18497 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18498 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18499 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18500 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18501 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18502 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18503 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18504 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18505 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18506 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18507 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18508 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18509 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18510 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18511 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18512 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18513 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18514 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18515 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18516 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18517 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18518 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18519 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18520 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18521 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18522 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18523 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18524 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18525 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18526 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18527 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18528 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18529 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18530 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18531 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18532 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18533 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18534 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18535 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18536 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18537 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18538 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18539 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18540 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18541 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18542 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18543 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18544 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18545 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18546 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18547 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18548 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18549 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18550 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18551 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18552 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18553 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18554 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18555 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18556 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18557 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18558 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18559 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18560 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18561 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18562 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18563 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18564 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18565 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18566 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18567 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18568 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18569 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18570 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18571 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18572 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18573 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18574 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18575 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18576 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18577 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18578 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18579 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18580 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18581 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18582 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18583 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18584 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18585 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18586 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18587 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18588 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18589 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18590 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18592 LTCC='$LTCC'
18593 LTCFLAGS='$LTCFLAGS'
18594 compiler='$compiler_DEFAULT'
18596 # A function that is used when there is no print builtin or printf.
18597 func_fallback_echo ()
18599 eval 'cat <<_LTECHO_EOF
18601 _LTECHO_EOF'
18604 # Quote evaled strings.
18605 for var in SHELL \
18606 ECHO \
18607 SED \
18608 GREP \
18609 EGREP \
18610 FGREP \
18611 LD \
18612 NM \
18613 LN_S \
18614 lt_SP2NL \
18615 lt_NL2SP \
18616 reload_flag \
18617 OBJDUMP \
18618 deplibs_check_method \
18619 file_magic_cmd \
18620 AR \
18621 AR_FLAGS \
18622 STRIP \
18623 RANLIB \
18624 CC \
18625 CFLAGS \
18626 compiler \
18627 lt_cv_sys_global_symbol_pipe \
18628 lt_cv_sys_global_symbol_to_cdecl \
18629 lt_cv_sys_global_symbol_to_c_name_address \
18630 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18631 lt_prog_compiler_no_builtin_flag \
18632 lt_prog_compiler_wl \
18633 lt_prog_compiler_pic \
18634 lt_prog_compiler_static \
18635 lt_cv_prog_compiler_c_o \
18636 need_locks \
18637 DSYMUTIL \
18638 NMEDIT \
18639 LIPO \
18640 OTOOL \
18641 OTOOL64 \
18642 shrext_cmds \
18643 export_dynamic_flag_spec \
18644 whole_archive_flag_spec \
18645 compiler_needs_object \
18646 with_gnu_ld \
18647 allow_undefined_flag \
18648 no_undefined_flag \
18649 hardcode_libdir_flag_spec \
18650 hardcode_libdir_flag_spec_ld \
18651 hardcode_libdir_separator \
18652 fix_srcfile_path \
18653 exclude_expsyms \
18654 include_expsyms \
18655 file_list_spec \
18656 variables_saved_for_relink \
18657 libname_spec \
18658 library_names_spec \
18659 soname_spec \
18660 install_override_mode \
18661 finish_eval \
18662 old_striplib \
18663 striplib \
18664 compiler_lib_search_dirs \
18665 predep_objects \
18666 postdep_objects \
18667 predeps \
18668 postdeps \
18669 compiler_lib_search_path \
18670 LD_CXX \
18671 reload_flag_CXX \
18672 compiler_CXX \
18673 lt_prog_compiler_no_builtin_flag_CXX \
18674 lt_prog_compiler_wl_CXX \
18675 lt_prog_compiler_pic_CXX \
18676 lt_prog_compiler_static_CXX \
18677 lt_cv_prog_compiler_c_o_CXX \
18678 export_dynamic_flag_spec_CXX \
18679 whole_archive_flag_spec_CXX \
18680 compiler_needs_object_CXX \
18681 with_gnu_ld_CXX \
18682 allow_undefined_flag_CXX \
18683 no_undefined_flag_CXX \
18684 hardcode_libdir_flag_spec_CXX \
18685 hardcode_libdir_flag_spec_ld_CXX \
18686 hardcode_libdir_separator_CXX \
18687 fix_srcfile_path_CXX \
18688 exclude_expsyms_CXX \
18689 include_expsyms_CXX \
18690 file_list_spec_CXX \
18691 compiler_lib_search_dirs_CXX \
18692 predep_objects_CXX \
18693 postdep_objects_CXX \
18694 predeps_CXX \
18695 postdeps_CXX \
18696 compiler_lib_search_path_CXX; do
18697 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18698 *[\\\\\\\`\\"\\\$]*)
18699 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18702 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18704 esac
18705 done
18707 # Double-quote double-evaled strings.
18708 for var in reload_cmds \
18709 old_postinstall_cmds \
18710 old_postuninstall_cmds \
18711 old_archive_cmds \
18712 extract_expsyms_cmds \
18713 old_archive_from_new_cmds \
18714 old_archive_from_expsyms_cmds \
18715 archive_cmds \
18716 archive_expsym_cmds \
18717 module_cmds \
18718 module_expsym_cmds \
18719 export_symbols_cmds \
18720 prelink_cmds \
18721 postinstall_cmds \
18722 postuninstall_cmds \
18723 finish_cmds \
18724 sys_lib_search_path_spec \
18725 sys_lib_dlsearch_path_spec \
18726 reload_cmds_CXX \
18727 old_archive_cmds_CXX \
18728 old_archive_from_new_cmds_CXX \
18729 old_archive_from_expsyms_cmds_CXX \
18730 archive_cmds_CXX \
18731 archive_expsym_cmds_CXX \
18732 module_cmds_CXX \
18733 module_expsym_cmds_CXX \
18734 export_symbols_cmds_CXX \
18735 prelink_cmds_CXX; do
18736 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18737 *[\\\\\\\`\\"\\\$]*)
18738 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18741 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18743 esac
18744 done
18746 ac_aux_dir='$ac_aux_dir'
18747 xsi_shell='$xsi_shell'
18748 lt_shell_append='$lt_shell_append'
18750 # See if we are running on zsh, and set the options which allow our
18751 # commands through without removal of \ escapes INIT.
18752 if test -n "\${ZSH_VERSION+set}" ; then
18753 setopt NO_GLOB_SUBST
18757 PACKAGE='$PACKAGE'
18758 VERSION='$VERSION'
18759 TIMESTAMP='$TIMESTAMP'
18760 RM='$RM'
18761 ofile='$ofile'
18768 GCC="$GCC"
18769 CC="$CC"
18770 acx_cv_header_stdint="$acx_cv_header_stdint"
18771 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18772 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18773 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18774 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18775 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18776 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18777 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18778 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18779 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18780 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18781 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18782 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18783 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18786 _ACEOF
18788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18790 # Handling of arguments.
18791 for ac_config_target in $ac_config_targets
18793 case $ac_config_target in
18794 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18795 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18797 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18798 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18799 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18800 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18801 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18803 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18804 esac
18805 done
18808 # If the user did not use the arguments to specify the items to instantiate,
18809 # then the envvar interface is used. Set only those that are not.
18810 # We use the long form for the default assignment because of an extremely
18811 # bizarre bug on SunOS 4.1.3.
18812 if $ac_need_defaults; then
18813 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18814 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18815 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18818 # Have a temporary directory for convenience. Make it in the build tree
18819 # simply because there is no reason against having it here, and in addition,
18820 # creating and moving files from /tmp can sometimes cause problems.
18821 # Hook for its removal unless debugging.
18822 # Note that there is a small window in which the directory will not be cleaned:
18823 # after its creation but before its name has been assigned to `$tmp'.
18824 $debug ||
18826 tmp=
18827 trap 'exit_status=$?
18828 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18830 trap 'as_fn_exit 1' 1 2 13 15
18832 # Create a (secure) tmp directory for tmp files.
18835 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18836 test -n "$tmp" && test -d "$tmp"
18837 } ||
18839 tmp=./conf$$-$RANDOM
18840 (umask 077 && mkdir "$tmp")
18841 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18843 # Set up the scripts for CONFIG_FILES section.
18844 # No need to generate them if there are no CONFIG_FILES.
18845 # This happens for instance with `./config.status config.h'.
18846 if test -n "$CONFIG_FILES"; then
18849 ac_cr=`echo X | tr X '\015'`
18850 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18851 # But we know of no other shell where ac_cr would be empty at this
18852 # point, so we can use a bashism as a fallback.
18853 if test "x$ac_cr" = x; then
18854 eval ac_cr=\$\'\\r\'
18856 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18857 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18858 ac_cs_awk_cr='\r'
18859 else
18860 ac_cs_awk_cr=$ac_cr
18863 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18864 _ACEOF
18868 echo "cat >conf$$subs.awk <<_ACEOF" &&
18869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18870 echo "_ACEOF"
18871 } >conf$$subs.sh ||
18872 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18874 ac_delim='%!_!# '
18875 for ac_last_try in false false false false false :; do
18876 . ./conf$$subs.sh ||
18877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18880 if test $ac_delim_n = $ac_delim_num; then
18881 break
18882 elif $ac_last_try; then
18883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18884 else
18885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18887 done
18888 rm -f conf$$subs.sh
18890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18891 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18892 _ACEOF
18893 sed -n '
18895 s/^/S["/; s/!.*/"]=/
18898 s/^[^!]*!//
18899 :repl
18900 t repl
18901 s/'"$ac_delim"'$//
18902 t delim
18905 s/\(.\{148\}\).*/\1/
18906 t more1
18907 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18910 b repl
18911 :more1
18912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18915 s/.\{148\}//
18916 t nl
18917 :delim
18919 s/\(.\{148\}\).*/\1/
18920 t more2
18921 s/["\\]/\\&/g; s/^/"/; s/$/"/
18924 :more2
18925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18928 s/.\{148\}//
18929 t delim
18930 ' <conf$$subs.awk | sed '
18931 /^[^""]/{
18933 s/\n//
18935 ' >>$CONFIG_STATUS || ac_write_fail=1
18936 rm -f conf$$subs.awk
18937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938 _ACAWK
18939 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18940 for (key in S) S_is_set[key] = 1
18941 FS = "\a"
18945 line = $ 0
18946 nfields = split(line, field, "@")
18947 substed = 0
18948 len = length(field[1])
18949 for (i = 2; i < nfields; i++) {
18950 key = field[i]
18951 keylen = length(key)
18952 if (S_is_set[key]) {
18953 value = S[key]
18954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18955 len += length(value) + length(field[++i])
18956 substed = 1
18957 } else
18958 len += 1 + keylen
18961 print line
18964 _ACAWK
18965 _ACEOF
18966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18967 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18968 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18969 else
18971 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18972 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18973 _ACEOF
18975 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18976 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18977 # trailing colons and then remove the whole line if VPATH becomes empty
18978 # (actually we leave an empty line to preserve line numbers).
18979 if test "x$srcdir" = x.; then
18980 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18981 s/:*\$(srcdir):*/:/
18982 s/:*\${srcdir}:*/:/
18983 s/:*@srcdir@:*/:/
18984 s/^\([^=]*=[ ]*\):*/\1/
18985 s/:*$//
18986 s/^[^=]*=[ ]*$//
18990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18991 fi # test -n "$CONFIG_FILES"
18993 # Set up the scripts for CONFIG_HEADERS section.
18994 # No need to generate them if there are no CONFIG_HEADERS.
18995 # This happens for instance with `./config.status Makefile'.
18996 if test -n "$CONFIG_HEADERS"; then
18997 cat >"$tmp/defines.awk" <<\_ACAWK ||
18998 BEGIN {
18999 _ACEOF
19001 # Transform confdefs.h into an awk script `defines.awk', embedded as
19002 # here-document in config.status, that substitutes the proper values into
19003 # config.h.in to produce config.h.
19005 # Create a delimiter string that does not exist in confdefs.h, to ease
19006 # handling of long lines.
19007 ac_delim='%!_!# '
19008 for ac_last_try in false false :; do
19009 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19010 if test -z "$ac_t"; then
19011 break
19012 elif $ac_last_try; then
19013 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19014 else
19015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19017 done
19019 # For the awk script, D is an array of macro values keyed by name,
19020 # likewise P contains macro parameters if any. Preserve backslash
19021 # newline sequences.
19023 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19024 sed -n '
19025 s/.\{148\}/&'"$ac_delim"'/g
19026 t rset
19027 :rset
19028 s/^[ ]*#[ ]*define[ ][ ]*/ /
19029 t def
19031 :def
19032 s/\\$//
19033 t bsnl
19034 s/["\\]/\\&/g
19035 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19036 D["\1"]=" \3"/p
19037 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19039 :bsnl
19040 s/["\\]/\\&/g
19041 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19042 D["\1"]=" \3\\\\\\n"\\/p
19043 t cont
19044 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19045 t cont
19047 :cont
19049 s/.\{148\}/&'"$ac_delim"'/g
19050 t clear
19051 :clear
19052 s/\\$//
19053 t bsnlc
19054 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19056 :bsnlc
19057 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19058 b cont
19059 ' <confdefs.h | sed '
19060 s/'"$ac_delim"'/"\\\
19061 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19064 for (key in D) D_is_set[key] = 1
19065 FS = "\a"
19067 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19068 line = \$ 0
19069 split(line, arg, " ")
19070 if (arg[1] == "#") {
19071 defundef = arg[2]
19072 mac1 = arg[3]
19073 } else {
19074 defundef = substr(arg[1], 2)
19075 mac1 = arg[2]
19077 split(mac1, mac2, "(") #)
19078 macro = mac2[1]
19079 prefix = substr(line, 1, index(line, defundef) - 1)
19080 if (D_is_set[macro]) {
19081 # Preserve the white space surrounding the "#".
19082 print prefix "define", macro P[macro] D[macro]
19083 next
19084 } else {
19085 # Replace #undef with comments. This is necessary, for example,
19086 # in the case of _POSIX_SOURCE, which is predefined and required
19087 # on some systems where configure will not decide to define it.
19088 if (defundef == "undef") {
19089 print "/*", prefix defundef, macro, "*/"
19090 next
19094 { print }
19095 _ACAWK
19096 _ACEOF
19097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19098 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19099 fi # test -n "$CONFIG_HEADERS"
19102 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19103 shift
19104 for ac_tag
19106 case $ac_tag in
19107 :[FHLC]) ac_mode=$ac_tag; continue;;
19108 esac
19109 case $ac_mode$ac_tag in
19110 :[FHL]*:*);;
19111 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19112 :[FH]-) ac_tag=-:-;;
19113 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19114 esac
19115 ac_save_IFS=$IFS
19116 IFS=:
19117 set x $ac_tag
19118 IFS=$ac_save_IFS
19119 shift
19120 ac_file=$1
19121 shift
19123 case $ac_mode in
19124 :L) ac_source=$1;;
19125 :[FH])
19126 ac_file_inputs=
19127 for ac_f
19129 case $ac_f in
19130 -) ac_f="$tmp/stdin";;
19131 *) # Look for the file first in the build tree, then in the source tree
19132 # (if the path is not absolute). The absolute path cannot be DOS-style,
19133 # because $ac_f cannot contain `:'.
19134 test -f "$ac_f" ||
19135 case $ac_f in
19136 [\\/$]*) false;;
19137 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19138 esac ||
19139 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19140 esac
19141 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19142 as_fn_append ac_file_inputs " '$ac_f'"
19143 done
19145 # Let's still pretend it is `configure' which instantiates (i.e., don't
19146 # use $as_me), people would be surprised to read:
19147 # /* config.h. Generated by config.status. */
19148 configure_input='Generated from '`
19149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19150 `' by configure.'
19151 if test x"$ac_file" != x-; then
19152 configure_input="$ac_file. $configure_input"
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19154 $as_echo "$as_me: creating $ac_file" >&6;}
19156 # Neutralize special characters interpreted by sed in replacement strings.
19157 case $configure_input in #(
19158 *\&* | *\|* | *\\* )
19159 ac_sed_conf_input=`$as_echo "$configure_input" |
19160 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19161 *) ac_sed_conf_input=$configure_input;;
19162 esac
19164 case $ac_tag in
19165 *:-:* | *:-) cat >"$tmp/stdin" \
19166 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19167 esac
19169 esac
19171 ac_dir=`$as_dirname -- "$ac_file" ||
19172 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19173 X"$ac_file" : 'X\(//\)[^/]' \| \
19174 X"$ac_file" : 'X\(//\)$' \| \
19175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19176 $as_echo X"$ac_file" |
19177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19178 s//\1/
19181 /^X\(\/\/\)[^/].*/{
19182 s//\1/
19185 /^X\(\/\/\)$/{
19186 s//\1/
19189 /^X\(\/\).*/{
19190 s//\1/
19193 s/.*/./; q'`
19194 as_dir="$ac_dir"; as_fn_mkdir_p
19195 ac_builddir=.
19197 case "$ac_dir" in
19198 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19200 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19201 # A ".." for each directory in $ac_dir_suffix.
19202 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19203 case $ac_top_builddir_sub in
19204 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19205 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19206 esac ;;
19207 esac
19208 ac_abs_top_builddir=$ac_pwd
19209 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19210 # for backward compatibility:
19211 ac_top_builddir=$ac_top_build_prefix
19213 case $srcdir in
19214 .) # We are building in place.
19215 ac_srcdir=.
19216 ac_top_srcdir=$ac_top_builddir_sub
19217 ac_abs_top_srcdir=$ac_pwd ;;
19218 [\\/]* | ?:[\\/]* ) # Absolute name.
19219 ac_srcdir=$srcdir$ac_dir_suffix;
19220 ac_top_srcdir=$srcdir
19221 ac_abs_top_srcdir=$srcdir ;;
19222 *) # Relative name.
19223 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19224 ac_top_srcdir=$ac_top_build_prefix$srcdir
19225 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19226 esac
19227 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19230 case $ac_mode in
19233 # CONFIG_FILE
19236 case $INSTALL in
19237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19238 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19239 esac
19240 ac_MKDIR_P=$MKDIR_P
19241 case $MKDIR_P in
19242 [\\/$]* | ?:[\\/]* ) ;;
19243 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19244 esac
19245 _ACEOF
19247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19248 # If the template does not know about datarootdir, expand it.
19249 # FIXME: This hack should be removed a few years after 2.60.
19250 ac_datarootdir_hack=; ac_datarootdir_seen=
19251 ac_sed_dataroot='
19252 /datarootdir/ {
19256 /@datadir@/p
19257 /@docdir@/p
19258 /@infodir@/p
19259 /@localedir@/p
19260 /@mandir@/p'
19261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19262 *datarootdir*) ac_datarootdir_seen=yes;;
19263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19266 _ACEOF
19267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19268 ac_datarootdir_hack='
19269 s&@datadir@&$datadir&g
19270 s&@docdir@&$docdir&g
19271 s&@infodir@&$infodir&g
19272 s&@localedir@&$localedir&g
19273 s&@mandir@&$mandir&g
19274 s&\\\${datarootdir}&$datarootdir&g' ;;
19275 esac
19276 _ACEOF
19278 # Neutralize VPATH when `$srcdir' = `.'.
19279 # Shell code in configure.ac might set extrasub.
19280 # FIXME: do we really want to maintain this feature?
19281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19282 ac_sed_extra="$ac_vpsub
19283 $extrasub
19284 _ACEOF
19285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19288 s|@configure_input@|$ac_sed_conf_input|;t t
19289 s&@top_builddir@&$ac_top_builddir_sub&;t t
19290 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19291 s&@srcdir@&$ac_srcdir&;t t
19292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19293 s&@top_srcdir@&$ac_top_srcdir&;t t
19294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19295 s&@builddir@&$ac_builddir&;t t
19296 s&@abs_builddir@&$ac_abs_builddir&;t t
19297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19298 s&@INSTALL@&$ac_INSTALL&;t t
19299 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19300 $ac_datarootdir_hack
19302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19303 || as_fn_error "could not create $ac_file" "$LINENO" 5
19305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19309 which seems to be undefined. Please make sure it is defined." >&5
19310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19311 which seems to be undefined. Please make sure it is defined." >&2;}
19313 rm -f "$tmp/stdin"
19314 case $ac_file in
19315 -) cat "$tmp/out" && rm -f "$tmp/out";;
19316 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19317 esac \
19318 || as_fn_error "could not create $ac_file" "$LINENO" 5
19322 # CONFIG_HEADER
19324 if test x"$ac_file" != x-; then
19326 $as_echo "/* $configure_input */" \
19327 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19328 } >"$tmp/config.h" \
19329 || as_fn_error "could not create $ac_file" "$LINENO" 5
19330 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19333 else
19334 rm -f "$ac_file"
19335 mv "$tmp/config.h" "$ac_file" \
19336 || as_fn_error "could not create $ac_file" "$LINENO" 5
19338 else
19339 $as_echo "/* $configure_input */" \
19340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19341 || as_fn_error "could not create -" "$LINENO" 5
19343 # Compute "$ac_file"'s index in $config_headers.
19344 _am_arg="$ac_file"
19345 _am_stamp_count=1
19346 for _am_header in $config_headers :; do
19347 case $_am_header in
19348 $_am_arg | $_am_arg:* )
19349 break ;;
19351 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19352 esac
19353 done
19354 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19355 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19356 X"$_am_arg" : 'X\(//\)[^/]' \| \
19357 X"$_am_arg" : 'X\(//\)$' \| \
19358 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19359 $as_echo X"$_am_arg" |
19360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19361 s//\1/
19364 /^X\(\/\/\)[^/].*/{
19365 s//\1/
19368 /^X\(\/\/\)$/{
19369 s//\1/
19372 /^X\(\/\).*/{
19373 s//\1/
19376 s/.*/./; q'`/stamp-h$_am_stamp_count
19379 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19380 $as_echo "$as_me: executing $ac_file commands" >&6;}
19382 esac
19385 case $ac_file$ac_mode in
19386 "default-1":C)
19387 # Only add multilib support code if we just rebuilt the top-level
19388 # Makefile.
19389 case " $CONFIG_FILES " in
19390 *" Makefile "*)
19391 ac_file=Makefile . ${multi_basedir}/config-ml.in
19393 esac ;;
19394 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19395 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19396 # are listed without --file. Let's play safe and only enable the eval
19397 # if we detect the quoting.
19398 case $CONFIG_FILES in
19399 *\'*) eval set x "$CONFIG_FILES" ;;
19400 *) set x $CONFIG_FILES ;;
19401 esac
19402 shift
19403 for mf
19405 # Strip MF so we end up with the name of the file.
19406 mf=`echo "$mf" | sed -e 's/:.*$//'`
19407 # Check whether this is an Automake generated Makefile or not.
19408 # We used to match only the files named `Makefile.in', but
19409 # some people rename them; so instead we look at the file content.
19410 # Grep'ing the first line is not enough: some people post-process
19411 # each Makefile.in and add a new line on top of each file to say so.
19412 # Grep'ing the whole file is not good either: AIX grep has a line
19413 # limit of 2048, but all sed's we know have understand at least 4000.
19414 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19415 dirpart=`$as_dirname -- "$mf" ||
19416 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19417 X"$mf" : 'X\(//\)[^/]' \| \
19418 X"$mf" : 'X\(//\)$' \| \
19419 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19420 $as_echo X"$mf" |
19421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19422 s//\1/
19425 /^X\(\/\/\)[^/].*/{
19426 s//\1/
19429 /^X\(\/\/\)$/{
19430 s//\1/
19433 /^X\(\/\).*/{
19434 s//\1/
19437 s/.*/./; q'`
19438 else
19439 continue
19441 # Extract the definition of DEPDIR, am__include, and am__quote
19442 # from the Makefile without running `make'.
19443 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19444 test -z "$DEPDIR" && continue
19445 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19446 test -z "am__include" && continue
19447 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19448 # When using ansi2knr, U may be empty or an underscore; expand it
19449 U=`sed -n 's/^U = //p' < "$mf"`
19450 # Find all dependency output files, they are included files with
19451 # $(DEPDIR) in their names. We invoke sed twice because it is the
19452 # simplest approach to changing $(DEPDIR) to its actual value in the
19453 # expansion.
19454 for file in `sed -n "
19455 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19456 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19457 # Make sure the directory exists.
19458 test -f "$dirpart/$file" && continue
19459 fdir=`$as_dirname -- "$file" ||
19460 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19461 X"$file" : 'X\(//\)[^/]' \| \
19462 X"$file" : 'X\(//\)$' \| \
19463 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19464 $as_echo X"$file" |
19465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19466 s//\1/
19469 /^X\(\/\/\)[^/].*/{
19470 s//\1/
19473 /^X\(\/\/\)$/{
19474 s//\1/
19477 /^X\(\/\).*/{
19478 s//\1/
19481 s/.*/./; q'`
19482 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19483 # echo "creating $dirpart/$file"
19484 echo '# dummy' > "$dirpart/$file"
19485 done
19486 done
19489 "libtool":C)
19491 # See if we are running on zsh, and set the options which allow our
19492 # commands through without removal of \ escapes.
19493 if test -n "${ZSH_VERSION+set}" ; then
19494 setopt NO_GLOB_SUBST
19497 cfgfile="${ofile}T"
19498 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19499 $RM "$cfgfile"
19501 cat <<_LT_EOF >> "$cfgfile"
19502 #! $SHELL
19504 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19505 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19506 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19507 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19509 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19510 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19511 # Written by Gordon Matzigkeit, 1996
19513 # This file is part of GNU Libtool.
19515 # GNU Libtool is free software; you can redistribute it and/or
19516 # modify it under the terms of the GNU General Public License as
19517 # published by the Free Software Foundation; either version 2 of
19518 # the License, or (at your option) any later version.
19520 # As a special exception to the GNU General Public License,
19521 # if you distribute this file as part of a program or library that
19522 # is built using GNU Libtool, you may include this file under the
19523 # same distribution terms that you use for the rest of that program.
19525 # GNU Libtool is distributed in the hope that it will be useful,
19526 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19528 # GNU General Public License for more details.
19530 # You should have received a copy of the GNU General Public License
19531 # along with GNU Libtool; see the file COPYING. If not, a copy
19532 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19533 # obtained by writing to the Free Software Foundation, Inc.,
19534 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19537 # The names of the tagged configurations supported by this script.
19538 available_tags="CXX "
19540 # ### BEGIN LIBTOOL CONFIG
19542 # Which release of libtool.m4 was used?
19543 macro_version=$macro_version
19544 macro_revision=$macro_revision
19546 # Whether or not to build shared libraries.
19547 build_libtool_libs=$enable_shared
19549 # Whether or not to build static libraries.
19550 build_old_libs=$enable_static
19552 # What type of objects to build.
19553 pic_mode=$pic_mode
19555 # Whether or not to optimize for fast installation.
19556 fast_install=$enable_fast_install
19558 # Shell to use when invoking shell scripts.
19559 SHELL=$lt_SHELL
19561 # An echo program that protects backslashes.
19562 ECHO=$lt_ECHO
19564 # The host system.
19565 host_alias=$host_alias
19566 host=$host
19567 host_os=$host_os
19569 # The build system.
19570 build_alias=$build_alias
19571 build=$build
19572 build_os=$build_os
19574 # A sed program that does not truncate output.
19575 SED=$lt_SED
19577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19578 Xsed="\$SED -e 1s/^X//"
19580 # A grep program that handles long lines.
19581 GREP=$lt_GREP
19583 # An ERE matcher.
19584 EGREP=$lt_EGREP
19586 # A literal string matcher.
19587 FGREP=$lt_FGREP
19589 # A BSD- or MS-compatible name lister.
19590 NM=$lt_NM
19592 # Whether we need soft or hard links.
19593 LN_S=$lt_LN_S
19595 # What is the maximum length of a command?
19596 max_cmd_len=$max_cmd_len
19598 # Object file suffix (normally "o").
19599 objext=$ac_objext
19601 # Executable file suffix (normally "").
19602 exeext=$exeext
19604 # whether the shell understands "unset".
19605 lt_unset=$lt_unset
19607 # turn spaces into newlines.
19608 SP2NL=$lt_lt_SP2NL
19610 # turn newlines into spaces.
19611 NL2SP=$lt_lt_NL2SP
19613 # An object symbol dumper.
19614 OBJDUMP=$lt_OBJDUMP
19616 # Method to check whether dependent libraries are shared objects.
19617 deplibs_check_method=$lt_deplibs_check_method
19619 # Command to use when deplibs_check_method == "file_magic".
19620 file_magic_cmd=$lt_file_magic_cmd
19622 # The archiver.
19623 AR=$lt_AR
19624 AR_FLAGS=$lt_AR_FLAGS
19626 # A symbol stripping program.
19627 STRIP=$lt_STRIP
19629 # Commands used to install an old-style archive.
19630 RANLIB=$lt_RANLIB
19631 old_postinstall_cmds=$lt_old_postinstall_cmds
19632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19634 # Whether to use a lock for old archive extraction.
19635 lock_old_archive_extraction=$lock_old_archive_extraction
19637 # A C compiler.
19638 LTCC=$lt_CC
19640 # LTCC compiler flags.
19641 LTCFLAGS=$lt_CFLAGS
19643 # Take the output of nm and produce a listing of raw symbols and C names.
19644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19646 # Transform the output of nm in a proper C declaration.
19647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19649 # Transform the output of nm in a C name address pair.
19650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19652 # Transform the output of nm in a C name address pair when lib prefix is needed.
19653 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19655 # The name of the directory that contains temporary libtool files.
19656 objdir=$objdir
19658 # Used to examine libraries when file_magic_cmd begins with "file".
19659 MAGIC_CMD=$MAGIC_CMD
19661 # Must we lock files when doing compilation?
19662 need_locks=$lt_need_locks
19664 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19665 DSYMUTIL=$lt_DSYMUTIL
19667 # Tool to change global to local symbols on Mac OS X.
19668 NMEDIT=$lt_NMEDIT
19670 # Tool to manipulate fat objects and archives on Mac OS X.
19671 LIPO=$lt_LIPO
19673 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19674 OTOOL=$lt_OTOOL
19676 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19677 OTOOL64=$lt_OTOOL64
19679 # Old archive suffix (normally "a").
19680 libext=$libext
19682 # Shared library suffix (normally ".so").
19683 shrext_cmds=$lt_shrext_cmds
19685 # The commands to extract the exported symbol list from a shared archive.
19686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19688 # Variables whose values should be saved in libtool wrapper scripts and
19689 # restored at link time.
19690 variables_saved_for_relink=$lt_variables_saved_for_relink
19692 # Do we need the "lib" prefix for modules?
19693 need_lib_prefix=$need_lib_prefix
19695 # Do we need a version for libraries?
19696 need_version=$need_version
19698 # Library versioning type.
19699 version_type=$version_type
19701 # Shared library runtime path variable.
19702 runpath_var=$runpath_var
19704 # Shared library path variable.
19705 shlibpath_var=$shlibpath_var
19707 # Is shlibpath searched before the hard-coded library search path?
19708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19710 # Format of library name prefix.
19711 libname_spec=$lt_libname_spec
19713 # List of archive names. First name is the real one, the rest are links.
19714 # The last name is the one that the linker finds with -lNAME
19715 library_names_spec=$lt_library_names_spec
19717 # The coded name of the library, if different from the real name.
19718 soname_spec=$lt_soname_spec
19720 # Permission mode override for installation of shared libraries.
19721 install_override_mode=$lt_install_override_mode
19723 # Command to use after installation of a shared archive.
19724 postinstall_cmds=$lt_postinstall_cmds
19726 # Command to use after uninstallation of a shared archive.
19727 postuninstall_cmds=$lt_postuninstall_cmds
19729 # Commands used to finish a libtool library installation in a directory.
19730 finish_cmds=$lt_finish_cmds
19732 # As "finish_cmds", except a single script fragment to be evaled but
19733 # not shown.
19734 finish_eval=$lt_finish_eval
19736 # Whether we should hardcode library paths into libraries.
19737 hardcode_into_libs=$hardcode_into_libs
19739 # Compile-time system search path for libraries.
19740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19742 # Run-time system search path for libraries.
19743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19745 # Whether dlopen is supported.
19746 dlopen_support=$enable_dlopen
19748 # Whether dlopen of programs is supported.
19749 dlopen_self=$enable_dlopen_self
19751 # Whether dlopen of statically linked programs is supported.
19752 dlopen_self_static=$enable_dlopen_self_static
19754 # Commands to strip libraries.
19755 old_striplib=$lt_old_striplib
19756 striplib=$lt_striplib
19759 # The linker used to build libraries.
19760 LD=$lt_LD
19762 # How to create reloadable object files.
19763 reload_flag=$lt_reload_flag
19764 reload_cmds=$lt_reload_cmds
19766 # Commands used to build an old-style archive.
19767 old_archive_cmds=$lt_old_archive_cmds
19769 # A language specific compiler.
19770 CC=$lt_compiler
19772 # Is the compiler the GNU compiler?
19773 with_gcc=$GCC
19775 # Compiler flag to turn off builtin functions.
19776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19778 # How to pass a linker flag through the compiler.
19779 wl=$lt_lt_prog_compiler_wl
19781 # Additional compiler flags for building library objects.
19782 pic_flag=$lt_lt_prog_compiler_pic
19784 # Compiler flag to prevent dynamic linking.
19785 link_static_flag=$lt_lt_prog_compiler_static
19787 # Does compiler simultaneously support -c and -o options?
19788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19790 # Whether or not to add -lc for building shared libraries.
19791 build_libtool_need_lc=$archive_cmds_need_lc
19793 # Whether or not to disallow shared libs when runtime libs are static.
19794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19796 # Compiler flag to allow reflexive dlopens.
19797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19799 # Compiler flag to generate shared objects directly from archives.
19800 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19802 # Whether the compiler copes with passing no objects directly.
19803 compiler_needs_object=$lt_compiler_needs_object
19805 # Create an old-style archive from a shared archive.
19806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19808 # Create a temporary old-style archive to link instead of a shared archive.
19809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19811 # Commands used to build a shared archive.
19812 archive_cmds=$lt_archive_cmds
19813 archive_expsym_cmds=$lt_archive_expsym_cmds
19815 # Commands used to build a loadable module if different from building
19816 # a shared archive.
19817 module_cmds=$lt_module_cmds
19818 module_expsym_cmds=$lt_module_expsym_cmds
19820 # Whether we are building with GNU ld or not.
19821 with_gnu_ld=$lt_with_gnu_ld
19823 # Flag that allows shared libraries with undefined symbols to be built.
19824 allow_undefined_flag=$lt_allow_undefined_flag
19826 # Flag that enforces no undefined symbols.
19827 no_undefined_flag=$lt_no_undefined_flag
19829 # Flag to hardcode \$libdir into a binary during linking.
19830 # This must work even if \$libdir does not exist
19831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19833 # If ld is used when linking, flag to hardcode \$libdir into a binary
19834 # during linking. This must work even if \$libdir does not exist.
19835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19837 # Whether we need a single "-rpath" flag with a separated argument.
19838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19841 # DIR into the resulting binary.
19842 hardcode_direct=$hardcode_direct
19844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19845 # DIR into the resulting binary and the resulting library dependency is
19846 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19847 # library is relocated.
19848 hardcode_direct_absolute=$hardcode_direct_absolute
19850 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19851 # into the resulting binary.
19852 hardcode_minus_L=$hardcode_minus_L
19854 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19855 # into the resulting binary.
19856 hardcode_shlibpath_var=$hardcode_shlibpath_var
19858 # Set to "yes" if building a shared library automatically hardcodes DIR
19859 # into the library and all subsequent libraries and executables linked
19860 # against it.
19861 hardcode_automatic=$hardcode_automatic
19863 # Set to yes if linker adds runtime paths of dependent libraries
19864 # to runtime path list.
19865 inherit_rpath=$inherit_rpath
19867 # Whether libtool must link a program against all its dependency libraries.
19868 link_all_deplibs=$link_all_deplibs
19870 # Fix the shell variable \$srcfile for the compiler.
19871 fix_srcfile_path=$lt_fix_srcfile_path
19873 # Set to "yes" if exported symbols are required.
19874 always_export_symbols=$always_export_symbols
19876 # The commands to list exported symbols.
19877 export_symbols_cmds=$lt_export_symbols_cmds
19879 # Symbols that should not be listed in the preloaded symbols.
19880 exclude_expsyms=$lt_exclude_expsyms
19882 # Symbols that must always be exported.
19883 include_expsyms=$lt_include_expsyms
19885 # Commands necessary for linking programs (against libraries) with templates.
19886 prelink_cmds=$lt_prelink_cmds
19888 # Specify filename containing input files.
19889 file_list_spec=$lt_file_list_spec
19891 # How to hardcode a shared library path into an executable.
19892 hardcode_action=$hardcode_action
19894 # The directories searched by this compiler when creating a shared library.
19895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19897 # Dependencies to place before and after the objects being linked to
19898 # create a shared library.
19899 predep_objects=$lt_predep_objects
19900 postdep_objects=$lt_postdep_objects
19901 predeps=$lt_predeps
19902 postdeps=$lt_postdeps
19904 # The library search path used internally by the compiler when linking
19905 # a shared library.
19906 compiler_lib_search_path=$lt_compiler_lib_search_path
19908 # ### END LIBTOOL CONFIG
19910 _LT_EOF
19912 case $host_os in
19913 aix3*)
19914 cat <<\_LT_EOF >> "$cfgfile"
19915 # AIX sometimes has problems with the GCC collect2 program. For some
19916 # reason, if we set the COLLECT_NAMES environment variable, the problems
19917 # vanish in a puff of smoke.
19918 if test "X${COLLECT_NAMES+set}" != Xset; then
19919 COLLECT_NAMES=
19920 export COLLECT_NAMES
19922 _LT_EOF
19924 esac
19927 ltmain="$ac_aux_dir/ltmain.sh"
19930 # We use sed instead of cat because bash on DJGPP gets confused if
19931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19932 # text mode, it properly converts lines to CR/LF. This bash problem
19933 # is reportedly fixed, but why not run on old versions too?
19934 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19935 || (rm -f "$cfgfile"; exit 1)
19937 case $xsi_shell in
19938 yes)
19939 cat << \_LT_EOF >> "$cfgfile"
19941 # func_dirname file append nondir_replacement
19942 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19943 # otherwise set result to NONDIR_REPLACEMENT.
19944 func_dirname ()
19946 case ${1} in
19947 */*) func_dirname_result="${1%/*}${2}" ;;
19948 * ) func_dirname_result="${3}" ;;
19949 esac
19952 # func_basename file
19953 func_basename ()
19955 func_basename_result="${1##*/}"
19958 # func_dirname_and_basename file append nondir_replacement
19959 # perform func_basename and func_dirname in a single function
19960 # call:
19961 # dirname: Compute the dirname of FILE. If nonempty,
19962 # add APPEND to the result, otherwise set result
19963 # to NONDIR_REPLACEMENT.
19964 # value returned in "$func_dirname_result"
19965 # basename: Compute filename of FILE.
19966 # value retuned in "$func_basename_result"
19967 # Implementation must be kept synchronized with func_dirname
19968 # and func_basename. For efficiency, we do not delegate to
19969 # those functions but instead duplicate the functionality here.
19970 func_dirname_and_basename ()
19972 case ${1} in
19973 */*) func_dirname_result="${1%/*}${2}" ;;
19974 * ) func_dirname_result="${3}" ;;
19975 esac
19976 func_basename_result="${1##*/}"
19979 # func_stripname prefix suffix name
19980 # strip PREFIX and SUFFIX off of NAME.
19981 # PREFIX and SUFFIX must not contain globbing or regex special
19982 # characters, hashes, percent signs, but SUFFIX may contain a leading
19983 # dot (in which case that matches only a dot).
19984 func_stripname ()
19986 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19987 # positional parameters, so assign one to ordinary parameter first.
19988 func_stripname_result=${3}
19989 func_stripname_result=${func_stripname_result#"${1}"}
19990 func_stripname_result=${func_stripname_result%"${2}"}
19993 # func_opt_split
19994 func_opt_split ()
19996 func_opt_split_opt=${1%%=*}
19997 func_opt_split_arg=${1#*=}
20000 # func_lo2o object
20001 func_lo2o ()
20003 case ${1} in
20004 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20005 *) func_lo2o_result=${1} ;;
20006 esac
20009 # func_xform libobj-or-source
20010 func_xform ()
20012 func_xform_result=${1%.*}.lo
20015 # func_arith arithmetic-term...
20016 func_arith ()
20018 func_arith_result=$(( $* ))
20021 # func_len string
20022 # STRING may not start with a hyphen.
20023 func_len ()
20025 func_len_result=${#1}
20028 _LT_EOF
20030 *) # Bourne compatible functions.
20031 cat << \_LT_EOF >> "$cfgfile"
20033 # func_dirname file append nondir_replacement
20034 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20035 # otherwise set result to NONDIR_REPLACEMENT.
20036 func_dirname ()
20038 # Extract subdirectory from the argument.
20039 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20040 if test "X$func_dirname_result" = "X${1}"; then
20041 func_dirname_result="${3}"
20042 else
20043 func_dirname_result="$func_dirname_result${2}"
20047 # func_basename file
20048 func_basename ()
20050 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20054 # func_stripname prefix suffix name
20055 # strip PREFIX and SUFFIX off of NAME.
20056 # PREFIX and SUFFIX must not contain globbing or regex special
20057 # characters, hashes, percent signs, but SUFFIX may contain a leading
20058 # dot (in which case that matches only a dot).
20059 # func_strip_suffix prefix name
20060 func_stripname ()
20062 case ${2} in
20063 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20064 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20065 esac
20068 # sed scripts:
20069 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20070 my_sed_long_arg='1s/^-[^=]*=//'
20072 # func_opt_split
20073 func_opt_split ()
20075 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20076 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20079 # func_lo2o object
20080 func_lo2o ()
20082 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20085 # func_xform libobj-or-source
20086 func_xform ()
20088 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20091 # func_arith arithmetic-term...
20092 func_arith ()
20094 func_arith_result=`expr "$@"`
20097 # func_len string
20098 # STRING may not start with a hyphen.
20099 func_len ()
20101 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20104 _LT_EOF
20105 esac
20107 case $lt_shell_append in
20108 yes)
20109 cat << \_LT_EOF >> "$cfgfile"
20111 # func_append var value
20112 # Append VALUE to the end of shell variable VAR.
20113 func_append ()
20115 eval "$1+=\$2"
20117 _LT_EOF
20120 cat << \_LT_EOF >> "$cfgfile"
20122 # func_append var value
20123 # Append VALUE to the end of shell variable VAR.
20124 func_append ()
20126 eval "$1=\$$1\$2"
20129 _LT_EOF
20131 esac
20134 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20135 || (rm -f "$cfgfile"; exit 1)
20137 mv -f "$cfgfile" "$ofile" ||
20138 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20139 chmod +x "$ofile"
20142 cat <<_LT_EOF >> "$ofile"
20144 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20146 # The linker used to build libraries.
20147 LD=$lt_LD_CXX
20149 # How to create reloadable object files.
20150 reload_flag=$lt_reload_flag_CXX
20151 reload_cmds=$lt_reload_cmds_CXX
20153 # Commands used to build an old-style archive.
20154 old_archive_cmds=$lt_old_archive_cmds_CXX
20156 # A language specific compiler.
20157 CC=$lt_compiler_CXX
20159 # Is the compiler the GNU compiler?
20160 with_gcc=$GCC_CXX
20162 # Compiler flag to turn off builtin functions.
20163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20165 # How to pass a linker flag through the compiler.
20166 wl=$lt_lt_prog_compiler_wl_CXX
20168 # Additional compiler flags for building library objects.
20169 pic_flag=$lt_lt_prog_compiler_pic_CXX
20171 # Compiler flag to prevent dynamic linking.
20172 link_static_flag=$lt_lt_prog_compiler_static_CXX
20174 # Does compiler simultaneously support -c and -o options?
20175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20177 # Whether or not to add -lc for building shared libraries.
20178 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20180 # Whether or not to disallow shared libs when runtime libs are static.
20181 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20183 # Compiler flag to allow reflexive dlopens.
20184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20186 # Compiler flag to generate shared objects directly from archives.
20187 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20189 # Whether the compiler copes with passing no objects directly.
20190 compiler_needs_object=$lt_compiler_needs_object_CXX
20192 # Create an old-style archive from a shared archive.
20193 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20195 # Create a temporary old-style archive to link instead of a shared archive.
20196 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20198 # Commands used to build a shared archive.
20199 archive_cmds=$lt_archive_cmds_CXX
20200 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20202 # Commands used to build a loadable module if different from building
20203 # a shared archive.
20204 module_cmds=$lt_module_cmds_CXX
20205 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20207 # Whether we are building with GNU ld or not.
20208 with_gnu_ld=$lt_with_gnu_ld_CXX
20210 # Flag that allows shared libraries with undefined symbols to be built.
20211 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20213 # Flag that enforces no undefined symbols.
20214 no_undefined_flag=$lt_no_undefined_flag_CXX
20216 # Flag to hardcode \$libdir into a binary during linking.
20217 # This must work even if \$libdir does not exist
20218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20220 # If ld is used when linking, flag to hardcode \$libdir into a binary
20221 # during linking. This must work even if \$libdir does not exist.
20222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20224 # Whether we need a single "-rpath" flag with a separated argument.
20225 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20228 # DIR into the resulting binary.
20229 hardcode_direct=$hardcode_direct_CXX
20231 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20232 # DIR into the resulting binary and the resulting library dependency is
20233 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20234 # library is relocated.
20235 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20237 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20238 # into the resulting binary.
20239 hardcode_minus_L=$hardcode_minus_L_CXX
20241 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20242 # into the resulting binary.
20243 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20245 # Set to "yes" if building a shared library automatically hardcodes DIR
20246 # into the library and all subsequent libraries and executables linked
20247 # against it.
20248 hardcode_automatic=$hardcode_automatic_CXX
20250 # Set to yes if linker adds runtime paths of dependent libraries
20251 # to runtime path list.
20252 inherit_rpath=$inherit_rpath_CXX
20254 # Whether libtool must link a program against all its dependency libraries.
20255 link_all_deplibs=$link_all_deplibs_CXX
20257 # Fix the shell variable \$srcfile for the compiler.
20258 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20260 # Set to "yes" if exported symbols are required.
20261 always_export_symbols=$always_export_symbols_CXX
20263 # The commands to list exported symbols.
20264 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20266 # Symbols that should not be listed in the preloaded symbols.
20267 exclude_expsyms=$lt_exclude_expsyms_CXX
20269 # Symbols that must always be exported.
20270 include_expsyms=$lt_include_expsyms_CXX
20272 # Commands necessary for linking programs (against libraries) with templates.
20273 prelink_cmds=$lt_prelink_cmds_CXX
20275 # Specify filename containing input files.
20276 file_list_spec=$lt_file_list_spec_CXX
20278 # How to hardcode a shared library path into an executable.
20279 hardcode_action=$hardcode_action_CXX
20281 # The directories searched by this compiler when creating a shared library.
20282 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20284 # Dependencies to place before and after the objects being linked to
20285 # create a shared library.
20286 predep_objects=$lt_predep_objects_CXX
20287 postdep_objects=$lt_postdep_objects_CXX
20288 predeps=$lt_predeps_CXX
20289 postdeps=$lt_postdeps_CXX
20291 # The library search path used internally by the compiler when linking
20292 # a shared library.
20293 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20295 # ### END LIBTOOL TAG CONFIG: CXX
20296 _LT_EOF
20299 "gstdint.h":C)
20300 if test "$GCC" = yes; then
20301 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20302 else
20303 echo "/* generated for $CC */" > tmp-stdint.h
20306 sed 's/^ *//' >> tmp-stdint.h <<EOF
20308 #ifndef GCC_GENERATED_STDINT_H
20309 #define GCC_GENERATED_STDINT_H 1
20311 #include <sys/types.h>
20314 if test "$acx_cv_header_stdint" != stdint.h; then
20315 echo "#include <stddef.h>" >> tmp-stdint.h
20317 if test "$acx_cv_header_stdint" != stddef.h; then
20318 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20321 sed 's/^ *//' >> tmp-stdint.h <<EOF
20322 /* glibc uses these symbols as guards to prevent redefinitions. */
20323 #ifdef __int8_t_defined
20324 #define _INT8_T
20325 #define _INT16_T
20326 #define _INT32_T
20327 #endif
20328 #ifdef __uint32_t_defined
20329 #define _UINT32_T
20330 #endif
20334 # ----------------- done header, emit basic int types -------------
20335 if test "$acx_cv_header_stdint" = stddef.h; then
20336 sed 's/^ *//' >> tmp-stdint.h <<EOF
20338 #ifndef _UINT8_T
20339 #define _UINT8_T
20340 #ifndef __uint8_t_defined
20341 #define __uint8_t_defined
20342 #ifndef uint8_t
20343 typedef unsigned $acx_cv_type_int8_t uint8_t;
20344 #endif
20345 #endif
20346 #endif
20348 #ifndef _UINT16_T
20349 #define _UINT16_T
20350 #ifndef __uint16_t_defined
20351 #define __uint16_t_defined
20352 #ifndef uint16_t
20353 typedef unsigned $acx_cv_type_int16_t uint16_t;
20354 #endif
20355 #endif
20356 #endif
20358 #ifndef _UINT32_T
20359 #define _UINT32_T
20360 #ifndef __uint32_t_defined
20361 #define __uint32_t_defined
20362 #ifndef uint32_t
20363 typedef unsigned $acx_cv_type_int32_t uint32_t;
20364 #endif
20365 #endif
20366 #endif
20368 #ifndef _INT8_T
20369 #define _INT8_T
20370 #ifndef __int8_t_defined
20371 #define __int8_t_defined
20372 #ifndef int8_t
20373 typedef $acx_cv_type_int8_t int8_t;
20374 #endif
20375 #endif
20376 #endif
20378 #ifndef _INT16_T
20379 #define _INT16_T
20380 #ifndef __int16_t_defined
20381 #define __int16_t_defined
20382 #ifndef int16_t
20383 typedef $acx_cv_type_int16_t int16_t;
20384 #endif
20385 #endif
20386 #endif
20388 #ifndef _INT32_T
20389 #define _INT32_T
20390 #ifndef __int32_t_defined
20391 #define __int32_t_defined
20392 #ifndef int32_t
20393 typedef $acx_cv_type_int32_t int32_t;
20394 #endif
20395 #endif
20396 #endif
20398 elif test "$ac_cv_type_u_int32_t" = yes; then
20399 sed 's/^ *//' >> tmp-stdint.h <<EOF
20401 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20402 #ifndef _INT8_T
20403 #define _INT8_T
20404 #endif
20405 #ifndef _INT16_T
20406 #define _INT16_T
20407 #endif
20408 #ifndef _INT32_T
20409 #define _INT32_T
20410 #endif
20412 #ifndef _UINT8_T
20413 #define _UINT8_T
20414 #ifndef __uint8_t_defined
20415 #define __uint8_t_defined
20416 #ifndef uint8_t
20417 typedef u_int8_t uint8_t;
20418 #endif
20419 #endif
20420 #endif
20422 #ifndef _UINT16_T
20423 #define _UINT16_T
20424 #ifndef __uint16_t_defined
20425 #define __uint16_t_defined
20426 #ifndef uint16_t
20427 typedef u_int16_t uint16_t;
20428 #endif
20429 #endif
20430 #endif
20432 #ifndef _UINT32_T
20433 #define _UINT32_T
20434 #ifndef __uint32_t_defined
20435 #define __uint32_t_defined
20436 #ifndef uint32_t
20437 typedef u_int32_t uint32_t;
20438 #endif
20439 #endif
20440 #endif
20442 else
20443 sed 's/^ *//' >> tmp-stdint.h <<EOF
20445 /* Some systems have guard macros to prevent redefinitions, define them. */
20446 #ifndef _INT8_T
20447 #define _INT8_T
20448 #endif
20449 #ifndef _INT16_T
20450 #define _INT16_T
20451 #endif
20452 #ifndef _INT32_T
20453 #define _INT32_T
20454 #endif
20455 #ifndef _UINT8_T
20456 #define _UINT8_T
20457 #endif
20458 #ifndef _UINT16_T
20459 #define _UINT16_T
20460 #endif
20461 #ifndef _UINT32_T
20462 #define _UINT32_T
20463 #endif
20467 # ------------- done basic int types, emit int64_t types ------------
20468 if test "$ac_cv_type_uint64_t" = yes; then
20469 sed 's/^ *//' >> tmp-stdint.h <<EOF
20471 /* system headers have good uint64_t and int64_t */
20472 #ifndef _INT64_T
20473 #define _INT64_T
20474 #endif
20475 #ifndef _UINT64_T
20476 #define _UINT64_T
20477 #endif
20479 elif test "$ac_cv_type_u_int64_t" = yes; then
20480 sed 's/^ *//' >> tmp-stdint.h <<EOF
20482 /* system headers have an u_int64_t (and int64_t) */
20483 #ifndef _INT64_T
20484 #define _INT64_T
20485 #endif
20486 #ifndef _UINT64_T
20487 #define _UINT64_T
20488 #ifndef __uint64_t_defined
20489 #define __uint64_t_defined
20490 #ifndef uint64_t
20491 typedef u_int64_t uint64_t;
20492 #endif
20493 #endif
20494 #endif
20496 elif test -n "$acx_cv_type_int64_t"; then
20497 sed 's/^ *//' >> tmp-stdint.h <<EOF
20499 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20500 #ifndef _INT64_T
20501 #define _INT64_T
20502 #ifndef int64_t
20503 typedef $acx_cv_type_int64_t int64_t;
20504 #endif
20505 #endif
20506 #ifndef _UINT64_T
20507 #define _UINT64_T
20508 #ifndef __uint64_t_defined
20509 #define __uint64_t_defined
20510 #ifndef uint64_t
20511 typedef unsigned $acx_cv_type_int64_t uint64_t;
20512 #endif
20513 #endif
20514 #endif
20516 else
20517 sed 's/^ *//' >> tmp-stdint.h <<EOF
20519 /* some common heuristics for int64_t, using compiler-specific tests */
20520 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20521 #ifndef _INT64_T
20522 #define _INT64_T
20523 #ifndef __int64_t_defined
20524 #ifndef int64_t
20525 typedef long long int64_t;
20526 #endif
20527 #endif
20528 #endif
20529 #ifndef _UINT64_T
20530 #define _UINT64_T
20531 #ifndef uint64_t
20532 typedef unsigned long long uint64_t;
20533 #endif
20534 #endif
20536 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20537 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20538 does not implement __extension__. But that compiler doesn't define
20539 __GNUC_MINOR__. */
20540 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20541 # define __extension__
20542 # endif
20544 # ifndef _INT64_T
20545 # define _INT64_T
20546 # ifndef int64_t
20547 __extension__ typedef long long int64_t;
20548 # endif
20549 # endif
20550 # ifndef _UINT64_T
20551 # define _UINT64_T
20552 # ifndef uint64_t
20553 __extension__ typedef unsigned long long uint64_t;
20554 # endif
20555 # endif
20557 #elif !defined __STRICT_ANSI__
20558 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20560 # ifndef _INT64_T
20561 # define _INT64_T
20562 # ifndef int64_t
20563 typedef __int64 int64_t;
20564 # endif
20565 # endif
20566 # ifndef _UINT64_T
20567 # define _UINT64_T
20568 # ifndef uint64_t
20569 typedef unsigned __int64 uint64_t;
20570 # endif
20571 # endif
20572 # endif /* compiler */
20574 #endif /* ANSI version */
20578 # ------------- done int64_t types, emit intptr types ------------
20579 if test "$ac_cv_type_uintptr_t" != yes; then
20580 sed 's/^ *//' >> tmp-stdint.h <<EOF
20582 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20583 #ifndef __uintptr_t_defined
20584 #ifndef uintptr_t
20585 typedef u$acx_cv_type_intptr_t uintptr_t;
20586 #endif
20587 #endif
20588 #ifndef __intptr_t_defined
20589 #ifndef intptr_t
20590 typedef $acx_cv_type_intptr_t intptr_t;
20591 #endif
20592 #endif
20596 # ------------- done intptr types, emit int_least types ------------
20597 if test "$ac_cv_type_int_least32_t" != yes; then
20598 sed 's/^ *//' >> tmp-stdint.h <<EOF
20600 /* Define int_least types */
20601 typedef int8_t int_least8_t;
20602 typedef int16_t int_least16_t;
20603 typedef int32_t int_least32_t;
20604 #ifdef _INT64_T
20605 typedef int64_t int_least64_t;
20606 #endif
20608 typedef uint8_t uint_least8_t;
20609 typedef uint16_t uint_least16_t;
20610 typedef uint32_t uint_least32_t;
20611 #ifdef _UINT64_T
20612 typedef uint64_t uint_least64_t;
20613 #endif
20617 # ------------- done intptr types, emit int_fast types ------------
20618 if test "$ac_cv_type_int_fast32_t" != yes; then
20619 sed 's/^ *//' >> tmp-stdint.h <<EOF
20621 /* Define int_fast types. short is often slow */
20622 typedef int8_t int_fast8_t;
20623 typedef int int_fast16_t;
20624 typedef int32_t int_fast32_t;
20625 #ifdef _INT64_T
20626 typedef int64_t int_fast64_t;
20627 #endif
20629 typedef uint8_t uint_fast8_t;
20630 typedef unsigned int uint_fast16_t;
20631 typedef uint32_t uint_fast32_t;
20632 #ifdef _UINT64_T
20633 typedef uint64_t uint_fast64_t;
20634 #endif
20638 if test "$ac_cv_type_uintmax_t" != yes; then
20639 sed 's/^ *//' >> tmp-stdint.h <<EOF
20641 /* Define intmax based on what we found */
20642 #ifndef intmax_t
20643 #ifdef _INT64_T
20644 typedef int64_t intmax_t;
20645 #else
20646 typedef long intmax_t;
20647 #endif
20648 #endif
20649 #ifndef uintmax_t
20650 #ifdef _UINT64_T
20651 typedef uint64_t uintmax_t;
20652 #else
20653 typedef unsigned long uintmax_t;
20654 #endif
20655 #endif
20659 sed 's/^ *//' >> tmp-stdint.h <<EOF
20661 #endif /* GCC_GENERATED_STDINT_H */
20664 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20665 rm -f tmp-stdint.h
20666 else
20667 mv -f tmp-stdint.h gstdint.h
20672 esac
20673 done # for ac_tag
20676 as_fn_exit 0
20677 _ACEOF
20678 ac_clean_files=$ac_clean_files_save
20680 test $ac_write_fail = 0 ||
20681 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20684 # configure is writing to config.log, and then calls config.status.
20685 # config.status does its own redirection, appending to config.log.
20686 # Unfortunately, on DOS this fails, as config.log is still kept open
20687 # by configure, so config.status won't be able to write to it; its
20688 # output is simply discarded. So we exec the FD to /dev/null,
20689 # effectively closing config.log, so it can be properly (re)opened and
20690 # appended to by config.status. When coming back to configure, we
20691 # need to make the FD available again.
20692 if test "$no_create" != yes; then
20693 ac_cs_success=:
20694 ac_config_status_args=
20695 test "$silent" = yes &&
20696 ac_config_status_args="$ac_config_status_args --quiet"
20697 exec 5>/dev/null
20698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20699 exec 5>>config.log
20700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20701 # would make configure fail if this is the last instruction.
20702 $ac_cs_success || as_fn_exit $?
20704 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20706 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}