2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU OpenMP 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
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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 :
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+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
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 :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
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 :
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
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.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
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."
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."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
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
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
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 :
360 as_val
=`expr "$@" || test $? -eq 1`
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.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
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
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
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
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 ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
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
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`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
557 PACKAGE_NAME
='GNU OpenMP Runtime Library'
558 PACKAGE_TARNAME
='libgomp'
559 PACKAGE_VERSION
='1.0'
560 PACKAGE_STRING
='GNU OpenMP Runtime Library 1.0'
562 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
564 # Factoring default headers for most tests.
565 ac_includes_default
="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
600 ac_subst_vars
='am__EXEEXT_FALSE
604 OMP_NEST_LOCK_25_KIND
606 OMP_NEST_LOCK_25_ALIGN
607 OMP_NEST_LOCK_25_SIZE
622 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
637 MAINTAINER_MODE_FALSE
691 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
761 enable_version_specific_runtime_libs
762 enable_generated_files_in_srcdir
764 enable_dependency_tracking
771 enable_maintainer_mode
776 ac_precious_vars
='build_alias
787 # Initialize some variables set by options.
789 ac_init_version
=false
790 ac_unrecognized_opts
=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
801 program_transform_name
=s
,x
,x
,
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'
831 libdir
='${exec_prefix}/lib'
832 localedir
='${datarootdir}/locale'
833 mandir
='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\
$ac_option
847 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
857 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
859 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
875 cache_file
=config.cache
;;
877 -datadir |
--datadir |
--datadi |
--datad)
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
900 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep
=', ';;
903 eval enable_
$ac_useropt=no
;;
905 -docdir |
--docdir |
--docdi |
--doc |
--do)
907 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
910 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
912 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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
926 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep
=', ';;
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.
944 -help |
--help |
--hel |
--he |
-h)
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)
958 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
971 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
972 infodir
=$ac_optarg ;;
974 -libdir |
--libdir |
--libdi |
--libd)
976 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
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)
1000 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1001 mandir
=$ac_optarg ;;
1003 -nfp |
--nfp |
--nf)
1004 # Obsolete; use --without-fp.
1007 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1008 |
--no-cr |
--no-c |
-n)
1011 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1012 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
1062 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1063 pdfdir
=$ac_optarg ;;
1065 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1067 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1070 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1071 |
-silent |
--silent |
--silen |
--sile |
--sil)
1074 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1076 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1078 sbindir
=$ac_optarg ;;
1080 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1081 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1082 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1084 ac_prev
=sharedstatedir
;;
1085 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1086 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1087 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1089 sharedstatedir
=$ac_optarg ;;
1091 -site |
--site |
--sit)
1093 -site=* |
--site=* |
--sit=*)
1096 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1116 -version |
--version |
--versio |
--versi |
--vers |
-V)
1117 ac_init_version
=: ;;
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
1130 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep
=', ';;
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
1146 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep
=', ';;
1149 eval with_
$ac_useropt=no
;;
1152 # Obsolete; use --with-x.
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."
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'" ;;
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}
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
1202 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
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.
1217 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\
$ac_val;;
1220 # Be sure to have absolute directory names.
1222 [\\/$
]* | ?
:[\\/]* ) continue;;
1223 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1225 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
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.
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1310 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
1326 \`configure' configures GNU OpenMP 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.
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
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/libgomp]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
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
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
]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive
) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
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
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
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
>
1443 FC Fortran compiler
command
1444 FCFLAGS Fortran compiler flags
1446 Use these variables to override the choices made by
`configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1449 Report bugs to the package provider.
1450 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1451 General help using GNU software: <http://www.gnu.org/gethelp/>.
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1481 .) # We are building in place.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1514 GNU OpenMP Runtime Library configure 1.0
1515 generated by GNU Autoconf 2.64
1517 Copyright (C) 2009 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1538 *) ac_try_echo
=$ac_try;;
1540 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1544 if test -s conftest.err
; then
1545 grep -v '^ *+' conftest.err
>conftest.er1
1546 cat conftest.er1
>&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.
$ac_objext; then :
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.
$ac_ext >&5
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1564 } # ac_fn_c_try_compile
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1572 rm -f conftest.
$ac_objext conftest
$ac_exeext
1573 if { { ac_try
="$ac_link"
1575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 $as_test_x conftest$ac_exeext
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 } # ac_fn_c_try_link
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622 $as_echo_n "(cached) " >&6
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1629 if ac_fn_c_try_compile "$LINENO"; then :
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 } # ac_fn_c_check_header_compile
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1652 *) ac_try_echo
=$ac_try;;
1654 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 if test -s conftest.err
; then
1659 grep -v '^ *+' conftest.err
>conftest.er1
1660 cat conftest.er1
>&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } >/dev
/null
&& {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.
$ac_ext >&5
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1686 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1687 if { { ac_try
="$ac_link"
1689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1700 *) ac_try_echo
=$ac_try;;
1702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.
$ac_ext >&5
1714 ac_retval
=$ac_status
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func
()
1727 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 $as_echo_n "(cached) " >&6
1733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1745 # include <limits.h>
1747 # include <assert.h>
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1774 if ac_fn_c_try_link
"$LINENO"; then :
1779 rm -f core conftest.err conftest.
$ac_objext \
1780 conftest
$ac_exeext conftest.
$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1787 } # ac_fn_c_check_func
1789 # ac_fn_fc_try_compile LINENO
1790 # ---------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_fc_try_compile
()
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 rm -f conftest.
$ac_objext
1796 if { { ac_try
="$ac_compile"
1798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_fc_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 } # ac_fn_fc_try_compile
1827 # ac_fn_fc_try_link LINENO
1828 # ------------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_fc_try_link ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1837 *) ac_try_echo
=$ac_try;;
1839 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err
; then
1844 grep -v '^ *+' conftest.err
>conftest.er1
1845 cat conftest.er1
>&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_fc_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest
$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest
$ac_exeext
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.
$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1871 } # ac_fn_fc_try_link
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1878 ac_fn_c_check_header_mongrel
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1899 if ac_fn_c_try_compile
"$LINENO"; then :
1900 ac_header_compiler
=yes
1902 ac_header_compiler
=no
1904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1915 if ac_fn_c_try_cpp
"$LINENO"; then :
1916 ac_header_preproc
=yes
1918 ac_header_preproc
=no
1920 rm -f conftest.err conftest.
$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1950 eval "$3=\$ac_header_compiler"
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1958 } # ac_fn_c_check_header_mongrel
1960 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961 # -------------------------------------------
1962 # Tests whether TYPE exists after having included INCLUDES, setting cache
1963 # variable VAR accordingly.
1964 ac_fn_c_check_type
()
1966 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1985 if ac_fn_c_try_compile
"$LINENO"; then :
1986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1998 if ac_fn_c_try_compile
"$LINENO"; then :
2003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2012 } # ac_fn_c_check_type
2014 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2015 # --------------------------------------------
2016 # Tries to find the compile-time value of EXPR in a program that includes
2017 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2019 ac_fn_c_compute_int
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 if test "$cross_compiling" = yes; then
2023 # Depending upon the size, compute the lo and hi bounds.
2024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) >= 0)];
2037 if ac_fn_c_try_compile
"$LINENO"; then :
2040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2053 if ac_fn_c_try_compile
"$LINENO"; then :
2054 ac_hi
=$ac_mid; break
2056 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2057 if test $ac_lo -le $ac_mid; then
2061 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2072 static int test_array [1 - 2 * !(($2) < 0)];
2079 if ac_fn_c_try_compile
"$LINENO"; then :
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2095 if ac_fn_c_try_compile
"$LINENO"; then :
2096 ac_lo
=$ac_mid; break
2098 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2099 if test $ac_mid -le $ac_hi; then
2103 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2113 # Binary search between lo and hi bounds.
2114 while test "x$ac_lo" != "x$ac_hi"; do
2115 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2132 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2137 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2144 static long int longval () { return $2; }
2145 static unsigned long int ulongval () { return $2; }
2152 FILE *f = fopen ("conftest.val", "w");
2157 long int i = longval ();
2160 fprintf (f, "%ld", i);
2164 unsigned long int i = ulongval ();
2167 fprintf (f, "%lu", i);
2169 /* Do not output a trailing newline, as this causes \r\n confusion
2170 on some platforms. */
2171 return ferror (f) || fclose (f) != 0;
2177 if ac_fn_c_try_run
"$LINENO"; then :
2178 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2182 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2183 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2190 } # ac_fn_c_compute_int
2191 cat >config.log
<<_ACEOF
2192 This file contains any messages produced by compilers while
2193 running configure, to aid debugging if configure makes a mistake.
2195 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2196 generated by GNU Autoconf 2.64. Invocation command line was
2208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2217 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2218 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir
=.
2232 $as_echo "PATH: $as_dir"
2248 # Keep a trace of the command line.
2249 # Strip out --no-create and --no-recursion so they do not pile up.
2250 # Strip out --silent because we don't want to record it for future runs.
2251 # Also quote any args containing shell meta-characters.
2252 # Make two passes to allow for proper duplicate-argument suppression.
2256 ac_must_keep_next
=false
2262 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2263 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2264 |
-silent |
--silent |
--silen |
--sile |
--sil)
2267 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2272 as_fn_append ac_configure_args1
" '$ac_arg'"
2273 if test $ac_must_keep_next = true
; then
2274 ac_must_keep_next
=false
# Got value, back to normal.
2277 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2278 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2279 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2280 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2281 case "$ac_configure_args0 " in
2282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2285 -* ) ac_must_keep_next
=true
;;
2288 as_fn_append ac_configure_args
" '$ac_arg'"
2293 { ac_configure_args0
=; unset ac_configure_args0
;}
2294 { ac_configure_args1
=; unset ac_configure_args1
;}
2296 # When interrupted or exit'd, cleanup temporary files, and complete
2297 # config.log. We remove comments because anyway the quotes in there
2298 # would cause problems or look ugly.
2299 # WARNING: Use '\'' to represent an apostrophe within the trap.
2300 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2301 trap 'exit_status=$?
2302 # Save into config.log some information that might help in debugging.
2307 ## ---------------- ##
2308 ## Cache variables. ##
2309 ## ---------------- ##
2312 # The following way of writing the cache mishandles newlines in values,
2314 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2315 eval ac_val=\$$ac_var
2319 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323 _ | IFS | as_nl) ;; #(
2324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2325 *) { eval $ac_var=; unset $ac_var;} ;;
2330 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2331 *${as_nl}ac_space=\ *)
2333 "s/'\''/'\''\\\\'\'''\''/g;
2334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 ## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##
2350 for ac_var in $ac_subst_vars
2352 eval ac_val=\$$ac_var
2354 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 $as_echo "$ac_var='\''$ac_val'\''"
2360 if test -n "$ac_subst_files"; then
2362 ## ------------------- ##
2363 ## File substitutions. ##
2364 ## ------------------- ##
2367 for ac_var
in $ac_subst_files
2369 eval ac_val
=\$
$ac_var
2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373 $as_echo "$ac_var='\''$ac_val'\''"
2378 if test -s confdefs.h; then
2388 test "$ac_signal" != 0 &&
2389 $as_echo "$as_me: caught signal $ac_signal"
2390 $as_echo "$as_me: exit $exit_status"
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396 for ac_signal
in 1 2 13 15; do
2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest
* confdefs.h
2404 $as_echo "/* confdefs.h */" > confdefs.h
2406 # Predefined preprocessor variables.
2408 cat >>confdefs.h
<<_ACEOF
2409 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 cat >>confdefs.h
<<_ACEOF
2413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 cat >>confdefs.h
<<_ACEOF
2417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 cat >>confdefs.h
<<_ACEOF
2421 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 cat >>confdefs.h
<<_ACEOF
2425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 cat >>confdefs.h
<<_ACEOF
2429 #define PACKAGE_URL "$PACKAGE_URL"
2433 # Let the site file select an alternate cache file if it wants to.
2434 # Prefer an explicitly selected file to automatically selected ones.
2437 if test -n "$CONFIG_SITE"; then
2438 ac_site_file1
=$CONFIG_SITE
2439 elif test "x$prefix" != xNONE
; then
2440 ac_site_file1
=$prefix/share
/config.site
2441 ac_site_file2
=$prefix/etc
/config.site
2443 ac_site_file1
=$ac_default_prefix/share
/config.site
2444 ac_site_file2
=$ac_default_prefix/etc
/config.site
2446 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2448 test "x$ac_site_file" = xNONE
&& continue
2449 if test -r "$ac_site_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452 sed 's/^/| /' "$ac_site_file" >&5
2457 if test -r "$cache_file"; then
2458 # Some versions of bash will fail to source /dev/null (special
2459 # files actually), so we avoid doing that.
2460 if test -f "$cache_file"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2462 $as_echo "$as_me: loading cache $cache_file" >&6;}
2464 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2465 *) .
"./$cache_file";;
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2470 $as_echo "$as_me: creating cache $cache_file" >&6;}
2474 # Check that the precious variables saved in the cache have kept the same
2476 ac_cache_corrupted
=false
2477 for ac_var
in $ac_precious_vars; do
2478 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2479 eval ac_new_set
=\
$ac_env_${ac_var}_set
2480 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2481 eval ac_new_val
=\
$ac_env_${ac_var}_value
2482 case $ac_old_set,$ac_new_set in
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486 ac_cache_corrupted
=: ;;
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2490 ac_cache_corrupted
=: ;;
2493 if test "x$ac_old_val" != "x$ac_new_val"; then
2494 # differences in whitespace do not lead to failure.
2495 ac_old_val_w
=`echo x $ac_old_val`
2496 ac_new_val_w
=`echo x $ac_new_val`
2497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2500 ac_cache_corrupted
=:
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504 eval $ac_var=\
$ac_old_val
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2507 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2509 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 # Pass precious variables to config.status.
2513 if test "$ac_new_set" = set; then
2515 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 *) ac_arg
=$ac_var=$ac_new_val ;;
2518 case " $ac_configure_args " in
2519 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2520 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2524 if $ac_cache_corrupted; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2531 ## -------------------- ##
2532 ## Main body of script. ##
2533 ## -------------------- ##
2536 ac_cpp
='$CPP $CPPFLAGS'
2537 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2545 ac_config_headers
="$ac_config_headers config.h"
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2553 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2554 # Check whether --enable-version-specific-runtime-libs was given.
2555 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2556 enableval
=$enable_version_specific_runtime_libs;
2557 case "$enableval" in
2559 *) as_fn_error
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2563 enable_version_specific_runtime_libs
=no
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2568 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2570 # We would like our source tree to be readonly. However when releases or
2571 # pre-releases are generated, the flex/bison generated files as well as the
2572 # various formats of manuals need to be included along with the rest of the
2573 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2576 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2577 # Check whether --enable-generated-files-in-srcdir was given.
2578 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2579 enableval
=$enable_generated_files_in_srcdir;
2580 case "$enableval" in
2582 *) as_fn_error
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2586 enable_generated_files_in_srcdir
=no
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2591 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2592 if test "$enable_generated_files_in_srcdir" = yes; then
2605 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2607 # You will slowly go insane if you do not grok the following fact: when
2608 # building this library, the top-level /target/ becomes the library's /host/.
2610 # configure then causes --target to default to --host, exactly like any
2611 # other package using autoconf. Therefore, 'target' and 'host' will
2612 # always be the same. This makes sense both for native and cross compilers
2613 # just think about it for a little while. :-)
2615 # Also, if this library is being configured as part of a cross compiler, the
2616 # top-level configure script will pass the "real" host as $with_cross_host.
2618 # Do not delete or change the following two lines. For why, see
2619 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2621 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2622 for ac_t
in install-sh
install.sh shtool
; do
2623 if test -f "$ac_dir/$ac_t"; then
2625 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2630 if test -z "$ac_aux_dir"; then
2631 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2634 # These three variables are undocumented and unsupported,
2635 # and are intended to be withdrawn in a future Autoconf release.
2636 # They can cause serious problems if a builder's source tree is in a directory
2637 # whose full name contains unusual characters.
2638 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2639 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2640 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2643 # Make sure we can run config.sub.
2644 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2645 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if test "${ac_cv_build+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2652 ac_build_alias
=$build_alias
2653 test "x$ac_build_alias" = x
&&
2654 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x
&&
2656 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2657 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2665 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2668 ac_save_IFS
=$IFS; IFS
='-'
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2678 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682 $as_echo_n "checking host system type... " >&6; }
2683 if test "${ac_cv_host+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2686 if test "x$host_alias" = x
; then
2687 ac_cv_host
=$ac_cv_build
2689 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2698 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2701 ac_save_IFS
=$IFS; IFS
='-'
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2711 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2715 $as_echo_n "checking target system type... " >&6; }
2716 if test "${ac_cv_target+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2719 if test "x$target_alias" = x
; then
2720 ac_cv_target
=$ac_cv_host
2722 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2723 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2728 $as_echo "$ac_cv_target" >&6; }
2729 case $ac_cv_target in
2731 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2733 target
=$ac_cv_target
2734 ac_save_IFS
=$IFS; IFS
='-'
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2744 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2747 # The aliases save the names the user supplied, while $host etc.
2748 # will get canonicalized.
2749 test -n "$target_alias" &&
2750 test "$program_prefix$program_suffix$program_transform_name" = \
2752 program_prefix
=${target_alias}-
2754 target_alias
=${target_alias-$host_alias}
2756 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2757 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2758 # 1.9.0: minimum required version
2759 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2760 # of other PACKAGE_* variables will, however, and there's nothing
2761 # we can do about that; they come from AC_INIT).
2762 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2763 # file in the top srcdir, etc, etc), so stop complaining.
2764 # no-dist: we don't want 'dist' and related rules.
2765 # -Wall: turns on all automake warnings...
2766 # -Wno-portability: ...except this one, since GNU make is required.
2767 # -Wno-override: ... and this one, since we do want this in testsuite.
2768 am__api_version
='1.11'
2770 # Find a good install program. We prefer a C program (faster),
2771 # so one script is as good as another. But avoid the broken or
2772 # incompatible versions:
2773 # SysV /etc/install, /usr/sbin/install
2774 # SunOS /usr/etc/install
2775 # IRIX /sbin/install
2777 # AmigaOS /C/install, which installs bootblocks on floppy discs
2778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2781 # OS/2's system install, which has a completely different semantic
2782 # ./install, which can be erroneously created by make from ./install.sh.
2783 # Reject install programs that cannot install multiple files.
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2785 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2786 if test -z "$INSTALL"; then
2787 if test "${ac_cv_path_install+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 # Account for people who put trailing slashes in PATH elements.
2796 case $as_dir/ in #((
2797 .
/ | .
// |
/[cC
]/* | \
2798 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2799 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2802 # OSF1 and SCO ODT 3.0 have their own names for install.
2803 # Don't use installbsd from OSF since it installs stuff as root
2805 for ac_prog
in ginstall scoinst
install; do
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2808 if test $ac_prog = install &&
2809 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2810 # AIX install. It has an incompatible calling convention.
2812 elif test $ac_prog = install &&
2813 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2814 # program-specific install script used by HP pwplus--don't use.
2817 rm -rf conftest.one conftest.two conftest.dir
2818 echo one
> conftest.one
2819 echo two
> conftest.two
2821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2822 test -s conftest.one
&& test -s conftest.two
&&
2823 test -s conftest.dir
/conftest.one
&&
2824 test -s conftest.dir
/conftest.two
2826 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2839 rm -rf conftest.one conftest.two conftest.dir
2842 if test "${ac_cv_path_install+set}" = set; then
2843 INSTALL
=$ac_cv_path_install
2845 # As a last resort, use the slow shell script. Don't cache a
2846 # value for INSTALL within a source directory, because that will
2847 # break other packages using the cache if that directory is
2848 # removed, or if the value is a relative name.
2849 INSTALL
=$ac_install_sh
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2853 $as_echo "$INSTALL" >&6; }
2855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2856 # It thinks the first close brace ends the variable substitution.
2857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2861 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2864 $as_echo_n "checking whether build environment is sane... " >&6; }
2867 echo timestamp
> conftest.
file
2868 # Reject unsafe characters in $srcdir or the absolute working directory
2869 # name. Accept space and tab only in the latter.
2873 *[\\\"\
#\$\&\'\`$am_lf]*)
2874 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2877 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2878 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2881 # Do `set' in a subshell so we don't clobber the current shell's
2882 # arguments. Must try -L first in case configure is actually a
2883 # symlink; some systems play weird games with the mod time of symlinks
2884 # (eg FreeBSD returns the mod time of the symlink's containing
2887 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2888 if test "$*" = "X"; then
2890 set X
`ls -t "$srcdir/configure" conftest.file`
2893 if test "$*" != "X $srcdir/configure conftest.file" \
2894 && test "$*" != "X conftest.file $srcdir/configure"; then
2896 # If neither matched, then we have a broken ls. This can happen
2897 # if, for instance, CONFIG_SHELL is bash and it inherits a
2898 # broken ls alias from the environment. This has actually
2899 # happened. Such a system could not be considered "sane".
2900 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2901 alias in your environment" "$LINENO" 5
2904 test "$2" = conftest.
file
2910 as_fn_error
"newly created file is older than distributed files!
2911 Check your system clock" "$LINENO" 5
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2914 $as_echo "yes" >&6; }
2915 test "$program_prefix" != NONE
&&
2916 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2917 # Use a double $ so make ignores it.
2918 test "$program_suffix" != NONE
&&
2919 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2920 # Double any \ or $.
2921 # By default was `s,x,x', remove it if useless.
2922 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2923 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2925 # expand $ac_aux_dir to an absolute path
2926 am_aux_dir
=`cd $ac_aux_dir && pwd`
2928 if test x
"${MISSING+set}" != xset
; then
2931 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2933 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2936 # Use eval to expand $SHELL
2937 if eval "$MISSING --run true"; then
2938 am_missing_run
="$MISSING --run "
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2942 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2945 if test x
"${install_sh}" != xset
; then
2948 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2950 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2954 # Installed binaries are usually stripped using `strip' when the user
2955 # run `make install-strip'. However `strip' might not be the right
2956 # tool to use in cross-compilation environments, therefore Automake
2957 # will honor the `STRIP' environment variable to overrule this program.
2958 if test "$cross_compiling" != no
; then
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2961 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_STRIP+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2967 if test -n "$STRIP"; then
2968 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir
=.
2975 for ac_exec_ext
in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 STRIP
=$ac_cv_prog_STRIP
2988 if test -n "$STRIP"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2990 $as_echo "$STRIP" >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2998 if test -z "$ac_cv_prog_STRIP"; then
3000 # Extract the first word of "strip", so it can be a program name with args.
3001 set dummy strip
; ac_word
=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$ac_ct_STRIP"; then
3008 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir
=.
3015 for ac_exec_ext
in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_STRIP
="strip"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3028 if test -n "$ac_ct_STRIP"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3030 $as_echo "$ac_ct_STRIP" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3036 if test "x$ac_ct_STRIP" = x
; then
3039 case $cross_compiling:$ac_tool_warned in
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043 ac_tool_warned
=yes ;;
3048 STRIP
="$ac_cv_prog_STRIP"
3052 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3055 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3056 if test -z "$MKDIR_P"; then
3057 if test "${ac_cv_path_mkdir+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3061 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3064 test -z "$as_dir" && as_dir
=.
3065 for ac_prog
in mkdir gmkdir
; do
3066 for ac_exec_ext
in '' $ac_executable_extensions; do
3067 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3068 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3069 'mkdir (GNU coreutils) '* | \
3070 'mkdir (coreutils) '* | \
3071 'mkdir (fileutils) '4.1*)
3072 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3082 if test "${ac_cv_path_mkdir+set}" = set; then
3083 MKDIR_P
="$ac_cv_path_mkdir -p"
3085 # As a last resort, use the slow shell script. Don't cache a
3086 # value for MKDIR_P within a source directory, because that will
3087 # break other packages using the cache if that directory is
3088 # removed, or if the value is a relative name.
3089 test -d .
/--version && rmdir .
/--version
3090 MKDIR_P
="$ac_install_sh -d"
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3094 $as_echo "$MKDIR_P" >&6; }
3098 [\\/$
]* | ?
:[\\/]*) ;;
3099 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3102 for ac_prog
in gawk mawk nawk
awk
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy
$ac_prog; ac_word
=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_AWK+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$AWK"; then
3112 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir
=.
3119 for ac_exec_ext
in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_AWK
="$ac_prog"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 if test -n "$AWK"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3134 $as_echo "$AWK" >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3141 test -n "$AWK" && break
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3147 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3149 $as_echo_n "(cached) " >&6
3151 cat >conftest.
make <<\_ACEOF
3154 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3159 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3161 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3165 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 SET_MAKE
="MAKE=${MAKE-make}"
3175 rm -rf .tst
2>/dev
/null
3176 mkdir .tst
2>/dev
/null
3177 if test -d .tst
; then
3182 rmdir .tst
2>/dev
/null
3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc
=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status
; then
3190 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194 # test whether we have cygpath
3195 if test -z "$CYGPATH_W"; then
3196 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3197 CYGPATH_W
='cygpath -w'
3204 # Define the identity of the package.
3209 cat >>confdefs.h
<<_ACEOF
3210 #define PACKAGE "$PACKAGE"
3214 cat >>confdefs.h
<<_ACEOF
3215 #define VERSION "$VERSION"
3218 # Some tools Automake needs.
3220 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3223 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3226 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3229 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3232 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3234 # We need awk for the "check" target. The system "awk" is bad on
3236 # Always define AMTAR for backward compatibility.
3238 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3240 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3246 # Default to --enable-multilib
3247 # Check whether --enable-multilib was given.
3248 if test "${enable_multilib+set}" = set; then :
3249 enableval
=$enable_multilib; case "$enableval" in
3250 yes) multilib
=yes ;;
3252 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3259 # We may get other options which we leave undocumented:
3260 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3261 # See config-ml.in if you want the gory details.
3263 if test "$srcdir" = "."; then
3264 if test "$with_target_subdir" != "."; then
3265 multi_basedir
="$srcdir/$with_multisrctop../.."
3267 multi_basedir
="$srcdir/$with_multisrctop.."
3270 multi_basedir
="$srcdir/.."
3274 # Even if the default multilib is not a cross compilation,
3275 # it may be that some of the other multilibs are.
3276 if test $cross_compiling = no
&& test $multilib = yes \
3277 && test "x${with_multisubdir}" != x
; then
3278 cross_compiling
=maybe
3281 ac_config_commands
="$ac_config_commands default-1"
3284 # Calculate toolexeclibdir
3285 # Also toolexecdir, though it's only used in toolexeclibdir
3286 case ${enable_version_specific_runtime_libs} in
3288 # Need the gcc compiler version to know where to install libraries
3289 # and header files if --enable-version-specific-runtime-libs option
3291 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3292 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3295 if test -n "$with_cross_host" &&
3296 test x
"$with_cross_host" != x
"no"; then
3297 # Install a library built with a cross compiler in tooldir, not libdir.
3298 toolexecdir
='$(exec_prefix)/$(target_alias)'
3299 toolexeclibdir
='$(toolexecdir)/lib'
3301 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3302 toolexeclibdir
='$(libdir)'
3304 multi_os_directory
=`$CC -print-multi-os-directory`
3305 case $multi_os_directory in
3306 .
) ;; # Avoid trailing /.
3307 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3314 # Check the compiler.
3315 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3316 # We must force CC to /not/ be precious variables; otherwise
3317 # the wrong, non-multilib-adjusted value will be used in multilibs.
3318 # As a side effect, we have to subst CFLAGS ourselves.
3323 ac_cpp
='$CPP $CPPFLAGS'
3324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3329 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_CC+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC
="$CC" # Let the user override the test.
3338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir
=.
3343 for ac_exec_ext
in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3366 if test -z "$ac_cv_prog_CC"; then
3368 # Extract the first word of "gcc", so it can be a program name with args.
3369 set dummy gcc
; ac_word
=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$ac_ct_CC"; then
3376 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir
=.
3383 for ac_exec_ext
in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_ac_ct_CC
="gcc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3396 if test -n "$ac_ct_CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3398 $as_echo "$ac_ct_CC" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3404 if test "x$ac_ct_CC" = x
; then
3407 case $cross_compiling:$ac_tool_warned in
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411 ac_tool_warned
=yes ;;
3419 if test -z "$CC"; then
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3422 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC
="$CC" # Let the user override the test.
3431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir
=.
3436 for ac_exec_ext
in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3460 if test -z "$CC"; then
3461 # Extract the first word of "cc", so it can be a program name with args.
3462 set dummy cc
; ac_word
=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if test "${ac_cv_prog_CC+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC
="$CC" # Let the user override the test.
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3480 ac_prog_rejected
=yes
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 if test $ac_prog_rejected = yes; then
3492 # We found a bogon in the path, so make sure we never use it.
3493 set dummy
$ac_cv_prog_CC
3495 if test $# != 0; then
3496 # We chose a different compiler from the bogus one.
3497 # However, it has the same basename, so the bogon will be chosen
3498 # first if we set CC to just the basename; use the full file name.
3500 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3516 if test -z "$CC"; then
3517 if test -n "$ac_tool_prefix"; then
3518 for ac_prog
in cl.exe
3520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_CC+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC
="$CC" # Let the user override the test.
3530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir
=.
3535 for ac_exec_ext
in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 if test -n "$CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3557 test -n "$CC" && break
3560 if test -z "$CC"; then
3562 for ac_prog
in cl.exe
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy
$ac_prog; ac_word
=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$ac_ct_CC"; then
3572 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3578 test -z "$as_dir" && as_dir
=.
3579 for ac_exec_ext
in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_ac_ct_CC
="$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3592 if test -n "$ac_ct_CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594 $as_echo "$ac_ct_CC" >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3601 test -n "$ac_ct_CC" && break
3604 if test "x$ac_ct_CC" = x
; then
3607 case $cross_compiling:$ac_tool_warned in
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned
=yes ;;
3620 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error
"no acceptable C compiler found in \$PATH
3623 See \`config.log' for more details." "$LINENO" 5; }
3625 # Provide some information about the compiler.
3626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3629 for ac_option
in --version -v -V -qversion; do
3630 { { ac_try
="$ac_compiler $ac_option >&5"
3632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3639 if test -s conftest.err; then
3641 ... rest of stderr output deleted ...
3642 10q' conftest.err >conftest.er1
3643 cat conftest.er1 >&5
3644 rm -f conftest.er1 conftest.err
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3661 ac_clean_files_save=$ac_clean_files
3662 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3663 # Try to create an executable without -o first, disregard a.out.
3664 # It will help us diagnose broken compilers, and finding out an intuition
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3667 $as_echo_n "checking for C compiler default output file name... " >&6; }
3668 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3670 # The possible output files:
3671 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3674 for ac_file in $ac_files
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3683 if { { ac_try="$ac_link_default"
3685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3686 *) ac_try_echo
=$ac_try;;
3688 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_link_default") 2>&5
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3695 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3696 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3697 # so that the user can short-circuit this test for compilers unknown to
3699 for ac_file
in $ac_files ''
3701 test -f "$ac_file" ||
continue
3703 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3706 # We found the default executable, but exeext='' is most
3710 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3712 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714 # We set ac_cv_exeext here because the later test for it is not
3715 # safe: cross compilers may not add the suffix if given an `-o'
3716 # argument, so we may need to know it at that point already.
3717 # Even if this section looks crufty: it has the advantage of
3724 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3730 $as_echo "$ac_file" >&6; }
3731 if test -z "$ac_file"; then :
3732 $as_echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 { as_fn_set_status
77
3738 as_fn_error
"C compiler cannot create executables
3739 See \`config.log' for more details." "$LINENO" 5; }; }
3741 ac_exeext
=$ac_cv_exeext
3743 # Check that the compiler produces executables we can run. If not, either
3744 # the compiler is broken, or we cross compile.
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3746 $as_echo_n "checking whether the C compiler works... " >&6; }
3747 # If not cross compiling, check that we can run a simple program.
3748 if test "$cross_compiling" != yes; then
3749 if { ac_try
='./$ac_file'
3750 { { case "(($ac_try" in
3751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
3762 if test "$cross_compiling" = maybe; then
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error "cannot run C compiled programs.
3768 If you meant to cross compile
, use \
`--host'.
3769 See \`config.log
' for more details." "$LINENO" 5; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3774 $as_echo "yes" >&6; }
3776 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 # Check that the compiler produces executables we can run. If not, either
3779 # the compiler is broken, or we cross compile.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3781 $as_echo_n "checking whether we are cross compiling... " >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3783 $as_echo "$cross_compiling" >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3786 $as_echo_n "checking for suffix of executables... " >&6; }
3787 if { { ac_try="$ac_link"
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link") 2>&5
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; then :
3798 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3799 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3800 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3802 for ac_file
in conftest.exe conftest conftest.
*; do
3803 test -f "$ac_file" ||
continue
3805 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3806 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3815 See \`config.log' for more details." "$LINENO" 5; }
3817 rm -f conftest
$ac_cv_exeext
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3819 $as_echo "$ac_cv_exeext" >&6; }
3821 rm -f conftest.
$ac_ext
3822 EXEEXT
=$ac_cv_exeext
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if test "${ac_cv_objext+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try
="$ac_compile"
3843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compile") 2>&5
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 for ac_file in conftest.o conftest.obj conftest.*; do
3853 test -f "$ac_file" || continue;
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error "cannot compute suffix of object files
: cannot compile
3867 See \
`config.log' for more details." "$LINENO" 5; }
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3894 if ac_fn_c_try_compile "$LINENO"; then :
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if test "${ac_cv_prog_cc_g+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3917 ac_save_c_werror_flag=$ac_c_werror_flag
3918 ac_c_werror_flag=yes
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3932 if ac_fn_c_try_compile "$LINENO"; then :
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3947 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3963 if ac_fn_c_try_compile "$LINENO"; then :
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_c_werror_flag=$ac_save_c_werror_flag
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976 CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978 if test "$GCC" = yes; then
3984 if test "$GCC" = yes; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 ac_cv_prog_cc_c89=no
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 #include <sys/types.h>
4002 #include <sys/stat.h>
4003 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4004 struct buf { int x; };
4005 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006 static char *e (p, i)
4012 static char *f (char * (*g) (char **, int), char **p, ...)
4017 s = g (p, va_arg (v,int));
4022 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4023 function prototypes and stuff, but not '\xHH' hex character constants.
4024 These don't provoke an error unfortunately, instead are silently treated
4025 as 'x'. The following induces an error, until -std is added to get
4026 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4027 array size at least. It's necessary to write '\x00'==0 to get something
4028 that's true only with -std. */
4029 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032 inside strings and character constants. */
4034 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036 int test (int i, double x);
4037 struct s1 {int (*f) (int a);};
4038 struct s2 {int (*f) (double a);};
4039 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4045 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4050 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053 CC="$ac_save_CC $ac_arg"
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_c89=$ac_arg
4057 rm -f core conftest.err conftest.$ac_objext
4058 test "x$ac_cv_prog_cc_c89" != "xno" && break
4060 rm -f conftest.$ac_ext
4065 case "x$ac_cv_prog_cc_c89" in
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068 $as_echo "none needed" >&6; } ;;
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4071 $as_echo "unsupported" >&6; } ;;
4073 CC="$CC $ac_cv_prog_cc_c89"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4075 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4077 if test "x$ac_cv_prog_cc_c89" != xno; then :
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 DEPDIR="${am__leading_dot}deps"
4088 ac_config_commands="$ac_config_commands depfiles"
4091 am_make=${MAKE-make}
4092 cat > confinc << 'END'
4094 @echo this is the am__doit target
4097 # If we don't find an include directive, just comment out the code.
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4099 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4103 # First try GNU make style include.
4104 echo "include confinc" > confmf
4105 # Ignore all kinds of additional output from `make'.
4106 case `$am_make -s -f confmf 2> /dev/null` in #(
4107 *the\ am__doit\ target*)
4113 # Now try BSD make style include.
4114 if test "$am__include" = "#"; then
4115 echo '.include
"confinc"' > confmf
4116 case `$am_make -s -f confmf 2> /dev/null` in #(
4117 *the\ am__doit\ target*)
4118 am__include=.include
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4127 $as_echo "$_am_result" >&6; }
4128 rm -f confinc confmf
4130 # Check whether --enable-dependency-tracking was given.
4131 if test "${enable_dependency_tracking+set}" = set; then :
4132 enableval=$enable_dependency_tracking;
4135 if test "x$enable_dependency_tracking" != xno; then
4136 am_depcomp="$ac_aux_dir/depcomp"
4139 if test "x$enable_dependency_tracking" != xno
; then
4149 depcc
="$CC" am_compiler_list
=
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4152 $as_echo_n "checking dependency style of $depcc... " >&6; }
4153 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4157 # We make a subdir and do the tests there. Otherwise we can end up
4158 # making bogus files that we don't know about and never remove. For
4159 # instance it was reported that on HP-UX the gcc test will end up
4160 # making a dummy file named `D' -- because `-MD' means `put the output
4163 # Copy depcomp to subdir because otherwise we won't find it if we're
4164 # using a relative directory.
4165 cp "$am_depcomp" conftest.dir
4167 # We will build objects and dependencies in a subdirectory because
4168 # it helps to detect inapplicable dependency modes. For instance
4169 # both Tru64's cc and ICC support -MD to output dependencies as a
4170 # side effect of compilation, but ICC will put the dependencies in
4171 # the current directory while Tru64 will put them in the object
4175 am_cv_CC_dependencies_compiler_type
=none
4176 if test "$am_compiler_list" = ""; then
4177 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4180 case " $depcc " in #(
4181 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4184 for depmode
in $am_compiler_list; do
4185 # Setup a source with many dependencies, because some compilers
4186 # like to wrap large dependency lists on column 80 (with \), and
4187 # we should not choose a depcomp mode which is confused by this.
4189 # We need to recreate these files for each test, as the compiler may
4190 # overwrite some of them when testing with obscure command lines.
4191 # This happens at least with the AIX C compiler.
4193 for i
in 1 2 3 4 5 6; do
4194 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4196 # Solaris 8's {/usr,}/bin/sh.
4197 touch sub
/conftst
$i.h
4199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4201 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4202 # mode. It turns out that the SunPro C++ compiler does not properly
4203 # handle `-M -o', and we need to detect this. Also, some Intel
4204 # versions had trouble with output in subdirs
4205 am__obj
=sub
/conftest.
${OBJEXT-o}
4206 am__minus_obj
="-o $am__obj"
4209 # This depmode causes a compiler race in universal mode.
4210 test "$am__universal" = false ||
continue
4213 # after this tag, mechanisms are not by side-effect, so they'll
4214 # only be used when explicitly requested
4215 if test "x$enable_dependency_tracking" = xyes
; then
4221 msvisualcpp | msvcmsys
)
4222 # This compiler won't grok `-c -o', but also, the minuso test has
4223 # not run yet. These depmodes are late enough in the game, and
4224 # so weak that their functioning should not be impacted.
4225 am__obj
=conftest.
${OBJEXT-o}
4230 if depmode
=$depmode \
4231 source=sub
/conftest.c object
=$am__obj \
4232 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4233 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4234 >/dev
/null
2>conftest.err
&&
4235 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4236 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4237 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4238 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4239 # icc doesn't choke on unknown options, it will just issue warnings
4240 # or remarks (even with -Werror). So we grep stderr for any message
4241 # that says an option was ignored or not supported.
4242 # When given -MP, icc 7.0 and 7.1 complain thusly:
4243 # icc: Command line warning: ignoring option '-M'; no argument required
4244 # The diagnosis changed in icc 8.0:
4245 # icc: Command line remark: option '-MP' not supported
4246 if (grep 'ignoring option' conftest.err ||
4247 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4248 am_cv_CC_dependencies_compiler_type
=$depmode
4257 am_cv_CC_dependencies_compiler_type
=none
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4262 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4263 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4266 test "x$enable_dependency_tracking" != xno \
4267 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4269 am__fastdepCC_FALSE
='#'
4271 am__fastdepCC_TRUE
='#'
4272 am__fastdepCC_FALSE
=
4280 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4281 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4282 # in both places for now and restore CFLAGS at the end of config.
4283 save_CFLAGS
="$CFLAGS"
4285 # Add -Wall -Werror if we are using GCC.
4286 if test "x$GCC" = "xyes"; then
4287 XCFLAGS
="$XCFLAGS -Wall -Werror"
4290 # Find other programs we need.
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4293 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if test "${ac_cv_prog_AR+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR
="$AR" # Let the user override the test.
4302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir
=.
4307 for ac_exec_ext
in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 if test -n "$AR"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4322 $as_echo "$AR" >&6; }
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4330 if test -z "$ac_cv_prog_AR"; then
4332 # Extract the first word of "ar", so it can be a program name with args.
4333 set dummy
ar; ac_word
=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir
=.
4347 for ac_exec_ext
in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_ac_ct_AR
="ar"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362 $as_echo "$ac_ct_AR" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4368 if test "x$ac_ct_AR" = x
; then
4371 case $cross_compiling:$ac_tool_warned in
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375 ac_tool_warned
=yes ;;
4383 if test -n "$ac_tool_prefix"; then
4384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4385 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4391 if test -n "$RANLIB"; then
4392 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir
=.
4399 for ac_exec_ext
in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 RANLIB
=$ac_cv_prog_RANLIB
4412 if test -n "$RANLIB"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4414 $as_echo "$RANLIB" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4422 if test -z "$ac_cv_prog_RANLIB"; then
4423 ac_ct_RANLIB
=$RANLIB
4424 # Extract the first word of "ranlib", so it can be a program name with args.
4425 set dummy ranlib
; ac_word
=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4431 if test -n "$ac_ct_RANLIB"; then
4432 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir
=.
4439 for ac_exec_ext
in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4452 if test -n "$ac_ct_RANLIB"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4454 $as_echo "$ac_ct_RANLIB" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4460 if test "x$ac_ct_RANLIB" = x
; then
4461 RANLIB
="ranlib-not-found-in-path-error"
4463 case $cross_compiling:$ac_tool_warned in
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned
=yes ;;
4469 RANLIB
=$ac_ct_RANLIB
4472 RANLIB
="$ac_cv_prog_RANLIB"
4475 # Extract the first word of "perl", so it can be a program name with args.
4476 set dummy perl
; ac_word
=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_path_PERL+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4484 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
4487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4491 test -z "$as_dir" && as_dir
=.
4492 for ac_exec_ext
in '' $ac_executable_extensions; do
4493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4494 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl-not-found-in-path-error"
4506 PERL
=$ac_cv_path_PERL
4507 if test -n "$PERL"; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4509 $as_echo "$PERL" >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "no" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4517 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4519 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4520 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4521 $as_echo_n "(cached) " >&6
4523 cat >conftest.
make <<\_ACEOF
4526 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4529 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4531 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4533 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4537 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 $as_echo "yes" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 SET_MAKE
="MAKE=${MAKE-make}"
4549 # See if makeinfo has been installed and is modern enough
4550 # that we can use it.
4552 # Extract the first word of "makeinfo", so it can be a program name with args.
4553 set dummy makeinfo
; ac_word
=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 if test -n "$MAKEINFO"; then
4560 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir
=.
4567 for ac_exec_ext
in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_MAKEINFO
="makeinfo"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 MAKEINFO
=$ac_cv_prog_MAKEINFO
4580 if test -n "$MAKEINFO"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4582 $as_echo "$MAKEINFO" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4589 if test -n "$MAKEINFO"; then
4590 # Found it, now check the version.
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4592 $as_echo_n "checking for modern makeinfo... " >&6; }
4593 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
4597 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4599 case $ac_prog_version in
4600 '') gcc_cv_prog_makeinfo_modern
=no
;;
4601 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
4602 *) gcc_cv_prog_makeinfo_modern
=no
;;
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4607 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4609 gcc_cv_prog_makeinfo_modern
=no
4611 if test $gcc_cv_prog_makeinfo_modern = no
; then
4612 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4615 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4617 BUILD_INFO_FALSE
='#'
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4629 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4634 macro_version
='2.2.7a'
4635 macro_revision
='1.3134'
4649 ltmain
="$ac_aux_dir/ltmain.sh"
4651 # Backslashify metacharacters that are still active within
4652 # double-quoted strings.
4653 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4655 # Same as above, but do not quote variable references.
4656 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4658 # Sed substitution to delay expansion of an escaped shell variable in a
4659 # double_quote_subst'ed string.
4660 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4662 # Sed substitution to delay expansion of an escaped single quote.
4663 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4665 # Sed substitution to avoid accidental globbing in evaled expressions
4666 no_glob_subst
='s/\*/\\\*/g'
4668 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4670 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4673 $as_echo_n "checking how to print strings... " >&6; }
4674 # Test print first, because it will be a builtin if present.
4675 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4676 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4678 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4681 # Use this function as a fallback that always works.
4682 func_fallback_echo ()
4684 eval 'cat <<_LTECHO_EOF
4688 ECHO='func_fallback_echo
'
4691 # func_echo_all arg...
4692 # Invoke $ECHO with all args, space-separated.
4699 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4700 $as_echo "printf" >&6; } ;;
4701 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4702 $as_echo "print -r" >&6; } ;;
4703 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4704 $as_echo "cat" >&6; } ;;
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4721 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4722 if test "${ac_cv_path_SED+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4725 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4726 for ac_i in 1 2 3 4 5 6 7; do
4727 ac_script="$ac_script$as_nl$ac_script"
4729 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4730 { ac_script=; unset ac_script;}
4731 if test -z "$SED"; then
4732 ac_path_SED_found=false
4733 # Loop through the user's path and
test for each of PROGNAME-LIST
4734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir
=.
4739 for ac_prog
in sed gsed
; do
4740 for ac_exec_ext
in '' $ac_executable_extensions; do
4741 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4742 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4743 # Check for GNU ac_path_SED and select it if it is found.
4744 # Check for GNU $ac_path_SED
4745 case `"$ac_path_SED" --version 2>&1` in
4747 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4750 $as_echo_n 0123456789 >"conftest.in"
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 $as_echo '' >> "conftest.nl"
4757 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4758 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4759 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4760 if test $ac_count -gt ${ac_path_SED_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_SED
="$ac_path_SED"
4763 ac_path_SED_max
=$ac_count
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4768 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4771 $ac_path_SED_found && break 3
4776 if test -z "$ac_cv_path_SED"; then
4777 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4785 $as_echo "$ac_cv_path_SED" >&6; }
4786 SED
="$ac_cv_path_SED"
4789 test -z "$SED" && SED
=sed
4790 Xsed
="$SED -e 1s/^X//"
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4803 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4804 if test "${ac_cv_path_GREP+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4807 if test -z "$GREP"; then
4808 ac_path_GREP_found
=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4811 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4814 test -z "$as_dir" && as_dir
=.
4815 for ac_prog
in grep ggrep
; do
4816 for ac_exec_ext
in '' $ac_executable_extensions; do
4817 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4818 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4819 # Check for GNU ac_path_GREP and select it if it is found.
4820 # Check for GNU $ac_path_GREP
4821 case `"$ac_path_GREP" --version 2>&1` in
4823 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4826 $as_echo_n 0123456789 >"conftest.in"
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 $as_echo 'GREP' >> "conftest.nl"
4833 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4834 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4835 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4836 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_GREP
="$ac_path_GREP"
4839 ac_path_GREP_max
=$ac_count
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4844 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4847 $ac_path_GREP_found && break 3
4852 if test -z "$ac_cv_path_GREP"; then
4853 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856 ac_cv_path_GREP
=$GREP
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4861 $as_echo "$ac_cv_path_GREP" >&6; }
4862 GREP
="$ac_cv_path_GREP"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4866 $as_echo_n "checking for egrep... " >&6; }
4867 if test "${ac_cv_path_EGREP+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4870 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4871 then ac_cv_path_EGREP
="$GREP -E"
4873 if test -z "$EGREP"; then
4874 ac_path_EGREP_found
=false
4875 # Loop through the user's path and test for each of PROGNAME-LIST
4876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4877 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4880 test -z "$as_dir" && as_dir
=.
4881 for ac_prog
in egrep; do
4882 for ac_exec_ext
in '' $ac_executable_extensions; do
4883 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4884 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4885 # Check for GNU ac_path_EGREP and select it if it is found.
4886 # Check for GNU $ac_path_EGREP
4887 case `"$ac_path_EGREP" --version 2>&1` in
4889 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4892 $as_echo_n 0123456789 >"conftest.in"
4895 cat "conftest.in" "conftest.in" >"conftest.tmp"
4896 mv "conftest.tmp" "conftest.in"
4897 cp "conftest.in" "conftest.nl"
4898 $as_echo 'EGREP' >> "conftest.nl"
4899 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4900 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4901 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4903 # Best one so far, save it but keep looking for a better one
4904 ac_cv_path_EGREP
="$ac_path_EGREP"
4905 ac_path_EGREP_max
=$ac_count
4907 # 10*(2^10) chars as input seems more than enough
4908 test $ac_count -gt 10 && break
4910 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4913 $ac_path_EGREP_found && break 3
4918 if test -z "$ac_cv_path_EGREP"; then
4919 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4922 ac_cv_path_EGREP
=$EGREP
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4928 $as_echo "$ac_cv_path_EGREP" >&6; }
4929 EGREP
="$ac_cv_path_EGREP"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4933 $as_echo_n "checking for fgrep... " >&6; }
4934 if test "${ac_cv_path_FGREP+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4937 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4938 then ac_cv_path_FGREP
="$GREP -F"
4940 if test -z "$FGREP"; then
4941 ac_path_FGREP_found
=false
4942 # Loop through the user's path and test for each of PROGNAME-LIST
4943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4944 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4947 test -z "$as_dir" && as_dir
=.
4948 for ac_prog
in fgrep
; do
4949 for ac_exec_ext
in '' $ac_executable_extensions; do
4950 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4951 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4952 # Check for GNU ac_path_FGREP and select it if it is found.
4953 # Check for GNU $ac_path_FGREP
4954 case `"$ac_path_FGREP" --version 2>&1` in
4956 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4959 $as_echo_n 0123456789 >"conftest.in"
4962 cat "conftest.in" "conftest.in" >"conftest.tmp"
4963 mv "conftest.tmp" "conftest.in"
4964 cp "conftest.in" "conftest.nl"
4965 $as_echo 'FGREP' >> "conftest.nl"
4966 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4967 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4968 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4969 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4970 # Best one so far, save it but keep looking for a better one
4971 ac_cv_path_FGREP
="$ac_path_FGREP"
4972 ac_path_FGREP_max
=$ac_count
4974 # 10*(2^10) chars as input seems more than enough
4975 test $ac_count -gt 10 && break
4977 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4980 $ac_path_FGREP_found && break 3
4985 if test -z "$ac_cv_path_FGREP"; then
4986 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4989 ac_cv_path_FGREP
=$FGREP
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4995 $as_echo "$ac_cv_path_FGREP" >&6; }
4996 FGREP
="$ac_cv_path_FGREP"
4999 test -z "$GREP" && GREP
=grep
5019 # Check whether --with-gnu-ld was given.
5020 if test "${with_gnu_ld+set}" = set; then :
5021 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5027 if test "$GCC" = yes; then
5028 # Check if gcc -print-prog-name=ld gives a path.
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5030 $as_echo_n "checking for ld used by $CC... " >&6; }
5033 # gcc leaves a trailing carriage return which upsets mingw
5034 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5036 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5039 # Accept absolute paths.
5041 re_direlt
='/[^/][^/]*/\.\./'
5042 # Canonicalize the pathname of ld
5043 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5044 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5045 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5047 test -z "$LD" && LD
="$ac_prog"
5050 # If it fails, then pretend we aren't using GCC.
5054 # If it is relative, then search for the first ld in PATH.
5058 elif test "$with_gnu_ld" = yes; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5060 $as_echo_n "checking for GNU ld... " >&6; }
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5063 $as_echo_n "checking for non-GNU ld... " >&6; }
5065 if test "${lt_cv_path_LD+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5068 if test -z "$LD"; then
5069 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5070 for ac_dir
in $PATH; do
5072 test -z "$ac_dir" && ac_dir
=.
5073 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5074 lt_cv_path_LD
="$ac_dir/$ac_prog"
5075 # Check to see if the program is GNU ld. I'd rather use --version,
5076 # but apparently some variants of GNU ld only accept -v.
5077 # Break only if it was the GNU/non-GNU ld that we prefer.
5078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5079 *GNU
* |
*'with BFD'*)
5080 test "$with_gnu_ld" != no
&& break
5083 test "$with_gnu_ld" != yes && break
5090 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5095 if test -n "$LD"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5097 $as_echo "$LD" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5102 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5104 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5105 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5108 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5109 case `$LD -v 2>&1 </dev/null` in
5110 *GNU
* |
*'with BFD'*)
5111 lt_cv_prog_gnu_ld
=yes
5114 lt_cv_prog_gnu_ld
=no
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5119 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5120 with_gnu_ld
=$lt_cv_prog_gnu_ld
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5131 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5132 if test "${lt_cv_path_NM+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5135 if test -n "$NM"; then
5136 # Let the user override the test.
5139 lt_nm_to_check
="${ac_tool_prefix}nm"
5140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5141 lt_nm_to_check
="$lt_nm_to_check nm"
5143 for lt_tmp_nm
in $lt_nm_to_check; do
5144 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5145 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5147 test -z "$ac_dir" && ac_dir
=.
5148 tmp_nm
="$ac_dir/$lt_tmp_nm"
5149 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5150 # Check to see if the nm accepts a BSD-compat flag.
5151 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5152 # nm: unknown option "B" ignored
5153 # Tru64's nm complains that /dev/null is an invalid object file
5154 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5155 */dev
/null
* |
*'Invalid file or object type'*)
5156 lt_cv_path_NM
="$tmp_nm -B"
5160 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5162 lt_cv_path_NM
="$tmp_nm -p"
5166 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5167 continue # so that we can try to find one that supports BSD flags
5176 : ${lt_cv_path_NM=no}
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5180 $as_echo "$lt_cv_path_NM" >&6; }
5181 if test "$lt_cv_path_NM" != "no"; then
5184 # Didn't find any BSD compatible name lister, look for dumpbin.
5185 if test -n "$DUMPBIN"; then :
5186 # Let the user override the test.
5188 if test -n "$ac_tool_prefix"; then
5189 for ac_prog
in dumpbin
"link -dump"
5191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 if test -n "$DUMPBIN"; then
5199 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir
=.
5206 for ac_exec_ext
in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 DUMPBIN
=$ac_cv_prog_DUMPBIN
5219 if test -n "$DUMPBIN"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5221 $as_echo "$DUMPBIN" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5228 test -n "$DUMPBIN" && break
5231 if test -z "$DUMPBIN"; then
5232 ac_ct_DUMPBIN
=$DUMPBIN
5233 for ac_prog
in dumpbin
"link -dump"
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy
$ac_prog; ac_word
=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5242 if test -n "$ac_ct_DUMPBIN"; then
5243 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir
=.
5250 for ac_exec_ext
in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5263 if test -n "$ac_ct_DUMPBIN"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5265 $as_echo "$ac_ct_DUMPBIN" >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5272 test -n "$ac_ct_DUMPBIN" && break
5275 if test "x$ac_ct_DUMPBIN" = x
; then
5278 case $cross_compiling:$ac_tool_warned in
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5282 ac_tool_warned
=yes ;;
5284 DUMPBIN
=$ac_ct_DUMPBIN
5288 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5290 DUMPBIN
="$DUMPBIN -symbols"
5298 if test "$DUMPBIN" != ":"; then
5302 test -z "$NM" && NM
=nm
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5310 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5311 if test "${lt_cv_nm_interface+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 lt_cv_nm_interface
="BSD nm"
5315 echo "int some_variable = 0;" > conftest.
$ac_ext
5316 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5317 (eval "$ac_compile" 2>conftest.err
)
5318 cat conftest.err
>&5
5319 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5320 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5321 cat conftest.err
>&5
5322 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5323 cat conftest.out
>&5
5324 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5325 lt_cv_nm_interface
="MS dumpbin"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5330 $as_echo "$lt_cv_nm_interface" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5333 $as_echo_n "checking whether ln -s works... " >&6; }
5335 if test "$LN_S" = "ln -s"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5337 $as_echo "yes" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5340 $as_echo "no, using $LN_S" >&6; }
5343 # find the maximum length of command line arguments
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5345 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5346 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5354 # On DJGPP, this test can blow up pretty badly due to problems in libc
5355 # (any single argument exceeding 2000 bytes causes a buffer overrun
5356 # during glob expansion). Even if it were fixed, the result of this
5357 # check would be larger than it should be.
5358 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5362 # Under GNU Hurd, this test is not required because there is
5363 # no limit to the length of command line arguments.
5364 # Libtool will interpret -1 as no limit whatsoever
5365 lt_cv_sys_max_cmd_len
=-1;
5368 cygwin
* | mingw
* | cegcc
*)
5369 # On Win9x/ME, this test blows up -- it succeeds, but takes
5370 # about 5 minutes as the teststring grows exponentially.
5371 # Worse, since 9x/ME are not pre-emptively multitasking,
5372 # you end up with a "frozen" computer, even though with patience
5373 # the test eventually succeeds (with a max line length of 256k).
5374 # Instead, let's just punt: use the minimum linelength reported by
5375 # all of the supported platforms: 8192 (on NT/2K/XP).
5376 lt_cv_sys_max_cmd_len
=8192;
5380 # On MiNT this can take a long time and run out of memory.
5381 lt_cv_sys_max_cmd_len
=8192;
5385 # On AmigaOS with pdksh, this test takes hours, literally.
5386 # So we just punt and use a minimum line length of 8192.
5387 lt_cv_sys_max_cmd_len
=8192;
5390 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5391 # This has been around since 386BSD, at least. Likely further.
5392 if test -x /sbin
/sysctl
; then
5393 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5394 elif test -x /usr
/sbin
/sysctl
; then
5395 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5397 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5399 # And add a safety zone
5400 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5401 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5405 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5406 lt_cv_sys_max_cmd_len
=196608
5410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5412 # nice to cause kernel panics so lets avoid the loop below.
5413 # First set a reasonable default.
5414 lt_cv_sys_max_cmd_len
=16384
5416 if test -x /sbin
/sysconfig
; then
5417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5418 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5423 lt_cv_sys_max_cmd_len
=102400
5425 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5426 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5427 if test -n "$kargmax"; then
5428 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5430 lt_cv_sys_max_cmd_len
=32768
5434 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5435 if test -n "$lt_cv_sys_max_cmd_len"; then
5436 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5439 # Make teststring a little bigger before we do anything with it.
5440 # a 1K string should be a reasonable start.
5441 for i
in 1 2 3 4 5 6 7 8 ; do
5442 teststring
=$teststring$teststring
5444 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5445 # If test is not a shell built-in, we'll probably end up computing a
5446 # maximum length that is only half of the actual maximum length, but
5448 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5449 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5450 test $i != 17 # 1/2 MB should be enough
5453 teststring
=$teststring$teststring
5455 # Only check the string length outside the loop.
5456 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5458 # Add a significant safety factor because C++ compilers can tack on
5459 # massive amounts of additional arguments before passing them to the
5460 # linker. It appears as though 1/2 is a usable value.
5461 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5468 if test -n $lt_cv_sys_max_cmd_len ; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5470 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5473 $as_echo "none" >&6; }
5475 max_cmd_len
=$lt_cv_sys_max_cmd_len
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5487 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5488 # Try some XSI features
5491 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5493 && eval 'test $(( 1 + 1 )) -eq 2 \
5494 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5497 $as_echo "$xsi_shell" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5501 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5503 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5505 && lt_shell_append=yes
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5507 $as_echo "$lt_shell_append" >&6; }
5510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5520 # test EBCDIC or ASCII
5521 case `echo X|tr X '\101'` in
5522 A) # ASCII based system
5523 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5524 lt_SP2NL='tr \040 \012'
5525 lt_NL2SP='tr \015\012 \040\040'
5527 *) # EBCDIC based system
5528 lt_SP2NL='tr \100 \n'
5529 lt_NL2SP='tr \r\n \100\100'
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5542 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5543 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5544 $as_echo_n "(cached
) " >&6
5546 lt_cv_ld_reload_flag='-r'
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5549 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5550 reload_flag=$lt_cv_ld_reload_flag
5551 case $reload_flag in
5553 *) reload_flag=" $reload_flag" ;;
5555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5558 if test "$GCC" = yes; then
5559 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5578 $as_echo_n "checking
for $ac_word...
" >&6; }
5579 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5580 $as_echo_n "(cached
) " >&6
5582 if test -n "$OBJDUMP"; then
5583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5602 OBJDUMP=$ac_cv_prog_OBJDUMP
5603 if test -n "$OBJDUMP"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5605 $as_echo "$OBJDUMP" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5608 $as_echo "no
" >&6; }
5613 if test -z "$ac_cv_prog_OBJDUMP"; then
5614 ac_ct_OBJDUMP=$OBJDUMP
5615 # Extract the first word of "objdump
", so it can be a program name with args.
5616 set dummy objdump; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5618 $as_echo_n "checking
for $ac_word...
" >&6; }
5619 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5620 $as_echo_n "(cached
) " >&6
5622 if test -n "$ac_ct_OBJDUMP"; then
5623 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5642 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5643 if test -n "$ac_ct_OBJDUMP"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5645 $as_echo "$ac_ct_OBJDUMP" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5648 $as_echo "no
" >&6; }
5651 if test "x
$ac_ct_OBJDUMP" = x; then
5654 case $cross_compiling:$ac_tool_warned in
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5657 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5658 ac_tool_warned=yes ;;
5660 OBJDUMP=$ac_ct_OBJDUMP
5663 OBJDUMP="$ac_cv_prog_OBJDUMP"
5666 test -z "$OBJDUMP" && OBJDUMP=objdump
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5677 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5678 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5679 $as_echo_n "(cached
) " >&6
5681 lt_cv_file_magic_cmd='$MAGIC_CMD'
5682 lt_cv_file_magic_test_file=
5683 lt_cv_deplibs_check_method='unknown'
5684 # Need to set the preceding variable on all platforms that support
5685 # interlibrary dependencies.
5686 # 'none' -- dependencies not supported.
5687 # `unknown' -- same as none, but documents that we really don't know.
5688 # 'pass_all' -- all dependencies passed with no checks.
5689 # 'test_compile' -- check by making test program.
5690 # 'file_magic [[regex]]' -- check by looking for files in library path
5691 # which responds to the $file_magic_cmd with a given extended regex.
5692 # If you have `file' or equivalent on your system and you're not sure
5693 # whether `pass_all' will *always* work, you probably want this one.
5697 lt_cv_deplibs_check_method=pass_all
5701 lt_cv_deplibs_check_method=pass_all
5705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5706 lt_cv_file_magic_cmd='/usr/bin/file -L'
5707 lt_cv_file_magic_test_file=/shlib/libc.so
5711 # func_win32_libid is a shell function defined in ltmain.sh
5712 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5713 lt_cv_file_magic_cmd='func_win32_libid'
5717 # Base MSYS/MinGW do not provide the 'file' command needed by
5718 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5719 # unless we find 'file', for example because we are cross-compiling.
5720 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5721 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5723 lt_cv_file_magic_cmd='func_win32_libid'
5725 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5726 lt_cv_file_magic_cmd='$OBJDUMP -f'
5731 # use the weaker test based on 'objdump'. See mingw*.
5732 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5733 lt_cv_file_magic_cmd='$OBJDUMP -f'
5736 darwin* | rhapsody*)
5737 lt_cv_deplibs_check_method=pass_all
5740 freebsd* | dragonfly*)
5741 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5744 # Not sure whether the presence of OpenBSD here was a mistake.
5745 # Let's accept both of them until this is cleared up.
5746 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5747 lt_cv_file_magic_cmd=/usr/bin/file
5748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5752 lt_cv_deplibs_check_method=pass_all
5757 lt_cv_deplibs_check_method=pass_all
5761 lt_cv_deplibs_check_method=pass_all
5764 hpux10.20* | hpux11*)
5765 lt_cv_file_magic_cmd=/usr/bin/file
5768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5769 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5772 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]'
5773 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5777 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5783 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5787 irix5* | irix6* | nonstopux*)
5789 *-32|*"-32 ") libmagic=32-bit;;
5790 *-n32|*"-n32 ") libmagic=N32;;
5791 *-64|*"-64 ") libmagic=64-bit;;
5792 *) libmagic=never-match;;
5794 lt_cv_deplibs_check_method=pass_all
5797 # This must be Linux ELF.
5798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5799 lt_cv_deplibs_check_method=pass_all
5803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5812 lt_cv_file_magic_cmd=/usr/bin/file
5813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5817 lt_cv_deplibs_check_method=pass_all
5821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5828 osf3* | osf4* | osf5*)
5829 lt_cv_deplibs_check_method=pass_all
5833 lt_cv_deplibs_check_method=pass_all
5837 lt_cv_deplibs_check_method=pass_all
5840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5841 lt_cv_deplibs_check_method=pass_all
5845 case $host_vendor in
5847 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]'
5848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5851 lt_cv_deplibs_check_method=pass_all
5854 lt_cv_file_magic_cmd='/bin/file'
5855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5858 lt_cv_file_magic_cmd='/bin/file'
5859 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5860 lt_cv_file_magic_test_file=/lib/libc.so
5863 lt_cv_deplibs_check_method=pass_all
5866 lt_cv_deplibs_check_method=pass_all
5872 lt_cv_deplibs_check_method=pass_all
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5878 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5879 file_magic_cmd=$lt_cv_file_magic_cmd
5880 deplibs_check_method=$lt_cv_deplibs_check_method
5881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5894 if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}ar; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5898 $as_echo_n "checking
for $ac_word...
" >&6; }
5899 if test "${ac_cv_prog_AR+set}" = set; then :
5900 $as_echo_n "(cached
) " >&6
5902 if test -n "$AR"; then
5903 ac_cv_prog_AR="$AR" # Let the user override the test.
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_AR="${ac_tool_prefix}ar"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5923 if test -n "$AR"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5925 $as_echo "$AR" >&6; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5928 $as_echo "no
" >&6; }
5933 if test -z "$ac_cv_prog_AR"; then
5935 # Extract the first word of "ar", so it can be a program name with args.
5936 set dummy ar; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5938 $as_echo_n "checking
for $ac_word...
" >&6; }
5939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5940 $as_echo_n "(cached
) " >&6
5942 if test -n "$ac_ct_AR"; then
5943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_ac_ct_AR="ar"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5963 if test -n "$ac_ct_AR"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5965 $as_echo "$ac_ct_AR" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5968 $as_echo "no
" >&6; }
5971 if test "x
$ac_ct_AR" = x; then
5974 case $cross_compiling:$ac_tool_warned in
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5977 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5978 ac_tool_warned=yes ;;
5986 test -z "$AR" && AR=ar
5987 test -z "$AR_FLAGS" && AR_FLAGS=cru
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}strip; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6003 $as_echo_n "checking
for $ac_word...
" >&6; }
6004 if test "${ac_cv_prog_STRIP+set}" = set; then :
6005 $as_echo_n "(cached
) " >&6
6007 if test -n "$STRIP"; then
6008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6027 STRIP=$ac_cv_prog_STRIP
6028 if test -n "$STRIP"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6030 $as_echo "$STRIP" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6033 $as_echo "no
" >&6; }
6038 if test -z "$ac_cv_prog_STRIP"; then
6040 # Extract the first word of "strip
", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6043 $as_echo_n "checking
for $ac_word...
" >&6; }
6044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6045 $as_echo_n "(cached
) " >&6
6047 if test -n "$ac_ct_STRIP"; then
6048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_STRIP="strip
"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6070 $as_echo "$ac_ct_STRIP" >&6; }
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6073 $as_echo "no
" >&6; }
6076 if test "x
$ac_ct_STRIP" = x; then
6079 case $cross_compiling:$ac_tool_warned in
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6082 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6083 ac_tool_warned=yes ;;
6088 STRIP="$ac_cv_prog_STRIP"
6091 test -z "$STRIP" && STRIP=:
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6102 $as_echo_n "checking
for $ac_word...
" >&6; }
6103 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6104 $as_echo_n "(cached
) " >&6
6106 if test -n "$RANLIB"; then
6107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6126 RANLIB=$ac_cv_prog_RANLIB
6127 if test -n "$RANLIB"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6129 $as_echo "$RANLIB" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6132 $as_echo "no
" >&6; }
6137 if test -z "$ac_cv_prog_RANLIB"; then
6138 ac_ct_RANLIB=$RANLIB
6139 # Extract the first word of "ranlib
", so it can be a program name with args.
6140 set dummy ranlib; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6142 $as_echo_n "checking
for $ac_word...
" >&6; }
6143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6144 $as_echo_n "(cached
) " >&6
6146 if test -n "$ac_ct_RANLIB"; then
6147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6167 if test -n "$ac_ct_RANLIB"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6169 $as_echo "$ac_ct_RANLIB" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6172 $as_echo "no
" >&6; }
6175 if test "x
$ac_ct_RANLIB" = x; then
6178 case $cross_compiling:$ac_tool_warned in
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6182 ac_tool_warned=yes ;;
6184 RANLIB=$ac_ct_RANLIB
6187 RANLIB="$ac_cv_prog_RANLIB"
6190 test -z "$RANLIB" && RANLIB=:
6197 # Determine commands to create old-style static archives.
6198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6199 old_postinstall_cmds='chmod 644 $oldlib'
6200 old_postuninstall_cmds=
6202 if test -n "$RANLIB"; then
6205 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6208 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6211 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6216 lock_old_archive_extraction=yes ;;
6218 lock_old_archive_extraction=no ;;
6259 # If no C compiler was specified, use CC.
6262 # If no C compiler flags were specified, use CFLAGS.
6263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6265 # Allow CC to be a program name with arguments.
6269 # Check for command to grab the raw symbol name followed by C symbol from nm.
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6271 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6273 $as_echo_n "(cached
) " >&6
6276 # These are sane defaults that work on at least a few old systems.
6277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6279 # Character class describing NM global symbol codes.
6280 symcode='[BCDEGRST]'
6282 # Regexp to match symbols that can be accessed directly from C.
6283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6285 # Define system-specific variables.
6290 cygwin* | mingw* | pw32* | cegcc*)
6291 symcode='[ABCDGISTW]'
6294 if test "$host_cpu" = ia64; then
6295 symcode='[ABCDEGRST]'
6299 symcode='[BCDEGRST]'
6302 symcode='[BCDEGQRST]'
6313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6321 # If we're using GNU nm, then use its standard symbol codes.
6322 case `$NM -V 2>&1` in
6323 *GNU* | *'with BFD'*)
6324 symcode='[ABCDGIRSTW]' ;;
6327 # Transform an extracted symbol line into a proper C declaration.
6328 # Some systems (esp. on ia64) link data and code symbols differently,
6329 # so use this general approach.
6330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6332 # Transform an extracted symbol line into symbol name and symbol address
6333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6334 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'"
6336 # Handle CRLF in mingw tool chain
6340 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6344 # Try without a prefix underscore, then with it.
6345 for ac_symprfx in "" "_
"; do
6347 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6348 symxfrm="\\1 $ac_symprfx\\2 \\2"
6350 # Write the raw and C identifiers.
6351 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6352 # Fake it for dumpbin and say T for any non-static function
6353 # and D for any global variable.
6354 # Also find C++ and __fastcall symbols from MSVC++,
6355 # which start with @ or ?.
6356 lt_cv_sys_global_symbol_pipe="$AWK '"\
6357 " {last_section=section; section=\$ 3};"\
6358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6359 " \$ 0!~/External *\|/{next};"\
6360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6361 " {if(hide[section]) next};"\
6362 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6363 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6364 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6365 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6366 " ' prfx
=^
$ac_symprfx"
6368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6371 # Check to see that the pipe works correctly.
6375 cat > conftest.$ac_ext <<_LT_EOF
6380 void nm_test_func(void);
6381 void nm_test_func(void){}
6385 int main(){nm_test_var='a';nm_test_func();return(0);}
6388 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389 (eval $ac_compile) 2>&5
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6392 test $ac_status = 0; }; then
6393 # Now try to grab the symbols.
6395 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6396 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6399 test $ac_status = 0; } && test -s "$nlist"; then
6400 # Try sorting and uniquifying the output.
6401 if sort "$nlist" | uniq > "$nlist"T; then
6402 mv -f "$nlist"T "$nlist"
6407 # Make sure that we snagged all the symbols we need.
6408 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6409 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6410 cat <<_LT_EOF > conftest.$ac_ext
6416 # Now generate the symbol file.
6417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6419 cat <<_LT_EOF >> conftest.$ac_ext
6421 /* The mapping between symbol names and symbols. */
6426 lt__PROGRAM__LTX_preloaded_symbols[] =
6428 { "@PROGRAM@
", (void *) 0 },
6430 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6431 cat <<\_LT_EOF >> conftest.$ac_ext
6435 /* This works around a problem in FreeBSD linker */
6436 #ifdef FREEBSD_WORKAROUND
6437 static const void *lt_preloaded_setup() {
6438 return lt__PROGRAM__LTX_preloaded_symbols;
6446 # Now try linking the two files.
6447 mv conftest.$ac_objext conftstm.$ac_objext
6448 lt_save_LIBS="$LIBS"
6449 lt_save_CFLAGS="$CFLAGS"
6450 LIBS="conftstm.
$ac_objext"
6451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6452 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6453 (eval $ac_link) 2>&5
6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6456 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6459 LIBS="$lt_save_LIBS"
6460 CFLAGS="$lt_save_CFLAGS"
6462 echo "cannot
find nm_test_func
in $nlist" >&5
6465 echo "cannot
find nm_test_var
in $nlist" >&5
6468 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6471 echo "$progname: failed program was
:" >&5
6472 cat conftest.$ac_ext >&5
6474 rm -rf conftest* conftst*
6476 # Do not use the global_symbol_pipe unless it works.
6477 if test "$pipe_works" = yes; then
6480 lt_cv_sys_global_symbol_pipe=
6486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6487 lt_cv_sys_global_symbol_to_cdecl=
6489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6491 $as_echo "failed
" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6494 $as_echo "ok
" >&6; }
6519 # Check whether --enable-libtool-lock was given.
6520 if test "${enable_libtool_lock+set}" = set; then :
6521 enableval=$enable_libtool_lock;
6524 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6526 # Some flags need to be propagated to the compiler or linker for good
6530 # Find out which ABI we are using.
6531 echo 'int i;' > conftest.$ac_ext
6532 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533 (eval $ac_compile) 2>&5
6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6536 test $ac_status = 0; }; then
6537 case `/usr/bin/file conftest.$ac_objext` in
6549 # Find out which ABI we are using.
6550 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6551 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552 (eval $ac_compile) 2>&5
6554 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6555 test $ac_status = 0; }; then
6556 if test "$lt_cv_prog_gnu_ld" = yes; then
6557 case `/usr/bin/file conftest.$ac_objext` in
6559 LD="${LD-ld} -melf32bsmip"
6562 LD="${LD-ld} -melf32bmipn32"
6565 LD="${LD-ld} -melf64bmip"
6569 case `/usr/bin/file conftest.$ac_objext` in
6585 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6586 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6587 # Find out which ABI we are using.
6588 echo 'int i;' > conftest.$ac_ext
6589 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6590 (eval $ac_compile) 2>&5
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6593 test $ac_status = 0; }; then
6594 case `/usr/bin/file conftest.o` in
6597 x86_64-*kfreebsd*-gnu)
6598 LD="${LD-ld} -m elf_i386_fbsd
"
6601 LD="${LD-ld} -m elf_i386
"
6603 ppc64-*linux*|powerpc64-*linux*)
6604 LD="${LD-ld} -m elf32ppclinux
"
6607 LD="${LD-ld} -m elf_s390
"
6610 LD="${LD-ld} -m elf32_sparc
"
6616 x86_64-*kfreebsd*-gnu)
6617 LD="${LD-ld} -m elf_x86_64_fbsd
"
6620 LD="${LD-ld} -m elf_x86_64
"
6622 ppc*-*linux*|powerpc*-*linux*)
6623 LD="${LD-ld} -m elf64ppc
"
6625 s390*-*linux*|s390*-*tpf*)
6626 LD="${LD-ld} -m elf64_s390
"
6629 LD="${LD-ld} -m elf64_sparc
"
6639 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6640 SAVE_CFLAGS="$CFLAGS"
6641 CFLAGS="$CFLAGS -belf"
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6643 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6644 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6645 $as_echo_n "(cached
) " >&6
6648 ac_cpp='$CPP $CPPFLAGS'
6649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6664 if ac_fn_c_try_link "$LINENO"; then :
6665 lt_cv_cc_needs_belf=yes
6667 lt_cv_cc_needs_belf=no
6669 rm -f core conftest.err conftest.$ac_objext \
6670 conftest$ac_exeext conftest.$ac_ext
6672 ac_cpp='$CPP $CPPFLAGS'
6673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6679 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6680 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6682 CFLAGS="$SAVE_CFLAGS"
6686 # Find out which ABI we are using.
6687 echo 'int i;' > conftest.$ac_ext
6688 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689 (eval $ac_compile) 2>&5
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6692 test $ac_status = 0; }; then
6693 case `/usr/bin/file conftest.o` in
6695 case $lt_cv_prog_gnu_ld in
6696 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6698 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6710 need_locks="$enable_libtool_lock"
6714 rhapsody* | darwin*)
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6719 $as_echo_n "checking
for $ac_word...
" >&6; }
6720 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6721 $as_echo_n "(cached
) " >&6
6723 if test -n "$DSYMUTIL"; then
6724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6744 if test -n "$DSYMUTIL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6746 $as_echo "$DSYMUTIL" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6749 $as_echo "no
" >&6; }
6754 if test -z "$ac_cv_prog_DSYMUTIL"; then
6755 ac_ct_DSYMUTIL=$DSYMUTIL
6756 # Extract the first word of "dsymutil
", so it can be a program name with args.
6757 set dummy dsymutil; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6759 $as_echo_n "checking
for $ac_word...
" >&6; }
6760 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6761 $as_echo_n "(cached
) " >&6
6763 if test -n "$ac_ct_DSYMUTIL"; then
6764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6784 if test -n "$ac_ct_DSYMUTIL"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6789 $as_echo "no
" >&6; }
6792 if test "x
$ac_ct_DSYMUTIL" = x; then
6795 case $cross_compiling:$ac_tool_warned in
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6798 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6799 ac_tool_warned=yes ;;
6801 DSYMUTIL=$ac_ct_DSYMUTIL
6804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6811 $as_echo_n "checking
for $ac_word...
" >&6; }
6812 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6813 $as_echo_n "(cached
) " >&6
6815 if test -n "$NMEDIT"; then
6816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6835 NMEDIT=$ac_cv_prog_NMEDIT
6836 if test -n "$NMEDIT"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6838 $as_echo "$NMEDIT" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6841 $as_echo "no
" >&6; }
6846 if test -z "$ac_cv_prog_NMEDIT"; then
6847 ac_ct_NMEDIT=$NMEDIT
6848 # Extract the first word of "nmedit
", so it can be a program name with args.
6849 set dummy nmedit; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6851 $as_echo_n "checking
for $ac_word...
" >&6; }
6852 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6853 $as_echo_n "(cached
) " >&6
6855 if test -n "$ac_ct_NMEDIT"; then
6856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6876 if test -n "$ac_ct_NMEDIT"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6878 $as_echo "$ac_ct_NMEDIT" >&6; }
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6881 $as_echo "no
" >&6; }
6884 if test "x
$ac_ct_NMEDIT" = x; then
6887 case $cross_compiling:$ac_tool_warned in
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6890 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6891 ac_tool_warned=yes ;;
6893 NMEDIT=$ac_ct_NMEDIT
6896 NMEDIT="$ac_cv_prog_NMEDIT"
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6903 $as_echo_n "checking
for $ac_word...
" >&6; }
6904 if test "${ac_cv_prog_LIPO+set}" = set; then :
6905 $as_echo_n "(cached
) " >&6
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6927 LIPO=$ac_cv_prog_LIPO
6928 if test -n "$LIPO"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6930 $as_echo "$LIPO" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6933 $as_echo "no
" >&6; }
6938 if test -z "$ac_cv_prog_LIPO"; then
6940 # Extract the first word of "lipo
", so it can be a program name with args.
6941 set dummy lipo; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6943 $as_echo_n "checking
for $ac_word...
" >&6; }
6944 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6945 $as_echo_n "(cached
) " >&6
6947 if test -n "$ac_ct_LIPO"; then
6948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_ac_ct_LIPO="lipo
"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6968 if test -n "$ac_ct_LIPO"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6970 $as_echo "$ac_ct_LIPO" >&6; }
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6973 $as_echo "no
" >&6; }
6976 if test "x
$ac_ct_LIPO" = x; then
6979 case $cross_compiling:$ac_tool_warned in
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6982 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6983 ac_tool_warned=yes ;;
6988 LIPO="$ac_cv_prog_LIPO"
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}otool; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6995 $as_echo_n "checking
for $ac_word...
" >&6; }
6996 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6997 $as_echo_n "(cached
) " >&6
6999 if test -n "$OTOOL"; then
7000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7019 OTOOL=$ac_cv_prog_OTOOL
7020 if test -n "$OTOOL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7022 $as_echo "$OTOOL" >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7025 $as_echo "no
" >&6; }
7030 if test -z "$ac_cv_prog_OTOOL"; then
7032 # Extract the first word of "otool
", so it can be a program name with args.
7033 set dummy otool; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7035 $as_echo_n "checking
for $ac_word...
" >&6; }
7036 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7037 $as_echo_n "(cached
) " >&6
7039 if test -n "$ac_ct_OTOOL"; then
7040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_prog_ac_ct_OTOOL="otool
"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7060 if test -n "$ac_ct_OTOOL"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7062 $as_echo "$ac_ct_OTOOL" >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7065 $as_echo "no
" >&6; }
7068 if test "x
$ac_ct_OTOOL" = x; then
7071 case $cross_compiling:$ac_tool_warned in
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7074 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7075 ac_tool_warned=yes ;;
7080 OTOOL="$ac_cv_prog_OTOOL"
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7087 $as_echo_n "checking
for $ac_word...
" >&6; }
7088 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7089 $as_echo_n "(cached
) " >&6
7091 if test -n "$OTOOL64"; then
7092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7111 OTOOL64=$ac_cv_prog_OTOOL64
7112 if test -n "$OTOOL64"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7114 $as_echo "$OTOOL64" >&6; }
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7117 $as_echo "no
" >&6; }
7122 if test -z "$ac_cv_prog_OTOOL64"; then
7123 ac_ct_OTOOL64=$OTOOL64
7124 # Extract the first word of "otool64
", so it can be a program name with args.
7125 set dummy otool64; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7127 $as_echo_n "checking
for $ac_word...
" >&6; }
7128 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7129 $as_echo_n "(cached
) " >&6
7131 if test -n "$ac_ct_OTOOL64"; then
7132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7152 if test -n "$ac_ct_OTOOL64"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7154 $as_echo "$ac_ct_OTOOL64" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7157 $as_echo "no
" >&6; }
7160 if test "x
$ac_ct_OTOOL64" = x; then
7163 case $cross_compiling:$ac_tool_warned in
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7166 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7167 ac_tool_warned=yes ;;
7169 OTOOL64=$ac_ct_OTOOL64
7172 OTOOL64="$ac_cv_prog_OTOOL64"
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7202 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7203 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7204 $as_echo_n "(cached
) " >&6
7206 lt_cv_apple_cc_single_mod=no
7207 if test -z "${LT_MULTI_MODULE}"; then
7208 # By default we will add the -single_module flag. You can override
7209 # by either setting the environment variable LT_MULTI_MODULE
7210 # non-empty at configure time, or by adding -multi_module to the
7212 rm -rf libconftest.dylib*
7213 echo "int foo
(void
){return 1;}" > conftest.c
7214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215 -dynamiclib -Wl,-single_module conftest.c
" >&5
7216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7219 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7220 lt_cv_apple_cc_single_mod=yes
7222 cat conftest.err >&5
7224 rm -rf libconftest.dylib*
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7231 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7232 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7233 $as_echo_n "(cached
) " >&6
7235 lt_cv_ld_exported_symbols_list=no
7236 save_LDFLAGS=$LDFLAGS
7237 echo "_main
" > conftest.sym
7238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7250 if ac_fn_c_try_link "$LINENO"; then :
7251 lt_cv_ld_exported_symbols_list=yes
7253 lt_cv_ld_exported_symbols_list=no
7255 rm -f core conftest.err conftest.$ac_objext \
7256 conftest$ac_exeext conftest.$ac_ext
7257 LDFLAGS="$save_LDFLAGS"
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7263 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7264 if test "${lt_cv_ld_force_load+set}" = set; then :
7265 $as_echo_n "(cached
) " >&6
7267 lt_cv_ld_force_load=no
7268 cat > conftest.c << _LT_EOF
7269 int forced_loaded() { return 2;}
7271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7273 echo "$AR cru libconftest.a conftest.o
" >&5
7274 $AR cru libconftest.a conftest.o 2>&5
7275 cat > conftest.c << _LT_EOF
7276 int main() { return 0;}
7278 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7279 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7281 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7282 lt_cv_ld_force_load=yes
7284 cat conftest.err >&5
7286 rm -f conftest.err libconftest.a conftest conftest.c
7287 rm -rf conftest.dSYM
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7291 $as_echo "$lt_cv_ld_force_load" >&6; }
7293 rhapsody* | darwin1.[012])
7294 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297 darwin*) # darwin 5.x on
7298 # if running on 10.5 or later, the deployment target defaults
7299 # to the OS version, if on x86, and 10.4, the deployment
7300 # target defaults to 10.4. Don't you love it?
7301 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7302 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7303 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7311 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7312 _lt_dar_single_mod='$single_module'
7314 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7315 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7317 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7319 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7320 _lt_dsymutil='~$DSYMUTIL $lib || :'
7328 ac_cpp='$CPP $CPPFLAGS'
7329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7333 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7334 # On Suns, sometimes $CPP names a directory.
7335 if test -n "$CPP" && test -d "$CPP"; then
7338 if test -z "$CPP"; then
7339 if test "${ac_cv_prog_CPP+set}" = set; then :
7340 $as_echo_n "(cached
) " >&6
7342 # Double quotes because CPP needs to be expanded
7343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7346 for ac_c_preproc_warn_flag in '' yes
7348 # Use a header file that comes with gcc, so configuring glibc
7349 # with a fresh cross-compiler works.
7350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351 # <limits.h> exists even on freestanding compilers.
7352 # On the NeXT, cc -E runs the code through the compiler's parser,
7353 # not just through cpp. "Syntax error
" is here to catch this case.
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7357 # include <limits.h>
7359 # include <assert.h>
7363 if ac_fn_c_try_cpp "$LINENO"; then :
7366 # Broken: fails on valid input.
7369 rm -f conftest.err conftest.$ac_ext
7371 # OK, works on sane cases. Now check whether nonexistent headers
7372 # can be detected and how.
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375 #include <ac_nonexistent.h>
7377 if ac_fn_c_try_cpp "$LINENO"; then :
7378 # Broken: success on invalid input.
7381 # Passes both tests.
7385 rm -f conftest.err conftest.$ac_ext
7388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7389 rm -f conftest.err conftest.$ac_ext
7390 if $ac_preproc_ok; then :
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7403 $as_echo "$CPP" >&6; }
7405 for ac_c_preproc_warn_flag in '' yes
7407 # Use a header file that comes with gcc, so configuring glibc
7408 # with a fresh cross-compiler works.
7409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7410 # <limits.h> exists even on freestanding compilers.
7411 # On the NeXT, cc -E runs the code through the compiler's parser,
7412 # not just through cpp. "Syntax error
" is here to catch this case.
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7416 # include <limits.h>
7418 # include <assert.h>
7422 if ac_fn_c_try_cpp "$LINENO"; then :
7425 # Broken: fails on valid input.
7428 rm -f conftest.err conftest.$ac_ext
7430 # OK, works on sane cases. Now check whether nonexistent headers
7431 # can be detected and how.
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 #include <ac_nonexistent.h>
7436 if ac_fn_c_try_cpp "$LINENO"; then :
7437 # Broken: success on invalid input.
7440 # Passes both tests.
7444 rm -f conftest.err conftest.$ac_ext
7447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7448 rm -f conftest.err conftest.$ac_ext
7449 if $ac_preproc_ok; then :
7452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7454 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7455 See \`config.log' for more details.
" "$LINENO" 5; }
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7466 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7467 if test "${ac_cv_header_stdc+set}" = set; then :
7468 $as_echo_n "(cached
) " >&6
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 ac_cv_header_stdc=yes
7488 ac_cv_header_stdc=no
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 if test $ac_cv_header_stdc = yes; then
7493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7499 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7500 $EGREP "memchr
" >/dev/null 2>&1; then :
7503 ac_cv_header_stdc=no
7509 if test $ac_cv_header_stdc = yes; then
7510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7516 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7517 $EGREP "free
" >/dev/null 2>&1; then :
7520 ac_cv_header_stdc=no
7526 if test $ac_cv_header_stdc = yes; then
7527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7528 if test "$cross_compiling" = yes; then :
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7535 #if ((' ' & 0x0FF) == 0x020)
7536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7539 # define ISLOWER(c) \
7540 (('a' <= (c) && (c) <= 'i') \
7541 || ('j' <= (c) && (c) <= 'r') \
7542 || ('s' <= (c) && (c) <= 'z'))
7543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7551 for (i = 0; i < 256; i++)
7552 if (XOR (islower (i), ISLOWER (i))
7553 || toupper (i) != TOUPPER (i))
7558 if ac_fn_c_try_run "$LINENO"; then :
7561 ac_cv_header_stdc=no
7563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7564 conftest.$ac_objext conftest.beam conftest.$ac_ext
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7570 $as_echo "$ac_cv_header_stdc" >&6; }
7571 if test $ac_cv_header_stdc = yes; then
7573 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7578 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7579 inttypes.h stdint.h unistd.h
7581 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7582 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7584 eval as_val
=\$
$as_ac_Header
7585 if test "x$as_val" = x
""yes; then :
7586 cat >>confdefs.h
<<_ACEOF
7587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7595 for ac_header
in dlfcn.h
7597 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7599 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7600 cat >>confdefs.h
<<_ACEOF
7601 #define HAVE_DLFCN_H 1
7622 # Check whether --enable-shared was given.
7623 if test "${enable_shared+set}" = set; then :
7624 enableval
=$enable_shared; p
=${PACKAGE-default}
7626 yes) enable_shared
=yes ;;
7627 no
) enable_shared
=no
;;
7630 # Look at the argument we got. We use all the common list separators.
7631 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7632 for pkg
in $enableval; do
7634 if test "X$pkg" = "X$p"; then
7653 # Check whether --enable-static was given.
7654 if test "${enable_static+set}" = set; then :
7655 enableval
=$enable_static; p
=${PACKAGE-default}
7657 yes) enable_static
=yes ;;
7658 no
) enable_static
=no
;;
7661 # Look at the argument we got. We use all the common list separators.
7662 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7663 for pkg
in $enableval; do
7665 if test "X$pkg" = "X$p"; then
7685 # Check whether --with-pic was given.
7686 if test "${with_pic+set}" = set; then :
7687 withval
=$with_pic; p
=${PACKAGE-default}
7689 yes|no
) pic_mode
="$withval" ;;
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7694 for pkg
in $withval; do
7696 if test "X$pkg" = "X$p"; then
7708 test -z "$pic_mode" && pic_mode
=default
7716 # Check whether --enable-fast-install was given.
7717 if test "${enable_fast_install+set}" = set; then :
7718 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7720 yes) enable_fast_install
=yes ;;
7721 no
) enable_fast_install
=no
;;
7723 enable_fast_install
=no
7724 # Look at the argument we got. We use all the common list separators.
7725 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7726 for pkg
in $enableval; do
7728 if test "X$pkg" = "X$p"; then
7729 enable_fast_install
=yes
7736 enable_fast_install
=yes
7749 # This can be used to rebuild libtool when needed
7750 LIBTOOL_DEPS
="$ltmain"
7752 # Always use our own libtool.
7753 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7780 test -z "$LN_S" && LN_S
="ln -s"
7795 if test -n "${ZSH_VERSION+set}" ; then
7796 setopt NO_GLOB_SUBST
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7800 $as_echo_n "checking for objdir... " >&6; }
7801 if test "${lt_cv_objdir+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7804 rm -f .libs
2>/dev
/null
7805 mkdir .libs
2>/dev
/null
7806 if test -d .libs
; then
7809 # MS-DOS does not allow filenames that begin with a dot.
7812 rmdir .libs
2>/dev
/null
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7815 $as_echo "$lt_cv_objdir" >&6; }
7816 objdir
=$lt_cv_objdir
7822 cat >>confdefs.h
<<_ACEOF
7823 #define LT_OBJDIR "$lt_cv_objdir/"
7831 # AIX sometimes has problems with the GCC collect2 program. For some
7832 # reason, if we set the COLLECT_NAMES environment variable, the problems
7833 # vanish in a puff of smoke.
7834 if test "X${COLLECT_NAMES+set}" != Xset
; then
7836 export COLLECT_NAMES
7843 can_build_shared
=yes
7845 # All known linkers require a `.a' archive for static linking (except MSVC,
7846 # which needs '.lib').
7849 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7852 old_CFLAGS
="$CFLAGS"
7854 # Set sane defaults for various variables
7855 test -z "$CC" && CC
=cc
7856 test -z "$LTCC" && LTCC
=$CC
7857 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7858 test -z "$LD" && LD
=ld
7859 test -z "$ac_objext" && ac_objext
=o
7861 for cc_temp
in $compiler""; do
7863 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7864 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7869 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7872 # Only perform the check for file, if the check method requires it
7873 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7874 case $deplibs_check_method in
7876 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7878 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7884 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7887 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7888 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7889 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7890 for ac_dir
in $ac_dummy; do
7892 test -z "$ac_dir" && ac_dir
=.
7893 if test -f $ac_dir/${ac_tool_prefix}file; then
7894 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7895 if test -n "$file_magic_test_file"; then
7896 case $deplibs_check_method in
7898 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7899 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7900 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7901 $EGREP "$file_magic_regex" > /dev
/null
; then
7906 *** Warning: the command libtool uses to detect shared libraries,
7907 *** $file_magic_cmd, produces output that libtool cannot recognize.
7908 *** The result is that libtool may fail to recognize shared libraries
7909 *** as such. This will affect the creation of libtool libraries that
7910 *** depend on shared libraries, but programs linked with such libtool
7911 *** libraries will work regardless of this problem. Nevertheless, you
7912 *** may want to report the problem to your system manager and/or to
7913 *** bug-libtool@gnu.org
7923 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7928 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7929 if test -n "$MAGIC_CMD"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7931 $as_echo "$MAGIC_CMD" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7941 if test -z "$lt_cv_path_MAGIC_CMD"; then
7942 if test -n "$ac_tool_prefix"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7944 $as_echo_n "checking for file... " >&6; }
7945 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7950 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7953 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7954 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7955 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7956 for ac_dir
in $ac_dummy; do
7958 test -z "$ac_dir" && ac_dir
=.
7959 if test -f $ac_dir/file; then
7960 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7961 if test -n "$file_magic_test_file"; then
7962 case $deplibs_check_method in
7964 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7965 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7966 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7967 $EGREP "$file_magic_regex" > /dev
/null
; then
7972 *** Warning: the command libtool uses to detect shared libraries,
7973 *** $file_magic_cmd, produces output that libtool cannot recognize.
7974 *** The result is that libtool may fail to recognize shared libraries
7975 *** as such. This will affect the creation of libtool libraries that
7976 *** depend on shared libraries, but programs linked with such libtool
7977 *** libraries will work regardless of this problem. Nevertheless, you
7978 *** may want to report the problem to your system manager and/or to
7979 *** bug-libtool@gnu.org
7989 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7994 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7995 if test -n "$MAGIC_CMD"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7997 $as_echo "$MAGIC_CMD" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8013 # Use C for the default configuration in the libtool script
8017 ac_cpp
='$CPP $CPPFLAGS'
8018 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8023 # Source file extension for C test sources.
8026 # Object file extension for compiled C test sources.
8030 # Code to be used in simple compile tests
8031 lt_simple_compile_test_code
="int some_variable = 0;"
8033 # Code to be used in simple link tests
8034 lt_simple_link_test_code
='int main(){return(0);}'
8042 # If no C compiler was specified, use CC.
8045 # If no C compiler flags were specified, use CFLAGS.
8046 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8048 # Allow CC to be a program name with arguments.
8051 # Save the default compiler, since it gets overwritten when the other
8052 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8053 compiler_DEFAULT
=$CC
8055 # save warnings/boilerplate of simple test code
8056 ac_outfile
=conftest.
$ac_objext
8057 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8058 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8059 _lt_compiler_boilerplate
=`cat conftest.err`
8062 ac_outfile
=conftest.
$ac_objext
8063 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8064 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8065 _lt_linker_boilerplate
=`cat conftest.err`
8070 ## There is no encapsulation within the following macros, do not change
8071 ## the running order or otherwise move them around unless you know exactly
8072 ## what you are doing...
8073 if test -n "$compiler"; then
8075 lt_prog_compiler_no_builtin_flag
=
8077 if test "$GCC" = yes; then
8078 case $cc_basename in
8080 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8082 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8086 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8087 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8090 lt_cv_prog_compiler_rtti_exceptions
=no
8091 ac_outfile
=conftest.
$ac_objext
8092 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8093 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8094 # Insert the option either (1) after the last *FLAGS variable, or
8095 # (2) before a word containing "conftest.", or (3) at the end.
8096 # Note that $ac_compile itself does not contain backslashes and begins
8097 # with a dollar sign (not a hyphen), so the echo should work correctly.
8098 # The option is referenced via a variable to avoid confusing sed.
8099 lt_compile
=`echo "$ac_compile" | $SED \
8100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8102 -e 's:$: $lt_compiler_flag:'`
8103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8104 (eval "$lt_compile" 2>conftest.err
)
8106 cat conftest.err
>&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 if (exit $ac_status) && test -s "$ac_outfile"; then
8109 # The compiler can only warn and ignore the option if not recognized
8110 # So say no if there are warnings other than the usual output.
8111 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8112 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8113 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8114 lt_cv_prog_compiler_rtti_exceptions
=yes
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8121 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8123 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8124 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8136 lt_prog_compiler_wl
=
8137 lt_prog_compiler_pic
=
8138 lt_prog_compiler_static
=
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8141 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8143 if test "$GCC" = yes; then
8144 lt_prog_compiler_wl
='-Wl,'
8145 lt_prog_compiler_static
='-static'
8149 # All AIX code is PIC.
8150 if test "$host_cpu" = ia64
; then
8151 # AIX 5 now supports IA64 processor
8152 lt_prog_compiler_static
='-Bstatic'
8159 # see comment about AmigaOS4 .so support
8160 lt_prog_compiler_pic
='-fPIC'
8163 # FIXME: we need at least 68020 code to build shared libraries, but
8164 # adding the `-m68020' flag to GCC prevents building anything better,
8166 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8171 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8172 # PIC is the default for these OSes.
8175 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8176 # This hack is so that the source file can tell whether it is being
8177 # built for inclusion in a dll (and should export symbols for example).
8178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8179 # (--disable-auto-import) libraries
8180 lt_prog_compiler_pic
='-DDLL_EXPORT'
8183 darwin
* | rhapsody
*)
8184 # PIC is the default on this platform
8185 # Common symbols not allowed in MH_DYLIB files
8186 lt_prog_compiler_pic
='-fno-common'
8190 # PIC is the default for Haiku.
8191 # The "-static" flag exists, but is broken.
8192 lt_prog_compiler_static
=
8196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8198 # sets the default TLS model and affects inlining.
8204 lt_prog_compiler_pic
='-fPIC'
8210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8211 # Instead, we relocate shared libraries at runtime.
8215 # Just because we use GCC doesn't mean we suddenly get shared libraries
8216 # on systems that don't support them.
8217 lt_prog_compiler_can_build_shared
=no
8222 # QNX uses GNU C++, but need to define -shared option too, otherwise
8224 lt_prog_compiler_pic
='-fPIC -shared'
8228 if test -d /usr
/nec
; then
8229 lt_prog_compiler_pic
=-Kconform_pic
8234 lt_prog_compiler_pic
='-fPIC'
8238 case $cc_basename in
8239 nvcc
*) # Cuda Compiler Driver 2.2
8240 lt_prog_compiler_wl
='-Xlinker '
8241 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8245 # PORTME Check for flag to pass linker flags through the system compiler.
8248 lt_prog_compiler_wl
='-Wl,'
8249 if test "$host_cpu" = ia64
; then
8250 # AIX 5 now supports IA64 processor
8251 lt_prog_compiler_static
='-Bstatic'
8253 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8257 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8258 # This hack is so that the source file can tell whether it is being
8259 # built for inclusion in a dll (and should export symbols for example).
8260 lt_prog_compiler_pic
='-DDLL_EXPORT'
8263 hpux9
* | hpux10
* | hpux11
*)
8264 lt_prog_compiler_wl
='-Wl,'
8265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8272 lt_prog_compiler_pic
='+Z'
8275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8276 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8279 irix5
* | irix6
* | nonstopux
*)
8280 lt_prog_compiler_wl
='-Wl,'
8281 # PIC (with -KPIC) is the default.
8282 lt_prog_compiler_static
='-non_shared'
8285 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8286 case $cc_basename in
8287 # old Intel for x86_64 which still supported -KPIC.
8289 lt_prog_compiler_wl
='-Wl,'
8290 lt_prog_compiler_pic
='-KPIC'
8291 lt_prog_compiler_static
='-static'
8293 # icc used to be incompatible with GCC.
8294 # ICC 10 doesn't accept -KPIC any more.
8296 lt_prog_compiler_wl
='-Wl,'
8297 lt_prog_compiler_pic
='-fPIC'
8298 lt_prog_compiler_static
='-static'
8300 # Lahey Fortran 8.1.
8302 lt_prog_compiler_wl
='-Wl,'
8303 lt_prog_compiler_pic
='--shared'
8304 lt_prog_compiler_static
='--static'
8306 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8307 # Portland Group compilers (*not* the Pentium gcc compiler,
8308 # which looks to be a dead project)
8309 lt_prog_compiler_wl
='-Wl,'
8310 lt_prog_compiler_pic
='-fpic'
8311 lt_prog_compiler_static
='-Bstatic'
8314 lt_prog_compiler_wl
='-Wl,'
8315 # All Alpha code is PIC.
8316 lt_prog_compiler_static
='-non_shared'
8318 xl
* | bgxl
* | bgf
* | mpixl
*)
8319 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8320 lt_prog_compiler_wl
='-Wl,'
8321 lt_prog_compiler_pic
='-qpic'
8322 lt_prog_compiler_static
='-qstaticlink'
8325 case `$CC -V 2>&1 | sed 5q` in
8326 *Sun\ F
* |
*Sun
*Fortran
*)
8327 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8328 lt_prog_compiler_pic
='-KPIC'
8329 lt_prog_compiler_static
='-Bstatic'
8330 lt_prog_compiler_wl
=''
8334 lt_prog_compiler_pic
='-KPIC'
8335 lt_prog_compiler_static
='-Bstatic'
8336 lt_prog_compiler_wl
='-Wl,'
8344 lt_prog_compiler_pic
='-KPIC'
8345 lt_prog_compiler_static
='-Bstatic'
8349 # QNX uses GNU C++, but need to define -shared option too, otherwise
8351 lt_prog_compiler_pic
='-fPIC -shared'
8354 osf3
* | osf4
* | osf5
*)
8355 lt_prog_compiler_wl
='-Wl,'
8356 # All OSF/1 code is PIC.
8357 lt_prog_compiler_static
='-non_shared'
8361 lt_prog_compiler_static
='-non_shared'
8365 lt_prog_compiler_pic
='-KPIC'
8366 lt_prog_compiler_static
='-Bstatic'
8367 case $cc_basename in
8369 lt_prog_compiler_wl
='-Qoption ld ';;
8371 lt_prog_compiler_wl
='-Wl,';;
8376 lt_prog_compiler_wl
='-Qoption ld '
8377 lt_prog_compiler_pic
='-PIC'
8378 lt_prog_compiler_static
='-Bstatic'
8381 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8382 lt_prog_compiler_wl
='-Wl,'
8383 lt_prog_compiler_pic
='-KPIC'
8384 lt_prog_compiler_static
='-Bstatic'
8388 if test -d /usr
/nec
;then
8389 lt_prog_compiler_pic
='-Kconform_pic'
8390 lt_prog_compiler_static
='-Bstatic'
8394 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8395 lt_prog_compiler_wl
='-Wl,'
8396 lt_prog_compiler_pic
='-KPIC'
8397 lt_prog_compiler_static
='-Bstatic'
8401 lt_prog_compiler_wl
='-Wl,'
8402 lt_prog_compiler_can_build_shared
=no
8406 lt_prog_compiler_pic
='-pic'
8407 lt_prog_compiler_static
='-Bstatic'
8411 lt_prog_compiler_can_build_shared
=no
8417 # For platforms which do not support PIC, -DPIC is meaningless:
8419 lt_prog_compiler_pic
=
8422 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8426 $as_echo "$lt_prog_compiler_pic" >&6; }
8434 # Check to make sure the PIC flag actually works.
8436 if test -n "$lt_prog_compiler_pic"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8438 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8439 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8442 lt_cv_prog_compiler_pic_works
=no
8443 ac_outfile
=conftest.
$ac_objext
8444 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8445 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8446 # Insert the option either (1) after the last *FLAGS variable, or
8447 # (2) before a word containing "conftest.", or (3) at the end.
8448 # Note that $ac_compile itself does not contain backslashes and begins
8449 # with a dollar sign (not a hyphen), so the echo should work correctly.
8450 # The option is referenced via a variable to avoid confusing sed.
8451 lt_compile
=`echo "$ac_compile" | $SED \
8452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8454 -e 's:$: $lt_compiler_flag:'`
8455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8456 (eval "$lt_compile" 2>conftest.err
)
8458 cat conftest.err
>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 if (exit $ac_status) && test -s "$ac_outfile"; then
8461 # The compiler can only warn and ignore the option if not recognized
8462 # So say no if there are warnings other than the usual output.
8463 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8464 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8465 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8466 lt_cv_prog_compiler_pic_works
=yes
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8473 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8475 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8476 case $lt_prog_compiler_pic in
8478 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8481 lt_prog_compiler_pic
=
8482 lt_prog_compiler_can_build_shared
=no
8493 # Check to make sure the static flag actually works.
8495 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8497 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8498 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8501 lt_cv_prog_compiler_static_works
=no
8502 save_LDFLAGS
="$LDFLAGS"
8503 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8504 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8505 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8506 # The linker can only warn and ignore the option if not recognized
8507 # So say no if there are warnings
8508 if test -s conftest.err
; then
8509 # Append any errors to the config.log.
8510 cat conftest.err
1>&5
8511 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8513 if diff conftest.exp conftest.er2
>/dev
/null
; then
8514 lt_cv_prog_compiler_static_works
=yes
8517 lt_cv_prog_compiler_static_works
=yes
8521 LDFLAGS
="$save_LDFLAGS"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8525 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8527 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8530 lt_prog_compiler_static
=
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8541 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8544 lt_cv_prog_compiler_c_o
=no
8545 $RM -r conftest
2>/dev
/null
8549 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8551 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 lt_compile
=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>out
/conftest.err
)
8563 cat out
/conftest.err
>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings
8569 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8570 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8571 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8572 lt_cv_prog_compiler_c_o
=yes
8577 # SGI C++ compiler will create directory out/ii_files/ for
8578 # template instantiation
8579 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8580 $RM out
/* && rmdir out
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8587 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8595 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8596 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8599 lt_cv_prog_compiler_c_o
=no
8600 $RM -r conftest
2>/dev
/null
8604 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8606 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8607 # Insert the option either (1) after the last *FLAGS variable, or
8608 # (2) before a word containing "conftest.", or (3) at the end.
8609 # Note that $ac_compile itself does not contain backslashes and begins
8610 # with a dollar sign (not a hyphen), so the echo should work correctly.
8611 lt_compile
=`echo "$ac_compile" | $SED \
8612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8614 -e 's:$: $lt_compiler_flag:'`
8615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8616 (eval "$lt_compile" 2>out
/conftest.err
)
8618 cat out
/conftest.err
>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8622 # The compiler can only warn and ignore the option if not recognized
8623 # So say no if there are warnings
8624 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8625 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8626 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8627 lt_cv_prog_compiler_c_o
=yes
8632 # SGI C++ compiler will create directory out/ii_files/ for
8633 # template instantiation
8634 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8635 $RM out
/* && rmdir out
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8642 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647 hard_links
="nottested"
8648 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8649 # do not overwrite the value of need_locks provided by the user
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8651 $as_echo_n "checking if we can lock with hard links... " >&6; }
8654 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8656 ln conftest.a conftest.b
2>&5 || hard_links
=no
8657 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8659 $as_echo "$hard_links" >&6; }
8660 if test "$hard_links" = no
; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8662 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8675 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8678 allow_undefined_flag
=
8679 always_export_symbols
=no
8681 archive_expsym_cmds
=
8682 compiler_needs_object
=no
8683 enable_shared_with_static_runtimes
=no
8684 export_dynamic_flag_spec
=
8685 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8686 hardcode_automatic
=no
8688 hardcode_direct_absolute
=no
8689 hardcode_libdir_flag_spec
=
8690 hardcode_libdir_flag_spec_ld
=
8691 hardcode_libdir_separator
=
8693 hardcode_shlibpath_var
=unsupported
8695 link_all_deplibs
=unknown
8698 old_archive_from_new_cmds
=
8699 old_archive_from_expsyms_cmds
=
8700 thread_safe_flag_spec
=
8701 whole_archive_flag_spec
=
8702 # include_expsyms should be a list of space-separated symbols to be *always*
8703 # included in the symbol list
8705 # exclude_expsyms can be an extended regexp of symbols to exclude
8706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8708 # as well as any symbol that contains `d'.
8709 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8711 # platforms (ab)use it in PIC code, but their linkers get confused if
8712 # the symbol is explicitly referenced. Since portable code cannot
8713 # rely on this symbol name, it's probably fine to never include it in
8714 # preloaded symbol tables.
8715 # Exclude shared library initialization/finalization symbols.
8716 extract_expsyms_cmds
=
8719 cygwin
* | mingw
* | pw32
* | cegcc
*)
8720 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8721 # When not using gcc, we currently assume that we are using
8722 # Microsoft Visual C++.
8723 if test "$GCC" != yes; then
8728 # we just hope/assume this is gcc and not c89 (= MSVC++)
8738 # On some targets, GNU ld is compatible enough with the native linker
8739 # that we're better off using the native interface for both.
8740 lt_use_gnu_ld_interface
=no
8741 if test "$with_gnu_ld" = yes; then
8744 # The AIX port of GNU ld has always aspired to compatibility
8745 # with the native linker. However, as the warning in the GNU ld
8746 # block says, versions before 2.19.5* couldn't really create working
8747 # shared libraries, regardless of the interface used.
8748 case `$LD -v 2>&1` in
8749 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8750 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8751 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8753 lt_use_gnu_ld_interface
=yes
8758 lt_use_gnu_ld_interface
=yes
8763 if test "$lt_use_gnu_ld_interface" = yes; then
8764 # If archive_cmds runs LD, not CC, wlarc should be empty
8767 # Set some defaults for GNU ld with shared library support. These
8768 # are reset later if shared libraries are not supported. Putting them
8769 # here allows them to be overridden if necessary.
8770 runpath_var
=LD_RUN_PATH
8771 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8772 export_dynamic_flag_spec
='${wl}--export-dynamic'
8773 # ancient GNU ld didn't support --whole-archive et. al.
8774 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8775 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8777 whole_archive_flag_spec
=
8779 supports_anon_versioning
=no
8780 case `$LD -v 2>&1` in
8781 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8782 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8783 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8784 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8785 *\
2.11.
*) ;; # other 2.11 versions
8786 *) supports_anon_versioning
=yes ;;
8789 # See if GNU ld supports shared libraries.
8792 # On AIX/PPC, the GNU linker is very broken
8793 if test "$host_cpu" != ia64
; then
8797 *** Warning: the GNU linker, at least up to release 2.19, is reported
8798 *** to be unable to reliably create shared libraries on AIX.
8799 *** Therefore, libtool is disabling shared libraries support. If you
8800 *** really care for shared libraries, you may want to install binutils
8801 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8802 *** You will then need to restart the configuration process.
8811 # see comment about AmigaOS4 .so support
8812 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 archive_expsym_cmds
=''
8816 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)'
8817 hardcode_libdir_flag_spec
='-L$libdir'
8818 hardcode_minus_L
=yes
8824 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8825 allow_undefined_flag
=unsupported
8826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8827 # support --undefined. This deserves some investigation. FIXME
8828 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 cygwin
* | mingw
* | pw32
* | cegcc
*)
8835 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8836 # as there is no search path for DLLs.
8837 hardcode_libdir_flag_spec
='-L$libdir'
8838 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8839 allow_undefined_flag
=unsupported
8840 always_export_symbols
=no
8841 enable_shared_with_static_runtimes
=yes
8842 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8844 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8845 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8846 # If the export-symbols file already is a .def file (1st line
8847 # is EXPORTS), use it as is; otherwise, prepend...
8848 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8849 cp $export_symbols $output_objdir/$soname.def;
8851 echo EXPORTS > $output_objdir/$soname.def;
8852 cat $export_symbols >> $output_objdir/$soname.def;
8854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8861 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 link_all_deplibs
=yes
8867 hardcode_shlibpath_var
=no
8868 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8869 export_dynamic_flag_spec
='${wl}-E'
8870 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8871 # Instead, shared libraries are loaded at an image base (0x10000000 by
8872 # default) and relocated if they conflict, which is a slow very memory
8873 # consuming and fragmenting process. To avoid this, we pick a random,
8874 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8875 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8876 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8877 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'
8880 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8882 if test "$host_os" = linux-dietlibc
; then
8883 case $cc_basename in
8884 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8887 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8888 && test "$tmp_diet" = no
8891 tmp_sharedflag
='-shared'
8892 case $cc_basename,$host_cpu in
8893 pgcc
*) # Portland Group C compiler
8894 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'
8895 tmp_addflag
=' $pic_flag'
8897 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8898 # Portland Group f77 and f90 compilers
8899 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'
8900 tmp_addflag
=' $pic_flag -Mnomain' ;;
8901 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8902 tmp_addflag
=' -i_dynamic' ;;
8903 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8904 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8905 ifc
* | ifort
*) # Intel Fortran compiler
8906 tmp_addflag
=' -nofor_main' ;;
8907 lf95
*) # Lahey Fortran 8.1
8908 whole_archive_flag_spec
=
8909 tmp_sharedflag
='--shared' ;;
8910 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8911 tmp_sharedflag
='-qmkshrobj'
8913 nvcc
*) # Cuda Compiler Driver 2.2
8914 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'
8915 compiler_needs_object
=yes
8918 case `$CC -V 2>&1 | sed 5q` in
8919 *Sun\ C
*) # Sun C 5.9
8920 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'
8921 compiler_needs_object
=yes
8922 tmp_sharedflag
='-G' ;;
8923 *Sun\ F
*) # Sun Fortran 8.3
8924 tmp_sharedflag
='-G' ;;
8926 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928 if test "x$supports_anon_versioning" = xyes
; then
8929 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8931 echo "local: *; };" >> $output_objdir/$libname.ver~
8932 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8935 case $cc_basename in
8936 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8937 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8938 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8939 hardcode_libdir_flag_spec
=
8940 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8941 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8942 if test "x$supports_anon_versioning" = xyes
; then
8943 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8945 echo "local: *; };" >> $output_objdir/$libname.ver~
8946 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8956 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8957 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8960 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8971 *** create shared libraries on Solaris systems. Therefore, libtool
8972 *** is disabling shared libraries support. We urge you to upgrade GNU
8973 *** binutils to release 2.9.1 or newer. Another option is to modify
8974 *** your PATH or compiler configuration so that the native linker is
8975 *** used, and then restart.
8978 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8979 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8987 case `$LD -v 2>&1` in
8988 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8993 *** reliably create shared libraries on SCO systems. Therefore, libtool
8994 *** is disabling shared libraries support. We urge you to upgrade GNU
8995 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8996 *** your PATH or compiler configuration so that the native linker is
8997 *** used, and then restart.
9002 # For security reasons, it is highly recommended that you always
9003 # use absolute paths for naming shared libraries, and exclude the
9004 # DT_RUNPATH tag from executables and libraries. But doing so
9005 # requires that you compile everything twice, which is a pain.
9006 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9007 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9008 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9021 hardcode_shlibpath_var
=no
9025 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9026 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 if test "$ld_shlibs" = no
; then
9036 hardcode_libdir_flag_spec
=
9037 export_dynamic_flag_spec
=
9038 whole_archive_flag_spec
=
9041 # PORTME fill in a description of your system's linker (not GNU ld)
9044 allow_undefined_flag
=unsupported
9045 always_export_symbols
=yes
9046 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'
9047 # Note: this linker hardcodes the directories in LIBPATH if there
9048 # are no directories specified by -L.
9049 hardcode_minus_L
=yes
9050 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9051 # Neither direct hardcoding nor static linking is supported with a
9053 hardcode_direct
=unsupported
9058 if test "$host_cpu" = ia64
; then
9059 # On IA64, the linker does run time linking by default, so we don't
9060 # have to do anything special.
9061 aix_use_runtimelinking
=no
9062 exp_sym_flag
='-Bexport'
9065 # If we're using GNU nm, then we don't want the "-C" option.
9066 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9067 # Also, AIX nm treats weak defined symbols like other global
9068 # defined symbols, whereas GNU nm marks them as "W".
9069 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9070 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'
9072 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'
9074 aix_use_runtimelinking
=no
9076 # Test if we are trying to use run time linking or normal
9077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9078 # need to do runtime linking.
9079 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9080 for ld_flag
in $LDFLAGS; do
9081 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9082 aix_use_runtimelinking
=yes
9089 exp_sym_flag
='-bexport'
9090 no_entry_flag
='-bnoentry'
9093 # When large executables or shared objects are built, AIX ld can
9094 # have problems creating the table of contents. If linking a library
9095 # or program results in "error TOC overflow" add -mminimal-toc to
9096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9101 hardcode_direct_absolute
=yes
9102 hardcode_libdir_separator
=':'
9103 link_all_deplibs
=yes
9104 file_list_spec
='${wl}-f,'
9106 if test "$GCC" = yes; then
9107 case $host_os in aix4.
[012]|aix4.
[012].
*)
9108 # We only want to do this on AIX 4.2 and lower, the check
9109 # below for broken collect2 doesn't work under 4.3+
9110 collect2name
=`${CC} -print-prog-name=collect2`
9111 if test -f "$collect2name" &&
9112 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9114 # We have reworked collect2
9117 # We have old collect2
9118 hardcode_direct
=unsupported
9119 # It fails to find uninstalled libraries when the uninstalled
9120 # path is not listed in the libpath. Setting hardcode_minus_L
9121 # to unsupported forces relinking
9122 hardcode_minus_L
=yes
9123 hardcode_libdir_flag_spec
='-L$libdir'
9124 hardcode_libdir_separator
=
9128 shared_flag
='-shared'
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag
="$shared_flag "'${wl}-G'
9134 if test "$host_cpu" = ia64
; then
9135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9136 # chokes on -Wl,-G. The following line is correct:
9139 if test "$aix_use_runtimelinking" = yes; then
9140 shared_flag
='${wl}-G'
9142 shared_flag
='${wl}-bM:SRE'
9147 export_dynamic_flag_spec
='${wl}-bexpall'
9148 # It seems that -bexpall does not export symbols beginning with
9149 # underscore (_), so it is better to generate a list of symbols to export.
9150 always_export_symbols
=yes
9151 if test "$aix_use_runtimelinking" = yes; then
9152 # Warning - without using the other runtime loading flags (-brtl),
9153 # -berok will link without error, but may produce a broken library.
9154 allow_undefined_flag
='-berok'
9155 # Determine the default libpath from the value encoded in an
9157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9168 if ac_fn_c_try_link
"$LINENO"; then :
9170 lt_aix_libpath_sed
='
9171 /Import File Strings/,/^$/ {
9177 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178 # Check for a 64-bit object if we didn't find anything.
9179 if test -z "$aix_libpath"; then
9180 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 rm -f core conftest.err conftest.
$ac_objext \
9184 conftest
$ac_exeext conftest.
$ac_ext
9185 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9187 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9188 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"
9190 if test "$host_cpu" = ia64
; then
9191 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9192 allow_undefined_flag
="-z nodefs"
9193 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"
9195 # Determine the default libpath from the value encoded in an
9197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9208 if ac_fn_c_try_link
"$LINENO"; then :
9210 lt_aix_libpath_sed
='
9211 /Import File Strings/,/^$/ {
9217 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218 # Check for a 64-bit object if we didn't find anything.
9219 if test -z "$aix_libpath"; then
9220 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 rm -f core conftest.err conftest.
$ac_objext \
9224 conftest
$ac_exeext conftest.
$ac_ext
9225 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9227 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9228 # Warning - without using the other run time loading flags,
9229 # -berok will link without error, but may produce a broken library.
9230 no_undefined_flag
=' ${wl}-bernotok'
9231 allow_undefined_flag
=' ${wl}-berok'
9232 if test "$with_gnu_ld" = yes; then
9233 # We only use this code for GNU lds that support --whole-archive.
9234 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9236 # Exported symbols can be pulled into shared objects from archives
9237 whole_archive_flag_spec
='$convenience'
9239 archive_cmds_need_lc
=yes
9240 # This is similar to how AIX traditionally builds its shared libraries.
9241 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'
9249 # see comment about AmigaOS4 .so support
9250 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 archive_expsym_cmds
=''
9254 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)'
9255 hardcode_libdir_flag_spec
='-L$libdir'
9256 hardcode_minus_L
=yes
9262 export_dynamic_flag_spec
=-rdynamic
9265 cygwin
* | mingw
* | pw32
* | cegcc
*)
9266 # When not using gcc, we currently assume that we are using
9267 # Microsoft Visual C++.
9268 # hardcode_libdir_flag_spec is actually meaningless, as there is
9269 # no search path for DLLs.
9270 hardcode_libdir_flag_spec
=' '
9271 allow_undefined_flag
=unsupported
9272 # Tell ltmain to make .lib files, not .a files.
9274 # Tell ltmain to make .dll files, not .so files.
9276 # FIXME: Setting linknames here is a bad hack.
9277 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9278 # The linker will automatically build a .lib file if we build a DLL.
9279 old_archive_from_new_cmds
='true'
9280 # FIXME: Should let the user specify the lib program.
9281 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9282 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9283 enable_shared_with_static_runtimes
=yes
9286 darwin
* | rhapsody
*)
9289 archive_cmds_need_lc
=no
9291 hardcode_automatic
=yes
9292 hardcode_shlibpath_var
=unsupported
9293 if test "$lt_cv_ld_force_load" = "yes"; then
9294 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\"`'
9296 whole_archive_flag_spec
=''
9298 link_all_deplibs
=yes
9299 allow_undefined_flag
="$_lt_dar_allow_undefined"
9300 case $cc_basename in
9301 ifort
*) _lt_dar_can_shared
=yes ;;
9302 *) _lt_dar_can_shared
=$GCC ;;
9304 if test "$_lt_dar_can_shared" = "yes"; then
9305 output_verbose_link_cmd
=func_echo_all
9306 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9307 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9308 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}"
9309 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}"
9318 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_libdir_flag_spec
='-L$libdir'
9320 hardcode_shlibpath_var
=no
9323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9324 # support. Future versions do this automatically, but an explicit c++rt0.o
9325 # does not break anything, and helps significantly (at the cost of a little
9328 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9329 hardcode_libdir_flag_spec
='-R$libdir'
9331 hardcode_shlibpath_var
=no
9334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9336 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338 hardcode_minus_L
=yes
9339 hardcode_shlibpath_var
=no
9342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9343 freebsd
* | dragonfly
*)
9344 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9345 hardcode_libdir_flag_spec
='-R$libdir'
9347 hardcode_shlibpath_var
=no
9351 if test "$GCC" = yes; then
9352 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'
9354 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'
9356 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9357 hardcode_libdir_separator
=:
9360 # hardcode_minus_L: Not really in the search PATH,
9361 # but as the default location of the library.
9362 hardcode_minus_L
=yes
9363 export_dynamic_flag_spec
='${wl}-E'
9367 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9368 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9372 if test "$with_gnu_ld" = no
; then
9373 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9374 hardcode_libdir_flag_spec_ld
='+b $libdir'
9375 hardcode_libdir_separator
=:
9377 hardcode_direct_absolute
=yes
9378 export_dynamic_flag_spec
='${wl}-E'
9379 # hardcode_minus_L: Not really in the search PATH,
9380 # but as the default location of the library.
9381 hardcode_minus_L
=yes
9386 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9389 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9401 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9408 # Older versions of the 11.00 compiler do not understand -b yet
9409 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9411 $as_echo_n "checking if $CC understands -b... " >&6; }
9412 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9415 lt_cv_prog_compiler__b
=no
9416 save_LDFLAGS
="$LDFLAGS"
9417 LDFLAGS
="$LDFLAGS -b"
9418 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9419 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9420 # The linker can only warn and ignore the option if not recognized
9421 # So say no if there are warnings
9422 if test -s conftest.err
; then
9423 # Append any errors to the config.log.
9424 cat conftest.err
1>&5
9425 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9426 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9427 if diff conftest.exp conftest.er2
>/dev
/null
; then
9428 lt_cv_prog_compiler__b
=yes
9431 lt_cv_prog_compiler__b
=yes
9435 LDFLAGS
="$save_LDFLAGS"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9439 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9441 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9442 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9450 if test "$with_gnu_ld" = no
; then
9451 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9452 hardcode_libdir_separator
=:
9457 hardcode_shlibpath_var
=no
9461 hardcode_direct_absolute
=yes
9462 export_dynamic_flag_spec
='${wl}-E'
9464 # hardcode_minus_L: Not really in the search PATH,
9465 # but as the default location of the library.
9466 hardcode_minus_L
=yes
9472 irix5
* | irix6
* | nonstopux
*)
9473 if test "$GCC" = yes; then
9474 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'
9475 # Try to use the -exported_symbol ld option, if it does not
9476 # work, assume that -exports_file does not work either and
9477 # implicitly export all symbols.
9478 save_LDFLAGS
="$LDFLAGS"
9479 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9484 if ac_fn_c_try_link
"$LINENO"; then :
9485 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'
9488 rm -f core conftest.err conftest.
$ac_objext \
9489 conftest
$ac_exeext conftest.
$ac_ext
9490 LDFLAGS
="$save_LDFLAGS"
9492 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'
9493 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'
9495 archive_cmds_need_lc
='no'
9496 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9497 hardcode_libdir_separator
=:
9499 link_all_deplibs
=yes
9503 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9504 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9506 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9508 hardcode_libdir_flag_spec
='-R$libdir'
9510 hardcode_shlibpath_var
=no
9514 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator
=:
9518 hardcode_shlibpath_var
=no
9525 if test -f /usr
/libexec
/ld.so
; then
9527 hardcode_shlibpath_var
=no
9528 hardcode_direct_absolute
=yes
9529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9530 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9531 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9532 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9533 export_dynamic_flag_spec
='${wl}-E'
9536 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9537 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9538 hardcode_libdir_flag_spec
='-R$libdir'
9541 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9542 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9552 hardcode_libdir_flag_spec
='-L$libdir'
9553 hardcode_minus_L
=yes
9554 allow_undefined_flag
=unsupported
9555 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'
9556 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9560 if test "$GCC" = yes; then
9561 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9562 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'
9564 allow_undefined_flag
=' -expect_unresolved \*'
9565 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'
9567 archive_cmds_need_lc
='no'
9568 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9569 hardcode_libdir_separator
=:
9572 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9573 if test "$GCC" = yes; then
9574 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9575 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'
9576 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9578 allow_undefined_flag
=' -expect_unresolved \*'
9579 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'
9580 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~
9581 $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'
9583 # Both c and cxx compiler support -rpath directly
9584 hardcode_libdir_flag_spec
='-rpath $libdir'
9586 archive_cmds_need_lc
='no'
9587 hardcode_libdir_separator
=:
9591 no_undefined_flag
=' -z defs'
9592 if test "$GCC" = yes; then
9594 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9596 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9598 case `$CC -V 2>&1` in
9601 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9607 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9613 hardcode_libdir_flag_spec
='-R$libdir'
9614 hardcode_shlibpath_var
=no
9616 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9618 # The compiler driver will combine and reorder linker options,
9619 # but understands `-z linker_flag'. GCC discards it without `$wl',
9620 # but is careful enough not to reorder.
9621 # Supported since Solaris 2.6 (maybe 2.5.1?)
9622 if test "$GCC" = yes; then
9623 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9625 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9629 link_all_deplibs
=yes
9633 if test "x$host_vendor" = xsequent
; then
9634 # Use $CC to link under sequent, because it throws in some extra .o
9635 # files that make .init and .fini sections work.
9636 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_libdir_flag_spec
='-L$libdir'
9642 hardcode_minus_L
=yes
9643 hardcode_shlibpath_var
=no
9647 case $host_vendor in
9649 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_direct
=yes # is this really true???
9653 ## LD is ld it makes a PLAMLIB
9654 ## CC just makes a GrossModule.
9655 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9656 reload_cmds
='$CC -r -o $output$reload_objs'
9660 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9664 runpath_var
='LD_RUN_PATH'
9665 hardcode_shlibpath_var
=no
9669 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_shlibpath_var
=no
9671 export_dynamic_flag_spec
='-Bexport'
9675 if test -d /usr
/nec
; then
9676 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_shlibpath_var
=no
9678 runpath_var
=LD_RUN_PATH
9679 hardcode_runpath_var
=yes
9684 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9685 no_undefined_flag
='${wl}-z,text'
9686 archive_cmds_need_lc
=no
9687 hardcode_shlibpath_var
=no
9688 runpath_var
='LD_RUN_PATH'
9690 if test "$GCC" = yes; then
9691 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 sysv5
* | sco3.2v5
* | sco5v6
*)
9700 # Note: We can NOT use -z defs as we might desire, because we do not
9701 # link with -lc, and that would cause any symbols used from libc to
9702 # always be unresolved, which means just about no library would
9703 # ever link correctly. If we're not using GNU ld we use -z text
9704 # though, which does catch some bad symbols but isn't as heavy-handed
9706 no_undefined_flag
='${wl}-z,text'
9707 allow_undefined_flag
='${wl}-z,nodefs'
9708 archive_cmds_need_lc
=no
9709 hardcode_shlibpath_var
=no
9710 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9711 hardcode_libdir_separator
=':'
9712 link_all_deplibs
=yes
9713 export_dynamic_flag_spec
='${wl}-Bexport'
9714 runpath_var
='LD_RUN_PATH'
9716 if test "$GCC" = yes; then
9717 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_libdir_flag_spec
='-L$libdir'
9728 hardcode_shlibpath_var
=no
9736 if test x
$host_vendor = xsni
; then
9738 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9739 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9746 $as_echo "$ld_shlibs" >&6; }
9747 test "$ld_shlibs" = no
&& can_build_shared
=no
9749 with_gnu_ld
=$with_gnu_ld
9766 # Do we need to explicitly link libc?
9768 case "x$archive_cmds_need_lc" in
9770 # Assume -lc should be added
9771 archive_cmds_need_lc
=yes
9773 if test "$enable_shared" = yes && test "$GCC" = yes; then
9774 case $archive_cmds in
9776 # FIXME: we may have to deal with multi-command sequences.
9779 # Test whether the compiler implicitly links with -lc since on some
9780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9781 # to ld, don't add -lc before -lgcc.
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9783 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9784 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9788 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9791 (eval $ac_compile) 2>&5
9793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794 test $ac_status = 0; } 2>conftest.err
; then
9797 libobjs
=conftest.
$ac_objext
9799 wl
=$lt_prog_compiler_wl
9800 pic_flag
=$lt_prog_compiler_pic
9806 lt_save_allow_undefined_flag
=$allow_undefined_flag
9807 allow_undefined_flag
=
9808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9809 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9812 test $ac_status = 0; }
9814 lt_cv_archive_cmds_need_lc
=no
9816 lt_cv_archive_cmds_need_lc
=yes
9818 allow_undefined_flag
=$lt_save_allow_undefined_flag
9820 cat conftest.err
1>&5
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9826 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9827 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9991 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9993 if test "$GCC" = yes; then
9995 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9996 *) lt_awk_arg
="/^libraries:/" ;;
9999 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10000 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10002 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10003 case $lt_search_path_spec in
10005 # if the path contains ";" then we assume it to be the separator
10006 # otherwise default to the standard path separator (i.e. ":") - it is
10007 # assumed that no part of a normal pathname contains ";" but that should
10008 # okay in the real world where ";" in dirpaths is itself problematic.
10009 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10012 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10015 # Ok, now we have the path, separated by spaces, we can step through it
10016 # and add multilib dir if necessary.
10017 lt_tmp_lt_search_path_spec
=
10018 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10019 for lt_sys_path
in $lt_search_path_spec; do
10020 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10021 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10023 test -d "$lt_sys_path" && \
10024 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10027 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10028 BEGIN {RS=" "; FS="/|\n";} {
10031 for (lt_i = NF; lt_i > 0; lt_i--) {
10032 if ($lt_i != "" && $lt_i != ".") {
10033 if ($lt_i == "..") {
10036 if (lt_count == 0) {
10037 lt_foo="/" $lt_i lt_foo;
10044 if (lt_foo != "") { lt_freq[lt_foo]++; }
10045 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10047 # AWK program above erroneously prepends '/' to C:/dos/paths
10050 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10051 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10053 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10055 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10057 library_names_spec
=
10058 libname_spec
='lib$name'
10062 postuninstall_cmds
=
10066 shlibpath_overrides_runpath
=unknown
10068 dynamic_linker
="$host_os ld.so"
10069 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10070 need_lib_prefix
=unknown
10071 hardcode_into_libs
=no
10073 # when you set need_version to no, make sure it does not cause -set_version
10074 # flags to be left without arguments
10075 need_version
=unknown
10080 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10081 shlibpath_var
=LIBPATH
10083 # AIX 3 has no versioning support, so we append a major version to the name.
10084 soname_spec
='${libname}${release}${shared_ext}$major'
10091 hardcode_into_libs
=yes
10092 if test "$host_cpu" = ia64
; then
10093 # AIX 5 supports IA64
10094 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10095 shlibpath_var
=LD_LIBRARY_PATH
10097 # With GCC up to 2.95.x, collect2 would create an import file
10098 # for dependence libraries. The import file would start with
10099 # the line `#! .'. This would cause the generated library to
10100 # depend on `.', always an invalid library. This was fixed in
10101 # development snapshots of GCC prior to 3.0.
10103 aix4 | aix4.
[01] | aix4.
[01].
*)
10104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10106 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10109 can_build_shared
=no
10113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10114 # soname into executable. Probably we can add versioning support to
10115 # collect2, so additional links can be useful in future.
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10118 # instead of lib<name>.a to let people know that these are not
10119 # typical AIX shared libraries.
10120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 # We preserve .a as extension for shared libraries through AIX4.2
10123 # and later when we are not doing run time linking.
10124 library_names_spec
='${libname}${release}.a $libname.a'
10125 soname_spec
='${libname}${release}${shared_ext}$major'
10127 shlibpath_var
=LIBPATH
10134 # Since July 2007 AmigaOS4 officially supports .so libraries.
10135 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 library_names_spec
='$libname.ixlibrary $libname.a'
10140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10141 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'
10147 library_names_spec
='${libname}${shared_ext}'
10148 dynamic_linker
="$host_os ld.so"
10149 shlibpath_var
=LIBRARY_PATH
10155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec
='${libname}${release}${shared_ext}$major'
10157 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10158 shlibpath_var
=LD_LIBRARY_PATH
10159 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10160 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10161 # the default ld.so.conf also contains /usr/contrib/lib and
10162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10163 # libtool to hard-code these into programs
10166 cygwin
* | mingw
* | pw32
* | cegcc
*)
10167 version_type
=windows
10172 case $GCC,$host_os in
10173 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10174 library_names_spec
='$libname.dll.a'
10175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10176 postinstall_cmds
='base_file=`basename \${file}`~
10177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10178 dldir=$destdir/`dirname \$dlpath`~
10179 test -d \$dldir || mkdir -p \$dldir~
10180 $install_prog $dir/$dlname \$dldir/$dlname~
10181 chmod a+x \$dldir/$dlname~
10182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10185 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10186 dlpath=$dir/\$dldll~
10188 shlibpath_overrides_runpath
=yes
10192 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10193 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10195 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10198 # MinGW DLLs use traditional 'lib' prefix
10199 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202 # pw32 DLLs use 'pw' prefix rather than 'lib'
10203 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10212 dynamic_linker
='Win32 ld.exe'
10213 # FIXME: first we should search . and the directory the executable is in
10217 darwin
* | rhapsody
*)
10218 dynamic_linker
="$host_os dyld"
10219 version_type
=darwin
10222 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10223 soname_spec
='${libname}${release}${major}$shared_ext'
10224 shlibpath_overrides_runpath
=yes
10225 shlibpath_var
=DYLD_LIBRARY_PATH
10226 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10228 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10229 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10236 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10237 soname_spec
='${libname}${release}${shared_ext}$major'
10238 shlibpath_var
=LD_LIBRARY_PATH
10241 freebsd
* | dragonfly
*)
10242 # DragonFly does not have aout. When/if they implement a new
10243 # versioning mechanism, adjust this.
10244 if test -x /usr
/bin
/objformat
; then
10245 objformat
=`/usr/bin/objformat`
10248 freebsd
[123]*) objformat
=aout
;;
10249 *) objformat
=elf
;;
10252 version_type
=freebsd-
$objformat
10253 case $version_type in
10255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10264 shlibpath_var
=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath
=yes
10269 freebsd3.
[01]* | freebsdelf3.
[01]*)
10270 shlibpath_overrides_runpath
=yes
10271 hardcode_into_libs
=yes
10273 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10274 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10275 shlibpath_overrides_runpath
=no
10276 hardcode_into_libs
=yes
10278 *) # from 4.6 on, and DragonFly
10279 shlibpath_overrides_runpath
=yes
10280 hardcode_into_libs
=yes
10289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10290 soname_spec
='${libname}${release}${shared_ext}$major'
10291 shlibpath_var
=LD_LIBRARY_PATH
10292 hardcode_into_libs
=yes
10299 dynamic_linker
="$host_os runtime_loader"
10300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10301 soname_spec
='${libname}${release}${shared_ext}$major'
10302 shlibpath_var
=LIBRARY_PATH
10303 shlibpath_overrides_runpath
=yes
10304 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10305 hardcode_into_libs
=yes
10308 hpux9
* | hpux10
* | hpux11
*)
10309 # Give a soname corresponding to the major version so that dld.sl refuses to
10310 # link against other versions.
10317 hardcode_into_libs
=yes
10318 dynamic_linker
="$host_os dld.so"
10319 shlibpath_var
=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec
='${libname}${release}${shared_ext}$major'
10323 if test "X$HPUX_IA64_MODE" = X32
; then
10324 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10326 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10328 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10332 hardcode_into_libs
=yes
10333 dynamic_linker
="$host_os dld.sl"
10334 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10335 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10336 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec
='${libname}${release}${shared_ext}$major'
10338 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10339 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10343 dynamic_linker
="$host_os dld.sl"
10344 shlibpath_var
=SHLIB_PATH
10345 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec
='${libname}${release}${shared_ext}$major'
10350 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10351 postinstall_cmds
='chmod 555 $lib'
10352 # or fails outright, so override atomically:
10353 install_override_mode
=555
10360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361 soname_spec
='${libname}${release}${shared_ext}$major'
10362 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10363 shlibpath_var
=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath
=no
10365 hardcode_into_libs
=yes
10368 irix5
* | irix6
* | nonstopux
*)
10370 nonstopux
*) version_type
=nonstopux
;;
10372 if test "$lt_cv_prog_gnu_ld" = yes; then
10380 soname_spec
='${libname}${release}${shared_ext}$major'
10381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10383 irix5
* | nonstopux
*)
10384 libsuff
= shlibsuff
=
10387 case $LD in # libtool.m4 will add one of these switches to LD
10388 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10389 libsuff
= shlibsuff
= libmagic
=32-bit;;
10390 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10391 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10392 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10393 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10394 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10398 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10399 shlibpath_overrides_runpath
=no
10400 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10401 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10402 hardcode_into_libs
=yes
10405 # No shared lib support for Linux oldld, aout, or coff.
10406 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10410 # This must be Linux ELF.
10411 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec
='${libname}${release}${shared_ext}$major'
10417 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10418 shlibpath_var
=LD_LIBRARY_PATH
10419 shlibpath_overrides_runpath
=no
10421 # Some binutils ld are patched to set DT_RUNPATH
10422 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10425 lt_cv_shlibpath_overrides_runpath
=no
10426 save_LDFLAGS
=$LDFLAGS
10427 save_libdir
=$libdir
10428 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10429 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10441 if ac_fn_c_try_link
"$LINENO"; then :
10442 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10443 lt_cv_shlibpath_overrides_runpath
=yes
10446 rm -f core conftest.err conftest.
$ac_objext \
10447 conftest
$ac_exeext conftest.
$ac_ext
10448 LDFLAGS
=$save_LDFLAGS
10449 libdir
=$save_libdir
10453 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10455 # This implies no fast_install, which is unacceptable.
10456 # Some rework will be needed to allow for fast_install
10457 # before this can be enabled.
10458 hardcode_into_libs
=yes
10460 # Append ld.so.conf contents to the search path
10461 if test -f /etc
/ld.so.conf
; then
10462 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' ' '`
10463 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10466 # We used to test for /lib/ld.so.1 and disable shared libraries on
10467 # powerpc, because MkLinux only supported shared libraries with the
10468 # GNU dynamic linker. Since this was broken with cross compilers,
10469 # most powerpc-linux boxes support dynamic linking these days and
10470 # people can always --disable-shared, the test was removed, and we
10471 # assume the GNU/Linux dynamic linker is in use.
10472 dynamic_linker
='GNU/Linux ld.so'
10479 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10481 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10482 dynamic_linker
='NetBSD (a.out) ld.so'
10484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10485 soname_spec
='${libname}${release}${shared_ext}$major'
10486 dynamic_linker
='NetBSD ld.elf_so'
10488 shlibpath_var
=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath
=yes
10490 hardcode_into_libs
=yes
10495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 shlibpath_var
=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath
=yes
10504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 soname_spec
='${libname}${release}${shared_ext}$major'
10506 shlibpath_var
=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath
=no
10508 hardcode_into_libs
=yes
10509 dynamic_linker
='ldqnx.so'
10514 sys_lib_dlsearch_path_spec
="/usr/lib"
10516 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10518 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10519 *) need_version
=no
;;
10521 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10522 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10523 shlibpath_var
=LD_LIBRARY_PATH
10524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10526 openbsd2.
[89] | openbsd2.
[89].
*)
10527 shlibpath_overrides_runpath
=no
10530 shlibpath_overrides_runpath
=yes
10534 shlibpath_overrides_runpath
=yes
10539 libname_spec
='$name'
10542 library_names_spec
='$libname${shared_ext} $libname.a'
10543 dynamic_linker
='OS/2 ld.exe'
10544 shlibpath_var
=LIBPATH
10547 osf3
* | osf4
* | osf5
*)
10551 soname_spec
='${libname}${release}${shared_ext}$major'
10552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 shlibpath_var
=LD_LIBRARY_PATH
10554 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10555 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec
='${libname}${release}${shared_ext}$major'
10568 shlibpath_var
=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath
=yes
10570 hardcode_into_libs
=yes
10571 # ldd complains unless libraries are executable
10572 postinstall_cmds
='chmod +x $lib'
10577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10578 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10579 shlibpath_var
=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath
=yes
10581 if test "$with_gnu_ld" = yes; then
10589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec
='${libname}${release}${shared_ext}$major'
10591 shlibpath_var
=LD_LIBRARY_PATH
10592 case $host_vendor in
10594 shlibpath_overrides_runpath
=no
10596 runpath_var
=LD_RUN_PATH
10604 shlibpath_overrides_runpath
=no
10605 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10611 if test -d /usr
/nec
;then
10613 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10614 soname_spec
='$libname${shared_ext}.$major'
10615 shlibpath_var
=LD_LIBRARY_PATH
10619 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10620 version_type
=freebsd-elf
10623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10624 soname_spec
='${libname}${release}${shared_ext}$major'
10625 shlibpath_var
=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath
=yes
10627 hardcode_into_libs
=yes
10628 if test "$with_gnu_ld" = yes; then
10629 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10631 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10634 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10638 sys_lib_dlsearch_path_spec
='/usr/lib'
10642 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 shlibpath_var
=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath
=no
10649 hardcode_into_libs
=yes
10654 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec
='${libname}${release}${shared_ext}$major'
10656 shlibpath_var
=LD_LIBRARY_PATH
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10664 $as_echo "$dynamic_linker" >&6; }
10665 test "$dynamic_linker" = no
&& can_build_shared
=no
10667 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10668 if test "$GCC" = yes; then
10669 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10672 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10673 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10675 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10676 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10773 if test -n "$hardcode_libdir_flag_spec" ||
10774 test -n "$runpath_var" ||
10775 test "X$hardcode_automatic" = "Xyes" ; then
10777 # We can hardcode non-existent directories.
10778 if test "$hardcode_direct" != no
&&
10779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10780 # have to relink, otherwise we might link with an installed library
10781 # when we should be linking with a yet-to-be-installed one
10782 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10783 test "$hardcode_minus_L" != no
; then
10784 # Linking always hardcodes the temporary library directory.
10785 hardcode_action
=relink
10787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10788 hardcode_action
=immediate
10791 # We cannot hardcode anything, or else we can only hardcode existing
10793 hardcode_action
=unsupported
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10796 $as_echo "$hardcode_action" >&6; }
10798 if test "$hardcode_action" = relink ||
10799 test "$inherit_rpath" = yes; then
10800 # Fast installation is not supported
10801 enable_fast_install
=no
10802 elif test "$shlibpath_overrides_runpath" = yes ||
10803 test "$enable_shared" = no
; then
10804 # Fast installation is not necessary
10805 enable_fast_install
=needless
10813 if test "x$enable_dlopen" != xyes
; then
10814 enable_dlopen
=unknown
10815 enable_dlopen_self
=unknown
10816 enable_dlopen_self_static
=unknown
10823 lt_cv_dlopen
="load_add_on"
10825 lt_cv_dlopen_self
=yes
10828 mingw
* | pw32
* | cegcc
*)
10829 lt_cv_dlopen
="LoadLibrary"
10834 lt_cv_dlopen
="dlopen"
10839 # if libdl is installed we need to link against it
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10845 ac_check_lib_save_LIBS
=$LIBS
10847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10865 if ac_fn_c_try_link
"$LINENO"; then :
10866 ac_cv_lib_dl_dlopen
=yes
10868 ac_cv_lib_dl_dlopen
=no
10870 rm -f core conftest.err conftest.
$ac_objext \
10871 conftest
$ac_exeext conftest.
$ac_ext
10872 LIBS
=$ac_check_lib_save_LIBS
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10875 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10876 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10877 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10880 lt_cv_dlopen
="dyld"
10882 lt_cv_dlopen_self
=yes
10889 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10890 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10891 lt_cv_dlopen
="shl_load"
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10894 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10895 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10898 ac_check_lib_save_LIBS
=$LIBS
10900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10913 return shl_load ();
10918 if ac_fn_c_try_link
"$LINENO"; then :
10919 ac_cv_lib_dld_shl_load
=yes
10921 ac_cv_lib_dld_shl_load
=no
10923 rm -f core conftest.err conftest.
$ac_objext \
10924 conftest
$ac_exeext conftest.
$ac_ext
10925 LIBS
=$ac_check_lib_save_LIBS
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10928 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10929 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10930 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10932 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10933 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10934 lt_cv_dlopen
="dlopen"
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10937 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10941 ac_check_lib_save_LIBS
=$LIBS
10943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10961 if ac_fn_c_try_link
"$LINENO"; then :
10962 ac_cv_lib_dl_dlopen
=yes
10964 ac_cv_lib_dl_dlopen
=no
10966 rm -f core conftest.err conftest.
$ac_objext \
10967 conftest
$ac_exeext conftest.
$ac_ext
10968 LIBS
=$ac_check_lib_save_LIBS
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10971 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10972 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10973 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10976 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10977 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10980 ac_check_lib_save_LIBS
=$LIBS
10981 LIBS
="-lsvld $LIBS"
10982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
11000 if ac_fn_c_try_link
"$LINENO"; then :
11001 ac_cv_lib_svld_dlopen
=yes
11003 ac_cv_lib_svld_dlopen
=no
11005 rm -f core conftest.err conftest.
$ac_objext \
11006 conftest
$ac_exeext conftest.
$ac_ext
11007 LIBS
=$ac_check_lib_save_LIBS
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11010 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11011 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11012 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11015 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11019 ac_check_lib_save_LIBS
=$LIBS
11021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11034 return dld_link ();
11039 if ac_fn_c_try_link
"$LINENO"; then :
11040 ac_cv_lib_dld_dld_link
=yes
11042 ac_cv_lib_dld_dld_link
=no
11044 rm -f core conftest.err conftest.
$ac_objext \
11045 conftest
$ac_exeext conftest.
$ac_ext
11046 LIBS
=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11049 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11050 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11051 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11072 if test "x$lt_cv_dlopen" != xno
; then
11078 case $lt_cv_dlopen in
11080 save_CPPFLAGS
="$CPPFLAGS"
11081 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11083 save_LDFLAGS
="$LDFLAGS"
11084 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11087 LIBS
="$lt_cv_dlopen_libs $LIBS"
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11090 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11091 if test "${lt_cv_dlopen_self+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11094 if test "$cross_compiling" = yes; then :
11095 lt_cv_dlopen_self
=cross
11097 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11098 lt_status
=$lt_dlunknown
11099 cat > conftest.
$ac_ext <<_LT_EOF
11100 #line 11100 "configure"
11101 #include "confdefs.h"
11110 # define LT_DLGLOBAL RTLD_GLOBAL
11113 # define LT_DLGLOBAL DL_GLOBAL
11115 # define LT_DLGLOBAL 0
11119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11120 find out it does not work in some platform. */
11121 #ifndef LT_DLLAZY_OR_NOW
11123 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11126 # define LT_DLLAZY_OR_NOW DL_LAZY
11129 # define LT_DLLAZY_OR_NOW RTLD_NOW
11132 # define LT_DLLAZY_OR_NOW DL_NOW
11134 # define LT_DLLAZY_OR_NOW 0
11141 /* When -fvisbility=hidden is used, assume the code has been annotated
11142 correspondingly for the symbols needed. */
11143 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11144 void fnord () __attribute__((visibility("default")));
11147 void fnord () { int i=42; }
11150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11151 int status = $lt_dlunknown;
11155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11159 else puts (dlerror ());
11161 /* dlclose (self); */
11169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11170 (eval $ac_link) 2>&5
11172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11173 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11174 (.
/conftest
; exit; ) >&5 2>/dev
/null
11176 case x
$lt_status in
11177 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11178 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11179 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11182 # compilation failed
11183 lt_cv_dlopen_self
=no
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11191 $as_echo "$lt_cv_dlopen_self" >&6; }
11193 if test "x$lt_cv_dlopen_self" = xyes
; then
11194 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11196 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11197 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11200 if test "$cross_compiling" = yes; then :
11201 lt_cv_dlopen_self_static
=cross
11203 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11204 lt_status
=$lt_dlunknown
11205 cat > conftest.
$ac_ext <<_LT_EOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11216 # define LT_DLGLOBAL RTLD_GLOBAL
11219 # define LT_DLGLOBAL DL_GLOBAL
11221 # define LT_DLGLOBAL 0
11225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11226 find out it does not work in some platform. */
11227 #ifndef LT_DLLAZY_OR_NOW
11229 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11232 # define LT_DLLAZY_OR_NOW DL_LAZY
11235 # define LT_DLLAZY_OR_NOW RTLD_NOW
11238 # define LT_DLLAZY_OR_NOW DL_NOW
11240 # define LT_DLLAZY_OR_NOW 0
11247 /* When -fvisbility=hidden is used, assume the code has been annotated
11248 correspondingly for the symbols needed. */
11249 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11250 void fnord () __attribute__((visibility("default")));
11253 void fnord () { int i=42; }
11256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257 int status = $lt_dlunknown;
11261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11264 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11265 else puts (dlerror ());
11267 /* dlclose (self); */
11275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11276 (eval $ac_link) 2>&5
11278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11279 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11280 (.
/conftest
; exit; ) >&5 2>/dev
/null
11282 case x
$lt_status in
11283 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11284 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11285 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11288 # compilation failed
11289 lt_cv_dlopen_self_static
=no
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11297 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11300 CPPFLAGS
="$save_CPPFLAGS"
11301 LDFLAGS
="$save_LDFLAGS"
11306 case $lt_cv_dlopen_self in
11307 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11308 *) enable_dlopen_self
=unknown
;;
11311 case $lt_cv_dlopen_self_static in
11312 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11313 *) enable_dlopen_self_static
=unknown
;;
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11336 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11337 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11338 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11339 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11341 $as_echo "yes" >&6; }
11343 # FIXME - insert some real tests, host_os isn't really good enough
11346 if test -n "$STRIP" ; then
11347 striplib
="$STRIP -x"
11348 old_striplib
="$STRIP -S"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350 $as_echo "yes" >&6; }
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11374 # Report which library types will actually be built
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11376 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11378 $as_echo "$can_build_shared" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11381 $as_echo_n "checking whether to build shared libraries... " >&6; }
11382 test "$can_build_shared" = "no" && enable_shared
=no
11384 # On AIX, shared libraries and static libraries use the same namespace, and
11385 # are all built from PIC.
11388 test "$enable_shared" = yes && enable_static
=no
11389 if test -n "$RANLIB"; then
11390 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11391 postinstall_cmds
='$RANLIB $lib'
11396 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11397 test "$enable_shared" = yes && enable_static
=no
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11402 $as_echo "$enable_shared" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11405 $as_echo_n "checking whether to build static libraries... " >&6; }
11406 # Make sure either enable_shared or enable_static is yes.
11407 test "$enable_shared" = yes || enable_static
=yes
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11409 $as_echo "$enable_static" >&6; }
11416 ac_cpp
='$CPP $CPPFLAGS'
11417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11435 ac_config_commands
="$ac_config_commands libtool"
11440 # Only expand once:
11447 *-cygwin* |
*-mingw*)
11448 # 'host' will be top-level target in the case of a target lib,
11449 # we must compare to with_cross_host to decide if this is a native
11450 # or cross-compiler and select where to install dlls appropriately.
11451 if test -n "$with_cross_host" &&
11452 test x
"$with_cross_host" != x
"no"; then
11453 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11455 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11470 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11471 # Check whether --enable-maintainer-mode was given.
11472 if test "${enable_maintainer_mode+set}" = set; then :
11473 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11475 USE_MAINTAINER_MODE
=no
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11479 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11480 if test $USE_MAINTAINER_MODE = yes; then
11481 MAINTAINER_MODE_TRUE
=
11482 MAINTAINER_MODE_FALSE
='#'
11484 MAINTAINER_MODE_TRUE
='#'
11485 MAINTAINER_MODE_FALSE
=
11488 MAINT
=$MAINTAINER_MODE_TRUE
11492 # Create a spec file, so that compile/link tests don't fail
11493 test -f libgfortran.spec ||
touch libgfortran.spec
11494 FCFLAGS
="$FCFLAGS -L."
11496 # We need gfortran to compile parts of the library
11497 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11498 #AC_PROG_FC(gfortran)
11499 case `echo $GFORTRAN` in
11503 set dummy
$GFORTRAN; ac_word
=$2
11504 if test -x "$ac_word"; then
11510 ac_ext
=${ac_fc_srcext-f}
11511 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11512 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11514 if test -n "$ac_tool_prefix"; then
11515 for ac_prog
in gfortran
11517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11518 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_prog_FC+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11524 if test -n "$FC"; then
11525 ac_cv_prog_FC
="$FC" # Let the user override the test.
11527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11528 for as_dir
in $PATH
11531 test -z "$as_dir" && as_dir
=.
11532 for ac_exec_ext
in '' $ac_executable_extensions; do
11533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 if test -n "$FC"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11547 $as_echo "$FC" >&6; }
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11554 test -n "$FC" && break
11557 if test -z "$FC"; then
11559 for ac_prog
in gfortran
11561 # Extract the first word of "$ac_prog", so it can be a program name with args.
11562 set dummy
$ac_prog; ac_word
=$2
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 $as_echo_n "checking for $ac_word... " >&6; }
11565 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11568 if test -n "$ac_ct_FC"; then
11569 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11572 for as_dir
in $PATH
11575 test -z "$as_dir" && as_dir
=.
11576 for ac_exec_ext
in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 ac_cv_prog_ac_ct_FC
="$ac_prog"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11589 if test -n "$ac_ct_FC"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11591 $as_echo "$ac_ct_FC" >&6; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11598 test -n "$ac_ct_FC" && break
11601 if test "x$ac_ct_FC" = x
; then
11604 case $cross_compiling:$ac_tool_warned in
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11608 ac_tool_warned
=yes ;;
11615 # Provide some information about the compiler.
11616 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11619 for ac_option
in --version -v -V -qversion; do
11620 { { ac_try
="$ac_compiler $ac_option >&5"
11621 case "(($ac_try" in
11622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11626 $as_echo "$ac_try_echo"; } >&5
11627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11629 if test -s conftest.err; then
11631 ... rest of stderr output deleted ...
11632 10q' conftest.err >conftest.er1
11633 cat conftest.er1 >&5
11634 rm -f conftest.er1 conftest.err
11636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11637 test $ac_status = 0; }
11641 # If we don't use `.F
' as extension, the preprocessor is not run on the
11642 # input file. (Note that this only needs to work for GNU compilers.)
11643 ac_save_ext=$ac_ext
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11646 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11647 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11650 cat > conftest.$ac_ext <<_ACEOF
11658 if ac_fn_fc_try_compile "$LINENO"; then :
11659 ac_compiler_gnu=yes
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11668 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11669 ac_ext=$ac_save_ext
11670 ac_test_FCFLAGS=${FCFLAGS+set}
11671 ac_save_FCFLAGS=$FCFLAGS
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11674 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11675 if test "${ac_cv_prog_fc_g+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
11679 cat > conftest.$ac_ext <<_ACEOF
11684 if ac_fn_fc_try_compile "$LINENO"; then :
11685 ac_cv_prog_fc_g=yes
11689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11693 $as_echo "$ac_cv_prog_fc_g" >&6; }
11694 if test "$ac_test_FCFLAGS" = set; then
11695 FCFLAGS=$ac_save_FCFLAGS
11696 elif test $ac_cv_prog_fc_g = yes; then
11697 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11703 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11711 ac_cpp='$CPP $CPPFLAGS'
11712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11713 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716 ac_ext=${ac_fc_srcext-f}
11717 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
11718 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
11719 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11722 if test -z "$FC" || test "X$FC" = "Xno"; then
11726 archive_cmds_need_lc_FC=no
11727 allow_undefined_flag_FC=
11728 always_export_symbols_FC=no
11729 archive_expsym_cmds_FC=
11730 export_dynamic_flag_spec_FC=
11731 hardcode_direct_FC=no
11732 hardcode_direct_absolute_FC=no
11733 hardcode_libdir_flag_spec_FC=
11734 hardcode_libdir_flag_spec_ld_FC=
11735 hardcode_libdir_separator_FC=
11736 hardcode_minus_L_FC=no
11737 hardcode_automatic_FC=no
11738 inherit_rpath_FC=no
11740 module_expsym_cmds_FC=
11741 link_all_deplibs_FC=unknown
11742 old_archive_cmds_FC=$old_archive_cmds
11743 reload_flag_FC=$reload_flag
11744 reload_cmds_FC=$reload_cmds
11745 no_undefined_flag_FC=
11746 whole_archive_flag_spec_FC=
11747 enable_shared_with_static_runtimes_FC=no
11749 # Source file extension for fc test sources.
11750 ac_ext=${ac_fc_srcext-f}
11752 # Object file extension for compiled fc test sources.
11756 # No sense in running all these tests if we already determined that
11757 # the FC compiler isn't working. Some variables
(like enable_shared
)
11758 # are currently assumed to apply to all compilers on this platform,
11759 # and will be corrupted by setting them based on a non-working compiler.
11760 if test "$_lt_disable_FC" != yes; then
11761 # Code to be used in simple compile tests
11762 lt_simple_compile_test_code
="\
11768 # Code to be used in simple link tests
11769 lt_simple_link_test_code
="\
11774 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11781 # If no C compiler was specified, use CC.
11784 # If no C compiler flags were specified, use CFLAGS.
11785 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11787 # Allow CC to be a program name with arguments.
11791 # save warnings/boilerplate of simple test code
11792 ac_outfile
=conftest.
$ac_objext
11793 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11794 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11795 _lt_compiler_boilerplate
=`cat conftest.err`
11798 ac_outfile
=conftest.
$ac_objext
11799 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11800 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11801 _lt_linker_boilerplate
=`cat conftest.err`
11805 # Allow CC to be a program name with arguments.
11810 GCC
=$ac_cv_fc_compiler_gnu
11813 for cc_temp
in $compiler""; do
11815 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11816 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11821 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11824 if test -n "$compiler"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11826 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11828 $as_echo "$can_build_shared" >&6; }
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11831 $as_echo_n "checking whether to build shared libraries... " >&6; }
11832 test "$can_build_shared" = "no" && enable_shared
=no
11834 # On AIX, shared libraries and static libraries use the same namespace, and
11835 # are all built from PIC.
11838 test "$enable_shared" = yes && enable_static
=no
11839 if test -n "$RANLIB"; then
11840 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11841 postinstall_cmds
='$RANLIB $lib'
11845 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11846 test "$enable_shared" = yes && enable_static
=no
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11851 $as_echo "$enable_shared" >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11854 $as_echo_n "checking whether to build static libraries... " >&6; }
11855 # Make sure either enable_shared or enable_static is yes.
11856 test "$enable_shared" = yes || enable_static
=yes
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11858 $as_echo "$enable_static" >&6; }
11860 GCC_FC
="$ac_cv_fc_compiler_gnu"
11864 ## There is no encapsulation within the following macros, do not change
11865 ## the running order or otherwise move them around unless you know exactly
11866 ## what you are doing...
11867 # Dependencies to place before and after the object being linked:
11869 postdep_objects_FC
=
11872 compiler_lib_search_path_FC
=
11874 cat > conftest.
$ac_ext <<_LT_EOF
11883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11884 (eval $ac_compile) 2>&5
11886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887 test $ac_status = 0; }; then
11888 # Parse the compiler output and extract the necessary
11889 # objects, libraries and library flags.
11891 # Sentinel used to keep track of whether or not we are before
11892 # the conftest object file.
11893 pre_test_object_deps_done
=no
11895 for p
in `eval "$output_verbose_link_cmd"`; do
11899 # Some compilers place space between "-{L,R}" and the path.
11900 # Remove the space.
11901 if test $p = "-L" ||
11902 test $p = "-R"; then
11909 if test "$pre_test_object_deps_done" = no
; then
11912 # Internal compiler library paths should come after those
11913 # provided the user. The postdeps already come after the
11914 # user supplied libs so there is no need to process them.
11915 if test -z "$compiler_lib_search_path_FC"; then
11916 compiler_lib_search_path_FC
="${prev}${p}"
11918 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
11921 # The "-l" case would never come before the object being
11922 # linked, so don't bother handling this case.
11925 if test -z "$postdeps_FC"; then
11926 postdeps_FC
="${prev}${p}"
11928 postdeps_FC
="${postdeps_FC} ${prev}${p}"
11934 # This assumes that the test object file only shows up
11935 # once in the compiler output.
11936 if test "$p" = "conftest.$objext"; then
11937 pre_test_object_deps_done
=yes
11941 if test "$pre_test_object_deps_done" = no
; then
11942 if test -z "$predep_objects_FC"; then
11943 predep_objects_FC
="$p"
11945 predep_objects_FC
="$predep_objects_FC $p"
11948 if test -z "$postdep_objects_FC"; then
11949 postdep_objects_FC
="$p"
11951 postdep_objects_FC
="$postdep_objects_FC $p"
11956 *) ;; # Ignore the rest.
11964 echo "libtool.m4: error: problem compiling FC test program"
11967 $RM -f confest.
$objext
11969 # PORTME: override above test on systems where it is broken
11972 case " $postdeps_FC " in
11973 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
11975 compiler_lib_search_dirs_FC
=
11976 if test -n "${compiler_lib_search_path_FC}"; then
11977 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12010 lt_prog_compiler_wl_FC
=
12011 lt_prog_compiler_pic_FC
=
12012 lt_prog_compiler_static_FC
=
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12017 if test "$GCC" = yes; then
12018 lt_prog_compiler_wl_FC
='-Wl,'
12019 lt_prog_compiler_static_FC
='-static'
12023 # All AIX code is PIC.
12024 if test "$host_cpu" = ia64
; then
12025 # AIX 5 now supports IA64 processor
12026 lt_prog_compiler_static_FC
='-Bstatic'
12033 # see comment about AmigaOS4 .so support
12034 lt_prog_compiler_pic_FC
='-fPIC'
12037 # FIXME: we need at least 68020 code to build shared libraries, but
12038 # adding the `-m68020' flag to GCC prevents building anything better,
12040 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12045 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12046 # PIC is the default for these OSes.
12049 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12050 # This hack is so that the source file can tell whether it is being
12051 # built for inclusion in a dll (and should export symbols for example).
12052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12053 # (--disable-auto-import) libraries
12054 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12057 darwin
* | rhapsody
*)
12058 # PIC is the default on this platform
12059 # Common symbols not allowed in MH_DYLIB files
12060 lt_prog_compiler_pic_FC
='-fno-common'
12064 # PIC is the default for Haiku.
12065 # The "-static" flag exists, but is broken.
12066 lt_prog_compiler_static_FC
=
12070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12072 # sets the default TLS model and affects inlining.
12078 lt_prog_compiler_pic_FC
='-fPIC'
12084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12085 # Instead, we relocate shared libraries at runtime.
12089 # Just because we use GCC doesn't mean we suddenly get shared libraries
12090 # on systems that don't support them.
12091 lt_prog_compiler_can_build_shared_FC
=no
12096 # QNX uses GNU C++, but need to define -shared option too, otherwise
12097 # it will coredump.
12098 lt_prog_compiler_pic_FC
='-fPIC -shared'
12102 if test -d /usr
/nec
; then
12103 lt_prog_compiler_pic_FC
=-Kconform_pic
12108 lt_prog_compiler_pic_FC
='-fPIC'
12112 case $cc_basename in
12113 nvcc
*) # Cuda Compiler Driver 2.2
12114 lt_prog_compiler_wl_FC
='-Xlinker '
12115 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12119 # PORTME Check for flag to pass linker flags through the system compiler.
12122 lt_prog_compiler_wl_FC
='-Wl,'
12123 if test "$host_cpu" = ia64
; then
12124 # AIX 5 now supports IA64 processor
12125 lt_prog_compiler_static_FC
='-Bstatic'
12127 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12131 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12132 # This hack is so that the source file can tell whether it is being
12133 # built for inclusion in a dll (and should export symbols for example).
12134 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12137 hpux9
* | hpux10
* | hpux11
*)
12138 lt_prog_compiler_wl_FC
='-Wl,'
12139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12140 # not for PA HP-UX.
12146 lt_prog_compiler_pic_FC
='+Z'
12149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12150 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12153 irix5
* | irix6
* | nonstopux
*)
12154 lt_prog_compiler_wl_FC
='-Wl,'
12155 # PIC (with -KPIC) is the default.
12156 lt_prog_compiler_static_FC
='-non_shared'
12159 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12160 case $cc_basename in
12161 # old Intel for x86_64 which still supported -KPIC.
12163 lt_prog_compiler_wl_FC
='-Wl,'
12164 lt_prog_compiler_pic_FC
='-KPIC'
12165 lt_prog_compiler_static_FC
='-static'
12167 # icc used to be incompatible with GCC.
12168 # ICC 10 doesn't accept -KPIC any more.
12170 lt_prog_compiler_wl_FC
='-Wl,'
12171 lt_prog_compiler_pic_FC
='-fPIC'
12172 lt_prog_compiler_static_FC
='-static'
12174 # Lahey Fortran 8.1.
12176 lt_prog_compiler_wl_FC
='-Wl,'
12177 lt_prog_compiler_pic_FC
='--shared'
12178 lt_prog_compiler_static_FC
='--static'
12180 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12181 # Portland Group compilers (*not* the Pentium gcc compiler,
12182 # which looks to be a dead project)
12183 lt_prog_compiler_wl_FC
='-Wl,'
12184 lt_prog_compiler_pic_FC
='-fpic'
12185 lt_prog_compiler_static_FC
='-Bstatic'
12188 lt_prog_compiler_wl_FC
='-Wl,'
12189 # All Alpha code is PIC.
12190 lt_prog_compiler_static_FC
='-non_shared'
12192 xl
* | bgxl
* | bgf
* | mpixl
*)
12193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12194 lt_prog_compiler_wl_FC
='-Wl,'
12195 lt_prog_compiler_pic_FC
='-qpic'
12196 lt_prog_compiler_static_FC
='-qstaticlink'
12199 case `$CC -V 2>&1 | sed 5q` in
12200 *Sun\ F
* |
*Sun
*Fortran
*)
12201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12202 lt_prog_compiler_pic_FC
='-KPIC'
12203 lt_prog_compiler_static_FC
='-Bstatic'
12204 lt_prog_compiler_wl_FC
=''
12208 lt_prog_compiler_pic_FC
='-KPIC'
12209 lt_prog_compiler_static_FC
='-Bstatic'
12210 lt_prog_compiler_wl_FC
='-Wl,'
12218 lt_prog_compiler_pic_FC
='-KPIC'
12219 lt_prog_compiler_static_FC
='-Bstatic'
12223 # QNX uses GNU C++, but need to define -shared option too, otherwise
12224 # it will coredump.
12225 lt_prog_compiler_pic_FC
='-fPIC -shared'
12228 osf3
* | osf4
* | osf5
*)
12229 lt_prog_compiler_wl_FC
='-Wl,'
12230 # All OSF/1 code is PIC.
12231 lt_prog_compiler_static_FC
='-non_shared'
12235 lt_prog_compiler_static_FC
='-non_shared'
12239 lt_prog_compiler_pic_FC
='-KPIC'
12240 lt_prog_compiler_static_FC
='-Bstatic'
12241 case $cc_basename in
12242 f77
* | f90
* | f95
*)
12243 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12245 lt_prog_compiler_wl_FC
='-Wl,';;
12250 lt_prog_compiler_wl_FC
='-Qoption ld '
12251 lt_prog_compiler_pic_FC
='-PIC'
12252 lt_prog_compiler_static_FC
='-Bstatic'
12255 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12256 lt_prog_compiler_wl_FC
='-Wl,'
12257 lt_prog_compiler_pic_FC
='-KPIC'
12258 lt_prog_compiler_static_FC
='-Bstatic'
12262 if test -d /usr
/nec
;then
12263 lt_prog_compiler_pic_FC
='-Kconform_pic'
12264 lt_prog_compiler_static_FC
='-Bstatic'
12268 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12269 lt_prog_compiler_wl_FC
='-Wl,'
12270 lt_prog_compiler_pic_FC
='-KPIC'
12271 lt_prog_compiler_static_FC
='-Bstatic'
12275 lt_prog_compiler_wl_FC
='-Wl,'
12276 lt_prog_compiler_can_build_shared_FC
=no
12280 lt_prog_compiler_pic_FC
='-pic'
12281 lt_prog_compiler_static_FC
='-Bstatic'
12285 lt_prog_compiler_can_build_shared_FC
=no
12291 # For platforms which do not support PIC, -DPIC is meaningless:
12293 lt_prog_compiler_pic_FC
=
12296 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12300 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12305 # Check to make sure the PIC flag actually works.
12307 if test -n "$lt_prog_compiler_pic_FC"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12309 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12310 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12313 lt_cv_prog_compiler_pic_works_FC
=no
12314 ac_outfile
=conftest.
$ac_objext
12315 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12316 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12317 # Insert the option either (1) after the last *FLAGS variable, or
12318 # (2) before a word containing "conftest.", or (3) at the end.
12319 # Note that $ac_compile itself does not contain backslashes and begins
12320 # with a dollar sign (not a hyphen), so the echo should work correctly.
12321 # The option is referenced via a variable to avoid confusing sed.
12322 lt_compile
=`echo "$ac_compile" | $SED \
12323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325 -e 's:$: $lt_compiler_flag:'`
12326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12327 (eval "$lt_compile" 2>conftest.err
)
12329 cat conftest.err
>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 if (exit $ac_status) && test -s "$ac_outfile"; then
12332 # The compiler can only warn and ignore the option if not recognized
12333 # So say no if there are warnings other than the usual output.
12334 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12335 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12336 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12337 lt_cv_prog_compiler_pic_works_FC
=yes
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12344 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12346 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12347 case $lt_prog_compiler_pic_FC in
12349 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12352 lt_prog_compiler_pic_FC
=
12353 lt_prog_compiler_can_build_shared_FC
=no
12361 # Check to make sure the static flag actually works.
12363 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12365 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12366 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 lt_cv_prog_compiler_static_works_FC
=no
12370 save_LDFLAGS
="$LDFLAGS"
12371 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12372 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12373 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12374 # The linker can only warn and ignore the option if not recognized
12375 # So say no if there are warnings
12376 if test -s conftest.err
; then
12377 # Append any errors to the config.log.
12378 cat conftest.err
1>&5
12379 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12380 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12381 if diff conftest.exp conftest.er2
>/dev
/null
; then
12382 lt_cv_prog_compiler_static_works_FC
=yes
12385 lt_cv_prog_compiler_static_works_FC
=yes
12389 LDFLAGS
="$save_LDFLAGS"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12393 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12395 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12398 lt_prog_compiler_static_FC
=
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12406 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12409 lt_cv_prog_compiler_c_o_FC
=no
12410 $RM -r conftest
2>/dev
/null
12414 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12416 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12417 # Insert the option either (1) after the last *FLAGS variable, or
12418 # (2) before a word containing "conftest.", or (3) at the end.
12419 # Note that $ac_compile itself does not contain backslashes and begins
12420 # with a dollar sign (not a hyphen), so the echo should work correctly.
12421 lt_compile
=`echo "$ac_compile" | $SED \
12422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12424 -e 's:$: $lt_compiler_flag:'`
12425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12426 (eval "$lt_compile" 2>out
/conftest.err
)
12428 cat out
/conftest.err
>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12432 # The compiler can only warn and ignore the option if not recognized
12433 # So say no if there are warnings
12434 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12435 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12436 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12437 lt_cv_prog_compiler_c_o_FC
=yes
12442 # SGI C++ compiler will create directory out/ii_files/ for
12443 # template instantiation
12444 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12445 $RM out
/* && rmdir out
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12452 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12457 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12458 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12461 lt_cv_prog_compiler_c_o_FC
=no
12462 $RM -r conftest
2>/dev
/null
12466 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12468 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12469 # Insert the option either (1) after the last *FLAGS variable, or
12470 # (2) before a word containing "conftest.", or (3) at the end.
12471 # Note that $ac_compile itself does not contain backslashes and begins
12472 # with a dollar sign (not a hyphen), so the echo should work correctly.
12473 lt_compile
=`echo "$ac_compile" | $SED \
12474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12476 -e 's:$: $lt_compiler_flag:'`
12477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12478 (eval "$lt_compile" 2>out
/conftest.err
)
12480 cat out
/conftest.err
>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12484 # The compiler can only warn and ignore the option if not recognized
12485 # So say no if there are warnings
12486 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12487 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12488 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12489 lt_cv_prog_compiler_c_o_FC
=yes
12494 # SGI C++ compiler will create directory out/ii_files/ for
12495 # template instantiation
12496 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12497 $RM out
/* && rmdir out
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12504 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12509 hard_links
="nottested"
12510 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12511 # do not overwrite the value of need_locks provided by the user
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12513 $as_echo_n "checking if we can lock with hard links... " >&6; }
12516 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12518 ln conftest.a conftest.b
2>&5 || hard_links
=no
12519 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12521 $as_echo "$hard_links" >&6; }
12522 if test "$hard_links" = no
; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12524 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12534 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12537 allow_undefined_flag_FC
=
12538 always_export_symbols_FC
=no
12540 archive_expsym_cmds_FC
=
12541 compiler_needs_object_FC
=no
12542 enable_shared_with_static_runtimes_FC
=no
12543 export_dynamic_flag_spec_FC
=
12544 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12545 hardcode_automatic_FC
=no
12546 hardcode_direct_FC
=no
12547 hardcode_direct_absolute_FC
=no
12548 hardcode_libdir_flag_spec_FC
=
12549 hardcode_libdir_flag_spec_ld_FC
=
12550 hardcode_libdir_separator_FC
=
12551 hardcode_minus_L_FC
=no
12552 hardcode_shlibpath_var_FC
=unsupported
12553 inherit_rpath_FC
=no
12554 link_all_deplibs_FC
=unknown
12556 module_expsym_cmds_FC
=
12557 old_archive_from_new_cmds_FC
=
12558 old_archive_from_expsyms_cmds_FC
=
12559 thread_safe_flag_spec_FC
=
12560 whole_archive_flag_spec_FC
=
12561 # include_expsyms should be a list of space-separated symbols to be *always*
12562 # included in the symbol list
12563 include_expsyms_FC
=
12564 # exclude_expsyms can be an extended regexp of symbols to exclude
12565 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12566 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12567 # as well as any symbol that contains `d'.
12568 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12569 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12570 # platforms (ab)use it in PIC code, but their linkers get confused if
12571 # the symbol is explicitly referenced. Since portable code cannot
12572 # rely on this symbol name, it's probably fine to never include it in
12573 # preloaded symbol tables.
12574 # Exclude shared library initialization/finalization symbols.
12575 extract_expsyms_cmds
=
12578 cygwin
* | mingw
* | pw32
* | cegcc
*)
12579 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12580 # When not using gcc, we currently assume that we are using
12581 # Microsoft Visual C++.
12582 if test "$GCC" != yes; then
12587 # we just hope/assume this is gcc and not c89 (= MSVC++)
12597 # On some targets, GNU ld is compatible enough with the native linker
12598 # that we're better off using the native interface for both.
12599 lt_use_gnu_ld_interface
=no
12600 if test "$with_gnu_ld" = yes; then
12603 # The AIX port of GNU ld has always aspired to compatibility
12604 # with the native linker. However, as the warning in the GNU ld
12605 # block says, versions before 2.19.5* couldn't really create working
12606 # shared libraries, regardless of the interface used.
12607 case `$LD -v 2>&1` in
12608 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12609 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12610 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12612 lt_use_gnu_ld_interface
=yes
12617 lt_use_gnu_ld_interface
=yes
12622 if test "$lt_use_gnu_ld_interface" = yes; then
12623 # If archive_cmds runs LD, not CC, wlarc should be empty
12626 # Set some defaults for GNU ld with shared library support. These
12627 # are reset later if shared libraries are not supported. Putting them
12628 # here allows them to be overridden if necessary.
12629 runpath_var
=LD_RUN_PATH
12630 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12631 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12632 # ancient GNU ld didn't support --whole-archive et. al.
12633 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12634 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12636 whole_archive_flag_spec_FC
=
12638 supports_anon_versioning
=no
12639 case `$LD -v 2>&1` in
12640 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12641 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12642 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12643 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12644 *\
2.11.
*) ;; # other 2.11 versions
12645 *) supports_anon_versioning
=yes ;;
12648 # See if GNU ld supports shared libraries.
12651 # On AIX/PPC, the GNU linker is very broken
12652 if test "$host_cpu" != ia64
; then
12656 *** Warning: the GNU linker, at least up to release 2.19, is reported
12657 *** to be unable to reliably create shared libraries on AIX.
12658 *** Therefore, libtool is disabling shared libraries support. If you
12659 *** really care for shared libraries, you may want to install binutils
12660 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12661 *** You will then need to restart the configuration process.
12670 # see comment about AmigaOS4 .so support
12671 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 archive_expsym_cmds_FC
=''
12675 archive_cmds_FC
='$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)'
12676 hardcode_libdir_flag_spec_FC
='-L$libdir'
12677 hardcode_minus_L_FC
=yes
12683 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12684 allow_undefined_flag_FC
=unsupported
12685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12686 # support --undefined. This deserves some investigation. FIXME
12687 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693 cygwin
* | mingw
* | pw32
* | cegcc
*)
12694 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12695 # as there is no search path for DLLs.
12696 hardcode_libdir_flag_spec_FC
='-L$libdir'
12697 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
12698 allow_undefined_flag_FC
=unsupported
12699 always_export_symbols_FC
=no
12700 enable_shared_with_static_runtimes_FC
=yes
12701 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12703 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12704 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12705 # If the export-symbols file already is a .def file (1st line
12706 # is EXPORTS), use it as is; otherwise, prepend...
12707 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12708 cp $export_symbols $output_objdir/$soname.def;
12710 echo EXPORTS > $output_objdir/$soname.def;
12711 cat $export_symbols >> $output_objdir/$soname.def;
12713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12720 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721 link_all_deplibs_FC
=yes
12725 hardcode_direct_FC
=no
12726 hardcode_shlibpath_var_FC
=no
12727 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
12728 export_dynamic_flag_spec_FC
='${wl}-E'
12729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12730 # Instead, shared libraries are loaded at an image base (0x10000000 by
12731 # default) and relocated if they conflict, which is a slow very memory
12732 # consuming and fragmenting process. To avoid this, we pick a random,
12733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12735 archive_cmds_FC
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12736 archive_expsym_cmds_FC
='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'
12739 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12741 if test "$host_os" = linux-dietlibc
; then
12742 case $cc_basename in
12743 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12746 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12747 && test "$tmp_diet" = no
12750 tmp_sharedflag
='-shared'
12751 case $cc_basename,$host_cpu in
12752 pgcc
*) # Portland Group C compiler
12753 whole_archive_flag_spec_FC
='${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'
12754 tmp_addflag
=' $pic_flag'
12756 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12757 # Portland Group f77 and f90 compilers
12758 whole_archive_flag_spec_FC
='${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'
12759 tmp_addflag
=' $pic_flag -Mnomain' ;;
12760 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12761 tmp_addflag
=' -i_dynamic' ;;
12762 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12763 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12764 ifc
* | ifort
*) # Intel Fortran compiler
12765 tmp_addflag
=' -nofor_main' ;;
12766 lf95
*) # Lahey Fortran 8.1
12767 whole_archive_flag_spec_FC
=
12768 tmp_sharedflag
='--shared' ;;
12769 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12770 tmp_sharedflag
='-qmkshrobj'
12772 nvcc
*) # Cuda Compiler Driver 2.2
12773 whole_archive_flag_spec_FC
='${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'
12774 compiler_needs_object_FC
=yes
12777 case `$CC -V 2>&1 | sed 5q` in
12778 *Sun\ C
*) # Sun C 5.9
12779 whole_archive_flag_spec_FC
='${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'
12780 compiler_needs_object_FC
=yes
12781 tmp_sharedflag
='-G' ;;
12782 *Sun\ F
*) # Sun Fortran 8.3
12783 tmp_sharedflag
='-G' ;;
12785 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12787 if test "x$supports_anon_versioning" = xyes
; then
12788 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12790 echo "local: *; };" >> $output_objdir/$libname.ver~
12791 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12794 case $cc_basename in
12795 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12796 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12797 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
12798 hardcode_libdir_flag_spec_FC
=
12799 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
12800 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12801 if test "x$supports_anon_versioning" = xyes
; then
12802 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12804 echo "local: *; };" >> $output_objdir/$libname.ver~
12805 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12815 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12816 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12819 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12825 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12829 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12830 *** create shared libraries on Solaris systems. Therefore, libtool
12831 *** is disabling shared libraries support. We urge you to upgrade GNU
12832 *** binutils to release 2.9.1 or newer. Another option is to modify
12833 *** your PATH or compiler configuration so that the native linker is
12834 *** used, and then restart.
12837 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12838 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12839 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12846 case `$LD -v 2>&1` in
12847 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12851 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12852 *** reliably create shared libraries on SCO systems. Therefore, libtool
12853 *** is disabling shared libraries support. We urge you to upgrade GNU
12854 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12855 *** your PATH or compiler configuration so that the native linker is
12856 *** used, and then restart.
12861 # For security reasons, it is highly recommended that you always
12862 # use absolute paths for naming shared libraries, and exclude the
12863 # DT_RUNPATH tag from executables and libraries. But doing so
12864 # requires that you compile everything twice, which is a pain.
12865 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12866 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12867 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12877 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12879 hardcode_direct_FC
=yes
12880 hardcode_shlibpath_var_FC
=no
12884 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12885 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12886 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12893 if test "$ld_shlibs_FC" = no
; then
12895 hardcode_libdir_flag_spec_FC
=
12896 export_dynamic_flag_spec_FC
=
12897 whole_archive_flag_spec_FC
=
12900 # PORTME fill in a description of your system's linker (not GNU ld)
12903 allow_undefined_flag_FC
=unsupported
12904 always_export_symbols_FC
=yes
12905 archive_expsym_cmds_FC
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12906 # Note: this linker hardcodes the directories in LIBPATH if there
12907 # are no directories specified by -L.
12908 hardcode_minus_L_FC
=yes
12909 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12910 # Neither direct hardcoding nor static linking is supported with a
12912 hardcode_direct_FC
=unsupported
12917 if test "$host_cpu" = ia64
; then
12918 # On IA64, the linker does run time linking by default, so we don't
12919 # have to do anything special.
12920 aix_use_runtimelinking
=no
12921 exp_sym_flag
='-Bexport'
12924 # If we're using GNU nm, then we don't want the "-C" option.
12925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12926 # Also, AIX nm treats weak defined symbols like other global
12927 # defined symbols, whereas GNU nm marks them as "W".
12928 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12929 export_symbols_cmds_FC
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12931 export_symbols_cmds_FC
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12933 aix_use_runtimelinking
=no
12935 # Test if we are trying to use run time linking or normal
12936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12937 # need to do runtime linking.
12938 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12939 for ld_flag
in $LDFLAGS; do
12940 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12941 aix_use_runtimelinking
=yes
12948 exp_sym_flag
='-bexport'
12949 no_entry_flag
='-bnoentry'
12952 # When large executables or shared objects are built, AIX ld can
12953 # have problems creating the table of contents. If linking a library
12954 # or program results in "error TOC overflow" add -mminimal-toc to
12955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12959 hardcode_direct_FC
=yes
12960 hardcode_direct_absolute_FC
=yes
12961 hardcode_libdir_separator_FC
=':'
12962 link_all_deplibs_FC
=yes
12963 file_list_spec_FC
='${wl}-f,'
12965 if test "$GCC" = yes; then
12966 case $host_os in aix4.
[012]|aix4.
[012].
*)
12967 # We only want to do this on AIX 4.2 and lower, the check
12968 # below for broken collect2 doesn't work under 4.3+
12969 collect2name
=`${CC} -print-prog-name=collect2`
12970 if test -f "$collect2name" &&
12971 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12973 # We have reworked collect2
12976 # We have old collect2
12977 hardcode_direct_FC
=unsupported
12978 # It fails to find uninstalled libraries when the uninstalled
12979 # path is not listed in the libpath. Setting hardcode_minus_L
12980 # to unsupported forces relinking
12981 hardcode_minus_L_FC
=yes
12982 hardcode_libdir_flag_spec_FC
='-L$libdir'
12983 hardcode_libdir_separator_FC
=
12987 shared_flag
='-shared'
12988 if test "$aix_use_runtimelinking" = yes; then
12989 shared_flag
="$shared_flag "'${wl}-G'
12993 if test "$host_cpu" = ia64
; then
12994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12995 # chokes on -Wl,-G. The following line is correct:
12998 if test "$aix_use_runtimelinking" = yes; then
12999 shared_flag
='${wl}-G'
13001 shared_flag
='${wl}-bM:SRE'
13006 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13007 # It seems that -bexpall does not export symbols beginning with
13008 # underscore (_), so it is better to generate a list of symbols to export.
13009 always_export_symbols_FC
=yes
13010 if test "$aix_use_runtimelinking" = yes; then
13011 # Warning - without using the other runtime loading flags (-brtl),
13012 # -berok will link without error, but may produce a broken library.
13013 allow_undefined_flag_FC
='-berok'
13014 # Determine the default libpath from the value encoded in an
13015 # empty executable.
13016 cat > conftest.
$ac_ext <<_ACEOF
13021 if ac_fn_fc_try_link
"$LINENO"; then :
13023 lt_aix_libpath_sed
='
13024 /Import File Strings/,/^$/ {
13030 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13031 # Check for a 64-bit object if we didn't find anything.
13032 if test -z "$aix_libpath"; then
13033 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13036 rm -f core conftest.err conftest.
$ac_objext \
13037 conftest
$ac_exeext conftest.
$ac_ext
13038 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13040 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13041 archive_expsym_cmds_FC
='$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"
13043 if test "$host_cpu" = ia64
; then
13044 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13045 allow_undefined_flag_FC
="-z nodefs"
13046 archive_expsym_cmds_FC
="\$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"
13048 # Determine the default libpath from the value encoded in an
13049 # empty executable.
13050 cat > conftest.
$ac_ext <<_ACEOF
13055 if ac_fn_fc_try_link
"$LINENO"; then :
13057 lt_aix_libpath_sed
='
13058 /Import File Strings/,/^$/ {
13064 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13065 # Check for a 64-bit object if we didn't find anything.
13066 if test -z "$aix_libpath"; then
13067 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13070 rm -f core conftest.err conftest.
$ac_objext \
13071 conftest
$ac_exeext conftest.
$ac_ext
13072 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13074 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13075 # Warning - without using the other run time loading flags,
13076 # -berok will link without error, but may produce a broken library.
13077 no_undefined_flag_FC
=' ${wl}-bernotok'
13078 allow_undefined_flag_FC
=' ${wl}-berok'
13079 if test "$with_gnu_ld" = yes; then
13080 # We only use this code for GNU lds that support --whole-archive.
13081 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13083 # Exported symbols can be pulled into shared objects from archives
13084 whole_archive_flag_spec_FC
='$convenience'
13086 archive_cmds_need_lc_FC
=yes
13087 # This is similar to how AIX traditionally builds its shared libraries.
13088 archive_expsym_cmds_FC
="\$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'
13096 # see comment about AmigaOS4 .so support
13097 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 archive_expsym_cmds_FC
=''
13101 archive_cmds_FC
='$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)'
13102 hardcode_libdir_flag_spec_FC
='-L$libdir'
13103 hardcode_minus_L_FC
=yes
13109 export_dynamic_flag_spec_FC
=-rdynamic
13112 cygwin
* | mingw
* | pw32
* | cegcc
*)
13113 # When not using gcc, we currently assume that we are using
13114 # Microsoft Visual C++.
13115 # hardcode_libdir_flag_spec is actually meaningless, as there is
13116 # no search path for DLLs.
13117 hardcode_libdir_flag_spec_FC
=' '
13118 allow_undefined_flag_FC
=unsupported
13119 # Tell ltmain to make .lib files, not .a files.
13121 # Tell ltmain to make .dll files, not .so files.
13123 # FIXME: Setting linknames here is a bad hack.
13124 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13125 # The linker will automatically build a .lib file if we build a DLL.
13126 old_archive_from_new_cmds_FC
='true'
13127 # FIXME: Should let the user specify the lib program.
13128 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13129 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13130 enable_shared_with_static_runtimes_FC
=yes
13133 darwin
* | rhapsody
*)
13136 archive_cmds_need_lc_FC
=no
13137 hardcode_direct_FC
=no
13138 hardcode_automatic_FC
=yes
13139 hardcode_shlibpath_var_FC
=unsupported
13140 if test "$lt_cv_ld_force_load" = "yes"; then
13141 whole_archive_flag_spec_FC
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13143 whole_archive_flag_spec_FC
=''
13145 link_all_deplibs_FC
=yes
13146 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13147 case $cc_basename in
13148 ifort
*) _lt_dar_can_shared
=yes ;;
13149 *) _lt_dar_can_shared
=$GCC ;;
13151 if test "$_lt_dar_can_shared" = "yes"; then
13152 output_verbose_link_cmd
=func_echo_all
13153 archive_cmds_FC
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13154 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13155 archive_expsym_cmds_FC
="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}"
13156 module_expsym_cmds_FC
="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}"
13165 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13166 hardcode_libdir_flag_spec_FC
='-L$libdir'
13167 hardcode_shlibpath_var_FC
=no
13170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13171 # support. Future versions do this automatically, but an explicit c++rt0.o
13172 # does not break anything, and helps significantly (at the cost of a little
13175 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13176 hardcode_libdir_flag_spec_FC
='-R$libdir'
13177 hardcode_direct_FC
=yes
13178 hardcode_shlibpath_var_FC
=no
13181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13183 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13184 hardcode_direct_FC
=yes
13185 hardcode_minus_L_FC
=yes
13186 hardcode_shlibpath_var_FC
=no
13189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13190 freebsd
* | dragonfly
*)
13191 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13192 hardcode_libdir_flag_spec_FC
='-R$libdir'
13193 hardcode_direct_FC
=yes
13194 hardcode_shlibpath_var_FC
=no
13198 if test "$GCC" = yes; then
13199 archive_cmds_FC
='$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'
13201 archive_cmds_FC
='$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'
13203 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13204 hardcode_libdir_separator_FC
=:
13205 hardcode_direct_FC
=yes
13207 # hardcode_minus_L: Not really in the search PATH,
13208 # but as the default location of the library.
13209 hardcode_minus_L_FC
=yes
13210 export_dynamic_flag_spec_FC
='${wl}-E'
13214 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13215 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13217 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13219 if test "$with_gnu_ld" = no
; then
13220 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13221 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13222 hardcode_libdir_separator_FC
=:
13223 hardcode_direct_FC
=yes
13224 hardcode_direct_absolute_FC
=yes
13225 export_dynamic_flag_spec_FC
='${wl}-E'
13226 # hardcode_minus_L: Not really in the search PATH,
13227 # but as the default location of the library.
13228 hardcode_minus_L_FC
=yes
13233 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13236 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13239 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13242 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13248 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13251 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13254 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13258 if test "$with_gnu_ld" = no
; then
13259 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13260 hardcode_libdir_separator_FC
=:
13264 hardcode_direct_FC
=no
13265 hardcode_shlibpath_var_FC
=no
13268 hardcode_direct_FC
=yes
13269 hardcode_direct_absolute_FC
=yes
13270 export_dynamic_flag_spec_FC
='${wl}-E'
13272 # hardcode_minus_L: Not really in the search PATH,
13273 # but as the default location of the library.
13274 hardcode_minus_L_FC
=yes
13280 irix5
* | irix6
* | nonstopux
*)
13281 if test "$GCC" = yes; then
13282 archive_cmds_FC
='$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'
13283 # Try to use the -exported_symbol ld option, if it does not
13284 # work, assume that -exports_file does not work either and
13285 # implicitly export all symbols.
13286 save_LDFLAGS
="$LDFLAGS"
13287 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13288 cat > conftest.
$ac_ext <<_ACEOF
13291 if ac_fn_fc_try_link
"$LINENO"; then :
13292 archive_expsym_cmds_FC
='$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'
13295 rm -f core conftest.err conftest.
$ac_objext \
13296 conftest
$ac_exeext conftest.
$ac_ext
13297 LDFLAGS
="$save_LDFLAGS"
13299 archive_cmds_FC
='$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'
13300 archive_expsym_cmds_FC
='$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'
13302 archive_cmds_need_lc_FC
='no'
13303 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13304 hardcode_libdir_separator_FC
=:
13305 inherit_rpath_FC
=yes
13306 link_all_deplibs_FC
=yes
13310 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13311 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13313 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13315 hardcode_libdir_flag_spec_FC
='-R$libdir'
13316 hardcode_direct_FC
=yes
13317 hardcode_shlibpath_var_FC
=no
13321 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13322 hardcode_direct_FC
=yes
13323 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13324 hardcode_libdir_separator_FC
=:
13325 hardcode_shlibpath_var_FC
=no
13332 if test -f /usr
/libexec
/ld.so
; then
13333 hardcode_direct_FC
=yes
13334 hardcode_shlibpath_var_FC
=no
13335 hardcode_direct_absolute_FC
=yes
13336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13337 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13338 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13339 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13340 export_dynamic_flag_spec_FC
='${wl}-E'
13343 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13344 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13345 hardcode_libdir_flag_spec_FC
='-R$libdir'
13348 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13349 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13359 hardcode_libdir_flag_spec_FC
='-L$libdir'
13360 hardcode_minus_L_FC
=yes
13361 allow_undefined_flag_FC
=unsupported
13362 archive_cmds_FC
='$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'
13363 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13367 if test "$GCC" = yes; then
13368 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13369 archive_cmds_FC
='$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'
13371 allow_undefined_flag_FC
=' -expect_unresolved \*'
13372 archive_cmds_FC
='$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'
13374 archive_cmds_need_lc_FC
='no'
13375 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13376 hardcode_libdir_separator_FC
=:
13379 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13380 if test "$GCC" = yes; then
13381 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13382 archive_cmds_FC
='$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'
13383 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13385 allow_undefined_flag_FC
=' -expect_unresolved \*'
13386 archive_cmds_FC
='$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'
13387 archive_expsym_cmds_FC
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13388 $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'
13390 # Both c and cxx compiler support -rpath directly
13391 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13393 archive_cmds_need_lc_FC
='no'
13394 hardcode_libdir_separator_FC
=:
13398 no_undefined_flag_FC
=' -z defs'
13399 if test "$GCC" = yes; then
13401 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13402 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13403 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13405 case `$CC -V 2>&1` in
13408 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13410 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13414 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13415 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13416 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13420 hardcode_libdir_flag_spec_FC
='-R$libdir'
13421 hardcode_shlibpath_var_FC
=no
13423 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13425 # The compiler driver will combine and reorder linker options,
13426 # but understands `-z linker_flag'. GCC discards it without `$wl',
13427 # but is careful enough not to reorder.
13428 # Supported since Solaris 2.6 (maybe 2.5.1?)
13429 if test "$GCC" = yes; then
13430 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13432 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13436 link_all_deplibs_FC
=yes
13440 if test "x$host_vendor" = xsequent
; then
13441 # Use $CC to link under sequent, because it throws in some extra .o
13442 # files that make .init and .fini sections work.
13443 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13445 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13447 hardcode_libdir_flag_spec_FC
='-L$libdir'
13448 hardcode_direct_FC
=yes
13449 hardcode_minus_L_FC
=yes
13450 hardcode_shlibpath_var_FC
=no
13454 case $host_vendor in
13456 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13457 hardcode_direct_FC
=yes # is this really true???
13460 ## LD is ld it makes a PLAMLIB
13461 ## CC just makes a GrossModule.
13462 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13463 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13464 hardcode_direct_FC
=no
13467 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13471 runpath_var
='LD_RUN_PATH'
13472 hardcode_shlibpath_var_FC
=no
13476 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477 hardcode_shlibpath_var_FC
=no
13478 export_dynamic_flag_spec_FC
='-Bexport'
13482 if test -d /usr
/nec
; then
13483 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 hardcode_shlibpath_var_FC
=no
13485 runpath_var
=LD_RUN_PATH
13486 hardcode_runpath_var
=yes
13491 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13492 no_undefined_flag_FC
='${wl}-z,text'
13493 archive_cmds_need_lc_FC
=no
13494 hardcode_shlibpath_var_FC
=no
13495 runpath_var
='LD_RUN_PATH'
13497 if test "$GCC" = yes; then
13498 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 sysv5
* | sco3.2v5
* | sco5v6
*)
13507 # Note: We can NOT use -z defs as we might desire, because we do not
13508 # link with -lc, and that would cause any symbols used from libc to
13509 # always be unresolved, which means just about no library would
13510 # ever link correctly. If we're not using GNU ld we use -z text
13511 # though, which does catch some bad symbols but isn't as heavy-handed
13513 no_undefined_flag_FC
='${wl}-z,text'
13514 allow_undefined_flag_FC
='${wl}-z,nodefs'
13515 archive_cmds_need_lc_FC
=no
13516 hardcode_shlibpath_var_FC
=no
13517 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13518 hardcode_libdir_separator_FC
=':'
13519 link_all_deplibs_FC
=yes
13520 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13521 runpath_var
='LD_RUN_PATH'
13523 if test "$GCC" = yes; then
13524 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13533 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13534 hardcode_libdir_flag_spec_FC
='-L$libdir'
13535 hardcode_shlibpath_var_FC
=no
13543 if test x
$host_vendor = xsni
; then
13545 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13546 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13553 $as_echo "$ld_shlibs_FC" >&6; }
13554 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13556 with_gnu_ld_FC
=$with_gnu_ld
13564 # Do we need to explicitly link libc?
13566 case "x$archive_cmds_need_lc_FC" in
13568 # Assume -lc should be added
13569 archive_cmds_need_lc_FC
=yes
13571 if test "$enable_shared" = yes && test "$GCC" = yes; then
13572 case $archive_cmds_FC in
13574 # FIXME: we may have to deal with multi-command sequences.
13577 # Test whether the compiler implicitly links with -lc since on some
13578 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13579 # to ld, don't add -lc before -lgcc.
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13581 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13582 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13586 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13589 (eval $ac_compile) 2>&5
13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13592 test $ac_status = 0; } 2>conftest.err
; then
13595 libobjs
=conftest.
$ac_objext
13597 wl
=$lt_prog_compiler_wl_FC
13598 pic_flag
=$lt_prog_compiler_pic_FC
13604 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13605 allow_undefined_flag_FC
=
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13607 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; }
13612 lt_cv_archive_cmds_need_lc_FC
=no
13614 lt_cv_archive_cmds_need_lc_FC
=yes
13616 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13618 cat conftest.err
1>&5
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13624 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13625 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13698 library_names_spec
=
13699 libname_spec
='lib$name'
13703 postuninstall_cmds
=
13707 shlibpath_overrides_runpath
=unknown
13709 dynamic_linker
="$host_os ld.so"
13710 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13711 need_lib_prefix
=unknown
13712 hardcode_into_libs
=no
13714 # when you set need_version to no, make sure it does not cause -set_version
13715 # flags to be left without arguments
13716 need_version
=unknown
13721 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13722 shlibpath_var
=LIBPATH
13724 # AIX 3 has no versioning support, so we append a major version to the name.
13725 soname_spec
='${libname}${release}${shared_ext}$major'
13732 hardcode_into_libs
=yes
13733 if test "$host_cpu" = ia64
; then
13734 # AIX 5 supports IA64
13735 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13736 shlibpath_var
=LD_LIBRARY_PATH
13738 # With GCC up to 2.95.x, collect2 would create an import file
13739 # for dependence libraries. The import file would start with
13740 # the line `#! .'. This would cause the generated library to
13741 # depend on `.', always an invalid library. This was fixed in
13742 # development snapshots of GCC prior to 3.0.
13744 aix4 | aix4.
[01] | aix4.
[01].
*)
13745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13747 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
13750 can_build_shared
=no
13754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13755 # soname into executable. Probably we can add versioning support to
13756 # collect2, so additional links can be useful in future.
13757 if test "$aix_use_runtimelinking" = yes; then
13758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13759 # instead of lib<name>.a to let people know that these are not
13760 # typical AIX shared libraries.
13761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763 # We preserve .a as extension for shared libraries through AIX4.2
13764 # and later when we are not doing run time linking.
13765 library_names_spec
='${libname}${release}.a $libname.a'
13766 soname_spec
='${libname}${release}${shared_ext}$major'
13768 shlibpath_var
=LIBPATH
13775 # Since July 2007 AmigaOS4 officially supports .so libraries.
13776 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 library_names_spec
='$libname.ixlibrary $libname.a'
13781 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13782 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'
13788 library_names_spec
='${libname}${shared_ext}'
13789 dynamic_linker
="$host_os ld.so"
13790 shlibpath_var
=LIBRARY_PATH
13796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 soname_spec
='${libname}${release}${shared_ext}$major'
13798 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13799 shlibpath_var
=LD_LIBRARY_PATH
13800 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13801 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13802 # the default ld.so.conf also contains /usr/contrib/lib and
13803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13804 # libtool to hard-code these into programs
13807 cygwin
* | mingw
* | pw32
* | cegcc
*)
13808 version_type
=windows
13813 case $GCC,$host_os in
13814 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
13815 library_names_spec
='$libname.dll.a'
13816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13817 postinstall_cmds
='base_file=`basename \${file}`~
13818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13819 dldir=$destdir/`dirname \$dlpath`~
13820 test -d \$dldir || mkdir -p \$dldir~
13821 $install_prog $dir/$dlname \$dldir/$dlname~
13822 chmod a+x \$dldir/$dlname~
13823 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13824 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13826 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13827 dlpath=$dir/\$dldll~
13829 shlibpath_overrides_runpath
=yes
13833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13834 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13838 # MinGW DLLs use traditional 'lib' prefix
13839 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13842 # pw32 DLLs use 'pw' prefix rather than 'lib'
13843 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13849 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13852 dynamic_linker
='Win32 ld.exe'
13853 # FIXME: first we should search . and the directory the executable is in
13857 darwin
* | rhapsody
*)
13858 dynamic_linker
="$host_os dyld"
13859 version_type
=darwin
13862 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13863 soname_spec
='${libname}${release}${major}$shared_ext'
13864 shlibpath_overrides_runpath
=yes
13865 shlibpath_var
=DYLD_LIBRARY_PATH
13866 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13868 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13876 soname_spec
='${libname}${release}${shared_ext}$major'
13877 shlibpath_var
=LD_LIBRARY_PATH
13880 freebsd
* | dragonfly
*)
13881 # DragonFly does not have aout. When/if they implement a new
13882 # versioning mechanism, adjust this.
13883 if test -x /usr
/bin
/objformat
; then
13884 objformat
=`/usr/bin/objformat`
13887 freebsd
[123]*) objformat
=aout
;;
13888 *) objformat
=elf
;;
13891 version_type
=freebsd-
$objformat
13892 case $version_type in
13894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13899 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13903 shlibpath_var
=LD_LIBRARY_PATH
13906 shlibpath_overrides_runpath
=yes
13908 freebsd3.
[01]* | freebsdelf3.
[01]*)
13909 shlibpath_overrides_runpath
=yes
13910 hardcode_into_libs
=yes
13912 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13913 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13914 shlibpath_overrides_runpath
=no
13915 hardcode_into_libs
=yes
13917 *) # from 4.6 on, and DragonFly
13918 shlibpath_overrides_runpath
=yes
13919 hardcode_into_libs
=yes
13928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13929 soname_spec
='${libname}${release}${shared_ext}$major'
13930 shlibpath_var
=LD_LIBRARY_PATH
13931 hardcode_into_libs
=yes
13938 dynamic_linker
="$host_os runtime_loader"
13939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13940 soname_spec
='${libname}${release}${shared_ext}$major'
13941 shlibpath_var
=LIBRARY_PATH
13942 shlibpath_overrides_runpath
=yes
13943 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13944 hardcode_into_libs
=yes
13947 hpux9
* | hpux10
* | hpux11
*)
13948 # Give a soname corresponding to the major version so that dld.sl refuses to
13949 # link against other versions.
13956 hardcode_into_libs
=yes
13957 dynamic_linker
="$host_os dld.so"
13958 shlibpath_var
=LD_LIBRARY_PATH
13959 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13961 soname_spec
='${libname}${release}${shared_ext}$major'
13962 if test "X$HPUX_IA64_MODE" = X32
; then
13963 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13965 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13967 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13971 hardcode_into_libs
=yes
13972 dynamic_linker
="$host_os dld.sl"
13973 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13974 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13976 soname_spec
='${libname}${release}${shared_ext}$major'
13977 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13978 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13982 dynamic_linker
="$host_os dld.sl"
13983 shlibpath_var
=SHLIB_PATH
13984 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13986 soname_spec
='${libname}${release}${shared_ext}$major'
13989 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13990 postinstall_cmds
='chmod 555 $lib'
13991 # or fails outright, so override atomically:
13992 install_override_mode
=555
13999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14000 soname_spec
='${libname}${release}${shared_ext}$major'
14001 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14002 shlibpath_var
=LD_LIBRARY_PATH
14003 shlibpath_overrides_runpath
=no
14004 hardcode_into_libs
=yes
14007 irix5
* | irix6
* | nonstopux
*)
14009 nonstopux
*) version_type
=nonstopux
;;
14011 if test "$lt_cv_prog_gnu_ld" = yes; then
14019 soname_spec
='${libname}${release}${shared_ext}$major'
14020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14022 irix5
* | nonstopux
*)
14023 libsuff
= shlibsuff
=
14026 case $LD in # libtool.m4 will add one of these switches to LD
14027 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14028 libsuff
= shlibsuff
= libmagic
=32-bit;;
14029 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14030 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14031 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14032 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14033 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14037 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14038 shlibpath_overrides_runpath
=no
14039 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14040 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14041 hardcode_into_libs
=yes
14044 # No shared lib support for Linux oldld, aout, or coff.
14045 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14049 # This must be Linux ELF.
14050 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14055 soname_spec
='${libname}${release}${shared_ext}$major'
14056 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14057 shlibpath_var
=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath
=no
14060 # Some binutils ld are patched to set DT_RUNPATH
14061 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14064 lt_cv_shlibpath_overrides_runpath
=no
14065 save_LDFLAGS
=$LDFLAGS
14066 save_libdir
=$libdir
14067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14069 cat > conftest.
$ac_ext <<_ACEOF
14074 if ac_fn_fc_try_link
"$LINENO"; then :
14075 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14076 lt_cv_shlibpath_overrides_runpath
=yes
14079 rm -f core conftest.err conftest.
$ac_objext \
14080 conftest
$ac_exeext conftest.
$ac_ext
14081 LDFLAGS
=$save_LDFLAGS
14082 libdir
=$save_libdir
14086 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14088 # This implies no fast_install, which is unacceptable.
14089 # Some rework will be needed to allow for fast_install
14090 # before this can be enabled.
14091 hardcode_into_libs
=yes
14093 # Append ld.so.conf contents to the search path
14094 if test -f /etc
/ld.so.conf
; then
14095 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' ' '`
14096 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14099 # We used to test for /lib/ld.so.1 and disable shared libraries on
14100 # powerpc, because MkLinux only supported shared libraries with the
14101 # GNU dynamic linker. Since this was broken with cross compilers,
14102 # most powerpc-linux boxes support dynamic linking these days and
14103 # people can always --disable-shared, the test was removed, and we
14104 # assume the GNU/Linux dynamic linker is in use.
14105 dynamic_linker
='GNU/Linux ld.so'
14112 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14114 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14115 dynamic_linker
='NetBSD (a.out) ld.so'
14117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14118 soname_spec
='${libname}${release}${shared_ext}$major'
14119 dynamic_linker
='NetBSD ld.elf_so'
14121 shlibpath_var
=LD_LIBRARY_PATH
14122 shlibpath_overrides_runpath
=yes
14123 hardcode_into_libs
=yes
14128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 shlibpath_var
=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath
=yes
14137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec
='${libname}${release}${shared_ext}$major'
14139 shlibpath_var
=LD_LIBRARY_PATH
14140 shlibpath_overrides_runpath
=no
14141 hardcode_into_libs
=yes
14142 dynamic_linker
='ldqnx.so'
14147 sys_lib_dlsearch_path_spec
="/usr/lib"
14149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14151 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14152 *) need_version
=no
;;
14154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14155 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14156 shlibpath_var
=LD_LIBRARY_PATH
14157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14159 openbsd2.
[89] | openbsd2.
[89].
*)
14160 shlibpath_overrides_runpath
=no
14163 shlibpath_overrides_runpath
=yes
14167 shlibpath_overrides_runpath
=yes
14172 libname_spec
='$name'
14175 library_names_spec
='$libname${shared_ext} $libname.a'
14176 dynamic_linker
='OS/2 ld.exe'
14177 shlibpath_var
=LIBPATH
14180 osf3
* | osf4
* | osf5
*)
14184 soname_spec
='${libname}${release}${shared_ext}$major'
14185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 shlibpath_var
=LD_LIBRARY_PATH
14187 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14188 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14200 soname_spec
='${libname}${release}${shared_ext}$major'
14201 shlibpath_var
=LD_LIBRARY_PATH
14202 shlibpath_overrides_runpath
=yes
14203 hardcode_into_libs
=yes
14204 # ldd complains unless libraries are executable
14205 postinstall_cmds
='chmod +x $lib'
14210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14211 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14212 shlibpath_var
=LD_LIBRARY_PATH
14213 shlibpath_overrides_runpath
=yes
14214 if test "$with_gnu_ld" = yes; then
14222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223 soname_spec
='${libname}${release}${shared_ext}$major'
14224 shlibpath_var
=LD_LIBRARY_PATH
14225 case $host_vendor in
14227 shlibpath_overrides_runpath
=no
14229 runpath_var
=LD_RUN_PATH
14237 shlibpath_overrides_runpath
=no
14238 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14244 if test -d /usr
/nec
;then
14246 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14247 soname_spec
='$libname${shared_ext}.$major'
14248 shlibpath_var
=LD_LIBRARY_PATH
14252 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14253 version_type
=freebsd-elf
14256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14257 soname_spec
='${libname}${release}${shared_ext}$major'
14258 shlibpath_var
=LD_LIBRARY_PATH
14259 shlibpath_overrides_runpath
=yes
14260 hardcode_into_libs
=yes
14261 if test "$with_gnu_ld" = yes; then
14262 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14264 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14267 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14271 sys_lib_dlsearch_path_spec
='/usr/lib'
14275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14280 shlibpath_var
=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath
=no
14282 hardcode_into_libs
=yes
14287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288 soname_spec
='${libname}${release}${shared_ext}$major'
14289 shlibpath_var
=LD_LIBRARY_PATH
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14297 $as_echo "$dynamic_linker" >&6; }
14298 test "$dynamic_linker" = no
&& can_build_shared
=no
14300 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14301 if test "$GCC" = yes; then
14302 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14305 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14306 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14308 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14309 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14350 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14351 hardcode_action_FC
=
14352 if test -n "$hardcode_libdir_flag_spec_FC" ||
14353 test -n "$runpath_var_FC" ||
14354 test "X$hardcode_automatic_FC" = "Xyes" ; then
14356 # We can hardcode non-existent directories.
14357 if test "$hardcode_direct_FC" != no
&&
14358 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14359 # have to relink, otherwise we might link with an installed library
14360 # when we should be linking with a yet-to-be-installed one
14361 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14362 test "$hardcode_minus_L_FC" != no
; then
14363 # Linking always hardcodes the temporary library directory.
14364 hardcode_action_FC
=relink
14366 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14367 hardcode_action_FC
=immediate
14370 # We cannot hardcode anything, or else we can only hardcode existing
14372 hardcode_action_FC
=unsupported
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14375 $as_echo "$hardcode_action_FC" >&6; }
14377 if test "$hardcode_action_FC" = relink ||
14378 test "$inherit_rpath_FC" = yes; then
14379 # Fast installation is not supported
14380 enable_fast_install
=no
14381 elif test "$shlibpath_overrides_runpath" = yes ||
14382 test "$enable_shared" = no
; then
14383 # Fast installation is not necessary
14384 enable_fast_install
=needless
14393 fi # test -n "$compiler"
14397 fi # test "$_lt_disable_FC" != yes
14400 ac_cpp
='$CPP $CPPFLAGS'
14401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14406 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14408 # For libtool versioning info, format is CURRENT:REVISION:AGE
14409 libtool_VERSION
=1:0:0
14412 # Check header files.
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14414 $as_echo_n "checking for ANSI C header files... " >&6; }
14415 if test "${ac_cv_header_stdc+set}" = set; then :
14416 $as_echo_n "(cached) " >&6
14418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 #include <stdlib.h>
14421 #include <stdarg.h>
14422 #include <string.h>
14433 if ac_fn_c_try_compile
"$LINENO"; then :
14434 ac_cv_header_stdc
=yes
14436 ac_cv_header_stdc
=no
14438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14440 if test $ac_cv_header_stdc = yes; then
14441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 #include <string.h>
14447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14448 $EGREP "memchr" >/dev
/null
2>&1; then :
14451 ac_cv_header_stdc
=no
14457 if test $ac_cv_header_stdc = yes; then
14458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461 #include <stdlib.h>
14464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14465 $EGREP "free" >/dev
/null
2>&1; then :
14468 ac_cv_header_stdc
=no
14474 if test $ac_cv_header_stdc = yes; then
14475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14476 if test "$cross_compiling" = yes; then :
14479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 #include <stdlib.h>
14483 #if ((' ' & 0x0FF) == 0x020)
14484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14487 # define ISLOWER(c) \
14488 (('a' <= (c) && (c) <= 'i') \
14489 || ('j' <= (c) && (c) <= 'r') \
14490 || ('s' <= (c) && (c) <= 'z'))
14491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14499 for (i = 0; i < 256; i++)
14500 if (XOR (islower (i), ISLOWER (i))
14501 || toupper (i) != TOUPPER (i))
14506 if ac_fn_c_try_run
"$LINENO"; then :
14509 ac_cv_header_stdc
=no
14511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14518 $as_echo "$ac_cv_header_stdc" >&6; }
14519 if test $ac_cv_header_stdc = yes; then
14521 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14526 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14527 if test "${ac_cv_header_time+set}" = set; then :
14528 $as_echo_n "(cached) " >&6
14530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <sys/types.h>
14533 #include <sys/time.h>
14539 if ((struct tm *) 0)
14545 if ac_fn_c_try_compile
"$LINENO"; then :
14546 ac_cv_header_time
=yes
14548 ac_cv_header_time
=no
14550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14553 $as_echo "$ac_cv_header_time" >&6; }
14554 if test $ac_cv_header_time = yes; then
14556 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14561 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14562 if test "${gcc_cv_header_string+set}" = set; then :
14563 $as_echo_n "(cached) " >&6
14565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <string.h>
14568 #include <strings.h>
14577 if ac_fn_c_try_compile
"$LINENO"; then :
14578 gcc_cv_header_string
=yes
14580 gcc_cv_header_string
=no
14582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14585 $as_echo "$gcc_cv_header_string" >&6; }
14586 if test $gcc_cv_header_string = yes; then
14588 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14592 for ac_header
in unistd.h semaphore.h sys
/loadavg.h sys
/time.h sys
/time.h
14594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14595 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14596 eval as_val
=\$
$as_ac_Header
14597 if test "x$as_val" = x
""yes; then :
14598 cat >>confdefs.h
<<_ACEOF
14599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14609 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14611 acx_cv_header_stdint
=stddef.h
14612 acx_cv_header_stdint_kind
="(already complete)"
14613 for i
in stdint.h
$inttype_headers; do
14614 unset ac_cv_type_uintptr_t
14615 unset ac_cv_type_uintmax_t
14616 unset ac_cv_type_int_least32_t
14617 unset ac_cv_type_int_fast32_t
14618 unset ac_cv_type_uint64_t
14619 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14620 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14623 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
14624 acx_cv_header_stdint
=$i
14629 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14632 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14635 acx_cv_header_stdint_kind
="(mostly complete)"
14638 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14641 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
14644 acx_cv_header_stdint_kind
="(mostly complete)"
14647 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14650 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
14653 acx_cv_header_stdint_kind
="(mostly complete)"
14656 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14659 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14662 acx_cv_header_stdint_kind
="(lacks uint64_t)"
14667 if test "$acx_cv_header_stdint" = stddef.h
; then
14668 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
14669 for i
in stdint.h
$inttype_headers; do
14670 unset ac_cv_type_uintptr_t
14671 unset ac_cv_type_uint32_t
14672 unset ac_cv_type_uint64_t
14673 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14674 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14677 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
14678 acx_cv_header_stdint
=$i
14683 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14686 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14690 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14693 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14700 if test "$acx_cv_header_stdint" = stddef.h
; then
14701 acx_cv_header_stdint_kind
="(u_intXX_t style)"
14702 for i
in sys
/types.h
$inttype_headers; do
14703 unset ac_cv_type_u_int32_t
14704 unset ac_cv_type_u_int64_t
14705 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14706 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14709 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
14710 acx_cv_header_stdint
=$i
14715 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14718 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
14725 if test "$acx_cv_header_stdint" = stddef.h
; then
14726 acx_cv_header_stdint_kind
="(using manual detection)"
14729 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
14730 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
14731 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
14732 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
14733 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
14735 # ----------------- Summarize what we found so far
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14738 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14740 case `$as_basename -- gstdint.h ||
14741 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14742 Xgstdint.h : 'X\(//\)$' \| \
14743 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14744 $as_echo X/gstdint.h |
14745 sed '/^.*\/\([^/][^/]*\)\/*$/{
14758 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14759 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14760 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14761 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14766 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14768 # ----------------- done included file, check C basic types --------
14770 # Lacking an uintptr_t? Test size of void *
14771 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14772 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
14773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14775 # This bug is HP SR number 8606223364.
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14777 $as_echo_n "checking size of void *... " >&6; }
14778 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14779 $as_echo_n "(cached) " >&6
14781 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14784 if test "$ac_cv_type_void_p" = yes; then
14785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14787 { as_fn_set_status
77
14788 as_fn_error
"cannot compute sizeof (void *)
14789 See \`config.log' for more details." "$LINENO" 5; }; }
14791 ac_cv_sizeof_void_p
=0
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14797 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14801 cat >>confdefs.h
<<_ACEOF
14802 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14808 # Lacking an uint64_t? Test size of long
14809 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14810 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
14811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14813 # This bug is HP SR number 8606223364.
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14815 $as_echo_n "checking size of long... " >&6; }
14816 if test "${ac_cv_sizeof_long+set}" = set; then :
14817 $as_echo_n "(cached) " >&6
14819 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14822 if test "$ac_cv_type_long" = yes; then
14823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14825 { as_fn_set_status
77
14826 as_fn_error
"cannot compute sizeof (long)
14827 See \`config.log' for more details." "$LINENO" 5; }; }
14829 ac_cv_sizeof_long
=0
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14835 $as_echo "$ac_cv_sizeof_long" >&6; }
14839 cat >>confdefs.h
<<_ACEOF
14840 #define SIZEOF_LONG $ac_cv_sizeof_long
14846 if test $acx_cv_header_stdint = stddef.h
; then
14847 # Lacking a good header? Test size of everything and deduce all types.
14848 # The cast to long int works around a bug in the HP C Compiler
14849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14851 # This bug is HP SR number 8606223364.
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14853 $as_echo_n "checking size of int... " >&6; }
14854 if test "${ac_cv_sizeof_int+set}" = set; then :
14855 $as_echo_n "(cached) " >&6
14857 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14860 if test "$ac_cv_type_int" = yes; then
14861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14863 { as_fn_set_status
77
14864 as_fn_error
"cannot compute sizeof (int)
14865 See \`config.log' for more details." "$LINENO" 5; }; }
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14873 $as_echo "$ac_cv_sizeof_int" >&6; }
14877 cat >>confdefs.h
<<_ACEOF
14878 #define SIZEOF_INT $ac_cv_sizeof_int
14882 # The cast to long int works around a bug in the HP C Compiler
14883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14885 # This bug is HP SR number 8606223364.
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14887 $as_echo_n "checking size of short... " >&6; }
14888 if test "${ac_cv_sizeof_short+set}" = set; then :
14889 $as_echo_n "(cached) " >&6
14891 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14894 if test "$ac_cv_type_short" = yes; then
14895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14897 { as_fn_set_status
77
14898 as_fn_error
"cannot compute sizeof (short)
14899 See \`config.log' for more details." "$LINENO" 5; }; }
14901 ac_cv_sizeof_short
=0
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14907 $as_echo "$ac_cv_sizeof_short" >&6; }
14911 cat >>confdefs.h
<<_ACEOF
14912 #define SIZEOF_SHORT $ac_cv_sizeof_short
14916 # The cast to long int works around a bug in the HP C Compiler
14917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14919 # This bug is HP SR number 8606223364.
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14921 $as_echo_n "checking size of char... " >&6; }
14922 if test "${ac_cv_sizeof_char+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14925 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14928 if test "$ac_cv_type_char" = yes; then
14929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14931 { as_fn_set_status
77
14932 as_fn_error
"cannot compute sizeof (char)
14933 See \`config.log' for more details." "$LINENO" 5; }; }
14935 ac_cv_sizeof_char
=0
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14941 $as_echo "$ac_cv_sizeof_char" >&6; }
14945 cat >>confdefs.h
<<_ACEOF
14946 #define SIZEOF_CHAR $ac_cv_sizeof_char
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14952 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14953 case "$ac_cv_sizeof_char" in
14954 1) acx_cv_type_int8_t
=char
;;
14955 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14958 $as_echo "$acx_cv_type_int8_t" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14961 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14962 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14963 2:*) acx_cv_type_int16_t
=int
;;
14964 *:2) acx_cv_type_int16_t
=short
;;
14965 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14968 $as_echo "$acx_cv_type_int16_t" >&6; }
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14971 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14972 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14973 4:*) acx_cv_type_int32_t
=int
;;
14974 *:4) acx_cv_type_int32_t
=long
;;
14975 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14978 $as_echo "$acx_cv_type_int32_t" >&6; }
14981 # These tests are here to make the output prettier
14983 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14984 case "$ac_cv_sizeof_long" in
14985 8) acx_cv_type_int64_t
=long
;;
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14988 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14990 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14993 # Now we can use the above types
14995 if test "$ac_cv_type_uintptr_t" != yes; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14997 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14998 case $ac_cv_sizeof_void_p in
14999 2) acx_cv_type_intptr_t
=int16_t
;;
15000 4) acx_cv_type_intptr_t
=int32_t
;;
15001 8) acx_cv_type_intptr_t
=int64_t
;;
15002 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15005 $as_echo "$acx_cv_type_intptr_t" >&6; }
15008 # ----------------- done all checks, emit header -------------
15009 ac_config_commands
="$ac_config_commands gstdint.h"
15014 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15015 # In case the pthread.h system header is not found, this test will fail.
15017 CFLAGS
="$CFLAGS -pthread"
15018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15020 #include <pthread.h>
15021 void *g(void *d) { return NULL; }
15025 pthread_t t; pthread_create(&t,NULL,g,NULL);
15030 if ac_fn_c_try_link
"$LINENO"; then :
15031 XPCFLAGS
=" -Wc,-pthread"
15033 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 #include <pthread.h>
15037 void *g(void *d) { return NULL; }
15041 pthread_t t; pthread_create(&t,NULL,g,NULL);
15046 if ac_fn_c_try_link
"$LINENO"; then :
15049 as_fn_error
"Pthreads are required to build libgomp" "$LINENO" 5
15051 rm -f core conftest.err conftest.
$ac_objext \
15052 conftest
$ac_exeext conftest.
$ac_ext
15054 rm -f core conftest.err conftest.
$ac_objext \
15055 conftest
$ac_exeext conftest.
$ac_ext
15057 # Check for functions needed.
15058 for ac_func
in getloadavg clock_gettime strtoull
15060 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15061 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15062 eval as_val
=\$
$as_ac_var
15063 if test "x$as_val" = x
""yes; then :
15064 cat >>confdefs.h
<<_ACEOF
15065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15072 # Check for broken semaphore implementation on darwin.
15073 # sem_init returns: sem_init error: Function not implemented.
15077 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15082 # Check whether --enable-linux-futex was given.
15083 if test "${enable_linux_futex+set}" = set; then :
15084 enableval
=$enable_linux_futex;
15085 case "$enableval" in
15087 *) as_fn_error
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15091 enable_linux_futex
=default
15097 case "$enable_linux_futex" in
15099 # If headers don't have gettid/futex syscalls definition, then
15100 # default to no, otherwise there will be compile time failures.
15101 # Otherwise, default to yes. If we don't detect we are
15102 # compiled/linked against NPTL and not cross-compiling, check
15103 # if programs are run by default against NPTL and if not, issue
15105 enable_linux_futex
=no
15106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15108 #include <sys/syscall.h>
15113 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15118 if ac_fn_c_try_link
"$LINENO"; then :
15120 LIBS
="-lpthread $LIBS"
15121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15122 /* end confdefs.h. */
15123 #ifndef _GNU_SOURCE
15124 #define _GNU_SOURCE 1
15126 #include <pthread.h>
15127 pthread_t th; void *status;
15131 pthread_tryjoin_np (th, &status);
15136 if ac_fn_c_try_link
"$LINENO"; then :
15137 enable_linux_futex
=yes
15139 if test x
$cross_compiling = xno
; then
15140 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15141 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15143 If so, please configure with --disable-linux-futex" >&5
15144 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15145 If so, please configure with --disable-linux-futex" >&2;}
15148 enable_linux_futex
=yes
15150 rm -f core conftest.err conftest.
$ac_objext \
15151 conftest
$ac_exeext conftest.
$ac_ext
15154 rm -f core conftest.err conftest.
$ac_objext \
15155 conftest
$ac_exeext conftest.
$ac_ext
15158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #include <sys/syscall.h>
15165 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15170 if ac_fn_c_try_link
"$LINENO"; then :
15173 as_fn_error
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15175 rm -f core conftest.err conftest.
$ac_objext \
15176 conftest
$ac_exeext conftest.
$ac_ext
15181 enable_linux_futex
=no
15184 if test x
$enable_linux_futex = xyes
; then
15189 # Check for pthread_{,attr_}[sg]etaffinity_np.
15190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15192 #define _GNU_SOURCE
15193 #include <pthread.h>
15198 pthread_attr_t attr;
15199 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15200 if (CPU_ISSET (0, &cpuset))
15201 CPU_SET (1, &cpuset);
15203 CPU_ZERO (&cpuset);
15204 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15205 pthread_attr_init (&attr);
15206 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15207 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15212 if ac_fn_c_try_link
"$LINENO"; then :
15214 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15217 rm -f core conftest.err conftest.
$ac_objext \
15218 conftest
$ac_exeext conftest.
$ac_ext
15220 # At least for glibc, clock_gettime is in librt. But don't pull that
15221 # in if it still doesn't give us the function we want.
15222 if test $ac_cv_func_clock_gettime = no
; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15224 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15225 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15226 $as_echo_n "(cached) " >&6
15228 ac_check_lib_save_LIBS
=$LIBS
15230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15233 /* Override any GCC internal prototype to avoid an error.
15234 Use char because int might match the return type of a GCC
15235 builtin and then its argument prototype would still apply. */
15239 char clock_gettime ();
15243 return clock_gettime ();
15248 if ac_fn_c_try_link
"$LINENO"; then :
15249 ac_cv_lib_rt_clock_gettime
=yes
15251 ac_cv_lib_rt_clock_gettime
=no
15253 rm -f core conftest.err conftest.
$ac_objext \
15254 conftest
$ac_exeext conftest.
$ac_ext
15255 LIBS
=$ac_check_lib_save_LIBS
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15258 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15259 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
15262 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15268 # See if we support thread-local storage.
15271 # Check whether --enable-tls was given.
15272 if test "${enable_tls+set}" = set; then :
15273 enableval
=$enable_tls;
15274 case "$enableval" in
15276 *) as_fn_error
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15285 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15286 if test "${gcc_cv_have_tls+set}" = set; then :
15287 $as_echo_n "(cached) " >&6
15290 if test "$cross_compiling" = yes; then :
15291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 __thread int a; int b; int main() { return a = b; }
15295 if ac_fn_c_try_link
"$LINENO"; then :
15296 chktls_save_LDFLAGS
="$LDFLAGS"
15299 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15302 chktls_save_CFLAGS
="$CFLAGS"
15303 CFLAGS
="-fPIC $CFLAGS"
15304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15306 int f() { return 0; }
15308 if ac_fn_c_try_link
"$LINENO"; then :
15309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 __thread int a; int b; int f() { return a = b; }
15313 if ac_fn_c_try_link
"$LINENO"; then :
15314 gcc_cv_have_tls
=yes
15318 rm -f core conftest.err conftest.
$ac_objext \
15319 conftest
$ac_exeext conftest.
$ac_ext
15321 gcc_cv_have_tls
=yes
15323 rm -f core conftest.err conftest.
$ac_objext \
15324 conftest
$ac_exeext conftest.
$ac_ext
15325 CFLAGS
="$chktls_save_CFLAGS"
15326 LDFLAGS
="$chktls_save_LDFLAGS"
15330 rm -f core conftest.err conftest.
$ac_objext \
15331 conftest
$ac_exeext conftest.
$ac_ext
15335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337 __thread int a; int b; int main() { return a = b; }
15339 if ac_fn_c_try_run
"$LINENO"; then :
15340 chktls_save_LDFLAGS
="$LDFLAGS"
15341 LDFLAGS
="-static $LDFLAGS"
15342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 int main() { return 0; }
15346 if ac_fn_c_try_link
"$LINENO"; then :
15347 if test "$cross_compiling" = yes; then :
15348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15350 as_fn_error
"cannot run test program while cross compiling
15351 See \`config.log' for more details." "$LINENO" 5; }
15353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 __thread int a; int b; int main() { return a = b; }
15357 if ac_fn_c_try_run
"$LINENO"; then :
15358 gcc_cv_have_tls
=yes
15362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15367 gcc_cv_have_tls
=yes
15369 rm -f core conftest.err conftest.
$ac_objext \
15370 conftest
$ac_exeext conftest.
$ac_ext
15371 LDFLAGS
="$chktls_save_LDFLAGS"
15372 if test $gcc_cv_have_tls = yes; then
15373 chktls_save_CFLAGS
="$CFLAGS"
15374 thread_CFLAGS
=failed
15375 for flag
in '' '-pthread' '-lpthread'; do
15376 CFLAGS
="$flag $chktls_save_CFLAGS"
15377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15379 #include <pthread.h>
15380 void *g(void *d) { return NULL; }
15384 pthread_t t; pthread_create(&t,NULL,g,NULL);
15389 if ac_fn_c_try_link
"$LINENO"; then :
15390 thread_CFLAGS
="$flag"
15392 rm -f core conftest.err conftest.
$ac_objext \
15393 conftest
$ac_exeext conftest.
$ac_ext
15394 if test "X$thread_CFLAGS" != Xfailed
; then
15398 CFLAGS
="$chktls_save_CFLAGS"
15399 if test "X$thread_CFLAGS" != Xfailed
; then
15400 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15401 if test "$cross_compiling" = yes; then :
15402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15404 as_fn_error
"cannot run test program while cross compiling
15405 See \`config.log' for more details." "$LINENO" 5; }
15407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409 #include <pthread.h>
15411 static int *volatile a_in_other_thread;
15413 thread_func (void *arg)
15415 a_in_other_thread = &a;
15422 void *thread_retval;
15423 int *volatile a_in_main_thread;
15424 a_in_main_thread = &a;
15425 if (pthread_create (&thread, (pthread_attr_t *)0,
15426 thread_func, (void *)0))
15428 if (pthread_join (thread, &thread_retval))
15430 return (a_in_other_thread == a_in_main_thread);
15435 if ac_fn_c_try_run
"$LINENO"; then :
15436 gcc_cv_have_tls
=yes
15440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15441 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15444 CFLAGS
="$chktls_save_CFLAGS"
15450 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15451 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15456 $as_echo "$gcc_cv_have_tls" >&6; }
15457 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15459 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15463 # See what sort of export controls are availible.
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15466 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15467 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15468 $as_echo_n "(cached) " >&6
15471 save_CFLAGS
="$CFLAGS"
15472 CFLAGS
="$CFLAGS -Werror"
15473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475 void __attribute__((visibility("hidden"))) foo(void) { }
15484 if ac_fn_c_try_compile
"$LINENO"; then :
15485 libgomp_cv_have_attribute_visibility
=yes
15487 libgomp_cv_have_attribute_visibility
=no
15489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15490 CFLAGS
="$save_CFLAGS"
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15493 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15494 if test $libgomp_cv_have_attribute_visibility = yes; then
15496 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15501 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15502 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15506 save_CFLAGS
="$CFLAGS"
15507 CFLAGS
="$CFLAGS -Werror"
15508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510 void __attribute__((dllexport)) foo(void) { }
15519 if ac_fn_c_try_compile
"$LINENO"; then :
15520 libgomp_cv_have_attribute_dllexport
=yes
15522 libgomp_cv_have_attribute_dllexport
=no
15524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15525 CFLAGS
="$save_CFLAGS"
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15528 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15529 if test $libgomp_cv_have_attribute_dllexport = yes; then
15531 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15536 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15537 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15538 $as_echo_n "(cached) " >&6
15541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15545 extern void bar(void) __attribute__((alias("foo")));
15554 if ac_fn_c_try_link
"$LINENO"; then :
15555 libgomp_cv_have_attribute_alias
=yes
15557 libgomp_cv_have_attribute_alias
=no
15559 rm -f core conftest.err conftest.
$ac_objext \
15560 conftest
$ac_exeext conftest.
$ac_ext
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15563 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15564 if test $libgomp_cv_have_attribute_alias = yes; then
15566 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15571 # Check whether --with-gnu-ld was given.
15572 if test "${with_gnu_ld+set}" = set; then :
15573 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15579 if test "$GCC" = yes; then
15580 # Check if gcc -print-prog-name=ld gives a path.
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15582 $as_echo_n "checking for ld used by $CC... " >&6; }
15585 # gcc leaves a trailing carriage return which upsets mingw
15586 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15588 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15591 # Accept absolute paths.
15593 re_direlt
='/[^/][^/]*/\.\./'
15594 # Canonicalize the pathname of ld
15595 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15596 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15597 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15599 test -z "$LD" && LD
="$ac_prog"
15602 # If it fails, then pretend we aren't using GCC.
15606 # If it is relative, then search for the first ld in PATH.
15607 with_gnu_ld
=unknown
15610 elif test "$with_gnu_ld" = yes; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15612 $as_echo_n "checking for GNU ld... " >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15615 $as_echo_n "checking for non-GNU ld... " >&6; }
15617 if test "${lt_cv_path_LD+set}" = set; then :
15618 $as_echo_n "(cached) " >&6
15620 if test -z "$LD"; then
15621 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15622 for ac_dir
in $PATH; do
15624 test -z "$ac_dir" && ac_dir
=.
15625 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15626 lt_cv_path_LD
="$ac_dir/$ac_prog"
15627 # Check to see if the program is GNU ld. I'd rather use --version,
15628 # but apparently some variants of GNU ld only accept -v.
15629 # Break only if it was the GNU/non-GNU ld that we prefer.
15630 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15631 *GNU
* |
*'with BFD'*)
15632 test "$with_gnu_ld" != no
&& break
15635 test "$with_gnu_ld" != yes && break
15642 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15646 LD
="$lt_cv_path_LD"
15647 if test -n "$LD"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15649 $as_echo "$LD" >&6; }
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15654 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15656 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15657 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15658 $as_echo_n "(cached) " >&6
15660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15661 case `$LD -v 2>&1 </dev/null` in
15662 *GNU
* |
*'with BFD'*)
15663 lt_cv_prog_gnu_ld
=yes
15666 lt_cv_prog_gnu_ld
=no
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15671 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15672 with_gnu_ld
=$lt_cv_prog_gnu_ld
15680 # If we're not using GNU ld, then there's no point in even trying these
15681 # tests. Check for that first. We should have already tested for gld
15682 # by now (in libtool), but require it now just to be safe...
15683 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
15684 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
15688 # The name set by libtool depends on the version of libtool. Shame on us
15689 # for depending on an impl detail, but c'est la vie. Older versions used
15690 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15691 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15692 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15693 # set (hence we're using an older libtool), then set it.
15694 if test x
${with_gnu_ld+set} != xset
; then
15695 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
15696 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15699 with_gnu_ld
=$ac_cv_prog_gnu_ld
15703 # Start by getting the version number. I think the libtool test already
15704 # does some of this, but throws away the result.
15705 libgomp_ld_is_gold
=no
15706 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
15707 libgomp_ld_is_gold
=yes
15710 ldver
=`$LD --version 2>/dev/null |
15711 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'`
15713 libgomp_gnu_ld_version
=`echo $ldver | \
15714 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15716 # Set --gc-sections.
15717 if test "$with_gnu_ld" = "notbroken"; then
15718 # GNU ld it is! Joy and bunny rabbits!
15720 # All these tests are for C++; save the language and the compiler flags.
15721 # Need to do this so that g++ won't try to link in libstdc++
15722 ac_test_CFLAGS
="${CFLAGS+set}"
15723 ac_save_CFLAGS
="$CFLAGS"
15724 CFLAGS
='-x c++ -Wl,--gc-sections'
15726 # Check for -Wl,--gc-sections
15727 # XXX This test is broken at the moment, as symbols required for linking
15728 # are now in libsupc++ (not built yet). In addition, this test has
15729 # cored on solaris in the past. In addition, --gc-sections doesn't
15730 # really work at the moment (keeps on discarding used sections, first
15731 # .eh_frame and now some of the glibc sections for iconv).
15732 # Bzzzzt. Thanks for playing, maybe next time.
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15734 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15735 if test "$cross_compiling" = yes; then :
15736 ac_sectionLDflags
=yes
15738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15749 if ac_fn_c_try_run
"$LINENO"; then :
15750 ac_sectionLDflags
=yes
15752 ac_sectionLDflags
=no
15754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15758 if test "$ac_test_CFLAGS" = set; then
15759 CFLAGS
="$ac_save_CFLAGS"
15761 # this is the suspicious part
15764 if test "$ac_sectionLDflags" = "yes"; then
15765 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15768 $as_echo "$ac_sectionLDflags" >&6; }
15771 # Set linker optimization flags.
15772 if test x
"$with_gnu_ld" = x
"yes"; then
15773 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
15781 # Check whether --enable-symvers was given.
15782 if test "${enable_symvers+set}" = set; then :
15783 enableval
=$enable_symvers;
15784 case "$enableval" in
15785 yes|no|gnu
*|sun
) ;;
15786 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15795 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15796 # don't know enough about $LD to do tricks...
15799 # Turn a 'yes' into a suitable default.
15800 if test x
$enable_symvers = xyes
; then
15801 # FIXME The following test is too strict, in theory.
15802 if test $enable_shared = no ||
test "x$LD" = x
; then
15805 if test $with_gnu_ld = yes ; then
15808 case ${target_os} in
15809 # Sun symbol versioning exists since Solaris 2.5.
15810 solaris2.
[5-9]* | solaris2.1
[0-9]*)
15811 enable_symvers
=sun
;;
15813 enable_symvers
=no
;;
15819 # Check if 'sun' was requested on non-Solaris 2 platforms.
15820 if test x
$enable_symvers = xsun
; then
15821 case ${target_os} in
15826 # Unlikely to work.
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15828 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15830 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15832 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15838 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15839 if test $enable_symvers != no
; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15841 $as_echo_n "checking for shared libgcc... " >&6; }
15842 ac_save_CFLAGS
="$CFLAGS"
15844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15855 if ac_fn_c_try_link
"$LINENO"; then :
15856 libgomp_shared_libgcc
=yes
15858 libgomp_shared_libgcc
=no
15860 rm -f core conftest.err conftest.
$ac_objext \
15861 conftest
$ac_exeext conftest.
$ac_ext
15862 CFLAGS
="$ac_save_CFLAGS"
15863 if test $libgomp_shared_libgcc = no
; then
15864 cat > conftest.c
<<EOF
15865 int main (void) { return 0; }
15867 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15868 -shared -shared-libgcc -o conftest.so \
15869 conftest.c -v 2>&1 >/dev/null \
15870 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15871 rm -f conftest.c conftest.so
15872 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
15873 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
15874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15885 if ac_fn_c_try_link
"$LINENO"; then :
15886 libgomp_shared_libgcc
=yes
15888 rm -f core conftest.err conftest.
$ac_objext \
15889 conftest
$ac_exeext conftest.
$ac_ext
15890 CFLAGS
="$ac_save_CFLAGS"
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15894 $as_echo "$libgomp_shared_libgcc" >&6; }
15897 # For GNU ld, we need at least this version. The format is described in
15898 # LIBGOMP_CHECK_LINKER_FEATURES above.
15899 libgomp_min_gnu_ld_version
=21400
15900 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15902 # Check to see if unspecified "yes" value can win, given results above.
15903 # Change "yes" into either "no" or a style name.
15904 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
15905 if test $with_gnu_ld = yes; then
15906 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15908 elif test $libgomp_ld_is_gold = yes ; then
15911 # The right tools, the right setup, but too old. Fallbacks?
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15913 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15915 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15917 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15919 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15920 if test $libgomp_gnu_ld_version -ge 21200 ; then
15921 # Globbing fix is present, proper block support is not.
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15923 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15928 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15932 elif test $enable_symvers = sun
; then
15933 : All interesting versions of Sun ld support sun style symbol versioning.
15935 # just fail for now
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15937 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15939 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15941 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15943 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15949 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15950 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15951 $as_echo_n "(cached) " >&6
15954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 void foo (void); __asm (".symver foo, bar@SYMVER");
15965 if ac_fn_c_try_compile
"$LINENO"; then :
15966 libgomp_cv_have_as_symver_directive
=yes
15968 libgomp_cv_have_as_symver_directive
=no
15970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15973 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15974 if test $libgomp_cv_have_as_symver_directive = yes; then
15976 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15980 if test $enable_symvers != no
; then
15981 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
15982 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
15984 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
15985 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
15988 if test $enable_symvers = gnu
; then
15989 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
15990 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
15992 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
15993 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
15996 if test $enable_symvers = sun
; then
15997 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
15998 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16000 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16001 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16005 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16007 if test $enable_symvers != no
; then
16008 case ${target_os} in
16009 # The Solaris 2 runtime linker doesn't support the GNU extension of
16010 # binding the same symbol to different versions
16012 symvers_renaming
=no
;;
16013 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16016 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16018 symvers_renaming
=yes ;;
16021 symvers_renaming
=no
16023 if test $symvers_renaming = no
; then
16024 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
=
16025 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE
='#'
16027 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
='#'
16028 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE
=
16033 if test $enable_symvers = gnu
; then
16035 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16039 # Get target configury.
16040 .
${srcdir}/configure.tgt
16041 CFLAGS
="$save_CFLAGS $XCFLAGS"
16043 # Check for __sync_val_compare_and_swap, but only after the target has
16044 # had a chance to set XCFLAGS.
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16047 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16048 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16049 $as_echo_n "(cached) " >&6
16052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16058 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16063 if ac_fn_c_try_link
"$LINENO"; then :
16064 libgomp_cv_have_sync_builtins
=yes
16066 libgomp_cv_have_sync_builtins
=no
16068 rm -f core conftest.err conftest.
$ac_objext \
16069 conftest
$ac_exeext conftest.
$ac_ext
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16072 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16073 if test $libgomp_cv_have_sync_builtins = yes; then
16075 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16079 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16085 # Cleanup and exit.
16086 CFLAGS
="$save_CFLAGS"
16087 cat >confcache
<<\_ACEOF
16088 # This file is a shell script that caches the results of configure
16089 # tests run on this system so they can be shared between configure
16090 # scripts and configure runs, see configure's option --config-cache.
16091 # It is not useful on other systems. If it contains results you don't
16092 # want to keep, you may remove or edit it.
16094 # config.status only pays attention to the cache file if you give it
16095 # the --recheck option to rerun configure.
16097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16099 # following values.
16103 # The following way of writing the cache mishandles newlines in values,
16104 # but we know of no workaround that is simple, portable, and efficient.
16105 # So, we kill variables containing newlines.
16106 # Ultrix sh set writes to stderr and can't be redirected directly,
16107 # and sets the high bit in the cache file unless we assign to the vars.
16109 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16110 eval ac_val
=\$
$ac_var
16114 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16118 _ | IFS | as_nl
) ;; #(
16119 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16120 *) { eval $ac_var=; unset $ac_var;} ;;
16126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16127 *${as_nl}ac_space
=\
*)
16128 # `set' does not quote correctly, so add quotes: double-quote
16129 # substitution turns \\\\ into \\, and sed turns \\ into \.
16132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16135 # `set' quotes correctly as required by POSIX, so do not add quotes.
16136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16149 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16150 if test -w "$cache_file"; then
16151 test "x$cache_file" != "x/dev/null" &&
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16153 $as_echo "$as_me: updating cache $cache_file" >&6;}
16154 cat confcache
>$cache_file
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16157 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16162 if test ${multilib} = yes; then
16163 multilib_arg
="--enable-multilib"
16168 # Set up the set of libraries that we need to link against for libgomp.
16169 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16170 # which will force linkage against -lpthread (or equivalent for the system).
16171 # That's not 100% ideal, but about the best we can do easily.
16172 if test $enable_shared = yes; then
16173 link_gomp
="-lgomp %{static: $LIBS}"
16175 link_gomp
="-lgomp $LIBS"
16179 if test "$ac_cv_fc_compiler_gnu" = yes; then
16181 USE_FORTRAN_FALSE
='#'
16183 USE_FORTRAN_TRUE
='#'
16188 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16189 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16190 # the underscore here and update the PREREQ. If it doesn't, then we'll
16191 # need to copy this macro to our acinclude.m4.
16192 save_CFLAGS
="$CFLAGS"
16193 for i
in $config_path; do
16194 if test -f $srcdir/config
/$i/omp-lock.h
; then
16195 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16200 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16203 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16207 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16212 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16217 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16222 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16225 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16229 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16234 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16239 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16245 # If the lock fits in an integer, then arrange for Fortran to use that
16246 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16247 # Except that we don't have a way at present to multi-lib the installed
16248 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16250 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16251 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16252 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16255 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16256 OMP_NEST_LOCK_KIND
=8
16258 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16259 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16260 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16263 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16264 OMP_NEST_LOCK_25_KIND
=8
16279 CFLAGS
="$save_CFLAGS"
16281 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16283 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16285 ac_config_files
="$ac_config_files testsuite/gompconfig.exp"
16287 cat >confcache
<<\_ACEOF
16288 # This file is a shell script that caches the results of configure
16289 # tests run on this system so they can be shared between configure
16290 # scripts and configure runs, see configure's option --config-cache.
16291 # It is not useful on other systems. If it contains results you don't
16292 # want to keep, you may remove or edit it.
16294 # config.status only pays attention to the cache file if you give it
16295 # the --recheck option to rerun configure.
16297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16299 # following values.
16303 # The following way of writing the cache mishandles newlines in values,
16304 # but we know of no workaround that is simple, portable, and efficient.
16305 # So, we kill variables containing newlines.
16306 # Ultrix sh set writes to stderr and can't be redirected directly,
16307 # and sets the high bit in the cache file unless we assign to the vars.
16309 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16310 eval ac_val
=\$
$ac_var
16314 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16318 _ | IFS | as_nl
) ;; #(
16319 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16320 *) { eval $ac_var=; unset $ac_var;} ;;
16326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16327 *${as_nl}ac_space
=\
*)
16328 # `set' does not quote correctly, so add quotes: double-quote
16329 # substitution turns \\\\ into \\, and sed turns \\ into \.
16332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16335 # `set' quotes correctly as required by POSIX, so do not add quotes.
16336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16349 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16350 if test -w "$cache_file"; then
16351 test "x$cache_file" != "x/dev/null" &&
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16353 $as_echo "$as_me: updating cache $cache_file" >&6;}
16354 cat confcache
>$cache_file
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16357 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16362 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16363 # Let make expand exec_prefix.
16364 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16366 DEFS
=-DHAVE_CONFIG_H
16370 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16371 # 1. Remove the extension, and $U if already installed.
16372 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16373 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16375 # will be set to the directory where LIBOBJS objects are built.
16376 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16377 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16379 LIBOBJS
=$ac_libobjs
16381 LTLIBOBJS
=$ac_ltlibobjs
16384 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16385 as_fn_error
"conditional \"GENINSRC\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16388 if test -n "$EXEEXT"; then
16390 am__EXEEXT_FALSE
='#'
16392 am__EXEEXT_TRUE
='#'
16396 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16397 as_fn_error
"conditional \"AMDEP\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16401 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16404 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16405 as_fn_error
"conditional \"BUILD_INFO\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16408 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16409 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16412 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16413 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16416 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16417 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16420 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16421 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16424 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE}"; then
16425 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16428 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16429 as_fn_error
"conditional \"USE_FORTRAN\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16433 : ${CONFIG_STATUS=./config.status}
16435 ac_clean_files_save
=$ac_clean_files
16436 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16438 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16440 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16442 # Generated by $as_me.
16443 # Run this file to recreate the current configuration.
16444 # Compiler output produced by configure, useful for debugging
16445 # configure, is in config.log if it exists.
16448 ac_cs_recheck=false
16451 SHELL=\${CONFIG_SHELL-$SHELL}
16454 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16455 ## -------------------- ##
16456 ## M4sh Initialization. ##
16457 ## -------------------- ##
16459 # Be more Bourne compatible
16460 DUALCASE
=1; export DUALCASE
# for MKS sh
16461 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16464 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16465 # is contrary to our usage. Disable this feature.
16466 alias -g '${1+"$@"}'='"$@"'
16467 setopt NO_GLOB_SUBST
16469 case `(set -o) 2>/dev/null` in #(
16481 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16482 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16483 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16485 # Prefer a ksh shell builtin over an external printf program on Solaris,
16486 # but without wasting forks for bash or zsh.
16487 if test -z "$BASH_VERSION$ZSH_VERSION" \
16488 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16489 as_echo='print
-r --'
16490 as_echo_n='print
-rn --'
16491 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16492 as_echo='printf %s
\n'
16493 as_echo_n='printf %s
'
16495 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16496 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16497 as_echo_n='/usr
/ucb
/echo -n'
16499 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16500 as_echo_n_body='eval
16504 expr "X$arg" : "X\\(.*\\)$as_nl";
16505 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16507 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16509 export as_echo_n_body
16510 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16512 export as_echo_body
16513 as_echo='sh
-c $as_echo_body as_echo
'
16516 # The user is always right.
16517 if test "${PATH_SEPARATOR+set}" != set; then
16519 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16520 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16527 # We need space, tab and new line, in precisely that order. Quoting is
16528 # there to prevent editors from complaining about space-tab.
16529 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16530 # splitting by setting IFS to empty value.)
16533 # Find who we are. Look in the path if we contain no directory separator.
16535 *[\\/]* ) as_myself=$0 ;;
16536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 for as_dir in $PATH
16540 test -z "$as_dir" && as_dir=.
16541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16547 # We did not find ourselves, most probably we were run as `sh COMMAND'
16548 # in which case we are not to be found in the path.
16549 if test "x$as_myself" = x
; then
16552 if test ! -f "$as_myself"; then
16553 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16557 # Unset variables that we do not need and which cause bugs (e.g. in
16558 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16559 # suppresses any "Segmentation fault" message there. '((' could
16560 # trigger a bug in pdksh 5.2.14.
16561 for as_var
in BASH_ENV ENV MAIL MAILPATH
16562 do eval test x\
${$as_var+set} = xset \
16563 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16576 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16579 # as_fn_error ERROR [LINENO LOG_FD]
16580 # ---------------------------------
16581 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16582 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16583 # script with status $?, using 1 if that was 0.
16586 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16588 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16589 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16591 $as_echo "$as_me: error: $1" >&2
16592 as_fn_exit
$as_status
16596 # as_fn_set_status STATUS
16597 # -----------------------
16598 # Set $? to STATUS, without forking.
16599 as_fn_set_status
()
16602 } # as_fn_set_status
16604 # as_fn_exit STATUS
16605 # -----------------
16606 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16610 as_fn_set_status
$1
16616 # Portably unset VAR.
16619 { eval $1=; unset $1;}
16621 as_unset
=as_fn_unset
16622 # as_fn_append VAR VALUE
16623 # ----------------------
16624 # Append the text in VALUE to the end of the definition contained in VAR. Take
16625 # advantage of any shell optimizations that allow amortized linear growth over
16626 # repeated appends, instead of the typical quadratic growth present in naive
16628 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16629 eval 'as_fn_append ()
16640 # as_fn_arith ARG...
16641 # ------------------
16642 # Perform arithmetic evaluation on the ARGs, and store the result in the
16643 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16644 # must be portable across $(()) and expr.
16645 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16646 eval 'as_fn_arith ()
16653 as_val
=`expr "$@" || test $? -eq 1`
16658 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16659 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16665 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16666 as_basename
=basename
16671 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16677 as_me
=`$as_basename -- "$0" ||
16678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16679 X"$0" : 'X\(//\)$' \| \
16680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16682 sed '/^.*\/\([^/][^/]*\)\/*$/{
16696 # Avoid depending upon Character Ranges.
16697 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16698 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16699 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16700 as_cr_digits
='0123456789'
16701 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16703 ECHO_C
= ECHO_N
= ECHO_T
=
16704 case `echo -n x` in #(((((
16706 case `echo 'xy\c'` in
16707 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16709 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16716 rm -f conf$$ conf$$.exe conf$$.
file
16717 if test -d conf$$.dir
; then
16718 rm -f conf$$.dir
/conf$$.
file
16721 mkdir conf$$.dir
2>/dev
/null
16723 if (echo >conf$$.
file) 2>/dev
/null
; then
16724 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16726 # ... but there are two gotchas:
16727 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16728 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16729 # In both cases, we have to default to `cp -p'.
16730 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16732 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16740 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16741 rmdir conf$$.dir
2>/dev
/null
16746 # Create "$as_dir" as a directory, including parents if necessary.
16751 -*) as_dir
=.
/$as_dir;;
16753 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16757 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16758 *) as_qdir
=$as_dir;;
16760 as_dirs
="'$as_qdir' $as_dirs"
16761 as_dir
=`$as_dirname -- "$as_dir" ||
16762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16763 X"$as_dir" : 'X\(//\)[^/]' \| \
16764 X"$as_dir" : 'X\(//\)$' \| \
16765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16766 $as_echo X"$as_dir" |
16767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16771 /^X\(\/\/\)[^/].*/{
16784 test -d "$as_dir" && break
16786 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16787 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16791 if mkdir
-p .
2>/dev
/null
; then
16792 as_mkdir_p
='mkdir -p "$as_dir"'
16794 test -d .
/-p && rmdir .
/-p
16798 if test -x / >/dev
/null
2>&1; then
16799 as_test_x
='test -x'
16801 if ls -dL / >/dev
/null
2>&1; then
16808 if test -d "$1"; then
16814 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16815 ???[sx]*):;;*)false;;esac;fi
16819 as_executable_p
=$as_test_x
16821 # Sed expression to map a string onto a valid CPP name.
16822 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16824 # Sed expression to map a string onto a valid variable name.
16825 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16829 ## ----------------------------------- ##
16830 ## Main body of $CONFIG_STATUS script. ##
16831 ## ----------------------------------- ##
16833 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16836 # Save the log message, to keep $0 and so on meaningful, and to
16837 # report actual input values of CONFIG_FILES etc. instead of their
16838 # values after options handling.
16840 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16841 generated by GNU Autoconf 2.64. Invocation command line was
16843 CONFIG_FILES = $CONFIG_FILES
16844 CONFIG_HEADERS = $CONFIG_HEADERS
16845 CONFIG_LINKS = $CONFIG_LINKS
16846 CONFIG_COMMANDS = $CONFIG_COMMANDS
16849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16854 case $ac_config_files in *"
16855 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16858 case $ac_config_headers in *"
16859 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16864 # Files that config.status was made for.
16865 config_files="$ac_config_files"
16866 config_headers="$ac_config_headers"
16867 config_commands="$ac_config_commands"
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16873 \`$as_me' instantiates files and other configuration actions
16874 from templates according to the current configuration. Unless the files
16875 and actions are specified as TAGs, all are instantiated by default.
16877 Usage: $0 [OPTION]... [TAG]...
16879 -h, --help print this help, then exit
16880 -V, --version print version number and configuration settings, then exit
16881 -q, --quiet, --silent
16882 do not print progress messages
16883 -d, --debug don't remove temporary files
16884 --recheck update $as_me by reconfiguring in the same conditions
16885 --file=FILE[:TEMPLATE]
16886 instantiate the configuration file FILE
16887 --header=FILE[:TEMPLATE]
16888 instantiate the configuration header FILE
16890 Configuration files:
16893 Configuration headers:
16896 Configuration commands:
16899 Report bugs to the package provider.
16900 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16901 General help using GNU software: <http://www.gnu.org/gethelp/>."
16904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906 GNU OpenMP Runtime Library config.status 1.0
16907 configured by $0, generated by GNU Autoconf 2.64,
16908 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16910 Copyright (C) 2009 Free Software Foundation, Inc.
16911 This config.status script is free software; the Free Software Foundation
16912 gives unlimited permission to copy, distribute and modify it."
16919 test -n "\$AWK" || AWK=awk
16922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16923 # The default lists apply if the user does not specify any file.
16929 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16930 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16941 # Handling of the options.
16942 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16944 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16945 $as_echo "$ac_cs_version"; exit ;;
16946 --debug |
--debu |
--deb |
--de |
--d |
-d )
16948 --file |
--fil |
--fi |
--f )
16951 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16953 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16954 ac_need_defaults
=false
;;
16955 --header |
--heade |
--head |
--hea )
16958 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16960 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16961 ac_need_defaults
=false
;;
16963 # Conflict between --help and --header
16964 as_fn_error
"ambiguous option: \`$1'
16965 Try \`$0 --help' for more information.";;
16966 --help |
--hel |
-h )
16967 $as_echo "$ac_cs_usage"; exit ;;
16968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16969 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16972 # This is an error.
16973 -*) as_fn_error
"unrecognized option: \`$1'
16974 Try \`$0 --help' for more information." ;;
16976 *) as_fn_append ac_config_targets
" $1"
16977 ac_need_defaults
=false
;;
16983 ac_configure_extra_args
=
16985 if $ac_cs_silent; then
16987 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16992 if \$ac_cs_recheck; then
16993 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16996 CONFIG_SHELL='$SHELL'
16997 export CONFIG_SHELL
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17007 ## Running $as_me. ##
17013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17021 with_multisubdir="$with_multisubdir"
17022 with_multisrctop="$with_multisrctop"
17023 with_target_subdir="$with_target_subdir"
17024 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17025 multi_basedir="$multi_basedir"
17026 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17029 GFORTRAN="$GFORTRAN"
17031 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17034 # The HP-UX ksh and POSIX shell print the target directory to stdout
17035 # if CDPATH is set.
17036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17038 sed_quote_subst='$sed_quote_subst'
17039 double_quote_subst='$double_quote_subst'
17040 delay_variable_subst='$delay_variable_subst'
17041 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17042 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17043 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17044 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17045 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17046 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17047 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17048 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17049 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17050 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17051 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17052 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17053 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17054 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17055 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17056 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17057 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17058 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17059 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17060 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17061 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17062 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17063 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17064 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17065 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17066 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17067 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17068 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17069 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17070 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17071 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17072 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17073 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17074 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17075 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17076 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17077 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17078 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17079 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17080 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17081 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17082 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17083 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17084 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17085 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17086 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17087 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17088 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17089 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"`'
17090 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17091 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17092 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17093 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17094 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17095 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17096 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17097 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17098 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17099 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17100 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17101 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17102 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17103 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17104 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17105 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17106 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17107 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17108 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17109 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17110 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17111 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17112 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17113 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17114 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17115 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17116 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17117 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17118 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17119 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17120 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17121 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17122 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17123 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17124 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17125 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17126 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17127 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17128 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17129 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17130 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17131 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17132 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17133 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17134 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17135 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17136 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17137 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17138 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17139 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17140 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17141 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17142 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17143 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17144 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17145 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17146 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17147 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17148 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17149 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17150 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17151 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17152 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17153 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17154 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17155 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17156 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17157 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17158 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17159 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17160 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17161 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17162 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17163 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17164 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17165 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17166 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17167 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17168 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17169 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17170 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17171 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17172 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17173 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17174 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17175 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17176 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17177 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17178 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17179 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17180 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17181 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17182 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17183 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17184 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17185 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17186 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17187 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17188 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17189 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17190 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17191 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17192 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17193 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17194 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17195 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17196 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17197 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17198 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17199 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17200 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17201 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17202 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17203 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17204 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17205 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17206 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17207 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17208 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17209 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17210 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17211 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17212 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17213 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17214 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17215 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17218 LTCFLAGS='$LTCFLAGS'
17219 compiler='$compiler_DEFAULT'
17221 # A function that is used when there is no print builtin or printf.
17222 func_fallback_echo ()
17224 eval 'cat <<_LTECHO_EOF
17229 # Quote evaled strings.
17243 deplibs_check_method \
17252 lt_cv_sys_global_symbol_pipe \
17253 lt_cv_sys_global_symbol_to_cdecl \
17254 lt_cv_sys_global_symbol_to_c_name_address \
17255 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17256 lt_prog_compiler_no_builtin_flag \
17257 lt_prog_compiler_wl \
17258 lt_prog_compiler_pic \
17259 lt_prog_compiler_static \
17260 lt_cv_prog_compiler_c_o \
17268 export_dynamic_flag_spec \
17269 whole_archive_flag_spec \
17270 compiler_needs_object \
17272 allow_undefined_flag \
17273 no_undefined_flag \
17274 hardcode_libdir_flag_spec \
17275 hardcode_libdir_flag_spec_ld \
17276 hardcode_libdir_separator \
17281 variables_saved_for_relink \
17283 library_names_spec \
17285 install_override_mode \
17289 compiler_lib_search_dirs \
17294 compiler_lib_search_path \
17298 lt_prog_compiler_no_builtin_flag_FC \
17299 lt_prog_compiler_wl_FC \
17300 lt_prog_compiler_pic_FC \
17301 lt_prog_compiler_static_FC \
17302 lt_cv_prog_compiler_c_o_FC \
17303 export_dynamic_flag_spec_FC \
17304 whole_archive_flag_spec_FC \
17305 compiler_needs_object_FC \
17307 allow_undefined_flag_FC \
17308 no_undefined_flag_FC \
17309 hardcode_libdir_flag_spec_FC \
17310 hardcode_libdir_flag_spec_ld_FC \
17311 hardcode_libdir_separator_FC \
17312 fix_srcfile_path_FC \
17313 exclude_expsyms_FC \
17314 include_expsyms_FC \
17315 file_list_spec_FC \
17316 compiler_lib_search_dirs_FC \
17317 predep_objects_FC \
17318 postdep_objects_FC \
17321 compiler_lib_search_path_FC; do
17322 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17323 *[\\\\\\\`\\"\\\$]*)
17324 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17327 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17332 # Double-quote double-evaled strings.
17333 for var in reload_cmds \
17334 old_postinstall_cmds \
17335 old_postuninstall_cmds \
17337 extract_expsyms_cmds \
17338 old_archive_from_new_cmds \
17339 old_archive_from_expsyms_cmds \
17341 archive_expsym_cmds \
17343 module_expsym_cmds \
17344 export_symbols_cmds \
17347 postuninstall_cmds \
17349 sys_lib_search_path_spec \
17350 sys_lib_dlsearch_path_spec \
17352 old_archive_cmds_FC \
17353 old_archive_from_new_cmds_FC \
17354 old_archive_from_expsyms_cmds_FC \
17356 archive_expsym_cmds_FC \
17358 module_expsym_cmds_FC \
17359 export_symbols_cmds_FC \
17360 prelink_cmds_FC; do
17361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17362 *[\\\\\\\`\\"\\\$]*)
17363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17371 ac_aux_dir='$ac_aux_dir'
17372 xsi_shell='$xsi_shell'
17373 lt_shell_append='$lt_shell_append'
17375 # See if we are running on zsh, and set the options which allow our
17376 # commands through without removal of \ escapes INIT.
17377 if test -n "\${ZSH_VERSION+set}" ; then
17378 setopt NO_GLOB_SUBST
17384 TIMESTAMP='$TIMESTAMP'
17395 acx_cv_header_stdint="$acx_cv_header_stdint"
17396 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17397 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17398 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17399 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17400 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17401 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17402 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17403 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17404 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17405 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17406 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17407 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17408 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17415 # Handling of arguments.
17416 for ac_config_target
in $ac_config_targets
17418 case $ac_config_target in
17419 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17420 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17421 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17422 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17423 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
17424 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
17425 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
17426 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
17427 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
17428 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17429 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17430 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
17431 "testsuite/gompconfig.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/gompconfig.exp" ;;
17433 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17438 # If the user did not use the arguments to specify the items to instantiate,
17439 # then the envvar interface is used. Set only those that are not.
17440 # We use the long form for the default assignment because of an extremely
17441 # bizarre bug on SunOS 4.1.3.
17442 if $ac_need_defaults; then
17443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17448 # Have a temporary directory for convenience. Make it in the build tree
17449 # simply because there is no reason against having it here, and in addition,
17450 # creating and moving files from /tmp can sometimes cause problems.
17451 # Hook for its removal unless debugging.
17452 # Note that there is a small window in which the directory will not be cleaned:
17453 # after its creation but before its name has been assigned to `$tmp'.
17457 trap 'exit_status=$?
17458 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17460 trap 'as_fn_exit 1' 1 2 13 15
17462 # Create a (secure) tmp directory for tmp files.
17465 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17466 test -n "$tmp" && test -d "$tmp"
17469 tmp
=.
/conf$$
-$RANDOM
17470 (umask 077 && mkdir
"$tmp")
17471 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17473 # Set up the scripts for CONFIG_FILES section.
17474 # No need to generate them if there are no CONFIG_FILES.
17475 # This happens for instance with `./config.status config.h'.
17476 if test -n "$CONFIG_FILES"; then
17479 ac_cr
=`echo X | tr X '\015'`
17480 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17481 # But we know of no other shell where ac_cr would be empty at this
17482 # point, so we can use a bashism as a fallback.
17483 if test "x$ac_cr" = x
; then
17484 eval ac_cr
=\$
\'\\r
\'
17486 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17487 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17490 ac_cs_awk_cr
=$ac_cr
17493 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17498 echo "cat >conf$$subs.awk <<_ACEOF" &&
17499 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17501 } >conf$$subs.sh ||
17502 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17503 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17505 for ac_last_try in false false false false false :; do
17506 . ./conf$$subs.sh ||
17507 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17509 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17510 if test $ac_delim_n = $ac_delim_num; then
17512 elif $ac_last_try; then
17513 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17515 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17518 rm -f conf$$subs.sh
17520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17521 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17525 s/^/S["/; s
/!.
*/"]=/
17535 s/\(.\{148\}\).*/\1/
17537 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17542 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17549 s/\(.\{148\}\).*/\1/
17551 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17555 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17560 ' <conf$$subs.awk | sed '
17565 ' >>$CONFIG_STATUS || ac_write_fail=1
17566 rm -f conf$$subs.awk
17567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17570 for (key in S) S_is_set[key] = 1
17576 nfields = split(line, field, "@
")
17578 len = length(field[1])
17579 for (i = 2; i < nfields; i++) {
17581 keylen = length(key)
17582 if (S_is_set[key]) {
17584 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17585 len += length(value) + length(field[++i])
17596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17597 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17598 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17601 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17602 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17607 # trailing colons and then remove the whole line if VPATH becomes empty
17608 # (actually we leave an empty line to preserve line numbers).
17609 if test "x
$srcdir" = x.; then
17610 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17611 s/:*\$(srcdir):*/:/
17612 s/:*\${srcdir}:*/:/
17614 s/^\([^=]*=[ ]*\):*/\1/
17620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17621 fi # test -n "$CONFIG_FILES"
17623 # Set up the scripts for CONFIG_HEADERS section.
17624 # No need to generate them if there are no CONFIG_HEADERS.
17625 # This happens for instance with `./config.status Makefile'.
17626 if test -n "$CONFIG_HEADERS"; then
17627 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17631 # Transform confdefs.h into an awk script `defines.awk', embedded as
17632 # here-document in config.status, that substitutes the proper values into
17633 # config.h.in to produce config.h.
17635 # Create a delimiter string that does not exist in confdefs.h, to ease
17636 # handling of long lines.
17638 for ac_last_try in false false :; do
17639 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17640 if test -z "$ac_t"; then
17642 elif $ac_last_try; then
17643 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17645 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17649 # For the awk script, D is an array of macro values keyed by name,
17650 # likewise P contains macro parameters if any. Preserve backslash
17651 # newline sequences.
17653 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17655 s/.\{148\}/&'"$ac_delim"'/g
17658 s/^[ ]*#[ ]*define[ ][ ]*/ /
17665 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17667 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17672 D["\
1"]=" \
3\\\\\\n
"\\/p
17674 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17679 s/.\{148\}/&'"$ac_delim"'/g
17684 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17687 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17689 ' <confdefs.h | sed '
17690 s/'"$ac_delim"'/"\\\
17691 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17694 for (key in D) D_is_set[key] = 1
17697 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17699 split(line, arg, " ")
17700 if (arg[1] == "#") {
17704 defundef
= substr
(arg
[1], 2)
17707 split(mac1
, mac2
, "(") #)
17709 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17710 if (D_is_set
[macro
]) {
17711 # Preserve the white space surrounding the "#".
17712 print prefix
"define", macro P
[macro
] D
[macro
]
17715 # Replace #undef with comments. This is necessary, for example,
17716 # in the case of _POSIX_SOURCE, which is predefined and required
17717 # on some systems where configure will not decide to define it.
17718 if (defundef
== "undef") {
17719 print
"/*", prefix defundef
, macro
, "*/"
17727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17728 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17729 fi # test -n "$CONFIG_HEADERS"
17732 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17737 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17739 case $ac_mode$ac_tag in
17741 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17742 :[FH
]-) ac_tag
=-:-;;
17743 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17760 -) ac_f
="$tmp/stdin";;
17761 *) # Look for the file first in the build tree, then in the source tree
17762 # (if the path is not absolute). The absolute path cannot be DOS-style,
17763 # because $ac_f cannot contain `:'.
17767 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17769 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17771 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17772 as_fn_append ac_file_inputs
" '$ac_f'"
17775 # Let's still pretend it is `configure' which instantiates (i.e., don't
17776 # use $as_me), people would be surprised to read:
17777 # /* config.h. Generated by config.status. */
17778 configure_input
='Generated from '`
17779 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17781 if test x
"$ac_file" != x-
; then
17782 configure_input
="$ac_file. $configure_input"
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17784 $as_echo "$as_me: creating $ac_file" >&6;}
17786 # Neutralize special characters interpreted by sed in replacement strings.
17787 case $configure_input in #(
17788 *\
&* |
*\|
* |
*\\* )
17789 ac_sed_conf_input
=`$as_echo "$configure_input" |
17790 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17791 *) ac_sed_conf_input
=$configure_input;;
17795 *:-:* |
*:-) cat >"$tmp/stdin" \
17796 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17801 ac_dir
=`$as_dirname -- "$ac_file" ||
17802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17803 X"$ac_file" : 'X\(//\)[^/]' \| \
17804 X"$ac_file" : 'X\(//\)$' \| \
17805 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17806 $as_echo X"$ac_file" |
17807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17811 /^X\(\/\/\)[^/].*/{
17824 as_dir
="$ac_dir"; as_fn_mkdir_p
17828 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17830 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17831 # A ".." for each directory in $ac_dir_suffix.
17832 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17833 case $ac_top_builddir_sub in
17834 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17835 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17838 ac_abs_top_builddir
=$ac_pwd
17839 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17840 # for backward compatibility:
17841 ac_top_builddir
=$ac_top_build_prefix
17844 .
) # We are building in place.
17846 ac_top_srcdir
=$ac_top_builddir_sub
17847 ac_abs_top_srcdir
=$ac_pwd ;;
17848 [\\/]* | ?
:[\\/]* ) # Absolute name.
17849 ac_srcdir
=$srcdir$ac_dir_suffix;
17850 ac_top_srcdir
=$srcdir
17851 ac_abs_top_srcdir
=$srcdir ;;
17852 *) # Relative name.
17853 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17854 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17855 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17857 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17867 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17868 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17870 ac_MKDIR_P
=$MKDIR_P
17872 [\\/$
]* | ?
:[\\/]* ) ;;
17873 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17878 # If the template does not know about datarootdir, expand it.
17879 # FIXME: This hack should be removed a few years after 2.60.
17880 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17891 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17892 *datarootdir
*) ac_datarootdir_seen
=yes;;
17893 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17895 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17898 ac_datarootdir_hack='
17899 s&@datadir@&$datadir&g
17900 s&@docdir@&$docdir&g
17901 s&@infodir@&$infodir&g
17902 s&@localedir@&$localedir&g
17903 s&@mandir@&$mandir&g
17904 s&\\\${datarootdir}&$datarootdir&g' ;;
17908 # Neutralize VPATH when `$srcdir' = `.'.
17909 # Shell code in configure.ac might set extrasub.
17910 # FIXME: do we really want to maintain this feature?
17911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17912 ac_sed_extra="$ac_vpsub
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17917 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17918 s|@configure_input@|
$ac_sed_conf_input|
;t t
17919 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17920 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17921 s
&@srcdir@
&$ac_srcdir&;t t
17922 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17923 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17924 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17925 s
&@builddir@
&$ac_builddir&;t t
17926 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17927 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17928 s
&@INSTALL@
&$ac_INSTALL&;t t
17929 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17930 $ac_datarootdir_hack
17932 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17933 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17935 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17936 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17937 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17939 which seems to be undefined. Please make sure it is defined." >&5
17940 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17941 which seems to be undefined. Please make sure it is defined." >&2;}
17945 -) cat "$tmp/out" && rm -f "$tmp/out";;
17946 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17948 || as_fn_error "could not create $ac_file" "$LINENO" 5
17954 if test x"$ac_file" != x-; then
17956 $as_echo "/* $configure_input */" \
17957 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17958 } >"$tmp/config.h" \
17959 || as_fn_error "could not create $ac_file" "$LINENO" 5
17960 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17962 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17965 mv "$tmp/config.h" "$ac_file" \
17966 || as_fn_error "could not create $ac_file" "$LINENO" 5
17969 $as_echo "/* $configure_input */" \
17970 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17971 || as_fn_error "could not create -" "$LINENO" 5
17973 # Compute "$ac_file"'s index
in $config_headers.
17976 for _am_header
in $config_headers :; do
17977 case $_am_header in
17978 $_am_arg |
$_am_arg:* )
17981 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17984 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17985 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17986 X"$_am_arg" : 'X\(//\)[^/]' \| \
17987 X"$_am_arg" : 'X\(//\)$' \| \
17988 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17989 $as_echo X"$_am_arg" |
17990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17994 /^X\(\/\/\)[^/].*/{
18006 s/.*/./; q'`/stamp-h
$_am_stamp_count
18009 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18010 $as_echo "$as_me: executing $ac_file commands" >&6;}
18015 case $ac_file$ac_mode in
18017 # Only add multilib support code if we just rebuilt the top-level
18019 case " $CONFIG_FILES " in
18021 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18024 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18025 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18026 # are listed without --file. Let's play safe and only enable the eval
18027 # if we detect the quoting.
18028 case $CONFIG_FILES in
18029 *\'*) eval set x
"$CONFIG_FILES" ;;
18030 *) set x
$CONFIG_FILES ;;
18035 # Strip MF so we end up with the name of the file.
18036 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18037 # Check whether this is an Automake generated Makefile or not.
18038 # We used to match only the files named `Makefile.in', but
18039 # some people rename them; so instead we look at the file content.
18040 # Grep'ing the first line is not enough: some people post-process
18041 # each Makefile.in and add a new line on top of each file to say so.
18042 # Grep'ing the whole file is not good either: AIX grep has a line
18043 # limit of 2048, but all sed's we know have understand at least 4000.
18044 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18045 dirpart
=`$as_dirname -- "$mf" ||
18046 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18047 X"$mf" : 'X\(//\)[^/]' \| \
18048 X"$mf" : 'X\(//\)$' \| \
18049 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18055 /^X\(\/\/\)[^/].*/{
18071 # Extract the definition of DEPDIR, am__include, and am__quote
18072 # from the Makefile without running `make'.
18073 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18074 test -z "$DEPDIR" && continue
18075 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18076 test -z "am__include" && continue
18077 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18078 # When using ansi2knr, U may be empty or an underscore; expand it
18079 U
=`sed -n 's/^U = //p' < "$mf"`
18080 # Find all dependency output files, they are included files with
18081 # $(DEPDIR) in their names. We invoke sed twice because it is the
18082 # simplest approach to changing $(DEPDIR) to its actual value in the
18084 for file in `sed -n "
18085 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18086 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18087 # Make sure the directory exists.
18088 test -f "$dirpart/$file" && continue
18089 fdir
=`$as_dirname -- "$file" ||
18090 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18091 X"$file" : 'X\(//\)[^/]' \| \
18092 X"$file" : 'X\(//\)$' \| \
18093 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18094 $as_echo X"$file" |
18095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18099 /^X\(\/\/\)[^/].*/{
18112 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18113 # echo "creating $dirpart/$file"
18114 echo '# dummy' > "$dirpart/$file"
18121 # See if we are running on zsh, and set the options which allow our
18122 # commands through without removal of \ escapes.
18123 if test -n "${ZSH_VERSION+set}" ; then
18124 setopt NO_GLOB_SUBST
18127 cfgfile
="${ofile}T"
18128 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18131 cat <<_LT_EOF >> "$cfgfile"
18134 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18135 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18140 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18141 # Written by Gordon Matzigkeit, 1996
18143 # This file is part of GNU Libtool.
18145 # GNU Libtool is free software; you can redistribute it and/or
18146 # modify it under the terms of the GNU General Public License as
18147 # published by the Free Software Foundation; either version 2 of
18148 # the License, or (at your option) any later version.
18150 # As a special exception to the GNU General Public License,
18151 # if you distribute this file as part of a program or library that
18152 # is built using GNU Libtool, you may include this file under the
18153 # same distribution terms that you use for the rest of that program.
18155 # GNU Libtool is distributed in the hope that it will be useful,
18156 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18157 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18158 # GNU General Public License for more details.
18160 # You should have received a copy of the GNU General Public License
18161 # along with GNU Libtool; see the file COPYING. If not, a copy
18162 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18163 # obtained by writing to the Free Software Foundation, Inc.,
18164 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18167 # The names of the tagged configurations supported by this script.
18168 available_tags="FC "
18170 # ### BEGIN LIBTOOL CONFIG
18172 # Which release of libtool.m4 was used?
18173 macro_version=$macro_version
18174 macro_revision=$macro_revision
18176 # Whether or not to build shared libraries.
18177 build_libtool_libs=$enable_shared
18179 # Whether or not to build static libraries.
18180 build_old_libs=$enable_static
18182 # What type of objects to build.
18185 # Whether or not to optimize for fast installation.
18186 fast_install=$enable_fast_install
18188 # Shell to use when invoking shell scripts.
18191 # An echo program that protects backslashes.
18195 host_alias=$host_alias
18199 # The build system.
18200 build_alias=$build_alias
18204 # A sed program that does not truncate output.
18207 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18208 Xsed="\$SED -e 1s/^X//"
18210 # A grep program that handles long lines.
18216 # A literal string matcher.
18219 # A BSD- or MS-compatible name lister.
18222 # Whether we need soft or hard links.
18225 # What is the maximum length of a command?
18226 max_cmd_len=$max_cmd_len
18228 # Object file suffix (normally "o").
18231 # Executable file suffix (normally "").
18234 # whether the shell understands "unset".
18237 # turn spaces into newlines.
18240 # turn newlines into spaces.
18243 # An object symbol dumper.
18244 OBJDUMP=$lt_OBJDUMP
18246 # Method to check whether dependent libraries are shared objects.
18247 deplibs_check_method=$lt_deplibs_check_method
18249 # Command to use when deplibs_check_method == "file_magic".
18250 file_magic_cmd=$lt_file_magic_cmd
18254 AR_FLAGS=$lt_AR_FLAGS
18256 # A symbol stripping program.
18259 # Commands used to install an old-style archive.
18261 old_postinstall_cmds=$lt_old_postinstall_cmds
18262 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18264 # Whether to use a lock for old archive extraction.
18265 lock_old_archive_extraction=$lock_old_archive_extraction
18270 # LTCC compiler flags.
18271 LTCFLAGS=$lt_CFLAGS
18273 # Take the output of nm and produce a listing of raw symbols and C names.
18274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18276 # Transform the output of nm in a proper C declaration.
18277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18279 # Transform the output of nm in a C name address pair.
18280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18282 # Transform the output of nm in a C name address pair when lib prefix is needed.
18283 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18285 # The name of the directory that contains temporary libtool files.
18288 # Used to examine libraries when file_magic_cmd begins with "file".
18289 MAGIC_CMD=$MAGIC_CMD
18291 # Must we lock files when doing compilation?
18292 need_locks=$lt_need_locks
18294 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18295 DSYMUTIL=$lt_DSYMUTIL
18297 # Tool to change global to local symbols on Mac OS X.
18300 # Tool to manipulate fat objects and archives on Mac OS X.
18303 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18306 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18307 OTOOL64=$lt_OTOOL64
18309 # Old archive suffix (normally "a").
18312 # Shared library suffix (normally ".so").
18313 shrext_cmds=$lt_shrext_cmds
18315 # The commands to extract the exported symbol list from a shared archive.
18316 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18318 # Variables whose values should be saved in libtool wrapper scripts and
18319 # restored at link time.
18320 variables_saved_for_relink=$lt_variables_saved_for_relink
18322 # Do we need the "lib" prefix for modules?
18323 need_lib_prefix=$need_lib_prefix
18325 # Do we need a version for libraries?
18326 need_version=$need_version
18328 # Library versioning type.
18329 version_type=$version_type
18331 # Shared library runtime path variable.
18332 runpath_var=$runpath_var
18334 # Shared library path variable.
18335 shlibpath_var=$shlibpath_var
18337 # Is shlibpath searched before the hard-coded library search path?
18338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18340 # Format of library name prefix.
18341 libname_spec=$lt_libname_spec
18343 # List of archive names. First name is the real one, the rest are links.
18344 # The last name is the one that the linker finds with -lNAME
18345 library_names_spec=$lt_library_names_spec
18347 # The coded name of the library, if different from the real name.
18348 soname_spec=$lt_soname_spec
18350 # Permission mode override for installation of shared libraries.
18351 install_override_mode=$lt_install_override_mode
18353 # Command to use after installation of a shared archive.
18354 postinstall_cmds=$lt_postinstall_cmds
18356 # Command to use after uninstallation of a shared archive.
18357 postuninstall_cmds=$lt_postuninstall_cmds
18359 # Commands used to finish a libtool library installation in a directory.
18360 finish_cmds=$lt_finish_cmds
18362 # As "finish_cmds", except a single script fragment to be evaled but
18364 finish_eval=$lt_finish_eval
18366 # Whether we should hardcode library paths into libraries.
18367 hardcode_into_libs=$hardcode_into_libs
18369 # Compile-time system search path for libraries.
18370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18372 # Run-time system search path for libraries.
18373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18375 # Whether dlopen is supported.
18376 dlopen_support=$enable_dlopen
18378 # Whether dlopen of programs is supported.
18379 dlopen_self=$enable_dlopen_self
18381 # Whether dlopen of statically linked programs is supported.
18382 dlopen_self_static=$enable_dlopen_self_static
18384 # Commands to strip libraries.
18385 old_striplib=$lt_old_striplib
18386 striplib=$lt_striplib
18389 # The linker used to build libraries.
18392 # How to create reloadable object files.
18393 reload_flag=$lt_reload_flag
18394 reload_cmds=$lt_reload_cmds
18396 # Commands used to build an old-style archive.
18397 old_archive_cmds=$lt_old_archive_cmds
18399 # A language specific compiler.
18402 # Is the compiler the GNU compiler?
18405 # Compiler flag to turn off builtin functions.
18406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18408 # How to pass a linker flag through the compiler.
18409 wl=$lt_lt_prog_compiler_wl
18411 # Additional compiler flags for building library objects.
18412 pic_flag=$lt_lt_prog_compiler_pic
18414 # Compiler flag to prevent dynamic linking.
18415 link_static_flag=$lt_lt_prog_compiler_static
18417 # Does compiler simultaneously support -c and -o options?
18418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18420 # Whether or not to add -lc for building shared libraries.
18421 build_libtool_need_lc=$archive_cmds_need_lc
18423 # Whether or not to disallow shared libs when runtime libs are static.
18424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18426 # Compiler flag to allow reflexive dlopens.
18427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18429 # Compiler flag to generate shared objects directly from archives.
18430 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18432 # Whether the compiler copes with passing no objects directly.
18433 compiler_needs_object=$lt_compiler_needs_object
18435 # Create an old-style archive from a shared archive.
18436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18438 # Create a temporary old-style archive to link instead of a shared archive.
18439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18441 # Commands used to build a shared archive.
18442 archive_cmds=$lt_archive_cmds
18443 archive_expsym_cmds=$lt_archive_expsym_cmds
18445 # Commands used to build a loadable module if different from building
18446 # a shared archive.
18447 module_cmds=$lt_module_cmds
18448 module_expsym_cmds=$lt_module_expsym_cmds
18450 # Whether we are building with GNU ld or not.
18451 with_gnu_ld=$lt_with_gnu_ld
18453 # Flag that allows shared libraries with undefined symbols to be built.
18454 allow_undefined_flag=$lt_allow_undefined_flag
18456 # Flag that enforces no undefined symbols.
18457 no_undefined_flag=$lt_no_undefined_flag
18459 # Flag to hardcode \$libdir into a binary during linking.
18460 # This must work even if \$libdir does not exist
18461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18463 # If ld is used when linking, flag to hardcode \$libdir into a binary
18464 # during linking. This must work even if \$libdir does not exist.
18465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18467 # Whether we need a single "-rpath" flag with a separated argument.
18468 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18471 # DIR into the resulting binary.
18472 hardcode_direct=$hardcode_direct
18474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18475 # DIR into the resulting binary and the resulting library dependency is
18476 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18477 # library is relocated.
18478 hardcode_direct_absolute=$hardcode_direct_absolute
18480 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18481 # into the resulting binary.
18482 hardcode_minus_L=$hardcode_minus_L
18484 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18485 # into the resulting binary.
18486 hardcode_shlibpath_var=$hardcode_shlibpath_var
18488 # Set to "yes" if building a shared library automatically hardcodes DIR
18489 # into the library and all subsequent libraries and executables linked
18491 hardcode_automatic=$hardcode_automatic
18493 # Set to yes if linker adds runtime paths of dependent libraries
18494 # to runtime path list.
18495 inherit_rpath=$inherit_rpath
18497 # Whether libtool must link a program against all its dependency libraries.
18498 link_all_deplibs=$link_all_deplibs
18500 # Fix the shell variable \$srcfile for the compiler.
18501 fix_srcfile_path=$lt_fix_srcfile_path
18503 # Set to "yes" if exported symbols are required.
18504 always_export_symbols=$always_export_symbols
18506 # The commands to list exported symbols.
18507 export_symbols_cmds=$lt_export_symbols_cmds
18509 # Symbols that should not be listed in the preloaded symbols.
18510 exclude_expsyms=$lt_exclude_expsyms
18512 # Symbols that must always be exported.
18513 include_expsyms=$lt_include_expsyms
18515 # Commands necessary for linking programs (against libraries) with templates.
18516 prelink_cmds=$lt_prelink_cmds
18518 # Specify filename containing input files.
18519 file_list_spec=$lt_file_list_spec
18521 # How to hardcode a shared library path into an executable.
18522 hardcode_action=$hardcode_action
18524 # The directories searched by this compiler when creating a shared library.
18525 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18527 # Dependencies to place before and after the objects being linked to
18528 # create a shared library.
18529 predep_objects=$lt_predep_objects
18530 postdep_objects=$lt_postdep_objects
18531 predeps=$lt_predeps
18532 postdeps=$lt_postdeps
18534 # The library search path used internally by the compiler when linking
18535 # a shared library.
18536 compiler_lib_search_path=$lt_compiler_lib_search_path
18538 # ### END LIBTOOL CONFIG
18544 cat <<\_LT_EOF
>> "$cfgfile"
18545 # AIX sometimes has problems with the GCC collect2 program. For some
18546 # reason, if we set the COLLECT_NAMES environment variable, the problems
18547 # vanish in a puff of smoke.
18548 if test "X${COLLECT_NAMES+set}" != Xset
; then
18550 export COLLECT_NAMES
18557 ltmain
="$ac_aux_dir/ltmain.sh"
18560 # We use sed instead of cat because bash on DJGPP gets confused if
18561 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18562 # text mode, it properly converts lines to CR/LF. This bash problem
18563 # is reportedly fixed, but why not run on old versions too?
18564 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18565 ||
(rm -f "$cfgfile"; exit 1)
18569 cat << \_LT_EOF
>> "$cfgfile"
18571 # func_dirname file append nondir_replacement
18572 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18573 # otherwise set result to NONDIR_REPLACEMENT.
18577 */*) func_dirname_result
="${1%/*}${2}" ;;
18578 * ) func_dirname_result
="${3}" ;;
18582 # func_basename file
18585 func_basename_result
="${1##*/}"
18588 # func_dirname_and_basename file append nondir_replacement
18589 # perform func_basename and func_dirname in a single function
18591 # dirname: Compute the dirname of FILE. If nonempty,
18592 # add APPEND to the result, otherwise set result
18593 # to NONDIR_REPLACEMENT.
18594 # value returned in "$func_dirname_result"
18595 # basename: Compute filename of FILE.
18596 # value retuned in "$func_basename_result"
18597 # Implementation must be kept synchronized with func_dirname
18598 # and func_basename. For efficiency, we do not delegate to
18599 # those functions but instead duplicate the functionality here.
18600 func_dirname_and_basename
()
18603 */*) func_dirname_result
="${1%/*}${2}" ;;
18604 * ) func_dirname_result
="${3}" ;;
18606 func_basename_result
="${1##*/}"
18609 # func_stripname prefix suffix name
18610 # strip PREFIX and SUFFIX off of NAME.
18611 # PREFIX and SUFFIX must not contain globbing or regex special
18612 # characters, hashes, percent signs, but SUFFIX may contain a leading
18613 # dot (in which case that matches only a dot).
18616 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18617 # positional parameters, so assign one to ordinary parameter first.
18618 func_stripname_result
=${3}
18619 func_stripname_result
=${func_stripname_result#"${1}"}
18620 func_stripname_result
=${func_stripname_result%"${2}"}
18626 func_opt_split_opt
=${1%%=*}
18627 func_opt_split_arg
=${1#*=}
18634 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18635 *) func_lo2o_result
=${1} ;;
18639 # func_xform libobj-or-source
18642 func_xform_result
=${1%.*}.lo
18645 # func_arith arithmetic-term...
18648 func_arith_result
=$
(( $
* ))
18652 # STRING may not start with a hyphen.
18655 func_len_result
=${#1}
18660 *) # Bourne compatible functions.
18661 cat << \_LT_EOF
>> "$cfgfile"
18663 # func_dirname file append nondir_replacement
18664 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18665 # otherwise set result to NONDIR_REPLACEMENT.
18668 # Extract subdirectory from the argument.
18669 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18670 if test "X$func_dirname_result" = "X${1}"; then
18671 func_dirname_result
="${3}"
18673 func_dirname_result
="$func_dirname_result${2}"
18677 # func_basename file
18680 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18684 # func_stripname prefix suffix name
18685 # strip PREFIX and SUFFIX off of NAME.
18686 # PREFIX and SUFFIX must not contain globbing or regex special
18687 # characters, hashes, percent signs, but SUFFIX may contain a leading
18688 # dot (in which case that matches only a dot).
18689 # func_strip_suffix prefix name
18693 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18694 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18699 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18700 my_sed_long_arg
='1s/^-[^=]*=//'
18705 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18706 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18712 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18715 # func_xform libobj-or-source
18718 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18721 # func_arith arithmetic-term...
18724 func_arith_result
=`expr "$@"`
18728 # STRING may not start with a hyphen.
18731 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18737 case $lt_shell_append in
18739 cat << \_LT_EOF
>> "$cfgfile"
18741 # func_append var value
18742 # Append VALUE to the end of shell variable VAR.
18750 cat << \_LT_EOF
>> "$cfgfile"
18752 # func_append var value
18753 # Append VALUE to the end of shell variable VAR.
18764 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18765 ||
(rm -f "$cfgfile"; exit 1)
18767 mv -f "$cfgfile" "$ofile" ||
18768 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18772 cat <<_LT_EOF >> "$ofile"
18774 # ### BEGIN LIBTOOL TAG CONFIG: FC
18776 # The linker used to build libraries.
18779 # How to create reloadable object files.
18780 reload_flag=$lt_reload_flag_FC
18781 reload_cmds=$lt_reload_cmds_FC
18783 # Commands used to build an old-style archive.
18784 old_archive_cmds=$lt_old_archive_cmds_FC
18786 # A language specific compiler.
18789 # Is the compiler the GNU compiler?
18792 # Compiler flag to turn off builtin functions.
18793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18795 # How to pass a linker flag through the compiler.
18796 wl=$lt_lt_prog_compiler_wl_FC
18798 # Additional compiler flags for building library objects.
18799 pic_flag=$lt_lt_prog_compiler_pic_FC
18801 # Compiler flag to prevent dynamic linking.
18802 link_static_flag=$lt_lt_prog_compiler_static_FC
18804 # Does compiler simultaneously support -c and -o options?
18805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18807 # Whether or not to add -lc for building shared libraries.
18808 build_libtool_need_lc=$archive_cmds_need_lc_FC
18810 # Whether or not to disallow shared libs when runtime libs are static.
18811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18813 # Compiler flag to allow reflexive dlopens.
18814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18816 # Compiler flag to generate shared objects directly from archives.
18817 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18819 # Whether the compiler copes with passing no objects directly.
18820 compiler_needs_object=$lt_compiler_needs_object_FC
18822 # Create an old-style archive from a shared archive.
18823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18825 # Create a temporary old-style archive to link instead of a shared archive.
18826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18828 # Commands used to build a shared archive.
18829 archive_cmds=$lt_archive_cmds_FC
18830 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18832 # Commands used to build a loadable module if different from building
18833 # a shared archive.
18834 module_cmds=$lt_module_cmds_FC
18835 module_expsym_cmds=$lt_module_expsym_cmds_FC
18837 # Whether we are building with GNU ld or not.
18838 with_gnu_ld=$lt_with_gnu_ld_FC
18840 # Flag that allows shared libraries with undefined symbols to be built.
18841 allow_undefined_flag=$lt_allow_undefined_flag_FC
18843 # Flag that enforces no undefined symbols.
18844 no_undefined_flag=$lt_no_undefined_flag_FC
18846 # Flag to hardcode \$libdir into a binary during linking.
18847 # This must work even if \$libdir does not exist
18848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18850 # If ld is used when linking, flag to hardcode \$libdir into a binary
18851 # during linking. This must work even if \$libdir does not exist.
18852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18854 # Whether we need a single "-rpath" flag with a separated argument.
18855 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18858 # DIR into the resulting binary.
18859 hardcode_direct=$hardcode_direct_FC
18861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18862 # DIR into the resulting binary and the resulting library dependency is
18863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18864 # library is relocated.
18865 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18868 # into the resulting binary.
18869 hardcode_minus_L=$hardcode_minus_L_FC
18871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18872 # into the resulting binary.
18873 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18875 # Set to "yes" if building a shared library automatically hardcodes DIR
18876 # into the library and all subsequent libraries and executables linked
18878 hardcode_automatic=$hardcode_automatic_FC
18880 # Set to yes if linker adds runtime paths of dependent libraries
18881 # to runtime path list.
18882 inherit_rpath=$inherit_rpath_FC
18884 # Whether libtool must link a program against all its dependency libraries.
18885 link_all_deplibs=$link_all_deplibs_FC
18887 # Fix the shell variable \$srcfile for the compiler.
18888 fix_srcfile_path=$lt_fix_srcfile_path_FC
18890 # Set to "yes" if exported symbols are required.
18891 always_export_symbols=$always_export_symbols_FC
18893 # The commands to list exported symbols.
18894 export_symbols_cmds=$lt_export_symbols_cmds_FC
18896 # Symbols that should not be listed in the preloaded symbols.
18897 exclude_expsyms=$lt_exclude_expsyms_FC
18899 # Symbols that must always be exported.
18900 include_expsyms=$lt_include_expsyms_FC
18902 # Commands necessary for linking programs (against libraries) with templates.
18903 prelink_cmds=$lt_prelink_cmds_FC
18905 # Specify filename containing input files.
18906 file_list_spec=$lt_file_list_spec_FC
18908 # How to hardcode a shared library path into an executable.
18909 hardcode_action=$hardcode_action_FC
18911 # The directories searched by this compiler when creating a shared library.
18912 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18914 # Dependencies to place before and after the objects being linked to
18915 # create a shared library.
18916 predep_objects=$lt_predep_objects_FC
18917 postdep_objects=$lt_postdep_objects_FC
18918 predeps=$lt_predeps_FC
18919 postdeps=$lt_postdeps_FC
18921 # The library search path used internally by the compiler when linking
18922 # a shared library.
18923 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18925 # ### END LIBTOOL TAG CONFIG: FC
18930 if test "$GCC" = yes; then
18931 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18933 echo "/* generated for $CC */" > tmp-stdint.h
18936 sed 's/^ *//' >> tmp-stdint.h
<<EOF
18938 #ifndef GCC_GENERATED_STDINT_H
18939 #define GCC_GENERATED_STDINT_H 1
18941 #include <sys/types.h>
18944 if test "$acx_cv_header_stdint" != stdint.h
; then
18945 echo "#include <stddef.h>" >> tmp-stdint.h
18947 if test "$acx_cv_header_stdint" != stddef.h
; then
18948 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18951 sed 's/^ *//' >> tmp-stdint.h
<<EOF
18952 /* glibc uses these symbols as guards to prevent redefinitions. */
18953 #ifdef __int8_t_defined
18958 #ifdef __uint32_t_defined
18964 # ----------------- done header, emit basic int types -------------
18965 if test "$acx_cv_header_stdint" = stddef.h
; then
18966 sed 's/^ *//' >> tmp-stdint.h
<<EOF
18970 #ifndef __uint8_t_defined
18971 #define __uint8_t_defined
18973 typedef unsigned $acx_cv_type_int8_t uint8_t;
18980 #ifndef __uint16_t_defined
18981 #define __uint16_t_defined
18983 typedef unsigned $acx_cv_type_int16_t uint16_t;
18990 #ifndef __uint32_t_defined
18991 #define __uint32_t_defined
18993 typedef unsigned $acx_cv_type_int32_t uint32_t;
19000 #ifndef __int8_t_defined
19001 #define __int8_t_defined
19003 typedef $acx_cv_type_int8_t int8_t;
19010 #ifndef __int16_t_defined
19011 #define __int16_t_defined
19013 typedef $acx_cv_type_int16_t int16_t;
19020 #ifndef __int32_t_defined
19021 #define __int32_t_defined
19023 typedef $acx_cv_type_int32_t int32_t;
19028 elif test "$ac_cv_type_u_int32_t" = yes; then
19029 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19031 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19044 #ifndef __uint8_t_defined
19045 #define __uint8_t_defined
19047 typedef u_int8_t uint8_t;
19054 #ifndef __uint16_t_defined
19055 #define __uint16_t_defined
19057 typedef u_int16_t uint16_t;
19064 #ifndef __uint32_t_defined
19065 #define __uint32_t_defined
19067 typedef u_int32_t uint32_t;
19073 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19075 /* Some systems have guard macros to prevent redefinitions, define them. */
19097 # ------------- done basic int types, emit int64_t types ------------
19098 if test "$ac_cv_type_uint64_t" = yes; then
19099 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19101 /* system headers have good uint64_t and int64_t */
19109 elif test "$ac_cv_type_u_int64_t" = yes; then
19110 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19112 /* system headers have an u_int64_t (and int64_t) */
19118 #ifndef __uint64_t_defined
19119 #define __uint64_t_defined
19121 typedef u_int64_t uint64_t;
19126 elif test -n "$acx_cv_type_int64_t"; then
19127 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19129 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19133 typedef $acx_cv_type_int64_t int64_t;
19138 #ifndef __uint64_t_defined
19139 #define __uint64_t_defined
19141 typedef unsigned $acx_cv_type_int64_t uint64_t;
19147 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19149 /* some common heuristics for int64_t, using compiler-specific tests */
19150 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19153 #ifndef __int64_t_defined
19155 typedef long long int64_t;
19162 typedef unsigned long long uint64_t;
19166 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19167 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19168 does not implement __extension__. But that compiler doesn't define
19170 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19171 # define __extension__
19177 __extension__ typedef long long int64_t;
19183 __extension__ typedef unsigned long long uint64_t;
19187 #elif !defined __STRICT_ANSI__
19188 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19193 typedef __int64 int64_t;
19199 typedef unsigned __int64 uint64_t;
19202 # endif /* compiler */
19204 #endif /* ANSI version */
19208 # ------------- done int64_t types, emit intptr types ------------
19209 if test "$ac_cv_type_uintptr_t" != yes; then
19210 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19212 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19213 #ifndef __uintptr_t_defined
19215 typedef u$acx_cv_type_intptr_t uintptr_t;
19218 #ifndef __intptr_t_defined
19220 typedef $acx_cv_type_intptr_t intptr_t;
19226 # ------------- done intptr types, emit int_least types ------------
19227 if test "$ac_cv_type_int_least32_t" != yes; then
19228 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19230 /* Define int_least types */
19231 typedef int8_t int_least8_t;
19232 typedef int16_t int_least16_t;
19233 typedef int32_t int_least32_t;
19235 typedef int64_t int_least64_t;
19238 typedef uint8_t uint_least8_t;
19239 typedef uint16_t uint_least16_t;
19240 typedef uint32_t uint_least32_t;
19242 typedef uint64_t uint_least64_t;
19247 # ------------- done intptr types, emit int_fast types ------------
19248 if test "$ac_cv_type_int_fast32_t" != yes; then
19249 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19251 /* Define int_fast types. short is often slow */
19252 typedef int8_t int_fast8_t;
19253 typedef int int_fast16_t;
19254 typedef int32_t int_fast32_t;
19256 typedef int64_t int_fast64_t;
19259 typedef uint8_t uint_fast8_t;
19260 typedef unsigned int uint_fast16_t;
19261 typedef uint32_t uint_fast32_t;
19263 typedef uint64_t uint_fast64_t;
19268 if test "$ac_cv_type_uintmax_t" != yes; then
19269 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19271 /* Define intmax based on what we found */
19274 typedef int64_t intmax_t;
19276 typedef long intmax_t;
19281 typedef uint64_t uintmax_t;
19283 typedef unsigned long uintmax_t;
19289 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19291 #endif /* GCC_GENERATED_STDINT_H */
19294 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
19297 mv -f tmp-stdint.h gstdint.h
19308 ac_clean_files
=$ac_clean_files_save
19310 test $ac_write_fail = 0 ||
19311 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19314 # configure is writing to config.log, and then calls config.status.
19315 # config.status does its own redirection, appending to config.log.
19316 # Unfortunately, on DOS this fails, as config.log is still kept open
19317 # by configure, so config.status won't be able to write to it; its
19318 # output is simply discarded. So we exec the FD to /dev/null,
19319 # effectively closing config.log, so it can be properly (re)opened and
19320 # appended to by config.status. When coming back to configure, we
19321 # need to make the FD available again.
19322 if test "$no_create" != yes; then
19324 ac_config_status_args
=
19325 test "$silent" = yes &&
19326 ac_config_status_args
="$ac_config_status_args --quiet"
19328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19331 # would make configure fail if this is the last instruction.
19332 $ac_cs_success || as_fn_exit $?
19334 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19336 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}