PR rtl-optimization/57439
[official-gcc.git] / libitm / configure
blobd0d1abdf651d07cf2e6b82aac317d36c5d4ab255
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 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 toolexeclibdir
684 toolexecdir
685 multi_basedir
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 GENINSRC_FALSE
722 GENINSRC_TRUE
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_version_specific_runtime_libs
765 enable_generated_files_in_srcdir
766 enable_multilib
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_gnu_ld
773 enable_libtool_lock
774 enable_maintainer_mode
775 enable_linux_futex
776 enable_tls
777 enable_symvers
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CPPFLAGS
784 CXXCPP'
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
835 ac_prev=
836 ac_dashdash=
837 for ac_option
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
855 ac_dashdash=yes ;;
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
874 --config-cache | -C)
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 esac
1192 done
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error "missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1278 /^X\(\/\/\)$/{
1279 s//\1/
1282 /^X\(\/\).*/{
1283 s//\1/
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1291 else
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1381 cat <<\_ACEOF
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1398 esac
1399 cat <<\_ACEOF
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-version-specific-runtime-libs
1406 Specify that runtime libraries should be installed
1407 in a compiler-specific directory [default=no]
1408 --enable-generated-files-in-srcdir
1409 put copies of generated files in source dir intended
1410 for creating source tarballs for users without
1411 texinfo bison or flex. [default=no]
1412 --enable-multilib build many library versions (default)
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --enable-maintainer-mode enable make rules and dependencies not useful
1421 (and sometimes confusing) to the casual installer
1422 --enable-linux-futex use the Linux futex system call [default=default]
1423 --enable-tls Use thread-local storage [default=yes]
1424 --enable-symvers=STYLE enables symbol versioning of the shared library
1425 [default=yes]
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1444 CCAS assembler compiler command (defaults to CC)
1445 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1446 CPP C preprocessor
1447 CXXCPP C++ preprocessor
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1452 Report bugs to the package provider.
1453 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1454 General help using GNU software: <http://www.gnu.org/gethelp/>.
1455 _ACEOF
1456 ac_status=$?
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 GNU TM Runtime Library configure 1.0
1518 generated by GNU Autoconf 2.64
1520 Copyright (C) 2009 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1562 ac_retval=1
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1567 } # ac_fn_c_try_compile
1569 # ac_fn_cxx_try_compile LINENO
1570 # ----------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_cxx_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_cxx_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1605 } # ac_fn_cxx_try_compile
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 $as_test_x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1641 ac_retval=1
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 return $ac_retval
1651 } # ac_fn_c_try_link
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_check_header_compile
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1719 } # ac_fn_c_try_cpp
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1761 } # ac_fn_c_try_run
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778 #define $2 innocuous_$2
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1791 #undef $2
1793 /* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1808 main ()
1810 return $2 ();
1812 return 0;
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1820 rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_check_func
1830 # ac_fn_cxx_try_cpp LINENO
1831 # ------------------------
1832 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_cxx_try_cpp ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } >/dev/null && {
1852 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 }; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1865 } # ac_fn_cxx_try_cpp
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 $as_test_x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 return $ac_retval
1911 } # ac_fn_cxx_try_link
1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916 # the include files in INCLUDES and setting the cache variable VAR
1917 # accordingly.
1918 ac_fn_c_check_header_mongrel ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 else
1931 # Is the header compilable?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933 $as_echo_n "checking $2 usability... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_header_compiler=yes
1941 else
1942 ac_header_compiler=no
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946 $as_echo "$ac_header_compiler" >&6; }
1948 # Is the header present?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950 $as_echo_n "checking $2 presence... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1956 ac_header_preproc=yes
1957 else
1958 ac_header_preproc=no
1960 rm -f conftest.err conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962 $as_echo "$ac_header_preproc" >&6; }
1964 # So? What about this header?
1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 yes:no: )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 no:yes:* )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 esac
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=\$ac_header_compiler"
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998 } # ac_fn_c_check_header_mongrel
2000 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001 # -------------------------------------------
2002 # Tests whether TYPE exists after having included INCLUDES, setting cache
2003 # variable VAR accordingly.
2004 ac_fn_c_check_type ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 eval "$3=no"
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 main ()
2019 if (sizeof ($2))
2020 return 0;
2022 return 0;
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 if (sizeof (($2)))
2033 return 0;
2035 return 0;
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2040 else
2041 eval "$3=yes"
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_c_check_type
2054 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055 # --------------------------------------------
2056 # Tries to find the compile-time value of EXPR in a program that includes
2057 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 # computed
2059 ac_fn_c_compute_int ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if test "$cross_compiling" = yes; then
2063 # Depending upon the size, compute the lo and hi bounds.
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 static int test_array [1 - 2 * !(($2) >= 0)];
2071 test_array [0] = 0
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_lo=0 ac_mid=0
2079 while :; do
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_hi=$ac_mid; break
2095 else
2096 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097 if test $ac_lo -le $ac_mid; then
2098 ac_lo= ac_hi=
2099 break
2101 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 done
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static int test_array [1 - 2 * !(($2) < 0)];
2113 test_array [0] = 0
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=-1 ac_mid=-1
2121 while :; do
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2126 main ()
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 test_array [0] = 0
2132 return 0;
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_lo=$ac_mid; break
2137 else
2138 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139 if test $ac_mid -le $ac_hi; then
2140 ac_lo= ac_hi=
2141 break
2143 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 done
2147 else
2148 ac_lo= ac_hi=
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_hi=$ac_mid
2171 else
2172 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 case $ac_lo in #((
2177 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2178 '') ac_retval=1 ;;
2179 esac
2180 else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2184 static long int longval () { return $2; }
2185 static unsigned long int ulongval () { return $2; }
2186 #include <stdio.h>
2187 #include <stdlib.h>
2189 main ()
2192 FILE *f = fopen ("conftest.val", "w");
2193 if (! f)
2194 return 1;
2195 if (($2) < 0)
2197 long int i = longval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%ld", i);
2202 else
2204 unsigned long int i = ulongval ();
2205 if (i != ($2))
2206 return 1;
2207 fprintf (f, "%lu", i);
2209 /* Do not output a trailing newline, as this causes \r\n confusion
2210 on some platforms. */
2211 return ferror (f) || fclose (f) != 0;
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_run "$LINENO"; then :
2218 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2219 else
2220 ac_retval=1
2222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223 conftest.$ac_objext conftest.beam conftest.$ac_ext
2224 rm -f conftest.val
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 return $ac_retval
2230 } # ac_fn_c_compute_int
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR
2233 # ------------------------------------
2234 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2235 ac_fn_c_check_decl ()
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 as_decl_name=`echo $2|sed 's/ *(.*//'`
2239 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2241 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2249 main ()
2251 #ifndef $as_decl_name
2252 #ifdef __cplusplus
2253 (void) $as_decl_use;
2254 #else
2255 (void) $as_decl_name;
2256 #endif
2257 #endif
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 eval "$3=yes"
2265 else
2266 eval "$3=no"
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275 } # ac_fn_c_check_decl
2276 cat >config.log <<_ACEOF
2277 This file contains any messages produced by compilers while
2278 running configure, to aid debugging if configure makes a mistake.
2280 It was created by GNU TM Runtime Library $as_me 1.0, which was
2281 generated by GNU Autoconf 2.64. Invocation command line was
2283 $ $0 $@
2285 _ACEOF
2286 exec 5>>config.log
2288 cat <<_ASUNAME
2289 ## --------- ##
2290 ## Platform. ##
2291 ## --------- ##
2293 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2299 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2302 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2303 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2304 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2306 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2307 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2308 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2310 _ASUNAME
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 $as_echo "PATH: $as_dir"
2318 done
2319 IFS=$as_save_IFS
2321 } >&5
2323 cat >&5 <<_ACEOF
2326 ## ----------- ##
2327 ## Core tests. ##
2328 ## ----------- ##
2330 _ACEOF
2333 # Keep a trace of the command line.
2334 # Strip out --no-create and --no-recursion so they do not pile up.
2335 # Strip out --silent because we don't want to record it for future runs.
2336 # Also quote any args containing shell meta-characters.
2337 # Make two passes to allow for proper duplicate-argument suppression.
2338 ac_configure_args=
2339 ac_configure_args0=
2340 ac_configure_args1=
2341 ac_must_keep_next=false
2342 for ac_pass in 1 2
2344 for ac_arg
2346 case $ac_arg in
2347 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349 | -silent | --silent | --silen | --sile | --sil)
2350 continue ;;
2351 *\'*)
2352 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 esac
2354 case $ac_pass in
2355 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2357 as_fn_append ac_configure_args1 " '$ac_arg'"
2358 if test $ac_must_keep_next = true; then
2359 ac_must_keep_next=false # Got value, back to normal.
2360 else
2361 case $ac_arg in
2362 *=* | --config-cache | -C | -disable-* | --disable-* \
2363 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365 | -with-* | --with-* | -without-* | --without-* | --x)
2366 case "$ac_configure_args0 " in
2367 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368 esac
2370 -* ) ac_must_keep_next=true ;;
2371 esac
2373 as_fn_append ac_configure_args " '$ac_arg'"
2375 esac
2376 done
2377 done
2378 { ac_configure_args0=; unset ac_configure_args0;}
2379 { ac_configure_args1=; unset ac_configure_args1;}
2381 # When interrupted or exit'd, cleanup temporary files, and complete
2382 # config.log. We remove comments because anyway the quotes in there
2383 # would cause problems or look ugly.
2384 # WARNING: Use '\'' to represent an apostrophe within the trap.
2385 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386 trap 'exit_status=$?
2387 # Save into config.log some information that might help in debugging.
2389 echo
2391 cat <<\_ASBOX
2392 ## ---------------- ##
2393 ## Cache variables. ##
2394 ## ---------------- ##
2395 _ASBOX
2396 echo
2397 # The following way of writing the cache mishandles newlines in values,
2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in #(
2402 *${as_nl}*)
2403 case $ac_var in #(
2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 esac
2407 case $ac_var in #(
2408 _ | IFS | as_nl) ;; #(
2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410 *) { eval $ac_var=; unset $ac_var;} ;;
2411 esac ;;
2412 esac
2413 done
2414 (set) 2>&1 |
2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416 *${as_nl}ac_space=\ *)
2417 sed -n \
2418 "s/'\''/'\''\\\\'\'''\''/g;
2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 ;; #(
2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2424 esac |
2425 sort
2427 echo
2429 cat <<\_ASBOX
2430 ## ----------------- ##
2431 ## Output variables. ##
2432 ## ----------------- ##
2433 _ASBOX
2434 echo
2435 for ac_var in $ac_subst_vars
2437 eval ac_val=\$$ac_var
2438 case $ac_val in
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 esac
2441 $as_echo "$ac_var='\''$ac_val'\''"
2442 done | sort
2443 echo
2445 if test -n "$ac_subst_files"; then
2446 cat <<\_ASBOX
2447 ## ------------------- ##
2448 ## File substitutions. ##
2449 ## ------------------- ##
2450 _ASBOX
2451 echo
2452 for ac_var in $ac_subst_files
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2463 if test -s confdefs.h; then
2464 cat <<\_ASBOX
2465 ## ----------- ##
2466 ## confdefs.h. ##
2467 ## ----------- ##
2468 _ASBOX
2469 echo
2470 cat confdefs.h
2471 echo
2473 test "$ac_signal" != 0 &&
2474 $as_echo "$as_me: caught signal $ac_signal"
2475 $as_echo "$as_me: exit $exit_status"
2476 } >&5
2477 rm -f core *.core core.conftest.* &&
2478 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 exit $exit_status
2481 for ac_signal in 1 2 13 15; do
2482 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483 done
2484 ac_signal=0
2486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2487 rm -f -r conftest* confdefs.h
2489 $as_echo "/* confdefs.h */" > confdefs.h
2491 # Predefined preprocessor variables.
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 _ACEOF
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 _ACEOF
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 _ACEOF
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_URL "$PACKAGE_URL"
2515 _ACEOF
2518 # Let the site file select an alternate cache file if it wants to.
2519 # Prefer an explicitly selected file to automatically selected ones.
2520 ac_site_file1=NONE
2521 ac_site_file2=NONE
2522 if test -n "$CONFIG_SITE"; then
2523 ac_site_file1=$CONFIG_SITE
2524 elif test "x$prefix" != xNONE; then
2525 ac_site_file1=$prefix/share/config.site
2526 ac_site_file2=$prefix/etc/config.site
2527 else
2528 ac_site_file1=$ac_default_prefix/share/config.site
2529 ac_site_file2=$ac_default_prefix/etc/config.site
2531 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533 test "x$ac_site_file" = xNONE && continue
2534 if test -r "$ac_site_file"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537 sed 's/^/| /' "$ac_site_file" >&5
2538 . "$ac_site_file"
2540 done
2542 if test -r "$cache_file"; then
2543 # Some versions of bash will fail to source /dev/null (special
2544 # files actually), so we avoid doing that.
2545 if test -f "$cache_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547 $as_echo "$as_me: loading cache $cache_file" >&6;}
2548 case $cache_file in
2549 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550 *) . "./$cache_file";;
2551 esac
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555 $as_echo "$as_me: creating cache $cache_file" >&6;}
2556 >$cache_file
2559 # Check that the precious variables saved in the cache have kept the same
2560 # value.
2561 ac_cache_corrupted=false
2562 for ac_var in $ac_precious_vars; do
2563 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564 eval ac_new_set=\$ac_env_${ac_var}_set
2565 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566 eval ac_new_val=\$ac_env_${ac_var}_value
2567 case $ac_old_set,$ac_new_set in
2568 set,)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,set)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,);;
2578 if test "x$ac_old_val" != "x$ac_new_val"; then
2579 # differences in whitespace do not lead to failure.
2580 ac_old_val_w=`echo x $ac_old_val`
2581 ac_new_val_w=`echo x $ac_new_val`
2582 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585 ac_cache_corrupted=:
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589 eval $ac_var=\$ac_old_val
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2592 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2594 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2595 fi;;
2596 esac
2597 # Pass precious variables to config.status.
2598 if test "$ac_new_set" = set; then
2599 case $ac_new_val in
2600 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601 *) ac_arg=$ac_var=$ac_new_val ;;
2602 esac
2603 case " $ac_configure_args " in
2604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2605 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606 esac
2608 done
2609 if $ac_cache_corrupted; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 ac_config_headers="$ac_config_headers config.h"
2633 # -------
2634 # Options
2635 # -------
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2638 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2639 # Check whether --enable-version-specific-runtime-libs was given.
2640 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2641 enableval=$enable_version_specific_runtime_libs;
2642 case "$enableval" in
2643 yes|no) ;;
2644 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2645 esac
2647 else
2648 enable_version_specific_runtime_libs=no
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2653 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2655 # We would like our source tree to be readonly. However when releases or
2656 # pre-releases are generated, the flex/bison generated files as well as the
2657 # various formats of manuals need to be included along with the rest of the
2658 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2659 # just that.
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2661 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2662 # Check whether --enable-generated-files-in-srcdir was given.
2663 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2664 enableval=$enable_generated_files_in_srcdir;
2665 case "$enableval" in
2666 yes|no) ;;
2667 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2668 esac
2670 else
2671 enable_generated_files_in_srcdir=no
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2676 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2677 if test "$enable_generated_files_in_srcdir" = yes; then
2678 GENINSRC_TRUE=
2679 GENINSRC_FALSE='#'
2680 else
2681 GENINSRC_TRUE='#'
2682 GENINSRC_FALSE=
2687 # -------
2688 # -------
2690 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2692 # You will slowly go insane if you do not grok the following fact: when
2693 # building this library, the top-level /target/ becomes the library's /host/.
2695 # configure then causes --target to default to --host, exactly like any
2696 # other package using autoconf. Therefore, 'target' and 'host' will
2697 # always be the same. This makes sense both for native and cross compilers
2698 # just think about it for a little while. :-)
2700 # Also, if this library is being configured as part of a cross compiler, the
2701 # top-level configure script will pass the "real" host as $with_cross_host.
2703 # Do not delete or change the following two lines. For why, see
2704 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2705 ac_aux_dir=
2706 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2707 for ac_t in install-sh install.sh shtool; do
2708 if test -f "$ac_dir/$ac_t"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/$ac_t -c"
2711 break 2
2713 done
2714 done
2715 if test -z "$ac_aux_dir"; then
2716 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if test "${ac_cv_build+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2749 *-*-*) ;;
2750 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if test "${ac_cv_host+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773 else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2781 case $ac_cv_host in
2782 *-*-*) ;;
2783 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2784 esac
2785 host=$ac_cv_host
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_host
2788 shift
2789 host_cpu=$1
2790 host_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 host_os=$*
2795 IFS=$ac_save_IFS
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800 $as_echo_n "checking target system type... " >&6; }
2801 if test "${ac_cv_target+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test "x$target_alias" = x; then
2805 ac_cv_target=$ac_cv_host
2806 else
2807 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813 $as_echo "$ac_cv_target" >&6; }
2814 case $ac_cv_target in
2815 *-*-*) ;;
2816 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2817 esac
2818 target=$ac_cv_target
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_target
2821 shift
2822 target_cpu=$1
2823 target_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 target_os=$*
2828 IFS=$ac_save_IFS
2829 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2832 # The aliases save the names the user supplied, while $host etc.
2833 # will get canonicalized.
2834 test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2836 NONENONEs,x,x, &&
2837 program_prefix=${target_alias}-
2839 target_alias=${target_alias-$host_alias}
2841 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2842 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843 # 1.9.0: minimum required version
2844 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845 # of other PACKAGE_* variables will, however, and there's nothing
2846 # we can do about that; they come from AC_INIT).
2847 # no-dist: we don't want 'dist' and related rules.
2848 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2849 # file in the top srcdir, etc, etc), so stop complaining.
2850 # -Wall: turns on all automake warnings...
2851 # -Wno-portability: ...except this one, since GNU make is required.
2852 # -Wno-override: ... and this one, since we do want this in testsuite.
2853 am__api_version='1.11'
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if test "${ac_cv_path_install+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882 ./ | .// | /[cC]/* | \
2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2885 /usr/ucb/* ) ;;
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2889 # by default.
2890 for ac_prog in ginstall scoinst install; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2893 if test $ac_prog = install &&
2894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2897 elif test $ac_prog = install &&
2898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2901 else
2902 rm -rf conftest.one conftest.two conftest.dir
2903 echo one > conftest.one
2904 echo two > conftest.two
2905 mkdir conftest.dir
2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907 test -s conftest.one && test -s conftest.two &&
2908 test -s conftest.dir/conftest.one &&
2909 test -s conftest.dir/conftest.two
2910 then
2911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912 break 3
2916 done
2917 done
2919 esac
2921 done
2922 IFS=$as_save_IFS
2924 rm -rf conftest.one conftest.two conftest.dir
2927 if test "${ac_cv_path_install+set}" = set; then
2928 INSTALL=$ac_cv_path_install
2929 else
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for INSTALL within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 INSTALL=$ac_install_sh
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Just in case
2951 sleep 1
2952 echo timestamp > conftest.file
2953 # Reject unsafe characters in $srcdir or the absolute working directory
2954 # name. Accept space and tab only in the latter.
2955 am_lf='
2957 case `pwd` in
2958 *[\\\"\#\$\&\'\`$am_lf]*)
2959 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2960 esac
2961 case $srcdir in
2962 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2963 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2964 esac
2966 # Do `set' in a subshell so we don't clobber the current shell's
2967 # arguments. Must try -L first in case configure is actually a
2968 # symlink; some systems play weird games with the mod time of symlinks
2969 # (eg FreeBSD returns the mod time of the symlink's containing
2970 # directory).
2971 if (
2972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973 if test "$*" = "X"; then
2974 # -L didn't work.
2975 set X `ls -t "$srcdir/configure" conftest.file`
2977 rm -f conftest.file
2978 if test "$*" != "X $srcdir/configure conftest.file" \
2979 && test "$*" != "X conftest.file $srcdir/configure"; then
2981 # If neither matched, then we have a broken ls. This can happen
2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
2983 # broken ls alias from the environment. This has actually
2984 # happened. Such a system could not be considered "sane".
2985 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2989 test "$2" = conftest.file
2991 then
2992 # Ok.
2994 else
2995 as_fn_error "newly created file is older than distributed files!
2996 Check your system clock" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2999 $as_echo "yes" >&6; }
3000 test "$program_prefix" != NONE &&
3001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002 # Use a double $ so make ignores it.
3003 test "$program_suffix" != NONE &&
3004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005 # Double any \ or $.
3006 # By default was `s,x,x', remove it if useless.
3007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3010 # expand $ac_aux_dir to an absolute path
3011 am_aux_dir=`cd $ac_aux_dir && pwd`
3013 if test x"${MISSING+set}" != xset; then
3014 case $am_aux_dir in
3015 *\ * | *\ *)
3016 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3018 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3019 esac
3021 # Use eval to expand $SHELL
3022 if eval "$MISSING --run true"; then
3023 am_missing_run="$MISSING --run "
3024 else
3025 am_missing_run=
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3030 if test x"${install_sh}" != xset; then
3031 case $am_aux_dir in
3032 *\ * | *\ *)
3033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3035 install_sh="\${SHELL} $am_aux_dir/install-sh"
3036 esac
3039 # Installed binaries are usually stripped using `strip' when the user
3040 # run `make install-strip'. However `strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the `STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_STRIP+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$STRIP"; then
3053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3066 done
3067 done
3068 IFS=$as_save_IFS
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 $as_echo "$STRIP" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3083 if test -z "$ac_cv_prog_STRIP"; then
3084 ac_ct_STRIP=$STRIP
3085 # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$ac_ct_STRIP"; then
3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_STRIP="strip"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3106 done
3107 done
3108 IFS=$as_save_IFS
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115 $as_echo "$ac_ct_STRIP" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3121 if test "x$ac_ct_STRIP" = x; then
3122 STRIP=":"
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 STRIP=$ac_ct_STRIP
3132 else
3133 STRIP="$ac_cv_prog_STRIP"
3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3141 if test -z "$MKDIR_P"; then
3142 if test "${ac_cv_path_mkdir+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_prog in mkdir gmkdir; do
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3153 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3154 'mkdir (GNU coreutils) '* | \
3155 'mkdir (coreutils) '* | \
3156 'mkdir (fileutils) '4.1*)
3157 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3158 break 3;;
3159 esac
3160 done
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 if test "${ac_cv_path_mkdir+set}" = set; then
3168 MKDIR_P="$ac_cv_path_mkdir -p"
3169 else
3170 # As a last resort, use the slow shell script. Don't cache a
3171 # value for MKDIR_P within a source directory, because that will
3172 # break other packages using the cache if that directory is
3173 # removed, or if the value is a relative name.
3174 test -d ./--version && rmdir ./--version
3175 MKDIR_P="$ac_install_sh -d"
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3179 $as_echo "$MKDIR_P" >&6; }
3181 mkdir_p="$MKDIR_P"
3182 case $mkdir_p in
3183 [\\/$]* | ?:[\\/]*) ;;
3184 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3185 esac
3187 for ac_prog in gawk mawk nawk awk
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_AWK+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$AWK"; then
3197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_AWK="$ac_prog"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3212 IFS=$as_save_IFS
3216 AWK=$ac_cv_prog_AWK
3217 if test -n "$AWK"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219 $as_echo "$AWK" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$AWK" && break
3227 done
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3231 set x ${MAKE-make}
3232 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 cat >conftest.make <<\_ACEOF
3237 SHELL = /bin/sh
3238 all:
3239 @echo '@@@%%%=$(MAKE)=@@@%%%'
3240 _ACEOF
3241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3242 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3243 *@@@%%%=?*=@@@%%%*)
3244 eval ac_cv_prog_make_${ac_make}_set=yes;;
3246 eval ac_cv_prog_make_${ac_make}_set=no;;
3247 esac
3248 rm -f conftest.make
3250 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253 SET_MAKE=
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 SET_MAKE="MAKE=${MAKE-make}"
3260 rm -rf .tst 2>/dev/null
3261 mkdir .tst 2>/dev/null
3262 if test -d .tst; then
3263 am__leading_dot=.
3264 else
3265 am__leading_dot=_
3267 rmdir .tst 2>/dev/null
3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271 # is not polluted with repeated "-I."
3272 am__isrc=' -I$(srcdir)'
3273 # test to see if srcdir already configured
3274 if test -f $srcdir/config.status; then
3275 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3279 # test whether we have cygpath
3280 if test -z "$CYGPATH_W"; then
3281 if (cygpath --version) >/dev/null 2>/dev/null; then
3282 CYGPATH_W='cygpath -w'
3283 else
3284 CYGPATH_W=echo
3289 # Define the identity of the package.
3290 PACKAGE='libitm'
3291 VERSION='1.0'
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE "$PACKAGE"
3296 _ACEOF
3299 cat >>confdefs.h <<_ACEOF
3300 #define VERSION "$VERSION"
3301 _ACEOF
3303 # Some tools Automake needs.
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3319 # We need awk for the "check" target. The system "awk" is bad on
3320 # some platforms.
3321 # Always define AMTAR for backward compatibility.
3323 AMTAR=${AMTAR-"${am_missing_run}tar"}
3325 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3331 # Default to --enable-multilib
3332 # Check whether --enable-multilib was given.
3333 if test "${enable_multilib+set}" = set; then :
3334 enableval=$enable_multilib; case "$enableval" in
3335 yes) multilib=yes ;;
3336 no) multilib=no ;;
3337 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3338 esac
3339 else
3340 multilib=yes
3344 # We may get other options which we leave undocumented:
3345 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3346 # See config-ml.in if you want the gory details.
3348 if test "$srcdir" = "."; then
3349 if test "$with_target_subdir" != "."; then
3350 multi_basedir="$srcdir/$with_multisrctop../.."
3351 else
3352 multi_basedir="$srcdir/$with_multisrctop.."
3354 else
3355 multi_basedir="$srcdir/.."
3359 # Even if the default multilib is not a cross compilation,
3360 # it may be that some of the other multilibs are.
3361 if test $cross_compiling = no && test $multilib = yes \
3362 && test "x${with_multisubdir}" != x ; then
3363 cross_compiling=maybe
3366 ac_config_commands="$ac_config_commands default-1"
3369 # Calculate toolexeclibdir
3370 # Also toolexecdir, though it's only used in toolexeclibdir
3371 case ${enable_version_specific_runtime_libs} in
3372 yes)
3373 # Need the gcc compiler version to know where to install libraries
3374 # and header files if --enable-version-specific-runtime-libs option
3375 # is selected.
3376 toolexecdir='$(libdir)/gcc/$(target_alias)'
3377 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3380 if test -n "$with_cross_host" &&
3381 test x"$with_cross_host" != x"no"; then
3382 # Install a library built with a cross compiler in tooldir, not libdir.
3383 toolexecdir='$(exec_prefix)/$(target_alias)'
3384 toolexeclibdir='$(toolexecdir)/lib'
3385 else
3386 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3387 toolexeclibdir='$(libdir)'
3389 multi_os_directory=`$CC -print-multi-os-directory`
3390 case $multi_os_directory in
3391 .) ;; # Avoid trailing /.
3392 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3393 esac
3395 esac
3399 # Check the compiler.
3400 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3401 # We must force CC to /not/ be precious variables; otherwise
3402 # the wrong, non-multilib-adjusted value will be used in multilibs.
3403 # As a side effect, we have to subst CFLAGS ourselves.
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3434 done
3435 done
3436 IFS=$as_save_IFS
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3451 if test -z "$ac_cv_prog_CC"; then
3452 ac_ct_CC=$CC
3453 # Extract the first word of "gcc", so it can be a program name with args.
3454 set dummy gcc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC="gcc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3476 IFS=$as_save_IFS
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483 $as_echo "$ac_ct_CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3489 if test "x$ac_ct_CC" = x; then
3490 CC=""
3491 else
3492 case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3497 esac
3498 CC=$ac_ct_CC
3500 else
3501 CC="$ac_cv_prog_CC"
3504 if test -z "$CC"; then
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}cc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC="${ac_tool_prefix}cc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3527 done
3528 done
3529 IFS=$as_save_IFS
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3545 if test -z "$CC"; then
3546 # Extract the first word of "cc", so it can be a program name with args.
3547 set dummy cc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 ac_prog_rejected=no
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565 ac_prog_rejected=yes
3566 continue
3568 ac_cv_prog_CC="cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3576 if test $ac_prog_rejected = yes; then
3577 # We found a bogon in the path, so make sure we never use it.
3578 set dummy $ac_cv_prog_CC
3579 shift
3580 if test $# != 0; then
3581 # We chose a different compiler from the bogus one.
3582 # However, it has the same basename, so the bogon will be chosen
3583 # first if we set CC to just the basename; use the full file name.
3584 shift
3585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3590 CC=$ac_cv_prog_CC
3591 if test -n "$CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 for ac_prog in cl.exe
3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3626 done
3627 done
3628 IFS=$as_save_IFS
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3642 test -n "$CC" && break
3643 done
3645 if test -z "$CC"; then
3646 ac_ct_CC=$CC
3647 for ac_prog in cl.exe
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 if test -n "$ac_ct_CC"; then
3657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_ac_ct_CC="$ac_prog"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679 $as_echo "$ac_ct_CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3686 test -n "$ac_ct_CC" && break
3687 done
3689 if test "x$ac_ct_CC" = x; then
3690 CC=""
3691 else
3692 case $cross_compiling:$ac_tool_warned in
3693 yes:)
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3697 esac
3698 CC=$ac_ct_CC
3705 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error "no acceptable C compiler found in \$PATH
3708 See \`config.log' for more details." "$LINENO" 5; }
3710 # Provide some information about the compiler.
3711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3712 set X $ac_compile
3713 ac_compiler=$2
3714 for ac_option in --version -v -V -qversion; do
3715 { { ac_try="$ac_compiler $ac_option >&5"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723 ac_status=$?
3724 if test -s conftest.err; then
3725 sed '10a\
3726 ... rest of stderr output deleted ...
3727 10q' conftest.err >conftest.er1
3728 cat conftest.er1 >&5
3729 rm -f conftest.er1 conftest.err
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }
3733 done
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3739 main ()
3743 return 0;
3745 _ACEOF
3746 ac_clean_files_save=$ac_clean_files
3747 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3748 # Try to create an executable without -o first, disregard a.out.
3749 # It will help us diagnose broken compilers, and finding out an intuition
3750 # of exeext.
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3752 $as_echo_n "checking for C compiler default output file name... " >&6; }
3753 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3755 # The possible output files:
3756 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3758 ac_rmfiles=
3759 for ac_file in $ac_files
3761 case $ac_file in
3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3764 esac
3765 done
3766 rm -f $ac_rmfiles
3768 if { { ac_try="$ac_link_default"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_link_default") 2>&5
3776 ac_status=$?
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }; then :
3779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3780 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3781 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3782 # so that the user can short-circuit this test for compilers unknown to
3783 # Autoconf.
3784 for ac_file in $ac_files ''
3786 test -f "$ac_file" || continue
3787 case $ac_file in
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3790 [ab].out )
3791 # We found the default executable, but exeext='' is most
3792 # certainly right.
3793 break;;
3794 *.* )
3795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3796 then :; else
3797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 # We set ac_cv_exeext here because the later test for it is not
3800 # safe: cross compilers may not add the suffix if given an `-o'
3801 # argument, so we may need to know it at that point already.
3802 # Even if this section looks crufty: it has the advantage of
3803 # actually working.
3804 break;;
3806 break;;
3807 esac
3808 done
3809 test "$ac_cv_exeext" = no && ac_cv_exeext=
3811 else
3812 ac_file=''
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3815 $as_echo "$ac_file" >&6; }
3816 if test -z "$ac_file"; then :
3817 $as_echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 { as_fn_set_status 77
3823 as_fn_error "C compiler cannot create executables
3824 See \`config.log' for more details." "$LINENO" 5; }; }
3826 ac_exeext=$ac_cv_exeext
3828 # Check that the compiler produces executables we can run. If not, either
3829 # the compiler is broken, or we cross compile.
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3831 $as_echo_n "checking whether the C compiler works... " >&6; }
3832 # If not cross compiling, check that we can run a simple program.
3833 if test "$cross_compiling" != yes; then
3834 if { ac_try='./$ac_file'
3835 { { case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_try") 2>&5
3842 ac_status=$?
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; }; then
3845 cross_compiling=no
3846 else
3847 if test "$cross_compiling" = maybe; then
3848 cross_compiling=yes
3849 else
3850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error "cannot run C compiled programs.
3853 If you meant to cross compile, use \`--host'.
3854 See \`config.log' for more details." "$LINENO" 5; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3859 $as_echo "yes" >&6; }
3861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3862 ac_clean_files=$ac_clean_files_save
3863 # Check that the compiler produces executables we can run. If not, either
3864 # the compiler is broken, or we cross compile.
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3866 $as_echo_n "checking whether we are cross compiling... " >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3868 $as_echo "$cross_compiling" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3871 $as_echo_n "checking for suffix of executables... " >&6; }
3872 if { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_link") 2>&5
3880 ac_status=$?
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }; then :
3883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3885 # work properly (i.e., refer to `conftest.exe'), while it won't with
3886 # `rm'.
3887 for ac_file in conftest.exe conftest conftest.*; do
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892 break;;
3893 * ) break;;
3894 esac
3895 done
3896 else
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error "cannot compute suffix of executables: cannot compile and link
3900 See \`config.log' for more details." "$LINENO" 5; }
3902 rm -f conftest$ac_cv_exeext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3904 $as_echo "$ac_cv_exeext" >&6; }
3906 rm -f conftest.$ac_ext
3907 EXEEXT=$ac_cv_exeext
3908 ac_exeext=$EXEEXT
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3910 $as_echo_n "checking for suffix of object files... " >&6; }
3911 if test "${ac_cv_objext+set}" = set; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 main ()
3922 return 0;
3924 _ACEOF
3925 rm -f conftest.o conftest.obj
3926 if { { ac_try="$ac_compile"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 $as_echo "$ac_try_echo"; } >&5
3933 (eval "$ac_compile") 2>&5
3934 ac_status=$?
3935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }; then :
3937 for ac_file in conftest.o conftest.obj conftest.*; do
3938 test -f "$ac_file" || continue;
3939 case $ac_file in
3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3942 break;;
3943 esac
3944 done
3945 else
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error "cannot compute suffix of object files: cannot compile
3952 See \`config.log' for more details." "$LINENO" 5; }
3954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3957 $as_echo "$ac_cv_objext" >&6; }
3958 OBJEXT=$ac_cv_objext
3959 ac_objext=$OBJEXT
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3962 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3969 main ()
3971 #ifndef __GNUC__
3972 choke me
3973 #endif
3976 return 0;
3978 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_compiler_gnu=yes
3981 else
3982 ac_compiler_gnu=no
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3990 if test $ac_compiler_gnu = yes; then
3991 GCC=yes
3992 else
3993 GCC=
3995 ac_test_CFLAGS=${CFLAGS+set}
3996 ac_save_CFLAGS=$CFLAGS
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3999 if test "${ac_cv_prog_cc_g+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 ac_save_c_werror_flag=$ac_c_werror_flag
4003 ac_c_werror_flag=yes
4004 ac_cv_prog_cc_g=no
4005 CFLAGS="-g"
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4010 main ()
4014 return 0;
4016 _ACEOF
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 ac_cv_prog_cc_g=yes
4019 else
4020 CFLAGS=""
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4025 main ()
4029 return 0;
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4034 else
4035 ac_c_werror_flag=$ac_save_c_werror_flag
4036 CFLAGS="-g"
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4041 main ()
4045 return 0;
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_cv_prog_cc_g=yes
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4059 $as_echo "$ac_cv_prog_cc_g" >&6; }
4060 if test "$ac_test_CFLAGS" = set; then
4061 CFLAGS=$ac_save_CFLAGS
4062 elif test $ac_cv_prog_cc_g = yes; then
4063 if test "$GCC" = yes; then
4064 CFLAGS="-g -O2"
4065 else
4066 CFLAGS="-g"
4068 else
4069 if test "$GCC" = yes; then
4070 CFLAGS="-O2"
4071 else
4072 CFLAGS=
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4077 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 ac_cv_prog_cc_c89=no
4081 ac_save_CC=$CC
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <stdarg.h>
4085 #include <stdio.h>
4086 #include <sys/types.h>
4087 #include <sys/stat.h>
4088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4089 struct buf { int x; };
4090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4091 static char *e (p, i)
4092 char **p;
4093 int i;
4095 return p[i];
4097 static char *f (char * (*g) (char **, int), char **p, ...)
4099 char *s;
4100 va_list v;
4101 va_start (v,p);
4102 s = g (p, va_arg (v,int));
4103 va_end (v);
4104 return s;
4107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4108 function prototypes and stuff, but not '\xHH' hex character constants.
4109 These don't provoke an error unfortunately, instead are silently treated
4110 as 'x'. The following induces an error, until -std is added to get
4111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4112 array size at least. It's necessary to write '\x00'==0 to get something
4113 that's true only with -std. */
4114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4117 inside strings and character constants. */
4118 #define FOO(x) 'x'
4119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4121 int test (int i, double x);
4122 struct s1 {int (*f) (int a);};
4123 struct s2 {int (*f) (double a);};
4124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125 int argc;
4126 char **argv;
4128 main ()
4130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4132 return 0;
4134 _ACEOF
4135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4138 CC="$ac_save_CC $ac_arg"
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_c89=$ac_arg
4142 rm -f core conftest.err conftest.$ac_objext
4143 test "x$ac_cv_prog_cc_c89" != "xno" && break
4144 done
4145 rm -f conftest.$ac_ext
4146 CC=$ac_save_CC
4149 # AC_CACHE_VAL
4150 case "x$ac_cv_prog_cc_c89" in
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4153 $as_echo "none needed" >&6; } ;;
4154 xno)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156 $as_echo "unsupported" >&6; } ;;
4158 CC="$CC $ac_cv_prog_cc_c89"
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4161 esac
4162 if test "x$ac_cv_prog_cc_c89" != xno; then :
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 DEPDIR="${am__leading_dot}deps"
4173 ac_config_commands="$ac_config_commands depfiles"
4176 am_make=${MAKE-make}
4177 cat > confinc << 'END'
4178 am__doit:
4179 @echo this is the am__doit target
4180 .PHONY: am__doit
4182 # If we don't find an include directive, just comment out the code.
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4184 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4185 am__include="#"
4186 am__quote=
4187 _am_result=none
4188 # First try GNU make style include.
4189 echo "include confinc" > confmf
4190 # Ignore all kinds of additional output from `make'.
4191 case `$am_make -s -f confmf 2> /dev/null` in #(
4192 *the\ am__doit\ target*)
4193 am__include=include
4194 am__quote=
4195 _am_result=GNU
4197 esac
4198 # Now try BSD make style include.
4199 if test "$am__include" = "#"; then
4200 echo '.include "confinc"' > confmf
4201 case `$am_make -s -f confmf 2> /dev/null` in #(
4202 *the\ am__doit\ target*)
4203 am__include=.include
4204 am__quote="\""
4205 _am_result=BSD
4207 esac
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4212 $as_echo "$_am_result" >&6; }
4213 rm -f confinc confmf
4215 # Check whether --enable-dependency-tracking was given.
4216 if test "${enable_dependency_tracking+set}" = set; then :
4217 enableval=$enable_dependency_tracking;
4220 if test "x$enable_dependency_tracking" != xno; then
4221 am_depcomp="$ac_aux_dir/depcomp"
4222 AMDEPBACKSLASH='\'
4224 if test "x$enable_dependency_tracking" != xno; then
4225 AMDEP_TRUE=
4226 AMDEP_FALSE='#'
4227 else
4228 AMDEP_TRUE='#'
4229 AMDEP_FALSE=
4234 depcc="$CC" am_compiler_list=
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4237 $as_echo_n "checking dependency style of $depcc... " >&6; }
4238 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4242 # We make a subdir and do the tests there. Otherwise we can end up
4243 # making bogus files that we don't know about and never remove. For
4244 # instance it was reported that on HP-UX the gcc test will end up
4245 # making a dummy file named `D' -- because `-MD' means `put the output
4246 # in D'.
4247 mkdir conftest.dir
4248 # Copy depcomp to subdir because otherwise we won't find it if we're
4249 # using a relative directory.
4250 cp "$am_depcomp" conftest.dir
4251 cd conftest.dir
4252 # We will build objects and dependencies in a subdirectory because
4253 # it helps to detect inapplicable dependency modes. For instance
4254 # both Tru64's cc and ICC support -MD to output dependencies as a
4255 # side effect of compilation, but ICC will put the dependencies in
4256 # the current directory while Tru64 will put them in the object
4257 # directory.
4258 mkdir sub
4260 am_cv_CC_dependencies_compiler_type=none
4261 if test "$am_compiler_list" = ""; then
4262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4264 am__universal=false
4265 case " $depcc " in #(
4266 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4267 esac
4269 for depmode in $am_compiler_list; do
4270 # Setup a source with many dependencies, because some compilers
4271 # like to wrap large dependency lists on column 80 (with \), and
4272 # we should not choose a depcomp mode which is confused by this.
4274 # We need to recreate these files for each test, as the compiler may
4275 # overwrite some of them when testing with obscure command lines.
4276 # This happens at least with the AIX C compiler.
4277 : > sub/conftest.c
4278 for i in 1 2 3 4 5 6; do
4279 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4281 # Solaris 8's {/usr,}/bin/sh.
4282 touch sub/conftst$i.h
4283 done
4284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4286 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4287 # mode. It turns out that the SunPro C++ compiler does not properly
4288 # handle `-M -o', and we need to detect this. Also, some Intel
4289 # versions had trouble with output in subdirs
4290 am__obj=sub/conftest.${OBJEXT-o}
4291 am__minus_obj="-o $am__obj"
4292 case $depmode in
4293 gcc)
4294 # This depmode causes a compiler race in universal mode.
4295 test "$am__universal" = false || continue
4297 nosideeffect)
4298 # after this tag, mechanisms are not by side-effect, so they'll
4299 # only be used when explicitly requested
4300 if test "x$enable_dependency_tracking" = xyes; then
4301 continue
4302 else
4303 break
4306 msvisualcpp | msvcmsys)
4307 # This compiler won't grok `-c -o', but also, the minuso test has
4308 # not run yet. These depmodes are late enough in the game, and
4309 # so weak that their functioning should not be impacted.
4310 am__obj=conftest.${OBJEXT-o}
4311 am__minus_obj=
4313 none) break ;;
4314 esac
4315 if depmode=$depmode \
4316 source=sub/conftest.c object=$am__obj \
4317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319 >/dev/null 2>conftest.err &&
4320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324 # icc doesn't choke on unknown options, it will just issue warnings
4325 # or remarks (even with -Werror). So we grep stderr for any message
4326 # that says an option was ignored or not supported.
4327 # When given -MP, icc 7.0 and 7.1 complain thusly:
4328 # icc: Command line warning: ignoring option '-M'; no argument required
4329 # The diagnosis changed in icc 8.0:
4330 # icc: Command line remark: option '-MP' not supported
4331 if (grep 'ignoring option' conftest.err ||
4332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333 am_cv_CC_dependencies_compiler_type=$depmode
4334 break
4337 done
4339 cd ..
4340 rm -rf conftest.dir
4341 else
4342 am_cv_CC_dependencies_compiler_type=none
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4351 test "x$enable_dependency_tracking" != xno \
4352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353 am__fastdepCC_TRUE=
4354 am__fastdepCC_FALSE='#'
4355 else
4356 am__fastdepCC_TRUE='#'
4357 am__fastdepCC_FALSE=
4361 ac_ext=cpp
4362 ac_cpp='$CXXCPP $CPPFLAGS'
4363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4366 if test -z "$CXX"; then
4367 if test -n "$CCC"; then
4368 CXX=$CCC
4369 else
4370 if test -n "$ac_tool_prefix"; then
4371 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if test "${ac_cv_prog_CXX+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$CXX"; then
4381 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4394 done
4395 done
4396 IFS=$as_save_IFS
4400 CXX=$ac_cv_prog_CXX
4401 if test -n "$CXX"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4403 $as_echo "$CXX" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4410 test -n "$CXX" && break
4411 done
4413 if test -z "$CXX"; then
4414 ac_ct_CXX=$CXX
4415 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4417 # Extract the first word of "$ac_prog", so it can be a program name with args.
4418 set dummy $ac_prog; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -n "$ac_ct_CXX"; then
4425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_ac_ct_CXX="$ac_prog"
4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4445 if test -n "$ac_ct_CXX"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4447 $as_echo "$ac_ct_CXX" >&6; }
4448 else
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4454 test -n "$ac_ct_CXX" && break
4455 done
4457 if test "x$ac_ct_CXX" = x; then
4458 CXX="g++"
4459 else
4460 case $cross_compiling:$ac_tool_warned in
4461 yes:)
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4464 ac_tool_warned=yes ;;
4465 esac
4466 CXX=$ac_ct_CXX
4472 # Provide some information about the compiler.
4473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4474 set X $ac_compile
4475 ac_compiler=$2
4476 for ac_option in --version -v -V -qversion; do
4477 { { ac_try="$ac_compiler $ac_option >&5"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4485 ac_status=$?
4486 if test -s conftest.err; then
4487 sed '10a\
4488 ... rest of stderr output deleted ...
4489 10q' conftest.err >conftest.er1
4490 cat conftest.er1 >&5
4491 rm -f conftest.er1 conftest.err
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }
4495 done
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4498 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4506 main ()
4508 #ifndef __GNUC__
4509 choke me
4510 #endif
4513 return 0;
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_compiler_gnu=yes
4518 else
4519 ac_compiler_gnu=no
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4526 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4527 if test $ac_compiler_gnu = yes; then
4528 GXX=yes
4529 else
4530 GXX=
4532 ac_test_CXXFLAGS=${CXXFLAGS+set}
4533 ac_save_CXXFLAGS=$CXXFLAGS
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4535 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4536 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4540 ac_cxx_werror_flag=yes
4541 ac_cv_prog_cxx_g=no
4542 CXXFLAGS="-g"
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4551 return 0;
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555 ac_cv_prog_cxx_g=yes
4556 else
4557 CXXFLAGS=""
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4562 main ()
4566 return 0;
4568 _ACEOF
4569 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 else
4572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4573 CXXFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586 ac_cv_prog_cxx_g=yes
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4596 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4597 if test "$ac_test_CXXFLAGS" = set; then
4598 CXXFLAGS=$ac_save_CXXFLAGS
4599 elif test $ac_cv_prog_cxx_g = yes; then
4600 if test "$GXX" = yes; then
4601 CXXFLAGS="-g -O2"
4602 else
4603 CXXFLAGS="-g"
4605 else
4606 if test "$GXX" = yes; then
4607 CXXFLAGS="-O2"
4608 else
4609 CXXFLAGS=
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618 depcc="$CXX" am_compiler_list=
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4621 $as_echo_n "checking dependency style of $depcc... " >&6; }
4622 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4626 # We make a subdir and do the tests there. Otherwise we can end up
4627 # making bogus files that we don't know about and never remove. For
4628 # instance it was reported that on HP-UX the gcc test will end up
4629 # making a dummy file named `D' -- because `-MD' means `put the output
4630 # in D'.
4631 mkdir conftest.dir
4632 # Copy depcomp to subdir because otherwise we won't find it if we're
4633 # using a relative directory.
4634 cp "$am_depcomp" conftest.dir
4635 cd conftest.dir
4636 # We will build objects and dependencies in a subdirectory because
4637 # it helps to detect inapplicable dependency modes. For instance
4638 # both Tru64's cc and ICC support -MD to output dependencies as a
4639 # side effect of compilation, but ICC will put the dependencies in
4640 # the current directory while Tru64 will put them in the object
4641 # directory.
4642 mkdir sub
4644 am_cv_CXX_dependencies_compiler_type=none
4645 if test "$am_compiler_list" = ""; then
4646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4648 am__universal=false
4649 case " $depcc " in #(
4650 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4651 esac
4653 for depmode in $am_compiler_list; do
4654 # Setup a source with many dependencies, because some compilers
4655 # like to wrap large dependency lists on column 80 (with \), and
4656 # we should not choose a depcomp mode which is confused by this.
4658 # We need to recreate these files for each test, as the compiler may
4659 # overwrite some of them when testing with obscure command lines.
4660 # This happens at least with the AIX C compiler.
4661 : > sub/conftest.c
4662 for i in 1 2 3 4 5 6; do
4663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4665 # Solaris 8's {/usr,}/bin/sh.
4666 touch sub/conftst$i.h
4667 done
4668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4670 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4671 # mode. It turns out that the SunPro C++ compiler does not properly
4672 # handle `-M -o', and we need to detect this. Also, some Intel
4673 # versions had trouble with output in subdirs
4674 am__obj=sub/conftest.${OBJEXT-o}
4675 am__minus_obj="-o $am__obj"
4676 case $depmode in
4677 gcc)
4678 # This depmode causes a compiler race in universal mode.
4679 test "$am__universal" = false || continue
4681 nosideeffect)
4682 # after this tag, mechanisms are not by side-effect, so they'll
4683 # only be used when explicitly requested
4684 if test "x$enable_dependency_tracking" = xyes; then
4685 continue
4686 else
4687 break
4690 msvisualcpp | msvcmsys)
4691 # This compiler won't grok `-c -o', but also, the minuso test has
4692 # not run yet. These depmodes are late enough in the game, and
4693 # so weak that their functioning should not be impacted.
4694 am__obj=conftest.${OBJEXT-o}
4695 am__minus_obj=
4697 none) break ;;
4698 esac
4699 if depmode=$depmode \
4700 source=sub/conftest.c object=$am__obj \
4701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4702 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4703 >/dev/null 2>conftest.err &&
4704 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4705 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4706 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4707 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4708 # icc doesn't choke on unknown options, it will just issue warnings
4709 # or remarks (even with -Werror). So we grep stderr for any message
4710 # that says an option was ignored or not supported.
4711 # When given -MP, icc 7.0 and 7.1 complain thusly:
4712 # icc: Command line warning: ignoring option '-M'; no argument required
4713 # The diagnosis changed in icc 8.0:
4714 # icc: Command line remark: option '-MP' not supported
4715 if (grep 'ignoring option' conftest.err ||
4716 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4717 am_cv_CXX_dependencies_compiler_type=$depmode
4718 break
4721 done
4723 cd ..
4724 rm -rf conftest.dir
4725 else
4726 am_cv_CXX_dependencies_compiler_type=none
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4731 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4732 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4735 test "x$enable_dependency_tracking" != xno \
4736 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4737 am__fastdepCXX_TRUE=
4738 am__fastdepCXX_FALSE='#'
4739 else
4740 am__fastdepCXX_TRUE='#'
4741 am__fastdepCXX_FALSE=
4745 # By default we simply use the C compiler to build assembly code.
4747 test "${CCAS+set}" = set || CCAS=$CC
4748 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4752 depcc="$CCAS" am_compiler_list=
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4755 $as_echo_n "checking dependency style of $depcc... " >&6; }
4756 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4760 # We make a subdir and do the tests there. Otherwise we can end up
4761 # making bogus files that we don't know about and never remove. For
4762 # instance it was reported that on HP-UX the gcc test will end up
4763 # making a dummy file named `D' -- because `-MD' means `put the output
4764 # in D'.
4765 mkdir conftest.dir
4766 # Copy depcomp to subdir because otherwise we won't find it if we're
4767 # using a relative directory.
4768 cp "$am_depcomp" conftest.dir
4769 cd conftest.dir
4770 # We will build objects and dependencies in a subdirectory because
4771 # it helps to detect inapplicable dependency modes. For instance
4772 # both Tru64's cc and ICC support -MD to output dependencies as a
4773 # side effect of compilation, but ICC will put the dependencies in
4774 # the current directory while Tru64 will put them in the object
4775 # directory.
4776 mkdir sub
4778 am_cv_CCAS_dependencies_compiler_type=none
4779 if test "$am_compiler_list" = ""; then
4780 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4782 am__universal=false
4785 for depmode in $am_compiler_list; do
4786 # Setup a source with many dependencies, because some compilers
4787 # like to wrap large dependency lists on column 80 (with \), and
4788 # we should not choose a depcomp mode which is confused by this.
4790 # We need to recreate these files for each test, as the compiler may
4791 # overwrite some of them when testing with obscure command lines.
4792 # This happens at least with the AIX C compiler.
4793 : > sub/conftest.c
4794 for i in 1 2 3 4 5 6; do
4795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4797 # Solaris 8's {/usr,}/bin/sh.
4798 touch sub/conftst$i.h
4799 done
4800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4802 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4803 # mode. It turns out that the SunPro C++ compiler does not properly
4804 # handle `-M -o', and we need to detect this. Also, some Intel
4805 # versions had trouble with output in subdirs
4806 am__obj=sub/conftest.${OBJEXT-o}
4807 am__minus_obj="-o $am__obj"
4808 case $depmode in
4809 gcc)
4810 # This depmode causes a compiler race in universal mode.
4811 test "$am__universal" = false || continue
4813 nosideeffect)
4814 # after this tag, mechanisms are not by side-effect, so they'll
4815 # only be used when explicitly requested
4816 if test "x$enable_dependency_tracking" = xyes; then
4817 continue
4818 else
4819 break
4822 msvisualcpp | msvcmsys)
4823 # This compiler won't grok `-c -o', but also, the minuso test has
4824 # not run yet. These depmodes are late enough in the game, and
4825 # so weak that their functioning should not be impacted.
4826 am__obj=conftest.${OBJEXT-o}
4827 am__minus_obj=
4829 none) break ;;
4830 esac
4831 if depmode=$depmode \
4832 source=sub/conftest.c object=$am__obj \
4833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4835 >/dev/null 2>conftest.err &&
4836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4840 # icc doesn't choke on unknown options, it will just issue warnings
4841 # or remarks (even with -Werror). So we grep stderr for any message
4842 # that says an option was ignored or not supported.
4843 # When given -MP, icc 7.0 and 7.1 complain thusly:
4844 # icc: Command line warning: ignoring option '-M'; no argument required
4845 # The diagnosis changed in icc 8.0:
4846 # icc: Command line remark: option '-MP' not supported
4847 if (grep 'ignoring option' conftest.err ||
4848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4849 am_cv_CCAS_dependencies_compiler_type=$depmode
4850 break
4853 done
4855 cd ..
4856 rm -rf conftest.dir
4857 else
4858 am_cv_CCAS_dependencies_compiler_type=none
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4863 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4864 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4867 test "x$enable_dependency_tracking" != xno \
4868 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4869 am__fastdepCCAS_TRUE=
4870 am__fastdepCCAS_FALSE='#'
4871 else
4872 am__fastdepCCAS_TRUE='#'
4873 am__fastdepCCAS_FALSE=
4881 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4882 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4883 # in both places for now and restore CFLAGS at the end of config.
4884 save_CFLAGS="$CFLAGS"
4886 # Find other programs we need.
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}ar; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_AR+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$AR"; then
4896 ac_cv_prog_AR="$AR" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_AR="${ac_tool_prefix}ar"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4909 done
4910 done
4911 IFS=$as_save_IFS
4915 AR=$ac_cv_prog_AR
4916 if test -n "$AR"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4918 $as_echo "$AR" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4926 if test -z "$ac_cv_prog_AR"; then
4927 ac_ct_AR=$AR
4928 # Extract the first word of "ar", so it can be a program name with args.
4929 set dummy ar; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$ac_ct_AR"; then
4936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_ac_ct_AR="ar"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4949 done
4950 done
4951 IFS=$as_save_IFS
4955 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4956 if test -n "$ac_ct_AR"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4958 $as_echo "$ac_ct_AR" >&6; }
4959 else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4964 if test "x$ac_ct_AR" = x; then
4965 AR=""
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 AR=$ac_ct_AR
4975 else
4976 AR="$ac_cv_prog_AR"
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}nm; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if test "${ac_cv_prog_NM+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$NM"; then
4988 ac_cv_prog_NM="$NM" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_NM="${ac_tool_prefix}nm"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 NM=$ac_cv_prog_NM
5008 if test -n "$NM"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5010 $as_echo "$NM" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5018 if test -z "$ac_cv_prog_NM"; then
5019 ac_ct_NM=$NM
5020 # Extract the first word of "nm", so it can be a program name with args.
5021 set dummy nm; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$ac_ct_NM"; then
5028 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_ac_ct_NM="nm"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5048 if test -n "$ac_ct_NM"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5050 $as_echo "$ac_ct_NM" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5056 if test "x$ac_ct_NM" = x; then
5057 NM=""
5058 else
5059 case $cross_compiling:$ac_tool_warned in
5060 yes:)
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5063 ac_tool_warned=yes ;;
5064 esac
5065 NM=$ac_ct_NM
5067 else
5068 NM="$ac_cv_prog_NM"
5071 if test -n "$ac_tool_prefix"; then
5072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$RANLIB"; then
5080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5093 done
5094 done
5095 IFS=$as_save_IFS
5099 RANLIB=$ac_cv_prog_RANLIB
5100 if test -n "$RANLIB"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5102 $as_echo "$RANLIB" >&6; }
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5110 if test -z "$ac_cv_prog_RANLIB"; then
5111 ac_ct_RANLIB=$RANLIB
5112 # Extract the first word of "ranlib", so it can be a program name with args.
5113 set dummy ranlib; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$ac_ct_RANLIB"; then
5120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_ac_ct_RANLIB="ranlib"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5133 done
5134 done
5135 IFS=$as_save_IFS
5139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5140 if test -n "$ac_ct_RANLIB"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5142 $as_echo "$ac_ct_RANLIB" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5148 if test "x$ac_ct_RANLIB" = x; then
5149 RANLIB="ranlib-not-found-in-path-error"
5150 else
5151 case $cross_compiling:$ac_tool_warned in
5152 yes:)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157 RANLIB=$ac_ct_RANLIB
5159 else
5160 RANLIB="$ac_cv_prog_RANLIB"
5163 # Extract the first word of "perl", so it can be a program name with args.
5164 set dummy perl; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_path_PERL+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 case $PERL in
5171 [\\/]* | ?:[\\/]*)
5172 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5190 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5192 esac
5194 PERL=$ac_cv_path_PERL
5195 if test -n "$PERL"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5197 $as_echo "$PERL" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5206 set x ${MAKE-make}
5207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 cat >conftest.make <<\_ACEOF
5212 SHELL = /bin/sh
5213 all:
5214 @echo '@@@%%%=$(MAKE)=@@@%%%'
5215 _ACEOF
5216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5218 *@@@%%%=?*=@@@%%%*)
5219 eval ac_cv_prog_make_${ac_make}_set=yes;;
5221 eval ac_cv_prog_make_${ac_make}_set=no;;
5222 esac
5223 rm -f conftest.make
5225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227 $as_echo "yes" >&6; }
5228 SET_MAKE=
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 SET_MAKE="MAKE=${MAKE-make}"
5237 # See if makeinfo has been installed and is modern enough
5238 # that we can use it.
5240 # Extract the first word of "makeinfo", so it can be a program name with args.
5241 set dummy makeinfo; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$MAKEINFO"; then
5248 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_MAKEINFO="makeinfo"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 MAKEINFO=$ac_cv_prog_MAKEINFO
5268 if test -n "$MAKEINFO"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5270 $as_echo "$MAKEINFO" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5277 if test -n "$MAKEINFO"; then
5278 # Found it, now check the version.
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5280 $as_echo_n "checking for modern makeinfo... " >&6; }
5281 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5285 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5287 case $ac_prog_version in
5288 '') gcc_cv_prog_makeinfo_modern=no;;
5289 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5290 *) gcc_cv_prog_makeinfo_modern=no;;
5291 esac
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5295 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5296 else
5297 gcc_cv_prog_makeinfo_modern=no
5299 if test $gcc_cv_prog_makeinfo_modern = no; then
5300 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5303 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5304 BUILD_INFO_TRUE=
5305 BUILD_INFO_FALSE='#'
5306 else
5307 BUILD_INFO_TRUE='#'
5308 BUILD_INFO_FALSE=
5313 # Configure libtool
5314 case `pwd` in
5315 *\ * | *\ *)
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5318 esac
5322 macro_version='2.2.7a'
5323 macro_revision='1.3134'
5337 ltmain="$ac_aux_dir/ltmain.sh"
5339 # Backslashify metacharacters that are still active within
5340 # double-quoted strings.
5341 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5343 # Same as above, but do not quote variable references.
5344 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5346 # Sed substitution to delay expansion of an escaped shell variable in a
5347 # double_quote_subst'ed string.
5348 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5350 # Sed substitution to delay expansion of an escaped single quote.
5351 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5353 # Sed substitution to avoid accidental globbing in evaled expressions
5354 no_glob_subst='s/\*/\\\*/g'
5356 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5357 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5361 $as_echo_n "checking how to print strings... " >&6; }
5362 # Test print first, because it will be a builtin if present.
5363 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5364 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5365 ECHO='print -r --'
5366 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5367 ECHO='printf %s\n'
5368 else
5369 # Use this function as a fallback that always works.
5370 func_fallback_echo ()
5372 eval 'cat <<_LTECHO_EOF
5374 _LTECHO_EOF'
5376 ECHO='func_fallback_echo'
5379 # func_echo_all arg...
5380 # Invoke $ECHO with all args, space-separated.
5381 func_echo_all ()
5383 $ECHO ""
5386 case "$ECHO" in
5387 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5388 $as_echo "printf" >&6; } ;;
5389 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5390 $as_echo "print -r" >&6; } ;;
5391 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5392 $as_echo "cat" >&6; } ;;
5393 esac
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5409 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5410 if test "${ac_cv_path_SED+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5414 for ac_i in 1 2 3 4 5 6 7; do
5415 ac_script="$ac_script$as_nl$ac_script"
5416 done
5417 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5418 { ac_script=; unset ac_script;}
5419 if test -z "$SED"; then
5420 ac_path_SED_found=false
5421 # Loop through the user's path and test for each of PROGNAME-LIST
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_prog in sed gsed; do
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5430 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5431 # Check for GNU ac_path_SED and select it if it is found.
5432 # Check for GNU $ac_path_SED
5433 case `"$ac_path_SED" --version 2>&1` in
5434 *GNU*)
5435 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5437 ac_count=0
5438 $as_echo_n 0123456789 >"conftest.in"
5439 while :
5441 cat "conftest.in" "conftest.in" >"conftest.tmp"
5442 mv "conftest.tmp" "conftest.in"
5443 cp "conftest.in" "conftest.nl"
5444 $as_echo '' >> "conftest.nl"
5445 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447 as_fn_arith $ac_count + 1 && ac_count=$as_val
5448 if test $ac_count -gt ${ac_path_SED_max-0}; then
5449 # Best one so far, save it but keep looking for a better one
5450 ac_cv_path_SED="$ac_path_SED"
5451 ac_path_SED_max=$ac_count
5453 # 10*(2^10) chars as input seems more than enough
5454 test $ac_count -gt 10 && break
5455 done
5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5457 esac
5459 $ac_path_SED_found && break 3
5460 done
5461 done
5462 done
5463 IFS=$as_save_IFS
5464 if test -z "$ac_cv_path_SED"; then
5465 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5467 else
5468 ac_cv_path_SED=$SED
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5473 $as_echo "$ac_cv_path_SED" >&6; }
5474 SED="$ac_cv_path_SED"
5475 rm -f conftest.sed
5477 test -z "$SED" && SED=sed
5478 Xsed="$SED -e 1s/^X//"
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5491 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5492 if test "${ac_cv_path_GREP+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -z "$GREP"; then
5496 ac_path_GREP_found=false
5497 # Loop through the user's path and test for each of PROGNAME-LIST
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_prog in grep ggrep; do
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5506 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5507 # Check for GNU ac_path_GREP and select it if it is found.
5508 # Check for GNU $ac_path_GREP
5509 case `"$ac_path_GREP" --version 2>&1` in
5510 *GNU*)
5511 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5513 ac_count=0
5514 $as_echo_n 0123456789 >"conftest.in"
5515 while :
5517 cat "conftest.in" "conftest.in" >"conftest.tmp"
5518 mv "conftest.tmp" "conftest.in"
5519 cp "conftest.in" "conftest.nl"
5520 $as_echo 'GREP' >> "conftest.nl"
5521 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523 as_fn_arith $ac_count + 1 && ac_count=$as_val
5524 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5525 # Best one so far, save it but keep looking for a better one
5526 ac_cv_path_GREP="$ac_path_GREP"
5527 ac_path_GREP_max=$ac_count
5529 # 10*(2^10) chars as input seems more than enough
5530 test $ac_count -gt 10 && break
5531 done
5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533 esac
5535 $ac_path_GREP_found && break 3
5536 done
5537 done
5538 done
5539 IFS=$as_save_IFS
5540 if test -z "$ac_cv_path_GREP"; then
5541 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5543 else
5544 ac_cv_path_GREP=$GREP
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5549 $as_echo "$ac_cv_path_GREP" >&6; }
5550 GREP="$ac_cv_path_GREP"
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5554 $as_echo_n "checking for egrep... " >&6; }
5555 if test "${ac_cv_path_EGREP+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5559 then ac_cv_path_EGREP="$GREP -E"
5560 else
5561 if test -z "$EGREP"; then
5562 ac_path_EGREP_found=false
5563 # Loop through the user's path and test for each of PROGNAME-LIST
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_prog in egrep; do
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5572 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5573 # Check for GNU ac_path_EGREP and select it if it is found.
5574 # Check for GNU $ac_path_EGREP
5575 case `"$ac_path_EGREP" --version 2>&1` in
5576 *GNU*)
5577 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5579 ac_count=0
5580 $as_echo_n 0123456789 >"conftest.in"
5581 while :
5583 cat "conftest.in" "conftest.in" >"conftest.tmp"
5584 mv "conftest.tmp" "conftest.in"
5585 cp "conftest.in" "conftest.nl"
5586 $as_echo 'EGREP' >> "conftest.nl"
5587 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589 as_fn_arith $ac_count + 1 && ac_count=$as_val
5590 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5591 # Best one so far, save it but keep looking for a better one
5592 ac_cv_path_EGREP="$ac_path_EGREP"
5593 ac_path_EGREP_max=$ac_count
5595 # 10*(2^10) chars as input seems more than enough
5596 test $ac_count -gt 10 && break
5597 done
5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599 esac
5601 $ac_path_EGREP_found && break 3
5602 done
5603 done
5604 done
5605 IFS=$as_save_IFS
5606 if test -z "$ac_cv_path_EGREP"; then
5607 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5609 else
5610 ac_cv_path_EGREP=$EGREP
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5616 $as_echo "$ac_cv_path_EGREP" >&6; }
5617 EGREP="$ac_cv_path_EGREP"
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5621 $as_echo_n "checking for fgrep... " >&6; }
5622 if test "${ac_cv_path_FGREP+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5626 then ac_cv_path_FGREP="$GREP -F"
5627 else
5628 if test -z "$FGREP"; then
5629 ac_path_FGREP_found=false
5630 # Loop through the user's path and test for each of PROGNAME-LIST
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_prog in fgrep; do
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5639 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5640 # Check for GNU ac_path_FGREP and select it if it is found.
5641 # Check for GNU $ac_path_FGREP
5642 case `"$ac_path_FGREP" --version 2>&1` in
5643 *GNU*)
5644 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5646 ac_count=0
5647 $as_echo_n 0123456789 >"conftest.in"
5648 while :
5650 cat "conftest.in" "conftest.in" >"conftest.tmp"
5651 mv "conftest.tmp" "conftest.in"
5652 cp "conftest.in" "conftest.nl"
5653 $as_echo 'FGREP' >> "conftest.nl"
5654 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5656 as_fn_arith $ac_count + 1 && ac_count=$as_val
5657 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5658 # Best one so far, save it but keep looking for a better one
5659 ac_cv_path_FGREP="$ac_path_FGREP"
5660 ac_path_FGREP_max=$ac_count
5662 # 10*(2^10) chars as input seems more than enough
5663 test $ac_count -gt 10 && break
5664 done
5665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5666 esac
5668 $ac_path_FGREP_found && break 3
5669 done
5670 done
5671 done
5672 IFS=$as_save_IFS
5673 if test -z "$ac_cv_path_FGREP"; then
5674 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5676 else
5677 ac_cv_path_FGREP=$FGREP
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5683 $as_echo "$ac_cv_path_FGREP" >&6; }
5684 FGREP="$ac_cv_path_FGREP"
5687 test -z "$GREP" && GREP=grep
5707 # Check whether --with-gnu-ld was given.
5708 if test "${with_gnu_ld+set}" = set; then :
5709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710 else
5711 with_gnu_ld=no
5714 ac_prog=ld
5715 if test "$GCC" = yes; then
5716 # Check if gcc -print-prog-name=ld gives a path.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5718 $as_echo_n "checking for ld used by $CC... " >&6; }
5719 case $host in
5720 *-*-mingw*)
5721 # gcc leaves a trailing carriage return which upsets mingw
5722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5725 esac
5726 case $ac_prog in
5727 # Accept absolute paths.
5728 [\\/]* | ?:[\\/]*)
5729 re_direlt='/[^/][^/]*/\.\./'
5730 # Canonicalize the pathname of ld
5731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734 done
5735 test -z "$LD" && LD="$ac_prog"
5738 # If it fails, then pretend we aren't using GCC.
5739 ac_prog=ld
5742 # If it is relative, then search for the first ld in PATH.
5743 with_gnu_ld=unknown
5745 esac
5746 elif test "$with_gnu_ld" = yes; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5748 $as_echo_n "checking for GNU ld... " >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5751 $as_echo_n "checking for non-GNU ld... " >&6; }
5753 if test "${lt_cv_path_LD+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -z "$LD"; then
5757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758 for ac_dir in $PATH; do
5759 IFS="$lt_save_ifs"
5760 test -z "$ac_dir" && ac_dir=.
5761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5762 lt_cv_path_LD="$ac_dir/$ac_prog"
5763 # Check to see if the program is GNU ld. I'd rather use --version,
5764 # but apparently some variants of GNU ld only accept -v.
5765 # Break only if it was the GNU/non-GNU ld that we prefer.
5766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5767 *GNU* | *'with BFD'*)
5768 test "$with_gnu_ld" != no && break
5771 test "$with_gnu_ld" != yes && break
5773 esac
5775 done
5776 IFS="$lt_save_ifs"
5777 else
5778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5782 LD="$lt_cv_path_LD"
5783 if test -n "$LD"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5785 $as_echo "$LD" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5790 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5793 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5797 case `$LD -v 2>&1 </dev/null` in
5798 *GNU* | *'with BFD'*)
5799 lt_cv_prog_gnu_ld=yes
5802 lt_cv_prog_gnu_ld=no
5804 esac
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5808 with_gnu_ld=$lt_cv_prog_gnu_ld
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5819 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5820 if test "${lt_cv_path_NM+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$NM"; then
5824 # Let the user override the test.
5825 lt_cv_path_NM="$NM"
5826 else
5827 lt_nm_to_check="${ac_tool_prefix}nm"
5828 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5829 lt_nm_to_check="$lt_nm_to_check nm"
5831 for lt_tmp_nm in $lt_nm_to_check; do
5832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5833 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5834 IFS="$lt_save_ifs"
5835 test -z "$ac_dir" && ac_dir=.
5836 tmp_nm="$ac_dir/$lt_tmp_nm"
5837 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5838 # Check to see if the nm accepts a BSD-compat flag.
5839 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5840 # nm: unknown option "B" ignored
5841 # Tru64's nm complains that /dev/null is an invalid object file
5842 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5843 */dev/null* | *'Invalid file or object type'*)
5844 lt_cv_path_NM="$tmp_nm -B"
5845 break
5848 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5849 */dev/null*)
5850 lt_cv_path_NM="$tmp_nm -p"
5851 break
5854 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5855 continue # so that we can try to find one that supports BSD flags
5857 esac
5859 esac
5861 done
5862 IFS="$lt_save_ifs"
5863 done
5864 : ${lt_cv_path_NM=no}
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5868 $as_echo "$lt_cv_path_NM" >&6; }
5869 if test "$lt_cv_path_NM" != "no"; then
5870 NM="$lt_cv_path_NM"
5871 else
5872 # Didn't find any BSD compatible name lister, look for dumpbin.
5873 if test -n "$DUMPBIN"; then :
5874 # Let the user override the test.
5875 else
5876 if test -n "$ac_tool_prefix"; then
5877 for ac_prog in dumpbin "link -dump"
5879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -n "$DUMPBIN"; then
5887 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5900 done
5901 done
5902 IFS=$as_save_IFS
5906 DUMPBIN=$ac_cv_prog_DUMPBIN
5907 if test -n "$DUMPBIN"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5909 $as_echo "$DUMPBIN" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5916 test -n "$DUMPBIN" && break
5917 done
5919 if test -z "$DUMPBIN"; then
5920 ac_ct_DUMPBIN=$DUMPBIN
5921 for ac_prog in dumpbin "link -dump"
5923 # Extract the first word of "$ac_prog", so it can be a program name with args.
5924 set dummy $ac_prog; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -n "$ac_ct_DUMPBIN"; then
5931 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5944 done
5945 done
5946 IFS=$as_save_IFS
5950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5951 if test -n "$ac_ct_DUMPBIN"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5953 $as_echo "$ac_ct_DUMPBIN" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5960 test -n "$ac_ct_DUMPBIN" && break
5961 done
5963 if test "x$ac_ct_DUMPBIN" = x; then
5964 DUMPBIN=":"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972 DUMPBIN=$ac_ct_DUMPBIN
5976 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5977 *COFF*)
5978 DUMPBIN="$DUMPBIN -symbols"
5981 DUMPBIN=:
5983 esac
5986 if test "$DUMPBIN" != ":"; then
5987 NM="$DUMPBIN"
5990 test -z "$NM" && NM=nm
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5998 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5999 if test "${lt_cv_nm_interface+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 lt_cv_nm_interface="BSD nm"
6003 echo "int some_variable = 0;" > conftest.$ac_ext
6004 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6005 (eval "$ac_compile" 2>conftest.err)
6006 cat conftest.err >&5
6007 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6008 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6009 cat conftest.err >&5
6010 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6011 cat conftest.out >&5
6012 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6013 lt_cv_nm_interface="MS dumpbin"
6015 rm -f conftest*
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6018 $as_echo "$lt_cv_nm_interface" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6021 $as_echo_n "checking whether ln -s works... " >&6; }
6022 LN_S=$as_ln_s
6023 if test "$LN_S" = "ln -s"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6025 $as_echo "yes" >&6; }
6026 else
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6028 $as_echo "no, using $LN_S" >&6; }
6031 # find the maximum length of command line arguments
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6033 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6034 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6038 teststring="ABCD"
6040 case $build_os in
6041 msdosdjgpp*)
6042 # On DJGPP, this test can blow up pretty badly due to problems in libc
6043 # (any single argument exceeding 2000 bytes causes a buffer overrun
6044 # during glob expansion). Even if it were fixed, the result of this
6045 # check would be larger than it should be.
6046 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6049 gnu*)
6050 # Under GNU Hurd, this test is not required because there is
6051 # no limit to the length of command line arguments.
6052 # Libtool will interpret -1 as no limit whatsoever
6053 lt_cv_sys_max_cmd_len=-1;
6056 cygwin* | mingw* | cegcc*)
6057 # On Win9x/ME, this test blows up -- it succeeds, but takes
6058 # about 5 minutes as the teststring grows exponentially.
6059 # Worse, since 9x/ME are not pre-emptively multitasking,
6060 # you end up with a "frozen" computer, even though with patience
6061 # the test eventually succeeds (with a max line length of 256k).
6062 # Instead, let's just punt: use the minimum linelength reported by
6063 # all of the supported platforms: 8192 (on NT/2K/XP).
6064 lt_cv_sys_max_cmd_len=8192;
6067 mint*)
6068 # On MiNT this can take a long time and run out of memory.
6069 lt_cv_sys_max_cmd_len=8192;
6072 amigaos*)
6073 # On AmigaOS with pdksh, this test takes hours, literally.
6074 # So we just punt and use a minimum line length of 8192.
6075 lt_cv_sys_max_cmd_len=8192;
6078 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6079 # This has been around since 386BSD, at least. Likely further.
6080 if test -x /sbin/sysctl; then
6081 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6082 elif test -x /usr/sbin/sysctl; then
6083 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6084 else
6085 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6087 # And add a safety zone
6088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6092 interix*)
6093 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6094 lt_cv_sys_max_cmd_len=196608
6097 osf*)
6098 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6099 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6100 # nice to cause kernel panics so lets avoid the loop below.
6101 # First set a reasonable default.
6102 lt_cv_sys_max_cmd_len=16384
6104 if test -x /sbin/sysconfig; then
6105 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6106 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6107 esac
6110 sco3.2v5*)
6111 lt_cv_sys_max_cmd_len=102400
6113 sysv5* | sco5v6* | sysv4.2uw2*)
6114 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6115 if test -n "$kargmax"; then
6116 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6117 else
6118 lt_cv_sys_max_cmd_len=32768
6122 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6123 if test -n "$lt_cv_sys_max_cmd_len"; then
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6126 else
6127 # Make teststring a little bigger before we do anything with it.
6128 # a 1K string should be a reasonable start.
6129 for i in 1 2 3 4 5 6 7 8 ; do
6130 teststring=$teststring$teststring
6131 done
6132 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6133 # If test is not a shell built-in, we'll probably end up computing a
6134 # maximum length that is only half of the actual maximum length, but
6135 # we can't tell.
6136 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6137 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6138 test $i != 17 # 1/2 MB should be enough
6140 i=`expr $i + 1`
6141 teststring=$teststring$teststring
6142 done
6143 # Only check the string length outside the loop.
6144 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6145 teststring=
6146 # Add a significant safety factor because C++ compilers can tack on
6147 # massive amounts of additional arguments before passing them to the
6148 # linker. It appears as though 1/2 is a usable value.
6149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6152 esac
6156 if test -n $lt_cv_sys_max_cmd_len ; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6158 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6161 $as_echo "none" >&6; }
6163 max_cmd_len=$lt_cv_sys_max_cmd_len
6170 : ${CP="cp -f"}
6171 : ${MV="mv -f"}
6172 : ${RM="rm -f"}
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6175 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6176 # Try some XSI features
6177 xsi_shell=no
6178 ( _lt_dummy="a/b/c"
6179 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6180 = c,a/b,, \
6181 && eval 'test $(( 1 + 1 )) -eq 2 \
6182 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6183 && xsi_shell=yes
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6185 $as_echo "$xsi_shell" >&6; }
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6189 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6190 lt_shell_append=no
6191 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6192 >/dev/null 2>&1 \
6193 && lt_shell_append=yes
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6195 $as_echo "$lt_shell_append" >&6; }
6198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6199 lt_unset=unset
6200 else
6201 lt_unset=false
6208 # test EBCDIC or ASCII
6209 case `echo X|tr X '\101'` in
6210 A) # ASCII based system
6211 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6212 lt_SP2NL='tr \040 \012'
6213 lt_NL2SP='tr \015\012 \040\040'
6215 *) # EBCDIC based system
6216 lt_SP2NL='tr \100 \n'
6217 lt_NL2SP='tr \r\n \100\100'
6219 esac
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6230 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6231 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 lt_cv_ld_reload_flag='-r'
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6237 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6238 reload_flag=$lt_cv_ld_reload_flag
6239 case $reload_flag in
6240 "" | " "*) ;;
6241 *) reload_flag=" $reload_flag" ;;
6242 esac
6243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 case $host_os in
6245 darwin*)
6246 if test "$GCC" = yes; then
6247 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6248 else
6249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6252 esac
6262 if test -n "$ac_tool_prefix"; then
6263 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6264 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$OBJDUMP"; then
6271 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6284 done
6285 done
6286 IFS=$as_save_IFS
6290 OBJDUMP=$ac_cv_prog_OBJDUMP
6291 if test -n "$OBJDUMP"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6293 $as_echo "$OBJDUMP" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6301 if test -z "$ac_cv_prog_OBJDUMP"; then
6302 ac_ct_OBJDUMP=$OBJDUMP
6303 # Extract the first word of "objdump", so it can be a program name with args.
6304 set dummy objdump; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -n "$ac_ct_OBJDUMP"; then
6311 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6324 done
6325 done
6326 IFS=$as_save_IFS
6330 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6331 if test -n "$ac_ct_OBJDUMP"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6333 $as_echo "$ac_ct_OBJDUMP" >&6; }
6334 else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6339 if test "x$ac_ct_OBJDUMP" = x; then
6340 OBJDUMP="false"
6341 else
6342 case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6347 esac
6348 OBJDUMP=$ac_ct_OBJDUMP
6350 else
6351 OBJDUMP="$ac_cv_prog_OBJDUMP"
6354 test -z "$OBJDUMP" && OBJDUMP=objdump
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6365 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6366 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 lt_cv_file_magic_cmd='$MAGIC_CMD'
6370 lt_cv_file_magic_test_file=
6371 lt_cv_deplibs_check_method='unknown'
6372 # Need to set the preceding variable on all platforms that support
6373 # interlibrary dependencies.
6374 # 'none' -- dependencies not supported.
6375 # `unknown' -- same as none, but documents that we really don't know.
6376 # 'pass_all' -- all dependencies passed with no checks.
6377 # 'test_compile' -- check by making test program.
6378 # 'file_magic [[regex]]' -- check by looking for files in library path
6379 # which responds to the $file_magic_cmd with a given extended regex.
6380 # If you have `file' or equivalent on your system and you're not sure
6381 # whether `pass_all' will *always* work, you probably want this one.
6383 case $host_os in
6384 aix[4-9]*)
6385 lt_cv_deplibs_check_method=pass_all
6388 beos*)
6389 lt_cv_deplibs_check_method=pass_all
6392 bsdi[45]*)
6393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6394 lt_cv_file_magic_cmd='/usr/bin/file -L'
6395 lt_cv_file_magic_test_file=/shlib/libc.so
6398 cygwin*)
6399 # func_win32_libid is a shell function defined in ltmain.sh
6400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6401 lt_cv_file_magic_cmd='func_win32_libid'
6404 mingw* | pw32*)
6405 # Base MSYS/MinGW do not provide the 'file' command needed by
6406 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6407 # unless we find 'file', for example because we are cross-compiling.
6408 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6409 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6411 lt_cv_file_magic_cmd='func_win32_libid'
6412 else
6413 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6414 lt_cv_file_magic_cmd='$OBJDUMP -f'
6418 cegcc*)
6419 # use the weaker test based on 'objdump'. See mingw*.
6420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6421 lt_cv_file_magic_cmd='$OBJDUMP -f'
6424 darwin* | rhapsody*)
6425 lt_cv_deplibs_check_method=pass_all
6428 freebsd* | dragonfly*)
6429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6430 case $host_cpu in
6431 i*86 )
6432 # Not sure whether the presence of OpenBSD here was a mistake.
6433 # Let's accept both of them until this is cleared up.
6434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6435 lt_cv_file_magic_cmd=/usr/bin/file
6436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6438 esac
6439 else
6440 lt_cv_deplibs_check_method=pass_all
6444 gnu*)
6445 lt_cv_deplibs_check_method=pass_all
6448 haiku*)
6449 lt_cv_deplibs_check_method=pass_all
6452 hpux10.20* | hpux11*)
6453 lt_cv_file_magic_cmd=/usr/bin/file
6454 case $host_cpu in
6455 ia64*)
6456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6457 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6459 hppa*64*)
6460 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]'
6461 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6464 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6465 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6467 esac
6470 interix[3-9]*)
6471 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6475 irix5* | irix6* | nonstopux*)
6476 case $LD in
6477 *-32|*"-32 ") libmagic=32-bit;;
6478 *-n32|*"-n32 ") libmagic=N32;;
6479 *-64|*"-64 ") libmagic=64-bit;;
6480 *) libmagic=never-match;;
6481 esac
6482 lt_cv_deplibs_check_method=pass_all
6485 # This must be Linux ELF.
6486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6487 lt_cv_deplibs_check_method=pass_all
6490 netbsd*)
6491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493 else
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6498 newos6*)
6499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6500 lt_cv_file_magic_cmd=/usr/bin/file
6501 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6504 *nto* | *qnx*)
6505 lt_cv_deplibs_check_method=pass_all
6508 openbsd*)
6509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6511 else
6512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6516 osf3* | osf4* | osf5*)
6517 lt_cv_deplibs_check_method=pass_all
6520 rdos*)
6521 lt_cv_deplibs_check_method=pass_all
6524 solaris*)
6525 lt_cv_deplibs_check_method=pass_all
6528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6529 lt_cv_deplibs_check_method=pass_all
6532 sysv4 | sysv4.3*)
6533 case $host_vendor in
6534 motorola)
6535 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]'
6536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6538 ncr)
6539 lt_cv_deplibs_check_method=pass_all
6541 sequent)
6542 lt_cv_file_magic_cmd='/bin/file'
6543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6545 sni)
6546 lt_cv_file_magic_cmd='/bin/file'
6547 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6548 lt_cv_file_magic_test_file=/lib/libc.so
6550 siemens)
6551 lt_cv_deplibs_check_method=pass_all
6554 lt_cv_deplibs_check_method=pass_all
6556 esac
6559 tpf*)
6560 lt_cv_deplibs_check_method=pass_all
6562 esac
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6566 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6567 file_magic_cmd=$lt_cv_file_magic_cmd
6568 deplibs_check_method=$lt_cv_deplibs_check_method
6569 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6582 if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}ar; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_AR+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 if test -n "$AR"; then
6591 ac_cv_prog_AR="$AR" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_AR="${ac_tool_prefix}ar"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6606 IFS=$as_save_IFS
6610 AR=$ac_cv_prog_AR
6611 if test -n "$AR"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6613 $as_echo "$AR" >&6; }
6614 else
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6621 if test -z "$ac_cv_prog_AR"; then
6622 ac_ct_AR=$AR
6623 # Extract the first word of "ar", so it can be a program name with args.
6624 set dummy ar; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 if test -n "$ac_ct_AR"; then
6631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_ac_ct_AR="ar"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6644 done
6645 done
6646 IFS=$as_save_IFS
6650 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6651 if test -n "$ac_ct_AR"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6653 $as_echo "$ac_ct_AR" >&6; }
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6659 if test "x$ac_ct_AR" = x; then
6660 AR="false"
6661 else
6662 case $cross_compiling:$ac_tool_warned in
6663 yes:)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666 ac_tool_warned=yes ;;
6667 esac
6668 AR=$ac_ct_AR
6670 else
6671 AR="$ac_cv_prog_AR"
6674 test -z "$AR" && AR=ar
6675 test -z "$AR_FLAGS" && AR_FLAGS=cru
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}strip; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_prog_STRIP+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 if test -n "$STRIP"; then
6696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6709 done
6710 done
6711 IFS=$as_save_IFS
6715 STRIP=$ac_cv_prog_STRIP
6716 if test -n "$STRIP"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6718 $as_echo "$STRIP" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6726 if test -z "$ac_cv_prog_STRIP"; then
6727 ac_ct_STRIP=$STRIP
6728 # Extract the first word of "strip", so it can be a program name with args.
6729 set dummy strip; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$ac_ct_STRIP"; then
6736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_ac_ct_STRIP="strip"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6749 done
6750 done
6751 IFS=$as_save_IFS
6755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6756 if test -n "$ac_ct_STRIP"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6758 $as_echo "$ac_ct_STRIP" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6764 if test "x$ac_ct_STRIP" = x; then
6765 STRIP=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773 STRIP=$ac_ct_STRIP
6775 else
6776 STRIP="$ac_cv_prog_STRIP"
6779 test -z "$STRIP" && STRIP=:
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$RANLIB"; then
6795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6808 done
6809 done
6810 IFS=$as_save_IFS
6814 RANLIB=$ac_cv_prog_RANLIB
6815 if test -n "$RANLIB"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6817 $as_echo "$RANLIB" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6825 if test -z "$ac_cv_prog_RANLIB"; then
6826 ac_ct_RANLIB=$RANLIB
6827 # Extract the first word of "ranlib", so it can be a program name with args.
6828 set dummy ranlib; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_RANLIB"; then
6835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_RANLIB="ranlib"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6848 done
6849 done
6850 IFS=$as_save_IFS
6854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855 if test -n "$ac_ct_RANLIB"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6857 $as_echo "$ac_ct_RANLIB" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6863 if test "x$ac_ct_RANLIB" = x; then
6864 RANLIB=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 RANLIB=$ac_ct_RANLIB
6874 else
6875 RANLIB="$ac_cv_prog_RANLIB"
6878 test -z "$RANLIB" && RANLIB=:
6885 # Determine commands to create old-style static archives.
6886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6887 old_postinstall_cmds='chmod 644 $oldlib'
6888 old_postuninstall_cmds=
6890 if test -n "$RANLIB"; then
6891 case $host_os in
6892 openbsd*)
6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6898 esac
6899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6902 case $host_os in
6903 darwin*)
6904 lock_old_archive_extraction=yes ;;
6906 lock_old_archive_extraction=no ;;
6907 esac
6947 # If no C compiler was specified, use CC.
6948 LTCC=${LTCC-"$CC"}
6950 # If no C compiler flags were specified, use CFLAGS.
6951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6953 # Allow CC to be a program name with arguments.
6954 compiler=$CC
6957 # Check for command to grab the raw symbol name followed by C symbol from nm.
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6959 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6960 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6964 # These are sane defaults that work on at least a few old systems.
6965 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6967 # Character class describing NM global symbol codes.
6968 symcode='[BCDEGRST]'
6970 # Regexp to match symbols that can be accessed directly from C.
6971 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6973 # Define system-specific variables.
6974 case $host_os in
6975 aix*)
6976 symcode='[BCDT]'
6978 cygwin* | mingw* | pw32* | cegcc*)
6979 symcode='[ABCDGISTW]'
6981 hpux*)
6982 if test "$host_cpu" = ia64; then
6983 symcode='[ABCDEGRST]'
6986 irix* | nonstopux*)
6987 symcode='[BCDEGRST]'
6989 osf*)
6990 symcode='[BCDEGQRST]'
6992 solaris*)
6993 symcode='[BDRT]'
6995 sco3.2v5*)
6996 symcode='[DT]'
6998 sysv4.2uw2*)
6999 symcode='[DT]'
7001 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7002 symcode='[ABDT]'
7004 sysv4)
7005 symcode='[DFNSTU]'
7007 esac
7009 # If we're using GNU nm, then use its standard symbol codes.
7010 case `$NM -V 2>&1` in
7011 *GNU* | *'with BFD'*)
7012 symcode='[ABCDGIRSTW]' ;;
7013 esac
7015 # Transform an extracted symbol line into a proper C declaration.
7016 # Some systems (esp. on ia64) link data and code symbols differently,
7017 # so use this general approach.
7018 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7020 # Transform an extracted symbol line into symbol name and symbol address
7021 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7022 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'"
7024 # Handle CRLF in mingw tool chain
7025 opt_cr=
7026 case $build_os in
7027 mingw*)
7028 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7030 esac
7032 # Try without a prefix underscore, then with it.
7033 for ac_symprfx in "" "_"; do
7035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7036 symxfrm="\\1 $ac_symprfx\\2 \\2"
7038 # Write the raw and C identifiers.
7039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7040 # Fake it for dumpbin and say T for any non-static function
7041 # and D for any global variable.
7042 # Also find C++ and __fastcall symbols from MSVC++,
7043 # which start with @ or ?.
7044 lt_cv_sys_global_symbol_pipe="$AWK '"\
7045 " {last_section=section; section=\$ 3};"\
7046 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7047 " \$ 0!~/External *\|/{next};"\
7048 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7049 " {if(hide[section]) next};"\
7050 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7051 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7052 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7053 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7054 " ' prfx=^$ac_symprfx"
7055 else
7056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7059 # Check to see that the pipe works correctly.
7060 pipe_works=no
7062 rm -f conftest*
7063 cat > conftest.$ac_ext <<_LT_EOF
7064 #ifdef __cplusplus
7065 extern "C" {
7066 #endif
7067 char nm_test_var;
7068 void nm_test_func(void);
7069 void nm_test_func(void){}
7070 #ifdef __cplusplus
7072 #endif
7073 int main(){nm_test_var='a';nm_test_func();return(0);}
7074 _LT_EOF
7076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077 (eval $ac_compile) 2>&5
7078 ac_status=$?
7079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080 test $ac_status = 0; }; then
7081 # Now try to grab the symbols.
7082 nlist=conftest.nm
7083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7084 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7085 ac_status=$?
7086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087 test $ac_status = 0; } && test -s "$nlist"; then
7088 # Try sorting and uniquifying the output.
7089 if sort "$nlist" | uniq > "$nlist"T; then
7090 mv -f "$nlist"T "$nlist"
7091 else
7092 rm -f "$nlist"T
7095 # Make sure that we snagged all the symbols we need.
7096 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7097 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7098 cat <<_LT_EOF > conftest.$ac_ext
7099 #ifdef __cplusplus
7100 extern "C" {
7101 #endif
7103 _LT_EOF
7104 # Now generate the symbol file.
7105 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7107 cat <<_LT_EOF >> conftest.$ac_ext
7109 /* The mapping between symbol names and symbols. */
7110 const struct {
7111 const char *name;
7112 void *address;
7114 lt__PROGRAM__LTX_preloaded_symbols[] =
7116 { "@PROGRAM@", (void *) 0 },
7117 _LT_EOF
7118 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7119 cat <<\_LT_EOF >> conftest.$ac_ext
7120 {0, (void *) 0}
7123 /* This works around a problem in FreeBSD linker */
7124 #ifdef FREEBSD_WORKAROUND
7125 static const void *lt_preloaded_setup() {
7126 return lt__PROGRAM__LTX_preloaded_symbols;
7128 #endif
7130 #ifdef __cplusplus
7132 #endif
7133 _LT_EOF
7134 # Now try linking the two files.
7135 mv conftest.$ac_objext conftstm.$ac_objext
7136 lt_save_LIBS="$LIBS"
7137 lt_save_CFLAGS="$CFLAGS"
7138 LIBS="conftstm.$ac_objext"
7139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7141 (eval $ac_link) 2>&5
7142 ac_status=$?
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7145 pipe_works=yes
7147 LIBS="$lt_save_LIBS"
7148 CFLAGS="$lt_save_CFLAGS"
7149 else
7150 echo "cannot find nm_test_func in $nlist" >&5
7152 else
7153 echo "cannot find nm_test_var in $nlist" >&5
7155 else
7156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7158 else
7159 echo "$progname: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7162 rm -rf conftest* conftst*
7164 # Do not use the global_symbol_pipe unless it works.
7165 if test "$pipe_works" = yes; then
7166 break
7167 else
7168 lt_cv_sys_global_symbol_pipe=
7170 done
7174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7175 lt_cv_sys_global_symbol_to_cdecl=
7177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7179 $as_echo "failed" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7182 $as_echo "ok" >&6; }
7207 # Check whether --enable-libtool-lock was given.
7208 if test "${enable_libtool_lock+set}" = set; then :
7209 enableval=$enable_libtool_lock;
7212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7214 # Some flags need to be propagated to the compiler or linker for good
7215 # libtool support.
7216 case $host in
7217 ia64-*-hpux*)
7218 # Find out which ABI we are using.
7219 echo 'int i;' > conftest.$ac_ext
7220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7221 (eval $ac_compile) 2>&5
7222 ac_status=$?
7223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224 test $ac_status = 0; }; then
7225 case `/usr/bin/file conftest.$ac_objext` in
7226 *ELF-32*)
7227 HPUX_IA64_MODE="32"
7229 *ELF-64*)
7230 HPUX_IA64_MODE="64"
7232 esac
7234 rm -rf conftest*
7236 *-*-irix6*)
7237 # Find out which ABI we are using.
7238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240 (eval $ac_compile) 2>&5
7241 ac_status=$?
7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; }; then
7244 if test "$lt_cv_prog_gnu_ld" = yes; then
7245 case `/usr/bin/file conftest.$ac_objext` in
7246 *32-bit*)
7247 LD="${LD-ld} -melf32bsmip"
7249 *N32*)
7250 LD="${LD-ld} -melf32bmipn32"
7252 *64-bit*)
7253 LD="${LD-ld} -melf64bmip"
7255 esac
7256 else
7257 case `/usr/bin/file conftest.$ac_objext` in
7258 *32-bit*)
7259 LD="${LD-ld} -32"
7261 *N32*)
7262 LD="${LD-ld} -n32"
7264 *64-bit*)
7265 LD="${LD-ld} -64"
7267 esac
7270 rm -rf conftest*
7273 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7274 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7275 # Find out which ABI we are using.
7276 echo 'int i;' > conftest.$ac_ext
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278 (eval $ac_compile) 2>&5
7279 ac_status=$?
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 case `/usr/bin/file conftest.o` in
7283 *32-bit*)
7284 case $host in
7285 x86_64-*kfreebsd*-gnu)
7286 LD="${LD-ld} -m elf_i386_fbsd"
7288 x86_64-*linux*)
7289 case `/usr/bin/file conftest.o` in
7290 *x86-64*)
7291 LD="${LD-ld} -m elf32_x86_64"
7294 LD="${LD-ld} -m elf_i386"
7296 esac
7298 ppc64-*linux*|powerpc64-*linux*)
7299 LD="${LD-ld} -m elf32ppclinux"
7301 s390x-*linux*)
7302 LD="${LD-ld} -m elf_s390"
7304 sparc64-*linux*)
7305 LD="${LD-ld} -m elf32_sparc"
7307 esac
7309 *64-bit*)
7310 case $host in
7311 x86_64-*kfreebsd*-gnu)
7312 LD="${LD-ld} -m elf_x86_64_fbsd"
7314 x86_64-*linux*)
7315 LD="${LD-ld} -m elf_x86_64"
7317 ppc*-*linux*|powerpc*-*linux*)
7318 LD="${LD-ld} -m elf64ppc"
7320 s390*-*linux*|s390*-*tpf*)
7321 LD="${LD-ld} -m elf64_s390"
7323 sparc*-*linux*)
7324 LD="${LD-ld} -m elf64_sparc"
7326 esac
7328 esac
7330 rm -rf conftest*
7333 *-*-sco3.2v5*)
7334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7335 SAVE_CFLAGS="$CFLAGS"
7336 CFLAGS="$CFLAGS -belf"
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7338 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7339 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 ac_ext=c
7343 ac_cpp='$CPP $CPPFLAGS'
7344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7352 main ()
7356 return 0;
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360 lt_cv_cc_needs_belf=yes
7361 else
7362 lt_cv_cc_needs_belf=no
7364 rm -f core conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 ac_ext=c
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7374 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7375 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7377 CFLAGS="$SAVE_CFLAGS"
7380 sparc*-*solaris*)
7381 # Find out which ABI we are using.
7382 echo 'int i;' > conftest.$ac_ext
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 case `/usr/bin/file conftest.o` in
7389 *64-bit*)
7390 case $lt_cv_prog_gnu_ld in
7391 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7393 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7394 LD="${LD-ld} -64"
7397 esac
7399 esac
7401 rm -rf conftest*
7403 esac
7405 need_locks="$enable_libtool_lock"
7408 case $host_os in
7409 rhapsody* | darwin*)
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 if test -n "$DSYMUTIL"; then
7419 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7432 done
7433 done
7434 IFS=$as_save_IFS
7438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7439 if test -n "$DSYMUTIL"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7441 $as_echo "$DSYMUTIL" >&6; }
7442 else
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7449 if test -z "$ac_cv_prog_DSYMUTIL"; then
7450 ac_ct_DSYMUTIL=$DSYMUTIL
7451 # Extract the first word of "dsymutil", so it can be a program name with args.
7452 set dummy dsymutil; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -n "$ac_ct_DSYMUTIL"; then
7459 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7472 done
7473 done
7474 IFS=$as_save_IFS
7478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7479 if test -n "$ac_ct_DSYMUTIL"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7481 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7487 if test "x$ac_ct_DSYMUTIL" = x; then
7488 DSYMUTIL=":"
7489 else
7490 case $cross_compiling:$ac_tool_warned in
7491 yes:)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496 DSYMUTIL=$ac_ct_DSYMUTIL
7498 else
7499 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$NMEDIT"; then
7511 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7524 done
7525 done
7526 IFS=$as_save_IFS
7530 NMEDIT=$ac_cv_prog_NMEDIT
7531 if test -n "$NMEDIT"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7533 $as_echo "$NMEDIT" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7541 if test -z "$ac_cv_prog_NMEDIT"; then
7542 ac_ct_NMEDIT=$NMEDIT
7543 # Extract the first word of "nmedit", so it can be a program name with args.
7544 set dummy nmedit; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$ac_ct_NMEDIT"; then
7551 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7564 done
7565 done
7566 IFS=$as_save_IFS
7570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7571 if test -n "$ac_ct_NMEDIT"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7573 $as_echo "$ac_ct_NMEDIT" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7579 if test "x$ac_ct_NMEDIT" = x; then
7580 NMEDIT=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 NMEDIT=$ac_ct_NMEDIT
7590 else
7591 NMEDIT="$ac_cv_prog_NMEDIT"
7594 if test -n "$ac_tool_prefix"; then
7595 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_LIPO+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$LIPO"; then
7603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7622 LIPO=$ac_cv_prog_LIPO
7623 if test -n "$LIPO"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7625 $as_echo "$LIPO" >&6; }
7626 else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7633 if test -z "$ac_cv_prog_LIPO"; then
7634 ac_ct_LIPO=$LIPO
7635 # Extract the first word of "lipo", so it can be a program name with args.
7636 set dummy lipo; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 if test -n "$ac_ct_LIPO"; then
7643 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_prog_ac_ct_LIPO="lipo"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7656 done
7657 done
7658 IFS=$as_save_IFS
7662 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7663 if test -n "$ac_ct_LIPO"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7665 $as_echo "$ac_ct_LIPO" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7671 if test "x$ac_ct_LIPO" = x; then
7672 LIPO=":"
7673 else
7674 case $cross_compiling:$ac_tool_warned in
7675 yes:)
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7679 esac
7680 LIPO=$ac_ct_LIPO
7682 else
7683 LIPO="$ac_cv_prog_LIPO"
7686 if test -n "$ac_tool_prefix"; then
7687 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}otool; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 if test -n "$OTOOL"; then
7695 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7708 done
7709 done
7710 IFS=$as_save_IFS
7714 OTOOL=$ac_cv_prog_OTOOL
7715 if test -n "$OTOOL"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7717 $as_echo "$OTOOL" >&6; }
7718 else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$ac_cv_prog_OTOOL"; then
7726 ac_ct_OTOOL=$OTOOL
7727 # Extract the first word of "otool", so it can be a program name with args.
7728 set dummy otool; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 if test -n "$ac_ct_OTOOL"; then
7735 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_ac_ct_OTOOL="otool"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7748 done
7749 done
7750 IFS=$as_save_IFS
7754 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7755 if test -n "$ac_ct_OTOOL"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7757 $as_echo "$ac_ct_OTOOL" >&6; }
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7763 if test "x$ac_ct_OTOOL" = x; then
7764 OTOOL=":"
7765 else
7766 case $cross_compiling:$ac_tool_warned in
7767 yes:)
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7771 esac
7772 OTOOL=$ac_ct_OTOOL
7774 else
7775 OTOOL="$ac_cv_prog_OTOOL"
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 if test -n "$OTOOL64"; then
7787 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7800 done
7801 done
7802 IFS=$as_save_IFS
7806 OTOOL64=$ac_cv_prog_OTOOL64
7807 if test -n "$OTOOL64"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7809 $as_echo "$OTOOL64" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7817 if test -z "$ac_cv_prog_OTOOL64"; then
7818 ac_ct_OTOOL64=$OTOOL64
7819 # Extract the first word of "otool64", so it can be a program name with args.
7820 set dummy otool64; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$ac_ct_OTOOL64"; then
7827 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_ac_ct_OTOOL64="otool64"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7840 done
7841 done
7842 IFS=$as_save_IFS
7846 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7847 if test -n "$ac_ct_OTOOL64"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7849 $as_echo "$ac_ct_OTOOL64" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7855 if test "x$ac_ct_OTOOL64" = x; then
7856 OTOOL64=":"
7857 else
7858 case $cross_compiling:$ac_tool_warned in
7859 yes:)
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7863 esac
7864 OTOOL64=$ac_ct_OTOOL64
7866 else
7867 OTOOL64="$ac_cv_prog_OTOOL64"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7897 $as_echo_n "checking for -single_module linker flag... " >&6; }
7898 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 lt_cv_apple_cc_single_mod=no
7902 if test -z "${LT_MULTI_MODULE}"; then
7903 # By default we will add the -single_module flag. You can override
7904 # by either setting the environment variable LT_MULTI_MODULE
7905 # non-empty at configure time, or by adding -multi_module to the
7906 # link flags.
7907 rm -rf libconftest.dylib*
7908 echo "int foo(void){return 1;}" > conftest.c
7909 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7910 -dynamiclib -Wl,-single_module conftest.c" >&5
7911 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7912 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7913 _lt_result=$?
7914 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7915 lt_cv_apple_cc_single_mod=yes
7916 else
7917 cat conftest.err >&5
7919 rm -rf libconftest.dylib*
7920 rm -f conftest.*
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7924 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7926 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7927 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 lt_cv_ld_exported_symbols_list=no
7931 save_LDFLAGS=$LDFLAGS
7932 echo "_main" > conftest.sym
7933 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7938 main ()
7942 return 0;
7944 _ACEOF
7945 if ac_fn_c_try_link "$LINENO"; then :
7946 lt_cv_ld_exported_symbols_list=yes
7947 else
7948 lt_cv_ld_exported_symbols_list=no
7950 rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
7952 LDFLAGS="$save_LDFLAGS"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7956 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7958 $as_echo_n "checking for -force_load linker flag... " >&6; }
7959 if test "${lt_cv_ld_force_load+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 lt_cv_ld_force_load=no
7963 cat > conftest.c << _LT_EOF
7964 int forced_loaded() { return 2;}
7965 _LT_EOF
7966 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7967 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7968 echo "$AR cru libconftest.a conftest.o" >&5
7969 $AR cru libconftest.a conftest.o 2>&5
7970 cat > conftest.c << _LT_EOF
7971 int main() { return 0;}
7972 _LT_EOF
7973 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7974 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7975 _lt_result=$?
7976 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7977 lt_cv_ld_force_load=yes
7978 else
7979 cat conftest.err >&5
7981 rm -f conftest.err libconftest.a conftest conftest.c
7982 rm -rf conftest.dSYM
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7986 $as_echo "$lt_cv_ld_force_load" >&6; }
7987 case $host_os in
7988 rhapsody* | darwin1.[012])
7989 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7990 darwin1.*)
7991 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7992 darwin*) # darwin 5.x on
7993 # if running on 10.5 or later, the deployment target defaults
7994 # to the OS version, if on x86, and 10.4, the deployment
7995 # target defaults to 10.4. Don't you love it?
7996 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7997 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7999 10.[012]*)
8000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8001 10.*)
8002 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8003 esac
8005 esac
8006 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8007 _lt_dar_single_mod='$single_module'
8009 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8010 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8011 else
8012 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8014 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8015 _lt_dsymutil='~$DSYMUTIL $lib || :'
8016 else
8017 _lt_dsymutil=
8020 esac
8022 ac_ext=c
8023 ac_cpp='$CPP $CPPFLAGS'
8024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8028 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8029 # On Suns, sometimes $CPP names a directory.
8030 if test -n "$CPP" && test -d "$CPP"; then
8031 CPP=
8033 if test -z "$CPP"; then
8034 if test "${ac_cv_prog_CPP+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 # Double quotes because CPP needs to be expanded
8038 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8040 ac_preproc_ok=false
8041 for ac_c_preproc_warn_flag in '' yes
8043 # Use a header file that comes with gcc, so configuring glibc
8044 # with a fresh cross-compiler works.
8045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8046 # <limits.h> exists even on freestanding compilers.
8047 # On the NeXT, cc -E runs the code through the compiler's parser,
8048 # not just through cpp. "Syntax error" is here to catch this case.
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 #ifdef __STDC__
8052 # include <limits.h>
8053 #else
8054 # include <assert.h>
8055 #endif
8056 Syntax error
8057 _ACEOF
8058 if ac_fn_c_try_cpp "$LINENO"; then :
8060 else
8061 # Broken: fails on valid input.
8062 continue
8064 rm -f conftest.err conftest.$ac_ext
8066 # OK, works on sane cases. Now check whether nonexistent headers
8067 # can be detected and how.
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 #include <ac_nonexistent.h>
8071 _ACEOF
8072 if ac_fn_c_try_cpp "$LINENO"; then :
8073 # Broken: success on invalid input.
8074 continue
8075 else
8076 # Passes both tests.
8077 ac_preproc_ok=:
8078 break
8080 rm -f conftest.err conftest.$ac_ext
8082 done
8083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8084 rm -f conftest.err conftest.$ac_ext
8085 if $ac_preproc_ok; then :
8086 break
8089 done
8090 ac_cv_prog_CPP=$CPP
8093 CPP=$ac_cv_prog_CPP
8094 else
8095 ac_cv_prog_CPP=$CPP
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8098 $as_echo "$CPP" >&6; }
8099 ac_preproc_ok=false
8100 for ac_c_preproc_warn_flag in '' yes
8102 # Use a header file that comes with gcc, so configuring glibc
8103 # with a fresh cross-compiler works.
8104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8105 # <limits.h> exists even on freestanding compilers.
8106 # On the NeXT, cc -E runs the code through the compiler's parser,
8107 # not just through cpp. "Syntax error" is here to catch this case.
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 #ifdef __STDC__
8111 # include <limits.h>
8112 #else
8113 # include <assert.h>
8114 #endif
8115 Syntax error
8116 _ACEOF
8117 if ac_fn_c_try_cpp "$LINENO"; then :
8119 else
8120 # Broken: fails on valid input.
8121 continue
8123 rm -f conftest.err conftest.$ac_ext
8125 # OK, works on sane cases. Now check whether nonexistent headers
8126 # can be detected and how.
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <ac_nonexistent.h>
8130 _ACEOF
8131 if ac_fn_c_try_cpp "$LINENO"; then :
8132 # Broken: success on invalid input.
8133 continue
8134 else
8135 # Passes both tests.
8136 ac_preproc_ok=:
8137 break
8139 rm -f conftest.err conftest.$ac_ext
8141 done
8142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8143 rm -f conftest.err conftest.$ac_ext
8144 if $ac_preproc_ok; then :
8146 else
8147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8149 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8150 See \`config.log' for more details." "$LINENO" 5; }
8153 ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8161 $as_echo_n "checking for ANSI C header files... " >&6; }
8162 if test "${ac_cv_header_stdc+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <stdlib.h>
8168 #include <stdarg.h>
8169 #include <string.h>
8170 #include <float.h>
8173 main ()
8177 return 0;
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 ac_cv_header_stdc=yes
8182 else
8183 ac_cv_header_stdc=no
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 if test $ac_cv_header_stdc = yes; then
8188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 #include <string.h>
8193 _ACEOF
8194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195 $EGREP "memchr" >/dev/null 2>&1; then :
8197 else
8198 ac_cv_header_stdc=no
8200 rm -f conftest*
8204 if test $ac_cv_header_stdc = yes; then
8205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 #include <stdlib.h>
8210 _ACEOF
8211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212 $EGREP "free" >/dev/null 2>&1; then :
8214 else
8215 ac_cv_header_stdc=no
8217 rm -f conftest*
8221 if test $ac_cv_header_stdc = yes; then
8222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8223 if test "$cross_compiling" = yes; then :
8225 else
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228 #include <ctype.h>
8229 #include <stdlib.h>
8230 #if ((' ' & 0x0FF) == 0x020)
8231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8233 #else
8234 # define ISLOWER(c) \
8235 (('a' <= (c) && (c) <= 'i') \
8236 || ('j' <= (c) && (c) <= 'r') \
8237 || ('s' <= (c) && (c) <= 'z'))
8238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8239 #endif
8241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8243 main ()
8245 int i;
8246 for (i = 0; i < 256; i++)
8247 if (XOR (islower (i), ISLOWER (i))
8248 || toupper (i) != TOUPPER (i))
8249 return 2;
8250 return 0;
8252 _ACEOF
8253 if ac_fn_c_try_run "$LINENO"; then :
8255 else
8256 ac_cv_header_stdc=no
8258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8259 conftest.$ac_objext conftest.beam conftest.$ac_ext
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8265 $as_echo "$ac_cv_header_stdc" >&6; }
8266 if test $ac_cv_header_stdc = yes; then
8268 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8274 inttypes.h stdint.h unistd.h
8275 do :
8276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8279 eval as_val=\$$as_ac_Header
8280 if test "x$as_val" = x""yes; then :
8281 cat >>confdefs.h <<_ACEOF
8282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283 _ACEOF
8287 done
8290 for ac_header in dlfcn.h
8291 do :
8292 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8294 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8295 cat >>confdefs.h <<_ACEOF
8296 #define HAVE_DLFCN_H 1
8297 _ACEOF
8301 done
8308 # Set options
8312 enable_dlopen=no
8315 enable_win32_dll=no
8318 # Check whether --enable-shared was given.
8319 if test "${enable_shared+set}" = set; then :
8320 enableval=$enable_shared; p=${PACKAGE-default}
8321 case $enableval in
8322 yes) enable_shared=yes ;;
8323 no) enable_shared=no ;;
8325 enable_shared=no
8326 # Look at the argument we got. We use all the common list separators.
8327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8328 for pkg in $enableval; do
8329 IFS="$lt_save_ifs"
8330 if test "X$pkg" = "X$p"; then
8331 enable_shared=yes
8333 done
8334 IFS="$lt_save_ifs"
8336 esac
8337 else
8338 enable_shared=yes
8349 # Check whether --enable-static was given.
8350 if test "${enable_static+set}" = set; then :
8351 enableval=$enable_static; p=${PACKAGE-default}
8352 case $enableval in
8353 yes) enable_static=yes ;;
8354 no) enable_static=no ;;
8356 enable_static=no
8357 # Look at the argument we got. We use all the common list separators.
8358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8359 for pkg in $enableval; do
8360 IFS="$lt_save_ifs"
8361 if test "X$pkg" = "X$p"; then
8362 enable_static=yes
8364 done
8365 IFS="$lt_save_ifs"
8367 esac
8368 else
8369 enable_static=yes
8381 # Check whether --with-pic was given.
8382 if test "${with_pic+set}" = set; then :
8383 withval=$with_pic; pic_mode="$withval"
8384 else
8385 pic_mode=default
8389 test -z "$pic_mode" && pic_mode=default
8397 # Check whether --enable-fast-install was given.
8398 if test "${enable_fast_install+set}" = set; then :
8399 enableval=$enable_fast_install; p=${PACKAGE-default}
8400 case $enableval in
8401 yes) enable_fast_install=yes ;;
8402 no) enable_fast_install=no ;;
8404 enable_fast_install=no
8405 # Look at the argument we got. We use all the common list separators.
8406 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8407 for pkg in $enableval; do
8408 IFS="$lt_save_ifs"
8409 if test "X$pkg" = "X$p"; then
8410 enable_fast_install=yes
8412 done
8413 IFS="$lt_save_ifs"
8415 esac
8416 else
8417 enable_fast_install=yes
8430 # This can be used to rebuild libtool when needed
8431 LIBTOOL_DEPS="$ltmain"
8433 # Always use our own libtool.
8434 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8461 test -z "$LN_S" && LN_S="ln -s"
8476 if test -n "${ZSH_VERSION+set}" ; then
8477 setopt NO_GLOB_SUBST
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8481 $as_echo_n "checking for objdir... " >&6; }
8482 if test "${lt_cv_objdir+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 rm -f .libs 2>/dev/null
8486 mkdir .libs 2>/dev/null
8487 if test -d .libs; then
8488 lt_cv_objdir=.libs
8489 else
8490 # MS-DOS does not allow filenames that begin with a dot.
8491 lt_cv_objdir=_libs
8493 rmdir .libs 2>/dev/null
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8496 $as_echo "$lt_cv_objdir" >&6; }
8497 objdir=$lt_cv_objdir
8503 cat >>confdefs.h <<_ACEOF
8504 #define LT_OBJDIR "$lt_cv_objdir/"
8505 _ACEOF
8510 case $host_os in
8511 aix3*)
8512 # AIX sometimes has problems with the GCC collect2 program. For some
8513 # reason, if we set the COLLECT_NAMES environment variable, the problems
8514 # vanish in a puff of smoke.
8515 if test "X${COLLECT_NAMES+set}" != Xset; then
8516 COLLECT_NAMES=
8517 export COLLECT_NAMES
8520 esac
8522 # Global variables:
8523 ofile=libtool
8524 can_build_shared=yes
8526 # All known linkers require a `.a' archive for static linking (except MSVC,
8527 # which needs '.lib').
8528 libext=a
8530 with_gnu_ld="$lt_cv_prog_gnu_ld"
8532 old_CC="$CC"
8533 old_CFLAGS="$CFLAGS"
8535 # Set sane defaults for various variables
8536 test -z "$CC" && CC=cc
8537 test -z "$LTCC" && LTCC=$CC
8538 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8539 test -z "$LD" && LD=ld
8540 test -z "$ac_objext" && ac_objext=o
8542 for cc_temp in $compiler""; do
8543 case $cc_temp in
8544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8546 \-*) ;;
8547 *) break;;
8548 esac
8549 done
8550 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8553 # Only perform the check for file, if the check method requires it
8554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8555 case $deplibs_check_method in
8556 file_magic*)
8557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8559 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8560 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 case $MAGIC_CMD in
8564 [\\/*] | ?:[\\/]*)
8565 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8568 lt_save_MAGIC_CMD="$MAGIC_CMD"
8569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8571 for ac_dir in $ac_dummy; do
8572 IFS="$lt_save_ifs"
8573 test -z "$ac_dir" && ac_dir=.
8574 if test -f $ac_dir/${ac_tool_prefix}file; then
8575 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8576 if test -n "$file_magic_test_file"; then
8577 case $deplibs_check_method in
8578 "file_magic "*)
8579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8582 $EGREP "$file_magic_regex" > /dev/null; then
8584 else
8585 cat <<_LT_EOF 1>&2
8587 *** Warning: the command libtool uses to detect shared libraries,
8588 *** $file_magic_cmd, produces output that libtool cannot recognize.
8589 *** The result is that libtool may fail to recognize shared libraries
8590 *** as such. This will affect the creation of libtool libraries that
8591 *** depend on shared libraries, but programs linked with such libtool
8592 *** libraries will work regardless of this problem. Nevertheless, you
8593 *** may want to report the problem to your system manager and/or to
8594 *** bug-libtool@gnu.org
8596 _LT_EOF
8597 fi ;;
8598 esac
8600 break
8602 done
8603 IFS="$lt_save_ifs"
8604 MAGIC_CMD="$lt_save_MAGIC_CMD"
8606 esac
8609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8610 if test -n "$MAGIC_CMD"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8612 $as_echo "$MAGIC_CMD" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8622 if test -z "$lt_cv_path_MAGIC_CMD"; then
8623 if test -n "$ac_tool_prefix"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8625 $as_echo_n "checking for file... " >&6; }
8626 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 case $MAGIC_CMD in
8630 [\\/*] | ?:[\\/]*)
8631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8634 lt_save_MAGIC_CMD="$MAGIC_CMD"
8635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8637 for ac_dir in $ac_dummy; do
8638 IFS="$lt_save_ifs"
8639 test -z "$ac_dir" && ac_dir=.
8640 if test -f $ac_dir/file; then
8641 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8642 if test -n "$file_magic_test_file"; then
8643 case $deplibs_check_method in
8644 "file_magic "*)
8645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8648 $EGREP "$file_magic_regex" > /dev/null; then
8650 else
8651 cat <<_LT_EOF 1>&2
8653 *** Warning: the command libtool uses to detect shared libraries,
8654 *** $file_magic_cmd, produces output that libtool cannot recognize.
8655 *** The result is that libtool may fail to recognize shared libraries
8656 *** as such. This will affect the creation of libtool libraries that
8657 *** depend on shared libraries, but programs linked with such libtool
8658 *** libraries will work regardless of this problem. Nevertheless, you
8659 *** may want to report the problem to your system manager and/or to
8660 *** bug-libtool@gnu.org
8662 _LT_EOF
8663 fi ;;
8664 esac
8666 break
8668 done
8669 IFS="$lt_save_ifs"
8670 MAGIC_CMD="$lt_save_MAGIC_CMD"
8672 esac
8675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8676 if test -n "$MAGIC_CMD"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8678 $as_echo "$MAGIC_CMD" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8685 else
8686 MAGIC_CMD=:
8692 esac
8694 # Use C for the default configuration in the libtool script
8696 lt_save_CC="$CC"
8697 ac_ext=c
8698 ac_cpp='$CPP $CPPFLAGS'
8699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704 # Source file extension for C test sources.
8705 ac_ext=c
8707 # Object file extension for compiled C test sources.
8708 objext=o
8709 objext=$objext
8711 # Code to be used in simple compile tests
8712 lt_simple_compile_test_code="int some_variable = 0;"
8714 # Code to be used in simple link tests
8715 lt_simple_link_test_code='int main(){return(0);}'
8723 # If no C compiler was specified, use CC.
8724 LTCC=${LTCC-"$CC"}
8726 # If no C compiler flags were specified, use CFLAGS.
8727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8729 # Allow CC to be a program name with arguments.
8730 compiler=$CC
8732 # Save the default compiler, since it gets overwritten when the other
8733 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8734 compiler_DEFAULT=$CC
8736 # save warnings/boilerplate of simple test code
8737 ac_outfile=conftest.$ac_objext
8738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8740 _lt_compiler_boilerplate=`cat conftest.err`
8741 $RM conftest*
8743 ac_outfile=conftest.$ac_objext
8744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8746 _lt_linker_boilerplate=`cat conftest.err`
8747 $RM -r conftest*
8750 ## CAVEAT EMPTOR:
8751 ## There is no encapsulation within the following macros, do not change
8752 ## the running order or otherwise move them around unless you know exactly
8753 ## what you are doing...
8754 if test -n "$compiler"; then
8756 lt_prog_compiler_no_builtin_flag=
8758 if test "$GCC" = yes; then
8759 case $cc_basename in
8760 nvcc*)
8761 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8763 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8764 esac
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8768 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 lt_cv_prog_compiler_rtti_exceptions=no
8772 ac_outfile=conftest.$ac_objext
8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774 lt_compiler_flag="-fno-rtti -fno-exceptions"
8775 # Insert the option either (1) after the last *FLAGS variable, or
8776 # (2) before a word containing "conftest.", or (3) at the end.
8777 # Note that $ac_compile itself does not contain backslashes and begins
8778 # with a dollar sign (not a hyphen), so the echo should work correctly.
8779 # The option is referenced via a variable to avoid confusing sed.
8780 lt_compile=`echo "$ac_compile" | $SED \
8781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8783 -e 's:$: $lt_compiler_flag:'`
8784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8785 (eval "$lt_compile" 2>conftest.err)
8786 ac_status=$?
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 if (exit $ac_status) && test -s "$ac_outfile"; then
8790 # The compiler can only warn and ignore the option if not recognized
8791 # So say no if there are warnings other than the usual output.
8792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8795 lt_cv_prog_compiler_rtti_exceptions=yes
8798 $RM conftest*
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8806 else
8817 lt_prog_compiler_wl=
8818 lt_prog_compiler_pic=
8819 lt_prog_compiler_static=
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8824 if test "$GCC" = yes; then
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_static='-static'
8828 case $host_os in
8829 aix*)
8830 # All AIX code is PIC.
8831 if test "$host_cpu" = ia64; then
8832 # AIX 5 now supports IA64 processor
8833 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_pic='-fPIC'
8838 amigaos*)
8839 case $host_cpu in
8840 powerpc)
8841 # see comment about AmigaOS4 .so support
8842 lt_prog_compiler_pic='-fPIC'
8844 m68k)
8845 # FIXME: we need at least 68020 code to build shared libraries, but
8846 # adding the `-m68020' flag to GCC prevents building anything better,
8847 # like `-m68040'.
8848 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8850 esac
8853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8854 # PIC is the default for these OSes.
8857 mingw* | cygwin* | pw32* | os2* | cegcc*)
8858 # This hack is so that the source file can tell whether it is being
8859 # built for inclusion in a dll (and should export symbols for example).
8860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8861 # (--disable-auto-import) libraries
8862 lt_prog_compiler_pic='-DDLL_EXPORT'
8865 darwin* | rhapsody*)
8866 # PIC is the default on this platform
8867 # Common symbols not allowed in MH_DYLIB files
8868 lt_prog_compiler_pic='-fno-common'
8871 haiku*)
8872 # PIC is the default for Haiku.
8873 # The "-static" flag exists, but is broken.
8874 lt_prog_compiler_static=
8877 hpux*)
8878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8880 # sets the default TLS model and affects inlining.
8881 case $host_cpu in
8882 hppa*64*)
8883 # +Z the default
8886 lt_prog_compiler_pic='-fPIC'
8888 esac
8891 interix[3-9]*)
8892 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8893 # Instead, we relocate shared libraries at runtime.
8896 msdosdjgpp*)
8897 # Just because we use GCC doesn't mean we suddenly get shared libraries
8898 # on systems that don't support them.
8899 lt_prog_compiler_can_build_shared=no
8900 enable_shared=no
8903 *nto* | *qnx*)
8904 # QNX uses GNU C++, but need to define -shared option too, otherwise
8905 # it will coredump.
8906 lt_prog_compiler_pic='-fPIC -shared'
8909 sysv4*MP*)
8910 if test -d /usr/nec; then
8911 lt_prog_compiler_pic=-Kconform_pic
8916 lt_prog_compiler_pic='-fPIC'
8918 esac
8920 case $cc_basename in
8921 nvcc*) # Cuda Compiler Driver 2.2
8922 lt_prog_compiler_wl='-Xlinker '
8923 lt_prog_compiler_pic='-Xcompiler -fPIC'
8925 esac
8926 else
8927 # PORTME Check for flag to pass linker flags through the system compiler.
8928 case $host_os in
8929 aix*)
8930 lt_prog_compiler_wl='-Wl,'
8931 if test "$host_cpu" = ia64; then
8932 # AIX 5 now supports IA64 processor
8933 lt_prog_compiler_static='-Bstatic'
8934 else
8935 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8939 mingw* | cygwin* | pw32* | os2* | cegcc*)
8940 # This hack is so that the source file can tell whether it is being
8941 # built for inclusion in a dll (and should export symbols for example).
8942 lt_prog_compiler_pic='-DDLL_EXPORT'
8945 hpux9* | hpux10* | hpux11*)
8946 lt_prog_compiler_wl='-Wl,'
8947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8948 # not for PA HP-UX.
8949 case $host_cpu in
8950 hppa*64*|ia64*)
8951 # +Z the default
8954 lt_prog_compiler_pic='+Z'
8956 esac
8957 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8958 lt_prog_compiler_static='${wl}-a ${wl}archive'
8961 irix5* | irix6* | nonstopux*)
8962 lt_prog_compiler_wl='-Wl,'
8963 # PIC (with -KPIC) is the default.
8964 lt_prog_compiler_static='-non_shared'
8967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8968 case $cc_basename in
8969 # old Intel for x86_64 which still supported -KPIC.
8970 ecc*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='-KPIC'
8973 lt_prog_compiler_static='-static'
8975 # icc used to be incompatible with GCC.
8976 # ICC 10 doesn't accept -KPIC any more.
8977 icc* | ifort*)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-fPIC'
8980 lt_prog_compiler_static='-static'
8982 # Lahey Fortran 8.1.
8983 lf95*)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='--shared'
8986 lt_prog_compiler_static='--static'
8988 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8989 # Portland Group compilers (*not* the Pentium gcc compiler,
8990 # which looks to be a dead project)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='-fpic'
8993 lt_prog_compiler_static='-Bstatic'
8995 ccc*)
8996 lt_prog_compiler_wl='-Wl,'
8997 # All Alpha code is PIC.
8998 lt_prog_compiler_static='-non_shared'
9000 xl* | bgxl* | bgf* | mpixl*)
9001 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-qpic'
9004 lt_prog_compiler_static='-qstaticlink'
9007 case `$CC -V 2>&1 | sed 5q` in
9008 *Sun\ F* | *Sun*Fortran*)
9009 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9010 lt_prog_compiler_pic='-KPIC'
9011 lt_prog_compiler_static='-Bstatic'
9012 lt_prog_compiler_wl=''
9014 *Sun\ C*)
9015 # Sun C 5.9
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9018 lt_prog_compiler_wl='-Wl,'
9020 esac
9022 esac
9025 newsos6)
9026 lt_prog_compiler_pic='-KPIC'
9027 lt_prog_compiler_static='-Bstatic'
9030 *nto* | *qnx*)
9031 # QNX uses GNU C++, but need to define -shared option too, otherwise
9032 # it will coredump.
9033 lt_prog_compiler_pic='-fPIC -shared'
9036 osf3* | osf4* | osf5*)
9037 lt_prog_compiler_wl='-Wl,'
9038 # All OSF/1 code is PIC.
9039 lt_prog_compiler_static='-non_shared'
9042 rdos*)
9043 lt_prog_compiler_static='-non_shared'
9046 solaris*)
9047 lt_prog_compiler_pic='-KPIC'
9048 lt_prog_compiler_static='-Bstatic'
9049 case $cc_basename in
9050 f77* | f90* | f95*)
9051 lt_prog_compiler_wl='-Qoption ld ';;
9053 lt_prog_compiler_wl='-Wl,';;
9054 esac
9057 sunos4*)
9058 lt_prog_compiler_wl='-Qoption ld '
9059 lt_prog_compiler_pic='-PIC'
9060 lt_prog_compiler_static='-Bstatic'
9063 sysv4 | sysv4.2uw2* | sysv4.3*)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9069 sysv4*MP*)
9070 if test -d /usr/nec ;then
9071 lt_prog_compiler_pic='-Kconform_pic'
9072 lt_prog_compiler_static='-Bstatic'
9076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9077 lt_prog_compiler_wl='-Wl,'
9078 lt_prog_compiler_pic='-KPIC'
9079 lt_prog_compiler_static='-Bstatic'
9082 unicos*)
9083 lt_prog_compiler_wl='-Wl,'
9084 lt_prog_compiler_can_build_shared=no
9087 uts4*)
9088 lt_prog_compiler_pic='-pic'
9089 lt_prog_compiler_static='-Bstatic'
9093 lt_prog_compiler_can_build_shared=no
9095 esac
9098 case $host_os in
9099 # For platforms which do not support PIC, -DPIC is meaningless:
9100 *djgpp*)
9101 lt_prog_compiler_pic=
9104 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9106 esac
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9108 $as_echo "$lt_prog_compiler_pic" >&6; }
9116 # Check to make sure the PIC flag actually works.
9118 if test -n "$lt_prog_compiler_pic"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9120 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9121 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 lt_cv_prog_compiler_pic_works=no
9125 ac_outfile=conftest.$ac_objext
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9128 # Insert the option either (1) after the last *FLAGS variable, or
9129 # (2) before a word containing "conftest.", or (3) at the end.
9130 # Note that $ac_compile itself does not contain backslashes and begins
9131 # with a dollar sign (not a hyphen), so the echo should work correctly.
9132 # The option is referenced via a variable to avoid confusing sed.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>conftest.err)
9139 ac_status=$?
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s "$ac_outfile"; then
9143 # The compiler can only warn and ignore the option if not recognized
9144 # So say no if there are warnings other than the usual output.
9145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9148 lt_cv_prog_compiler_pic_works=yes
9151 $RM conftest*
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9155 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9157 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9158 case $lt_prog_compiler_pic in
9159 "" | " "*) ;;
9160 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9161 esac
9162 else
9163 lt_prog_compiler_pic=
9164 lt_prog_compiler_can_build_shared=no
9175 # Check to make sure the static flag actually works.
9177 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9179 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9180 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 lt_cv_prog_compiler_static_works=no
9184 save_LDFLAGS="$LDFLAGS"
9185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9188 # The linker can only warn and ignore the option if not recognized
9189 # So say no if there are warnings
9190 if test -s conftest.err; then
9191 # Append any errors to the config.log.
9192 cat conftest.err 1>&5
9193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9195 if diff conftest.exp conftest.er2 >/dev/null; then
9196 lt_cv_prog_compiler_static_works=yes
9198 else
9199 lt_cv_prog_compiler_static_works=yes
9202 $RM -r conftest*
9203 LDFLAGS="$save_LDFLAGS"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9207 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9209 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9211 else
9212 lt_prog_compiler_static=
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9223 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 lt_cv_prog_compiler_c_o=no
9227 $RM -r conftest 2>/dev/null
9228 mkdir conftest
9229 cd conftest
9230 mkdir out
9231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9233 lt_compiler_flag="-o out/conftest2.$ac_objext"
9234 # Insert the option either (1) after the last *FLAGS variable, or
9235 # (2) before a word containing "conftest.", or (3) at the end.
9236 # Note that $ac_compile itself does not contain backslashes and begins
9237 # with a dollar sign (not a hyphen), so the echo should work correctly.
9238 lt_compile=`echo "$ac_compile" | $SED \
9239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9241 -e 's:$: $lt_compiler_flag:'`
9242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9243 (eval "$lt_compile" 2>out/conftest.err)
9244 ac_status=$?
9245 cat out/conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9248 then
9249 # The compiler can only warn and ignore the option if not recognized
9250 # So say no if there are warnings
9251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9254 lt_cv_prog_compiler_c_o=yes
9257 chmod u+w . 2>&5
9258 $RM conftest*
9259 # SGI C++ compiler will create directory out/ii_files/ for
9260 # template instantiation
9261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9262 $RM out/* && rmdir out
9263 cd ..
9264 $RM -r conftest
9265 $RM conftest*
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9269 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9278 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 lt_cv_prog_compiler_c_o=no
9282 $RM -r conftest 2>/dev/null
9283 mkdir conftest
9284 cd conftest
9285 mkdir out
9286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9288 lt_compiler_flag="-o out/conftest2.$ac_objext"
9289 # Insert the option either (1) after the last *FLAGS variable, or
9290 # (2) before a word containing "conftest.", or (3) at the end.
9291 # Note that $ac_compile itself does not contain backslashes and begins
9292 # with a dollar sign (not a hyphen), so the echo should work correctly.
9293 lt_compile=`echo "$ac_compile" | $SED \
9294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296 -e 's:$: $lt_compiler_flag:'`
9297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9298 (eval "$lt_compile" 2>out/conftest.err)
9299 ac_status=$?
9300 cat out/conftest.err >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9303 then
9304 # The compiler can only warn and ignore the option if not recognized
9305 # So say no if there are warnings
9306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9309 lt_cv_prog_compiler_c_o=yes
9312 chmod u+w . 2>&5
9313 $RM conftest*
9314 # SGI C++ compiler will create directory out/ii_files/ for
9315 # template instantiation
9316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9317 $RM out/* && rmdir out
9318 cd ..
9319 $RM -r conftest
9320 $RM conftest*
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9329 hard_links="nottested"
9330 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9331 # do not overwrite the value of need_locks provided by the user
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9333 $as_echo_n "checking if we can lock with hard links... " >&6; }
9334 hard_links=yes
9335 $RM conftest*
9336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9337 touch conftest.a
9338 ln conftest.a conftest.b 2>&5 || hard_links=no
9339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9341 $as_echo "$hard_links" >&6; }
9342 if test "$hard_links" = no; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9344 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9345 need_locks=warn
9347 else
9348 need_locks=no
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9359 runpath_var=
9360 allow_undefined_flag=
9361 always_export_symbols=no
9362 archive_cmds=
9363 archive_expsym_cmds=
9364 compiler_needs_object=no
9365 enable_shared_with_static_runtimes=no
9366 export_dynamic_flag_spec=
9367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9368 hardcode_automatic=no
9369 hardcode_direct=no
9370 hardcode_direct_absolute=no
9371 hardcode_libdir_flag_spec=
9372 hardcode_libdir_flag_spec_ld=
9373 hardcode_libdir_separator=
9374 hardcode_minus_L=no
9375 hardcode_shlibpath_var=unsupported
9376 inherit_rpath=no
9377 link_all_deplibs=unknown
9378 module_cmds=
9379 module_expsym_cmds=
9380 old_archive_from_new_cmds=
9381 old_archive_from_expsyms_cmds=
9382 thread_safe_flag_spec=
9383 whole_archive_flag_spec=
9384 # include_expsyms should be a list of space-separated symbols to be *always*
9385 # included in the symbol list
9386 include_expsyms=
9387 # exclude_expsyms can be an extended regexp of symbols to exclude
9388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9390 # as well as any symbol that contains `d'.
9391 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9393 # platforms (ab)use it in PIC code, but their linkers get confused if
9394 # the symbol is explicitly referenced. Since portable code cannot
9395 # rely on this symbol name, it's probably fine to never include it in
9396 # preloaded symbol tables.
9397 # Exclude shared library initialization/finalization symbols.
9398 extract_expsyms_cmds=
9400 case $host_os in
9401 cygwin* | mingw* | pw32* | cegcc*)
9402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9403 # When not using gcc, we currently assume that we are using
9404 # Microsoft Visual C++.
9405 if test "$GCC" != yes; then
9406 with_gnu_ld=no
9409 interix*)
9410 # we just hope/assume this is gcc and not c89 (= MSVC++)
9411 with_gnu_ld=yes
9413 openbsd*)
9414 with_gnu_ld=no
9416 esac
9418 ld_shlibs=yes
9420 # On some targets, GNU ld is compatible enough with the native linker
9421 # that we're better off using the native interface for both.
9422 lt_use_gnu_ld_interface=no
9423 if test "$with_gnu_ld" = yes; then
9424 case $host_os in
9425 aix*)
9426 # The AIX port of GNU ld has always aspired to compatibility
9427 # with the native linker. However, as the warning in the GNU ld
9428 # block says, versions before 2.19.5* couldn't really create working
9429 # shared libraries, regardless of the interface used.
9430 case `$LD -v 2>&1` in
9431 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9432 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9433 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9435 lt_use_gnu_ld_interface=yes
9437 esac
9440 lt_use_gnu_ld_interface=yes
9442 esac
9445 if test "$lt_use_gnu_ld_interface" = yes; then
9446 # If archive_cmds runs LD, not CC, wlarc should be empty
9447 wlarc='${wl}'
9449 # Set some defaults for GNU ld with shared library support. These
9450 # are reset later if shared libraries are not supported. Putting them
9451 # here allows them to be overridden if necessary.
9452 runpath_var=LD_RUN_PATH
9453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454 export_dynamic_flag_spec='${wl}--export-dynamic'
9455 # ancient GNU ld didn't support --whole-archive et. al.
9456 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9457 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9458 else
9459 whole_archive_flag_spec=
9461 supports_anon_versioning=no
9462 case `$LD -v 2>&1` in
9463 *GNU\ gold*) supports_anon_versioning=yes ;;
9464 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9465 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9466 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9467 *\ 2.11.*) ;; # other 2.11 versions
9468 *) supports_anon_versioning=yes ;;
9469 esac
9471 # See if GNU ld supports shared libraries.
9472 case $host_os in
9473 aix[3-9]*)
9474 # On AIX/PPC, the GNU linker is very broken
9475 if test "$host_cpu" != ia64; then
9476 ld_shlibs=no
9477 cat <<_LT_EOF 1>&2
9479 *** Warning: the GNU linker, at least up to release 2.19, is reported
9480 *** to be unable to reliably create shared libraries on AIX.
9481 *** Therefore, libtool is disabling shared libraries support. If you
9482 *** really care for shared libraries, you may want to install binutils
9483 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9484 *** You will then need to restart the configuration process.
9486 _LT_EOF
9490 amigaos*)
9491 case $host_cpu in
9492 powerpc)
9493 # see comment about AmigaOS4 .so support
9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 archive_expsym_cmds=''
9497 m68k)
9498 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)'
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_minus_L=yes
9502 esac
9505 beos*)
9506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9507 allow_undefined_flag=unsupported
9508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9509 # support --undefined. This deserves some investigation. FIXME
9510 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511 else
9512 ld_shlibs=no
9516 cygwin* | mingw* | pw32* | cegcc*)
9517 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9518 # as there is no search path for DLLs.
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 export_dynamic_flag_spec='${wl}--export-all-symbols'
9521 allow_undefined_flag=unsupported
9522 always_export_symbols=no
9523 enable_shared_with_static_runtimes=yes
9524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9528 # If the export-symbols file already is a .def file (1st line
9529 # is EXPORTS), use it as is; otherwise, prepend...
9530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9531 cp $export_symbols $output_objdir/$soname.def;
9532 else
9533 echo EXPORTS > $output_objdir/$soname.def;
9534 cat $export_symbols >> $output_objdir/$soname.def;
9536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9537 else
9538 ld_shlibs=no
9542 haiku*)
9543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544 link_all_deplibs=yes
9547 interix[3-9]*)
9548 hardcode_direct=no
9549 hardcode_shlibpath_var=no
9550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551 export_dynamic_flag_spec='${wl}-E'
9552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9553 # Instead, shared libraries are loaded at an image base (0x10000000 by
9554 # default) and relocated if they conflict, which is a slow very memory
9555 # consuming and fragmenting process. To avoid this, we pick a random,
9556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9557 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9559 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'
9562 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9563 tmp_diet=no
9564 if test "$host_os" = linux-dietlibc; then
9565 case $cc_basename in
9566 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9567 esac
9569 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9570 && test "$tmp_diet" = no
9571 then
9572 tmp_addflag=
9573 tmp_sharedflag='-shared'
9574 case $cc_basename,$host_cpu in
9575 pgcc*) # Portland Group C compiler
9576 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'
9577 tmp_addflag=' $pic_flag'
9579 pgf77* | pgf90* | pgf95* | pgfortran*)
9580 # Portland Group f77 and f90 compilers
9581 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'
9582 tmp_addflag=' $pic_flag -Mnomain' ;;
9583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9584 tmp_addflag=' -i_dynamic' ;;
9585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9586 tmp_addflag=' -i_dynamic -nofor_main' ;;
9587 ifc* | ifort*) # Intel Fortran compiler
9588 tmp_addflag=' -nofor_main' ;;
9589 lf95*) # Lahey Fortran 8.1
9590 whole_archive_flag_spec=
9591 tmp_sharedflag='--shared' ;;
9592 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9593 tmp_sharedflag='-qmkshrobj'
9594 tmp_addflag= ;;
9595 nvcc*) # Cuda Compiler Driver 2.2
9596 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'
9597 compiler_needs_object=yes
9599 esac
9600 case `$CC -V 2>&1 | sed 5q` in
9601 *Sun\ C*) # Sun C 5.9
9602 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'
9603 compiler_needs_object=yes
9604 tmp_sharedflag='-G' ;;
9605 *Sun\ F*) # Sun Fortran 8.3
9606 tmp_sharedflag='-G' ;;
9607 esac
9608 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9610 if test "x$supports_anon_versioning" = xyes; then
9611 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9613 echo "local: *; };" >> $output_objdir/$libname.ver~
9614 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9617 case $cc_basename in
9618 xlf* | bgf* | bgxlf* | mpixlf*)
9619 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9620 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9621 hardcode_libdir_flag_spec=
9622 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9623 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9624 if test "x$supports_anon_versioning" = xyes; then
9625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9627 echo "local: *; };" >> $output_objdir/$libname.ver~
9628 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9631 esac
9632 else
9633 ld_shlibs=no
9637 netbsd*)
9638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9639 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9640 wlarc=
9641 else
9642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9647 solaris*)
9648 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9649 ld_shlibs=no
9650 cat <<_LT_EOF 1>&2
9652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9653 *** create shared libraries on Solaris systems. Therefore, libtool
9654 *** is disabling shared libraries support. We urge you to upgrade GNU
9655 *** binutils to release 2.9.1 or newer. Another option is to modify
9656 *** your PATH or compiler configuration so that the native linker is
9657 *** used, and then restart.
9659 _LT_EOF
9660 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9663 else
9664 ld_shlibs=no
9668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9669 case `$LD -v 2>&1` in
9670 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9671 ld_shlibs=no
9672 cat <<_LT_EOF 1>&2
9674 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9675 *** reliably create shared libraries on SCO systems. Therefore, libtool
9676 *** is disabling shared libraries support. We urge you to upgrade GNU
9677 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9678 *** your PATH or compiler configuration so that the native linker is
9679 *** used, and then restart.
9681 _LT_EOF
9684 # For security reasons, it is highly recommended that you always
9685 # use absolute paths for naming shared libraries, and exclude the
9686 # DT_RUNPATH tag from executables and libraries. But doing so
9687 # requires that you compile everything twice, which is a pain.
9688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9692 else
9693 ld_shlibs=no
9696 esac
9699 sunos4*)
9700 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701 wlarc=
9702 hardcode_direct=yes
9703 hardcode_shlibpath_var=no
9707 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9710 else
9711 ld_shlibs=no
9714 esac
9716 if test "$ld_shlibs" = no; then
9717 runpath_var=
9718 hardcode_libdir_flag_spec=
9719 export_dynamic_flag_spec=
9720 whole_archive_flag_spec=
9722 else
9723 # PORTME fill in a description of your system's linker (not GNU ld)
9724 case $host_os in
9725 aix3*)
9726 allow_undefined_flag=unsupported
9727 always_export_symbols=yes
9728 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'
9729 # Note: this linker hardcodes the directories in LIBPATH if there
9730 # are no directories specified by -L.
9731 hardcode_minus_L=yes
9732 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9733 # Neither direct hardcoding nor static linking is supported with a
9734 # broken collect2.
9735 hardcode_direct=unsupported
9739 aix[4-9]*)
9740 if test "$host_cpu" = ia64; then
9741 # On IA64, the linker does run time linking by default, so we don't
9742 # have to do anything special.
9743 aix_use_runtimelinking=no
9744 exp_sym_flag='-Bexport'
9745 no_entry_flag=""
9746 else
9747 # If we're using GNU nm, then we don't want the "-C" option.
9748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9749 # Also, AIX nm treats weak defined symbols like other global
9750 # defined symbols, whereas GNU nm marks them as "W".
9751 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9752 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'
9753 else
9754 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'
9756 aix_use_runtimelinking=no
9758 # Test if we are trying to use run time linking or normal
9759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9760 # need to do runtime linking.
9761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9762 for ld_flag in $LDFLAGS; do
9763 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9764 aix_use_runtimelinking=yes
9765 break
9767 done
9769 esac
9771 exp_sym_flag='-bexport'
9772 no_entry_flag='-bnoentry'
9775 # When large executables or shared objects are built, AIX ld can
9776 # have problems creating the table of contents. If linking a library
9777 # or program results in "error TOC overflow" add -mminimal-toc to
9778 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9779 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9781 archive_cmds=''
9782 hardcode_direct=yes
9783 hardcode_direct_absolute=yes
9784 hardcode_libdir_separator=':'
9785 link_all_deplibs=yes
9786 file_list_spec='${wl}-f,'
9788 if test "$GCC" = yes; then
9789 case $host_os in aix4.[012]|aix4.[012].*)
9790 # We only want to do this on AIX 4.2 and lower, the check
9791 # below for broken collect2 doesn't work under 4.3+
9792 collect2name=`${CC} -print-prog-name=collect2`
9793 if test -f "$collect2name" &&
9794 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9795 then
9796 # We have reworked collect2
9798 else
9799 # We have old collect2
9800 hardcode_direct=unsupported
9801 # It fails to find uninstalled libraries when the uninstalled
9802 # path is not listed in the libpath. Setting hardcode_minus_L
9803 # to unsupported forces relinking
9804 hardcode_minus_L=yes
9805 hardcode_libdir_flag_spec='-L$libdir'
9806 hardcode_libdir_separator=
9809 esac
9810 shared_flag='-shared'
9811 if test "$aix_use_runtimelinking" = yes; then
9812 shared_flag="$shared_flag "'${wl}-G'
9814 else
9815 # not using gcc
9816 if test "$host_cpu" = ia64; then
9817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9818 # chokes on -Wl,-G. The following line is correct:
9819 shared_flag='-G'
9820 else
9821 if test "$aix_use_runtimelinking" = yes; then
9822 shared_flag='${wl}-G'
9823 else
9824 shared_flag='${wl}-bM:SRE'
9829 export_dynamic_flag_spec='${wl}-bexpall'
9830 # It seems that -bexpall does not export symbols beginning with
9831 # underscore (_), so it is better to generate a list of symbols to export.
9832 always_export_symbols=yes
9833 if test "$aix_use_runtimelinking" = yes; then
9834 # Warning - without using the other runtime loading flags (-brtl),
9835 # -berok will link without error, but may produce a broken library.
9836 allow_undefined_flag='-berok'
9837 # Determine the default libpath from the value encoded in an
9838 # empty executable.
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9843 main ()
9847 return 0;
9849 _ACEOF
9850 if ac_fn_c_try_link "$LINENO"; then :
9852 lt_aix_libpath_sed='
9853 /Import File Strings/,/^$/ {
9854 /^0/ {
9855 s/^0 *\(.*\)$/\1/
9859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860 # Check for a 64-bit object if we didn't find anything.
9861 if test -z "$aix_libpath"; then
9862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870 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"
9871 else
9872 if test "$host_cpu" = ia64; then
9873 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9874 allow_undefined_flag="-z nodefs"
9875 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"
9876 else
9877 # Determine the default libpath from the value encoded in an
9878 # empty executable.
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9883 main ()
9887 return 0;
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"; then :
9892 lt_aix_libpath_sed='
9893 /Import File Strings/,/^$/ {
9894 /^0/ {
9895 s/^0 *\(.*\)$/\1/
9899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9900 # Check for a 64-bit object if we didn't find anything.
9901 if test -z "$aix_libpath"; then
9902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9910 # Warning - without using the other run time loading flags,
9911 # -berok will link without error, but may produce a broken library.
9912 no_undefined_flag=' ${wl}-bernotok'
9913 allow_undefined_flag=' ${wl}-berok'
9914 if test "$with_gnu_ld" = yes; then
9915 # We only use this code for GNU lds that support --whole-archive.
9916 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9917 else
9918 # Exported symbols can be pulled into shared objects from archives
9919 whole_archive_flag_spec='$convenience'
9921 archive_cmds_need_lc=yes
9922 # This is similar to how AIX traditionally builds its shared libraries.
9923 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'
9928 amigaos*)
9929 case $host_cpu in
9930 powerpc)
9931 # see comment about AmigaOS4 .so support
9932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9933 archive_expsym_cmds=''
9935 m68k)
9936 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)'
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_minus_L=yes
9940 esac
9943 bsdi[45]*)
9944 export_dynamic_flag_spec=-rdynamic
9947 cygwin* | mingw* | pw32* | cegcc*)
9948 # When not using gcc, we currently assume that we are using
9949 # Microsoft Visual C++.
9950 # hardcode_libdir_flag_spec is actually meaningless, as there is
9951 # no search path for DLLs.
9952 hardcode_libdir_flag_spec=' '
9953 allow_undefined_flag=unsupported
9954 # Tell ltmain to make .lib files, not .a files.
9955 libext=lib
9956 # Tell ltmain to make .dll files, not .so files.
9957 shrext_cmds=".dll"
9958 # FIXME: Setting linknames here is a bad hack.
9959 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9960 # The linker will automatically build a .lib file if we build a DLL.
9961 old_archive_from_new_cmds='true'
9962 # FIXME: Should let the user specify the lib program.
9963 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9964 fix_srcfile_path='`cygpath -w "$srcfile"`'
9965 enable_shared_with_static_runtimes=yes
9968 darwin* | rhapsody*)
9971 archive_cmds_need_lc=no
9972 hardcode_direct=no
9973 hardcode_automatic=yes
9974 hardcode_shlibpath_var=unsupported
9975 if test "$lt_cv_ld_force_load" = "yes"; then
9976 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\"`'
9977 else
9978 whole_archive_flag_spec=''
9980 link_all_deplibs=yes
9981 allow_undefined_flag="$_lt_dar_allow_undefined"
9982 case $cc_basename in
9983 ifort*) _lt_dar_can_shared=yes ;;
9984 *) _lt_dar_can_shared=$GCC ;;
9985 esac
9986 if test "$_lt_dar_can_shared" = "yes"; then
9987 output_verbose_link_cmd=func_echo_all
9988 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9989 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9990 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}"
9991 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}"
9993 else
9994 ld_shlibs=no
9999 dgux*)
10000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_shlibpath_var=no
10005 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10006 # support. Future versions do this automatically, but an explicit c++rt0.o
10007 # does not break anything, and helps significantly (at the cost of a little
10008 # extra space).
10009 freebsd2.2*)
10010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10011 hardcode_libdir_flag_spec='-R$libdir'
10012 hardcode_direct=yes
10013 hardcode_shlibpath_var=no
10016 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10017 freebsd2.*)
10018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_direct=yes
10020 hardcode_minus_L=yes
10021 hardcode_shlibpath_var=no
10024 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10025 freebsd* | dragonfly*)
10026 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10027 hardcode_libdir_flag_spec='-R$libdir'
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10032 hpux9*)
10033 if test "$GCC" = yes; then
10034 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'
10035 else
10036 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'
10038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10039 hardcode_libdir_separator=:
10040 hardcode_direct=yes
10042 # hardcode_minus_L: Not really in the search PATH,
10043 # but as the default location of the library.
10044 hardcode_minus_L=yes
10045 export_dynamic_flag_spec='${wl}-E'
10048 hpux10*)
10049 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10050 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10051 else
10052 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10054 if test "$with_gnu_ld" = no; then
10055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10056 hardcode_libdir_flag_spec_ld='+b $libdir'
10057 hardcode_libdir_separator=:
10058 hardcode_direct=yes
10059 hardcode_direct_absolute=yes
10060 export_dynamic_flag_spec='${wl}-E'
10061 # hardcode_minus_L: Not really in the search PATH,
10062 # but as the default location of the library.
10063 hardcode_minus_L=yes
10067 hpux11*)
10068 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10069 case $host_cpu in
10070 hppa*64*)
10071 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 ia64*)
10074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079 esac
10080 else
10081 case $host_cpu in
10082 hppa*64*)
10083 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 ia64*)
10086 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10090 # Older versions of the 11.00 compiler do not understand -b yet
10091 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10093 $as_echo_n "checking if $CC understands -b... " >&6; }
10094 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 lt_cv_prog_compiler__b=no
10098 save_LDFLAGS="$LDFLAGS"
10099 LDFLAGS="$LDFLAGS -b"
10100 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10102 # The linker can only warn and ignore the option if not recognized
10103 # So say no if there are warnings
10104 if test -s conftest.err; then
10105 # Append any errors to the config.log.
10106 cat conftest.err 1>&5
10107 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10109 if diff conftest.exp conftest.er2 >/dev/null; then
10110 lt_cv_prog_compiler__b=yes
10112 else
10113 lt_cv_prog_compiler__b=yes
10116 $RM -r conftest*
10117 LDFLAGS="$save_LDFLAGS"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10121 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10123 if test x"$lt_cv_prog_compiler__b" = xyes; then
10124 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10125 else
10126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10130 esac
10132 if test "$with_gnu_ld" = no; then
10133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10134 hardcode_libdir_separator=:
10136 case $host_cpu in
10137 hppa*64*|ia64*)
10138 hardcode_direct=no
10139 hardcode_shlibpath_var=no
10142 hardcode_direct=yes
10143 hardcode_direct_absolute=yes
10144 export_dynamic_flag_spec='${wl}-E'
10146 # hardcode_minus_L: Not really in the search PATH,
10147 # but as the default location of the library.
10148 hardcode_minus_L=yes
10150 esac
10154 irix5* | irix6* | nonstopux*)
10155 if test "$GCC" = yes; then
10156 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'
10157 # Try to use the -exported_symbol ld option, if it does not
10158 # work, assume that -exports_file does not work either and
10159 # implicitly export all symbols.
10160 save_LDFLAGS="$LDFLAGS"
10161 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 int foo(void) {}
10165 _ACEOF
10166 if ac_fn_c_try_link "$LINENO"; then :
10167 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'
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LDFLAGS="$save_LDFLAGS"
10173 else
10174 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'
10175 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'
10177 archive_cmds_need_lc='no'
10178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10179 hardcode_libdir_separator=:
10180 inherit_rpath=yes
10181 link_all_deplibs=yes
10184 netbsd*)
10185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10187 else
10188 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10190 hardcode_libdir_flag_spec='-R$libdir'
10191 hardcode_direct=yes
10192 hardcode_shlibpath_var=no
10195 newsos6)
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_direct=yes
10198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10199 hardcode_libdir_separator=:
10200 hardcode_shlibpath_var=no
10203 *nto* | *qnx*)
10206 openbsd*)
10207 if test -f /usr/libexec/ld.so; then
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10210 hardcode_direct_absolute=yes
10211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10215 export_dynamic_flag_spec='${wl}-E'
10216 else
10217 case $host_os in
10218 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_libdir_flag_spec='-R$libdir'
10223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10226 esac
10228 else
10229 ld_shlibs=no
10233 os2*)
10234 hardcode_libdir_flag_spec='-L$libdir'
10235 hardcode_minus_L=yes
10236 allow_undefined_flag=unsupported
10237 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'
10238 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10241 osf3*)
10242 if test "$GCC" = yes; then
10243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10244 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'
10245 else
10246 allow_undefined_flag=' -expect_unresolved \*'
10247 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'
10249 archive_cmds_need_lc='no'
10250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10251 hardcode_libdir_separator=:
10254 osf4* | osf5*) # as osf3* with the addition of -msym flag
10255 if test "$GCC" = yes; then
10256 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10257 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'
10258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10259 else
10260 allow_undefined_flag=' -expect_unresolved \*'
10261 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'
10262 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~
10263 $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'
10265 # Both c and cxx compiler support -rpath directly
10266 hardcode_libdir_flag_spec='-rpath $libdir'
10268 archive_cmds_need_lc='no'
10269 hardcode_libdir_separator=:
10272 solaris*)
10273 no_undefined_flag=' -z defs'
10274 if test "$GCC" = yes; then
10275 wlarc='${wl}'
10276 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10278 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10279 else
10280 case `$CC -V 2>&1` in
10281 *"Compilers 5.0"*)
10282 wlarc=''
10283 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10288 wlarc='${wl}'
10289 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10291 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10293 esac
10295 hardcode_libdir_flag_spec='-R$libdir'
10296 hardcode_shlibpath_var=no
10297 case $host_os in
10298 solaris2.[0-5] | solaris2.[0-5].*) ;;
10300 # The compiler driver will combine and reorder linker options,
10301 # but understands `-z linker_flag'. GCC discards it without `$wl',
10302 # but is careful enough not to reorder.
10303 # Supported since Solaris 2.6 (maybe 2.5.1?)
10304 if test "$GCC" = yes; then
10305 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10306 else
10307 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10310 esac
10311 link_all_deplibs=yes
10314 sunos4*)
10315 if test "x$host_vendor" = xsequent; then
10316 # Use $CC to link under sequent, because it throws in some extra .o
10317 # files that make .init and .fini sections work.
10318 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10319 else
10320 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10322 hardcode_libdir_flag_spec='-L$libdir'
10323 hardcode_direct=yes
10324 hardcode_minus_L=yes
10325 hardcode_shlibpath_var=no
10328 sysv4)
10329 case $host_vendor in
10330 sni)
10331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10332 hardcode_direct=yes # is this really true???
10334 siemens)
10335 ## LD is ld it makes a PLAMLIB
10336 ## CC just makes a GrossModule.
10337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10338 reload_cmds='$CC -r -o $output$reload_objs'
10339 hardcode_direct=no
10341 motorola)
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10345 esac
10346 runpath_var='LD_RUN_PATH'
10347 hardcode_shlibpath_var=no
10350 sysv4.3*)
10351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352 hardcode_shlibpath_var=no
10353 export_dynamic_flag_spec='-Bexport'
10356 sysv4*MP*)
10357 if test -d /usr/nec; then
10358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359 hardcode_shlibpath_var=no
10360 runpath_var=LD_RUN_PATH
10361 hardcode_runpath_var=yes
10362 ld_shlibs=yes
10366 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10367 no_undefined_flag='${wl}-z,text'
10368 archive_cmds_need_lc=no
10369 hardcode_shlibpath_var=no
10370 runpath_var='LD_RUN_PATH'
10372 if test "$GCC" = yes; then
10373 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10374 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 else
10376 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10381 sysv5* | sco3.2v5* | sco5v6*)
10382 # Note: We can NOT use -z defs as we might desire, because we do not
10383 # link with -lc, and that would cause any symbols used from libc to
10384 # always be unresolved, which means just about no library would
10385 # ever link correctly. If we're not using GNU ld we use -z text
10386 # though, which does catch some bad symbols but isn't as heavy-handed
10387 # as -z defs.
10388 no_undefined_flag='${wl}-z,text'
10389 allow_undefined_flag='${wl}-z,nodefs'
10390 archive_cmds_need_lc=no
10391 hardcode_shlibpath_var=no
10392 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10393 hardcode_libdir_separator=':'
10394 link_all_deplibs=yes
10395 export_dynamic_flag_spec='${wl}-Bexport'
10396 runpath_var='LD_RUN_PATH'
10398 if test "$GCC" = yes; then
10399 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401 else
10402 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 uts4*)
10408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_libdir_flag_spec='-L$libdir'
10410 hardcode_shlibpath_var=no
10414 ld_shlibs=no
10416 esac
10418 if test x$host_vendor = xsni; then
10419 case $host in
10420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10421 export_dynamic_flag_spec='${wl}-Blargedynsym'
10423 esac
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10428 $as_echo "$ld_shlibs" >&6; }
10429 test "$ld_shlibs" = no && can_build_shared=no
10431 with_gnu_ld=$with_gnu_ld
10448 # Do we need to explicitly link libc?
10450 case "x$archive_cmds_need_lc" in
10451 x|xyes)
10452 # Assume -lc should be added
10453 archive_cmds_need_lc=yes
10455 if test "$enable_shared" = yes && test "$GCC" = yes; then
10456 case $archive_cmds in
10457 *'~'*)
10458 # FIXME: we may have to deal with multi-command sequences.
10460 '$CC '*)
10461 # Test whether the compiler implicitly links with -lc since on some
10462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10463 # to ld, don't add -lc before -lgcc.
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10465 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10466 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 $RM conftest*
10470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10473 (eval $ac_compile) 2>&5
10474 ac_status=$?
10475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10476 test $ac_status = 0; } 2>conftest.err; then
10477 soname=conftest
10478 lib=conftest
10479 libobjs=conftest.$ac_objext
10480 deplibs=
10481 wl=$lt_prog_compiler_wl
10482 pic_flag=$lt_prog_compiler_pic
10483 compiler_flags=-v
10484 linker_flags=-v
10485 verstring=
10486 output_objdir=.
10487 libname=conftest
10488 lt_save_allow_undefined_flag=$allow_undefined_flag
10489 allow_undefined_flag=
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10491 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10492 ac_status=$?
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; }
10495 then
10496 lt_cv_archive_cmds_need_lc=no
10497 else
10498 lt_cv_archive_cmds_need_lc=yes
10500 allow_undefined_flag=$lt_save_allow_undefined_flag
10501 else
10502 cat conftest.err 1>&5
10504 $RM conftest*
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10508 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10509 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10511 esac
10514 esac
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10673 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10675 if test "$GCC" = yes; then
10676 case $host_os in
10677 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10678 *) lt_awk_arg="/^libraries:/" ;;
10679 esac
10680 case $host_os in
10681 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10682 *) lt_sed_strip_eq="s,=/,/,g" ;;
10683 esac
10684 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10685 case $lt_search_path_spec in
10686 *\;*)
10687 # if the path contains ";" then we assume it to be the separator
10688 # otherwise default to the standard path separator (i.e. ":") - it is
10689 # assumed that no part of a normal pathname contains ";" but that should
10690 # okay in the real world where ";" in dirpaths is itself problematic.
10691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10696 esac
10697 # Ok, now we have the path, separated by spaces, we can step through it
10698 # and add multilib dir if necessary.
10699 lt_tmp_lt_search_path_spec=
10700 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10701 for lt_sys_path in $lt_search_path_spec; do
10702 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10704 else
10705 test -d "$lt_sys_path" && \
10706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10708 done
10709 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10710 BEGIN {RS=" "; FS="/|\n";} {
10711 lt_foo="";
10712 lt_count=0;
10713 for (lt_i = NF; lt_i > 0; lt_i--) {
10714 if ($lt_i != "" && $lt_i != ".") {
10715 if ($lt_i == "..") {
10716 lt_count++;
10717 } else {
10718 if (lt_count == 0) {
10719 lt_foo="/" $lt_i lt_foo;
10720 } else {
10721 lt_count--;
10726 if (lt_foo != "") { lt_freq[lt_foo]++; }
10727 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10729 # AWK program above erroneously prepends '/' to C:/dos/paths
10730 # for these hosts.
10731 case $host_os in
10732 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10733 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10734 esac
10735 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10736 else
10737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10739 library_names_spec=
10740 libname_spec='lib$name'
10741 soname_spec=
10742 shrext_cmds=".so"
10743 postinstall_cmds=
10744 postuninstall_cmds=
10745 finish_cmds=
10746 finish_eval=
10747 shlibpath_var=
10748 shlibpath_overrides_runpath=unknown
10749 version_type=none
10750 dynamic_linker="$host_os ld.so"
10751 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10752 need_lib_prefix=unknown
10753 hardcode_into_libs=no
10755 # when you set need_version to no, make sure it does not cause -set_version
10756 # flags to be left without arguments
10757 need_version=unknown
10759 case $host_os in
10760 aix3*)
10761 version_type=linux
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10763 shlibpath_var=LIBPATH
10765 # AIX 3 has no versioning support, so we append a major version to the name.
10766 soname_spec='${libname}${release}${shared_ext}$major'
10769 aix[4-9]*)
10770 version_type=linux
10771 need_lib_prefix=no
10772 need_version=no
10773 hardcode_into_libs=yes
10774 if test "$host_cpu" = ia64; then
10775 # AIX 5 supports IA64
10776 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 else
10779 # With GCC up to 2.95.x, collect2 would create an import file
10780 # for dependence libraries. The import file would start with
10781 # the line `#! .'. This would cause the generated library to
10782 # depend on `.', always an invalid library. This was fixed in
10783 # development snapshots of GCC prior to 3.0.
10784 case $host_os in
10785 aix4 | aix4.[01] | aix4.[01].*)
10786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10787 echo ' yes '
10788 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10790 else
10791 can_build_shared=no
10794 esac
10795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10796 # soname into executable. Probably we can add versioning support to
10797 # collect2, so additional links can be useful in future.
10798 if test "$aix_use_runtimelinking" = yes; then
10799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10800 # instead of lib<name>.a to let people know that these are not
10801 # typical AIX shared libraries.
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803 else
10804 # We preserve .a as extension for shared libraries through AIX4.2
10805 # and later when we are not doing run time linking.
10806 library_names_spec='${libname}${release}.a $libname.a'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10809 shlibpath_var=LIBPATH
10813 amigaos*)
10814 case $host_cpu in
10815 powerpc)
10816 # Since July 2007 AmigaOS4 officially supports .so libraries.
10817 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 m68k)
10821 library_names_spec='$libname.ixlibrary $libname.a'
10822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10823 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'
10825 esac
10828 beos*)
10829 library_names_spec='${libname}${shared_ext}'
10830 dynamic_linker="$host_os ld.so"
10831 shlibpath_var=LIBRARY_PATH
10834 bsdi[45]*)
10835 version_type=linux
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10843 # the default ld.so.conf also contains /usr/contrib/lib and
10844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10845 # libtool to hard-code these into programs
10848 cygwin* | mingw* | pw32* | cegcc*)
10849 version_type=windows
10850 shrext_cmds=".dll"
10851 need_version=no
10852 need_lib_prefix=no
10854 case $GCC,$host_os in
10855 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10856 library_names_spec='$libname.dll.a'
10857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10858 postinstall_cmds='base_file=`basename \${file}`~
10859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10860 dldir=$destdir/`dirname \$dlpath`~
10861 test -d \$dldir || mkdir -p \$dldir~
10862 $install_prog $dir/$dlname \$dldir/$dlname~
10863 chmod a+x \$dldir/$dlname~
10864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10868 dlpath=$dir/\$dldll~
10869 $RM \$dlpath'
10870 shlibpath_overrides_runpath=yes
10872 case $host_os in
10873 cygwin*)
10874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10877 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10879 mingw* | cegcc*)
10880 # MinGW DLLs use traditional 'lib' prefix
10881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10883 pw32*)
10884 # pw32 DLLs use 'pw' prefix rather than 'lib'
10885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10887 esac
10891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10893 esac
10894 dynamic_linker='Win32 ld.exe'
10895 # FIXME: first we should search . and the directory the executable is in
10896 shlibpath_var=PATH
10899 darwin* | rhapsody*)
10900 dynamic_linker="$host_os dyld"
10901 version_type=darwin
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10905 soname_spec='${libname}${release}${major}$shared_ext'
10906 shlibpath_overrides_runpath=yes
10907 shlibpath_var=DYLD_LIBRARY_PATH
10908 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10910 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10914 dgux*)
10915 version_type=linux
10916 need_lib_prefix=no
10917 need_version=no
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10923 freebsd* | dragonfly*)
10924 # DragonFly does not have aout. When/if they implement a new
10925 # versioning mechanism, adjust this.
10926 if test -x /usr/bin/objformat; then
10927 objformat=`/usr/bin/objformat`
10928 else
10929 case $host_os in
10930 freebsd[23].*) objformat=aout ;;
10931 *) objformat=elf ;;
10932 esac
10934 version_type=freebsd-$objformat
10935 case $version_type in
10936 freebsd-elf*)
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10938 need_version=no
10939 need_lib_prefix=no
10941 freebsd-*)
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10943 need_version=yes
10945 esac
10946 shlibpath_var=LD_LIBRARY_PATH
10947 case $host_os in
10948 freebsd2.*)
10949 shlibpath_overrides_runpath=yes
10951 freebsd3.[01]* | freebsdelf3.[01]*)
10952 shlibpath_overrides_runpath=yes
10953 hardcode_into_libs=yes
10955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10957 shlibpath_overrides_runpath=no
10958 hardcode_into_libs=yes
10960 *) # from 4.6 on, and DragonFly
10961 shlibpath_overrides_runpath=yes
10962 hardcode_into_libs=yes
10964 esac
10967 gnu*)
10968 version_type=linux
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 hardcode_into_libs=yes
10977 haiku*)
10978 version_type=linux
10979 need_lib_prefix=no
10980 need_version=no
10981 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10987 hardcode_into_libs=yes
10990 hpux9* | hpux10* | hpux11*)
10991 # Give a soname corresponding to the major version so that dld.sl refuses to
10992 # link against other versions.
10993 version_type=sunos
10994 need_lib_prefix=no
10995 need_version=no
10996 case $host_cpu in
10997 ia64*)
10998 shrext_cmds='.so'
10999 hardcode_into_libs=yes
11000 dynamic_linker="$host_os dld.so"
11001 shlibpath_var=LD_LIBRARY_PATH
11002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 if test "X$HPUX_IA64_MODE" = X32; then
11006 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11007 else
11008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11012 hppa*64*)
11013 shrext_cmds='.sl'
11014 hardcode_into_libs=yes
11015 dynamic_linker="$host_os dld.sl"
11016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11024 shrext_cmds='.sl'
11025 dynamic_linker="$host_os dld.sl"
11026 shlibpath_var=SHLIB_PATH
11027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11031 esac
11032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11033 postinstall_cmds='chmod 555 $lib'
11034 # or fails outright, so override atomically:
11035 install_override_mode=555
11038 interix[3-9]*)
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047 hardcode_into_libs=yes
11050 irix5* | irix6* | nonstopux*)
11051 case $host_os in
11052 nonstopux*) version_type=nonstopux ;;
11054 if test "$lt_cv_prog_gnu_ld" = yes; then
11055 version_type=linux
11056 else
11057 version_type=irix
11058 fi ;;
11059 esac
11060 need_lib_prefix=no
11061 need_version=no
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11064 case $host_os in
11065 irix5* | nonstopux*)
11066 libsuff= shlibsuff=
11069 case $LD in # libtool.m4 will add one of these switches to LD
11070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11071 libsuff= shlibsuff= libmagic=32-bit;;
11072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11073 libsuff=32 shlibsuff=N32 libmagic=N32;;
11074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11076 *) libsuff= shlibsuff= libmagic=never-match;;
11077 esac
11079 esac
11080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11081 shlibpath_overrides_runpath=no
11082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11084 hardcode_into_libs=yes
11087 # No shared lib support for Linux oldld, aout, or coff.
11088 linux*oldld* | linux*aout* | linux*coff*)
11089 dynamic_linker=no
11092 # This must be Linux ELF.
11093 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11094 version_type=linux
11095 need_lib_prefix=no
11096 need_version=no
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=no
11103 # Some binutils ld are patched to set DT_RUNPATH
11104 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 lt_cv_shlibpath_overrides_runpath=no
11108 save_LDFLAGS=$LDFLAGS
11109 save_libdir=$libdir
11110 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11111 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11116 main ()
11120 return 0;
11122 _ACEOF
11123 if ac_fn_c_try_link "$LINENO"; then :
11124 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11125 lt_cv_shlibpath_overrides_runpath=yes
11128 rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11130 LDFLAGS=$save_LDFLAGS
11131 libdir=$save_libdir
11135 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11137 # This implies no fast_install, which is unacceptable.
11138 # Some rework will be needed to allow for fast_install
11139 # before this can be enabled.
11140 hardcode_into_libs=yes
11142 # Append ld.so.conf contents to the search path
11143 if test -f /etc/ld.so.conf; then
11144 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' ' '`
11145 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11148 # We used to test for /lib/ld.so.1 and disable shared libraries on
11149 # powerpc, because MkLinux only supported shared libraries with the
11150 # GNU dynamic linker. Since this was broken with cross compilers,
11151 # most powerpc-linux boxes support dynamic linking these days and
11152 # people can always --disable-shared, the test was removed, and we
11153 # assume the GNU/Linux dynamic linker is in use.
11154 dynamic_linker='GNU/Linux ld.so'
11157 netbsd*)
11158 version_type=sunos
11159 need_lib_prefix=no
11160 need_version=no
11161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164 dynamic_linker='NetBSD (a.out) ld.so'
11165 else
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 dynamic_linker='NetBSD ld.elf_so'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11175 newsos6)
11176 version_type=linux
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 shlibpath_overrides_runpath=yes
11182 *nto* | *qnx*)
11183 version_type=qnx
11184 need_lib_prefix=no
11185 need_version=no
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=no
11190 hardcode_into_libs=yes
11191 dynamic_linker='ldqnx.so'
11194 openbsd*)
11195 version_type=sunos
11196 sys_lib_dlsearch_path_spec="/usr/lib"
11197 need_lib_prefix=no
11198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11199 case $host_os in
11200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11201 *) need_version=no ;;
11202 esac
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11207 case $host_os in
11208 openbsd2.[89] | openbsd2.[89].*)
11209 shlibpath_overrides_runpath=no
11212 shlibpath_overrides_runpath=yes
11214 esac
11215 else
11216 shlibpath_overrides_runpath=yes
11220 os2*)
11221 libname_spec='$name'
11222 shrext_cmds=".dll"
11223 need_lib_prefix=no
11224 library_names_spec='$libname${shared_ext} $libname.a'
11225 dynamic_linker='OS/2 ld.exe'
11226 shlibpath_var=LIBPATH
11229 osf3* | osf4* | osf5*)
11230 version_type=osf
11231 need_lib_prefix=no
11232 need_version=no
11233 soname_spec='${libname}${release}${shared_ext}$major'
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11240 rdos*)
11241 dynamic_linker=no
11244 solaris*)
11245 version_type=linux
11246 need_lib_prefix=no
11247 need_version=no
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes
11252 hardcode_into_libs=yes
11253 # ldd complains unless libraries are executable
11254 postinstall_cmds='chmod +x $lib'
11257 sunos4*)
11258 version_type=sunos
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11260 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=yes
11263 if test "$with_gnu_ld" = yes; then
11264 need_lib_prefix=no
11266 need_version=yes
11269 sysv4 | sysv4.3*)
11270 version_type=linux
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 case $host_vendor in
11275 sni)
11276 shlibpath_overrides_runpath=no
11277 need_lib_prefix=no
11278 runpath_var=LD_RUN_PATH
11280 siemens)
11281 need_lib_prefix=no
11283 motorola)
11284 need_lib_prefix=no
11285 need_version=no
11286 shlibpath_overrides_runpath=no
11287 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11289 esac
11292 sysv4*MP*)
11293 if test -d /usr/nec ;then
11294 version_type=linux
11295 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11296 soname_spec='$libname${shared_ext}.$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11302 version_type=freebsd-elf
11303 need_lib_prefix=no
11304 need_version=no
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11309 hardcode_into_libs=yes
11310 if test "$with_gnu_ld" = yes; then
11311 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11312 else
11313 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11314 case $host_os in
11315 sco3.2v5*)
11316 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11318 esac
11320 sys_lib_dlsearch_path_spec='/usr/lib'
11323 tpf*)
11324 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11325 version_type=linux
11326 need_lib_prefix=no
11327 need_version=no
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 shlibpath_overrides_runpath=no
11331 hardcode_into_libs=yes
11334 uts4*)
11335 version_type=linux
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11342 dynamic_linker=no
11344 esac
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11346 $as_echo "$dynamic_linker" >&6; }
11347 test "$dynamic_linker" = no && can_build_shared=no
11349 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11350 if test "$GCC" = yes; then
11351 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11354 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11355 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11357 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11358 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11453 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11454 hardcode_action=
11455 if test -n "$hardcode_libdir_flag_spec" ||
11456 test -n "$runpath_var" ||
11457 test "X$hardcode_automatic" = "Xyes" ; then
11459 # We can hardcode non-existent directories.
11460 if test "$hardcode_direct" != no &&
11461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11462 # have to relink, otherwise we might link with an installed library
11463 # when we should be linking with a yet-to-be-installed one
11464 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11465 test "$hardcode_minus_L" != no; then
11466 # Linking always hardcodes the temporary library directory.
11467 hardcode_action=relink
11468 else
11469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11470 hardcode_action=immediate
11472 else
11473 # We cannot hardcode anything, or else we can only hardcode existing
11474 # directories.
11475 hardcode_action=unsupported
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11478 $as_echo "$hardcode_action" >&6; }
11480 if test "$hardcode_action" = relink ||
11481 test "$inherit_rpath" = yes; then
11482 # Fast installation is not supported
11483 enable_fast_install=no
11484 elif test "$shlibpath_overrides_runpath" = yes ||
11485 test "$enable_shared" = no; then
11486 # Fast installation is not necessary
11487 enable_fast_install=needless
11495 if test "x$enable_dlopen" != xyes; then
11496 enable_dlopen=unknown
11497 enable_dlopen_self=unknown
11498 enable_dlopen_self_static=unknown
11499 else
11500 lt_cv_dlopen=no
11501 lt_cv_dlopen_libs=
11503 case $host_os in
11504 beos*)
11505 lt_cv_dlopen="load_add_on"
11506 lt_cv_dlopen_libs=
11507 lt_cv_dlopen_self=yes
11510 mingw* | pw32* | cegcc*)
11511 lt_cv_dlopen="LoadLibrary"
11512 lt_cv_dlopen_libs=
11515 cygwin*)
11516 lt_cv_dlopen="dlopen"
11517 lt_cv_dlopen_libs=
11520 darwin*)
11521 # if libdl is installed we need to link against it
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11523 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-ldl $LIBS"
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11532 /* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 char dlopen ();
11540 main ()
11542 return dlopen ();
11544 return 0;
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 ac_cv_lib_dl_dlopen=yes
11549 else
11550 ac_cv_lib_dl_dlopen=no
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11557 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11558 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11560 else
11562 lt_cv_dlopen="dyld"
11563 lt_cv_dlopen_libs=
11564 lt_cv_dlopen_self=yes
11571 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11572 if test "x$ac_cv_func_shl_load" = x""yes; then :
11573 lt_cv_dlopen="shl_load"
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11576 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11577 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-ldld $LIBS"
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char shl_load ();
11593 main ()
11595 return shl_load ();
11597 return 0;
11599 _ACEOF
11600 if ac_fn_c_try_link "$LINENO"; then :
11601 ac_cv_lib_dld_shl_load=yes
11602 else
11603 ac_cv_lib_dld_shl_load=no
11605 rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607 LIBS=$ac_check_lib_save_LIBS
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11610 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11611 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11612 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11613 else
11614 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11615 if test "x$ac_cv_func_dlopen" = x""yes; then :
11616 lt_cv_dlopen="dlopen"
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-ldl $LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char dlopen ();
11636 main ()
11638 return dlopen ();
11640 return 0;
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 ac_cv_lib_dl_dlopen=yes
11645 else
11646 ac_cv_lib_dl_dlopen=no
11648 rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 LIBS=$ac_check_lib_save_LIBS
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11653 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11654 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11658 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11659 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 ac_check_lib_save_LIBS=$LIBS
11663 LIBS="-lsvld $LIBS"
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11670 #ifdef __cplusplus
11671 extern "C"
11672 #endif
11673 char dlopen ();
11675 main ()
11677 return dlopen ();
11679 return 0;
11681 _ACEOF
11682 if ac_fn_c_try_link "$LINENO"; then :
11683 ac_cv_lib_svld_dlopen=yes
11684 else
11685 ac_cv_lib_svld_dlopen=no
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11692 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11693 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11697 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11698 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 ac_check_lib_save_LIBS=$LIBS
11702 LIBS="-ldld $LIBS"
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11706 /* Override any GCC internal prototype to avoid an error.
11707 Use char because int might match the return type of a GCC
11708 builtin and then its argument prototype would still apply. */
11709 #ifdef __cplusplus
11710 extern "C"
11711 #endif
11712 char dld_link ();
11714 main ()
11716 return dld_link ();
11718 return 0;
11720 _ACEOF
11721 if ac_fn_c_try_link "$LINENO"; then :
11722 ac_cv_lib_dld_dld_link=yes
11723 else
11724 ac_cv_lib_dld_dld_link=no
11726 rm -f core conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_lib_save_LIBS
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11731 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11732 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11733 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11752 esac
11754 if test "x$lt_cv_dlopen" != xno; then
11755 enable_dlopen=yes
11756 else
11757 enable_dlopen=no
11760 case $lt_cv_dlopen in
11761 dlopen)
11762 save_CPPFLAGS="$CPPFLAGS"
11763 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11765 save_LDFLAGS="$LDFLAGS"
11766 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11768 save_LIBS="$LIBS"
11769 LIBS="$lt_cv_dlopen_libs $LIBS"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11772 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11773 if test "${lt_cv_dlopen_self+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 if test "$cross_compiling" = yes; then :
11777 lt_cv_dlopen_self=cross
11778 else
11779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11780 lt_status=$lt_dlunknown
11781 cat > conftest.$ac_ext <<_LT_EOF
11782 #line 11782 "configure"
11783 #include "confdefs.h"
11785 #if HAVE_DLFCN_H
11786 #include <dlfcn.h>
11787 #endif
11789 #include <stdio.h>
11791 #ifdef RTLD_GLOBAL
11792 # define LT_DLGLOBAL RTLD_GLOBAL
11793 #else
11794 # ifdef DL_GLOBAL
11795 # define LT_DLGLOBAL DL_GLOBAL
11796 # else
11797 # define LT_DLGLOBAL 0
11798 # endif
11799 #endif
11801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11802 find out it does not work in some platform. */
11803 #ifndef LT_DLLAZY_OR_NOW
11804 # ifdef RTLD_LAZY
11805 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11806 # else
11807 # ifdef DL_LAZY
11808 # define LT_DLLAZY_OR_NOW DL_LAZY
11809 # else
11810 # ifdef RTLD_NOW
11811 # define LT_DLLAZY_OR_NOW RTLD_NOW
11812 # else
11813 # ifdef DL_NOW
11814 # define LT_DLLAZY_OR_NOW DL_NOW
11815 # else
11816 # define LT_DLLAZY_OR_NOW 0
11817 # endif
11818 # endif
11819 # endif
11820 # endif
11821 #endif
11823 /* When -fvisbility=hidden is used, assume the code has been annotated
11824 correspondingly for the symbols needed. */
11825 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11826 void fnord () __attribute__((visibility("default")));
11827 #endif
11829 void fnord () { int i=42; }
11830 int main ()
11832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11833 int status = $lt_dlunknown;
11835 if (self)
11837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11838 else
11840 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11841 else puts (dlerror ());
11843 /* dlclose (self); */
11845 else
11846 puts (dlerror ());
11848 return status;
11850 _LT_EOF
11851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11852 (eval $ac_link) 2>&5
11853 ac_status=$?
11854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11855 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11856 (./conftest; exit; ) >&5 2>/dev/null
11857 lt_status=$?
11858 case x$lt_status in
11859 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11860 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11861 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11862 esac
11863 else :
11864 # compilation failed
11865 lt_cv_dlopen_self=no
11868 rm -fr conftest*
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11873 $as_echo "$lt_cv_dlopen_self" >&6; }
11875 if test "x$lt_cv_dlopen_self" = xyes; then
11876 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11878 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11879 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 if test "$cross_compiling" = yes; then :
11883 lt_cv_dlopen_self_static=cross
11884 else
11885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11886 lt_status=$lt_dlunknown
11887 cat > conftest.$ac_ext <<_LT_EOF
11888 #line 11888 "configure"
11889 #include "confdefs.h"
11891 #if HAVE_DLFCN_H
11892 #include <dlfcn.h>
11893 #endif
11895 #include <stdio.h>
11897 #ifdef RTLD_GLOBAL
11898 # define LT_DLGLOBAL RTLD_GLOBAL
11899 #else
11900 # ifdef DL_GLOBAL
11901 # define LT_DLGLOBAL DL_GLOBAL
11902 # else
11903 # define LT_DLGLOBAL 0
11904 # endif
11905 #endif
11907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11908 find out it does not work in some platform. */
11909 #ifndef LT_DLLAZY_OR_NOW
11910 # ifdef RTLD_LAZY
11911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11912 # else
11913 # ifdef DL_LAZY
11914 # define LT_DLLAZY_OR_NOW DL_LAZY
11915 # else
11916 # ifdef RTLD_NOW
11917 # define LT_DLLAZY_OR_NOW RTLD_NOW
11918 # else
11919 # ifdef DL_NOW
11920 # define LT_DLLAZY_OR_NOW DL_NOW
11921 # else
11922 # define LT_DLLAZY_OR_NOW 0
11923 # endif
11924 # endif
11925 # endif
11926 # endif
11927 #endif
11929 /* When -fvisbility=hidden is used, assume the code has been annotated
11930 correspondingly for the symbols needed. */
11931 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11932 void fnord () __attribute__((visibility("default")));
11933 #endif
11935 void fnord () { int i=42; }
11936 int main ()
11938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11939 int status = $lt_dlunknown;
11941 if (self)
11943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11944 else
11946 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11947 else puts (dlerror ());
11949 /* dlclose (self); */
11951 else
11952 puts (dlerror ());
11954 return status;
11956 _LT_EOF
11957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11958 (eval $ac_link) 2>&5
11959 ac_status=$?
11960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11961 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11962 (./conftest; exit; ) >&5 2>/dev/null
11963 lt_status=$?
11964 case x$lt_status in
11965 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11966 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11967 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11968 esac
11969 else :
11970 # compilation failed
11971 lt_cv_dlopen_self_static=no
11974 rm -fr conftest*
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11979 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11982 CPPFLAGS="$save_CPPFLAGS"
11983 LDFLAGS="$save_LDFLAGS"
11984 LIBS="$save_LIBS"
11986 esac
11988 case $lt_cv_dlopen_self in
11989 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11990 *) enable_dlopen_self=unknown ;;
11991 esac
11993 case $lt_cv_dlopen_self_static in
11994 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11995 *) enable_dlopen_self_static=unknown ;;
11996 esac
12015 striplib=
12016 old_striplib=
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12018 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12019 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12020 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12021 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023 $as_echo "yes" >&6; }
12024 else
12025 # FIXME - insert some real tests, host_os isn't really good enough
12026 case $host_os in
12027 darwin*)
12028 if test -n "$STRIP" ; then
12029 striplib="$STRIP -x"
12030 old_striplib="$STRIP -S"
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12032 $as_echo "yes" >&6; }
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12042 esac
12056 # Report which library types will actually be built
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12058 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12060 $as_echo "$can_build_shared" >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12063 $as_echo_n "checking whether to build shared libraries... " >&6; }
12064 test "$can_build_shared" = "no" && enable_shared=no
12066 # On AIX, shared libraries and static libraries use the same namespace, and
12067 # are all built from PIC.
12068 case $host_os in
12069 aix3*)
12070 test "$enable_shared" = yes && enable_static=no
12071 if test -n "$RANLIB"; then
12072 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12073 postinstall_cmds='$RANLIB $lib'
12077 aix[4-9]*)
12078 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12079 test "$enable_shared" = yes && enable_static=no
12082 esac
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12084 $as_echo "$enable_shared" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12087 $as_echo_n "checking whether to build static libraries... " >&6; }
12088 # Make sure either enable_shared or enable_static is yes.
12089 test "$enable_shared" = yes || enable_static=yes
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12091 $as_echo "$enable_static" >&6; }
12097 ac_ext=c
12098 ac_cpp='$CPP $CPPFLAGS'
12099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12103 CC="$lt_save_CC"
12105 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12106 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12107 (test "X$CXX" != "Xg++"))) ; then
12108 ac_ext=cpp
12109 ac_cpp='$CXXCPP $CPPFLAGS'
12110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12114 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12115 if test -z "$CXXCPP"; then
12116 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 # Double quotes because CXXCPP needs to be expanded
12120 for CXXCPP in "$CXX -E" "/lib/cpp"
12122 ac_preproc_ok=false
12123 for ac_cxx_preproc_warn_flag in '' yes
12125 # Use a header file that comes with gcc, so configuring glibc
12126 # with a fresh cross-compiler works.
12127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 # <limits.h> exists even on freestanding compilers.
12129 # On the NeXT, cc -E runs the code through the compiler's parser,
12130 # not just through cpp. "Syntax error" is here to catch this case.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138 Syntax error
12139 _ACEOF
12140 if ac_fn_cxx_try_cpp "$LINENO"; then :
12142 else
12143 # Broken: fails on valid input.
12144 continue
12146 rm -f conftest.err conftest.$ac_ext
12148 # OK, works on sane cases. Now check whether nonexistent headers
12149 # can be detected and how.
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #include <ac_nonexistent.h>
12153 _ACEOF
12154 if ac_fn_cxx_try_cpp "$LINENO"; then :
12155 # Broken: success on invalid input.
12156 continue
12157 else
12158 # Passes both tests.
12159 ac_preproc_ok=:
12160 break
12162 rm -f conftest.err conftest.$ac_ext
12164 done
12165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12166 rm -f conftest.err conftest.$ac_ext
12167 if $ac_preproc_ok; then :
12168 break
12171 done
12172 ac_cv_prog_CXXCPP=$CXXCPP
12175 CXXCPP=$ac_cv_prog_CXXCPP
12176 else
12177 ac_cv_prog_CXXCPP=$CXXCPP
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12180 $as_echo "$CXXCPP" >&6; }
12181 ac_preproc_ok=false
12182 for ac_cxx_preproc_warn_flag in '' yes
12184 # Use a header file that comes with gcc, so configuring glibc
12185 # with a fresh cross-compiler works.
12186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12187 # <limits.h> exists even on freestanding compilers.
12188 # On the NeXT, cc -E runs the code through the compiler's parser,
12189 # not just through cpp. "Syntax error" is here to catch this case.
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 #ifdef __STDC__
12193 # include <limits.h>
12194 #else
12195 # include <assert.h>
12196 #endif
12197 Syntax error
12198 _ACEOF
12199 if ac_fn_cxx_try_cpp "$LINENO"; then :
12201 else
12202 # Broken: fails on valid input.
12203 continue
12205 rm -f conftest.err conftest.$ac_ext
12207 # OK, works on sane cases. Now check whether nonexistent headers
12208 # can be detected and how.
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #include <ac_nonexistent.h>
12212 _ACEOF
12213 if ac_fn_cxx_try_cpp "$LINENO"; then :
12214 # Broken: success on invalid input.
12215 continue
12216 else
12217 # Passes both tests.
12218 ac_preproc_ok=:
12219 break
12221 rm -f conftest.err conftest.$ac_ext
12223 done
12224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12225 rm -f conftest.err conftest.$ac_ext
12226 if $ac_preproc_ok; then :
12228 else
12229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12231 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12232 See \`config.log' for more details." "$LINENO" 5; }
12235 ac_ext=c
12236 ac_cpp='$CPP $CPPFLAGS'
12237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12241 else
12242 _lt_caught_CXX_error=yes
12245 ac_ext=cpp
12246 ac_cpp='$CXXCPP $CPPFLAGS'
12247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12251 archive_cmds_need_lc_CXX=no
12252 allow_undefined_flag_CXX=
12253 always_export_symbols_CXX=no
12254 archive_expsym_cmds_CXX=
12255 compiler_needs_object_CXX=no
12256 export_dynamic_flag_spec_CXX=
12257 hardcode_direct_CXX=no
12258 hardcode_direct_absolute_CXX=no
12259 hardcode_libdir_flag_spec_CXX=
12260 hardcode_libdir_flag_spec_ld_CXX=
12261 hardcode_libdir_separator_CXX=
12262 hardcode_minus_L_CXX=no
12263 hardcode_shlibpath_var_CXX=unsupported
12264 hardcode_automatic_CXX=no
12265 inherit_rpath_CXX=no
12266 module_cmds_CXX=
12267 module_expsym_cmds_CXX=
12268 link_all_deplibs_CXX=unknown
12269 old_archive_cmds_CXX=$old_archive_cmds
12270 reload_flag_CXX=$reload_flag
12271 reload_cmds_CXX=$reload_cmds
12272 no_undefined_flag_CXX=
12273 whole_archive_flag_spec_CXX=
12274 enable_shared_with_static_runtimes_CXX=no
12276 # Source file extension for C++ test sources.
12277 ac_ext=cpp
12279 # Object file extension for compiled C++ test sources.
12280 objext=o
12281 objext_CXX=$objext
12283 # No sense in running all these tests if we already determined that
12284 # the CXX compiler isn't working. Some variables (like enable_shared)
12285 # are currently assumed to apply to all compilers on this platform,
12286 # and will be corrupted by setting them based on a non-working compiler.
12287 if test "$_lt_caught_CXX_error" != yes; then
12288 # Code to be used in simple compile tests
12289 lt_simple_compile_test_code="int some_variable = 0;"
12291 # Code to be used in simple link tests
12292 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12301 # If no C compiler was specified, use CC.
12302 LTCC=${LTCC-"$CC"}
12304 # If no C compiler flags were specified, use CFLAGS.
12305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12307 # Allow CC to be a program name with arguments.
12308 compiler=$CC
12311 # save warnings/boilerplate of simple test code
12312 ac_outfile=conftest.$ac_objext
12313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12315 _lt_compiler_boilerplate=`cat conftest.err`
12316 $RM conftest*
12318 ac_outfile=conftest.$ac_objext
12319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12321 _lt_linker_boilerplate=`cat conftest.err`
12322 $RM -r conftest*
12325 # Allow CC to be a program name with arguments.
12326 lt_save_CC=$CC
12327 lt_save_LD=$LD
12328 lt_save_GCC=$GCC
12329 GCC=$GXX
12330 lt_save_with_gnu_ld=$with_gnu_ld
12331 lt_save_path_LD=$lt_cv_path_LD
12332 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12333 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12334 else
12335 $as_unset lt_cv_prog_gnu_ld
12337 if test -n "${lt_cv_path_LDCXX+set}"; then
12338 lt_cv_path_LD=$lt_cv_path_LDCXX
12339 else
12340 $as_unset lt_cv_path_LD
12342 test -z "${LDCXX+set}" || LD=$LDCXX
12343 CC=${CXX-"c++"}
12344 compiler=$CC
12345 compiler_CXX=$CC
12346 for cc_temp in $compiler""; do
12347 case $cc_temp in
12348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12350 \-*) ;;
12351 *) break;;
12352 esac
12353 done
12354 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12357 if test -n "$compiler"; then
12358 # We don't want -fno-exception when compiling C++ code, so set the
12359 # no_builtin_flag separately
12360 if test "$GXX" = yes; then
12361 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12362 else
12363 lt_prog_compiler_no_builtin_flag_CXX=
12366 if test "$GXX" = yes; then
12367 # Set up default GNU C++ configuration
12371 # Check whether --with-gnu-ld was given.
12372 if test "${with_gnu_ld+set}" = set; then :
12373 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12374 else
12375 with_gnu_ld=no
12378 ac_prog=ld
12379 if test "$GCC" = yes; then
12380 # Check if gcc -print-prog-name=ld gives a path.
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12382 $as_echo_n "checking for ld used by $CC... " >&6; }
12383 case $host in
12384 *-*-mingw*)
12385 # gcc leaves a trailing carriage return which upsets mingw
12386 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12388 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12389 esac
12390 case $ac_prog in
12391 # Accept absolute paths.
12392 [\\/]* | ?:[\\/]*)
12393 re_direlt='/[^/][^/]*/\.\./'
12394 # Canonicalize the pathname of ld
12395 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12396 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12397 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12398 done
12399 test -z "$LD" && LD="$ac_prog"
12402 # If it fails, then pretend we aren't using GCC.
12403 ac_prog=ld
12406 # If it is relative, then search for the first ld in PATH.
12407 with_gnu_ld=unknown
12409 esac
12410 elif test "$with_gnu_ld" = yes; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12412 $as_echo_n "checking for GNU ld... " >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12415 $as_echo_n "checking for non-GNU ld... " >&6; }
12417 if test "${lt_cv_path_LD+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -z "$LD"; then
12421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12422 for ac_dir in $PATH; do
12423 IFS="$lt_save_ifs"
12424 test -z "$ac_dir" && ac_dir=.
12425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12426 lt_cv_path_LD="$ac_dir/$ac_prog"
12427 # Check to see if the program is GNU ld. I'd rather use --version,
12428 # but apparently some variants of GNU ld only accept -v.
12429 # Break only if it was the GNU/non-GNU ld that we prefer.
12430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12431 *GNU* | *'with BFD'*)
12432 test "$with_gnu_ld" != no && break
12435 test "$with_gnu_ld" != yes && break
12437 esac
12439 done
12440 IFS="$lt_save_ifs"
12441 else
12442 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12446 LD="$lt_cv_path_LD"
12447 if test -n "$LD"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12449 $as_echo "$LD" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12454 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12456 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12457 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12461 case `$LD -v 2>&1 </dev/null` in
12462 *GNU* | *'with BFD'*)
12463 lt_cv_prog_gnu_ld=yes
12466 lt_cv_prog_gnu_ld=no
12468 esac
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12471 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12472 with_gnu_ld=$lt_cv_prog_gnu_ld
12480 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12481 # archiving commands below assume that GNU ld is being used.
12482 if test "$with_gnu_ld" = yes; then
12483 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12484 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12486 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12489 # If archive_cmds runs LD, not CC, wlarc should be empty
12490 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12491 # investigate it a little bit more. (MM)
12492 wlarc='${wl}'
12494 # ancient GNU ld didn't support --whole-archive et. al.
12495 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12496 $GREP 'no-whole-archive' > /dev/null; then
12497 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12498 else
12499 whole_archive_flag_spec_CXX=
12501 else
12502 with_gnu_ld=no
12503 wlarc=
12505 # A generic and very simple default shared library creation
12506 # command for GNU C++ for the case where it uses the native
12507 # linker, instead of GNU ld. If possible, this setting should
12508 # overridden to take advantage of the native linker features on
12509 # the platform it is being used on.
12510 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12513 # Commands to make compiler produce verbose output that lists
12514 # what "hidden" libraries, object files and flags are used when
12515 # linking a shared library.
12516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12518 else
12519 GXX=no
12520 with_gnu_ld=no
12521 wlarc=
12524 # PORTME: fill in a description of your system's C++ link characteristics
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12527 ld_shlibs_CXX=yes
12528 case $host_os in
12529 aix3*)
12530 # FIXME: insert proper C++ library support
12531 ld_shlibs_CXX=no
12533 aix[4-9]*)
12534 if test "$host_cpu" = ia64; then
12535 # On IA64, the linker does run time linking by default, so we don't
12536 # have to do anything special.
12537 aix_use_runtimelinking=no
12538 exp_sym_flag='-Bexport'
12539 no_entry_flag=""
12540 else
12541 aix_use_runtimelinking=no
12543 # Test if we are trying to use run time linking or normal
12544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12545 # need to do runtime linking.
12546 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12547 for ld_flag in $LDFLAGS; do
12548 case $ld_flag in
12549 *-brtl*)
12550 aix_use_runtimelinking=yes
12551 break
12553 esac
12554 done
12556 esac
12558 exp_sym_flag='-bexport'
12559 no_entry_flag='-bnoentry'
12562 # When large executables or shared objects are built, AIX ld can
12563 # have problems creating the table of contents. If linking a library
12564 # or program results in "error TOC overflow" add -mminimal-toc to
12565 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12566 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12568 archive_cmds_CXX=''
12569 hardcode_direct_CXX=yes
12570 hardcode_direct_absolute_CXX=yes
12571 hardcode_libdir_separator_CXX=':'
12572 link_all_deplibs_CXX=yes
12573 file_list_spec_CXX='${wl}-f,'
12575 if test "$GXX" = yes; then
12576 case $host_os in aix4.[012]|aix4.[012].*)
12577 # We only want to do this on AIX 4.2 and lower, the check
12578 # below for broken collect2 doesn't work under 4.3+
12579 collect2name=`${CC} -print-prog-name=collect2`
12580 if test -f "$collect2name" &&
12581 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12582 then
12583 # We have reworked collect2
12585 else
12586 # We have old collect2
12587 hardcode_direct_CXX=unsupported
12588 # It fails to find uninstalled libraries when the uninstalled
12589 # path is not listed in the libpath. Setting hardcode_minus_L
12590 # to unsupported forces relinking
12591 hardcode_minus_L_CXX=yes
12592 hardcode_libdir_flag_spec_CXX='-L$libdir'
12593 hardcode_libdir_separator_CXX=
12595 esac
12596 shared_flag='-shared'
12597 if test "$aix_use_runtimelinking" = yes; then
12598 shared_flag="$shared_flag "'${wl}-G'
12600 else
12601 # not using gcc
12602 if test "$host_cpu" = ia64; then
12603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12604 # chokes on -Wl,-G. The following line is correct:
12605 shared_flag='-G'
12606 else
12607 if test "$aix_use_runtimelinking" = yes; then
12608 shared_flag='${wl}-G'
12609 else
12610 shared_flag='${wl}-bM:SRE'
12615 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12616 # It seems that -bexpall does not export symbols beginning with
12617 # underscore (_), so it is better to generate a list of symbols to
12618 # export.
12619 always_export_symbols_CXX=yes
12620 if test "$aix_use_runtimelinking" = yes; then
12621 # Warning - without using the other runtime loading flags (-brtl),
12622 # -berok will link without error, but may produce a broken library.
12623 allow_undefined_flag_CXX='-berok'
12624 # Determine the default libpath from the value encoded in an empty
12625 # executable.
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12630 main ()
12634 return 0;
12636 _ACEOF
12637 if ac_fn_cxx_try_link "$LINENO"; then :
12639 lt_aix_libpath_sed='
12640 /Import File Strings/,/^$/ {
12641 /^0/ {
12642 s/^0 *\(.*\)$/\1/
12646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12647 # Check for a 64-bit object if we didn't find anything.
12648 if test -z "$aix_libpath"; then
12649 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12656 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12658 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"
12659 else
12660 if test "$host_cpu" = ia64; then
12661 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12662 allow_undefined_flag_CXX="-z nodefs"
12663 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"
12664 else
12665 # Determine the default libpath from the value encoded in an
12666 # empty executable.
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12671 main ()
12675 return 0;
12677 _ACEOF
12678 if ac_fn_cxx_try_link "$LINENO"; then :
12680 lt_aix_libpath_sed='
12681 /Import File Strings/,/^$/ {
12682 /^0/ {
12683 s/^0 *\(.*\)$/\1/
12687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12688 # Check for a 64-bit object if we didn't find anything.
12689 if test -z "$aix_libpath"; then
12690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12698 # Warning - without using the other run time loading flags,
12699 # -berok will link without error, but may produce a broken library.
12700 no_undefined_flag_CXX=' ${wl}-bernotok'
12701 allow_undefined_flag_CXX=' ${wl}-berok'
12702 if test "$with_gnu_ld" = yes; then
12703 # We only use this code for GNU lds that support --whole-archive.
12704 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12705 else
12706 # Exported symbols can be pulled into shared objects from archives
12707 whole_archive_flag_spec_CXX='$convenience'
12709 archive_cmds_need_lc_CXX=yes
12710 # This is similar to how AIX traditionally builds its shared
12711 # libraries.
12712 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'
12717 beos*)
12718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12719 allow_undefined_flag_CXX=unsupported
12720 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12721 # support --undefined. This deserves some investigation. FIXME
12722 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12723 else
12724 ld_shlibs_CXX=no
12728 chorus*)
12729 case $cc_basename in
12731 # FIXME: insert proper C++ library support
12732 ld_shlibs_CXX=no
12734 esac
12737 cygwin* | mingw* | pw32* | cegcc*)
12738 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12739 # as there is no search path for DLLs.
12740 hardcode_libdir_flag_spec_CXX='-L$libdir'
12741 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12742 allow_undefined_flag_CXX=unsupported
12743 always_export_symbols_CXX=no
12744 enable_shared_with_static_runtimes_CXX=yes
12746 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12747 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'
12748 # If the export-symbols file already is a .def file (1st line
12749 # is EXPORTS), use it as is; otherwise, prepend...
12750 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12751 cp $export_symbols $output_objdir/$soname.def;
12752 else
12753 echo EXPORTS > $output_objdir/$soname.def;
12754 cat $export_symbols >> $output_objdir/$soname.def;
12756 $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'
12757 else
12758 ld_shlibs_CXX=no
12761 darwin* | rhapsody*)
12764 archive_cmds_need_lc_CXX=no
12765 hardcode_direct_CXX=no
12766 hardcode_automatic_CXX=yes
12767 hardcode_shlibpath_var_CXX=unsupported
12768 if test "$lt_cv_ld_force_load" = "yes"; then
12769 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\"`'
12770 else
12771 whole_archive_flag_spec_CXX=''
12773 link_all_deplibs_CXX=yes
12774 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12775 case $cc_basename in
12776 ifort*) _lt_dar_can_shared=yes ;;
12777 *) _lt_dar_can_shared=$GCC ;;
12778 esac
12779 if test "$_lt_dar_can_shared" = "yes"; then
12780 output_verbose_link_cmd=func_echo_all
12781 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}"
12782 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12783 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}"
12784 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}"
12785 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12786 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}"
12787 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}"
12790 else
12791 ld_shlibs_CXX=no
12796 dgux*)
12797 case $cc_basename in
12798 ec++*)
12799 # FIXME: insert proper C++ library support
12800 ld_shlibs_CXX=no
12802 ghcx*)
12803 # Green Hills C++ Compiler
12804 # FIXME: insert proper C++ library support
12805 ld_shlibs_CXX=no
12808 # FIXME: insert proper C++ library support
12809 ld_shlibs_CXX=no
12811 esac
12814 freebsd2.*)
12815 # C++ shared libraries reported to be fairly broken before
12816 # switch to ELF
12817 ld_shlibs_CXX=no
12820 freebsd-elf*)
12821 archive_cmds_need_lc_CXX=no
12824 freebsd* | dragonfly*)
12825 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12826 # conventions
12827 ld_shlibs_CXX=yes
12830 gnu*)
12833 haiku*)
12834 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835 link_all_deplibs_CXX=yes
12838 hpux9*)
12839 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12840 hardcode_libdir_separator_CXX=:
12841 export_dynamic_flag_spec_CXX='${wl}-E'
12842 hardcode_direct_CXX=yes
12843 hardcode_minus_L_CXX=yes # Not in the search PATH,
12844 # but as the default
12845 # location of the library.
12847 case $cc_basename in
12848 CC*)
12849 # FIXME: insert proper C++ library support
12850 ld_shlibs_CXX=no
12852 aCC*)
12853 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'
12854 # Commands to make compiler produce verbose output that lists
12855 # what "hidden" libraries, object files and flags are used when
12856 # linking a shared library.
12858 # There doesn't appear to be a way to prevent this compiler from
12859 # explicitly linking system object files so we need to strip them
12860 # from the output so that they don't get included in the library
12861 # dependencies.
12862 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"'
12865 if test "$GXX" = yes; then
12866 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'
12867 else
12868 # FIXME: insert proper C++ library support
12869 ld_shlibs_CXX=no
12872 esac
12875 hpux10*|hpux11*)
12876 if test $with_gnu_ld = no; then
12877 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12878 hardcode_libdir_separator_CXX=:
12880 case $host_cpu in
12881 hppa*64*|ia64*)
12884 export_dynamic_flag_spec_CXX='${wl}-E'
12886 esac
12888 case $host_cpu in
12889 hppa*64*|ia64*)
12890 hardcode_direct_CXX=no
12891 hardcode_shlibpath_var_CXX=no
12894 hardcode_direct_CXX=yes
12895 hardcode_direct_absolute_CXX=yes
12896 hardcode_minus_L_CXX=yes # Not in the search PATH,
12897 # but as the default
12898 # location of the library.
12900 esac
12902 case $cc_basename in
12903 CC*)
12904 # FIXME: insert proper C++ library support
12905 ld_shlibs_CXX=no
12907 aCC*)
12908 case $host_cpu in
12909 hppa*64*)
12910 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12912 ia64*)
12913 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12918 esac
12919 # Commands to make compiler produce verbose output that lists
12920 # what "hidden" libraries, object files and flags are used when
12921 # linking a shared library.
12923 # There doesn't appear to be a way to prevent this compiler from
12924 # explicitly linking system object files so we need to strip them
12925 # from the output so that they don't get included in the library
12926 # dependencies.
12927 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"'
12930 if test "$GXX" = yes; then
12931 if test $with_gnu_ld = no; then
12932 case $host_cpu in
12933 hppa*64*)
12934 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12936 ia64*)
12937 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12940 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'
12942 esac
12944 else
12945 # FIXME: insert proper C++ library support
12946 ld_shlibs_CXX=no
12949 esac
12952 interix[3-9]*)
12953 hardcode_direct_CXX=no
12954 hardcode_shlibpath_var_CXX=no
12955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12956 export_dynamic_flag_spec_CXX='${wl}-E'
12957 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12958 # Instead, shared libraries are loaded at an image base (0x10000000 by
12959 # default) and relocated if they conflict, which is a slow very memory
12960 # consuming and fragmenting process. To avoid this, we pick a random,
12961 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12962 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12963 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'
12964 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'
12966 irix5* | irix6*)
12967 case $cc_basename in
12968 CC*)
12969 # SGI C++
12970 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'
12972 # Archives containing C++ object files must be created using
12973 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12974 # necessary to make sure instantiated templates are included
12975 # in the archive.
12976 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12979 if test "$GXX" = yes; then
12980 if test "$with_gnu_ld" = no; then
12981 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'
12982 else
12983 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'
12986 link_all_deplibs_CXX=yes
12988 esac
12989 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12990 hardcode_libdir_separator_CXX=:
12991 inherit_rpath_CXX=yes
12994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12995 case $cc_basename in
12996 KCC*)
12997 # Kuck and Associates, Inc. (KAI) C++ Compiler
12999 # KCC will only create a shared library if the output file
13000 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13001 # to its proper name (with version) after linking.
13002 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'
13003 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'
13004 # Commands to make compiler produce verbose output that lists
13005 # what "hidden" libraries, object files and flags are used when
13006 # linking a shared library.
13008 # There doesn't appear to be a way to prevent this compiler from
13009 # explicitly linking system object files so we need to strip them
13010 # from the output so that they don't get included in the library
13011 # dependencies.
13012 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"'
13014 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13015 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13017 # Archives containing C++ object files must be created using
13018 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13019 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13021 icpc* | ecpc* )
13022 # Intel C++
13023 with_gnu_ld=yes
13024 # version 8.0 and above of icpc choke on multiply defined symbols
13025 # if we add $predep_objects and $postdep_objects, however 7.1 and
13026 # earlier do not add the objects themselves.
13027 case `$CC -V 2>&1` in
13028 *"Version 7."*)
13029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13030 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'
13032 *) # Version 8.0 or newer
13033 tmp_idyn=
13034 case $host_cpu in
13035 ia64*) tmp_idyn=' -i_dynamic';;
13036 esac
13037 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038 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'
13040 esac
13041 archive_cmds_need_lc_CXX=no
13042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13043 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13044 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13046 pgCC* | pgcpp*)
13047 # Portland Group C++ compiler
13048 case `$CC -V` in
13049 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13050 prelink_cmds_CXX='tpldir=Template.dir~
13051 rm -rf $tpldir~
13052 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13053 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13054 old_archive_cmds_CXX='tpldir=Template.dir~
13055 rm -rf $tpldir~
13056 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13057 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13058 $RANLIB $oldlib'
13059 archive_cmds_CXX='tpldir=Template.dir~
13060 rm -rf $tpldir~
13061 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13062 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13063 archive_expsym_cmds_CXX='tpldir=Template.dir~
13064 rm -rf $tpldir~
13065 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13066 $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'
13068 *) # Version 6 and above use weak symbols
13069 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13070 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'
13072 esac
13074 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13076 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'
13078 cxx*)
13079 # Compaq C++
13080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081 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'
13083 runpath_var=LD_RUN_PATH
13084 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13085 hardcode_libdir_separator_CXX=:
13087 # Commands to make compiler produce verbose output that lists
13088 # what "hidden" libraries, object files and flags are used when
13089 # linking a shared library.
13091 # There doesn't appear to be a way to prevent this compiler from
13092 # explicitly linking system object files so we need to strip them
13093 # from the output so that they don't get included in the library
13094 # dependencies.
13095 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'
13097 xl* | mpixl* | bgxl*)
13098 # IBM XL 8.0 on PPC, with GNU ld
13099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13101 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102 if test "x$supports_anon_versioning" = xyes; then
13103 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13105 echo "local: *; };" >> $output_objdir/$libname.ver~
13106 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13110 case `$CC -V 2>&1 | sed 5q` in
13111 *Sun\ C*)
13112 # Sun C++ 5.9
13113 no_undefined_flag_CXX=' -zdefs'
13114 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13115 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'
13116 hardcode_libdir_flag_spec_CXX='-R$libdir'
13117 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'
13118 compiler_needs_object_CXX=yes
13120 # Not sure whether something based on
13121 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13122 # would be better.
13123 output_verbose_link_cmd='func_echo_all'
13125 # Archives containing C++ object files must be created using
13126 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13127 # necessary to make sure instantiated templates are included
13128 # in the archive.
13129 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13131 esac
13133 esac
13136 lynxos*)
13137 # FIXME: insert proper C++ library support
13138 ld_shlibs_CXX=no
13141 m88k*)
13142 # FIXME: insert proper C++ library support
13143 ld_shlibs_CXX=no
13146 mvs*)
13147 case $cc_basename in
13148 cxx*)
13149 # FIXME: insert proper C++ library support
13150 ld_shlibs_CXX=no
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13156 esac
13159 netbsd*)
13160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13161 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13162 wlarc=
13163 hardcode_libdir_flag_spec_CXX='-R$libdir'
13164 hardcode_direct_CXX=yes
13165 hardcode_shlibpath_var_CXX=no
13167 # Workaround some broken pre-1.5 toolchains
13168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13171 *nto* | *qnx*)
13172 ld_shlibs_CXX=yes
13175 openbsd2*)
13176 # C++ shared libraries are fairly broken
13177 ld_shlibs_CXX=no
13180 openbsd*)
13181 if test -f /usr/libexec/ld.so; then
13182 hardcode_direct_CXX=yes
13183 hardcode_shlibpath_var_CXX=no
13184 hardcode_direct_absolute_CXX=yes
13185 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13188 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13189 export_dynamic_flag_spec_CXX='${wl}-E'
13190 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13192 output_verbose_link_cmd=func_echo_all
13193 else
13194 ld_shlibs_CXX=no
13198 osf3* | osf4* | osf5*)
13199 case $cc_basename in
13200 KCC*)
13201 # Kuck and Associates, Inc. (KAI) C++ Compiler
13203 # KCC will only create a shared library if the output file
13204 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13205 # to its proper name (with version) after linking.
13206 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'
13208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209 hardcode_libdir_separator_CXX=:
13211 # Archives containing C++ object files must be created using
13212 # the KAI C++ compiler.
13213 case $host in
13214 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13215 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13216 esac
13218 RCC*)
13219 # Rational C++ 2.4.1
13220 # FIXME: insert proper C++ library support
13221 ld_shlibs_CXX=no
13223 cxx*)
13224 case $host in
13225 osf3*)
13226 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13227 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'
13228 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13231 allow_undefined_flag_CXX=' -expect_unresolved \*'
13232 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'
13233 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13234 echo "-hidden">> $lib.exp~
13235 $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~
13236 $RM $lib.exp'
13237 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13239 esac
13241 hardcode_libdir_separator_CXX=:
13243 # Commands to make compiler produce verbose output that lists
13244 # what "hidden" libraries, object files and flags are used when
13245 # linking a shared library.
13247 # There doesn't appear to be a way to prevent this compiler from
13248 # explicitly linking system object files so we need to strip them
13249 # from the output so that they don't get included in the library
13250 # dependencies.
13251 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"'
13254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13256 case $host in
13257 osf3*)
13258 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'
13261 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'
13263 esac
13265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13266 hardcode_libdir_separator_CXX=:
13268 # Commands to make compiler produce verbose output that lists
13269 # what "hidden" libraries, object files and flags are used when
13270 # linking a shared library.
13271 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13273 else
13274 # FIXME: insert proper C++ library support
13275 ld_shlibs_CXX=no
13278 esac
13281 psos*)
13282 # FIXME: insert proper C++ library support
13283 ld_shlibs_CXX=no
13286 sunos4*)
13287 case $cc_basename in
13288 CC*)
13289 # Sun C++ 4.x
13290 # FIXME: insert proper C++ library support
13291 ld_shlibs_CXX=no
13293 lcc*)
13294 # Lucid
13295 # FIXME: insert proper C++ library support
13296 ld_shlibs_CXX=no
13299 # FIXME: insert proper C++ library support
13300 ld_shlibs_CXX=no
13302 esac
13305 solaris*)
13306 case $cc_basename in
13307 CC*)
13308 # Sun C++ 4.2, 5.x and Centerline C++
13309 archive_cmds_need_lc_CXX=yes
13310 no_undefined_flag_CXX=' -zdefs'
13311 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13312 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13313 $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'
13315 hardcode_libdir_flag_spec_CXX='-R$libdir'
13316 hardcode_shlibpath_var_CXX=no
13317 case $host_os in
13318 solaris2.[0-5] | solaris2.[0-5].*) ;;
13320 # The compiler driver will combine and reorder linker options,
13321 # but understands `-z linker_flag'.
13322 # Supported since Solaris 2.6 (maybe 2.5.1?)
13323 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13325 esac
13326 link_all_deplibs_CXX=yes
13328 output_verbose_link_cmd='func_echo_all'
13330 # Archives containing C++ object files must be created using
13331 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13332 # necessary to make sure instantiated templates are included
13333 # in the archive.
13334 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13336 gcx*)
13337 # Green Hills C++ Compiler
13338 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13340 # The C++ compiler must be used to create the archive.
13341 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13344 # GNU C++ compiler with Solaris linker
13345 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13346 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13347 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13348 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13349 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13350 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13352 # Commands to make compiler produce verbose output that lists
13353 # what "hidden" libraries, object files and flags are used when
13354 # linking a shared library.
13355 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13356 else
13357 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13358 # platform.
13359 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13369 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13370 case $host_os in
13371 solaris2.[0-5] | solaris2.[0-5].*) ;;
13373 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13375 esac
13378 esac
13381 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13382 no_undefined_flag_CXX='${wl}-z,text'
13383 archive_cmds_need_lc_CXX=no
13384 hardcode_shlibpath_var_CXX=no
13385 runpath_var='LD_RUN_PATH'
13387 case $cc_basename in
13388 CC*)
13389 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13390 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13393 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13396 esac
13399 sysv5* | sco3.2v5* | sco5v6*)
13400 # Note: We can NOT use -z defs as we might desire, because we do not
13401 # link with -lc, and that would cause any symbols used from libc to
13402 # always be unresolved, which means just about no library would
13403 # ever link correctly. If we're not using GNU ld we use -z text
13404 # though, which does catch some bad symbols but isn't as heavy-handed
13405 # as -z defs.
13406 no_undefined_flag_CXX='${wl}-z,text'
13407 allow_undefined_flag_CXX='${wl}-z,nodefs'
13408 archive_cmds_need_lc_CXX=no
13409 hardcode_shlibpath_var_CXX=no
13410 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13411 hardcode_libdir_separator_CXX=':'
13412 link_all_deplibs_CXX=yes
13413 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13414 runpath_var='LD_RUN_PATH'
13416 case $cc_basename in
13417 CC*)
13418 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13419 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13421 '"$old_archive_cmds_CXX"
13422 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13423 '"$reload_cmds_CXX"
13426 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13427 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13429 esac
13432 tandem*)
13433 case $cc_basename in
13434 NCC*)
13435 # NonStop-UX NCC 3.20
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13443 esac
13446 vxworks*)
13447 # FIXME: insert proper C++ library support
13448 ld_shlibs_CXX=no
13452 # FIXME: insert proper C++ library support
13453 ld_shlibs_CXX=no
13455 esac
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13458 $as_echo "$ld_shlibs_CXX" >&6; }
13459 test "$ld_shlibs_CXX" = no && can_build_shared=no
13461 GCC_CXX="$GXX"
13462 LD_CXX="$LD"
13464 ## CAVEAT EMPTOR:
13465 ## There is no encapsulation within the following macros, do not change
13466 ## the running order or otherwise move them around unless you know exactly
13467 ## what you are doing...
13468 # Dependencies to place before and after the object being linked:
13469 predep_objects_CXX=
13470 postdep_objects_CXX=
13471 predeps_CXX=
13472 postdeps_CXX=
13473 compiler_lib_search_path_CXX=
13475 cat > conftest.$ac_ext <<_LT_EOF
13476 class Foo
13478 public:
13479 Foo (void) { a = 0; }
13480 private:
13481 int a;
13483 _LT_EOF
13485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13486 (eval $ac_compile) 2>&5
13487 ac_status=$?
13488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13489 test $ac_status = 0; }; then
13490 # Parse the compiler output and extract the necessary
13491 # objects, libraries and library flags.
13493 # Sentinel used to keep track of whether or not we are before
13494 # the conftest object file.
13495 pre_test_object_deps_done=no
13497 for p in `eval "$output_verbose_link_cmd"`; do
13498 case $p in
13500 -L* | -R* | -l*)
13501 # Some compilers place space between "-{L,R}" and the path.
13502 # Remove the space.
13503 if test $p = "-L" ||
13504 test $p = "-R"; then
13505 prev=$p
13506 continue
13507 else
13508 prev=
13511 if test "$pre_test_object_deps_done" = no; then
13512 case $p in
13513 -L* | -R*)
13514 # Internal compiler library paths should come after those
13515 # provided the user. The postdeps already come after the
13516 # user supplied libs so there is no need to process them.
13517 if test -z "$compiler_lib_search_path_CXX"; then
13518 compiler_lib_search_path_CXX="${prev}${p}"
13519 else
13520 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13523 # The "-l" case would never come before the object being
13524 # linked, so don't bother handling this case.
13525 esac
13526 else
13527 if test -z "$postdeps_CXX"; then
13528 postdeps_CXX="${prev}${p}"
13529 else
13530 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13535 *.$objext)
13536 # This assumes that the test object file only shows up
13537 # once in the compiler output.
13538 if test "$p" = "conftest.$objext"; then
13539 pre_test_object_deps_done=yes
13540 continue
13543 if test "$pre_test_object_deps_done" = no; then
13544 if test -z "$predep_objects_CXX"; then
13545 predep_objects_CXX="$p"
13546 else
13547 predep_objects_CXX="$predep_objects_CXX $p"
13549 else
13550 if test -z "$postdep_objects_CXX"; then
13551 postdep_objects_CXX="$p"
13552 else
13553 postdep_objects_CXX="$postdep_objects_CXX $p"
13558 *) ;; # Ignore the rest.
13560 esac
13561 done
13563 # Clean up.
13564 rm -f a.out a.exe
13565 else
13566 echo "libtool.m4: error: problem compiling CXX test program"
13569 $RM -f confest.$objext
13571 # PORTME: override above test on systems where it is broken
13572 case $host_os in
13573 interix[3-9]*)
13574 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13575 # hack all around it, let's just trust "g++" to DTRT.
13576 predep_objects_CXX=
13577 postdep_objects_CXX=
13578 postdeps_CXX=
13581 linux*)
13582 case `$CC -V 2>&1 | sed 5q` in
13583 *Sun\ C*)
13584 # Sun C++ 5.9
13586 # The more standards-conforming stlport4 library is
13587 # incompatible with the Cstd library. Avoid specifying
13588 # it if it's in CXXFLAGS. Ignore libCrun as
13589 # -library=stlport4 depends on it.
13590 case " $CXX $CXXFLAGS " in
13591 *" -library=stlport4 "*)
13592 solaris_use_stlport4=yes
13594 esac
13596 if test "$solaris_use_stlport4" != yes; then
13597 postdeps_CXX='-library=Cstd -library=Crun'
13600 esac
13603 solaris*)
13604 case $cc_basename in
13605 CC*)
13606 # The more standards-conforming stlport4 library is
13607 # incompatible with the Cstd library. Avoid specifying
13608 # it if it's in CXXFLAGS. Ignore libCrun as
13609 # -library=stlport4 depends on it.
13610 case " $CXX $CXXFLAGS " in
13611 *" -library=stlport4 "*)
13612 solaris_use_stlport4=yes
13614 esac
13616 # Adding this requires a known-good setup of shared libraries for
13617 # Sun compiler versions before 5.6, else PIC objects from an old
13618 # archive will be linked into the output, leading to subtle bugs.
13619 if test "$solaris_use_stlport4" != yes; then
13620 postdeps_CXX='-library=Cstd -library=Crun'
13623 esac
13625 esac
13628 case " $postdeps_CXX " in
13629 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13630 esac
13631 compiler_lib_search_dirs_CXX=
13632 if test -n "${compiler_lib_search_path_CXX}"; then
13633 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13666 lt_prog_compiler_wl_CXX=
13667 lt_prog_compiler_pic_CXX=
13668 lt_prog_compiler_static_CXX=
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13671 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13673 # C++ specific cases for pic, static, wl, etc.
13674 if test "$GXX" = yes; then
13675 lt_prog_compiler_wl_CXX='-Wl,'
13676 lt_prog_compiler_static_CXX='-static'
13678 case $host_os in
13679 aix*)
13680 # All AIX code is PIC.
13681 if test "$host_cpu" = ia64; then
13682 # AIX 5 now supports IA64 processor
13683 lt_prog_compiler_static_CXX='-Bstatic'
13685 lt_prog_compiler_pic_CXX='-fPIC'
13688 amigaos*)
13689 case $host_cpu in
13690 powerpc)
13691 # see comment about AmigaOS4 .so support
13692 lt_prog_compiler_pic_CXX='-fPIC'
13694 m68k)
13695 # FIXME: we need at least 68020 code to build shared libraries, but
13696 # adding the `-m68020' flag to GCC prevents building anything better,
13697 # like `-m68040'.
13698 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13700 esac
13703 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13704 # PIC is the default for these OSes.
13706 mingw* | cygwin* | os2* | pw32* | cegcc*)
13707 # This hack is so that the source file can tell whether it is being
13708 # built for inclusion in a dll (and should export symbols for example).
13709 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13710 # (--disable-auto-import) libraries
13711 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13713 darwin* | rhapsody*)
13714 # PIC is the default on this platform
13715 # Common symbols not allowed in MH_DYLIB files
13716 lt_prog_compiler_pic_CXX='-fno-common'
13718 *djgpp*)
13719 # DJGPP does not support shared libraries at all
13720 lt_prog_compiler_pic_CXX=
13722 haiku*)
13723 # PIC is the default for Haiku.
13724 # The "-static" flag exists, but is broken.
13725 lt_prog_compiler_static_CXX=
13727 interix[3-9]*)
13728 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13729 # Instead, we relocate shared libraries at runtime.
13731 sysv4*MP*)
13732 if test -d /usr/nec; then
13733 lt_prog_compiler_pic_CXX=-Kconform_pic
13736 hpux*)
13737 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13738 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13739 # sets the default TLS model and affects inlining.
13740 case $host_cpu in
13741 hppa*64*)
13744 lt_prog_compiler_pic_CXX='-fPIC'
13746 esac
13748 *qnx* | *nto*)
13749 # QNX uses GNU C++, but need to define -shared option too, otherwise
13750 # it will coredump.
13751 lt_prog_compiler_pic_CXX='-fPIC -shared'
13754 lt_prog_compiler_pic_CXX='-fPIC'
13756 esac
13757 else
13758 case $host_os in
13759 aix[4-9]*)
13760 # All AIX code is PIC.
13761 if test "$host_cpu" = ia64; then
13762 # AIX 5 now supports IA64 processor
13763 lt_prog_compiler_static_CXX='-Bstatic'
13764 else
13765 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13768 chorus*)
13769 case $cc_basename in
13770 cxch68*)
13771 # Green Hills C++ Compiler
13772 # _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"
13774 esac
13776 dgux*)
13777 case $cc_basename in
13778 ec++*)
13779 lt_prog_compiler_pic_CXX='-KPIC'
13781 ghcx*)
13782 # Green Hills C++ Compiler
13783 lt_prog_compiler_pic_CXX='-pic'
13787 esac
13789 freebsd* | dragonfly*)
13790 # FreeBSD uses GNU C++
13792 hpux9* | hpux10* | hpux11*)
13793 case $cc_basename in
13794 CC*)
13795 lt_prog_compiler_wl_CXX='-Wl,'
13796 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13797 if test "$host_cpu" != ia64; then
13798 lt_prog_compiler_pic_CXX='+Z'
13801 aCC*)
13802 lt_prog_compiler_wl_CXX='-Wl,'
13803 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13804 case $host_cpu in
13805 hppa*64*|ia64*)
13806 # +Z the default
13809 lt_prog_compiler_pic_CXX='+Z'
13811 esac
13815 esac
13817 interix*)
13818 # This is c89, which is MS Visual C++ (no shared libs)
13819 # Anyone wants to do a port?
13821 irix5* | irix6* | nonstopux*)
13822 case $cc_basename in
13823 CC*)
13824 lt_prog_compiler_wl_CXX='-Wl,'
13825 lt_prog_compiler_static_CXX='-non_shared'
13826 # CC pic flag -KPIC is the default.
13830 esac
13832 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13833 case $cc_basename in
13834 KCC*)
13835 # KAI C++ Compiler
13836 lt_prog_compiler_wl_CXX='--backend -Wl,'
13837 lt_prog_compiler_pic_CXX='-fPIC'
13839 ecpc* )
13840 # old Intel C++ for x86_64 which still supported -KPIC.
13841 lt_prog_compiler_wl_CXX='-Wl,'
13842 lt_prog_compiler_pic_CXX='-KPIC'
13843 lt_prog_compiler_static_CXX='-static'
13845 icpc* )
13846 # Intel C++, used to be incompatible with GCC.
13847 # ICC 10 doesn't accept -KPIC any more.
13848 lt_prog_compiler_wl_CXX='-Wl,'
13849 lt_prog_compiler_pic_CXX='-fPIC'
13850 lt_prog_compiler_static_CXX='-static'
13852 pgCC* | pgcpp*)
13853 # Portland Group C++ compiler
13854 lt_prog_compiler_wl_CXX='-Wl,'
13855 lt_prog_compiler_pic_CXX='-fpic'
13856 lt_prog_compiler_static_CXX='-Bstatic'
13858 cxx*)
13859 # Compaq C++
13860 # Make sure the PIC flag is empty. It appears that all Alpha
13861 # Linux and Compaq Tru64 Unix objects are PIC.
13862 lt_prog_compiler_pic_CXX=
13863 lt_prog_compiler_static_CXX='-non_shared'
13865 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13866 # IBM XL 8.0, 9.0 on PPC and BlueGene
13867 lt_prog_compiler_wl_CXX='-Wl,'
13868 lt_prog_compiler_pic_CXX='-qpic'
13869 lt_prog_compiler_static_CXX='-qstaticlink'
13872 case `$CC -V 2>&1 | sed 5q` in
13873 *Sun\ C*)
13874 # Sun C++ 5.9
13875 lt_prog_compiler_pic_CXX='-KPIC'
13876 lt_prog_compiler_static_CXX='-Bstatic'
13877 lt_prog_compiler_wl_CXX='-Qoption ld '
13879 esac
13881 esac
13883 lynxos*)
13885 m88k*)
13887 mvs*)
13888 case $cc_basename in
13889 cxx*)
13890 lt_prog_compiler_pic_CXX='-W c,exportall'
13894 esac
13896 netbsd*)
13898 *qnx* | *nto*)
13899 # QNX uses GNU C++, but need to define -shared option too, otherwise
13900 # it will coredump.
13901 lt_prog_compiler_pic_CXX='-fPIC -shared'
13903 osf3* | osf4* | osf5*)
13904 case $cc_basename in
13905 KCC*)
13906 lt_prog_compiler_wl_CXX='--backend -Wl,'
13908 RCC*)
13909 # Rational C++ 2.4.1
13910 lt_prog_compiler_pic_CXX='-pic'
13912 cxx*)
13913 # Digital/Compaq C++
13914 lt_prog_compiler_wl_CXX='-Wl,'
13915 # Make sure the PIC flag is empty. It appears that all Alpha
13916 # Linux and Compaq Tru64 Unix objects are PIC.
13917 lt_prog_compiler_pic_CXX=
13918 lt_prog_compiler_static_CXX='-non_shared'
13922 esac
13924 psos*)
13926 solaris*)
13927 case $cc_basename in
13928 CC*)
13929 # Sun C++ 4.2, 5.x and Centerline C++
13930 lt_prog_compiler_pic_CXX='-KPIC'
13931 lt_prog_compiler_static_CXX='-Bstatic'
13932 lt_prog_compiler_wl_CXX='-Qoption ld '
13934 gcx*)
13935 # Green Hills C++ Compiler
13936 lt_prog_compiler_pic_CXX='-PIC'
13940 esac
13942 sunos4*)
13943 case $cc_basename in
13944 CC*)
13945 # Sun C++ 4.x
13946 lt_prog_compiler_pic_CXX='-pic'
13947 lt_prog_compiler_static_CXX='-Bstatic'
13949 lcc*)
13950 # Lucid
13951 lt_prog_compiler_pic_CXX='-pic'
13955 esac
13957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13958 case $cc_basename in
13959 CC*)
13960 lt_prog_compiler_wl_CXX='-Wl,'
13961 lt_prog_compiler_pic_CXX='-KPIC'
13962 lt_prog_compiler_static_CXX='-Bstatic'
13964 esac
13966 tandem*)
13967 case $cc_basename in
13968 NCC*)
13969 # NonStop-UX NCC 3.20
13970 lt_prog_compiler_pic_CXX='-KPIC'
13974 esac
13976 vxworks*)
13979 lt_prog_compiler_can_build_shared_CXX=no
13981 esac
13984 case $host_os in
13985 # For platforms which do not support PIC, -DPIC is meaningless:
13986 *djgpp*)
13987 lt_prog_compiler_pic_CXX=
13990 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13992 esac
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13994 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13999 # Check to make sure the PIC flag actually works.
14001 if test -n "$lt_prog_compiler_pic_CXX"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14003 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14004 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 lt_cv_prog_compiler_pic_works_CXX=no
14008 ac_outfile=conftest.$ac_objext
14009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14010 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14011 # Insert the option either (1) after the last *FLAGS variable, or
14012 # (2) before a word containing "conftest.", or (3) at the end.
14013 # Note that $ac_compile itself does not contain backslashes and begins
14014 # with a dollar sign (not a hyphen), so the echo should work correctly.
14015 # The option is referenced via a variable to avoid confusing sed.
14016 lt_compile=`echo "$ac_compile" | $SED \
14017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14019 -e 's:$: $lt_compiler_flag:'`
14020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14021 (eval "$lt_compile" 2>conftest.err)
14022 ac_status=$?
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 if (exit $ac_status) && test -s "$ac_outfile"; then
14026 # The compiler can only warn and ignore the option if not recognized
14027 # So say no if there are warnings other than the usual output.
14028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14031 lt_cv_prog_compiler_pic_works_CXX=yes
14034 $RM conftest*
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14038 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14040 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14041 case $lt_prog_compiler_pic_CXX in
14042 "" | " "*) ;;
14043 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14044 esac
14045 else
14046 lt_prog_compiler_pic_CXX=
14047 lt_prog_compiler_can_build_shared_CXX=no
14055 # Check to make sure the static flag actually works.
14057 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14059 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14060 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 lt_cv_prog_compiler_static_works_CXX=no
14064 save_LDFLAGS="$LDFLAGS"
14065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14066 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14068 # The linker can only warn and ignore the option if not recognized
14069 # So say no if there are warnings
14070 if test -s conftest.err; then
14071 # Append any errors to the config.log.
14072 cat conftest.err 1>&5
14073 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14075 if diff conftest.exp conftest.er2 >/dev/null; then
14076 lt_cv_prog_compiler_static_works_CXX=yes
14078 else
14079 lt_cv_prog_compiler_static_works_CXX=yes
14082 $RM -r conftest*
14083 LDFLAGS="$save_LDFLAGS"
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14087 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14089 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14091 else
14092 lt_prog_compiler_static_CXX=
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14099 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14100 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 lt_cv_prog_compiler_c_o_CXX=no
14104 $RM -r conftest 2>/dev/null
14105 mkdir conftest
14106 cd conftest
14107 mkdir out
14108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14110 lt_compiler_flag="-o out/conftest2.$ac_objext"
14111 # Insert the option either (1) after the last *FLAGS variable, or
14112 # (2) before a word containing "conftest.", or (3) at the end.
14113 # Note that $ac_compile itself does not contain backslashes and begins
14114 # with a dollar sign (not a hyphen), so the echo should work correctly.
14115 lt_compile=`echo "$ac_compile" | $SED \
14116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14118 -e 's:$: $lt_compiler_flag:'`
14119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14120 (eval "$lt_compile" 2>out/conftest.err)
14121 ac_status=$?
14122 cat out/conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14125 then
14126 # The compiler can only warn and ignore the option if not recognized
14127 # So say no if there are warnings
14128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14131 lt_cv_prog_compiler_c_o_CXX=yes
14134 chmod u+w . 2>&5
14135 $RM conftest*
14136 # SGI C++ compiler will create directory out/ii_files/ for
14137 # template instantiation
14138 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14139 $RM out/* && rmdir out
14140 cd ..
14141 $RM -r conftest
14142 $RM conftest*
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14146 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14152 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 lt_cv_prog_compiler_c_o_CXX=no
14156 $RM -r conftest 2>/dev/null
14157 mkdir conftest
14158 cd conftest
14159 mkdir out
14160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14162 lt_compiler_flag="-o out/conftest2.$ac_objext"
14163 # Insert the option either (1) after the last *FLAGS variable, or
14164 # (2) before a word containing "conftest.", or (3) at the end.
14165 # Note that $ac_compile itself does not contain backslashes and begins
14166 # with a dollar sign (not a hyphen), so the echo should work correctly.
14167 lt_compile=`echo "$ac_compile" | $SED \
14168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14170 -e 's:$: $lt_compiler_flag:'`
14171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14172 (eval "$lt_compile" 2>out/conftest.err)
14173 ac_status=$?
14174 cat out/conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14177 then
14178 # The compiler can only warn and ignore the option if not recognized
14179 # So say no if there are warnings
14180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14183 lt_cv_prog_compiler_c_o_CXX=yes
14186 chmod u+w . 2>&5
14187 $RM conftest*
14188 # SGI C++ compiler will create directory out/ii_files/ for
14189 # template instantiation
14190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14191 $RM out/* && rmdir out
14192 cd ..
14193 $RM -r conftest
14194 $RM conftest*
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14198 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14203 hard_links="nottested"
14204 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14205 # do not overwrite the value of need_locks provided by the user
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14207 $as_echo_n "checking if we can lock with hard links... " >&6; }
14208 hard_links=yes
14209 $RM conftest*
14210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14211 touch conftest.a
14212 ln conftest.a conftest.b 2>&5 || hard_links=no
14213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14215 $as_echo "$hard_links" >&6; }
14216 if test "$hard_links" = no; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14218 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14219 need_locks=warn
14221 else
14222 need_locks=no
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14230 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14231 case $host_os in
14232 aix[4-9]*)
14233 # If we're using GNU nm, then we don't want the "-C" option.
14234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14235 # Also, AIX nm treats weak defined symbols like other global defined
14236 # symbols, whereas GNU nm marks them as "W".
14237 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14238 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'
14239 else
14240 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'
14243 pw32*)
14244 export_symbols_cmds_CXX="$ltdll_cmds"
14246 cygwin* | mingw* | cegcc*)
14247 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'
14250 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14252 esac
14253 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14256 $as_echo "$ld_shlibs_CXX" >&6; }
14257 test "$ld_shlibs_CXX" = no && can_build_shared=no
14259 with_gnu_ld_CXX=$with_gnu_ld
14267 # Do we need to explicitly link libc?
14269 case "x$archive_cmds_need_lc_CXX" in
14270 x|xyes)
14271 # Assume -lc should be added
14272 archive_cmds_need_lc_CXX=yes
14274 if test "$enable_shared" = yes && test "$GCC" = yes; then
14275 case $archive_cmds_CXX in
14276 *'~'*)
14277 # FIXME: we may have to deal with multi-command sequences.
14279 '$CC '*)
14280 # Test whether the compiler implicitly links with -lc since on some
14281 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14282 # to ld, don't add -lc before -lgcc.
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14284 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14285 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 $RM conftest*
14289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14292 (eval $ac_compile) 2>&5
14293 ac_status=$?
14294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14295 test $ac_status = 0; } 2>conftest.err; then
14296 soname=conftest
14297 lib=conftest
14298 libobjs=conftest.$ac_objext
14299 deplibs=
14300 wl=$lt_prog_compiler_wl_CXX
14301 pic_flag=$lt_prog_compiler_pic_CXX
14302 compiler_flags=-v
14303 linker_flags=-v
14304 verstring=
14305 output_objdir=.
14306 libname=conftest
14307 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14308 allow_undefined_flag_CXX=
14309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14310 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14311 ac_status=$?
14312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14313 test $ac_status = 0; }
14314 then
14315 lt_cv_archive_cmds_need_lc_CXX=no
14316 else
14317 lt_cv_archive_cmds_need_lc_CXX=yes
14319 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14320 else
14321 cat conftest.err 1>&5
14323 $RM conftest*
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14327 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14328 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14330 esac
14333 esac
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14401 library_names_spec=
14402 libname_spec='lib$name'
14403 soname_spec=
14404 shrext_cmds=".so"
14405 postinstall_cmds=
14406 postuninstall_cmds=
14407 finish_cmds=
14408 finish_eval=
14409 shlibpath_var=
14410 shlibpath_overrides_runpath=unknown
14411 version_type=none
14412 dynamic_linker="$host_os ld.so"
14413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14414 need_lib_prefix=unknown
14415 hardcode_into_libs=no
14417 # when you set need_version to no, make sure it does not cause -set_version
14418 # flags to be left without arguments
14419 need_version=unknown
14421 case $host_os in
14422 aix3*)
14423 version_type=linux
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14425 shlibpath_var=LIBPATH
14427 # AIX 3 has no versioning support, so we append a major version to the name.
14428 soname_spec='${libname}${release}${shared_ext}$major'
14431 aix[4-9]*)
14432 version_type=linux
14433 need_lib_prefix=no
14434 need_version=no
14435 hardcode_into_libs=yes
14436 if test "$host_cpu" = ia64; then
14437 # AIX 5 supports IA64
14438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 else
14441 # With GCC up to 2.95.x, collect2 would create an import file
14442 # for dependence libraries. The import file would start with
14443 # the line `#! .'. This would cause the generated library to
14444 # depend on `.', always an invalid library. This was fixed in
14445 # development snapshots of GCC prior to 3.0.
14446 case $host_os in
14447 aix4 | aix4.[01] | aix4.[01].*)
14448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14449 echo ' yes '
14450 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14452 else
14453 can_build_shared=no
14456 esac
14457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14458 # soname into executable. Probably we can add versioning support to
14459 # collect2, so additional links can be useful in future.
14460 if test "$aix_use_runtimelinking" = yes; then
14461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14462 # instead of lib<name>.a to let people know that these are not
14463 # typical AIX shared libraries.
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14465 else
14466 # We preserve .a as extension for shared libraries through AIX4.2
14467 # and later when we are not doing run time linking.
14468 library_names_spec='${libname}${release}.a $libname.a'
14469 soname_spec='${libname}${release}${shared_ext}$major'
14471 shlibpath_var=LIBPATH
14475 amigaos*)
14476 case $host_cpu in
14477 powerpc)
14478 # Since July 2007 AmigaOS4 officially supports .so libraries.
14479 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 m68k)
14483 library_names_spec='$libname.ixlibrary $libname.a'
14484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14485 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'
14487 esac
14490 beos*)
14491 library_names_spec='${libname}${shared_ext}'
14492 dynamic_linker="$host_os ld.so"
14493 shlibpath_var=LIBRARY_PATH
14496 bsdi[45]*)
14497 version_type=linux
14498 need_version=no
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14505 # the default ld.so.conf also contains /usr/contrib/lib and
14506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14507 # libtool to hard-code these into programs
14510 cygwin* | mingw* | pw32* | cegcc*)
14511 version_type=windows
14512 shrext_cmds=".dll"
14513 need_version=no
14514 need_lib_prefix=no
14516 case $GCC,$host_os in
14517 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14518 library_names_spec='$libname.dll.a'
14519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14520 postinstall_cmds='base_file=`basename \${file}`~
14521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14522 dldir=$destdir/`dirname \$dlpath`~
14523 test -d \$dldir || mkdir -p \$dldir~
14524 $install_prog $dir/$dlname \$dldir/$dlname~
14525 chmod a+x \$dldir/$dlname~
14526 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14527 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14530 dlpath=$dir/\$dldll~
14531 $RM \$dlpath'
14532 shlibpath_overrides_runpath=yes
14534 case $host_os in
14535 cygwin*)
14536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14540 mingw* | cegcc*)
14541 # MinGW DLLs use traditional 'lib' prefix
14542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14544 pw32*)
14545 # pw32 DLLs use 'pw' prefix rather than 'lib'
14546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14548 esac
14552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14554 esac
14555 dynamic_linker='Win32 ld.exe'
14556 # FIXME: first we should search . and the directory the executable is in
14557 shlibpath_var=PATH
14560 darwin* | rhapsody*)
14561 dynamic_linker="$host_os dyld"
14562 version_type=darwin
14563 need_lib_prefix=no
14564 need_version=no
14565 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14566 soname_spec='${libname}${release}${major}$shared_ext'
14567 shlibpath_overrides_runpath=yes
14568 shlibpath_var=DYLD_LIBRARY_PATH
14569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14574 dgux*)
14575 version_type=linux
14576 need_lib_prefix=no
14577 need_version=no
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LD_LIBRARY_PATH
14583 freebsd* | dragonfly*)
14584 # DragonFly does not have aout. When/if they implement a new
14585 # versioning mechanism, adjust this.
14586 if test -x /usr/bin/objformat; then
14587 objformat=`/usr/bin/objformat`
14588 else
14589 case $host_os in
14590 freebsd[23].*) objformat=aout ;;
14591 *) objformat=elf ;;
14592 esac
14594 version_type=freebsd-$objformat
14595 case $version_type in
14596 freebsd-elf*)
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14598 need_version=no
14599 need_lib_prefix=no
14601 freebsd-*)
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14603 need_version=yes
14605 esac
14606 shlibpath_var=LD_LIBRARY_PATH
14607 case $host_os in
14608 freebsd2.*)
14609 shlibpath_overrides_runpath=yes
14611 freebsd3.[01]* | freebsdelf3.[01]*)
14612 shlibpath_overrides_runpath=yes
14613 hardcode_into_libs=yes
14615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14617 shlibpath_overrides_runpath=no
14618 hardcode_into_libs=yes
14620 *) # from 4.6 on, and DragonFly
14621 shlibpath_overrides_runpath=yes
14622 hardcode_into_libs=yes
14624 esac
14627 gnu*)
14628 version_type=linux
14629 need_lib_prefix=no
14630 need_version=no
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 hardcode_into_libs=yes
14637 haiku*)
14638 version_type=linux
14639 need_lib_prefix=no
14640 need_version=no
14641 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14647 hardcode_into_libs=yes
14650 hpux9* | hpux10* | hpux11*)
14651 # Give a soname corresponding to the major version so that dld.sl refuses to
14652 # link against other versions.
14653 version_type=sunos
14654 need_lib_prefix=no
14655 need_version=no
14656 case $host_cpu in
14657 ia64*)
14658 shrext_cmds='.so'
14659 hardcode_into_libs=yes
14660 dynamic_linker="$host_os dld.so"
14661 shlibpath_var=LD_LIBRARY_PATH
14662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664 soname_spec='${libname}${release}${shared_ext}$major'
14665 if test "X$HPUX_IA64_MODE" = X32; then
14666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14667 else
14668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14672 hppa*64*)
14673 shrext_cmds='.sl'
14674 hardcode_into_libs=yes
14675 dynamic_linker="$host_os dld.sl"
14676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679 soname_spec='${libname}${release}${shared_ext}$major'
14680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14684 shrext_cmds='.sl'
14685 dynamic_linker="$host_os dld.sl"
14686 shlibpath_var=SHLIB_PATH
14687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14691 esac
14692 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14693 postinstall_cmds='chmod 555 $lib'
14694 # or fails outright, so override atomically:
14695 install_override_mode=555
14698 interix[3-9]*)
14699 version_type=linux
14700 need_lib_prefix=no
14701 need_version=no
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14705 shlibpath_var=LD_LIBRARY_PATH
14706 shlibpath_overrides_runpath=no
14707 hardcode_into_libs=yes
14710 irix5* | irix6* | nonstopux*)
14711 case $host_os in
14712 nonstopux*) version_type=nonstopux ;;
14714 if test "$lt_cv_prog_gnu_ld" = yes; then
14715 version_type=linux
14716 else
14717 version_type=irix
14718 fi ;;
14719 esac
14720 need_lib_prefix=no
14721 need_version=no
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14724 case $host_os in
14725 irix5* | nonstopux*)
14726 libsuff= shlibsuff=
14729 case $LD in # libtool.m4 will add one of these switches to LD
14730 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14731 libsuff= shlibsuff= libmagic=32-bit;;
14732 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14733 libsuff=32 shlibsuff=N32 libmagic=N32;;
14734 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14735 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14736 *) libsuff= shlibsuff= libmagic=never-match;;
14737 esac
14739 esac
14740 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14741 shlibpath_overrides_runpath=no
14742 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14743 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14744 hardcode_into_libs=yes
14747 # No shared lib support for Linux oldld, aout, or coff.
14748 linux*oldld* | linux*aout* | linux*coff*)
14749 dynamic_linker=no
14752 # This must be Linux ELF.
14753 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14754 version_type=linux
14755 need_lib_prefix=no
14756 need_version=no
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 shlibpath_overrides_runpath=no
14763 # Some binutils ld are patched to set DT_RUNPATH
14764 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14765 $as_echo_n "(cached) " >&6
14766 else
14767 lt_cv_shlibpath_overrides_runpath=no
14768 save_LDFLAGS=$LDFLAGS
14769 save_libdir=$libdir
14770 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14771 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14776 main ()
14780 return 0;
14782 _ACEOF
14783 if ac_fn_cxx_try_link "$LINENO"; then :
14784 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14785 lt_cv_shlibpath_overrides_runpath=yes
14788 rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790 LDFLAGS=$save_LDFLAGS
14791 libdir=$save_libdir
14795 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14797 # This implies no fast_install, which is unacceptable.
14798 # Some rework will be needed to allow for fast_install
14799 # before this can be enabled.
14800 hardcode_into_libs=yes
14802 # Append ld.so.conf contents to the search path
14803 if test -f /etc/ld.so.conf; then
14804 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' ' '`
14805 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14808 # We used to test for /lib/ld.so.1 and disable shared libraries on
14809 # powerpc, because MkLinux only supported shared libraries with the
14810 # GNU dynamic linker. Since this was broken with cross compilers,
14811 # most powerpc-linux boxes support dynamic linking these days and
14812 # people can always --disable-shared, the test was removed, and we
14813 # assume the GNU/Linux dynamic linker is in use.
14814 dynamic_linker='GNU/Linux ld.so'
14817 netbsd*)
14818 version_type=sunos
14819 need_lib_prefix=no
14820 need_version=no
14821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14824 dynamic_linker='NetBSD (a.out) ld.so'
14825 else
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 dynamic_linker='NetBSD ld.elf_so'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 hardcode_into_libs=yes
14835 newsos6)
14836 version_type=linux
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 shlibpath_overrides_runpath=yes
14842 *nto* | *qnx*)
14843 version_type=qnx
14844 need_lib_prefix=no
14845 need_version=no
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=no
14850 hardcode_into_libs=yes
14851 dynamic_linker='ldqnx.so'
14854 openbsd*)
14855 version_type=sunos
14856 sys_lib_dlsearch_path_spec="/usr/lib"
14857 need_lib_prefix=no
14858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14859 case $host_os in
14860 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14861 *) need_version=no ;;
14862 esac
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14867 case $host_os in
14868 openbsd2.[89] | openbsd2.[89].*)
14869 shlibpath_overrides_runpath=no
14872 shlibpath_overrides_runpath=yes
14874 esac
14875 else
14876 shlibpath_overrides_runpath=yes
14880 os2*)
14881 libname_spec='$name'
14882 shrext_cmds=".dll"
14883 need_lib_prefix=no
14884 library_names_spec='$libname${shared_ext} $libname.a'
14885 dynamic_linker='OS/2 ld.exe'
14886 shlibpath_var=LIBPATH
14889 osf3* | osf4* | osf5*)
14890 version_type=osf
14891 need_lib_prefix=no
14892 need_version=no
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14900 rdos*)
14901 dynamic_linker=no
14904 solaris*)
14905 version_type=linux
14906 need_lib_prefix=no
14907 need_version=no
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 soname_spec='${libname}${release}${shared_ext}$major'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes
14912 hardcode_into_libs=yes
14913 # ldd complains unless libraries are executable
14914 postinstall_cmds='chmod +x $lib'
14917 sunos4*)
14918 version_type=sunos
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14923 if test "$with_gnu_ld" = yes; then
14924 need_lib_prefix=no
14926 need_version=yes
14929 sysv4 | sysv4.3*)
14930 version_type=linux
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 case $host_vendor in
14935 sni)
14936 shlibpath_overrides_runpath=no
14937 need_lib_prefix=no
14938 runpath_var=LD_RUN_PATH
14940 siemens)
14941 need_lib_prefix=no
14943 motorola)
14944 need_lib_prefix=no
14945 need_version=no
14946 shlibpath_overrides_runpath=no
14947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14949 esac
14952 sysv4*MP*)
14953 if test -d /usr/nec ;then
14954 version_type=linux
14955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14956 soname_spec='$libname${shared_ext}.$major'
14957 shlibpath_var=LD_LIBRARY_PATH
14961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14962 version_type=freebsd-elf
14963 need_lib_prefix=no
14964 need_version=no
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14966 soname_spec='${libname}${release}${shared_ext}$major'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 shlibpath_overrides_runpath=yes
14969 hardcode_into_libs=yes
14970 if test "$with_gnu_ld" = yes; then
14971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14972 else
14973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14974 case $host_os in
14975 sco3.2v5*)
14976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14978 esac
14980 sys_lib_dlsearch_path_spec='/usr/lib'
14983 tpf*)
14984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14985 version_type=linux
14986 need_lib_prefix=no
14987 need_version=no
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 shlibpath_overrides_runpath=no
14991 hardcode_into_libs=yes
14994 uts4*)
14995 version_type=linux
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 shlibpath_var=LD_LIBRARY_PATH
15002 dynamic_linker=no
15004 esac
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15006 $as_echo "$dynamic_linker" >&6; }
15007 test "$dynamic_linker" = no && can_build_shared=no
15009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15010 if test "$GCC" = yes; then
15011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15014 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15015 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15017 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15018 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15059 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15060 hardcode_action_CXX=
15061 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15062 test -n "$runpath_var_CXX" ||
15063 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15065 # We can hardcode non-existent directories.
15066 if test "$hardcode_direct_CXX" != no &&
15067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15068 # have to relink, otherwise we might link with an installed library
15069 # when we should be linking with a yet-to-be-installed one
15070 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15071 test "$hardcode_minus_L_CXX" != no; then
15072 # Linking always hardcodes the temporary library directory.
15073 hardcode_action_CXX=relink
15074 else
15075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15076 hardcode_action_CXX=immediate
15078 else
15079 # We cannot hardcode anything, or else we can only hardcode existing
15080 # directories.
15081 hardcode_action_CXX=unsupported
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15084 $as_echo "$hardcode_action_CXX" >&6; }
15086 if test "$hardcode_action_CXX" = relink ||
15087 test "$inherit_rpath_CXX" = yes; then
15088 # Fast installation is not supported
15089 enable_fast_install=no
15090 elif test "$shlibpath_overrides_runpath" = yes ||
15091 test "$enable_shared" = no; then
15092 # Fast installation is not necessary
15093 enable_fast_install=needless
15102 fi # test -n "$compiler"
15104 CC=$lt_save_CC
15105 LDCXX=$LD
15106 LD=$lt_save_LD
15107 GCC=$lt_save_GCC
15108 with_gnu_ld=$lt_save_with_gnu_ld
15109 lt_cv_path_LDCXX=$lt_cv_path_LD
15110 lt_cv_path_LD=$lt_save_path_LD
15111 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15112 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15113 fi # test "$_lt_caught_CXX_error" != yes
15115 ac_ext=c
15116 ac_cpp='$CPP $CPPFLAGS'
15117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15133 ac_config_commands="$ac_config_commands libtool"
15138 # Only expand once:
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15146 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15147 # Check whether --enable-maintainer-mode was given.
15148 if test "${enable_maintainer_mode+set}" = set; then :
15149 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15150 else
15151 USE_MAINTAINER_MODE=no
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15155 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15156 if test $USE_MAINTAINER_MODE = yes; then
15157 MAINTAINER_MODE_TRUE=
15158 MAINTAINER_MODE_FALSE='#'
15159 else
15160 MAINTAINER_MODE_TRUE='#'
15161 MAINTAINER_MODE_FALSE=
15164 MAINT=$MAINTAINER_MODE_TRUE
15168 # For libtool versioning info, format is CURRENT:REVISION:AGE
15169 libtool_VERSION=1:0:0
15172 # Check header files.
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15174 $as_echo_n "checking for ANSI C header files... " >&6; }
15175 if test "${ac_cv_header_stdc+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <stdlib.h>
15181 #include <stdarg.h>
15182 #include <string.h>
15183 #include <float.h>
15186 main ()
15190 return 0;
15192 _ACEOF
15193 if ac_fn_c_try_compile "$LINENO"; then :
15194 ac_cv_header_stdc=yes
15195 else
15196 ac_cv_header_stdc=no
15198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 if test $ac_cv_header_stdc = yes; then
15201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 #include <string.h>
15206 _ACEOF
15207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15208 $EGREP "memchr" >/dev/null 2>&1; then :
15210 else
15211 ac_cv_header_stdc=no
15213 rm -f conftest*
15217 if test $ac_cv_header_stdc = yes; then
15218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221 #include <stdlib.h>
15223 _ACEOF
15224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15225 $EGREP "free" >/dev/null 2>&1; then :
15227 else
15228 ac_cv_header_stdc=no
15230 rm -f conftest*
15234 if test $ac_cv_header_stdc = yes; then
15235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15236 if test "$cross_compiling" = yes; then :
15238 else
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 #include <ctype.h>
15242 #include <stdlib.h>
15243 #if ((' ' & 0x0FF) == 0x020)
15244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15246 #else
15247 # define ISLOWER(c) \
15248 (('a' <= (c) && (c) <= 'i') \
15249 || ('j' <= (c) && (c) <= 'r') \
15250 || ('s' <= (c) && (c) <= 'z'))
15251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15252 #endif
15254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15256 main ()
15258 int i;
15259 for (i = 0; i < 256; i++)
15260 if (XOR (islower (i), ISLOWER (i))
15261 || toupper (i) != TOUPPER (i))
15262 return 2;
15263 return 0;
15265 _ACEOF
15266 if ac_fn_c_try_run "$LINENO"; then :
15268 else
15269 ac_cv_header_stdc=no
15271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15272 conftest.$ac_objext conftest.beam conftest.$ac_ext
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15278 $as_echo "$ac_cv_header_stdc" >&6; }
15279 if test $ac_cv_header_stdc = yes; then
15281 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15286 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15287 if test "${ac_cv_header_time+set}" = set; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <sys/types.h>
15293 #include <sys/time.h>
15294 #include <time.h>
15297 main ()
15299 if ((struct tm *) 0)
15300 return 0;
15302 return 0;
15304 _ACEOF
15305 if ac_fn_c_try_compile "$LINENO"; then :
15306 ac_cv_header_time=yes
15307 else
15308 ac_cv_header_time=no
15310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15313 $as_echo "$ac_cv_header_time" >&6; }
15314 if test $ac_cv_header_time = yes; then
15316 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15321 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15322 if test "${gcc_cv_header_string+set}" = set; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15327 #include <string.h>
15328 #include <strings.h>
15330 main ()
15334 return 0;
15336 _ACEOF
15337 if ac_fn_c_try_compile "$LINENO"; then :
15338 gcc_cv_header_string=yes
15339 else
15340 gcc_cv_header_string=no
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15345 $as_echo "$gcc_cv_header_string" >&6; }
15346 if test $gcc_cv_header_string = yes; then
15348 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15352 for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15353 do :
15354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15355 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15356 eval as_val=\$$as_ac_Header
15357 if test "x$as_val" = x""yes; then :
15358 cat >>confdefs.h <<_ACEOF
15359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360 _ACEOF
15364 done
15369 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15371 acx_cv_header_stdint=stddef.h
15372 acx_cv_header_stdint_kind="(already complete)"
15373 for i in stdint.h $inttype_headers; do
15374 unset ac_cv_type_uintptr_t
15375 unset ac_cv_type_uintmax_t
15376 unset ac_cv_type_int_least32_t
15377 unset ac_cv_type_int_fast32_t
15378 unset ac_cv_type_uint64_t
15379 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15380 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15381 #include <$i>
15383 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15384 acx_cv_header_stdint=$i
15385 else
15386 continue
15389 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15390 #include <$i>
15392 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15394 else
15395 acx_cv_header_stdint_kind="(mostly complete)"
15398 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15399 #include <$i>
15401 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15403 else
15404 acx_cv_header_stdint_kind="(mostly complete)"
15407 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15408 #include <$i>
15410 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15412 else
15413 acx_cv_header_stdint_kind="(mostly complete)"
15416 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15417 #include <$i>
15419 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15421 else
15422 acx_cv_header_stdint_kind="(lacks uint64_t)"
15425 break
15426 done
15427 if test "$acx_cv_header_stdint" = stddef.h; then
15428 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15429 for i in stdint.h $inttype_headers; do
15430 unset ac_cv_type_uintptr_t
15431 unset ac_cv_type_uint32_t
15432 unset ac_cv_type_uint64_t
15433 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15434 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15435 #include <$i>
15437 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15438 acx_cv_header_stdint=$i
15439 else
15440 continue
15443 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15444 #include <$i>
15446 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15450 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15451 #include <$i>
15453 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15457 break
15458 done
15460 if test "$acx_cv_header_stdint" = stddef.h; then
15461 acx_cv_header_stdint_kind="(u_intXX_t style)"
15462 for i in sys/types.h $inttype_headers; do
15463 unset ac_cv_type_u_int32_t
15464 unset ac_cv_type_u_int64_t
15465 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15466 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15467 #include <$i>
15469 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15470 acx_cv_header_stdint=$i
15471 else
15472 continue
15475 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15476 #include <$i>
15478 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15482 break
15483 done
15485 if test "$acx_cv_header_stdint" = stddef.h; then
15486 acx_cv_header_stdint_kind="(using manual detection)"
15489 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15490 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15491 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15492 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15493 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15495 # ----------------- Summarize what we found so far
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15498 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15500 case `$as_basename -- gstdint.h ||
15501 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15502 Xgstdint.h : 'X\(//\)$' \| \
15503 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15504 $as_echo X/gstdint.h |
15505 sed '/^.*\/\([^/][^/]*\)\/*$/{
15506 s//\1/
15509 /^X\/\(\/\/\)$/{
15510 s//\1/
15513 /^X\/\(\/\).*/{
15514 s//\1/
15517 s/.*/./; q'` in
15518 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15519 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15520 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15521 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15522 *) ;;
15523 esac
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15526 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15528 # ----------------- done included file, check C basic types --------
15530 # Lacking an uintptr_t? Test size of void *
15531 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15532 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15535 # This bug is HP SR number 8606223364.
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15537 $as_echo_n "checking size of void *... " >&6; }
15538 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15543 else
15544 if test "$ac_cv_type_void_p" = yes; then
15545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15547 { as_fn_set_status 77
15548 as_fn_error "cannot compute sizeof (void *)
15549 See \`config.log' for more details." "$LINENO" 5; }; }
15550 else
15551 ac_cv_sizeof_void_p=0
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15557 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15561 cat >>confdefs.h <<_ACEOF
15562 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15563 _ACEOF
15566 esac
15568 # Lacking an uint64_t? Test size of long
15569 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15570 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15573 # This bug is HP SR number 8606223364.
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15575 $as_echo_n "checking size of long... " >&6; }
15576 if test "${ac_cv_sizeof_long+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
15578 else
15579 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15581 else
15582 if test "$ac_cv_type_long" = yes; then
15583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15585 { as_fn_set_status 77
15586 as_fn_error "cannot compute sizeof (long)
15587 See \`config.log' for more details." "$LINENO" 5; }; }
15588 else
15589 ac_cv_sizeof_long=0
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15595 $as_echo "$ac_cv_sizeof_long" >&6; }
15599 cat >>confdefs.h <<_ACEOF
15600 #define SIZEOF_LONG $ac_cv_sizeof_long
15601 _ACEOF
15604 esac
15606 if test $acx_cv_header_stdint = stddef.h; then
15607 # Lacking a good header? Test size of everything and deduce all types.
15608 # The cast to long int works around a bug in the HP C Compiler
15609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15611 # This bug is HP SR number 8606223364.
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15613 $as_echo_n "checking size of int... " >&6; }
15614 if test "${ac_cv_sizeof_int+set}" = set; then :
15615 $as_echo_n "(cached) " >&6
15616 else
15617 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15619 else
15620 if test "$ac_cv_type_int" = yes; then
15621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15623 { as_fn_set_status 77
15624 as_fn_error "cannot compute sizeof (int)
15625 See \`config.log' for more details." "$LINENO" 5; }; }
15626 else
15627 ac_cv_sizeof_int=0
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15633 $as_echo "$ac_cv_sizeof_int" >&6; }
15637 cat >>confdefs.h <<_ACEOF
15638 #define SIZEOF_INT $ac_cv_sizeof_int
15639 _ACEOF
15642 # The cast to long int works around a bug in the HP C Compiler
15643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15645 # This bug is HP SR number 8606223364.
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15647 $as_echo_n "checking size of short... " >&6; }
15648 if test "${ac_cv_sizeof_short+set}" = set; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15653 else
15654 if test "$ac_cv_type_short" = yes; then
15655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15657 { as_fn_set_status 77
15658 as_fn_error "cannot compute sizeof (short)
15659 See \`config.log' for more details." "$LINENO" 5; }; }
15660 else
15661 ac_cv_sizeof_short=0
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15667 $as_echo "$ac_cv_sizeof_short" >&6; }
15671 cat >>confdefs.h <<_ACEOF
15672 #define SIZEOF_SHORT $ac_cv_sizeof_short
15673 _ACEOF
15676 # The cast to long int works around a bug in the HP C Compiler
15677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15679 # This bug is HP SR number 8606223364.
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15681 $as_echo_n "checking size of char... " >&6; }
15682 if test "${ac_cv_sizeof_char+set}" = set; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15687 else
15688 if test "$ac_cv_type_char" = yes; then
15689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15691 { as_fn_set_status 77
15692 as_fn_error "cannot compute sizeof (char)
15693 See \`config.log' for more details." "$LINENO" 5; }; }
15694 else
15695 ac_cv_sizeof_char=0
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15701 $as_echo "$ac_cv_sizeof_char" >&6; }
15705 cat >>confdefs.h <<_ACEOF
15706 #define SIZEOF_CHAR $ac_cv_sizeof_char
15707 _ACEOF
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15712 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15713 case "$ac_cv_sizeof_char" in
15714 1) acx_cv_type_int8_t=char ;;
15715 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15716 esac
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15718 $as_echo "$acx_cv_type_int8_t" >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15721 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15722 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15723 2:*) acx_cv_type_int16_t=int ;;
15724 *:2) acx_cv_type_int16_t=short ;;
15725 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15726 esac
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15728 $as_echo "$acx_cv_type_int16_t" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15731 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15732 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15733 4:*) acx_cv_type_int32_t=int ;;
15734 *:4) acx_cv_type_int32_t=long ;;
15735 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15736 esac
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15738 $as_echo "$acx_cv_type_int32_t" >&6; }
15741 # These tests are here to make the output prettier
15743 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15744 case "$ac_cv_sizeof_long" in
15745 8) acx_cv_type_int64_t=long ;;
15746 esac
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15748 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15750 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15753 # Now we can use the above types
15755 if test "$ac_cv_type_uintptr_t" != yes; then
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15757 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15758 case $ac_cv_sizeof_void_p in
15759 2) acx_cv_type_intptr_t=int16_t ;;
15760 4) acx_cv_type_intptr_t=int32_t ;;
15761 8) acx_cv_type_intptr_t=int64_t ;;
15762 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15763 esac
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15765 $as_echo "$acx_cv_type_intptr_t" >&6; }
15768 # ----------------- done all checks, emit header -------------
15769 ac_config_commands="$ac_config_commands gstdint.h"
15775 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15776 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15777 gcc_header_sys_mman_h=yes
15778 else
15779 gcc_header_sys_mman_h=no
15783 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15784 if test "x$ac_cv_func_mmap" = x""yes; then :
15785 gcc_func_mmap=yes
15786 else
15787 gcc_func_mmap=no
15790 if test "$gcc_header_sys_mman_h" != yes \
15791 || test "$gcc_func_mmap" != yes; then
15792 gcc_cv_func_mmap_file=no
15793 gcc_cv_func_mmap_dev_zero=no
15794 gcc_cv_func_mmap_anon=no
15795 else
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15797 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15798 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15799 $as_echo_n "(cached) " >&6
15800 else
15801 # Add a system to this blacklist if
15802 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15803 # memory area containing the same data that you'd get if you applied
15804 # read() to the same fd. The only system known to have a problem here
15805 # is VMS, where text files have record structure.
15806 case "$host_os" in
15807 *vms* | ultrix*)
15808 gcc_cv_func_mmap_file=no ;;
15810 gcc_cv_func_mmap_file=yes;;
15811 esac
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15814 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15816 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15817 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15820 # Add a system to this blacklist if it has mmap() but /dev/zero
15821 # does not exist, or if mmapping /dev/zero does not give anonymous
15822 # zeroed pages with both the following properties:
15823 # 1. If you map N consecutive pages in with one call, and then
15824 # unmap any subset of those pages, the pages that were not
15825 # explicitly unmapped remain accessible.
15826 # 2. If you map two adjacent blocks of memory and then unmap them
15827 # both at once, they must both go away.
15828 # Systems known to be in this category are Windows (all variants),
15829 # VMS, and Darwin.
15830 case "$host_os" in
15831 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15832 gcc_cv_func_mmap_dev_zero=no ;;
15834 gcc_cv_func_mmap_dev_zero=yes;;
15835 esac
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15838 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15840 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15842 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15843 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15848 #include <sys/types.h>
15849 #include <sys/mman.h>
15850 #include <unistd.h>
15852 #ifndef MAP_ANONYMOUS
15853 #define MAP_ANONYMOUS MAP_ANON
15854 #endif
15857 main ()
15859 int n = MAP_ANONYMOUS;
15861 return 0;
15863 _ACEOF
15864 if ac_fn_c_try_compile "$LINENO"; then :
15865 gcc_cv_decl_map_anon=yes
15866 else
15867 gcc_cv_decl_map_anon=no
15869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15872 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15874 if test $gcc_cv_decl_map_anon = no; then
15875 gcc_cv_func_mmap_anon=no
15876 else
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15878 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15879 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15880 $as_echo_n "(cached) " >&6
15881 else
15882 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15883 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15884 # doesn't give anonymous zeroed pages with the same properties listed
15885 # above for use of /dev/zero.
15886 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15887 case "$host_os" in
15888 *vms* | cygwin* | pe | mingw* | sco* | udk* )
15889 gcc_cv_func_mmap_anon=no ;;
15891 gcc_cv_func_mmap_anon=yes;;
15892 esac
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15895 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15899 if test $gcc_cv_func_mmap_file = yes; then
15901 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15904 if test $gcc_cv_func_mmap_dev_zero = yes; then
15906 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15909 if test $gcc_cv_func_mmap_anon = yes; then
15911 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15917 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15918 if test "${ac_cv_c_bigendian+set}" = set; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 ac_cv_c_bigendian=unknown
15922 # See if we're dealing with a universal compiler.
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925 #ifndef __APPLE_CC__
15926 not a universal capable compiler
15927 #endif
15928 typedef int dummy;
15930 _ACEOF
15931 if ac_fn_c_try_compile "$LINENO"; then :
15933 # Check for potential -arch flags. It is not universal unless
15934 # there are at least two -arch flags with different values.
15935 ac_arch=
15936 ac_prev=
15937 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15938 if test -n "$ac_prev"; then
15939 case $ac_word in
15940 i?86 | x86_64 | ppc | ppc64)
15941 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15942 ac_arch=$ac_word
15943 else
15944 ac_cv_c_bigendian=universal
15945 break
15948 esac
15949 ac_prev=
15950 elif test "x$ac_word" = "x-arch"; then
15951 ac_prev=arch
15953 done
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 if test $ac_cv_c_bigendian = unknown; then
15957 # See if sys/param.h defines the BYTE_ORDER macro.
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 #include <sys/types.h>
15961 #include <sys/param.h>
15964 main ()
15966 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15967 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15968 && LITTLE_ENDIAN)
15969 bogus endian macros
15970 #endif
15973 return 0;
15975 _ACEOF
15976 if ac_fn_c_try_compile "$LINENO"; then :
15977 # It does; now see whether it defined to BIG_ENDIAN or not.
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h. */
15980 #include <sys/types.h>
15981 #include <sys/param.h>
15984 main ()
15986 #if BYTE_ORDER != BIG_ENDIAN
15987 not big endian
15988 #endif
15991 return 0;
15993 _ACEOF
15994 if ac_fn_c_try_compile "$LINENO"; then :
15995 ac_cv_c_bigendian=yes
15996 else
15997 ac_cv_c_bigendian=no
15999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16003 if test $ac_cv_c_bigendian = unknown; then
16004 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <limits.h>
16010 main ()
16012 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16013 bogus endian macros
16014 #endif
16017 return 0;
16019 _ACEOF
16020 if ac_fn_c_try_compile "$LINENO"; then :
16021 # It does; now see whether it defined to _BIG_ENDIAN or not.
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024 #include <limits.h>
16027 main ()
16029 #ifndef _BIG_ENDIAN
16030 not big endian
16031 #endif
16034 return 0;
16036 _ACEOF
16037 if ac_fn_c_try_compile "$LINENO"; then :
16038 ac_cv_c_bigendian=yes
16039 else
16040 ac_cv_c_bigendian=no
16042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046 if test $ac_cv_c_bigendian = unknown; then
16047 # Compile a test program.
16048 if test "$cross_compiling" = yes; then :
16049 # Try to guess by grepping values from an object file.
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16052 short int ascii_mm[] =
16053 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16054 short int ascii_ii[] =
16055 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16056 int use_ascii (int i) {
16057 return ascii_mm[i] + ascii_ii[i];
16059 short int ebcdic_ii[] =
16060 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16061 short int ebcdic_mm[] =
16062 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16063 int use_ebcdic (int i) {
16064 return ebcdic_mm[i] + ebcdic_ii[i];
16066 extern int foo;
16069 main ()
16071 return use_ascii (foo) == use_ebcdic (foo);
16073 return 0;
16075 _ACEOF
16076 if ac_fn_c_try_compile "$LINENO"; then :
16077 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16078 ac_cv_c_bigendian=yes
16080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16081 if test "$ac_cv_c_bigendian" = unknown; then
16082 ac_cv_c_bigendian=no
16083 else
16084 # finding both strings is unlikely to happen, but who knows?
16085 ac_cv_c_bigendian=unknown
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 else
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 $ac_includes_default
16095 main ()
16098 /* Are we little or big endian? From Harbison&Steele. */
16099 union
16101 long int l;
16102 char c[sizeof (long int)];
16103 } u;
16104 u.l = 1;
16105 return u.c[sizeof (long int) - 1] == 1;
16108 return 0;
16110 _ACEOF
16111 if ac_fn_c_try_run "$LINENO"; then :
16112 ac_cv_c_bigendian=no
16113 else
16114 ac_cv_c_bigendian=yes
16116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16117 conftest.$ac_objext conftest.beam conftest.$ac_ext
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16123 $as_echo "$ac_cv_c_bigendian" >&6; }
16124 case $ac_cv_c_bigendian in #(
16125 yes)
16126 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16127 ;; #(
16129 ;; #(
16130 universal)
16132 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16134 ;; #(
16136 as_fn_error "unknown endianness
16137 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16138 esac
16140 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16143 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16144 # In case the pthread.h system header is not found, this test will fail.
16145 XPCFLAGS=""
16146 CFLAGS="$CFLAGS -pthread"
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16149 #include <pthread.h>
16150 void *g(void *d) { return NULL; }
16152 main ()
16154 pthread_t t; pthread_create(&t,NULL,g,NULL);
16156 return 0;
16158 _ACEOF
16159 if ac_fn_c_try_link "$LINENO"; then :
16160 XPCFLAGS=" -Wc,-pthread"
16161 else
16162 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 #include <pthread.h>
16166 void *g(void *d) { return NULL; }
16168 main ()
16170 pthread_t t; pthread_create(&t,NULL,g,NULL);
16172 return 0;
16174 _ACEOF
16175 if ac_fn_c_try_link "$LINENO"; then :
16177 else
16178 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16180 rm -f core conftest.err conftest.$ac_objext \
16181 conftest$ac_exeext conftest.$ac_ext
16183 rm -f core conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16186 # Check for functions needed.
16187 for ac_func in strtoull memalign posix_memalign
16188 do :
16189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16191 eval as_val=\$$as_ac_var
16192 if test "x$as_val" = x""yes; then :
16193 cat >>confdefs.h <<_ACEOF
16194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16195 _ACEOF
16198 done
16201 # Check for broken semaphore implementation on darwin.
16202 # sem_init returns: sem_init error: Function not implemented.
16203 case "$host" in
16204 *-darwin*)
16206 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16209 esac
16211 # Check whether --enable-linux-futex was given.
16212 if test "${enable_linux_futex+set}" = set; then :
16213 enableval=$enable_linux_futex;
16214 case "$enableval" in
16215 yes|no|default) ;;
16216 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16217 esac
16219 else
16220 enable_linux_futex=default
16224 case "$target" in
16225 *-linux*)
16226 case "$enable_linux_futex" in
16227 default)
16228 # If headers don't have gettid/futex syscalls definition, then
16229 # default to no, otherwise there will be compile time failures.
16230 # Otherwise, default to yes. If we don't detect we are
16231 # compiled/linked against NPTL and not cross-compiling, check
16232 # if programs are run by default against NPTL and if not, issue
16233 # a warning.
16234 enable_linux_futex=no
16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236 /* end confdefs.h. */
16237 #include <sys/syscall.h>
16238 int lk;
16240 main ()
16242 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16244 return 0;
16246 _ACEOF
16247 if ac_fn_c_try_link "$LINENO"; then :
16248 save_LIBS="$LIBS"
16249 LIBS="-lpthread $LIBS"
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 #ifndef _GNU_SOURCE
16253 #define _GNU_SOURCE 1
16254 #endif
16255 #include <pthread.h>
16256 pthread_t th; void *status;
16258 main ()
16260 pthread_tryjoin_np (th, &status);
16262 return 0;
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"; then :
16266 enable_linux_futex=yes
16267 else
16268 if test x$cross_compiling = xno; then
16269 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16270 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16272 If so, please configure with --disable-linux-futex" >&5
16273 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16274 If so, please configure with --disable-linux-futex" >&2;}
16277 enable_linux_futex=yes
16279 rm -f core conftest.err conftest.$ac_objext \
16280 conftest$ac_exeext conftest.$ac_ext
16281 LIBS="$save_LIBS"
16283 rm -f core conftest.err conftest.$ac_objext \
16284 conftest$ac_exeext conftest.$ac_ext
16286 yes)
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 #include <sys/syscall.h>
16290 int lk;
16292 main ()
16294 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16296 return 0;
16298 _ACEOF
16299 if ac_fn_c_try_link "$LINENO"; then :
16301 else
16302 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16304 rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16307 esac
16310 enable_linux_futex=no
16312 esac
16313 if test x$enable_linux_futex = xyes; then
16318 # See if we support thread-local storage.
16321 # Check whether --enable-tls was given.
16322 if test "${enable_tls+set}" = set; then :
16323 enableval=$enable_tls;
16324 case "$enableval" in
16325 yes|no) ;;
16326 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16327 esac
16329 else
16330 enable_tls=yes
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16335 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16336 if test "${gcc_cv_have_tls+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16340 if test "$cross_compiling" = yes; then :
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16343 __thread int a; int b; int main() { return a = b; }
16344 _ACEOF
16345 if ac_fn_c_try_link "$LINENO"; then :
16346 chktls_save_LDFLAGS="$LDFLAGS"
16347 case $host in
16348 *-*-linux*)
16349 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16351 esac
16352 chktls_save_CFLAGS="$CFLAGS"
16353 CFLAGS="-fPIC $CFLAGS"
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 int f() { return 0; }
16357 _ACEOF
16358 if ac_fn_c_try_link "$LINENO"; then :
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 __thread int a; int b; int f() { return a = b; }
16362 _ACEOF
16363 if ac_fn_c_try_link "$LINENO"; then :
16364 gcc_cv_have_tls=yes
16365 else
16366 gcc_cv_have_tls=no
16368 rm -f core conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
16370 else
16371 gcc_cv_have_tls=yes
16373 rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 CFLAGS="$chktls_save_CFLAGS"
16376 LDFLAGS="$chktls_save_LDFLAGS"
16377 else
16378 gcc_cv_have_tls=no
16380 rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16384 else
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 __thread int a; int b; int main() { return a = b; }
16388 _ACEOF
16389 if ac_fn_c_try_run "$LINENO"; then :
16390 chktls_save_LDFLAGS="$LDFLAGS"
16391 LDFLAGS="-static $LDFLAGS"
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16394 int main() { return 0; }
16395 _ACEOF
16396 if ac_fn_c_try_link "$LINENO"; then :
16397 if test "$cross_compiling" = yes; then :
16398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16400 as_fn_error "cannot run test program while cross compiling
16401 See \`config.log' for more details." "$LINENO" 5; }
16402 else
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 __thread int a; int b; int main() { return a = b; }
16406 _ACEOF
16407 if ac_fn_c_try_run "$LINENO"; then :
16408 gcc_cv_have_tls=yes
16409 else
16410 gcc_cv_have_tls=no
16412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16413 conftest.$ac_objext conftest.beam conftest.$ac_ext
16416 else
16417 gcc_cv_have_tls=yes
16419 rm -f core conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
16421 LDFLAGS="$chktls_save_LDFLAGS"
16422 if test $gcc_cv_have_tls = yes; then
16423 chktls_save_CFLAGS="$CFLAGS"
16424 thread_CFLAGS=failed
16425 for flag in '' '-pthread' '-lpthread'; do
16426 CFLAGS="$flag $chktls_save_CFLAGS"
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 #include <pthread.h>
16430 void *g(void *d) { return NULL; }
16432 main ()
16434 pthread_t t; pthread_create(&t,NULL,g,NULL);
16436 return 0;
16438 _ACEOF
16439 if ac_fn_c_try_link "$LINENO"; then :
16440 thread_CFLAGS="$flag"
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 if test "X$thread_CFLAGS" != Xfailed; then
16445 break
16447 done
16448 CFLAGS="$chktls_save_CFLAGS"
16449 if test "X$thread_CFLAGS" != Xfailed; then
16450 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16451 if test "$cross_compiling" = yes; then :
16452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16454 as_fn_error "cannot run test program while cross compiling
16455 See \`config.log' for more details." "$LINENO" 5; }
16456 else
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16459 #include <pthread.h>
16460 __thread int a;
16461 static int *volatile a_in_other_thread;
16462 static void *
16463 thread_func (void *arg)
16465 a_in_other_thread = &a;
16466 return (void *)0;
16469 main ()
16471 pthread_t thread;
16472 void *thread_retval;
16473 int *volatile a_in_main_thread;
16474 a_in_main_thread = &a;
16475 if (pthread_create (&thread, (pthread_attr_t *)0,
16476 thread_func, (void *)0))
16477 return 0;
16478 if (pthread_join (thread, &thread_retval))
16479 return 0;
16480 return (a_in_other_thread == a_in_main_thread);
16482 return 0;
16484 _ACEOF
16485 if ac_fn_c_try_run "$LINENO"; then :
16486 gcc_cv_have_tls=yes
16487 else
16488 gcc_cv_have_tls=no
16490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16491 conftest.$ac_objext conftest.beam conftest.$ac_ext
16494 CFLAGS="$chktls_save_CFLAGS"
16497 else
16498 gcc_cv_have_tls=no
16500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16501 conftest.$ac_objext conftest.beam conftest.$ac_ext
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16506 $as_echo "$gcc_cv_have_tls" >&6; }
16507 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16509 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16513 # See what sort of export controls are available.
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16516 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16517 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16521 save_CFLAGS="$CFLAGS"
16522 CFLAGS="$CFLAGS -Werror"
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525 void __attribute__((visibility("hidden"))) foo(void) { }
16527 main ()
16531 return 0;
16533 _ACEOF
16534 if ac_fn_c_try_compile "$LINENO"; then :
16535 libitm_cv_have_attribute_visibility=yes
16536 else
16537 libitm_cv_have_attribute_visibility=no
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 CFLAGS="$save_CFLAGS"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16543 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16544 if test $libitm_cv_have_attribute_visibility = yes; then
16546 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16551 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16552 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16556 save_CFLAGS="$CFLAGS"
16557 CFLAGS="$CFLAGS -Werror"
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16560 void __attribute__((dllexport)) foo(void) { }
16562 main ()
16566 return 0;
16568 _ACEOF
16569 if ac_fn_c_try_compile "$LINENO"; then :
16570 libitm_cv_have_attribute_dllexport=yes
16571 else
16572 libitm_cv_have_attribute_dllexport=no
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 CFLAGS="$save_CFLAGS"
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16578 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16579 if test $libitm_cv_have_attribute_dllexport = yes; then
16581 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16586 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16587 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16588 $as_echo_n "(cached) " >&6
16589 else
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16594 void foo(void) { }
16595 extern void bar(void) __attribute__((alias("foo")));
16597 main ()
16599 bar();
16601 return 0;
16603 _ACEOF
16604 if ac_fn_c_try_link "$LINENO"; then :
16605 libitm_cv_have_attribute_alias=yes
16606 else
16607 libitm_cv_have_attribute_alias=no
16609 rm -f core conftest.err conftest.$ac_objext \
16610 conftest$ac_exeext conftest.$ac_ext
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16613 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16614 if test $libitm_cv_have_attribute_alias = yes; then
16616 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16620 # Check linker hardware capability support.
16623 # Check whether --with-gnu-ld was given.
16624 if test "${with_gnu_ld+set}" = set; then :
16625 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16626 else
16627 with_gnu_ld=no
16630 ac_prog=ld
16631 if test "$GCC" = yes; then
16632 # Check if gcc -print-prog-name=ld gives a path.
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16634 $as_echo_n "checking for ld used by $CC... " >&6; }
16635 case $host in
16636 *-*-mingw*)
16637 # gcc leaves a trailing carriage return which upsets mingw
16638 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16640 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16641 esac
16642 case $ac_prog in
16643 # Accept absolute paths.
16644 [\\/]* | ?:[\\/]*)
16645 re_direlt='/[^/][^/]*/\.\./'
16646 # Canonicalize the pathname of ld
16647 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16648 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16649 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16650 done
16651 test -z "$LD" && LD="$ac_prog"
16654 # If it fails, then pretend we aren't using GCC.
16655 ac_prog=ld
16658 # If it is relative, then search for the first ld in PATH.
16659 with_gnu_ld=unknown
16661 esac
16662 elif test "$with_gnu_ld" = yes; then
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16664 $as_echo_n "checking for GNU ld... " >&6; }
16665 else
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16667 $as_echo_n "checking for non-GNU ld... " >&6; }
16669 if test "${lt_cv_path_LD+set}" = set; then :
16670 $as_echo_n "(cached) " >&6
16671 else
16672 if test -z "$LD"; then
16673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16674 for ac_dir in $PATH; do
16675 IFS="$lt_save_ifs"
16676 test -z "$ac_dir" && ac_dir=.
16677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16678 lt_cv_path_LD="$ac_dir/$ac_prog"
16679 # Check to see if the program is GNU ld. I'd rather use --version,
16680 # but apparently some variants of GNU ld only accept -v.
16681 # Break only if it was the GNU/non-GNU ld that we prefer.
16682 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16683 *GNU* | *'with BFD'*)
16684 test "$with_gnu_ld" != no && break
16687 test "$with_gnu_ld" != yes && break
16689 esac
16691 done
16692 IFS="$lt_save_ifs"
16693 else
16694 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16698 LD="$lt_cv_path_LD"
16699 if test -n "$LD"; then
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16701 $as_echo "$LD" >&6; }
16702 else
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16704 $as_echo "no" >&6; }
16706 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16708 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16709 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16710 $as_echo_n "(cached) " >&6
16711 else
16712 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16713 case `$LD -v 2>&1 </dev/null` in
16714 *GNU* | *'with BFD'*)
16715 lt_cv_prog_gnu_ld=yes
16718 lt_cv_prog_gnu_ld=no
16720 esac
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16723 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16724 with_gnu_ld=$lt_cv_prog_gnu_ld
16732 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16735 ac_save_LDFLAGS="$LDFLAGS"
16736 LDFLAGS="$LFLAGS -Wl,-M,$srcdir/clearcap.map"
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-M,mapfile" >&5
16739 $as_echo_n "checking for ld that supports -Wl,-M,mapfile... " >&6; }
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16744 main ()
16746 return 0;
16748 return 0;
16750 _ACEOF
16751 if ac_fn_c_try_link "$LINENO"; then :
16752 ac_hwcap_ldflags=yes
16753 else
16754 ac_hwcap_ldflags=no
16756 rm -f core conftest.err conftest.$ac_objext \
16757 conftest$ac_exeext conftest.$ac_ext
16758 if test "$ac_hwcap_ldflags" = "yes"; then
16759 HWCAP_LDFLAGS="-Wl,-M,$srcdir/clearcap.map $HWCAP_LDFLAGS"
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16762 $as_echo "$ac_hwcap_ldflags" >&6; }
16764 LDFLAGS="$ac_save_LDFLAGS"
16768 if test $ac_hwcap_ldflags != no; then
16769 HAVE_HWCAP_TRUE=
16770 HAVE_HWCAP_FALSE='#'
16771 else
16772 HAVE_HWCAP_TRUE='#'
16773 HAVE_HWCAP_FALSE=
16777 # If defaulting to -mavx, don't clear hwcaps.
16778 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16779 if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16780 HWCAP_LDFLAGS=''
16785 # If we're not using GNU ld, then there's no point in even trying these
16786 # tests. Check for that first. We should have already tested for gld
16787 # by now (in libtool), but require it now just to be safe...
16788 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16789 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16793 # The name set by libtool depends on the version of libtool. Shame on us
16794 # for depending on an impl detail, but c'est la vie. Older versions used
16795 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16796 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16797 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16798 # set (hence we're using an older libtool), then set it.
16799 if test x${with_gnu_ld+set} != xset; then
16800 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16801 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16802 with_gnu_ld=no
16803 else
16804 with_gnu_ld=$ac_cv_prog_gnu_ld
16808 # Start by getting the version number. I think the libtool test already
16809 # does some of this, but throws away the result.
16810 libitm_ld_is_gold=no
16811 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16812 libitm_ld_is_gold=yes
16815 ldver=`$LD --version 2>/dev/null |
16816 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'`
16818 libitm_gnu_ld_version=`echo $ldver | \
16819 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16821 # Set --gc-sections.
16822 if test "$with_gnu_ld" = "notbroken"; then
16823 # GNU ld it is! Joy and bunny rabbits!
16825 # All these tests are for C++; save the language and the compiler flags.
16826 # Need to do this so that g++ won't try to link in libstdc++
16827 ac_test_CFLAGS="${CFLAGS+set}"
16828 ac_save_CFLAGS="$CFLAGS"
16829 CFLAGS='-x c++ -Wl,--gc-sections'
16831 # Check for -Wl,--gc-sections
16832 # XXX This test is broken at the moment, as symbols required for linking
16833 # are now in libsupc++ (not built yet). In addition, this test has
16834 # cored on solaris in the past. In addition, --gc-sections doesn't
16835 # really work at the moment (keeps on discarding used sections, first
16836 # .eh_frame and now some of the glibc sections for iconv).
16837 # Bzzzzt. Thanks for playing, maybe next time.
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16839 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16840 if test "$cross_compiling" = yes; then :
16841 ac_sectionLDflags=yes
16842 else
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16846 int main(void)
16848 try { throw 1; }
16849 catch (...) { };
16850 return 0;
16853 _ACEOF
16854 if ac_fn_c_try_run "$LINENO"; then :
16855 ac_sectionLDflags=yes
16856 else
16857 ac_sectionLDflags=no
16859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16860 conftest.$ac_objext conftest.beam conftest.$ac_ext
16863 if test "$ac_test_CFLAGS" = set; then
16864 CFLAGS="$ac_save_CFLAGS"
16865 else
16866 # this is the suspicious part
16867 CFLAGS=''
16869 if test "$ac_sectionLDflags" = "yes"; then
16870 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16873 $as_echo "$ac_sectionLDflags" >&6; }
16876 # Set linker optimization flags.
16877 if test x"$with_gnu_ld" = x"yes"; then
16878 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16886 # Check whether --enable-symvers was given.
16887 if test "${enable_symvers+set}" = set; then :
16888 enableval=$enable_symvers;
16889 case "$enableval" in
16890 yes|no|gnu*|sun) ;;
16891 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16892 esac
16894 else
16895 enable_symvers=yes
16900 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16901 # don't know enough about $LD to do tricks...
16904 # Turn a 'yes' into a suitable default.
16905 if test x$enable_symvers = xyes ; then
16906 # FIXME The following test is too strict, in theory.
16907 if test $enable_shared = no || test "x$LD" = x; then
16908 enable_symvers=no
16909 else
16910 if test $with_gnu_ld = yes ; then
16911 enable_symvers=gnu
16912 else
16913 case ${target_os} in
16914 # Sun symbol versioning exists since Solaris 2.5.
16915 solaris2.[5-9]* | solaris2.1[0-9]*)
16916 enable_symvers=sun ;;
16918 enable_symvers=no ;;
16919 esac
16924 # Check if 'sun' was requested on non-Solaris 2 platforms.
16925 if test x$enable_symvers = xsun ; then
16926 case ${target_os} in
16927 solaris2*)
16928 # All fine.
16931 # Unlikely to work.
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16933 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16935 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16937 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16938 enable_symvers=no
16940 esac
16943 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16944 if test $enable_symvers != no; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16946 $as_echo_n "checking for shared libgcc... " >&6; }
16947 ac_save_CFLAGS="$CFLAGS"
16948 CFLAGS=' -lgcc_s'
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16953 main ()
16955 return 0;
16957 return 0;
16959 _ACEOF
16960 if ac_fn_c_try_link "$LINENO"; then :
16961 libitm_shared_libgcc=yes
16962 else
16963 libitm_shared_libgcc=no
16965 rm -f core conftest.err conftest.$ac_objext \
16966 conftest$ac_exeext conftest.$ac_ext
16967 CFLAGS="$ac_save_CFLAGS"
16968 if test $libitm_shared_libgcc = no; then
16969 cat > conftest.c <<EOF
16970 int main (void) { return 0; }
16972 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16973 -shared -shared-libgcc -o conftest.so \
16974 conftest.c -v 2>&1 >/dev/null \
16975 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16976 rm -f conftest.c conftest.so
16977 if test x${libitm_libgcc_s_suffix+set} = xset; then
16978 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16983 main ()
16985 return 0;
16987 return 0;
16989 _ACEOF
16990 if ac_fn_c_try_link "$LINENO"; then :
16991 libitm_shared_libgcc=yes
16993 rm -f core conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16995 CFLAGS="$ac_save_CFLAGS"
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16999 $as_echo "$libitm_shared_libgcc" >&6; }
17002 # For GNU ld, we need at least this version. The format is described in
17003 # LIBITM_CHECK_LINKER_FEATURES above.
17004 libitm_min_gnu_ld_version=21400
17005 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17007 # Check to see if unspecified "yes" value can win, given results above.
17008 # Change "yes" into either "no" or a style name.
17009 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17010 if test $with_gnu_ld = yes; then
17011 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17012 enable_symvers=gnu
17013 elif test $libitm_ld_is_gold = yes ; then
17014 enable_symvers=gnu
17015 else
17016 # The right tools, the right setup, but too old. Fallbacks?
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17018 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17020 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17022 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17024 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17025 if test $libitm_gnu_ld_version -ge 21200 ; then
17026 # Globbing fix is present, proper block support is not.
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17028 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17029 enable_symvers=no
17030 else
17031 # 2.11 or older.
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17033 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17034 enable_symvers=no
17037 elif test $enable_symvers = sun; then
17038 : All interesting versions of Sun ld support sun style symbol versioning.
17039 else
17040 # just fail for now
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17042 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17044 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17046 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17048 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17049 enable_symvers=no
17053 if test $enable_symvers != no; then
17054 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17055 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17056 else
17057 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17058 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17061 if test $enable_symvers = gnu; then
17062 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17063 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17064 else
17065 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17066 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17069 if test $enable_symvers = sun; then
17070 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17071 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17072 else
17073 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17074 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17078 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17080 if test $enable_symvers = gnu; then
17082 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17086 # See if we can emit unwind info in the sjlj stub.
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17088 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17089 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17090 $as_echo_n "(cached) " >&6
17091 else
17093 gcc_cv_as_cfi_pseudo_op=unknown
17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17096 asm (".cfi_startproc\n\t.cfi_endproc");
17098 main ()
17102 return 0;
17104 _ACEOF
17105 if ac_fn_c_try_compile "$LINENO"; then :
17106 gcc_cv_as_cfi_pseudo_op=yes
17107 else
17108 gcc_cv_as_cfi_pseudo_op=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17114 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17115 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17117 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17122 # Determine the proper ABI type for size_t.
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17125 $as_echo_n "checking how size_t is mangled... " >&6; }
17126 if test "${libitm_cv_size_t_mangling+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h. */
17134 main ()
17136 extern __SIZE_TYPE__ x; extern unsigned long x;
17138 return 0;
17140 _ACEOF
17141 if ac_fn_c_try_compile "$LINENO"; then :
17142 libitm_cv_size_t_mangling=m
17143 else
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17149 main ()
17151 extern __SIZE_TYPE__ x; extern unsigned int x;
17153 return 0;
17155 _ACEOF
17156 if ac_fn_c_try_compile "$LINENO"; then :
17157 libitm_cv_size_t_mangling=j
17158 else
17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17164 main ()
17166 extern __SIZE_TYPE__ x; extern unsigned long long x;
17168 return 0;
17170 _ACEOF
17171 if ac_fn_c_try_compile "$LINENO"; then :
17172 libitm_cv_size_t_mangling=y
17173 else
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17179 main ()
17181 extern __SIZE_TYPE__ x; extern unsigned short x;
17183 return 0;
17185 _ACEOF
17186 if ac_fn_c_try_compile "$LINENO"; then :
17187 libitm_cv_size_t_mangling=t
17188 else
17189 libitm_cv_size_t_mangling=x
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17204 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17205 if test $libitm_cv_size_t_mangling = x; then
17206 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17209 cat >>confdefs.h <<_ACEOF
17210 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17211 _ACEOF
17215 # Get target configury.
17216 . ${srcdir}/configure.tgt
17217 if test -n "$UNSUPPORTED"; then
17218 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17221 CFLAGS="$save_CFLAGS $XCFLAGS"
17223 # Check for __sync_val_compare_and_swap, but only after the target has
17224 # had a chance to set XCFLAGS.
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17227 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17228 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17229 $as_echo_n "(cached) " >&6
17230 else
17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233 /* end confdefs.h. */
17236 main ()
17238 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17240 return 0;
17242 _ACEOF
17243 if ac_fn_c_try_link "$LINENO"; then :
17244 libitm_cv_have_sync_builtins=yes
17245 else
17246 libitm_cv_have_sync_builtins=no
17248 rm -f core conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17252 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17253 if test $libitm_cv_have_sync_builtins = yes; then
17255 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17260 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17261 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17262 $as_echo_n "(cached) " >&6
17263 else
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17267 #include <stdint.h>
17269 main ()
17271 uint64_t foo, bar;
17272 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17274 return 0;
17276 _ACEOF
17277 if ac_fn_c_try_link "$LINENO"; then :
17278 libitm_cv_have_64bit_sync_builtins=yes
17279 else
17280 libitm_cv_have_64bit_sync_builtins=no
17282 rm -f core conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17286 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17287 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17289 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17293 case "${target_cpu}" in
17294 i[34567]86 | x86_64)
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17296 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17297 if test "${libitm_cv_as_avx+set}" = set; then :
17298 $as_echo_n "(cached) " >&6
17299 else
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17305 main ()
17307 asm("vzeroupper");
17309 return 0;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"; then :
17313 libitm_cv_as_avx=yes
17314 else
17315 libitm_cv_as_avx=no
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17321 $as_echo "$libitm_cv_as_avx" >&6; }
17322 if test x$libitm_cv_as_avx = xyes; then
17324 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17328 esac
17330 case "${target_cpu}" in
17331 i[34567]86 | x86_64)
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17333 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17334 if test "${libitm_cv_as_rtm+set}" = set; then :
17335 $as_echo_n "(cached) " >&6
17336 else
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17342 main ()
17344 asm("1: xbegin 1b; xend");
17346 return 0;
17348 _ACEOF
17349 if ac_fn_c_try_compile "$LINENO"; then :
17350 libitm_cv_as_rtm=yes
17351 else
17352 libitm_cv_as_rtm=no
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17358 $as_echo "$libitm_cv_as_rtm" >&6; }
17359 if test x$libitm_cv_as_rtm = xyes; then
17361 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17365 esac
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17369 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17370 if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17374 weakref_m4_saved_CFLAGS="$CFLAGS"
17375 case "${host}" in
17376 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17377 *) ;;
17378 esac
17379 if test "$cross_compiling" = yes; then :
17381 case "${host}" in
17382 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17383 *) ac_cv_have_elf_style_weakref=yes;;
17384 esac
17385 else
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17389 extern void fNotToBeFound(void) __attribute__((weak));
17390 int main ()
17392 if (fNotToBeFound)
17393 return 1;
17394 else
17395 return 0;
17398 _ACEOF
17399 if ac_fn_c_try_run "$LINENO"; then :
17400 ac_cv_have_elf_style_weakref=yes
17401 else
17402 ac_cv_have_elf_style_weakref=no
17404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17405 conftest.$ac_objext conftest.beam conftest.$ac_ext
17407 CFLAGS="$weakref_m4_saved_CFLAGS"
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17410 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17411 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17413 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17417 # Cleanup and exit.
17418 CFLAGS="$save_CFLAGS"
17419 cat >confcache <<\_ACEOF
17420 # This file is a shell script that caches the results of configure
17421 # tests run on this system so they can be shared between configure
17422 # scripts and configure runs, see configure's option --config-cache.
17423 # It is not useful on other systems. If it contains results you don't
17424 # want to keep, you may remove or edit it.
17426 # config.status only pays attention to the cache file if you give it
17427 # the --recheck option to rerun configure.
17429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17431 # following values.
17433 _ACEOF
17435 # The following way of writing the cache mishandles newlines in values,
17436 # but we know of no workaround that is simple, portable, and efficient.
17437 # So, we kill variables containing newlines.
17438 # Ultrix sh set writes to stderr and can't be redirected directly,
17439 # and sets the high bit in the cache file unless we assign to the vars.
17441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17442 eval ac_val=\$$ac_var
17443 case $ac_val in #(
17444 *${as_nl}*)
17445 case $ac_var in #(
17446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17448 esac
17449 case $ac_var in #(
17450 _ | IFS | as_nl) ;; #(
17451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17452 *) { eval $ac_var=; unset $ac_var;} ;;
17453 esac ;;
17454 esac
17455 done
17457 (set) 2>&1 |
17458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17459 *${as_nl}ac_space=\ *)
17460 # `set' does not quote correctly, so add quotes: double-quote
17461 # substitution turns \\\\ into \\, and sed turns \\ into \.
17462 sed -n \
17463 "s/'/'\\\\''/g;
17464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17465 ;; #(
17467 # `set' quotes correctly as required by POSIX, so do not add quotes.
17468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17470 esac |
17471 sort
17473 sed '
17474 /^ac_cv_env_/b end
17475 t clear
17476 :clear
17477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17478 t end
17479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17480 :end' >>confcache
17481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17482 if test -w "$cache_file"; then
17483 test "x$cache_file" != "x/dev/null" &&
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17485 $as_echo "$as_me: updating cache $cache_file" >&6;}
17486 cat confcache >$cache_file
17487 else
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17492 rm -f confcache
17494 # Add -Wall -Werror if we are using GCC.
17495 if test "x$GCC" = "xyes"; then
17496 XCFLAGS="$XCFLAGS -Wall -Werror"
17499 XCFLAGS="$XCFLAGS $XPCFLAGS"
17505 if test ${multilib} = yes; then
17506 multilib_arg="--enable-multilib"
17507 else
17508 multilib_arg=
17511 # Set up the set of libraries that we need to link against for libitm.
17512 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17513 # which will force linkage against -lpthread (or equivalent for the system).
17514 # That's not 100% ideal, but about the best we can do easily.
17515 if test $enable_shared = yes; then
17516 link_itm="-litm %{static: $LIBS}"
17517 else
17518 link_itm="-litm $LIBS"
17522 if test "$ARCH" = arm; then
17523 ARCH_ARM_TRUE=
17524 ARCH_ARM_FALSE='#'
17525 else
17526 ARCH_ARM_TRUE='#'
17527 ARCH_ARM_FALSE=
17530 if test "$ARCH" = x86; then
17531 ARCH_X86_TRUE=
17532 ARCH_X86_FALSE='#'
17533 else
17534 ARCH_X86_TRUE='#'
17535 ARCH_X86_FALSE=
17538 if test "$libitm_cv_as_avx" = yes; then
17539 ARCH_X86_AVX_TRUE=
17540 ARCH_X86_AVX_FALSE='#'
17541 else
17542 ARCH_X86_AVX_TRUE='#'
17543 ARCH_X86_AVX_FALSE=
17546 if test $enable_linux_futex = yes; then
17547 ARCH_FUTEX_TRUE=
17548 ARCH_FUTEX_FALSE='#'
17549 else
17550 ARCH_FUTEX_TRUE='#'
17551 ARCH_FUTEX_FALSE=
17555 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17557 cat >confcache <<\_ACEOF
17558 # This file is a shell script that caches the results of configure
17559 # tests run on this system so they can be shared between configure
17560 # scripts and configure runs, see configure's option --config-cache.
17561 # It is not useful on other systems. If it contains results you don't
17562 # want to keep, you may remove or edit it.
17564 # config.status only pays attention to the cache file if you give it
17565 # the --recheck option to rerun configure.
17567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17569 # following values.
17571 _ACEOF
17573 # The following way of writing the cache mishandles newlines in values,
17574 # but we know of no workaround that is simple, portable, and efficient.
17575 # So, we kill variables containing newlines.
17576 # Ultrix sh set writes to stderr and can't be redirected directly,
17577 # and sets the high bit in the cache file unless we assign to the vars.
17579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17580 eval ac_val=\$$ac_var
17581 case $ac_val in #(
17582 *${as_nl}*)
17583 case $ac_var in #(
17584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17586 esac
17587 case $ac_var in #(
17588 _ | IFS | as_nl) ;; #(
17589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17590 *) { eval $ac_var=; unset $ac_var;} ;;
17591 esac ;;
17592 esac
17593 done
17595 (set) 2>&1 |
17596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17597 *${as_nl}ac_space=\ *)
17598 # `set' does not quote correctly, so add quotes: double-quote
17599 # substitution turns \\\\ into \\, and sed turns \\ into \.
17600 sed -n \
17601 "s/'/'\\\\''/g;
17602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17603 ;; #(
17605 # `set' quotes correctly as required by POSIX, so do not add quotes.
17606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17608 esac |
17609 sort
17611 sed '
17612 /^ac_cv_env_/b end
17613 t clear
17614 :clear
17615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17616 t end
17617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17618 :end' >>confcache
17619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17620 if test -w "$cache_file"; then
17621 test "x$cache_file" != "x/dev/null" &&
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17623 $as_echo "$as_me: updating cache $cache_file" >&6;}
17624 cat confcache >$cache_file
17625 else
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17627 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17630 rm -f confcache
17632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17633 # Let make expand exec_prefix.
17634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17636 DEFS=-DHAVE_CONFIG_H
17638 ac_libobjs=
17639 ac_ltlibobjs=
17640 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17641 # 1. Remove the extension, and $U if already installed.
17642 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17643 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17644 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17645 # will be set to the directory where LIBOBJS objects are built.
17646 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17647 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17648 done
17649 LIBOBJS=$ac_libobjs
17651 LTLIBOBJS=$ac_ltlibobjs
17654 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17655 as_fn_error "conditional \"GENINSRC\" was never defined.
17656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17658 if test -n "$EXEEXT"; then
17659 am__EXEEXT_TRUE=
17660 am__EXEEXT_FALSE='#'
17661 else
17662 am__EXEEXT_TRUE='#'
17663 am__EXEEXT_FALSE=
17666 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17667 as_fn_error "conditional \"AMDEP\" was never defined.
17668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17671 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17674 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17675 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17678 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17679 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17682 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17683 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17686 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17687 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17691 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17692 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17695 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17696 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17699 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17700 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17703 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17704 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17707 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17708 as_fn_error "conditional \"ARCH_ARM\" was never defined.
17709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17711 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17712 as_fn_error "conditional \"ARCH_X86\" was never defined.
17713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17715 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17716 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17719 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17720 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17724 : ${CONFIG_STATUS=./config.status}
17725 ac_write_fail=0
17726 ac_clean_files_save=$ac_clean_files
17727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17729 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17730 as_write_fail=0
17731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17732 #! $SHELL
17733 # Generated by $as_me.
17734 # Run this file to recreate the current configuration.
17735 # Compiler output produced by configure, useful for debugging
17736 # configure, is in config.log if it exists.
17738 debug=false
17739 ac_cs_recheck=false
17740 ac_cs_silent=false
17742 SHELL=\${CONFIG_SHELL-$SHELL}
17743 export SHELL
17744 _ASEOF
17745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17746 ## -------------------- ##
17747 ## M4sh Initialization. ##
17748 ## -------------------- ##
17750 # Be more Bourne compatible
17751 DUALCASE=1; export DUALCASE # for MKS sh
17752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17753 emulate sh
17754 NULLCMD=:
17755 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17756 # is contrary to our usage. Disable this feature.
17757 alias -g '${1+"$@"}'='"$@"'
17758 setopt NO_GLOB_SUBST
17759 else
17760 case `(set -o) 2>/dev/null` in #(
17761 *posix*) :
17762 set -o posix ;; #(
17763 *) :
17765 esac
17769 as_nl='
17771 export as_nl
17772 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17773 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17776 # Prefer a ksh shell builtin over an external printf program on Solaris,
17777 # but without wasting forks for bash or zsh.
17778 if test -z "$BASH_VERSION$ZSH_VERSION" \
17779 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17780 as_echo='print -r --'
17781 as_echo_n='print -rn --'
17782 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17783 as_echo='printf %s\n'
17784 as_echo_n='printf %s'
17785 else
17786 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17787 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17788 as_echo_n='/usr/ucb/echo -n'
17789 else
17790 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17791 as_echo_n_body='eval
17792 arg=$1;
17793 case $arg in #(
17794 *"$as_nl"*)
17795 expr "X$arg" : "X\\(.*\\)$as_nl";
17796 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17797 esac;
17798 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17800 export as_echo_n_body
17801 as_echo_n='sh -c $as_echo_n_body as_echo'
17803 export as_echo_body
17804 as_echo='sh -c $as_echo_body as_echo'
17807 # The user is always right.
17808 if test "${PATH_SEPARATOR+set}" != set; then
17809 PATH_SEPARATOR=:
17810 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17811 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17812 PATH_SEPARATOR=';'
17817 # IFS
17818 # We need space, tab and new line, in precisely that order. Quoting is
17819 # there to prevent editors from complaining about space-tab.
17820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17821 # splitting by setting IFS to empty value.)
17822 IFS=" "" $as_nl"
17824 # Find who we are. Look in the path if we contain no directory separator.
17825 case $0 in #((
17826 *[\\/]* ) as_myself=$0 ;;
17827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17828 for as_dir in $PATH
17830 IFS=$as_save_IFS
17831 test -z "$as_dir" && as_dir=.
17832 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17833 done
17834 IFS=$as_save_IFS
17837 esac
17838 # We did not find ourselves, most probably we were run as `sh COMMAND'
17839 # in which case we are not to be found in the path.
17840 if test "x$as_myself" = x; then
17841 as_myself=$0
17843 if test ! -f "$as_myself"; then
17844 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17845 exit 1
17848 # Unset variables that we do not need and which cause bugs (e.g. in
17849 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17850 # suppresses any "Segmentation fault" message there. '((' could
17851 # trigger a bug in pdksh 5.2.14.
17852 for as_var in BASH_ENV ENV MAIL MAILPATH
17853 do eval test x\${$as_var+set} = xset \
17854 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17855 done
17856 PS1='$ '
17857 PS2='> '
17858 PS4='+ '
17860 # NLS nuisances.
17861 LC_ALL=C
17862 export LC_ALL
17863 LANGUAGE=C
17864 export LANGUAGE
17866 # CDPATH.
17867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17870 # as_fn_error ERROR [LINENO LOG_FD]
17871 # ---------------------------------
17872 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17873 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17874 # script with status $?, using 1 if that was 0.
17875 as_fn_error ()
17877 as_status=$?; test $as_status -eq 0 && as_status=1
17878 if test "$3"; then
17879 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17880 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17882 $as_echo "$as_me: error: $1" >&2
17883 as_fn_exit $as_status
17884 } # as_fn_error
17887 # as_fn_set_status STATUS
17888 # -----------------------
17889 # Set $? to STATUS, without forking.
17890 as_fn_set_status ()
17892 return $1
17893 } # as_fn_set_status
17895 # as_fn_exit STATUS
17896 # -----------------
17897 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17898 as_fn_exit ()
17900 set +e
17901 as_fn_set_status $1
17902 exit $1
17903 } # as_fn_exit
17905 # as_fn_unset VAR
17906 # ---------------
17907 # Portably unset VAR.
17908 as_fn_unset ()
17910 { eval $1=; unset $1;}
17912 as_unset=as_fn_unset
17913 # as_fn_append VAR VALUE
17914 # ----------------------
17915 # Append the text in VALUE to the end of the definition contained in VAR. Take
17916 # advantage of any shell optimizations that allow amortized linear growth over
17917 # repeated appends, instead of the typical quadratic growth present in naive
17918 # implementations.
17919 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17920 eval 'as_fn_append ()
17922 eval $1+=\$2
17924 else
17925 as_fn_append ()
17927 eval $1=\$$1\$2
17929 fi # as_fn_append
17931 # as_fn_arith ARG...
17932 # ------------------
17933 # Perform arithmetic evaluation on the ARGs, and store the result in the
17934 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17935 # must be portable across $(()) and expr.
17936 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17937 eval 'as_fn_arith ()
17939 as_val=$(( $* ))
17941 else
17942 as_fn_arith ()
17944 as_val=`expr "$@" || test $? -eq 1`
17946 fi # as_fn_arith
17949 if expr a : '\(a\)' >/dev/null 2>&1 &&
17950 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17951 as_expr=expr
17952 else
17953 as_expr=false
17956 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17957 as_basename=basename
17958 else
17959 as_basename=false
17962 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17963 as_dirname=dirname
17964 else
17965 as_dirname=false
17968 as_me=`$as_basename -- "$0" ||
17969 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17970 X"$0" : 'X\(//\)$' \| \
17971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17972 $as_echo X/"$0" |
17973 sed '/^.*\/\([^/][^/]*\)\/*$/{
17974 s//\1/
17977 /^X\/\(\/\/\)$/{
17978 s//\1/
17981 /^X\/\(\/\).*/{
17982 s//\1/
17985 s/.*/./; q'`
17987 # Avoid depending upon Character Ranges.
17988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17991 as_cr_digits='0123456789'
17992 as_cr_alnum=$as_cr_Letters$as_cr_digits
17994 ECHO_C= ECHO_N= ECHO_T=
17995 case `echo -n x` in #(((((
17996 -n*)
17997 case `echo 'xy\c'` in
17998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17999 xy) ECHO_C='\c';;
18000 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18001 ECHO_T=' ';;
18002 esac;;
18004 ECHO_N='-n';;
18005 esac
18007 rm -f conf$$ conf$$.exe conf$$.file
18008 if test -d conf$$.dir; then
18009 rm -f conf$$.dir/conf$$.file
18010 else
18011 rm -f conf$$.dir
18012 mkdir conf$$.dir 2>/dev/null
18014 if (echo >conf$$.file) 2>/dev/null; then
18015 if ln -s conf$$.file conf$$ 2>/dev/null; then
18016 as_ln_s='ln -s'
18017 # ... but there are two gotchas:
18018 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18019 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18020 # In both cases, we have to default to `cp -p'.
18021 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18022 as_ln_s='cp -p'
18023 elif ln conf$$.file conf$$ 2>/dev/null; then
18024 as_ln_s=ln
18025 else
18026 as_ln_s='cp -p'
18028 else
18029 as_ln_s='cp -p'
18031 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18032 rmdir conf$$.dir 2>/dev/null
18035 # as_fn_mkdir_p
18036 # -------------
18037 # Create "$as_dir" as a directory, including parents if necessary.
18038 as_fn_mkdir_p ()
18041 case $as_dir in #(
18042 -*) as_dir=./$as_dir;;
18043 esac
18044 test -d "$as_dir" || eval $as_mkdir_p || {
18045 as_dirs=
18046 while :; do
18047 case $as_dir in #(
18048 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18049 *) as_qdir=$as_dir;;
18050 esac
18051 as_dirs="'$as_qdir' $as_dirs"
18052 as_dir=`$as_dirname -- "$as_dir" ||
18053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18054 X"$as_dir" : 'X\(//\)[^/]' \| \
18055 X"$as_dir" : 'X\(//\)$' \| \
18056 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18057 $as_echo X"$as_dir" |
18058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18059 s//\1/
18062 /^X\(\/\/\)[^/].*/{
18063 s//\1/
18066 /^X\(\/\/\)$/{
18067 s//\1/
18070 /^X\(\/\).*/{
18071 s//\1/
18074 s/.*/./; q'`
18075 test -d "$as_dir" && break
18076 done
18077 test -z "$as_dirs" || eval "mkdir $as_dirs"
18078 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18081 } # as_fn_mkdir_p
18082 if mkdir -p . 2>/dev/null; then
18083 as_mkdir_p='mkdir -p "$as_dir"'
18084 else
18085 test -d ./-p && rmdir ./-p
18086 as_mkdir_p=false
18089 if test -x / >/dev/null 2>&1; then
18090 as_test_x='test -x'
18091 else
18092 if ls -dL / >/dev/null 2>&1; then
18093 as_ls_L_option=L
18094 else
18095 as_ls_L_option=
18097 as_test_x='
18098 eval sh -c '\''
18099 if test -d "$1"; then
18100 test -d "$1/.";
18101 else
18102 case $1 in #(
18103 -*)set "./$1";;
18104 esac;
18105 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18106 ???[sx]*):;;*)false;;esac;fi
18107 '\'' sh
18110 as_executable_p=$as_test_x
18112 # Sed expression to map a string onto a valid CPP name.
18113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18115 # Sed expression to map a string onto a valid variable name.
18116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18119 exec 6>&1
18120 ## ----------------------------------- ##
18121 ## Main body of $CONFIG_STATUS script. ##
18122 ## ----------------------------------- ##
18123 _ASEOF
18124 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18127 # Save the log message, to keep $0 and so on meaningful, and to
18128 # report actual input values of CONFIG_FILES etc. instead of their
18129 # values after options handling.
18130 ac_log="
18131 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18132 generated by GNU Autoconf 2.64. Invocation command line was
18134 CONFIG_FILES = $CONFIG_FILES
18135 CONFIG_HEADERS = $CONFIG_HEADERS
18136 CONFIG_LINKS = $CONFIG_LINKS
18137 CONFIG_COMMANDS = $CONFIG_COMMANDS
18138 $ $0 $@
18140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18143 _ACEOF
18145 case $ac_config_files in *"
18146 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18147 esac
18149 case $ac_config_headers in *"
18150 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18151 esac
18154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18155 # Files that config.status was made for.
18156 config_files="$ac_config_files"
18157 config_headers="$ac_config_headers"
18158 config_commands="$ac_config_commands"
18160 _ACEOF
18162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18163 ac_cs_usage="\
18164 \`$as_me' instantiates files and other configuration actions
18165 from templates according to the current configuration. Unless the files
18166 and actions are specified as TAGs, all are instantiated by default.
18168 Usage: $0 [OPTION]... [TAG]...
18170 -h, --help print this help, then exit
18171 -V, --version print version number and configuration settings, then exit
18172 -q, --quiet, --silent
18173 do not print progress messages
18174 -d, --debug don't remove temporary files
18175 --recheck update $as_me by reconfiguring in the same conditions
18176 --file=FILE[:TEMPLATE]
18177 instantiate the configuration file FILE
18178 --header=FILE[:TEMPLATE]
18179 instantiate the configuration header FILE
18181 Configuration files:
18182 $config_files
18184 Configuration headers:
18185 $config_headers
18187 Configuration commands:
18188 $config_commands
18190 Report bugs to the package provider.
18191 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18192 General help using GNU software: <http://www.gnu.org/gethelp/>."
18194 _ACEOF
18195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18196 ac_cs_version="\\
18197 GNU TM Runtime Library config.status 1.0
18198 configured by $0, generated by GNU Autoconf 2.64,
18199 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18201 Copyright (C) 2009 Free Software Foundation, Inc.
18202 This config.status script is free software; the Free Software Foundation
18203 gives unlimited permission to copy, distribute and modify it."
18205 ac_pwd='$ac_pwd'
18206 srcdir='$srcdir'
18207 INSTALL='$INSTALL'
18208 MKDIR_P='$MKDIR_P'
18209 AWK='$AWK'
18210 test -n "\$AWK" || AWK=awk
18211 _ACEOF
18213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18214 # The default lists apply if the user does not specify any file.
18215 ac_need_defaults=:
18216 while test $# != 0
18218 case $1 in
18219 --*=*)
18220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18222 ac_shift=:
18225 ac_option=$1
18226 ac_optarg=$2
18227 ac_shift=shift
18229 esac
18231 case $ac_option in
18232 # Handling of the options.
18233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18234 ac_cs_recheck=: ;;
18235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18236 $as_echo "$ac_cs_version"; exit ;;
18237 --debug | --debu | --deb | --de | --d | -d )
18238 debug=: ;;
18239 --file | --fil | --fi | --f )
18240 $ac_shift
18241 case $ac_optarg in
18242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18243 esac
18244 as_fn_append CONFIG_FILES " '$ac_optarg'"
18245 ac_need_defaults=false;;
18246 --header | --heade | --head | --hea )
18247 $ac_shift
18248 case $ac_optarg in
18249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18250 esac
18251 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18252 ac_need_defaults=false;;
18253 --he | --h)
18254 # Conflict between --help and --header
18255 as_fn_error "ambiguous option: \`$1'
18256 Try \`$0 --help' for more information.";;
18257 --help | --hel | -h )
18258 $as_echo "$ac_cs_usage"; exit ;;
18259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18261 ac_cs_silent=: ;;
18263 # This is an error.
18264 -*) as_fn_error "unrecognized option: \`$1'
18265 Try \`$0 --help' for more information." ;;
18267 *) as_fn_append ac_config_targets " $1"
18268 ac_need_defaults=false ;;
18270 esac
18271 shift
18272 done
18274 ac_configure_extra_args=
18276 if $ac_cs_silent; then
18277 exec 6>/dev/null
18278 ac_configure_extra_args="$ac_configure_extra_args --silent"
18281 _ACEOF
18282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18283 if \$ac_cs_recheck; then
18284 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18285 shift
18286 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18287 CONFIG_SHELL='$SHELL'
18288 export CONFIG_SHELL
18289 exec "\$@"
18292 _ACEOF
18293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18294 exec 5>>config.log
18296 echo
18297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18298 ## Running $as_me. ##
18299 _ASBOX
18300 $as_echo "$ac_log"
18301 } >&5
18303 _ACEOF
18304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18306 # INIT-COMMANDS
18309 srcdir="$srcdir"
18310 host="$host"
18311 target="$target"
18312 with_multisubdir="$with_multisubdir"
18313 with_multisrctop="$with_multisrctop"
18314 with_target_subdir="$with_target_subdir"
18315 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18316 multi_basedir="$multi_basedir"
18317 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18318 CC="$CC"
18319 CXX="$CXX"
18320 GFORTRAN="$GFORTRAN"
18321 GCJ="$GCJ"
18322 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18325 # The HP-UX ksh and POSIX shell print the target directory to stdout
18326 # if CDPATH is set.
18327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18329 sed_quote_subst='$sed_quote_subst'
18330 double_quote_subst='$double_quote_subst'
18331 delay_variable_subst='$delay_variable_subst'
18332 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18333 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18334 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18335 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18336 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18337 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18338 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18339 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18340 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18341 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18342 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18343 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18344 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18345 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18346 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18347 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18348 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18349 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18350 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18351 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18352 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18353 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18354 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18355 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18356 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18357 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18358 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18359 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18360 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18361 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18362 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18363 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18364 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18365 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18366 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18367 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18368 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18369 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18370 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18371 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18372 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18373 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18374 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18375 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18376 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18377 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18378 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18379 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18380 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"`'
18381 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18382 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18383 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18384 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18385 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18386 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18387 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18388 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18389 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18390 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18391 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18392 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18393 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18394 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18395 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18396 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18397 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18398 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18399 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18400 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18401 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18402 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18403 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18404 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18405 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18406 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18407 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18408 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18409 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18410 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18411 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18412 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18413 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18414 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18415 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18416 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18417 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18418 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18419 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18420 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18421 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18422 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18423 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18424 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18425 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18426 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18427 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18428 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18429 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18430 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18431 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18432 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18433 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18434 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18435 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18436 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18437 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18438 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18439 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18440 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18441 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18442 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18443 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18444 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18445 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18446 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18447 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18448 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18449 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18450 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18451 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18452 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18453 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18454 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18455 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18456 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18457 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18458 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18459 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18460 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18461 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18462 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18463 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18464 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18465 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18466 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18467 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18468 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18469 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18470 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18471 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18472 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18473 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18474 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18475 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18476 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18477 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18478 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18479 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18480 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18481 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18482 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18483 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18484 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18485 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18486 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18487 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18488 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18489 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18490 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18491 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18492 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18493 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18494 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18495 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18496 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18497 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18498 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18499 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18500 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18501 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18502 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18503 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18504 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18505 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18506 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18508 LTCC='$LTCC'
18509 LTCFLAGS='$LTCFLAGS'
18510 compiler='$compiler_DEFAULT'
18512 # A function that is used when there is no print builtin or printf.
18513 func_fallback_echo ()
18515 eval 'cat <<_LTECHO_EOF
18517 _LTECHO_EOF'
18520 # Quote evaled strings.
18521 for var in SHELL \
18522 ECHO \
18523 SED \
18524 GREP \
18525 EGREP \
18526 FGREP \
18527 LD \
18528 NM \
18529 LN_S \
18530 lt_SP2NL \
18531 lt_NL2SP \
18532 reload_flag \
18533 OBJDUMP \
18534 deplibs_check_method \
18535 file_magic_cmd \
18536 AR \
18537 AR_FLAGS \
18538 STRIP \
18539 RANLIB \
18540 CC \
18541 CFLAGS \
18542 compiler \
18543 lt_cv_sys_global_symbol_pipe \
18544 lt_cv_sys_global_symbol_to_cdecl \
18545 lt_cv_sys_global_symbol_to_c_name_address \
18546 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18547 lt_prog_compiler_no_builtin_flag \
18548 lt_prog_compiler_wl \
18549 lt_prog_compiler_pic \
18550 lt_prog_compiler_static \
18551 lt_cv_prog_compiler_c_o \
18552 need_locks \
18553 DSYMUTIL \
18554 NMEDIT \
18555 LIPO \
18556 OTOOL \
18557 OTOOL64 \
18558 shrext_cmds \
18559 export_dynamic_flag_spec \
18560 whole_archive_flag_spec \
18561 compiler_needs_object \
18562 with_gnu_ld \
18563 allow_undefined_flag \
18564 no_undefined_flag \
18565 hardcode_libdir_flag_spec \
18566 hardcode_libdir_flag_spec_ld \
18567 hardcode_libdir_separator \
18568 fix_srcfile_path \
18569 exclude_expsyms \
18570 include_expsyms \
18571 file_list_spec \
18572 variables_saved_for_relink \
18573 libname_spec \
18574 library_names_spec \
18575 soname_spec \
18576 install_override_mode \
18577 finish_eval \
18578 old_striplib \
18579 striplib \
18580 compiler_lib_search_dirs \
18581 predep_objects \
18582 postdep_objects \
18583 predeps \
18584 postdeps \
18585 compiler_lib_search_path \
18586 LD_CXX \
18587 reload_flag_CXX \
18588 compiler_CXX \
18589 lt_prog_compiler_no_builtin_flag_CXX \
18590 lt_prog_compiler_wl_CXX \
18591 lt_prog_compiler_pic_CXX \
18592 lt_prog_compiler_static_CXX \
18593 lt_cv_prog_compiler_c_o_CXX \
18594 export_dynamic_flag_spec_CXX \
18595 whole_archive_flag_spec_CXX \
18596 compiler_needs_object_CXX \
18597 with_gnu_ld_CXX \
18598 allow_undefined_flag_CXX \
18599 no_undefined_flag_CXX \
18600 hardcode_libdir_flag_spec_CXX \
18601 hardcode_libdir_flag_spec_ld_CXX \
18602 hardcode_libdir_separator_CXX \
18603 fix_srcfile_path_CXX \
18604 exclude_expsyms_CXX \
18605 include_expsyms_CXX \
18606 file_list_spec_CXX \
18607 compiler_lib_search_dirs_CXX \
18608 predep_objects_CXX \
18609 postdep_objects_CXX \
18610 predeps_CXX \
18611 postdeps_CXX \
18612 compiler_lib_search_path_CXX; do
18613 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18614 *[\\\\\\\`\\"\\\$]*)
18615 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18618 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18620 esac
18621 done
18623 # Double-quote double-evaled strings.
18624 for var in reload_cmds \
18625 old_postinstall_cmds \
18626 old_postuninstall_cmds \
18627 old_archive_cmds \
18628 extract_expsyms_cmds \
18629 old_archive_from_new_cmds \
18630 old_archive_from_expsyms_cmds \
18631 archive_cmds \
18632 archive_expsym_cmds \
18633 module_cmds \
18634 module_expsym_cmds \
18635 export_symbols_cmds \
18636 prelink_cmds \
18637 postinstall_cmds \
18638 postuninstall_cmds \
18639 finish_cmds \
18640 sys_lib_search_path_spec \
18641 sys_lib_dlsearch_path_spec \
18642 reload_cmds_CXX \
18643 old_archive_cmds_CXX \
18644 old_archive_from_new_cmds_CXX \
18645 old_archive_from_expsyms_cmds_CXX \
18646 archive_cmds_CXX \
18647 archive_expsym_cmds_CXX \
18648 module_cmds_CXX \
18649 module_expsym_cmds_CXX \
18650 export_symbols_cmds_CXX \
18651 prelink_cmds_CXX; do
18652 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18653 *[\\\\\\\`\\"\\\$]*)
18654 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18657 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18659 esac
18660 done
18662 ac_aux_dir='$ac_aux_dir'
18663 xsi_shell='$xsi_shell'
18664 lt_shell_append='$lt_shell_append'
18666 # See if we are running on zsh, and set the options which allow our
18667 # commands through without removal of \ escapes INIT.
18668 if test -n "\${ZSH_VERSION+set}" ; then
18669 setopt NO_GLOB_SUBST
18673 PACKAGE='$PACKAGE'
18674 VERSION='$VERSION'
18675 TIMESTAMP='$TIMESTAMP'
18676 RM='$RM'
18677 ofile='$ofile'
18684 GCC="$GCC"
18685 CC="$CC"
18686 acx_cv_header_stdint="$acx_cv_header_stdint"
18687 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18688 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18689 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18690 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18691 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18692 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18693 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18694 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18695 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18696 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18697 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18698 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18699 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18702 _ACEOF
18704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706 # Handling of arguments.
18707 for ac_config_target in $ac_config_targets
18709 case $ac_config_target in
18710 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18711 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18712 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18713 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18714 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18715 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18716 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18717 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18719 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18720 esac
18721 done
18724 # If the user did not use the arguments to specify the items to instantiate,
18725 # then the envvar interface is used. Set only those that are not.
18726 # We use the long form for the default assignment because of an extremely
18727 # bizarre bug on SunOS 4.1.3.
18728 if $ac_need_defaults; then
18729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18734 # Have a temporary directory for convenience. Make it in the build tree
18735 # simply because there is no reason against having it here, and in addition,
18736 # creating and moving files from /tmp can sometimes cause problems.
18737 # Hook for its removal unless debugging.
18738 # Note that there is a small window in which the directory will not be cleaned:
18739 # after its creation but before its name has been assigned to `$tmp'.
18740 $debug ||
18742 tmp=
18743 trap 'exit_status=$?
18744 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18746 trap 'as_fn_exit 1' 1 2 13 15
18748 # Create a (secure) tmp directory for tmp files.
18751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18752 test -n "$tmp" && test -d "$tmp"
18753 } ||
18755 tmp=./conf$$-$RANDOM
18756 (umask 077 && mkdir "$tmp")
18757 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18759 # Set up the scripts for CONFIG_FILES section.
18760 # No need to generate them if there are no CONFIG_FILES.
18761 # This happens for instance with `./config.status config.h'.
18762 if test -n "$CONFIG_FILES"; then
18765 ac_cr=`echo X | tr X '\015'`
18766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18767 # But we know of no other shell where ac_cr would be empty at this
18768 # point, so we can use a bashism as a fallback.
18769 if test "x$ac_cr" = x; then
18770 eval ac_cr=\$\'\\r\'
18772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18774 ac_cs_awk_cr='\r'
18775 else
18776 ac_cs_awk_cr=$ac_cr
18779 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18780 _ACEOF
18784 echo "cat >conf$$subs.awk <<_ACEOF" &&
18785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18786 echo "_ACEOF"
18787 } >conf$$subs.sh ||
18788 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18790 ac_delim='%!_!# '
18791 for ac_last_try in false false false false false :; do
18792 . ./conf$$subs.sh ||
18793 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18795 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18796 if test $ac_delim_n = $ac_delim_num; then
18797 break
18798 elif $ac_last_try; then
18799 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18800 else
18801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18803 done
18804 rm -f conf$$subs.sh
18806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18807 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18808 _ACEOF
18809 sed -n '
18811 s/^/S["/; s/!.*/"]=/
18814 s/^[^!]*!//
18815 :repl
18816 t repl
18817 s/'"$ac_delim"'$//
18818 t delim
18821 s/\(.\{148\}\).*/\1/
18822 t more1
18823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18826 b repl
18827 :more1
18828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18831 s/.\{148\}//
18832 t nl
18833 :delim
18835 s/\(.\{148\}\).*/\1/
18836 t more2
18837 s/["\\]/\\&/g; s/^/"/; s/$/"/
18840 :more2
18841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18844 s/.\{148\}//
18845 t delim
18846 ' <conf$$subs.awk | sed '
18847 /^[^""]/{
18849 s/\n//
18851 ' >>$CONFIG_STATUS || ac_write_fail=1
18852 rm -f conf$$subs.awk
18853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18854 _ACAWK
18855 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18856 for (key in S) S_is_set[key] = 1
18857 FS = "\a"
18861 line = $ 0
18862 nfields = split(line, field, "@")
18863 substed = 0
18864 len = length(field[1])
18865 for (i = 2; i < nfields; i++) {
18866 key = field[i]
18867 keylen = length(key)
18868 if (S_is_set[key]) {
18869 value = S[key]
18870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18871 len += length(value) + length(field[++i])
18872 substed = 1
18873 } else
18874 len += 1 + keylen
18877 print line
18880 _ACAWK
18881 _ACEOF
18882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18885 else
18887 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18888 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18889 _ACEOF
18891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18893 # trailing colons and then remove the whole line if VPATH becomes empty
18894 # (actually we leave an empty line to preserve line numbers).
18895 if test "x$srcdir" = x.; then
18896 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18897 s/:*\$(srcdir):*/:/
18898 s/:*\${srcdir}:*/:/
18899 s/:*@srcdir@:*/:/
18900 s/^\([^=]*=[ ]*\):*/\1/
18901 s/:*$//
18902 s/^[^=]*=[ ]*$//
18906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18907 fi # test -n "$CONFIG_FILES"
18909 # Set up the scripts for CONFIG_HEADERS section.
18910 # No need to generate them if there are no CONFIG_HEADERS.
18911 # This happens for instance with `./config.status Makefile'.
18912 if test -n "$CONFIG_HEADERS"; then
18913 cat >"$tmp/defines.awk" <<\_ACAWK ||
18914 BEGIN {
18915 _ACEOF
18917 # Transform confdefs.h into an awk script `defines.awk', embedded as
18918 # here-document in config.status, that substitutes the proper values into
18919 # config.h.in to produce config.h.
18921 # Create a delimiter string that does not exist in confdefs.h, to ease
18922 # handling of long lines.
18923 ac_delim='%!_!# '
18924 for ac_last_try in false false :; do
18925 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18926 if test -z "$ac_t"; then
18927 break
18928 elif $ac_last_try; then
18929 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18930 else
18931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18933 done
18935 # For the awk script, D is an array of macro values keyed by name,
18936 # likewise P contains macro parameters if any. Preserve backslash
18937 # newline sequences.
18939 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18940 sed -n '
18941 s/.\{148\}/&'"$ac_delim"'/g
18942 t rset
18943 :rset
18944 s/^[ ]*#[ ]*define[ ][ ]*/ /
18945 t def
18947 :def
18948 s/\\$//
18949 t bsnl
18950 s/["\\]/\\&/g
18951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18952 D["\1"]=" \3"/p
18953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18955 :bsnl
18956 s/["\\]/\\&/g
18957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18958 D["\1"]=" \3\\\\\\n"\\/p
18959 t cont
18960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18961 t cont
18963 :cont
18965 s/.\{148\}/&'"$ac_delim"'/g
18966 t clear
18967 :clear
18968 s/\\$//
18969 t bsnlc
18970 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18972 :bsnlc
18973 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18974 b cont
18975 ' <confdefs.h | sed '
18976 s/'"$ac_delim"'/"\\\
18977 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18980 for (key in D) D_is_set[key] = 1
18981 FS = "\a"
18983 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18984 line = \$ 0
18985 split(line, arg, " ")
18986 if (arg[1] == "#") {
18987 defundef = arg[2]
18988 mac1 = arg[3]
18989 } else {
18990 defundef = substr(arg[1], 2)
18991 mac1 = arg[2]
18993 split(mac1, mac2, "(") #)
18994 macro = mac2[1]
18995 prefix = substr(line, 1, index(line, defundef) - 1)
18996 if (D_is_set[macro]) {
18997 # Preserve the white space surrounding the "#".
18998 print prefix "define", macro P[macro] D[macro]
18999 next
19000 } else {
19001 # Replace #undef with comments. This is necessary, for example,
19002 # in the case of _POSIX_SOURCE, which is predefined and required
19003 # on some systems where configure will not decide to define it.
19004 if (defundef == "undef") {
19005 print "/*", prefix defundef, macro, "*/"
19006 next
19010 { print }
19011 _ACAWK
19012 _ACEOF
19013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19015 fi # test -n "$CONFIG_HEADERS"
19018 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19019 shift
19020 for ac_tag
19022 case $ac_tag in
19023 :[FHLC]) ac_mode=$ac_tag; continue;;
19024 esac
19025 case $ac_mode$ac_tag in
19026 :[FHL]*:*);;
19027 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19028 :[FH]-) ac_tag=-:-;;
19029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19030 esac
19031 ac_save_IFS=$IFS
19032 IFS=:
19033 set x $ac_tag
19034 IFS=$ac_save_IFS
19035 shift
19036 ac_file=$1
19037 shift
19039 case $ac_mode in
19040 :L) ac_source=$1;;
19041 :[FH])
19042 ac_file_inputs=
19043 for ac_f
19045 case $ac_f in
19046 -) ac_f="$tmp/stdin";;
19047 *) # Look for the file first in the build tree, then in the source tree
19048 # (if the path is not absolute). The absolute path cannot be DOS-style,
19049 # because $ac_f cannot contain `:'.
19050 test -f "$ac_f" ||
19051 case $ac_f in
19052 [\\/$]*) false;;
19053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19054 esac ||
19055 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19056 esac
19057 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19058 as_fn_append ac_file_inputs " '$ac_f'"
19059 done
19061 # Let's still pretend it is `configure' which instantiates (i.e., don't
19062 # use $as_me), people would be surprised to read:
19063 # /* config.h. Generated by config.status. */
19064 configure_input='Generated from '`
19065 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19066 `' by configure.'
19067 if test x"$ac_file" != x-; then
19068 configure_input="$ac_file. $configure_input"
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19070 $as_echo "$as_me: creating $ac_file" >&6;}
19072 # Neutralize special characters interpreted by sed in replacement strings.
19073 case $configure_input in #(
19074 *\&* | *\|* | *\\* )
19075 ac_sed_conf_input=`$as_echo "$configure_input" |
19076 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19077 *) ac_sed_conf_input=$configure_input;;
19078 esac
19080 case $ac_tag in
19081 *:-:* | *:-) cat >"$tmp/stdin" \
19082 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19083 esac
19085 esac
19087 ac_dir=`$as_dirname -- "$ac_file" ||
19088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19089 X"$ac_file" : 'X\(//\)[^/]' \| \
19090 X"$ac_file" : 'X\(//\)$' \| \
19091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19092 $as_echo X"$ac_file" |
19093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19094 s//\1/
19097 /^X\(\/\/\)[^/].*/{
19098 s//\1/
19101 /^X\(\/\/\)$/{
19102 s//\1/
19105 /^X\(\/\).*/{
19106 s//\1/
19109 s/.*/./; q'`
19110 as_dir="$ac_dir"; as_fn_mkdir_p
19111 ac_builddir=.
19113 case "$ac_dir" in
19114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19117 # A ".." for each directory in $ac_dir_suffix.
19118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19119 case $ac_top_builddir_sub in
19120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19122 esac ;;
19123 esac
19124 ac_abs_top_builddir=$ac_pwd
19125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19126 # for backward compatibility:
19127 ac_top_builddir=$ac_top_build_prefix
19129 case $srcdir in
19130 .) # We are building in place.
19131 ac_srcdir=.
19132 ac_top_srcdir=$ac_top_builddir_sub
19133 ac_abs_top_srcdir=$ac_pwd ;;
19134 [\\/]* | ?:[\\/]* ) # Absolute name.
19135 ac_srcdir=$srcdir$ac_dir_suffix;
19136 ac_top_srcdir=$srcdir
19137 ac_abs_top_srcdir=$srcdir ;;
19138 *) # Relative name.
19139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19140 ac_top_srcdir=$ac_top_build_prefix$srcdir
19141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19142 esac
19143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19146 case $ac_mode in
19149 # CONFIG_FILE
19152 case $INSTALL in
19153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19154 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19155 esac
19156 ac_MKDIR_P=$MKDIR_P
19157 case $MKDIR_P in
19158 [\\/$]* | ?:[\\/]* ) ;;
19159 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19160 esac
19161 _ACEOF
19163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19164 # If the template does not know about datarootdir, expand it.
19165 # FIXME: This hack should be removed a few years after 2.60.
19166 ac_datarootdir_hack=; ac_datarootdir_seen=
19167 ac_sed_dataroot='
19168 /datarootdir/ {
19172 /@datadir@/p
19173 /@docdir@/p
19174 /@infodir@/p
19175 /@localedir@/p
19176 /@mandir@/p'
19177 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19178 *datarootdir*) ac_datarootdir_seen=yes;;
19179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19181 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19182 _ACEOF
19183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19184 ac_datarootdir_hack='
19185 s&@datadir@&$datadir&g
19186 s&@docdir@&$docdir&g
19187 s&@infodir@&$infodir&g
19188 s&@localedir@&$localedir&g
19189 s&@mandir@&$mandir&g
19190 s&\\\${datarootdir}&$datarootdir&g' ;;
19191 esac
19192 _ACEOF
19194 # Neutralize VPATH when `$srcdir' = `.'.
19195 # Shell code in configure.ac might set extrasub.
19196 # FIXME: do we really want to maintain this feature?
19197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19198 ac_sed_extra="$ac_vpsub
19199 $extrasub
19200 _ACEOF
19201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19204 s|@configure_input@|$ac_sed_conf_input|;t t
19205 s&@top_builddir@&$ac_top_builddir_sub&;t t
19206 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19207 s&@srcdir@&$ac_srcdir&;t t
19208 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19209 s&@top_srcdir@&$ac_top_srcdir&;t t
19210 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19211 s&@builddir@&$ac_builddir&;t t
19212 s&@abs_builddir@&$ac_abs_builddir&;t t
19213 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19214 s&@INSTALL@&$ac_INSTALL&;t t
19215 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19216 $ac_datarootdir_hack
19218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19219 || as_fn_error "could not create $ac_file" "$LINENO" 5
19221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19222 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19225 which seems to be undefined. Please make sure it is defined." >&5
19226 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19227 which seems to be undefined. Please make sure it is defined." >&2;}
19229 rm -f "$tmp/stdin"
19230 case $ac_file in
19231 -) cat "$tmp/out" && rm -f "$tmp/out";;
19232 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19233 esac \
19234 || as_fn_error "could not create $ac_file" "$LINENO" 5
19238 # CONFIG_HEADER
19240 if test x"$ac_file" != x-; then
19242 $as_echo "/* $configure_input */" \
19243 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19244 } >"$tmp/config.h" \
19245 || as_fn_error "could not create $ac_file" "$LINENO" 5
19246 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19248 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19249 else
19250 rm -f "$ac_file"
19251 mv "$tmp/config.h" "$ac_file" \
19252 || as_fn_error "could not create $ac_file" "$LINENO" 5
19254 else
19255 $as_echo "/* $configure_input */" \
19256 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19257 || as_fn_error "could not create -" "$LINENO" 5
19259 # Compute "$ac_file"'s index in $config_headers.
19260 _am_arg="$ac_file"
19261 _am_stamp_count=1
19262 for _am_header in $config_headers :; do
19263 case $_am_header in
19264 $_am_arg | $_am_arg:* )
19265 break ;;
19267 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19268 esac
19269 done
19270 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19271 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19272 X"$_am_arg" : 'X\(//\)[^/]' \| \
19273 X"$_am_arg" : 'X\(//\)$' \| \
19274 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19275 $as_echo X"$_am_arg" |
19276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19277 s//\1/
19280 /^X\(\/\/\)[^/].*/{
19281 s//\1/
19284 /^X\(\/\/\)$/{
19285 s//\1/
19288 /^X\(\/\).*/{
19289 s//\1/
19292 s/.*/./; q'`/stamp-h$_am_stamp_count
19295 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19296 $as_echo "$as_me: executing $ac_file commands" >&6;}
19298 esac
19301 case $ac_file$ac_mode in
19302 "default-1":C)
19303 # Only add multilib support code if we just rebuilt the top-level
19304 # Makefile.
19305 case " $CONFIG_FILES " in
19306 *" Makefile "*)
19307 ac_file=Makefile . ${multi_basedir}/config-ml.in
19309 esac ;;
19310 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19311 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19312 # are listed without --file. Let's play safe and only enable the eval
19313 # if we detect the quoting.
19314 case $CONFIG_FILES in
19315 *\'*) eval set x "$CONFIG_FILES" ;;
19316 *) set x $CONFIG_FILES ;;
19317 esac
19318 shift
19319 for mf
19321 # Strip MF so we end up with the name of the file.
19322 mf=`echo "$mf" | sed -e 's/:.*$//'`
19323 # Check whether this is an Automake generated Makefile or not.
19324 # We used to match only the files named `Makefile.in', but
19325 # some people rename them; so instead we look at the file content.
19326 # Grep'ing the first line is not enough: some people post-process
19327 # each Makefile.in and add a new line on top of each file to say so.
19328 # Grep'ing the whole file is not good either: AIX grep has a line
19329 # limit of 2048, but all sed's we know have understand at least 4000.
19330 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19331 dirpart=`$as_dirname -- "$mf" ||
19332 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19333 X"$mf" : 'X\(//\)[^/]' \| \
19334 X"$mf" : 'X\(//\)$' \| \
19335 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19336 $as_echo X"$mf" |
19337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19338 s//\1/
19341 /^X\(\/\/\)[^/].*/{
19342 s//\1/
19345 /^X\(\/\/\)$/{
19346 s//\1/
19349 /^X\(\/\).*/{
19350 s//\1/
19353 s/.*/./; q'`
19354 else
19355 continue
19357 # Extract the definition of DEPDIR, am__include, and am__quote
19358 # from the Makefile without running `make'.
19359 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19360 test -z "$DEPDIR" && continue
19361 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19362 test -z "am__include" && continue
19363 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19364 # When using ansi2knr, U may be empty or an underscore; expand it
19365 U=`sed -n 's/^U = //p' < "$mf"`
19366 # Find all dependency output files, they are included files with
19367 # $(DEPDIR) in their names. We invoke sed twice because it is the
19368 # simplest approach to changing $(DEPDIR) to its actual value in the
19369 # expansion.
19370 for file in `sed -n "
19371 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19372 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19373 # Make sure the directory exists.
19374 test -f "$dirpart/$file" && continue
19375 fdir=`$as_dirname -- "$file" ||
19376 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19377 X"$file" : 'X\(//\)[^/]' \| \
19378 X"$file" : 'X\(//\)$' \| \
19379 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19380 $as_echo X"$file" |
19381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19382 s//\1/
19385 /^X\(\/\/\)[^/].*/{
19386 s//\1/
19389 /^X\(\/\/\)$/{
19390 s//\1/
19393 /^X\(\/\).*/{
19394 s//\1/
19397 s/.*/./; q'`
19398 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19399 # echo "creating $dirpart/$file"
19400 echo '# dummy' > "$dirpart/$file"
19401 done
19402 done
19405 "libtool":C)
19407 # See if we are running on zsh, and set the options which allow our
19408 # commands through without removal of \ escapes.
19409 if test -n "${ZSH_VERSION+set}" ; then
19410 setopt NO_GLOB_SUBST
19413 cfgfile="${ofile}T"
19414 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19415 $RM "$cfgfile"
19417 cat <<_LT_EOF >> "$cfgfile"
19418 #! $SHELL
19420 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19421 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19423 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19425 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19426 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19427 # Written by Gordon Matzigkeit, 1996
19429 # This file is part of GNU Libtool.
19431 # GNU Libtool is free software; you can redistribute it and/or
19432 # modify it under the terms of the GNU General Public License as
19433 # published by the Free Software Foundation; either version 2 of
19434 # the License, or (at your option) any later version.
19436 # As a special exception to the GNU General Public License,
19437 # if you distribute this file as part of a program or library that
19438 # is built using GNU Libtool, you may include this file under the
19439 # same distribution terms that you use for the rest of that program.
19441 # GNU Libtool is distributed in the hope that it will be useful,
19442 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19443 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19444 # GNU General Public License for more details.
19446 # You should have received a copy of the GNU General Public License
19447 # along with GNU Libtool; see the file COPYING. If not, a copy
19448 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19449 # obtained by writing to the Free Software Foundation, Inc.,
19450 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19453 # The names of the tagged configurations supported by this script.
19454 available_tags="CXX "
19456 # ### BEGIN LIBTOOL CONFIG
19458 # Which release of libtool.m4 was used?
19459 macro_version=$macro_version
19460 macro_revision=$macro_revision
19462 # Whether or not to build shared libraries.
19463 build_libtool_libs=$enable_shared
19465 # Whether or not to build static libraries.
19466 build_old_libs=$enable_static
19468 # What type of objects to build.
19469 pic_mode=$pic_mode
19471 # Whether or not to optimize for fast installation.
19472 fast_install=$enable_fast_install
19474 # Shell to use when invoking shell scripts.
19475 SHELL=$lt_SHELL
19477 # An echo program that protects backslashes.
19478 ECHO=$lt_ECHO
19480 # The host system.
19481 host_alias=$host_alias
19482 host=$host
19483 host_os=$host_os
19485 # The build system.
19486 build_alias=$build_alias
19487 build=$build
19488 build_os=$build_os
19490 # A sed program that does not truncate output.
19491 SED=$lt_SED
19493 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19494 Xsed="\$SED -e 1s/^X//"
19496 # A grep program that handles long lines.
19497 GREP=$lt_GREP
19499 # An ERE matcher.
19500 EGREP=$lt_EGREP
19502 # A literal string matcher.
19503 FGREP=$lt_FGREP
19505 # A BSD- or MS-compatible name lister.
19506 NM=$lt_NM
19508 # Whether we need soft or hard links.
19509 LN_S=$lt_LN_S
19511 # What is the maximum length of a command?
19512 max_cmd_len=$max_cmd_len
19514 # Object file suffix (normally "o").
19515 objext=$ac_objext
19517 # Executable file suffix (normally "").
19518 exeext=$exeext
19520 # whether the shell understands "unset".
19521 lt_unset=$lt_unset
19523 # turn spaces into newlines.
19524 SP2NL=$lt_lt_SP2NL
19526 # turn newlines into spaces.
19527 NL2SP=$lt_lt_NL2SP
19529 # An object symbol dumper.
19530 OBJDUMP=$lt_OBJDUMP
19532 # Method to check whether dependent libraries are shared objects.
19533 deplibs_check_method=$lt_deplibs_check_method
19535 # Command to use when deplibs_check_method == "file_magic".
19536 file_magic_cmd=$lt_file_magic_cmd
19538 # The archiver.
19539 AR=$lt_AR
19540 AR_FLAGS=$lt_AR_FLAGS
19542 # A symbol stripping program.
19543 STRIP=$lt_STRIP
19545 # Commands used to install an old-style archive.
19546 RANLIB=$lt_RANLIB
19547 old_postinstall_cmds=$lt_old_postinstall_cmds
19548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19550 # Whether to use a lock for old archive extraction.
19551 lock_old_archive_extraction=$lock_old_archive_extraction
19553 # A C compiler.
19554 LTCC=$lt_CC
19556 # LTCC compiler flags.
19557 LTCFLAGS=$lt_CFLAGS
19559 # Take the output of nm and produce a listing of raw symbols and C names.
19560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19562 # Transform the output of nm in a proper C declaration.
19563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19565 # Transform the output of nm in a C name address pair.
19566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19568 # Transform the output of nm in a C name address pair when lib prefix is needed.
19569 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19571 # The name of the directory that contains temporary libtool files.
19572 objdir=$objdir
19574 # Used to examine libraries when file_magic_cmd begins with "file".
19575 MAGIC_CMD=$MAGIC_CMD
19577 # Must we lock files when doing compilation?
19578 need_locks=$lt_need_locks
19580 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19581 DSYMUTIL=$lt_DSYMUTIL
19583 # Tool to change global to local symbols on Mac OS X.
19584 NMEDIT=$lt_NMEDIT
19586 # Tool to manipulate fat objects and archives on Mac OS X.
19587 LIPO=$lt_LIPO
19589 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19590 OTOOL=$lt_OTOOL
19592 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19593 OTOOL64=$lt_OTOOL64
19595 # Old archive suffix (normally "a").
19596 libext=$libext
19598 # Shared library suffix (normally ".so").
19599 shrext_cmds=$lt_shrext_cmds
19601 # The commands to extract the exported symbol list from a shared archive.
19602 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19604 # Variables whose values should be saved in libtool wrapper scripts and
19605 # restored at link time.
19606 variables_saved_for_relink=$lt_variables_saved_for_relink
19608 # Do we need the "lib" prefix for modules?
19609 need_lib_prefix=$need_lib_prefix
19611 # Do we need a version for libraries?
19612 need_version=$need_version
19614 # Library versioning type.
19615 version_type=$version_type
19617 # Shared library runtime path variable.
19618 runpath_var=$runpath_var
19620 # Shared library path variable.
19621 shlibpath_var=$shlibpath_var
19623 # Is shlibpath searched before the hard-coded library search path?
19624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19626 # Format of library name prefix.
19627 libname_spec=$lt_libname_spec
19629 # List of archive names. First name is the real one, the rest are links.
19630 # The last name is the one that the linker finds with -lNAME
19631 library_names_spec=$lt_library_names_spec
19633 # The coded name of the library, if different from the real name.
19634 soname_spec=$lt_soname_spec
19636 # Permission mode override for installation of shared libraries.
19637 install_override_mode=$lt_install_override_mode
19639 # Command to use after installation of a shared archive.
19640 postinstall_cmds=$lt_postinstall_cmds
19642 # Command to use after uninstallation of a shared archive.
19643 postuninstall_cmds=$lt_postuninstall_cmds
19645 # Commands used to finish a libtool library installation in a directory.
19646 finish_cmds=$lt_finish_cmds
19648 # As "finish_cmds", except a single script fragment to be evaled but
19649 # not shown.
19650 finish_eval=$lt_finish_eval
19652 # Whether we should hardcode library paths into libraries.
19653 hardcode_into_libs=$hardcode_into_libs
19655 # Compile-time system search path for libraries.
19656 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19658 # Run-time system search path for libraries.
19659 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19661 # Whether dlopen is supported.
19662 dlopen_support=$enable_dlopen
19664 # Whether dlopen of programs is supported.
19665 dlopen_self=$enable_dlopen_self
19667 # Whether dlopen of statically linked programs is supported.
19668 dlopen_self_static=$enable_dlopen_self_static
19670 # Commands to strip libraries.
19671 old_striplib=$lt_old_striplib
19672 striplib=$lt_striplib
19675 # The linker used to build libraries.
19676 LD=$lt_LD
19678 # How to create reloadable object files.
19679 reload_flag=$lt_reload_flag
19680 reload_cmds=$lt_reload_cmds
19682 # Commands used to build an old-style archive.
19683 old_archive_cmds=$lt_old_archive_cmds
19685 # A language specific compiler.
19686 CC=$lt_compiler
19688 # Is the compiler the GNU compiler?
19689 with_gcc=$GCC
19691 # Compiler flag to turn off builtin functions.
19692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19694 # How to pass a linker flag through the compiler.
19695 wl=$lt_lt_prog_compiler_wl
19697 # Additional compiler flags for building library objects.
19698 pic_flag=$lt_lt_prog_compiler_pic
19700 # Compiler flag to prevent dynamic linking.
19701 link_static_flag=$lt_lt_prog_compiler_static
19703 # Does compiler simultaneously support -c and -o options?
19704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19706 # Whether or not to add -lc for building shared libraries.
19707 build_libtool_need_lc=$archive_cmds_need_lc
19709 # Whether or not to disallow shared libs when runtime libs are static.
19710 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19712 # Compiler flag to allow reflexive dlopens.
19713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19715 # Compiler flag to generate shared objects directly from archives.
19716 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19718 # Whether the compiler copes with passing no objects directly.
19719 compiler_needs_object=$lt_compiler_needs_object
19721 # Create an old-style archive from a shared archive.
19722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19724 # Create a temporary old-style archive to link instead of a shared archive.
19725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19727 # Commands used to build a shared archive.
19728 archive_cmds=$lt_archive_cmds
19729 archive_expsym_cmds=$lt_archive_expsym_cmds
19731 # Commands used to build a loadable module if different from building
19732 # a shared archive.
19733 module_cmds=$lt_module_cmds
19734 module_expsym_cmds=$lt_module_expsym_cmds
19736 # Whether we are building with GNU ld or not.
19737 with_gnu_ld=$lt_with_gnu_ld
19739 # Flag that allows shared libraries with undefined symbols to be built.
19740 allow_undefined_flag=$lt_allow_undefined_flag
19742 # Flag that enforces no undefined symbols.
19743 no_undefined_flag=$lt_no_undefined_flag
19745 # Flag to hardcode \$libdir into a binary during linking.
19746 # This must work even if \$libdir does not exist
19747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19749 # If ld is used when linking, flag to hardcode \$libdir into a binary
19750 # during linking. This must work even if \$libdir does not exist.
19751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19753 # Whether we need a single "-rpath" flag with a separated argument.
19754 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19756 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19757 # DIR into the resulting binary.
19758 hardcode_direct=$hardcode_direct
19760 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19761 # DIR into the resulting binary and the resulting library dependency is
19762 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19763 # library is relocated.
19764 hardcode_direct_absolute=$hardcode_direct_absolute
19766 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19767 # into the resulting binary.
19768 hardcode_minus_L=$hardcode_minus_L
19770 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19771 # into the resulting binary.
19772 hardcode_shlibpath_var=$hardcode_shlibpath_var
19774 # Set to "yes" if building a shared library automatically hardcodes DIR
19775 # into the library and all subsequent libraries and executables linked
19776 # against it.
19777 hardcode_automatic=$hardcode_automatic
19779 # Set to yes if linker adds runtime paths of dependent libraries
19780 # to runtime path list.
19781 inherit_rpath=$inherit_rpath
19783 # Whether libtool must link a program against all its dependency libraries.
19784 link_all_deplibs=$link_all_deplibs
19786 # Fix the shell variable \$srcfile for the compiler.
19787 fix_srcfile_path=$lt_fix_srcfile_path
19789 # Set to "yes" if exported symbols are required.
19790 always_export_symbols=$always_export_symbols
19792 # The commands to list exported symbols.
19793 export_symbols_cmds=$lt_export_symbols_cmds
19795 # Symbols that should not be listed in the preloaded symbols.
19796 exclude_expsyms=$lt_exclude_expsyms
19798 # Symbols that must always be exported.
19799 include_expsyms=$lt_include_expsyms
19801 # Commands necessary for linking programs (against libraries) with templates.
19802 prelink_cmds=$lt_prelink_cmds
19804 # Specify filename containing input files.
19805 file_list_spec=$lt_file_list_spec
19807 # How to hardcode a shared library path into an executable.
19808 hardcode_action=$hardcode_action
19810 # The directories searched by this compiler when creating a shared library.
19811 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19813 # Dependencies to place before and after the objects being linked to
19814 # create a shared library.
19815 predep_objects=$lt_predep_objects
19816 postdep_objects=$lt_postdep_objects
19817 predeps=$lt_predeps
19818 postdeps=$lt_postdeps
19820 # The library search path used internally by the compiler when linking
19821 # a shared library.
19822 compiler_lib_search_path=$lt_compiler_lib_search_path
19824 # ### END LIBTOOL CONFIG
19826 _LT_EOF
19828 case $host_os in
19829 aix3*)
19830 cat <<\_LT_EOF >> "$cfgfile"
19831 # AIX sometimes has problems with the GCC collect2 program. For some
19832 # reason, if we set the COLLECT_NAMES environment variable, the problems
19833 # vanish in a puff of smoke.
19834 if test "X${COLLECT_NAMES+set}" != Xset; then
19835 COLLECT_NAMES=
19836 export COLLECT_NAMES
19838 _LT_EOF
19840 esac
19843 ltmain="$ac_aux_dir/ltmain.sh"
19846 # We use sed instead of cat because bash on DJGPP gets confused if
19847 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19848 # text mode, it properly converts lines to CR/LF. This bash problem
19849 # is reportedly fixed, but why not run on old versions too?
19850 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19851 || (rm -f "$cfgfile"; exit 1)
19853 case $xsi_shell in
19854 yes)
19855 cat << \_LT_EOF >> "$cfgfile"
19857 # func_dirname file append nondir_replacement
19858 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19859 # otherwise set result to NONDIR_REPLACEMENT.
19860 func_dirname ()
19862 case ${1} in
19863 */*) func_dirname_result="${1%/*}${2}" ;;
19864 * ) func_dirname_result="${3}" ;;
19865 esac
19868 # func_basename file
19869 func_basename ()
19871 func_basename_result="${1##*/}"
19874 # func_dirname_and_basename file append nondir_replacement
19875 # perform func_basename and func_dirname in a single function
19876 # call:
19877 # dirname: Compute the dirname of FILE. If nonempty,
19878 # add APPEND to the result, otherwise set result
19879 # to NONDIR_REPLACEMENT.
19880 # value returned in "$func_dirname_result"
19881 # basename: Compute filename of FILE.
19882 # value retuned in "$func_basename_result"
19883 # Implementation must be kept synchronized with func_dirname
19884 # and func_basename. For efficiency, we do not delegate to
19885 # those functions but instead duplicate the functionality here.
19886 func_dirname_and_basename ()
19888 case ${1} in
19889 */*) func_dirname_result="${1%/*}${2}" ;;
19890 * ) func_dirname_result="${3}" ;;
19891 esac
19892 func_basename_result="${1##*/}"
19895 # func_stripname prefix suffix name
19896 # strip PREFIX and SUFFIX off of NAME.
19897 # PREFIX and SUFFIX must not contain globbing or regex special
19898 # characters, hashes, percent signs, but SUFFIX may contain a leading
19899 # dot (in which case that matches only a dot).
19900 func_stripname ()
19902 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19903 # positional parameters, so assign one to ordinary parameter first.
19904 func_stripname_result=${3}
19905 func_stripname_result=${func_stripname_result#"${1}"}
19906 func_stripname_result=${func_stripname_result%"${2}"}
19909 # func_opt_split
19910 func_opt_split ()
19912 func_opt_split_opt=${1%%=*}
19913 func_opt_split_arg=${1#*=}
19916 # func_lo2o object
19917 func_lo2o ()
19919 case ${1} in
19920 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19921 *) func_lo2o_result=${1} ;;
19922 esac
19925 # func_xform libobj-or-source
19926 func_xform ()
19928 func_xform_result=${1%.*}.lo
19931 # func_arith arithmetic-term...
19932 func_arith ()
19934 func_arith_result=$(( $* ))
19937 # func_len string
19938 # STRING may not start with a hyphen.
19939 func_len ()
19941 func_len_result=${#1}
19944 _LT_EOF
19946 *) # Bourne compatible functions.
19947 cat << \_LT_EOF >> "$cfgfile"
19949 # func_dirname file append nondir_replacement
19950 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19951 # otherwise set result to NONDIR_REPLACEMENT.
19952 func_dirname ()
19954 # Extract subdirectory from the argument.
19955 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19956 if test "X$func_dirname_result" = "X${1}"; then
19957 func_dirname_result="${3}"
19958 else
19959 func_dirname_result="$func_dirname_result${2}"
19963 # func_basename file
19964 func_basename ()
19966 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19970 # func_stripname prefix suffix name
19971 # strip PREFIX and SUFFIX off of NAME.
19972 # PREFIX and SUFFIX must not contain globbing or regex special
19973 # characters, hashes, percent signs, but SUFFIX may contain a leading
19974 # dot (in which case that matches only a dot).
19975 # func_strip_suffix prefix name
19976 func_stripname ()
19978 case ${2} in
19979 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19980 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19981 esac
19984 # sed scripts:
19985 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19986 my_sed_long_arg='1s/^-[^=]*=//'
19988 # func_opt_split
19989 func_opt_split ()
19991 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19992 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19995 # func_lo2o object
19996 func_lo2o ()
19998 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20001 # func_xform libobj-or-source
20002 func_xform ()
20004 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20007 # func_arith arithmetic-term...
20008 func_arith ()
20010 func_arith_result=`expr "$@"`
20013 # func_len string
20014 # STRING may not start with a hyphen.
20015 func_len ()
20017 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20020 _LT_EOF
20021 esac
20023 case $lt_shell_append in
20024 yes)
20025 cat << \_LT_EOF >> "$cfgfile"
20027 # func_append var value
20028 # Append VALUE to the end of shell variable VAR.
20029 func_append ()
20031 eval "$1+=\$2"
20033 _LT_EOF
20036 cat << \_LT_EOF >> "$cfgfile"
20038 # func_append var value
20039 # Append VALUE to the end of shell variable VAR.
20040 func_append ()
20042 eval "$1=\$$1\$2"
20045 _LT_EOF
20047 esac
20050 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20051 || (rm -f "$cfgfile"; exit 1)
20053 mv -f "$cfgfile" "$ofile" ||
20054 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20055 chmod +x "$ofile"
20058 cat <<_LT_EOF >> "$ofile"
20060 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20062 # The linker used to build libraries.
20063 LD=$lt_LD_CXX
20065 # How to create reloadable object files.
20066 reload_flag=$lt_reload_flag_CXX
20067 reload_cmds=$lt_reload_cmds_CXX
20069 # Commands used to build an old-style archive.
20070 old_archive_cmds=$lt_old_archive_cmds_CXX
20072 # A language specific compiler.
20073 CC=$lt_compiler_CXX
20075 # Is the compiler the GNU compiler?
20076 with_gcc=$GCC_CXX
20078 # Compiler flag to turn off builtin functions.
20079 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20081 # How to pass a linker flag through the compiler.
20082 wl=$lt_lt_prog_compiler_wl_CXX
20084 # Additional compiler flags for building library objects.
20085 pic_flag=$lt_lt_prog_compiler_pic_CXX
20087 # Compiler flag to prevent dynamic linking.
20088 link_static_flag=$lt_lt_prog_compiler_static_CXX
20090 # Does compiler simultaneously support -c and -o options?
20091 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20093 # Whether or not to add -lc for building shared libraries.
20094 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20096 # Whether or not to disallow shared libs when runtime libs are static.
20097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20099 # Compiler flag to allow reflexive dlopens.
20100 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20102 # Compiler flag to generate shared objects directly from archives.
20103 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20105 # Whether the compiler copes with passing no objects directly.
20106 compiler_needs_object=$lt_compiler_needs_object_CXX
20108 # Create an old-style archive from a shared archive.
20109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20111 # Create a temporary old-style archive to link instead of a shared archive.
20112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20114 # Commands used to build a shared archive.
20115 archive_cmds=$lt_archive_cmds_CXX
20116 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20118 # Commands used to build a loadable module if different from building
20119 # a shared archive.
20120 module_cmds=$lt_module_cmds_CXX
20121 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20123 # Whether we are building with GNU ld or not.
20124 with_gnu_ld=$lt_with_gnu_ld_CXX
20126 # Flag that allows shared libraries with undefined symbols to be built.
20127 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20129 # Flag that enforces no undefined symbols.
20130 no_undefined_flag=$lt_no_undefined_flag_CXX
20132 # Flag to hardcode \$libdir into a binary during linking.
20133 # This must work even if \$libdir does not exist
20134 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20136 # If ld is used when linking, flag to hardcode \$libdir into a binary
20137 # during linking. This must work even if \$libdir does not exist.
20138 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20140 # Whether we need a single "-rpath" flag with a separated argument.
20141 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20143 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20144 # DIR into the resulting binary.
20145 hardcode_direct=$hardcode_direct_CXX
20147 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20148 # DIR into the resulting binary and the resulting library dependency is
20149 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20150 # library is relocated.
20151 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20153 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20154 # into the resulting binary.
20155 hardcode_minus_L=$hardcode_minus_L_CXX
20157 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20158 # into the resulting binary.
20159 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20161 # Set to "yes" if building a shared library automatically hardcodes DIR
20162 # into the library and all subsequent libraries and executables linked
20163 # against it.
20164 hardcode_automatic=$hardcode_automatic_CXX
20166 # Set to yes if linker adds runtime paths of dependent libraries
20167 # to runtime path list.
20168 inherit_rpath=$inherit_rpath_CXX
20170 # Whether libtool must link a program against all its dependency libraries.
20171 link_all_deplibs=$link_all_deplibs_CXX
20173 # Fix the shell variable \$srcfile for the compiler.
20174 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20176 # Set to "yes" if exported symbols are required.
20177 always_export_symbols=$always_export_symbols_CXX
20179 # The commands to list exported symbols.
20180 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20182 # Symbols that should not be listed in the preloaded symbols.
20183 exclude_expsyms=$lt_exclude_expsyms_CXX
20185 # Symbols that must always be exported.
20186 include_expsyms=$lt_include_expsyms_CXX
20188 # Commands necessary for linking programs (against libraries) with templates.
20189 prelink_cmds=$lt_prelink_cmds_CXX
20191 # Specify filename containing input files.
20192 file_list_spec=$lt_file_list_spec_CXX
20194 # How to hardcode a shared library path into an executable.
20195 hardcode_action=$hardcode_action_CXX
20197 # The directories searched by this compiler when creating a shared library.
20198 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20200 # Dependencies to place before and after the objects being linked to
20201 # create a shared library.
20202 predep_objects=$lt_predep_objects_CXX
20203 postdep_objects=$lt_postdep_objects_CXX
20204 predeps=$lt_predeps_CXX
20205 postdeps=$lt_postdeps_CXX
20207 # The library search path used internally by the compiler when linking
20208 # a shared library.
20209 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20211 # ### END LIBTOOL TAG CONFIG: CXX
20212 _LT_EOF
20215 "gstdint.h":C)
20216 if test "$GCC" = yes; then
20217 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20218 else
20219 echo "/* generated for $CC */" > tmp-stdint.h
20222 sed 's/^ *//' >> tmp-stdint.h <<EOF
20224 #ifndef GCC_GENERATED_STDINT_H
20225 #define GCC_GENERATED_STDINT_H 1
20227 #include <sys/types.h>
20230 if test "$acx_cv_header_stdint" != stdint.h; then
20231 echo "#include <stddef.h>" >> tmp-stdint.h
20233 if test "$acx_cv_header_stdint" != stddef.h; then
20234 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20237 sed 's/^ *//' >> tmp-stdint.h <<EOF
20238 /* glibc uses these symbols as guards to prevent redefinitions. */
20239 #ifdef __int8_t_defined
20240 #define _INT8_T
20241 #define _INT16_T
20242 #define _INT32_T
20243 #endif
20244 #ifdef __uint32_t_defined
20245 #define _UINT32_T
20246 #endif
20250 # ----------------- done header, emit basic int types -------------
20251 if test "$acx_cv_header_stdint" = stddef.h; then
20252 sed 's/^ *//' >> tmp-stdint.h <<EOF
20254 #ifndef _UINT8_T
20255 #define _UINT8_T
20256 #ifndef __uint8_t_defined
20257 #define __uint8_t_defined
20258 #ifndef uint8_t
20259 typedef unsigned $acx_cv_type_int8_t uint8_t;
20260 #endif
20261 #endif
20262 #endif
20264 #ifndef _UINT16_T
20265 #define _UINT16_T
20266 #ifndef __uint16_t_defined
20267 #define __uint16_t_defined
20268 #ifndef uint16_t
20269 typedef unsigned $acx_cv_type_int16_t uint16_t;
20270 #endif
20271 #endif
20272 #endif
20274 #ifndef _UINT32_T
20275 #define _UINT32_T
20276 #ifndef __uint32_t_defined
20277 #define __uint32_t_defined
20278 #ifndef uint32_t
20279 typedef unsigned $acx_cv_type_int32_t uint32_t;
20280 #endif
20281 #endif
20282 #endif
20284 #ifndef _INT8_T
20285 #define _INT8_T
20286 #ifndef __int8_t_defined
20287 #define __int8_t_defined
20288 #ifndef int8_t
20289 typedef $acx_cv_type_int8_t int8_t;
20290 #endif
20291 #endif
20292 #endif
20294 #ifndef _INT16_T
20295 #define _INT16_T
20296 #ifndef __int16_t_defined
20297 #define __int16_t_defined
20298 #ifndef int16_t
20299 typedef $acx_cv_type_int16_t int16_t;
20300 #endif
20301 #endif
20302 #endif
20304 #ifndef _INT32_T
20305 #define _INT32_T
20306 #ifndef __int32_t_defined
20307 #define __int32_t_defined
20308 #ifndef int32_t
20309 typedef $acx_cv_type_int32_t int32_t;
20310 #endif
20311 #endif
20312 #endif
20314 elif test "$ac_cv_type_u_int32_t" = yes; then
20315 sed 's/^ *//' >> tmp-stdint.h <<EOF
20317 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20318 #ifndef _INT8_T
20319 #define _INT8_T
20320 #endif
20321 #ifndef _INT16_T
20322 #define _INT16_T
20323 #endif
20324 #ifndef _INT32_T
20325 #define _INT32_T
20326 #endif
20328 #ifndef _UINT8_T
20329 #define _UINT8_T
20330 #ifndef __uint8_t_defined
20331 #define __uint8_t_defined
20332 #ifndef uint8_t
20333 typedef u_int8_t uint8_t;
20334 #endif
20335 #endif
20336 #endif
20338 #ifndef _UINT16_T
20339 #define _UINT16_T
20340 #ifndef __uint16_t_defined
20341 #define __uint16_t_defined
20342 #ifndef uint16_t
20343 typedef u_int16_t uint16_t;
20344 #endif
20345 #endif
20346 #endif
20348 #ifndef _UINT32_T
20349 #define _UINT32_T
20350 #ifndef __uint32_t_defined
20351 #define __uint32_t_defined
20352 #ifndef uint32_t
20353 typedef u_int32_t uint32_t;
20354 #endif
20355 #endif
20356 #endif
20358 else
20359 sed 's/^ *//' >> tmp-stdint.h <<EOF
20361 /* Some systems have guard macros to prevent redefinitions, define them. */
20362 #ifndef _INT8_T
20363 #define _INT8_T
20364 #endif
20365 #ifndef _INT16_T
20366 #define _INT16_T
20367 #endif
20368 #ifndef _INT32_T
20369 #define _INT32_T
20370 #endif
20371 #ifndef _UINT8_T
20372 #define _UINT8_T
20373 #endif
20374 #ifndef _UINT16_T
20375 #define _UINT16_T
20376 #endif
20377 #ifndef _UINT32_T
20378 #define _UINT32_T
20379 #endif
20383 # ------------- done basic int types, emit int64_t types ------------
20384 if test "$ac_cv_type_uint64_t" = yes; then
20385 sed 's/^ *//' >> tmp-stdint.h <<EOF
20387 /* system headers have good uint64_t and int64_t */
20388 #ifndef _INT64_T
20389 #define _INT64_T
20390 #endif
20391 #ifndef _UINT64_T
20392 #define _UINT64_T
20393 #endif
20395 elif test "$ac_cv_type_u_int64_t" = yes; then
20396 sed 's/^ *//' >> tmp-stdint.h <<EOF
20398 /* system headers have an u_int64_t (and int64_t) */
20399 #ifndef _INT64_T
20400 #define _INT64_T
20401 #endif
20402 #ifndef _UINT64_T
20403 #define _UINT64_T
20404 #ifndef __uint64_t_defined
20405 #define __uint64_t_defined
20406 #ifndef uint64_t
20407 typedef u_int64_t uint64_t;
20408 #endif
20409 #endif
20410 #endif
20412 elif test -n "$acx_cv_type_int64_t"; then
20413 sed 's/^ *//' >> tmp-stdint.h <<EOF
20415 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20416 #ifndef _INT64_T
20417 #define _INT64_T
20418 #ifndef int64_t
20419 typedef $acx_cv_type_int64_t int64_t;
20420 #endif
20421 #endif
20422 #ifndef _UINT64_T
20423 #define _UINT64_T
20424 #ifndef __uint64_t_defined
20425 #define __uint64_t_defined
20426 #ifndef uint64_t
20427 typedef unsigned $acx_cv_type_int64_t uint64_t;
20428 #endif
20429 #endif
20430 #endif
20432 else
20433 sed 's/^ *//' >> tmp-stdint.h <<EOF
20435 /* some common heuristics for int64_t, using compiler-specific tests */
20436 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20437 #ifndef _INT64_T
20438 #define _INT64_T
20439 #ifndef __int64_t_defined
20440 #ifndef int64_t
20441 typedef long long int64_t;
20442 #endif
20443 #endif
20444 #endif
20445 #ifndef _UINT64_T
20446 #define _UINT64_T
20447 #ifndef uint64_t
20448 typedef unsigned long long uint64_t;
20449 #endif
20450 #endif
20452 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20453 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20454 does not implement __extension__. But that compiler doesn't define
20455 __GNUC_MINOR__. */
20456 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20457 # define __extension__
20458 # endif
20460 # ifndef _INT64_T
20461 # define _INT64_T
20462 # ifndef int64_t
20463 __extension__ typedef long long int64_t;
20464 # endif
20465 # endif
20466 # ifndef _UINT64_T
20467 # define _UINT64_T
20468 # ifndef uint64_t
20469 __extension__ typedef unsigned long long uint64_t;
20470 # endif
20471 # endif
20473 #elif !defined __STRICT_ANSI__
20474 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20476 # ifndef _INT64_T
20477 # define _INT64_T
20478 # ifndef int64_t
20479 typedef __int64 int64_t;
20480 # endif
20481 # endif
20482 # ifndef _UINT64_T
20483 # define _UINT64_T
20484 # ifndef uint64_t
20485 typedef unsigned __int64 uint64_t;
20486 # endif
20487 # endif
20488 # endif /* compiler */
20490 #endif /* ANSI version */
20494 # ------------- done int64_t types, emit intptr types ------------
20495 if test "$ac_cv_type_uintptr_t" != yes; then
20496 sed 's/^ *//' >> tmp-stdint.h <<EOF
20498 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20499 #ifndef __uintptr_t_defined
20500 #ifndef uintptr_t
20501 typedef u$acx_cv_type_intptr_t uintptr_t;
20502 #endif
20503 #endif
20504 #ifndef __intptr_t_defined
20505 #ifndef intptr_t
20506 typedef $acx_cv_type_intptr_t intptr_t;
20507 #endif
20508 #endif
20512 # ------------- done intptr types, emit int_least types ------------
20513 if test "$ac_cv_type_int_least32_t" != yes; then
20514 sed 's/^ *//' >> tmp-stdint.h <<EOF
20516 /* Define int_least types */
20517 typedef int8_t int_least8_t;
20518 typedef int16_t int_least16_t;
20519 typedef int32_t int_least32_t;
20520 #ifdef _INT64_T
20521 typedef int64_t int_least64_t;
20522 #endif
20524 typedef uint8_t uint_least8_t;
20525 typedef uint16_t uint_least16_t;
20526 typedef uint32_t uint_least32_t;
20527 #ifdef _UINT64_T
20528 typedef uint64_t uint_least64_t;
20529 #endif
20533 # ------------- done intptr types, emit int_fast types ------------
20534 if test "$ac_cv_type_int_fast32_t" != yes; then
20535 sed 's/^ *//' >> tmp-stdint.h <<EOF
20537 /* Define int_fast types. short is often slow */
20538 typedef int8_t int_fast8_t;
20539 typedef int int_fast16_t;
20540 typedef int32_t int_fast32_t;
20541 #ifdef _INT64_T
20542 typedef int64_t int_fast64_t;
20543 #endif
20545 typedef uint8_t uint_fast8_t;
20546 typedef unsigned int uint_fast16_t;
20547 typedef uint32_t uint_fast32_t;
20548 #ifdef _UINT64_T
20549 typedef uint64_t uint_fast64_t;
20550 #endif
20554 if test "$ac_cv_type_uintmax_t" != yes; then
20555 sed 's/^ *//' >> tmp-stdint.h <<EOF
20557 /* Define intmax based on what we found */
20558 #ifndef intmax_t
20559 #ifdef _INT64_T
20560 typedef int64_t intmax_t;
20561 #else
20562 typedef long intmax_t;
20563 #endif
20564 #endif
20565 #ifndef uintmax_t
20566 #ifdef _UINT64_T
20567 typedef uint64_t uintmax_t;
20568 #else
20569 typedef unsigned long uintmax_t;
20570 #endif
20571 #endif
20575 sed 's/^ *//' >> tmp-stdint.h <<EOF
20577 #endif /* GCC_GENERATED_STDINT_H */
20580 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20581 rm -f tmp-stdint.h
20582 else
20583 mv -f tmp-stdint.h gstdint.h
20588 esac
20589 done # for ac_tag
20592 as_fn_exit 0
20593 _ACEOF
20594 ac_clean_files=$ac_clean_files_save
20596 test $ac_write_fail = 0 ||
20597 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20600 # configure is writing to config.log, and then calls config.status.
20601 # config.status does its own redirection, appending to config.log.
20602 # Unfortunately, on DOS this fails, as config.log is still kept open
20603 # by configure, so config.status won't be able to write to it; its
20604 # output is simply discarded. So we exec the FD to /dev/null,
20605 # effectively closing config.log, so it can be properly (re)opened and
20606 # appended to by config.status. When coming back to configure, we
20607 # need to make the FD available again.
20608 if test "$no_create" != yes; then
20609 ac_cs_success=:
20610 ac_config_status_args=
20611 test "$silent" = yes &&
20612 ac_config_status_args="$ac_config_status_args --quiet"
20613 exec 5>/dev/null
20614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20615 exec 5>>config.log
20616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20617 # would make configure fail if this is the last instruction.
20618 $ac_cs_success || as_fn_exit $?
20620 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20622 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}