2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing 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 Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME
='libgomp'
559 PACKAGE_VERSION
='1.0'
560 PACKAGE_STRING
='GNU Offloading and Multi Processing 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>
602 ac_subst_vars
='am__EXEEXT_FALSE
606 OMP_NEST_LOCK_25_KIND
608 OMP_NEST_LOCK_25_ALIGN
609 OMP_NEST_LOCK_25_SIZE
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
636 offload_additional_lib_paths
637 offload_additional_options
646 PLUGIN_NVPTX_CPPFLAGS
656 MAINTAINER_MODE_FALSE
711 INSTALL_STRIP_PROGRAM
767 program_transform_name
780 enable_option_checking
781 enable_version_specific_runtime_libs
782 enable_generated_files_in_srcdir
784 enable_dependency_tracking
791 enable_maintainer_mode
793 with_cuda_driver_include
796 with_hsa_runtime_include
802 ac_precious_vars
='build_alias
813 # Initialize some variables set by options.
815 ac_init_version
=false
816 ac_unrecognized_opts
=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
827 program_transform_name
=s
,x
,x
,
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir
='${exec_prefix}/bin'
842 sbindir
='${exec_prefix}/sbin'
843 libexecdir
='${exec_prefix}/libexec'
844 datarootdir
='${prefix}/share'
845 datadir
='${datarootdir}'
846 sysconfdir
='${prefix}/etc'
847 sharedstatedir
='${prefix}/com'
848 localstatedir
='${prefix}/var'
849 includedir
='${prefix}/include'
850 oldincludedir
='/usr/include'
851 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir
='${datarootdir}/info'
857 libdir
='${exec_prefix}/lib'
858 localedir
='${datarootdir}/locale'
859 mandir
='${datarootdir}/man'
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\
$ac_option
873 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
883 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
885 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
888 -build |
--build |
--buil |
--bui |
--bu)
889 ac_prev
=build_alias
;;
890 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
891 build_alias
=$ac_optarg ;;
893 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
894 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
895 ac_prev
=cache_file
;;
896 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
897 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
898 cache_file
=$ac_optarg ;;
901 cache_file
=config.cache
;;
903 -datadir |
--datadir |
--datadi |
--datad)
905 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
906 datadir
=$ac_optarg ;;
908 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
909 |
--dataroo |
--dataro |
--datar)
910 ac_prev
=datarootdir
;;
911 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
912 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
913 datarootdir
=$ac_optarg ;;
915 -disable-* |
--disable-*)
916 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
927 ac_unrecognized_sep
=', ';;
929 eval enable_
$ac_useropt=no
;;
931 -docdir |
--docdir |
--docdi |
--doc |
--do)
933 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
936 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
938 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
941 -enable-* |
--enable-*)
942 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
945 as_fn_error
"invalid feature name: $ac_useropt"
946 ac_useropt_orig
=$ac_useropt
947 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep
=', ';;
955 eval enable_
$ac_useropt=\
$ac_optarg ;;
957 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
958 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
959 |
--exec |
--exe |
--ex)
960 ac_prev
=exec_prefix
;;
961 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
962 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
963 |
--exec=* |
--exe=* |
--ex=*)
964 exec_prefix
=$ac_optarg ;;
966 -gas |
--gas |
--ga |
--g)
967 # Obsolete; use --with-gas.
970 -help |
--help |
--hel |
--he |
-h)
972 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
973 ac_init_help
=recursive
;;
974 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
975 ac_init_help
=short
;;
977 -host |
--host |
--hos |
--ho)
978 ac_prev
=host_alias
;;
979 -host=* |
--host=* |
--hos=* |
--ho=*)
980 host_alias
=$ac_optarg ;;
982 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
984 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
986 htmldir
=$ac_optarg ;;
988 -includedir |
--includedir |
--includedi |
--included |
--include \
989 |
--includ |
--inclu |
--incl |
--inc)
990 ac_prev
=includedir
;;
991 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
992 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
993 includedir
=$ac_optarg ;;
995 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
997 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
998 infodir
=$ac_optarg ;;
1000 -libdir |
--libdir |
--libdi |
--libd)
1002 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1003 libdir
=$ac_optarg ;;
1005 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1006 |
--libexe |
--libex |
--libe)
1007 ac_prev
=libexecdir
;;
1008 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1009 |
--libexe=* |
--libex=* |
--libe=*)
1010 libexecdir
=$ac_optarg ;;
1012 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1013 ac_prev
=localedir
;;
1014 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1015 localedir
=$ac_optarg ;;
1017 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1018 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1019 ac_prev
=localstatedir
;;
1020 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1021 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1022 localstatedir
=$ac_optarg ;;
1024 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1026 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1027 mandir
=$ac_optarg ;;
1029 -nfp |
--nfp |
--nf)
1030 # Obsolete; use --without-fp.
1033 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1034 |
--no-cr |
--no-c |
-n)
1037 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1038 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1041 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1042 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1043 |
--oldin |
--oldi |
--old |
--ol |
--o)
1044 ac_prev
=oldincludedir
;;
1045 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1046 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1047 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1048 oldincludedir
=$ac_optarg ;;
1050 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1052 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1053 prefix
=$ac_optarg ;;
1055 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1056 |
--program-pre |
--program-pr |
--program-p)
1057 ac_prev
=program_prefix
;;
1058 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1059 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1060 program_prefix
=$ac_optarg ;;
1062 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1063 |
--program-suf |
--program-su |
--program-s)
1064 ac_prev
=program_suffix
;;
1065 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1066 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1067 program_suffix
=$ac_optarg ;;
1069 -program-transform-name |
--program-transform-name \
1070 |
--program-transform-nam |
--program-transform-na \
1071 |
--program-transform-n |
--program-transform- \
1072 |
--program-transform |
--program-transfor \
1073 |
--program-transfo |
--program-transf \
1074 |
--program-trans |
--program-tran \
1075 |
--progr-tra |
--program-tr |
--program-t)
1076 ac_prev
=program_transform_name
;;
1077 -program-transform-name=* |
--program-transform-name=* \
1078 |
--program-transform-nam=* |
--program-transform-na=* \
1079 |
--program-transform-n=* |
--program-transform-=* \
1080 |
--program-transform=* |
--program-transfor=* \
1081 |
--program-transfo=* |
--program-transf=* \
1082 |
--program-trans=* |
--program-tran=* \
1083 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1084 program_transform_name
=$ac_optarg ;;
1086 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1088 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1089 pdfdir
=$ac_optarg ;;
1091 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1093 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1096 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1097 |
-silent |
--silent |
--silen |
--sile |
--sil)
1100 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1102 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1104 sbindir
=$ac_optarg ;;
1106 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1107 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1108 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1110 ac_prev
=sharedstatedir
;;
1111 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1112 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1113 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1115 sharedstatedir
=$ac_optarg ;;
1117 -site |
--site |
--sit)
1119 -site=* |
--site=* |
--sit=*)
1122 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1124 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1125 srcdir
=$ac_optarg ;;
1127 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1128 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1129 ac_prev
=sysconfdir
;;
1130 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1131 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1132 sysconfdir
=$ac_optarg ;;
1134 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1135 ac_prev
=target_alias
;;
1136 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1137 target_alias
=$ac_optarg ;;
1139 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1142 -version |
--version |
--versio |
--versi |
--vers |
-V)
1143 ac_init_version
=: ;;
1146 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1149 as_fn_error
"invalid package name: $ac_useropt"
1150 ac_useropt_orig
=$ac_useropt
1151 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep
=', ';;
1159 eval with_
$ac_useropt=\
$ac_optarg ;;
1161 -without-* |
--without-*)
1162 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1165 as_fn_error
"invalid package name: $ac_useropt"
1166 ac_useropt_orig
=$ac_useropt
1167 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep
=', ';;
1175 eval with_
$ac_useropt=no
;;
1178 # Obsolete; use --with-x.
1181 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1182 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1183 ac_prev
=x_includes
;;
1184 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1185 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1186 x_includes
=$ac_optarg ;;
1188 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1189 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1190 ac_prev
=x_libraries
;;
1191 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1192 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1193 x_libraries
=$ac_optarg ;;
1195 -*) as_fn_error
"unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information."
1200 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1204 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1206 eval $ac_envvar=\
$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220 if test -n "$ac_prev"; then
1221 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error
"missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1228 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 # Check all directory arguments for consistency.
1234 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val
=\$
$ac_var
1240 # Remove trailing slashes.
1243 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\
$ac_val;;
1246 # Be sure to have absolute directory names.
1248 [\\/$
]* | ?
:[\\/]* ) continue;;
1249 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1251 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1259 target
=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x
; then
1263 if test "x$build_alias" = x
; then
1264 cross_compiling
=maybe
1265 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used." >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1273 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1275 test "$silent" = yes && exec 6>/dev
/null
1278 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di
=`ls -di .` &&
1280 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error
"working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error
"pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted
=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir
=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted
=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1322 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1336 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 for ac_var
in $ac_precious_vars; do
1339 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1341 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1352 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1415 --build=BUILD configure
for building on BUILD
[guessed
]
1416 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1417 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1428 --disable-option-checking ignore unrecognized
--enable/--with options
1429 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1430 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1431 --enable-version-specific-runtime-libs
1432 Specify that runtime libraries should be installed
1433 in a compiler-specific directory
[default
=no
]
1434 --enable-generated-files-in-srcdir
1435 put copies of generated files
in source dir intended
1436 for creating
source tarballs
for users without
1437 texinfo bison or flex.
[default
=no
]
1438 --enable-multilib build many library versions
(default
)
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1442 --enable-static[=PKGS
] build static libraries
[default
=yes]
1443 --enable-fast-install[=PKGS
]
1444 optimize
for fast installation
[default
=yes]
1445 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing
) to the casual installer
1448 --enable-linux-futex use the Linux futex system call
[default
=default
]
1449 --enable-tls Use thread-local storage
[default
=yes]
1450 --enable-symvers=STYLE enables symbol versioning of the shared library
1454 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1455 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1456 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1458 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1459 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1460 package. Equivalent to
1461 --with-cuda-driver-include=PATH
/include plus
1462 --with-cuda-driver-lib=PATH
/lib
1463 --with-cuda-driver-include=PATH
1464 specify directory
for installed CUDA driver include
1466 --with-cuda-driver-lib=PATH
1467 specify directory
for the installed CUDA driver
1469 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1470 package. Equivalent to
1471 --with-hsa-runtime-include=PATH
/include plus
1472 --with-hsa-runtime-lib=PATH
/lib
1473 --with-hsa-runtime-include=PATH
1474 specify directory
for installed HSA run-time include
1476 --with-hsa-runtime-lib=PATH
1477 specify directory
for the installed HSA run-time
1480 Some influential environment variables
:
1481 CC C compiler
command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1484 nonstandard directory
<lib dir
>
1485 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1486 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1487 you have headers
in a nonstandard directory
<include dir
>
1489 FC Fortran compiler
command
1490 FCFLAGS Fortran compiler flags
1492 Use these variables to override the choices made by
`configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to the package provider.
1496 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1497 General help using GNU software: <http://www.gnu.org/gethelp/>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1527 .) # We are building in place.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1560 GNU Offloading and Multi Processing Runtime Library configure 1.0
1561 generated by GNU Autoconf 2.64
1563 Copyright (C) 2009 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1584 *) ac_try_echo
=$ac_try;;
1586 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1590 if test -s conftest.err
; then
1591 grep -v '^ *+' conftest.err
>conftest.er1
1592 cat conftest.er1
>&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.
$ac_objext; then :
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.
$ac_ext >&5
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1610 } # ac_fn_c_try_compile
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1618 rm -f conftest.
$ac_objext conftest
$ac_exeext
1619 if { { ac_try
="$ac_link"
1621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 $as_test_x conftest$ac_exeext
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 } # ac_fn_c_try_link
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 $as_echo_n "(cached) " >&6
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1698 *) ac_try_echo
=$ac_try;;
1700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 if test -s conftest.err
; then
1705 grep -v '^ *+' conftest.err
>conftest.er1
1706 cat conftest.er1
>&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } >/dev
/null
&& {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.
$ac_ext >&5
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1733 if { { ac_try
="$ac_link"
1735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1746 *) ac_try_echo
=$ac_try;;
1748 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.
$ac_ext >&5
1760 ac_retval
=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func
()
1773 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1791 # include <limits.h>
1793 # include <assert.h>
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1820 if ac_fn_c_try_link
"$LINENO"; then :
1825 rm -f core conftest.err conftest.
$ac_objext \
1826 conftest
$ac_exeext conftest.
$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1833 } # ac_fn_c_check_func
1835 # ac_fn_fc_try_compile LINENO
1836 # ---------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_fc_try_compile
()
1840 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1841 rm -f conftest.
$ac_objext
1842 if { { ac_try
="$ac_compile"
1844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_fc_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.$ac_objext; then :
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 } # ac_fn_fc_try_compile
1873 # ac_fn_fc_try_link LINENO
1874 # ------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_fc_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1883 *) ac_try_echo
=$ac_try;;
1885 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1889 if test -s conftest.err
; then
1890 grep -v '^ *+' conftest.err
>conftest.er1
1891 cat conftest.er1
>&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_fc_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest
$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 $as_test_x conftest
$ac_exeext
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.
$ac_ext >&5
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1917 } # ac_fn_fc_try_link
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel
()
1926 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1927 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile
"$LINENO"; then :
1946 ac_header_compiler
=yes
1948 ac_header_compiler
=no
1950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp
"$LINENO"; then :
1962 ac_header_preproc
=yes
1964 ac_header_preproc
=no
1966 rm -f conftest.err conftest.
$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type
()
2012 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2044 if ac_fn_c_try_compile
"$LINENO"; then :
2049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2058 } # ac_fn_c_check_type
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 ac_fn_c_compute_int
()
2067 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2083 if ac_fn_c_try_compile
"$LINENO"; then :
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 if ac_fn_c_try_compile
"$LINENO"; then :
2100 ac_hi
=$ac_mid; break
2102 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2103 if test $ac_lo -le $ac_mid; then
2107 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) < 0)];
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2142 ac_lo
=$ac_mid; break
2144 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2145 if test $ac_mid -le $ac_hi; then
2149 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2178 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2198 FILE *f = fopen ("conftest.val", "w");
2203 long int i = longval ();
2206 fprintf (f, "%ld", i);
2210 unsigned long int i = ulongval ();
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2223 if ac_fn_c_try_run
"$LINENO"; then :
2224 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2236 } # ac_fn_c_compute_int
2237 cat >config.log
<<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2241 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2242 generated by GNU Autoconf 2.64. Invocation command line was
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir
=.
2278 $as_echo "PATH: $as_dir"
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_must_keep_next
=false
2308 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2309 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2310 |
-silent |
--silent |
--silen |
--sile |
--sil)
2313 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2318 as_fn_append ac_configure_args1
" '$ac_arg'"
2319 if test $ac_must_keep_next = true
; then
2320 ac_must_keep_next
=false
# Got value, back to normal.
2323 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2324 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2325 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2326 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2327 case "$ac_configure_args0 " in
2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331 -* ) ac_must_keep_next
=true
;;
2334 as_fn_append ac_configure_args
" '$ac_arg'"
2339 { ac_configure_args0
=; unset ac_configure_args0
;}
2340 { ac_configure_args1
=; unset ac_configure_args1
;}
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log. We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348 # Save into config.log some information that might help in debugging.
2353 ## ---------------- ##
2354 ## Cache variables. ##
2355 ## ---------------- ##
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361 eval ac_val=\$$ac_var
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 ## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##
2396 for ac_var in $ac_subst_vars
2398 eval ac_val=\$$ac_var
2400 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 $as_echo "$ac_var='\''$ac_val'\''"
2406 if test -n "$ac_subst_files"; then
2408 ## ------------------- ##
2409 ## File substitutions. ##
2410 ## ------------------- ##
2413 for ac_var
in $ac_subst_files
2415 eval ac_val
=\$
$ac_var
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 $as_echo "$ac_var='\''$ac_val'\''"
2424 if test -s confdefs.h; then
2434 test "$ac_signal" != 0 &&
2435 $as_echo "$as_me: caught signal $ac_signal"
2436 $as_echo "$as_me: exit $exit_status"
2438 rm -f core *.core core.conftest.* &&
2439 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442 for ac_signal
in 1 2 13 15; do
2443 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2448 rm -f -r conftest
* confdefs.h
2450 $as_echo "/* confdefs.h */" > confdefs.h
2452 # Predefined preprocessor variables.
2454 cat >>confdefs.h
<<_ACEOF
2455 #define PACKAGE_NAME "$PACKAGE_NAME"
2458 cat >>confdefs.h
<<_ACEOF
2459 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462 cat >>confdefs.h
<<_ACEOF
2463 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2466 cat >>confdefs.h
<<_ACEOF
2467 #define PACKAGE_STRING "$PACKAGE_STRING"
2470 cat >>confdefs.h
<<_ACEOF
2471 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474 cat >>confdefs.h
<<_ACEOF
2475 #define PACKAGE_URL "$PACKAGE_URL"
2479 # Let the site file select an alternate cache file if it wants to.
2480 # Prefer an explicitly selected file to automatically selected ones.
2483 if test -n "$CONFIG_SITE"; then
2484 ac_site_file1
=$CONFIG_SITE
2485 elif test "x$prefix" != xNONE
; then
2486 ac_site_file1
=$prefix/share
/config.site
2487 ac_site_file2
=$prefix/etc
/config.site
2489 ac_site_file1
=$ac_default_prefix/share
/config.site
2490 ac_site_file2
=$ac_default_prefix/etc
/config.site
2492 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE
&& continue
2495 if test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2503 if test -r "$cache_file"; then
2504 # Some versions of bash will fail to source /dev/null (special
2505 # files actually), so we avoid doing that.
2506 if test -f "$cache_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2510 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2511 *) .
"./$cache_file";;
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 as_fn_append ac_header_list
" unistd.h"
2521 as_fn_append ac_func_list
" secure_getenv"
2522 as_fn_append ac_func_list
" __secure_getenv"
2523 as_fn_append ac_func_list
" getuid"
2524 as_fn_append ac_func_list
" geteuid"
2525 as_fn_append ac_func_list
" getgid"
2526 as_fn_append ac_func_list
" getegid"
2527 # Check that the precious variables saved in the cache have kept the same
2529 ac_cache_corrupted
=false
2530 for ac_var
in $ac_precious_vars; do
2531 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2532 eval ac_new_set
=\
$ac_env_${ac_var}_set
2533 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2534 eval ac_new_val
=\
$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2538 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted
=: ;;
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted
=: ;;
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w
=`echo x $ac_old_val`
2549 ac_new_val_w
=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2552 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted
=:
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2556 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\
$ac_old_val
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2560 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2562 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2568 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg
=$ac_var=$ac_new_val ;;
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2577 if $ac_cache_corrupted; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2584 ## -------------------- ##
2585 ## Main body of script. ##
2586 ## -------------------- ##
2589 ac_cpp
='$CPP $CPPFLAGS'
2590 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2598 ac_config_headers
="$ac_config_headers config.h"
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2606 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2607 # Check whether --enable-version-specific-runtime-libs was given.
2608 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2609 enableval
=$enable_version_specific_runtime_libs;
2610 case "$enableval" in
2612 *) as_fn_error
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2616 enable_version_specific_runtime_libs
=no
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2621 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2623 # We would like our source tree to be readonly. However when releases or
2624 # pre-releases are generated, the flex/bison generated files as well as the
2625 # various formats of manuals need to be included along with the rest of the
2626 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2629 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2630 # Check whether --enable-generated-files-in-srcdir was given.
2631 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2632 enableval
=$enable_generated_files_in_srcdir;
2633 case "$enableval" in
2635 *) as_fn_error
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2639 enable_generated_files_in_srcdir
=no
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2644 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2645 if test "$enable_generated_files_in_srcdir" = yes; then
2658 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2660 # You will slowly go insane if you do not grok the following fact: when
2661 # building this library, the top-level /target/ becomes the library's /host/.
2663 # configure then causes --target to default to --host, exactly like any
2664 # other package using autoconf. Therefore, 'target' and 'host' will
2665 # always be the same. This makes sense both for native and cross compilers
2666 # just think about it for a little while. :-)
2668 # Also, if this library is being configured as part of a cross compiler, the
2669 # top-level configure script will pass the "real" host as $with_cross_host.
2671 # Do not delete or change the following two lines. For why, see
2672 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2674 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 for ac_t
in install-sh
install.sh shtool
; do
2676 if test -f "$ac_dir/$ac_t"; then
2678 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2696 # Make sure we can run config.sub.
2697 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2698 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2701 $as_echo_n "checking build system type... " >&6; }
2702 if test "${ac_cv_build+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2705 ac_build_alias
=$build_alias
2706 test "x$ac_build_alias" = x
&&
2707 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2708 test "x$ac_build_alias" = x
&&
2709 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2710 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2711 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2715 $as_echo "$ac_cv_build" >&6; }
2716 case $ac_cv_build in
2718 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2721 ac_save_IFS
=$IFS; IFS
='-'
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2731 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2735 $as_echo_n "checking host system type... " >&6; }
2736 if test "${ac_cv_host+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2739 if test "x$host_alias" = x
; then
2740 ac_cv_host
=$ac_cv_build
2742 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2743 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2748 $as_echo "$ac_cv_host" >&6; }
2751 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2754 ac_save_IFS
=$IFS; IFS
='-'
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2764 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2768 $as_echo_n "checking target system type... " >&6; }
2769 if test "${ac_cv_target+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2772 if test "x$target_alias" = x
; then
2773 ac_cv_target
=$ac_cv_host
2775 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2776 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2781 $as_echo "$ac_cv_target" >&6; }
2782 case $ac_cv_target in
2784 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2786 target
=$ac_cv_target
2787 ac_save_IFS
=$IFS; IFS
='-'
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2797 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2800 # The aliases save the names the user supplied, while $host etc.
2801 # will get canonicalized.
2802 test -n "$target_alias" &&
2803 test "$program_prefix$program_suffix$program_transform_name" = \
2805 program_prefix
=${target_alias}-
2807 target_alias
=${target_alias-$host_alias}
2809 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2810 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2811 # 1.9.0: minimum required version
2812 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2813 # of other PACKAGE_* variables will, however, and there's nothing
2814 # we can do about that; they come from AC_INIT).
2815 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2816 # file in the top srcdir, etc, etc), so stop complaining.
2817 # no-dist: we don't want 'dist' and related rules.
2818 # -Wall: turns on all automake warnings...
2819 # -Wno-portability: ...except this one, since GNU make is required.
2820 # -Wno-override: ... and this one, since we do want this in testsuite.
2821 am__api_version
='1.11'
2823 # Find a good install program. We prefer a C program (faster),
2824 # so one script is as good as another. But avoid the broken or
2825 # incompatible versions:
2826 # SysV /etc/install, /usr/sbin/install
2827 # SunOS /usr/etc/install
2828 # IRIX /sbin/install
2830 # AmigaOS /C/install, which installs bootblocks on floppy discs
2831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # OS/2's system install, which has a completely different semantic
2835 # ./install, which can be erroneously created by make from ./install.sh.
2836 # Reject install programs that cannot install multiple files.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2838 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2839 if test -z "$INSTALL"; then
2840 if test "${ac_cv_path_install+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir
=.
2848 # Account for people who put trailing slashes in PATH elements.
2849 case $as_dir/ in #((
2850 .
/ | .
// |
/[cC
]/* | \
2851 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2852 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2855 # OSF1 and SCO ODT 3.0 have their own names for install.
2856 # Don't use installbsd from OSF since it installs stuff as root
2858 for ac_prog
in ginstall scoinst
install; do
2859 for ac_exec_ext
in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2861 if test $ac_prog = install &&
2862 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2863 # AIX install. It has an incompatible calling convention.
2865 elif test $ac_prog = install &&
2866 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2867 # program-specific install script used by HP pwplus--don't use.
2870 rm -rf conftest.one conftest.two conftest.dir
2871 echo one
> conftest.one
2872 echo two
> conftest.two
2874 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2875 test -s conftest.one
&& test -s conftest.two
&&
2876 test -s conftest.dir
/conftest.one
&&
2877 test -s conftest.dir
/conftest.two
2879 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2892 rm -rf conftest.one conftest.two conftest.dir
2895 if test "${ac_cv_path_install+set}" = set; then
2896 INSTALL
=$ac_cv_path_install
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for INSTALL within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the value is a relative name.
2902 INSTALL
=$ac_install_sh
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2906 $as_echo "$INSTALL" >&6; }
2908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2909 # It thinks the first close brace ends the variable substitution.
2910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2914 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2917 $as_echo_n "checking whether build environment is sane... " >&6; }
2920 echo timestamp
> conftest.
file
2921 # Reject unsafe characters in $srcdir or the absolute working directory
2922 # name. Accept space and tab only in the latter.
2926 *[\\\"\
#\$\&\'\`$am_lf]*)
2927 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2930 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2931 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2934 # Do `set' in a subshell so we don't clobber the current shell's
2935 # arguments. Must try -L first in case configure is actually a
2936 # symlink; some systems play weird games with the mod time of symlinks
2937 # (eg FreeBSD returns the mod time of the symlink's containing
2940 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2941 if test "$*" = "X"; then
2943 set X
`ls -t "$srcdir/configure" conftest.file`
2946 if test "$*" != "X $srcdir/configure conftest.file" \
2947 && test "$*" != "X conftest.file $srcdir/configure"; then
2949 # If neither matched, then we have a broken ls. This can happen
2950 # if, for instance, CONFIG_SHELL is bash and it inherits a
2951 # broken ls alias from the environment. This has actually
2952 # happened. Such a system could not be considered "sane".
2953 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2954 alias in your environment" "$LINENO" 5
2957 test "$2" = conftest.
file
2963 as_fn_error
"newly created file is older than distributed files!
2964 Check your system clock" "$LINENO" 5
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2968 test "$program_prefix" != NONE
&&
2969 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2970 # Use a double $ so make ignores it.
2971 test "$program_suffix" != NONE
&&
2972 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2973 # Double any \ or $.
2974 # By default was `s,x,x', remove it if useless.
2975 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2976 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2978 # expand $ac_aux_dir to an absolute path
2979 am_aux_dir
=`cd $ac_aux_dir && pwd`
2981 if test x
"${MISSING+set}" != xset
; then
2984 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2986 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2989 # Use eval to expand $SHELL
2990 if eval "$MISSING --run true"; then
2991 am_missing_run
="$MISSING --run "
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2995 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2998 if test x
"${install_sh}" != xset
; then
3001 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3003 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3007 # Installed binaries are usually stripped using `strip' when the user
3008 # run `make install-strip'. However `strip' might not be the right
3009 # tool to use in cross-compilation environments, therefore Automake
3010 # will honor the `STRIP' environment variable to overrule this program.
3011 if test "$cross_compiling" != no
; then
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3014 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_STRIP+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$STRIP"; then
3021 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3027 test -z "$as_dir" && as_dir
=.
3028 for ac_exec_ext
in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 STRIP
=$ac_cv_prog_STRIP
3041 if test -n "$STRIP"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3043 $as_echo "$STRIP" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3051 if test -z "$ac_cv_prog_STRIP"; then
3053 # Extract the first word of "strip", so it can be a program name with args.
3054 set dummy strip
; ac_word
=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$ac_ct_STRIP"; then
3061 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir
=.
3068 for ac_exec_ext
in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_ac_ct_STRIP
="strip"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3081 if test -n "$ac_ct_STRIP"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3083 $as_echo "$ac_ct_STRIP" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3089 if test "x$ac_ct_STRIP" = x
; then
3092 case $cross_compiling:$ac_tool_warned in
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096 ac_tool_warned
=yes ;;
3101 STRIP
="$ac_cv_prog_STRIP"
3105 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3108 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3109 if test -z "$MKDIR_P"; then
3110 if test "${ac_cv_path_mkdir+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3114 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3117 test -z "$as_dir" && as_dir
=.
3118 for ac_prog
in mkdir gmkdir
; do
3119 for ac_exec_ext
in '' $ac_executable_extensions; do
3120 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3121 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3122 'mkdir (GNU coreutils) '* | \
3123 'mkdir (coreutils) '* | \
3124 'mkdir (fileutils) '4.1*)
3125 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3135 if test "${ac_cv_path_mkdir+set}" = set; then
3136 MKDIR_P
="$ac_cv_path_mkdir -p"
3138 # As a last resort, use the slow shell script. Don't cache a
3139 # value for MKDIR_P within a source directory, because that will
3140 # break other packages using the cache if that directory is
3141 # removed, or if the value is a relative name.
3142 test -d .
/--version && rmdir .
/--version
3143 MKDIR_P
="$ac_install_sh -d"
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3147 $as_echo "$MKDIR_P" >&6; }
3151 [\\/$
]* | ?
:[\\/]*) ;;
3152 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3155 for ac_prog
in gawk mawk nawk
awk
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy
$ac_prog; ac_word
=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_AWK+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3164 if test -n "$AWK"; then
3165 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir
=.
3172 for ac_exec_ext
in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_AWK
="$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 if test -n "$AWK"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3187 $as_echo "$AWK" >&6; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3194 test -n "$AWK" && break
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3198 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3200 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3201 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3202 $as_echo_n "(cached) " >&6
3204 cat >conftest.
make <<\_ACEOF
3207 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3212 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3214 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3218 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 SET_MAKE
="MAKE=${MAKE-make}"
3228 rm -rf .tst
2>/dev
/null
3229 mkdir .tst
2>/dev
/null
3230 if test -d .tst
; then
3235 rmdir .tst
2>/dev
/null
3237 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3238 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3239 # is not polluted with repeated "-I."
3240 am__isrc
=' -I$(srcdir)'
3241 # test to see if srcdir already configured
3242 if test -f $srcdir/config.status
; then
3243 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3247 # test whether we have cygpath
3248 if test -z "$CYGPATH_W"; then
3249 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3250 CYGPATH_W
='cygpath -w'
3257 # Define the identity of the package.
3262 cat >>confdefs.h
<<_ACEOF
3263 #define PACKAGE "$PACKAGE"
3267 cat >>confdefs.h
<<_ACEOF
3268 #define VERSION "$VERSION"
3271 # Some tools Automake needs.
3273 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3276 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3279 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3282 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3285 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3287 # We need awk for the "check" target. The system "awk" is bad on
3289 # Always define AMTAR for backward compatibility. Yes, it's still used
3290 # in the wild :-( We should find a proper way to deprecate it ...
3293 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3299 # Default to --enable-multilib
3300 # Check whether --enable-multilib was given.
3301 if test "${enable_multilib+set}" = set; then :
3302 enableval
=$enable_multilib; case "$enableval" in
3303 yes) multilib
=yes ;;
3305 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3312 # We may get other options which we leave undocumented:
3313 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3314 # See config-ml.in if you want the gory details.
3316 if test "$srcdir" = "."; then
3317 if test "$with_target_subdir" != "."; then
3318 multi_basedir
="$srcdir/$with_multisrctop../.."
3320 multi_basedir
="$srcdir/$with_multisrctop.."
3323 multi_basedir
="$srcdir/.."
3327 # Even if the default multilib is not a cross compilation,
3328 # it may be that some of the other multilibs are.
3329 if test $cross_compiling = no
&& test $multilib = yes \
3330 && test "x${with_multisubdir}" != x
; then
3331 cross_compiling
=maybe
3334 ac_config_commands
="$ac_config_commands default-1"
3337 # Calculate toolexeclibdir
3338 # Also toolexecdir, though it's only used in toolexeclibdir
3339 case ${enable_version_specific_runtime_libs} in
3341 # Need the gcc compiler version to know where to install libraries
3342 # and header files if --enable-version-specific-runtime-libs option
3344 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3345 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3348 if test -n "$with_cross_host" &&
3349 test x
"$with_cross_host" != x
"no"; then
3350 # Install a library built with a cross compiler in tooldir, not libdir.
3351 toolexecdir
='$(exec_prefix)/$(target_alias)'
3352 toolexeclibdir
='$(toolexecdir)/lib'
3354 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3355 toolexeclibdir
='$(libdir)'
3357 multi_os_directory
=`$CC -print-multi-os-directory`
3358 case $multi_os_directory in
3359 .
) ;; # Avoid trailing /.
3360 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3367 # Check the compiler.
3368 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3369 # We must force CC to /not/ be precious variables; otherwise
3370 # the wrong, non-multilib-adjusted value will be used in multilibs.
3371 # As a side effect, we have to subst CFLAGS ourselves.
3376 ac_cpp
='$CPP $CPPFLAGS'
3377 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3382 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC
="$CC" # Let the user override the test.
3391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3395 test -z "$as_dir" && as_dir
=.
3396 for ac_exec_ext
in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 if test -n "$CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411 $as_echo "$CC" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3419 if test -z "$ac_cv_prog_CC"; then
3421 # Extract the first word of "gcc", so it can be a program name with args.
3422 set dummy gcc
; 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_ac_ct_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3428 if test -n "$ac_ct_CC"; then
3429 ac_cv_prog_ac_ct_CC
="$ac_ct_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_ac_ct_CC
="gcc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3449 if test -n "$ac_ct_CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451 $as_echo "$ac_ct_CC" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 if test "x$ac_ct_CC" = x
; then
3460 case $cross_compiling:$ac_tool_warned in
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned
=yes ;;
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3475 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if test "${ac_cv_prog_CC+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC
="$CC" # Let the user override the test.
3484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir
=.
3489 for ac_exec_ext
in '' $ac_executable_extensions; do
3490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 $as_echo "$CC" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3513 if test -z "$CC"; then
3514 # Extract the first word of "cc", so it can be a program name with args.
3515 set dummy cc
; ac_word
=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC
="$CC" # Let the user override the test.
3525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir
=.
3530 for ac_exec_ext
in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3533 ac_prog_rejected
=yes
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 if test $ac_prog_rejected = yes; then
3545 # We found a bogon in the path, so make sure we never use it.
3546 set dummy
$ac_cv_prog_CC
3548 if test $# != 0; then
3549 # We chose a different compiler from the bogus one.
3550 # However, it has the same basename, so the bogon will be chosen
3551 # first if we set CC to just the basename; use the full file name.
3553 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3559 if test -n "$CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561 $as_echo "$CC" >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 for ac_prog
in cl.exe
3573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3574 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC
="$CC" # Let the user override the test.
3583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir
=.
3588 for ac_exec_ext
in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 if test -n "$CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603 $as_echo "$CC" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 test -n "$CC" && break
3613 if test -z "$CC"; then
3615 for ac_prog
in cl.exe
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy
$ac_prog; ac_word
=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3624 if test -n "$ac_ct_CC"; then
3625 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir
=.
3632 for ac_exec_ext
in '' $ac_executable_extensions; do
3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634 ac_cv_prog_ac_ct_CC
="$ac_prog"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3645 if test -n "$ac_ct_CC"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3647 $as_echo "$ac_ct_CC" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3654 test -n "$ac_ct_CC" && break
3657 if test "x$ac_ct_CC" = x
; then
3660 case $cross_compiling:$ac_tool_warned in
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664 ac_tool_warned
=yes ;;
3673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error
"no acceptable C compiler found in \$PATH
3676 See \`config.log' for more details." "$LINENO" 5; }
3678 # Provide some information about the compiler.
3679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3682 for ac_option
in --version -v -V -qversion; do
3683 { { ac_try
="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3692 if test -s conftest.err; then
3694 ... rest of stderr output deleted ...
3695 10q' conftest.err >conftest.er1
3696 cat conftest.er1 >&5
3697 rm -f conftest.er1 conftest.err
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3714 ac_clean_files_save=$ac_clean_files
3715 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3716 # Try to create an executable without -o first, disregard a.out.
3717 # It will help us diagnose broken compilers, and finding out an intuition
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3720 $as_echo_n "checking for C compiler default output file name... " >&6; }
3721 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3723 # The possible output files:
3724 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3727 for ac_file in $ac_files
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3731 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3736 if { { ac_try="$ac_link_default"
3738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3739 *) ac_try_echo
=$ac_try;;
3741 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_link_default") 2>&5
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; then :
3747 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3748 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3749 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3750 # so that the user can short-circuit this test for compilers unknown to
3752 for ac_file
in $ac_files ''
3754 test -f "$ac_file" ||
continue
3756 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3759 # We found the default executable, but exeext='' is most
3763 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3765 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3767 # We set ac_cv_exeext here because the later test for it is not
3768 # safe: cross compilers may not add the suffix if given an `-o'
3769 # argument, so we may need to know it at that point already.
3770 # Even if this section looks crufty: it has the advantage of
3777 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3783 $as_echo "$ac_file" >&6; }
3784 if test -z "$ac_file"; then :
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.
$ac_ext >&5
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 { as_fn_set_status
77
3791 as_fn_error
"C compiler cannot create executables
3792 See \`config.log' for more details." "$LINENO" 5; }; }
3794 ac_exeext
=$ac_cv_exeext
3796 # Check that the compiler produces executables we can run. If not, either
3797 # the compiler is broken, or we cross compile.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3799 $as_echo_n "checking whether the C compiler works... " >&6; }
3800 # If not cross compiling, check that we can run a simple program.
3801 if test "$cross_compiling" != yes; then
3802 if { ac_try
='./$ac_file'
3803 { { case "(($ac_try" in
3804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_try") 2>&5
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; }; then
3815 if test "$cross_compiling" = maybe; then
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error "cannot run C compiled programs.
3821 If you meant to cross compile
, use \
`--host'.
3822 See \`config.log
' for more details." "$LINENO" 5; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827 $as_echo "yes" >&6; }
3829 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3830 ac_clean_files=$ac_clean_files_save
3831 # Check that the compiler produces executables we can run. If not, either
3832 # the compiler is broken, or we cross compile.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3834 $as_echo_n "checking whether we are cross compiling... " >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3836 $as_echo "$cross_compiling" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3839 $as_echo_n "checking for suffix of executables... " >&6; }
3840 if { { ac_try="$ac_link"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_link") 2>&5
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3852 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3853 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3855 for ac_file
in conftest.exe conftest conftest.
*; do
3856 test -f "$ac_file" ||
continue
3858 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3859 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3868 See \`config.log' for more details." "$LINENO" 5; }
3870 rm -f conftest
$ac_cv_exeext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3872 $as_echo "$ac_cv_exeext" >&6; }
3874 rm -f conftest.
$ac_ext
3875 EXEEXT
=$ac_cv_exeext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3878 $as_echo_n "checking for suffix of object files... " >&6; }
3879 if test "${ac_cv_objext+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3893 rm -f conftest.o conftest.obj
3894 if { { ac_try
="$ac_compile"
3896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_compile") 2>&5
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 for ac_file in conftest.o conftest.obj conftest.*; do
3906 test -f "$ac_file" || continue;
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error "cannot compute suffix of object files
: cannot compile
3920 See \
`config.log' for more details." "$LINENO" 5; }
3922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3925 $as_echo "$ac_cv_objext" >&6; }
3926 OBJEXT=$ac_cv_objext
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3929 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3930 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3947 if ac_fn_c_try_compile "$LINENO"; then :
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3957 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3958 if test $ac_compiler_gnu = yes; then
3963 ac_test_CFLAGS=${CFLAGS+set}
3964 ac_save_CFLAGS=$CFLAGS
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3966 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3967 if test "${ac_cv_prog_cc_g+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_save_c_werror_flag=$ac_c_werror_flag
3971 ac_c_werror_flag=yes
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3985 if ac_fn_c_try_compile "$LINENO"; then :
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
4000 if ac_fn_c_try_compile "$LINENO"; then :
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4016 if ac_fn_c_try_compile "$LINENO"; then :
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4027 $as_echo "$ac_cv_prog_cc_g" >&6; }
4028 if test "$ac_test_CFLAGS" = set; then
4029 CFLAGS=$ac_save_CFLAGS
4030 elif test $ac_cv_prog_cc_g = yes; then
4031 if test "$GCC" = yes; then
4037 if test "$GCC" = yes; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4044 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4045 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4048 ac_cv_prog_cc_c89=no
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 #include <sys/types.h>
4055 #include <sys/stat.h>
4056 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4057 struct buf { int x; };
4058 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4059 static char *e (p, i)
4065 static char *f (char * (*g) (char **, int), char **p, ...)
4070 s = g (p, va_arg (v,int));
4075 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4076 function prototypes and stuff, but not '\xHH' hex character constants.
4077 These don't provoke an error unfortunately, instead are silently treated
4078 as 'x'. The following induces an error, until -std is added to get
4079 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4080 array size at least. It's necessary to write '\x00'==0 to get something
4081 that's true only with -std. */
4082 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4084 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4085 inside strings and character constants. */
4087 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4089 int test (int i, double x);
4090 struct s1 {int (*f) (int a);};
4091 struct s2 {int (*f) (double a);};
4092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4103 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4104 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4106 CC="$ac_save_CC $ac_arg"
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_c89=$ac_arg
4110 rm -f core conftest.err conftest.$ac_objext
4111 test "x$ac_cv_prog_cc_c89" != "xno" && break
4113 rm -f conftest.$ac_ext
4118 case "x$ac_cv_prog_cc_c89" in
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4121 $as_echo "none needed" >&6; } ;;
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4124 $as_echo "unsupported" >&6; } ;;
4126 CC="$CC $ac_cv_prog_cc_c89"
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4130 if test "x$ac_cv_prog_cc_c89" != xno; then :
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 DEPDIR="${am__leading_dot}deps"
4141 ac_config_commands="$ac_config_commands depfiles"
4144 am_make=${MAKE-make}
4145 cat > confinc << 'END'
4147 @echo this is the am__doit target
4150 # If we don't find an include directive, just comment out the code.
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4152 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4156 # First try GNU make style include.
4157 echo "include confinc" > confmf
4158 # Ignore all kinds of additional output from `make'.
4159 case `$am_make -s -f confmf 2> /dev/null` in #(
4160 *the\ am__doit\ target*)
4166 # Now try BSD make style include.
4167 if test "$am__include" = "#"; then
4168 echo '.include
"confinc"' > confmf
4169 case `$am_make -s -f confmf 2> /dev/null` in #(
4170 *the\ am__doit\ target*)
4171 am__include=.include
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4180 $as_echo "$_am_result" >&6; }
4181 rm -f confinc confmf
4183 # Check whether --enable-dependency-tracking was given.
4184 if test "${enable_dependency_tracking+set}" = set; then :
4185 enableval=$enable_dependency_tracking;
4188 if test "x$enable_dependency_tracking" != xno; then
4189 am_depcomp="$ac_aux_dir/depcomp"
4193 if test "x$enable_dependency_tracking" != xno
; then
4203 depcc
="$CC" am_compiler_list
=
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4206 $as_echo_n "checking dependency style of $depcc... " >&6; }
4207 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4211 # We make a subdir and do the tests there. Otherwise we can end up
4212 # making bogus files that we don't know about and never remove. For
4213 # instance it was reported that on HP-UX the gcc test will end up
4214 # making a dummy file named `D' -- because `-MD' means `put the output
4218 # Copy depcomp to subdir because otherwise we won't find it if we're
4219 # using a relative directory.
4220 cp "$am_depcomp" conftest.dir
4222 # We will build objects and dependencies in a subdirectory because
4223 # it helps to detect inapplicable dependency modes. For instance
4224 # both Tru64's cc and ICC support -MD to output dependencies as a
4225 # side effect of compilation, but ICC will put the dependencies in
4226 # the current directory while Tru64 will put them in the object
4230 am_cv_CC_dependencies_compiler_type
=none
4231 if test "$am_compiler_list" = ""; then
4232 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4235 case " $depcc " in #(
4236 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4239 for depmode
in $am_compiler_list; do
4240 # Setup a source with many dependencies, because some compilers
4241 # like to wrap large dependency lists on column 80 (with \), and
4242 # we should not choose a depcomp mode which is confused by this.
4244 # We need to recreate these files for each test, as the compiler may
4245 # overwrite some of them when testing with obscure command lines.
4246 # This happens at least with the AIX C compiler.
4248 for i
in 1 2 3 4 5 6; do
4249 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4250 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4251 # Solaris 8's {/usr,}/bin/sh.
4252 touch sub
/conftst
$i.h
4254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4256 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4257 # mode. It turns out that the SunPro C++ compiler does not properly
4258 # handle `-M -o', and we need to detect this. Also, some Intel
4259 # versions had trouble with output in subdirs
4260 am__obj
=sub
/conftest.
${OBJEXT-o}
4261 am__minus_obj
="-o $am__obj"
4264 # This depmode causes a compiler race in universal mode.
4265 test "$am__universal" = false ||
continue
4268 # after this tag, mechanisms are not by side-effect, so they'll
4269 # only be used when explicitly requested
4270 if test "x$enable_dependency_tracking" = xyes
; then
4276 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4277 # This compiler won't grok `-c -o', but also, the minuso test has
4278 # not run yet. These depmodes are late enough in the game, and
4279 # so weak that their functioning should not be impacted.
4280 am__obj
=conftest.
${OBJEXT-o}
4285 if depmode
=$depmode \
4286 source=sub
/conftest.c object
=$am__obj \
4287 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4288 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4289 >/dev
/null
2>conftest.err
&&
4290 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4291 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4292 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4293 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4294 # icc doesn't choke on unknown options, it will just issue warnings
4295 # or remarks (even with -Werror). So we grep stderr for any message
4296 # that says an option was ignored or not supported.
4297 # When given -MP, icc 7.0 and 7.1 complain thusly:
4298 # icc: Command line warning: ignoring option '-M'; no argument required
4299 # The diagnosis changed in icc 8.0:
4300 # icc: Command line remark: option '-MP' not supported
4301 if (grep 'ignoring option' conftest.err ||
4302 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4303 am_cv_CC_dependencies_compiler_type
=$depmode
4312 am_cv_CC_dependencies_compiler_type
=none
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4317 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4318 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4321 test "x$enable_dependency_tracking" != xno \
4322 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4324 am__fastdepCC_FALSE
='#'
4326 am__fastdepCC_TRUE
='#'
4327 am__fastdepCC_FALSE
=
4335 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4336 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4337 # in both places for now and restore CFLAGS at the end of config.
4338 save_CFLAGS
="$CFLAGS"
4340 # Add -Wall -Werror if we are using GCC.
4341 if test "x$GCC" = "xyes"; then
4342 XCFLAGS
="$XCFLAGS -Wall -Werror"
4345 # Find other programs we need.
4346 if test -n "$ac_tool_prefix"; then
4347 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4348 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if test "${ac_cv_prog_AR+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4354 if test -n "$AR"; then
4355 ac_cv_prog_AR
="$AR" # Let the user override the test.
4357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir
=.
4362 for ac_exec_ext
in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 if test -n "$AR"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4377 $as_echo "$AR" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4385 if test -z "$ac_cv_prog_AR"; then
4387 # Extract the first word of "ar", so it can be a program name with args.
4388 set dummy
ar; ac_word
=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4394 if test -n "$ac_ct_AR"; then
4395 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir
=.
4402 for ac_exec_ext
in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_ac_ct_AR
="ar"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4415 if test -n "$ac_ct_AR"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4417 $as_echo "$ac_ct_AR" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4423 if test "x$ac_ct_AR" = x
; then
4426 case $cross_compiling:$ac_tool_warned in
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4430 ac_tool_warned
=yes ;;
4438 if test -n "$ac_tool_prefix"; then
4439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4440 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -n "$RANLIB"; then
4447 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 RANLIB
=$ac_cv_prog_RANLIB
4467 if test -n "$RANLIB"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4469 $as_echo "$RANLIB" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4477 if test -z "$ac_cv_prog_RANLIB"; then
4478 ac_ct_RANLIB
=$RANLIB
4479 # Extract the first word of "ranlib", so it can be a program name with args.
4480 set dummy ranlib
; ac_word
=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4484 $as_echo_n "(cached) " >&6
4486 if test -n "$ac_ct_RANLIB"; then
4487 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir
=.
4494 for ac_exec_ext
in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4507 if test -n "$ac_ct_RANLIB"; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4509 $as_echo "$ac_ct_RANLIB" >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "no" >&6; }
4515 if test "x$ac_ct_RANLIB" = x
; then
4516 RANLIB
="ranlib-not-found-in-path-error"
4518 case $cross_compiling:$ac_tool_warned in
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4522 ac_tool_warned
=yes ;;
4524 RANLIB
=$ac_ct_RANLIB
4527 RANLIB
="$ac_cv_prog_RANLIB"
4530 # Extract the first word of "perl", so it can be a program name with args.
4531 set dummy perl
; ac_word
=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_path_PERL+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4539 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
4542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir
=.
4547 for ac_exec_ext
in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl-not-found-in-path-error"
4561 PERL
=$ac_cv_path_PERL
4562 if test -n "$PERL"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4564 $as_echo "$PERL" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4574 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4575 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4576 $as_echo_n "(cached) " >&6
4578 cat >conftest.
make <<\_ACEOF
4581 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4586 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4588 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4592 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4594 $as_echo "yes" >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 SET_MAKE
="MAKE=${MAKE-make}"
4604 # See if makeinfo has been installed and is modern enough
4605 # that we can use it.
4607 # Extract the first word of "makeinfo", so it can be a program name with args.
4608 set dummy makeinfo
; ac_word
=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 if test -n "$MAKEINFO"; then
4615 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir
=.
4622 for ac_exec_ext
in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_MAKEINFO
="makeinfo"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 MAKEINFO
=$ac_cv_prog_MAKEINFO
4635 if test -n "$MAKEINFO"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4637 $as_echo "$MAKEINFO" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 if test -n "$MAKEINFO"; then
4645 # Found it, now check the version.
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4647 $as_echo_n "checking for modern makeinfo... " >&6; }
4648 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
4652 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4654 case $ac_prog_version in
4655 '') gcc_cv_prog_makeinfo_modern
=no
;;
4656 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
4657 *) gcc_cv_prog_makeinfo_modern
=no
;;
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4662 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4664 gcc_cv_prog_makeinfo_modern
=no
4666 if test $gcc_cv_prog_makeinfo_modern = no
; then
4667 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4670 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4672 BUILD_INFO_FALSE
='#'
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4684 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4689 macro_version
='2.2.7a'
4690 macro_revision
='1.3134'
4704 ltmain
="$ac_aux_dir/ltmain.sh"
4706 # Backslashify metacharacters that are still active within
4707 # double-quoted strings.
4708 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4710 # Same as above, but do not quote variable references.
4711 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4713 # Sed substitution to delay expansion of an escaped shell variable in a
4714 # double_quote_subst'ed string.
4715 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4717 # Sed substitution to delay expansion of an escaped single quote.
4718 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4720 # Sed substitution to avoid accidental globbing in evaled expressions
4721 no_glob_subst
='s/\*/\\\*/g'
4723 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4725 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4728 $as_echo_n "checking how to print strings... " >&6; }
4729 # Test print first, because it will be a builtin if present.
4730 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4731 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4733 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4736 # Use this function as a fallback that always works.
4737 func_fallback_echo ()
4739 eval 'cat <<_LTECHO_EOF
4743 ECHO='func_fallback_echo
'
4746 # func_echo_all arg...
4747 # Invoke $ECHO with all args, space-separated.
4754 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4755 $as_echo "printf" >&6; } ;;
4756 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4757 $as_echo "print -r" >&6; } ;;
4758 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4759 $as_echo "cat" >&6; } ;;
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4776 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4777 if test "${ac_cv_path_SED+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781 for ac_i in 1 2 3 4 5 6 7; do
4782 ac_script="$ac_script$as_nl$ac_script"
4784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785 { ac_script=; unset ac_script;}
4786 if test -z "$SED"; then
4787 ac_path_SED_found=false
4788 # Loop through the user's path and
test for each of PROGNAME-LIST
4789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir
=.
4794 for ac_prog
in sed gsed
; do
4795 for ac_exec_ext
in '' $ac_executable_extensions; do
4796 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4797 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4798 # Check for GNU ac_path_SED and select it if it is found.
4799 # Check for GNU $ac_path_SED
4800 case `"$ac_path_SED" --version 2>&1` in
4802 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4805 $as_echo_n 0123456789 >"conftest.in"
4808 cat "conftest.in" "conftest.in" >"conftest.tmp"
4809 mv "conftest.tmp" "conftest.in"
4810 cp "conftest.in" "conftest.nl"
4811 $as_echo '' >> "conftest.nl"
4812 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4813 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4814 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4815 if test $ac_count -gt ${ac_path_SED_max-0}; then
4816 # Best one so far, save it but keep looking for a better one
4817 ac_cv_path_SED
="$ac_path_SED"
4818 ac_path_SED_max
=$ac_count
4820 # 10*(2^10) chars as input seems more than enough
4821 test $ac_count -gt 10 && break
4823 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4826 $ac_path_SED_found && break 3
4831 if test -z "$ac_cv_path_SED"; then
4832 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4840 $as_echo "$ac_cv_path_SED" >&6; }
4841 SED
="$ac_cv_path_SED"
4844 test -z "$SED" && SED
=sed
4845 Xsed
="$SED -e 1s/^X//"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4858 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4859 if test "${ac_cv_path_GREP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4862 if test -z "$GREP"; then
4863 ac_path_GREP_found
=false
4864 # Loop through the user's path and test for each of PROGNAME-LIST
4865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4866 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4869 test -z "$as_dir" && as_dir
=.
4870 for ac_prog
in grep ggrep
; do
4871 for ac_exec_ext
in '' $ac_executable_extensions; do
4872 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4873 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4874 # Check for GNU ac_path_GREP and select it if it is found.
4875 # Check for GNU $ac_path_GREP
4876 case `"$ac_path_GREP" --version 2>&1` in
4878 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4881 $as_echo_n 0123456789 >"conftest.in"
4884 cat "conftest.in" "conftest.in" >"conftest.tmp"
4885 mv "conftest.tmp" "conftest.in"
4886 cp "conftest.in" "conftest.nl"
4887 $as_echo 'GREP' >> "conftest.nl"
4888 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4889 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4890 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4891 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4892 # Best one so far, save it but keep looking for a better one
4893 ac_cv_path_GREP
="$ac_path_GREP"
4894 ac_path_GREP_max
=$ac_count
4896 # 10*(2^10) chars as input seems more than enough
4897 test $ac_count -gt 10 && break
4899 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4902 $ac_path_GREP_found && break 3
4907 if test -z "$ac_cv_path_GREP"; then
4908 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911 ac_cv_path_GREP
=$GREP
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4916 $as_echo "$ac_cv_path_GREP" >&6; }
4917 GREP
="$ac_cv_path_GREP"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4921 $as_echo_n "checking for egrep... " >&6; }
4922 if test "${ac_cv_path_EGREP+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4925 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4926 then ac_cv_path_EGREP
="$GREP -E"
4928 if test -z "$EGREP"; then
4929 ac_path_EGREP_found
=false
4930 # Loop through the user's path and test for each of PROGNAME-LIST
4931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4932 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4935 test -z "$as_dir" && as_dir
=.
4936 for ac_prog
in egrep; do
4937 for ac_exec_ext
in '' $ac_executable_extensions; do
4938 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4939 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4940 # Check for GNU ac_path_EGREP and select it if it is found.
4941 # Check for GNU $ac_path_EGREP
4942 case `"$ac_path_EGREP" --version 2>&1` in
4944 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4947 $as_echo_n 0123456789 >"conftest.in"
4950 cat "conftest.in" "conftest.in" >"conftest.tmp"
4951 mv "conftest.tmp" "conftest.in"
4952 cp "conftest.in" "conftest.nl"
4953 $as_echo 'EGREP' >> "conftest.nl"
4954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4955 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4956 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4958 # Best one so far, save it but keep looking for a better one
4959 ac_cv_path_EGREP
="$ac_path_EGREP"
4960 ac_path_EGREP_max
=$ac_count
4962 # 10*(2^10) chars as input seems more than enough
4963 test $ac_count -gt 10 && break
4965 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4968 $ac_path_EGREP_found && break 3
4973 if test -z "$ac_cv_path_EGREP"; then
4974 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4977 ac_cv_path_EGREP
=$EGREP
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4983 $as_echo "$ac_cv_path_EGREP" >&6; }
4984 EGREP
="$ac_cv_path_EGREP"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4988 $as_echo_n "checking for fgrep... " >&6; }
4989 if test "${ac_cv_path_FGREP+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4992 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4993 then ac_cv_path_FGREP
="$GREP -F"
4995 if test -z "$FGREP"; then
4996 ac_path_FGREP_found
=false
4997 # Loop through the user's path and test for each of PROGNAME-LIST
4998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4999 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5002 test -z "$as_dir" && as_dir
=.
5003 for ac_prog
in fgrep
; do
5004 for ac_exec_ext
in '' $ac_executable_extensions; do
5005 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5006 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
5007 # Check for GNU ac_path_FGREP and select it if it is found.
5008 # Check for GNU $ac_path_FGREP
5009 case `"$ac_path_FGREP" --version 2>&1` in
5011 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5014 $as_echo_n 0123456789 >"conftest.in"
5017 cat "conftest.in" "conftest.in" >"conftest.tmp"
5018 mv "conftest.tmp" "conftest.in"
5019 cp "conftest.in" "conftest.nl"
5020 $as_echo 'FGREP' >> "conftest.nl"
5021 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5022 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5023 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5024 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5025 # Best one so far, save it but keep looking for a better one
5026 ac_cv_path_FGREP
="$ac_path_FGREP"
5027 ac_path_FGREP_max
=$ac_count
5029 # 10*(2^10) chars as input seems more than enough
5030 test $ac_count -gt 10 && break
5032 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5035 $ac_path_FGREP_found && break 3
5040 if test -z "$ac_cv_path_FGREP"; then
5041 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5044 ac_cv_path_FGREP
=$FGREP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5050 $as_echo "$ac_cv_path_FGREP" >&6; }
5051 FGREP
="$ac_cv_path_FGREP"
5054 test -z "$GREP" && GREP
=grep
5074 # Check whether --with-gnu-ld was given.
5075 if test "${with_gnu_ld+set}" = set; then :
5076 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5082 if test "$GCC" = yes; then
5083 # Check if gcc -print-prog-name=ld gives a path.
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5085 $as_echo_n "checking for ld used by $CC... " >&6; }
5088 # gcc leaves a trailing carriage return which upsets mingw
5089 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5091 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5094 # Accept absolute paths.
5096 re_direlt
='/[^/][^/]*/\.\./'
5097 # Canonicalize the pathname of ld
5098 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5099 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5100 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5102 test -z "$LD" && LD
="$ac_prog"
5105 # If it fails, then pretend we aren't using GCC.
5109 # If it is relative, then search for the first ld in PATH.
5113 elif test "$with_gnu_ld" = yes; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5115 $as_echo_n "checking for GNU ld... " >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5118 $as_echo_n "checking for non-GNU ld... " >&6; }
5120 if test "${lt_cv_path_LD+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5123 if test -z "$LD"; then
5124 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5125 for ac_dir
in $PATH; do
5127 test -z "$ac_dir" && ac_dir
=.
5128 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5129 lt_cv_path_LD
="$ac_dir/$ac_prog"
5130 # Check to see if the program is GNU ld. I'd rather use --version,
5131 # but apparently some variants of GNU ld only accept -v.
5132 # Break only if it was the GNU/non-GNU ld that we prefer.
5133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5134 *GNU
* |
*'with BFD'*)
5135 test "$with_gnu_ld" != no
&& break
5138 test "$with_gnu_ld" != yes && break
5145 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5150 if test -n "$LD"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5152 $as_echo "$LD" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5157 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5159 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5160 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5163 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5164 case `$LD -v 2>&1 </dev/null` in
5165 *GNU
* |
*'with BFD'*)
5166 lt_cv_prog_gnu_ld
=yes
5169 lt_cv_prog_gnu_ld
=no
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5174 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5175 with_gnu_ld
=$lt_cv_prog_gnu_ld
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5186 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5187 if test "${lt_cv_path_NM+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -n "$NM"; then
5191 # Let the user override the test.
5194 lt_nm_to_check
="${ac_tool_prefix}nm"
5195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5196 lt_nm_to_check
="$lt_nm_to_check nm"
5198 for lt_tmp_nm
in $lt_nm_to_check; do
5199 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5200 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5202 test -z "$ac_dir" && ac_dir
=.
5203 tmp_nm
="$ac_dir/$lt_tmp_nm"
5204 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5205 # Check to see if the nm accepts a BSD-compat flag.
5206 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5207 # nm: unknown option "B" ignored
5208 # Tru64's nm complains that /dev/null is an invalid object file
5209 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5210 */dev
/null
* |
*'Invalid file or object type'*)
5211 lt_cv_path_NM
="$tmp_nm -B"
5215 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5217 lt_cv_path_NM
="$tmp_nm -p"
5221 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5222 continue # so that we can try to find one that supports BSD flags
5231 : ${lt_cv_path_NM=no}
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5235 $as_echo "$lt_cv_path_NM" >&6; }
5236 if test "$lt_cv_path_NM" != "no"; then
5239 # Didn't find any BSD compatible name lister, look for dumpbin.
5240 if test -n "$DUMPBIN"; then :
5241 # Let the user override the test.
5243 if test -n "$ac_tool_prefix"; then
5244 for ac_prog
in dumpbin
"link -dump"
5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -n "$DUMPBIN"; then
5254 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir
=.
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 DUMPBIN
=$ac_cv_prog_DUMPBIN
5274 if test -n "$DUMPBIN"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5276 $as_echo "$DUMPBIN" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 test -n "$DUMPBIN" && break
5286 if test -z "$DUMPBIN"; then
5287 ac_ct_DUMPBIN
=$DUMPBIN
5288 for ac_prog
in dumpbin
"link -dump"
5290 # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy
$ac_prog; ac_word
=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$ac_ct_DUMPBIN"; then
5298 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir
=.
5305 for ac_exec_ext
in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5318 if test -n "$ac_ct_DUMPBIN"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5320 $as_echo "$ac_ct_DUMPBIN" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 test -n "$ac_ct_DUMPBIN" && break
5330 if test "x$ac_ct_DUMPBIN" = x
; then
5333 case $cross_compiling:$ac_tool_warned in
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned
=yes ;;
5339 DUMPBIN
=$ac_ct_DUMPBIN
5343 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5345 DUMPBIN
="$DUMPBIN -symbols"
5353 if test "$DUMPBIN" != ":"; then
5357 test -z "$NM" && NM
=nm
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5365 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5366 if test "${lt_cv_nm_interface+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5369 lt_cv_nm_interface
="BSD nm"
5370 echo "int some_variable = 0;" > conftest.
$ac_ext
5371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5372 (eval "$ac_compile" 2>conftest.err
)
5373 cat conftest.err
>&5
5374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5376 cat conftest.err
>&5
5377 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5378 cat conftest.out
>&5
5379 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5380 lt_cv_nm_interface
="MS dumpbin"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5385 $as_echo "$lt_cv_nm_interface" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5388 $as_echo_n "checking whether ln -s works... " >&6; }
5390 if test "$LN_S" = "ln -s"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5395 $as_echo "no, using $LN_S" >&6; }
5398 # find the maximum length of command line arguments
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5400 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5409 # On DJGPP, this test can blow up pretty badly due to problems in libc
5410 # (any single argument exceeding 2000 bytes causes a buffer overrun
5411 # during glob expansion). Even if it were fixed, the result of this
5412 # check would be larger than it should be.
5413 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5417 # Under GNU Hurd, this test is not required because there is
5418 # no limit to the length of command line arguments.
5419 # Libtool will interpret -1 as no limit whatsoever
5420 lt_cv_sys_max_cmd_len
=-1;
5423 cygwin
* | mingw
* | cegcc
*)
5424 # On Win9x/ME, this test blows up -- it succeeds, but takes
5425 # about 5 minutes as the teststring grows exponentially.
5426 # Worse, since 9x/ME are not pre-emptively multitasking,
5427 # you end up with a "frozen" computer, even though with patience
5428 # the test eventually succeeds (with a max line length of 256k).
5429 # Instead, let's just punt: use the minimum linelength reported by
5430 # all of the supported platforms: 8192 (on NT/2K/XP).
5431 lt_cv_sys_max_cmd_len
=8192;
5435 # On MiNT this can take a long time and run out of memory.
5436 lt_cv_sys_max_cmd_len
=8192;
5440 # On AmigaOS with pdksh, this test takes hours, literally.
5441 # So we just punt and use a minimum line length of 8192.
5442 lt_cv_sys_max_cmd_len
=8192;
5445 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5446 # This has been around since 386BSD, at least. Likely further.
5447 if test -x /sbin
/sysctl
; then
5448 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5449 elif test -x /usr
/sbin
/sysctl
; then
5450 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5452 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5454 # And add a safety zone
5455 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5456 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5460 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5461 lt_cv_sys_max_cmd_len
=196608
5465 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5466 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5467 # nice to cause kernel panics so lets avoid the loop below.
5468 # First set a reasonable default.
5469 lt_cv_sys_max_cmd_len
=16384
5471 if test -x /sbin
/sysconfig
; then
5472 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5473 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5478 lt_cv_sys_max_cmd_len
=102400
5480 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5481 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5482 if test -n "$kargmax"; then
5483 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5485 lt_cv_sys_max_cmd_len
=32768
5489 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5490 if test -n "$lt_cv_sys_max_cmd_len"; then
5491 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5492 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5494 # Make teststring a little bigger before we do anything with it.
5495 # a 1K string should be a reasonable start.
5496 for i
in 1 2 3 4 5 6 7 8 ; do
5497 teststring
=$teststring$teststring
5499 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5500 # If test is not a shell built-in, we'll probably end up computing a
5501 # maximum length that is only half of the actual maximum length, but
5503 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5504 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5505 test $i != 17 # 1/2 MB should be enough
5508 teststring
=$teststring$teststring
5510 # Only check the string length outside the loop.
5511 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5513 # Add a significant safety factor because C++ compilers can tack on
5514 # massive amounts of additional arguments before passing them to the
5515 # linker. It appears as though 1/2 is a usable value.
5516 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5523 if test -n $lt_cv_sys_max_cmd_len ; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5525 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5528 $as_echo "none" >&6; }
5530 max_cmd_len
=$lt_cv_sys_max_cmd_len
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5542 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5543 # Try some XSI features
5546 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5548 && eval 'test $(( 1 + 1 )) -eq 2 \
5549 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5552 $as_echo "$xsi_shell" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5556 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5558 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5560 && lt_shell_append=yes
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5562 $as_echo "$lt_shell_append" >&6; }
5565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5575 # test EBCDIC or ASCII
5576 case `echo X|tr X '\101'` in
5577 A) # ASCII based system
5578 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5579 lt_SP2NL='tr \040 \012'
5580 lt_NL2SP='tr \015\012 \040\040'
5582 *) # EBCDIC based system
5583 lt_SP2NL='tr \100 \n'
5584 lt_NL2SP='tr \r\n \100\100'
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5597 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5598 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5599 $as_echo_n "(cached
) " >&6
5601 lt_cv_ld_reload_flag='-r'
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5604 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5605 reload_flag=$lt_cv_ld_reload_flag
5606 case $reload_flag in
5608 *) reload_flag=" $reload_flag" ;;
5610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5613 if test "$GCC" = yes; then
5614 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5633 $as_echo_n "checking
for $ac_word...
" >&6; }
5634 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5635 $as_echo_n "(cached
) " >&6
5637 if test -n "$OBJDUMP"; then
5638 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5657 OBJDUMP=$ac_cv_prog_OBJDUMP
5658 if test -n "$OBJDUMP"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5660 $as_echo "$OBJDUMP" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5663 $as_echo "no
" >&6; }
5668 if test -z "$ac_cv_prog_OBJDUMP"; then
5669 ac_ct_OBJDUMP=$OBJDUMP
5670 # Extract the first word of "objdump
", so it can be a program name with args.
5671 set dummy objdump; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5673 $as_echo_n "checking
for $ac_word...
" >&6; }
5674 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5675 $as_echo_n "(cached
) " >&6
5677 if test -n "$ac_ct_OBJDUMP"; then
5678 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5697 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5698 if test -n "$ac_ct_OBJDUMP"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5700 $as_echo "$ac_ct_OBJDUMP" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5703 $as_echo "no
" >&6; }
5706 if test "x
$ac_ct_OBJDUMP" = x; then
5709 case $cross_compiling:$ac_tool_warned in
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5712 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5713 ac_tool_warned=yes ;;
5715 OBJDUMP=$ac_ct_OBJDUMP
5718 OBJDUMP="$ac_cv_prog_OBJDUMP"
5721 test -z "$OBJDUMP" && OBJDUMP=objdump
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5732 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5733 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5734 $as_echo_n "(cached
) " >&6
5736 lt_cv_file_magic_cmd='$MAGIC_CMD'
5737 lt_cv_file_magic_test_file=
5738 lt_cv_deplibs_check_method='unknown'
5739 # Need to set the preceding variable on all platforms that support
5740 # interlibrary dependencies.
5741 # 'none' -- dependencies not supported.
5742 # `unknown' -- same as none, but documents that we really don't know.
5743 # 'pass_all' -- all dependencies passed with no checks.
5744 # 'test_compile' -- check by making test program.
5745 # 'file_magic [[regex]]' -- check by looking for files in library path
5746 # which responds to the $file_magic_cmd with a given extended regex.
5747 # If you have `file' or equivalent on your system and you're not sure
5748 # whether `pass_all' will *always* work, you probably want this one.
5752 lt_cv_deplibs_check_method=pass_all
5756 lt_cv_deplibs_check_method=pass_all
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5761 lt_cv_file_magic_cmd='/usr/bin/file -L'
5762 lt_cv_file_magic_test_file=/shlib/libc.so
5766 # func_win32_libid is a shell function defined in ltmain.sh
5767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5768 lt_cv_file_magic_cmd='func_win32_libid'
5772 # Base MSYS/MinGW do not provide the 'file' command needed by
5773 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5774 # unless we find 'file', for example because we are cross-compiling.
5775 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5776 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5778 lt_cv_file_magic_cmd='func_win32_libid'
5780 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5781 lt_cv_file_magic_cmd='$OBJDUMP -f'
5786 # use the weaker test based on 'objdump'. See mingw*.
5787 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5788 lt_cv_file_magic_cmd='$OBJDUMP -f'
5791 darwin* | rhapsody*)
5792 lt_cv_deplibs_check_method=pass_all
5795 freebsd* | dragonfly*)
5796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5799 # Not sure whether the presence of OpenBSD here was a mistake.
5800 # Let's accept both of them until this is cleared up.
5801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5807 lt_cv_deplibs_check_method=pass_all
5812 lt_cv_deplibs_check_method=pass_all
5816 lt_cv_deplibs_check_method=pass_all
5819 hpux10.20* | hpux11*)
5820 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5827 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]'
5828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5842 irix5* | irix6* | nonstopux*)
5844 *-32|*"-32 ") libmagic=32-bit;;
5845 *-n32|*"-n32 ") libmagic=N32;;
5846 *-64|*"-64 ") libmagic=64-bit;;
5847 *) libmagic=never-match;;
5849 lt_cv_deplibs_check_method=pass_all
5852 # This must be Linux ELF.
5853 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5854 lt_cv_deplibs_check_method=pass_all
5858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5867 lt_cv_file_magic_cmd=/usr/bin/file
5868 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5872 lt_cv_deplibs_check_method=pass_all
5876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5883 osf3* | osf4* | osf5*)
5884 lt_cv_deplibs_check_method=pass_all
5888 lt_cv_deplibs_check_method=pass_all
5892 lt_cv_deplibs_check_method=pass_all
5895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5896 lt_cv_deplibs_check_method=pass_all
5900 case $host_vendor in
5902 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]'
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5906 lt_cv_deplibs_check_method=pass_all
5909 lt_cv_file_magic_cmd='/bin/file'
5910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5913 lt_cv_file_magic_cmd='/bin/file'
5914 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5915 lt_cv_file_magic_test_file=/lib/libc.so
5918 lt_cv_deplibs_check_method=pass_all
5921 lt_cv_deplibs_check_method=pass_all
5927 lt_cv_deplibs_check_method=pass_all
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5933 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5934 file_magic_cmd=$lt_cv_file_magic_cmd
5935 deplibs_check_method=$lt_cv_deplibs_check_method
5936 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5949 if test -n "$ac_tool_prefix"; then
5950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}ar; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5953 $as_echo_n "checking
for $ac_word...
" >&6; }
5954 if test "${ac_cv_prog_AR+set}" = set; then :
5955 $as_echo_n "(cached
) " >&6
5957 if test -n "$AR"; then
5958 ac_cv_prog_AR="$AR" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_AR="${ac_tool_prefix}ar"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5978 if test -n "$AR"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5980 $as_echo "$AR" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5983 $as_echo "no
" >&6; }
5988 if test -z "$ac_cv_prog_AR"; then
5990 # Extract the first word of "ar", so it can be a program name with args.
5991 set dummy ar; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5993 $as_echo_n "checking
for $ac_word...
" >&6; }
5994 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5995 $as_echo_n "(cached
) " >&6
5997 if test -n "$ac_ct_AR"; then
5998 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007 ac_cv_prog_ac_ct_AR="ar"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6017 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6018 if test -n "$ac_ct_AR"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6020 $as_echo "$ac_ct_AR" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6023 $as_echo "no
" >&6; }
6026 if test "x
$ac_ct_AR" = x; then
6029 case $cross_compiling:$ac_tool_warned in
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6032 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6033 ac_tool_warned=yes ;;
6041 test -z "$AR" && AR=ar
6042 test -z "$AR_FLAGS" && AR_FLAGS=cru
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}strip; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6058 $as_echo_n "checking
for $ac_word...
" >&6; }
6059 if test "${ac_cv_prog_STRIP+set}" = set; then :
6060 $as_echo_n "(cached
) " >&6
6062 if test -n "$STRIP"; then
6063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6082 STRIP=$ac_cv_prog_STRIP
6083 if test -n "$STRIP"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6085 $as_echo "$STRIP" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6088 $as_echo "no
" >&6; }
6093 if test -z "$ac_cv_prog_STRIP"; then
6095 # Extract the first word of "strip
", so it can be a program name with args.
6096 set dummy strip; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6098 $as_echo_n "checking
for $ac_word...
" >&6; }
6099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6100 $as_echo_n "(cached
) " >&6
6102 if test -n "$ac_ct_STRIP"; then
6103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_ac_ct_STRIP="strip
"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6125 $as_echo "$ac_ct_STRIP" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6128 $as_echo "no
" >&6; }
6131 if test "x
$ac_ct_STRIP" = x; then
6134 case $cross_compiling:$ac_tool_warned in
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6137 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6138 ac_tool_warned=yes ;;
6143 STRIP="$ac_cv_prog_STRIP"
6146 test -z "$STRIP" && STRIP=:
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6157 $as_echo_n "checking
for $ac_word...
" >&6; }
6158 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6159 $as_echo_n "(cached
) " >&6
6161 if test -n "$RANLIB"; then
6162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6181 RANLIB=$ac_cv_prog_RANLIB
6182 if test -n "$RANLIB"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6184 $as_echo "$RANLIB" >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6187 $as_echo "no
" >&6; }
6192 if test -z "$ac_cv_prog_RANLIB"; then
6193 ac_ct_RANLIB=$RANLIB
6194 # Extract the first word of "ranlib
", so it can be a program name with args.
6195 set dummy ranlib; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6197 $as_echo_n "checking
for $ac_word...
" >&6; }
6198 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6199 $as_echo_n "(cached
) " >&6
6201 if test -n "$ac_ct_RANLIB"; then
6202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6222 if test -n "$ac_ct_RANLIB"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6224 $as_echo "$ac_ct_RANLIB" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6227 $as_echo "no
" >&6; }
6230 if test "x
$ac_ct_RANLIB" = x; then
6233 case $cross_compiling:$ac_tool_warned in
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6236 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6237 ac_tool_warned=yes ;;
6239 RANLIB=$ac_ct_RANLIB
6242 RANLIB="$ac_cv_prog_RANLIB"
6245 test -z "$RANLIB" && RANLIB=:
6252 # Determine commands to create old-style static archives.
6253 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6254 old_postinstall_cmds='chmod 644 $oldlib'
6255 old_postuninstall_cmds=
6257 if test -n "$RANLIB"; then
6260 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6263 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6266 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6271 lock_old_archive_extraction=yes ;;
6273 lock_old_archive_extraction=no ;;
6314 # If no C compiler was specified, use CC.
6317 # If no C compiler flags were specified, use CFLAGS.
6318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6320 # Allow CC to be a program name with arguments.
6324 # Check for command to grab the raw symbol name followed by C symbol from nm.
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6326 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6327 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6328 $as_echo_n "(cached
) " >&6
6331 # These are sane defaults that work on at least a few old systems.
6332 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6334 # Character class describing NM global symbol codes.
6335 symcode='[BCDEGRST]'
6337 # Regexp to match symbols that can be accessed directly from C.
6338 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6340 # Define system-specific variables.
6345 cygwin* | mingw* | pw32* | cegcc*)
6346 symcode='[ABCDGISTW]'
6349 if test "$host_cpu" = ia64; then
6350 symcode='[ABCDEGRST]'
6354 symcode='[BCDEGRST]'
6357 symcode='[BCDEGQRST]'
6368 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6376 # If we're using GNU nm, then use its standard symbol codes.
6377 case `$NM -V 2>&1` in
6378 *GNU* | *'with BFD'*)
6379 symcode='[ABCDGIRSTW]' ;;
6382 # Transform an extracted symbol line into a proper C declaration.
6383 # Some systems (esp. on ia64) link data and code symbols differently,
6384 # so use this general approach.
6385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6387 # Transform an extracted symbol line into symbol name and symbol address
6388 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6389 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'"
6391 # Handle CRLF in mingw tool chain
6395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6399 # Try without a prefix underscore, then with it.
6400 for ac_symprfx in "" "_
"; do
6402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6403 symxfrm="\\1 $ac_symprfx\\2 \\2"
6405 # Write the raw and C identifiers.
6406 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6407 # Fake it for dumpbin and say T for any non-static function
6408 # and D for any global variable.
6409 # Also find C++ and __fastcall symbols from MSVC++,
6410 # which start with @ or ?.
6411 lt_cv_sys_global_symbol_pipe="$AWK '"\
6412 " {last_section=section; section=\$ 3};"\
6413 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6414 " \$ 0!~/External *\|/{next};"\
6415 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6416 " {if(hide[section]) next};"\
6417 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6418 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6419 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6420 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6421 " ' prfx
=^
$ac_symprfx"
6423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6426 # Check to see that the pipe works correctly.
6430 cat > conftest.$ac_ext <<_LT_EOF
6435 void nm_test_func(void);
6436 void nm_test_func(void){}
6440 int main(){nm_test_var='a';nm_test_func();return(0);}
6443 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 # Now try to grab the symbols.
6450 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6451 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6454 test $ac_status = 0; } && test -s "$nlist"; then
6455 # Try sorting and uniquifying the output.
6456 if sort "$nlist" | uniq > "$nlist"T; then
6457 mv -f "$nlist"T "$nlist"
6462 # Make sure that we snagged all the symbols we need.
6463 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6464 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6465 cat <<_LT_EOF > conftest.$ac_ext
6471 # Now generate the symbol file.
6472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6474 cat <<_LT_EOF >> conftest.$ac_ext
6476 /* The mapping between symbol names and symbols. */
6481 lt__PROGRAM__LTX_preloaded_symbols[] =
6483 { "@PROGRAM@
", (void *) 0 },
6485 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6486 cat <<\_LT_EOF >> conftest.$ac_ext
6490 /* This works around a problem in FreeBSD linker */
6491 #ifdef FREEBSD_WORKAROUND
6492 static const void *lt_preloaded_setup() {
6493 return lt__PROGRAM__LTX_preloaded_symbols;
6501 # Now try linking the two files.
6502 mv conftest.$ac_objext conftstm.$ac_objext
6503 lt_save_LIBS="$LIBS"
6504 lt_save_CFLAGS="$CFLAGS"
6505 LIBS="conftstm.
$ac_objext"
6506 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6507 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6508 (eval $ac_link) 2>&5
6510 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6511 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6514 LIBS="$lt_save_LIBS"
6515 CFLAGS="$lt_save_CFLAGS"
6517 echo "cannot
find nm_test_func
in $nlist" >&5
6520 echo "cannot
find nm_test_var
in $nlist" >&5
6523 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6526 echo "$progname: failed program was
:" >&5
6527 cat conftest.$ac_ext >&5
6529 rm -rf conftest* conftst*
6531 # Do not use the global_symbol_pipe unless it works.
6532 if test "$pipe_works" = yes; then
6535 lt_cv_sys_global_symbol_pipe=
6541 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6542 lt_cv_sys_global_symbol_to_cdecl=
6544 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6546 $as_echo "failed
" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6549 $as_echo "ok
" >&6; }
6574 # Check whether --enable-libtool-lock was given.
6575 if test "${enable_libtool_lock+set}" = set; then :
6576 enableval=$enable_libtool_lock;
6579 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6581 # Some flags need to be propagated to the compiler or linker for good
6585 # Find out which ABI we are using.
6586 echo 'int i;' > conftest.$ac_ext
6587 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588 (eval $ac_compile) 2>&5
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6591 test $ac_status = 0; }; then
6592 case `/usr/bin/file conftest.$ac_objext` in
6604 # Find out which ABI we are using.
6605 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6606 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6607 (eval $ac_compile) 2>&5
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6610 test $ac_status = 0; }; then
6611 if test "$lt_cv_prog_gnu_ld" = yes; then
6612 case `/usr/bin/file conftest.$ac_objext` in
6614 LD="${LD-ld} -melf32bsmip"
6617 LD="${LD-ld} -melf32bmipn32"
6620 LD="${LD-ld} -melf64bmip"
6624 case `/usr/bin/file conftest.$ac_objext` in
6640 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6641 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6642 # Find out which ABI we are using.
6643 echo 'int i;' > conftest.$ac_ext
6644 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6645 (eval $ac_compile) 2>&5
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6648 test $ac_status = 0; }; then
6649 case `/usr/bin/file conftest.o` in
6652 x86_64-*kfreebsd*-gnu)
6653 LD="${LD-ld} -m elf_i386_fbsd
"
6656 case `/usr/bin/file conftest.o` in
6658 LD="${LD-ld} -m elf32_x86_64
"
6661 LD="${LD-ld} -m elf_i386
"
6665 powerpc64le-*linux*)
6666 LD="${LD-ld} -m elf32lppclinux
"
6669 LD="${LD-ld} -m elf32ppclinux
"
6672 LD="${LD-ld} -m elf_s390
"
6675 LD="${LD-ld} -m elf32_sparc
"
6681 x86_64-*kfreebsd*-gnu)
6682 LD="${LD-ld} -m elf_x86_64_fbsd
"
6685 LD="${LD-ld} -m elf_x86_64
"
6688 LD="${LD-ld} -m elf64lppc
"
6691 LD="${LD-ld} -m elf64ppc
"
6693 s390*-*linux*|s390*-*tpf*)
6694 LD="${LD-ld} -m elf64_s390
"
6697 LD="${LD-ld} -m elf64_sparc
"
6707 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6708 SAVE_CFLAGS="$CFLAGS"
6709 CFLAGS="$CFLAGS -belf"
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6711 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6712 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6713 $as_echo_n "(cached
) " >&6
6716 ac_cpp='$CPP $CPPFLAGS'
6717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6732 if ac_fn_c_try_link "$LINENO"; then :
6733 lt_cv_cc_needs_belf=yes
6735 lt_cv_cc_needs_belf=no
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6740 ac_cpp='$CPP $CPPFLAGS'
6741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6747 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6748 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6749 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6750 CFLAGS="$SAVE_CFLAGS"
6754 # Find out which ABI we are using.
6755 echo 'int i;' > conftest.$ac_ext
6756 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757 (eval $ac_compile) 2>&5
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6760 test $ac_status = 0; }; then
6761 case `/usr/bin/file conftest.o` in
6763 case $lt_cv_prog_gnu_ld in
6764 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6766 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6778 need_locks="$enable_libtool_lock"
6782 rhapsody* | darwin*)
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6787 $as_echo_n "checking
for $ac_word...
" >&6; }
6788 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6789 $as_echo_n "(cached
) " >&6
6791 if test -n "$DSYMUTIL"; then
6792 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6811 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6812 if test -n "$DSYMUTIL"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6814 $as_echo "$DSYMUTIL" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6817 $as_echo "no
" >&6; }
6822 if test -z "$ac_cv_prog_DSYMUTIL"; then
6823 ac_ct_DSYMUTIL=$DSYMUTIL
6824 # Extract the first word of "dsymutil
", so it can be a program name with args.
6825 set dummy dsymutil; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6827 $as_echo_n "checking
for $ac_word...
" >&6; }
6828 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6829 $as_echo_n "(cached
) " >&6
6831 if test -n "$ac_ct_DSYMUTIL"; then
6832 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6851 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6852 if test -n "$ac_ct_DSYMUTIL"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6854 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6857 $as_echo "no
" >&6; }
6860 if test "x
$ac_ct_DSYMUTIL" = x; then
6863 case $cross_compiling:$ac_tool_warned in
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6866 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6867 ac_tool_warned=yes ;;
6869 DSYMUTIL=$ac_ct_DSYMUTIL
6872 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6879 $as_echo_n "checking
for $ac_word...
" >&6; }
6880 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6881 $as_echo_n "(cached
) " >&6
6883 if test -n "$NMEDIT"; then
6884 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6903 NMEDIT=$ac_cv_prog_NMEDIT
6904 if test -n "$NMEDIT"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6906 $as_echo "$NMEDIT" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6909 $as_echo "no
" >&6; }
6914 if test -z "$ac_cv_prog_NMEDIT"; then
6915 ac_ct_NMEDIT=$NMEDIT
6916 # Extract the first word of "nmedit
", so it can be a program name with args.
6917 set dummy nmedit; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6919 $as_echo_n "checking
for $ac_word...
" >&6; }
6920 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6921 $as_echo_n "(cached
) " >&6
6923 if test -n "$ac_ct_NMEDIT"; then
6924 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6943 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6944 if test -n "$ac_ct_NMEDIT"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6946 $as_echo "$ac_ct_NMEDIT" >&6; }
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6949 $as_echo "no
" >&6; }
6952 if test "x
$ac_ct_NMEDIT" = x; then
6955 case $cross_compiling:$ac_tool_warned in
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6958 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6959 ac_tool_warned=yes ;;
6961 NMEDIT=$ac_ct_NMEDIT
6964 NMEDIT="$ac_cv_prog_NMEDIT"
6967 if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6969 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6971 $as_echo_n "checking
for $ac_word...
" >&6; }
6972 if test "${ac_cv_prog_LIPO+set}" = set; then :
6973 $as_echo_n "(cached
) " >&6
6975 if test -n "$LIPO"; then
6976 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6995 LIPO=$ac_cv_prog_LIPO
6996 if test -n "$LIPO"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6998 $as_echo "$LIPO" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7001 $as_echo "no
" >&6; }
7006 if test -z "$ac_cv_prog_LIPO"; then
7008 # Extract the first word of "lipo
", so it can be a program name with args.
7009 set dummy lipo; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7011 $as_echo_n "checking
for $ac_word...
" >&6; }
7012 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7013 $as_echo_n "(cached
) " >&6
7015 if test -n "$ac_ct_LIPO"; then
7016 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_ac_ct_LIPO="lipo
"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7035 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7036 if test -n "$ac_ct_LIPO"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7038 $as_echo "$ac_ct_LIPO" >&6; }
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7041 $as_echo "no
" >&6; }
7044 if test "x
$ac_ct_LIPO" = x; then
7047 case $cross_compiling:$ac_tool_warned in
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7050 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7051 ac_tool_warned=yes ;;
7056 LIPO="$ac_cv_prog_LIPO"
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}otool; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7063 $as_echo_n "checking
for $ac_word...
" >&6; }
7064 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7065 $as_echo_n "(cached
) " >&6
7067 if test -n "$OTOOL"; then
7068 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7087 OTOOL=$ac_cv_prog_OTOOL
7088 if test -n "$OTOOL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7090 $as_echo "$OTOOL" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7093 $as_echo "no
" >&6; }
7098 if test -z "$ac_cv_prog_OTOOL"; then
7100 # Extract the first word of "otool
", so it can be a program name with args.
7101 set dummy otool; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7103 $as_echo_n "checking
for $ac_word...
" >&6; }
7104 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7105 $as_echo_n "(cached
) " >&6
7107 if test -n "$ac_ct_OTOOL"; then
7108 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_ac_ct_OTOOL="otool
"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7127 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7128 if test -n "$ac_ct_OTOOL"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7130 $as_echo "$ac_ct_OTOOL" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7133 $as_echo "no
" >&6; }
7136 if test "x
$ac_ct_OTOOL" = x; then
7139 case $cross_compiling:$ac_tool_warned in
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7142 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7143 ac_tool_warned=yes ;;
7148 OTOOL="$ac_cv_prog_OTOOL"
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7155 $as_echo_n "checking
for $ac_word...
" >&6; }
7156 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7157 $as_echo_n "(cached
) " >&6
7159 if test -n "$OTOOL64"; then
7160 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7179 OTOOL64=$ac_cv_prog_OTOOL64
7180 if test -n "$OTOOL64"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7182 $as_echo "$OTOOL64" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7185 $as_echo "no
" >&6; }
7190 if test -z "$ac_cv_prog_OTOOL64"; then
7191 ac_ct_OTOOL64=$OTOOL64
7192 # Extract the first word of "otool64
", so it can be a program name with args.
7193 set dummy otool64; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7195 $as_echo_n "checking
for $ac_word...
" >&6; }
7196 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7197 $as_echo_n "(cached
) " >&6
7199 if test -n "$ac_ct_OTOOL64"; then
7200 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7219 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7220 if test -n "$ac_ct_OTOOL64"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7222 $as_echo "$ac_ct_OTOOL64" >&6; }
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7225 $as_echo "no
" >&6; }
7228 if test "x
$ac_ct_OTOOL64" = x; then
7231 case $cross_compiling:$ac_tool_warned in
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7234 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7235 ac_tool_warned=yes ;;
7237 OTOOL64=$ac_ct_OTOOL64
7240 OTOOL64="$ac_cv_prog_OTOOL64"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7270 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7271 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7272 $as_echo_n "(cached
) " >&6
7274 lt_cv_apple_cc_single_mod=no
7275 if test -z "${LT_MULTI_MODULE}"; then
7276 # By default we will add the -single_module flag. You can override
7277 # by either setting the environment variable LT_MULTI_MODULE
7278 # non-empty at configure time, or by adding -multi_module to the
7280 rm -rf libconftest.dylib*
7281 echo "int foo
(void
){return 1;}" > conftest.c
7282 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7283 -dynamiclib -Wl,-single_module conftest.c
" >&5
7284 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7285 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7287 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7288 lt_cv_apple_cc_single_mod=yes
7290 cat conftest.err >&5
7292 rm -rf libconftest.dylib*
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7297 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7299 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7300 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7301 $as_echo_n "(cached
) " >&6
7303 lt_cv_ld_exported_symbols_list=no
7304 save_LDFLAGS=$LDFLAGS
7305 echo "_main
" > conftest.sym
7306 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7318 if ac_fn_c_try_link "$LINENO"; then :
7319 lt_cv_ld_exported_symbols_list=yes
7321 lt_cv_ld_exported_symbols_list=no
7323 rm -f core conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7325 LDFLAGS="$save_LDFLAGS"
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7329 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7331 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7332 if test "${lt_cv_ld_force_load+set}" = set; then :
7333 $as_echo_n "(cached
) " >&6
7335 lt_cv_ld_force_load=no
7336 cat > conftest.c << _LT_EOF
7337 int forced_loaded() { return 2;}
7339 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7340 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7341 echo "$AR cru libconftest.a conftest.o
" >&5
7342 $AR cru libconftest.a conftest.o 2>&5
7343 cat > conftest.c << _LT_EOF
7344 int main() { return 0;}
7346 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7347 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7349 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7350 lt_cv_ld_force_load=yes
7352 cat conftest.err >&5
7354 rm -f conftest.err libconftest.a conftest conftest.c
7355 rm -rf conftest.dSYM
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7359 $as_echo "$lt_cv_ld_force_load" >&6; }
7361 rhapsody* | darwin1.[012])
7362 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7364 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7365 darwin*) # darwin 5.x on
7366 # if running on 10.5 or later, the deployment target defaults
7367 # to the OS version, if on x86, and 10.4, the deployment
7368 # target defaults to 10.4. Don't you love it?
7369 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7370 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7371 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7373 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7375 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7379 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7380 _lt_dar_single_mod='$single_module'
7382 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7383 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7385 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7387 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7388 _lt_dsymutil='~$DSYMUTIL $lib || :'
7396 ac_cpp='$CPP $CPPFLAGS'
7397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7401 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7402 # On Suns, sometimes $CPP names a directory.
7403 if test -n "$CPP" && test -d "$CPP"; then
7406 if test -z "$CPP"; then
7407 if test "${ac_cv_prog_CPP+set}" = set; then :
7408 $as_echo_n "(cached
) " >&6
7410 # Double quotes because CPP needs to be expanded
7411 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7414 for ac_c_preproc_warn_flag in '' yes
7416 # Use a header file that comes with gcc, so configuring glibc
7417 # with a fresh cross-compiler works.
7418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7419 # <limits.h> exists even on freestanding compilers.
7420 # On the NeXT, cc -E runs the code through the compiler's parser,
7421 # not just through cpp. "Syntax error
" is here to catch this case.
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7425 # include <limits.h>
7427 # include <assert.h>
7431 if ac_fn_c_try_cpp "$LINENO"; then :
7434 # Broken: fails on valid input.
7437 rm -f conftest.err conftest.$ac_ext
7439 # OK, works on sane cases. Now check whether nonexistent headers
7440 # can be detected and how.
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #include <ac_nonexistent.h>
7445 if ac_fn_c_try_cpp "$LINENO"; then :
7446 # Broken: success on invalid input.
7449 # Passes both tests.
7453 rm -f conftest.err conftest.$ac_ext
7456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7457 rm -f conftest.err conftest.$ac_ext
7458 if $ac_preproc_ok; then :
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7471 $as_echo "$CPP" >&6; }
7473 for ac_c_preproc_warn_flag in '' yes
7475 # Use a header file that comes with gcc, so configuring glibc
7476 # with a fresh cross-compiler works.
7477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7478 # <limits.h> exists even on freestanding compilers.
7479 # On the NeXT, cc -E runs the code through the compiler's parser,
7480 # not just through cpp. "Syntax error
" is here to catch this case.
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7484 # include <limits.h>
7486 # include <assert.h>
7490 if ac_fn_c_try_cpp "$LINENO"; then :
7493 # Broken: fails on valid input.
7496 rm -f conftest.err conftest.$ac_ext
7498 # OK, works on sane cases. Now check whether nonexistent headers
7499 # can be detected and how.
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <ac_nonexistent.h>
7504 if ac_fn_c_try_cpp "$LINENO"; then :
7505 # Broken: success on invalid input.
7508 # Passes both tests.
7512 rm -f conftest.err conftest.$ac_ext
7515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7516 rm -f conftest.err conftest.$ac_ext
7517 if $ac_preproc_ok; then :
7520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7522 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7523 See \`config.log' for more details.
" "$LINENO" 5; }
7527 ac_cpp='$CPP $CPPFLAGS'
7528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7534 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7535 if test "${ac_cv_header_stdc+set}" = set; then :
7536 $as_echo_n "(cached
) " >&6
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 ac_cv_header_stdc=yes
7556 ac_cv_header_stdc=no
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 if test $ac_cv_header_stdc = yes; then
7561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7567 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7568 $EGREP "memchr
" >/dev/null 2>&1; then :
7571 ac_cv_header_stdc=no
7577 if test $ac_cv_header_stdc = yes; then
7578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7584 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7585 $EGREP "free
" >/dev/null 2>&1; then :
7588 ac_cv_header_stdc=no
7594 if test $ac_cv_header_stdc = yes; then
7595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7596 if test "$cross_compiling" = yes; then :
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7603 #if ((' ' & 0x0FF) == 0x020)
7604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7607 # define ISLOWER(c) \
7608 (('a' <= (c) && (c) <= 'i') \
7609 || ('j' <= (c) && (c) <= 'r') \
7610 || ('s' <= (c) && (c) <= 'z'))
7611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7619 for (i = 0; i < 256; i++)
7620 if (XOR (islower (i), ISLOWER (i))
7621 || toupper (i) != TOUPPER (i))
7626 if ac_fn_c_try_run "$LINENO"; then :
7629 ac_cv_header_stdc=no
7631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7632 conftest.$ac_objext conftest.beam conftest.$ac_ext
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7638 $as_echo "$ac_cv_header_stdc" >&6; }
7639 if test $ac_cv_header_stdc = yes; then
7641 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7645 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7646 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7647 inttypes.h stdint.h unistd.h
7649 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7650 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7652 eval as_val
=\$
$as_ac_Header
7653 if test "x$as_val" = x
""yes; then :
7654 cat >>confdefs.h
<<_ACEOF
7655 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663 for ac_header
in dlfcn.h
7665 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7667 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7668 cat >>confdefs.h
<<_ACEOF
7669 #define HAVE_DLFCN_H 1
7690 # Check whether --enable-shared was given.
7691 if test "${enable_shared+set}" = set; then :
7692 enableval
=$enable_shared; p
=${PACKAGE-default}
7694 yes) enable_shared
=yes ;;
7695 no
) enable_shared
=no
;;
7698 # Look at the argument we got. We use all the common list separators.
7699 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7700 for pkg
in $enableval; do
7702 if test "X$pkg" = "X$p"; then
7721 # Check whether --enable-static was given.
7722 if test "${enable_static+set}" = set; then :
7723 enableval
=$enable_static; p
=${PACKAGE-default}
7725 yes) enable_static
=yes ;;
7726 no
) enable_static
=no
;;
7729 # Look at the argument we got. We use all the common list separators.
7730 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7731 for pkg
in $enableval; do
7733 if test "X$pkg" = "X$p"; then
7753 # Check whether --with-pic was given.
7754 if test "${with_pic+set}" = set; then :
7755 withval
=$with_pic; pic_mode
="$withval"
7761 test -z "$pic_mode" && pic_mode
=default
7769 # Check whether --enable-fast-install was given.
7770 if test "${enable_fast_install+set}" = set; then :
7771 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7773 yes) enable_fast_install
=yes ;;
7774 no
) enable_fast_install
=no
;;
7776 enable_fast_install
=no
7777 # Look at the argument we got. We use all the common list separators.
7778 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7779 for pkg
in $enableval; do
7781 if test "X$pkg" = "X$p"; then
7782 enable_fast_install
=yes
7789 enable_fast_install
=yes
7802 # This can be used to rebuild libtool when needed
7803 LIBTOOL_DEPS
="$ltmain"
7805 # Always use our own libtool.
7806 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7833 test -z "$LN_S" && LN_S
="ln -s"
7848 if test -n "${ZSH_VERSION+set}" ; then
7849 setopt NO_GLOB_SUBST
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7853 $as_echo_n "checking for objdir... " >&6; }
7854 if test "${lt_cv_objdir+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7857 rm -f .libs
2>/dev
/null
7858 mkdir .libs
2>/dev
/null
7859 if test -d .libs
; then
7862 # MS-DOS does not allow filenames that begin with a dot.
7865 rmdir .libs
2>/dev
/null
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7868 $as_echo "$lt_cv_objdir" >&6; }
7869 objdir
=$lt_cv_objdir
7875 cat >>confdefs.h
<<_ACEOF
7876 #define LT_OBJDIR "$lt_cv_objdir/"
7884 # AIX sometimes has problems with the GCC collect2 program. For some
7885 # reason, if we set the COLLECT_NAMES environment variable, the problems
7886 # vanish in a puff of smoke.
7887 if test "X${COLLECT_NAMES+set}" != Xset
; then
7889 export COLLECT_NAMES
7896 can_build_shared
=yes
7898 # All known linkers require a `.a' archive for static linking (except MSVC,
7899 # which needs '.lib').
7902 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7905 old_CFLAGS
="$CFLAGS"
7907 # Set sane defaults for various variables
7908 test -z "$CC" && CC
=cc
7909 test -z "$LTCC" && LTCC
=$CC
7910 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7911 test -z "$LD" && LD
=ld
7912 test -z "$ac_objext" && ac_objext
=o
7914 for cc_temp
in $compiler""; do
7916 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7917 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7922 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7925 # Only perform the check for file, if the check method requires it
7926 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7927 case $deplibs_check_method in
7929 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7931 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7937 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7940 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7941 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7942 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7943 for ac_dir
in $ac_dummy; do
7945 test -z "$ac_dir" && ac_dir
=.
7946 if test -f $ac_dir/${ac_tool_prefix}file; then
7947 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7948 if test -n "$file_magic_test_file"; then
7949 case $deplibs_check_method in
7951 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7952 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7953 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7954 $EGREP "$file_magic_regex" > /dev
/null
; then
7959 *** Warning: the command libtool uses to detect shared libraries,
7960 *** $file_magic_cmd, produces output that libtool cannot recognize.
7961 *** The result is that libtool may fail to recognize shared libraries
7962 *** as such. This will affect the creation of libtool libraries that
7963 *** depend on shared libraries, but programs linked with such libtool
7964 *** libraries will work regardless of this problem. Nevertheless, you
7965 *** may want to report the problem to your system manager and/or to
7966 *** bug-libtool@gnu.org
7976 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7981 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7982 if test -n "$MAGIC_CMD"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7984 $as_echo "$MAGIC_CMD" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7994 if test -z "$lt_cv_path_MAGIC_CMD"; then
7995 if test -n "$ac_tool_prefix"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7997 $as_echo_n "checking for file... " >&6; }
7998 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8003 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8006 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8007 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8008 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8009 for ac_dir
in $ac_dummy; do
8011 test -z "$ac_dir" && ac_dir
=.
8012 if test -f $ac_dir/file; then
8013 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8014 if test -n "$file_magic_test_file"; then
8015 case $deplibs_check_method in
8017 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8018 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8019 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8020 $EGREP "$file_magic_regex" > /dev
/null
; then
8025 *** Warning: the command libtool uses to detect shared libraries,
8026 *** $file_magic_cmd, produces output that libtool cannot recognize.
8027 *** The result is that libtool may fail to recognize shared libraries
8028 *** as such. This will affect the creation of libtool libraries that
8029 *** depend on shared libraries, but programs linked with such libtool
8030 *** libraries will work regardless of this problem. Nevertheless, you
8031 *** may want to report the problem to your system manager and/or to
8032 *** bug-libtool@gnu.org
8042 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8047 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8048 if test -n "$MAGIC_CMD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8050 $as_echo "$MAGIC_CMD" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8066 # Use C for the default configuration in the libtool script
8070 ac_cpp
='$CPP $CPPFLAGS'
8071 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8072 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8073 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8076 # Source file extension for C test sources.
8079 # Object file extension for compiled C test sources.
8083 # Code to be used in simple compile tests
8084 lt_simple_compile_test_code
="int some_variable = 0;"
8086 # Code to be used in simple link tests
8087 lt_simple_link_test_code
='int main(){return(0);}'
8095 # If no C compiler was specified, use CC.
8098 # If no C compiler flags were specified, use CFLAGS.
8099 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8101 # Allow CC to be a program name with arguments.
8104 # Save the default compiler, since it gets overwritten when the other
8105 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8106 compiler_DEFAULT
=$CC
8108 # save warnings/boilerplate of simple test code
8109 ac_outfile
=conftest.
$ac_objext
8110 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8111 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8112 _lt_compiler_boilerplate
=`cat conftest.err`
8115 ac_outfile
=conftest.
$ac_objext
8116 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8117 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8118 _lt_linker_boilerplate
=`cat conftest.err`
8123 ## There is no encapsulation within the following macros, do not change
8124 ## the running order or otherwise move them around unless you know exactly
8125 ## what you are doing...
8126 if test -n "$compiler"; then
8128 lt_prog_compiler_no_builtin_flag
=
8130 if test "$GCC" = yes; then
8131 case $cc_basename in
8133 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8135 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8139 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8140 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8143 lt_cv_prog_compiler_rtti_exceptions
=no
8144 ac_outfile
=conftest.
$ac_objext
8145 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8146 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8147 # Insert the option either (1) after the last *FLAGS variable, or
8148 # (2) before a word containing "conftest.", or (3) at the end.
8149 # Note that $ac_compile itself does not contain backslashes and begins
8150 # with a dollar sign (not a hyphen), so the echo should work correctly.
8151 # The option is referenced via a variable to avoid confusing sed.
8152 lt_compile
=`echo "$ac_compile" | $SED \
8153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155 -e 's:$: $lt_compiler_flag:'`
8156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8157 (eval "$lt_compile" 2>conftest.err
)
8159 cat conftest.err
>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 if (exit $ac_status) && test -s "$ac_outfile"; then
8162 # The compiler can only warn and ignore the option if not recognized
8163 # So say no if there are warnings other than the usual output.
8164 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8165 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8166 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8167 lt_cv_prog_compiler_rtti_exceptions
=yes
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8174 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8176 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8177 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8189 lt_prog_compiler_wl
=
8190 lt_prog_compiler_pic
=
8191 lt_prog_compiler_static
=
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8194 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8196 if test "$GCC" = yes; then
8197 lt_prog_compiler_wl
='-Wl,'
8198 lt_prog_compiler_static
='-static'
8202 # All AIX code is PIC.
8203 if test "$host_cpu" = ia64
; then
8204 # AIX 5 now supports IA64 processor
8205 lt_prog_compiler_static
='-Bstatic'
8207 lt_prog_compiler_pic
='-fPIC'
8213 # see comment about AmigaOS4 .so support
8214 lt_prog_compiler_pic
='-fPIC'
8217 # FIXME: we need at least 68020 code to build shared libraries, but
8218 # adding the `-m68020' flag to GCC prevents building anything better,
8220 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8225 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8226 # PIC is the default for these OSes.
8229 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8230 # This hack is so that the source file can tell whether it is being
8231 # built for inclusion in a dll (and should export symbols for example).
8232 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8233 # (--disable-auto-import) libraries
8234 lt_prog_compiler_pic
='-DDLL_EXPORT'
8237 darwin
* | rhapsody
*)
8238 # PIC is the default on this platform
8239 # Common symbols not allowed in MH_DYLIB files
8240 lt_prog_compiler_pic
='-fno-common'
8244 # PIC is the default for Haiku.
8245 # The "-static" flag exists, but is broken.
8246 lt_prog_compiler_static
=
8250 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8251 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8252 # sets the default TLS model and affects inlining.
8258 lt_prog_compiler_pic
='-fPIC'
8264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8265 # Instead, we relocate shared libraries at runtime.
8269 # Just because we use GCC doesn't mean we suddenly get shared libraries
8270 # on systems that don't support them.
8271 lt_prog_compiler_can_build_shared
=no
8276 # QNX uses GNU C++, but need to define -shared option too, otherwise
8278 lt_prog_compiler_pic
='-fPIC -shared'
8282 if test -d /usr
/nec
; then
8283 lt_prog_compiler_pic
=-Kconform_pic
8288 lt_prog_compiler_pic
='-fPIC'
8292 case $cc_basename in
8293 nvcc
*) # Cuda Compiler Driver 2.2
8294 lt_prog_compiler_wl
='-Xlinker '
8295 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8299 # PORTME Check for flag to pass linker flags through the system compiler.
8302 lt_prog_compiler_wl
='-Wl,'
8303 if test "$host_cpu" = ia64
; then
8304 # AIX 5 now supports IA64 processor
8305 lt_prog_compiler_static
='-Bstatic'
8307 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8311 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8312 # This hack is so that the source file can tell whether it is being
8313 # built for inclusion in a dll (and should export symbols for example).
8314 lt_prog_compiler_pic
='-DDLL_EXPORT'
8317 hpux9
* | hpux10
* | hpux11
*)
8318 lt_prog_compiler_wl
='-Wl,'
8319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8326 lt_prog_compiler_pic
='+Z'
8329 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8330 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8333 irix5
* | irix6
* | nonstopux
*)
8334 lt_prog_compiler_wl
='-Wl,'
8335 # PIC (with -KPIC) is the default.
8336 lt_prog_compiler_static
='-non_shared'
8339 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8340 case $cc_basename in
8341 # old Intel for x86_64 which still supported -KPIC.
8343 lt_prog_compiler_wl
='-Wl,'
8344 lt_prog_compiler_pic
='-KPIC'
8345 lt_prog_compiler_static
='-static'
8347 # icc used to be incompatible with GCC.
8348 # ICC 10 doesn't accept -KPIC any more.
8350 lt_prog_compiler_wl
='-Wl,'
8351 lt_prog_compiler_pic
='-fPIC'
8352 lt_prog_compiler_static
='-static'
8354 # Lahey Fortran 8.1.
8356 lt_prog_compiler_wl
='-Wl,'
8357 lt_prog_compiler_pic
='--shared'
8358 lt_prog_compiler_static
='--static'
8360 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8361 # Portland Group compilers (*not* the Pentium gcc compiler,
8362 # which looks to be a dead project)
8363 lt_prog_compiler_wl
='-Wl,'
8364 lt_prog_compiler_pic
='-fpic'
8365 lt_prog_compiler_static
='-Bstatic'
8368 lt_prog_compiler_wl
='-Wl,'
8369 # All Alpha code is PIC.
8370 lt_prog_compiler_static
='-non_shared'
8372 xl
* | bgxl
* | bgf
* | mpixl
*)
8373 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8374 lt_prog_compiler_wl
='-Wl,'
8375 lt_prog_compiler_pic
='-qpic'
8376 lt_prog_compiler_static
='-qstaticlink'
8379 case `$CC -V 2>&1 | sed 5q` in
8380 *Sun\ F
* |
*Sun
*Fortran
*)
8381 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8382 lt_prog_compiler_pic
='-KPIC'
8383 lt_prog_compiler_static
='-Bstatic'
8384 lt_prog_compiler_wl
=''
8388 lt_prog_compiler_pic
='-KPIC'
8389 lt_prog_compiler_static
='-Bstatic'
8390 lt_prog_compiler_wl
='-Wl,'
8398 lt_prog_compiler_pic
='-KPIC'
8399 lt_prog_compiler_static
='-Bstatic'
8403 # QNX uses GNU C++, but need to define -shared option too, otherwise
8405 lt_prog_compiler_pic
='-fPIC -shared'
8408 osf3
* | osf4
* | osf5
*)
8409 lt_prog_compiler_wl
='-Wl,'
8410 # All OSF/1 code is PIC.
8411 lt_prog_compiler_static
='-non_shared'
8415 lt_prog_compiler_static
='-non_shared'
8419 lt_prog_compiler_pic
='-KPIC'
8420 lt_prog_compiler_static
='-Bstatic'
8421 case $cc_basename in
8423 lt_prog_compiler_wl
='-Qoption ld ';;
8425 lt_prog_compiler_wl
='-Wl,';;
8430 lt_prog_compiler_wl
='-Qoption ld '
8431 lt_prog_compiler_pic
='-PIC'
8432 lt_prog_compiler_static
='-Bstatic'
8435 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8436 lt_prog_compiler_wl
='-Wl,'
8437 lt_prog_compiler_pic
='-KPIC'
8438 lt_prog_compiler_static
='-Bstatic'
8442 if test -d /usr
/nec
;then
8443 lt_prog_compiler_pic
='-Kconform_pic'
8444 lt_prog_compiler_static
='-Bstatic'
8448 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8449 lt_prog_compiler_wl
='-Wl,'
8450 lt_prog_compiler_pic
='-KPIC'
8451 lt_prog_compiler_static
='-Bstatic'
8455 lt_prog_compiler_wl
='-Wl,'
8456 lt_prog_compiler_can_build_shared
=no
8460 lt_prog_compiler_pic
='-pic'
8461 lt_prog_compiler_static
='-Bstatic'
8465 lt_prog_compiler_can_build_shared
=no
8471 # For platforms which do not support PIC, -DPIC is meaningless:
8473 lt_prog_compiler_pic
=
8476 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8480 $as_echo "$lt_prog_compiler_pic" >&6; }
8488 # Check to make sure the PIC flag actually works.
8490 if test -n "$lt_prog_compiler_pic"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8492 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8493 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8496 lt_cv_prog_compiler_pic_works
=no
8497 ac_outfile
=conftest.
$ac_objext
8498 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8499 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8500 # Insert the option either (1) after the last *FLAGS variable, or
8501 # (2) before a word containing "conftest.", or (3) at the end.
8502 # Note that $ac_compile itself does not contain backslashes and begins
8503 # with a dollar sign (not a hyphen), so the echo should work correctly.
8504 # The option is referenced via a variable to avoid confusing sed.
8505 lt_compile
=`echo "$ac_compile" | $SED \
8506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508 -e 's:$: $lt_compiler_flag:'`
8509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8510 (eval "$lt_compile" 2>conftest.err
)
8512 cat conftest.err
>&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 if (exit $ac_status) && test -s "$ac_outfile"; then
8515 # The compiler can only warn and ignore the option if not recognized
8516 # So say no if there are warnings other than the usual output.
8517 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8518 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8519 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8520 lt_cv_prog_compiler_pic_works
=yes
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8527 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8529 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8530 case $lt_prog_compiler_pic in
8532 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8535 lt_prog_compiler_pic
=
8536 lt_prog_compiler_can_build_shared
=no
8547 # Check to make sure the static flag actually works.
8549 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8551 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8552 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8555 lt_cv_prog_compiler_static_works
=no
8556 save_LDFLAGS
="$LDFLAGS"
8557 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8558 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8559 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8560 # The linker can only warn and ignore the option if not recognized
8561 # So say no if there are warnings
8562 if test -s conftest.err
; then
8563 # Append any errors to the config.log.
8564 cat conftest.err
1>&5
8565 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8566 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8567 if diff conftest.exp conftest.er2
>/dev
/null
; then
8568 lt_cv_prog_compiler_static_works
=yes
8571 lt_cv_prog_compiler_static_works
=yes
8575 LDFLAGS
="$save_LDFLAGS"
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8579 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8581 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8584 lt_prog_compiler_static
=
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8595 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8598 lt_cv_prog_compiler_c_o
=no
8599 $RM -r conftest
2>/dev
/null
8603 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8605 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8606 # Insert the option either (1) after the last *FLAGS variable, or
8607 # (2) before a word containing "conftest.", or (3) at the end.
8608 # Note that $ac_compile itself does not contain backslashes and begins
8609 # with a dollar sign (not a hyphen), so the echo should work correctly.
8610 lt_compile
=`echo "$ac_compile" | $SED \
8611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613 -e 's:$: $lt_compiler_flag:'`
8614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8615 (eval "$lt_compile" 2>out
/conftest.err
)
8617 cat out
/conftest.err
>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8621 # The compiler can only warn and ignore the option if not recognized
8622 # So say no if there are warnings
8623 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8624 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8625 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8626 lt_cv_prog_compiler_c_o
=yes
8631 # SGI C++ compiler will create directory out/ii_files/ for
8632 # template instantiation
8633 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8634 $RM out
/* && rmdir out
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8641 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8649 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8650 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8653 lt_cv_prog_compiler_c_o
=no
8654 $RM -r conftest
2>/dev
/null
8658 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8660 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8661 # Insert the option either (1) after the last *FLAGS variable, or
8662 # (2) before a word containing "conftest.", or (3) at the end.
8663 # Note that $ac_compile itself does not contain backslashes and begins
8664 # with a dollar sign (not a hyphen), so the echo should work correctly.
8665 lt_compile
=`echo "$ac_compile" | $SED \
8666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668 -e 's:$: $lt_compiler_flag:'`
8669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670 (eval "$lt_compile" 2>out
/conftest.err
)
8672 cat out
/conftest.err
>&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8676 # The compiler can only warn and ignore the option if not recognized
8677 # So say no if there are warnings
8678 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8679 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8680 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8681 lt_cv_prog_compiler_c_o
=yes
8686 # SGI C++ compiler will create directory out/ii_files/ for
8687 # template instantiation
8688 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8689 $RM out
/* && rmdir out
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8696 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8701 hard_links
="nottested"
8702 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8703 # do not overwrite the value of need_locks provided by the user
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8705 $as_echo_n "checking if we can lock with hard links... " >&6; }
8708 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8710 ln conftest.a conftest.b
2>&5 || hard_links
=no
8711 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8713 $as_echo "$hard_links" >&6; }
8714 if test "$hard_links" = no
; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8716 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8729 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8732 allow_undefined_flag
=
8733 always_export_symbols
=no
8735 archive_expsym_cmds
=
8736 compiler_needs_object
=no
8737 enable_shared_with_static_runtimes
=no
8738 export_dynamic_flag_spec
=
8739 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8740 hardcode_automatic
=no
8742 hardcode_direct_absolute
=no
8743 hardcode_libdir_flag_spec
=
8744 hardcode_libdir_flag_spec_ld
=
8745 hardcode_libdir_separator
=
8747 hardcode_shlibpath_var
=unsupported
8749 link_all_deplibs
=unknown
8752 old_archive_from_new_cmds
=
8753 old_archive_from_expsyms_cmds
=
8754 thread_safe_flag_spec
=
8755 whole_archive_flag_spec
=
8756 # include_expsyms should be a list of space-separated symbols to be *always*
8757 # included in the symbol list
8759 # exclude_expsyms can be an extended regexp of symbols to exclude
8760 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8762 # as well as any symbol that contains `d'.
8763 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8765 # platforms (ab)use it in PIC code, but their linkers get confused if
8766 # the symbol is explicitly referenced. Since portable code cannot
8767 # rely on this symbol name, it's probably fine to never include it in
8768 # preloaded symbol tables.
8769 # Exclude shared library initialization/finalization symbols.
8770 extract_expsyms_cmds
=
8773 cygwin
* | mingw
* | pw32
* | cegcc
*)
8774 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8775 # When not using gcc, we currently assume that we are using
8776 # Microsoft Visual C++.
8777 if test "$GCC" != yes; then
8782 # we just hope/assume this is gcc and not c89 (= MSVC++)
8792 # On some targets, GNU ld is compatible enough with the native linker
8793 # that we're better off using the native interface for both.
8794 lt_use_gnu_ld_interface
=no
8795 if test "$with_gnu_ld" = yes; then
8798 # The AIX port of GNU ld has always aspired to compatibility
8799 # with the native linker. However, as the warning in the GNU ld
8800 # block says, versions before 2.19.5* couldn't really create working
8801 # shared libraries, regardless of the interface used.
8802 case `$LD -v 2>&1` in
8803 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8804 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8805 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8807 lt_use_gnu_ld_interface
=yes
8812 lt_use_gnu_ld_interface
=yes
8817 if test "$lt_use_gnu_ld_interface" = yes; then
8818 # If archive_cmds runs LD, not CC, wlarc should be empty
8821 # Set some defaults for GNU ld with shared library support. These
8822 # are reset later if shared libraries are not supported. Putting them
8823 # here allows them to be overridden if necessary.
8824 runpath_var
=LD_RUN_PATH
8825 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8826 export_dynamic_flag_spec
='${wl}--export-dynamic'
8827 # ancient GNU ld didn't support --whole-archive et. al.
8828 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8829 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8831 whole_archive_flag_spec
=
8833 supports_anon_versioning
=no
8834 case `$LD -v 2>&1` in
8835 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8836 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8837 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8838 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8839 *\
2.11.
*) ;; # other 2.11 versions
8840 *) supports_anon_versioning
=yes ;;
8843 # See if GNU ld supports shared libraries.
8846 # On AIX/PPC, the GNU linker is very broken
8847 if test "$host_cpu" != ia64
; then
8851 *** Warning: the GNU linker, at least up to release 2.19, is reported
8852 *** to be unable to reliably create shared libraries on AIX.
8853 *** Therefore, libtool is disabling shared libraries support. If you
8854 *** really care for shared libraries, you may want to install binutils
8855 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8856 *** You will then need to restart the configuration process.
8865 # see comment about AmigaOS4 .so support
8866 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867 archive_expsym_cmds
=''
8870 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)'
8871 hardcode_libdir_flag_spec
='-L$libdir'
8872 hardcode_minus_L
=yes
8878 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8879 allow_undefined_flag
=unsupported
8880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8881 # support --undefined. This deserves some investigation. FIXME
8882 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888 cygwin
* | mingw
* | pw32
* | cegcc
*)
8889 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8890 # as there is no search path for DLLs.
8891 hardcode_libdir_flag_spec
='-L$libdir'
8892 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8893 allow_undefined_flag
=unsupported
8894 always_export_symbols
=no
8895 enable_shared_with_static_runtimes
=yes
8896 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8898 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8899 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8900 # If the export-symbols file already is a .def file (1st line
8901 # is EXPORTS), use it as is; otherwise, prepend...
8902 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8903 cp $export_symbols $output_objdir/$soname.def;
8905 echo EXPORTS > $output_objdir/$soname.def;
8906 cat $export_symbols >> $output_objdir/$soname.def;
8908 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916 link_all_deplibs
=yes
8921 hardcode_shlibpath_var
=no
8922 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8923 export_dynamic_flag_spec
='${wl}-E'
8924 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8925 # Instead, shared libraries are loaded at an image base (0x10000000 by
8926 # default) and relocated if they conflict, which is a slow very memory
8927 # consuming and fragmenting process. To avoid this, we pick a random,
8928 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8929 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8930 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8931 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'
8934 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8936 if test "$host_os" = linux-dietlibc
; then
8937 case $cc_basename in
8938 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8941 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8942 && test "$tmp_diet" = no
8944 tmp_addflag
=' $pic_flag'
8945 tmp_sharedflag
='-shared'
8946 case $cc_basename,$host_cpu in
8947 pgcc
*) # Portland Group C compiler
8948 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'
8949 tmp_addflag
=' $pic_flag'
8951 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8952 # Portland Group f77 and f90 compilers
8953 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'
8954 tmp_addflag
=' $pic_flag -Mnomain' ;;
8955 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8956 tmp_addflag
=' -i_dynamic' ;;
8957 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8958 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8959 ifc
* | ifort
*) # Intel Fortran compiler
8960 tmp_addflag
=' -nofor_main' ;;
8961 lf95
*) # Lahey Fortran 8.1
8962 whole_archive_flag_spec
=
8963 tmp_sharedflag
='--shared' ;;
8964 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8965 tmp_sharedflag
='-qmkshrobj'
8967 nvcc
*) # Cuda Compiler Driver 2.2
8968 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'
8969 compiler_needs_object
=yes
8972 case `$CC -V 2>&1 | sed 5q` in
8973 *Sun\ C
*) # Sun C 5.9
8974 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'
8975 compiler_needs_object
=yes
8976 tmp_sharedflag
='-G' ;;
8977 *Sun\ F
*) # Sun Fortran 8.3
8978 tmp_sharedflag
='-G' ;;
8980 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 if test "x$supports_anon_versioning" = xyes
; then
8983 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8985 echo "local: *; };" >> $output_objdir/$libname.ver~
8986 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8989 case $cc_basename in
8990 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8991 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8992 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8993 hardcode_libdir_flag_spec
=
8994 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8995 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8996 if test "x$supports_anon_versioning" = xyes
; then
8997 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999 echo "local: *; };" >> $output_objdir/$libname.ver~
9000 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9010 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9011 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9014 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9024 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9025 *** create shared libraries on Solaris systems. Therefore, libtool
9026 *** is disabling shared libraries support. We urge you to upgrade GNU
9027 *** binutils to release 2.9.1 or newer. Another option is to modify
9028 *** your PATH or compiler configuration so that the native linker is
9029 *** used, and then restart.
9032 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9033 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9040 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9041 case `$LD -v 2>&1` in
9042 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9046 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9047 *** reliably create shared libraries on SCO systems. Therefore, libtool
9048 *** is disabling shared libraries support. We urge you to upgrade GNU
9049 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9050 *** your PATH or compiler configuration so that the native linker is
9051 *** used, and then restart.
9056 # For security reasons, it is highly recommended that you always
9057 # use absolute paths for naming shared libraries, and exclude the
9058 # DT_RUNPATH tag from executables and libraries. But doing so
9059 # requires that you compile everything twice, which is a pain.
9060 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9061 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9062 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9072 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_shlibpath_var
=no
9079 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9080 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 if test "$ld_shlibs" = no
; then
9090 hardcode_libdir_flag_spec
=
9091 export_dynamic_flag_spec
=
9092 whole_archive_flag_spec
=
9095 # PORTME fill in a description of your system's linker (not GNU ld)
9098 allow_undefined_flag
=unsupported
9099 always_export_symbols
=yes
9100 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'
9101 # Note: this linker hardcodes the directories in LIBPATH if there
9102 # are no directories specified by -L.
9103 hardcode_minus_L
=yes
9104 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9105 # Neither direct hardcoding nor static linking is supported with a
9107 hardcode_direct
=unsupported
9112 if test "$host_cpu" = ia64
; then
9113 # On IA64, the linker does run time linking by default, so we don't
9114 # have to do anything special.
9115 aix_use_runtimelinking
=no
9116 exp_sym_flag
='-Bexport'
9119 # If we're using GNU nm, then we don't want the "-C" option.
9120 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121 # Also, AIX nm treats weak defined symbols like other global
9122 # defined symbols, whereas GNU nm marks them as "W".
9123 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9124 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'
9126 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9128 aix_use_runtimelinking
=no
9130 # Test if we are trying to use run time linking or normal
9131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9132 # need to do runtime linking.
9133 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9134 for ld_flag
in $LDFLAGS; do
9135 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9136 aix_use_runtimelinking
=yes
9143 exp_sym_flag
='-bexport'
9144 no_entry_flag
='-bnoentry'
9147 # When large executables or shared objects are built, AIX ld can
9148 # have problems creating the table of contents. If linking a library
9149 # or program results in "error TOC overflow" add -mminimal-toc to
9150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9155 hardcode_direct_absolute
=yes
9156 hardcode_libdir_separator
=':'
9157 link_all_deplibs
=yes
9158 file_list_spec
='${wl}-f,'
9160 if test "$GCC" = yes; then
9161 case $host_os in aix4.
[012]|aix4.
[012].
*)
9162 # We only want to do this on AIX 4.2 and lower, the check
9163 # below for broken collect2 doesn't work under 4.3+
9164 collect2name
=`${CC} -print-prog-name=collect2`
9165 if test -f "$collect2name" &&
9166 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9168 # We have reworked collect2
9171 # We have old collect2
9172 hardcode_direct
=unsupported
9173 # It fails to find uninstalled libraries when the uninstalled
9174 # path is not listed in the libpath. Setting hardcode_minus_L
9175 # to unsupported forces relinking
9176 hardcode_minus_L
=yes
9177 hardcode_libdir_flag_spec
='-L$libdir'
9178 hardcode_libdir_separator
=
9182 shared_flag
='-shared'
9183 if test "$aix_use_runtimelinking" = yes; then
9184 shared_flag
="$shared_flag "'${wl}-G'
9188 if test "$host_cpu" = ia64
; then
9189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9190 # chokes on -Wl,-G. The following line is correct:
9193 if test "$aix_use_runtimelinking" = yes; then
9194 shared_flag
='${wl}-G'
9196 shared_flag
='${wl}-bM:SRE'
9201 export_dynamic_flag_spec
='${wl}-bexpall'
9202 # It seems that -bexpall does not export symbols beginning with
9203 # underscore (_), so it is better to generate a list of symbols to export.
9204 always_export_symbols
=yes
9205 if test "$aix_use_runtimelinking" = yes; then
9206 # Warning - without using the other runtime loading flags (-brtl),
9207 # -berok will link without error, but may produce a broken library.
9208 allow_undefined_flag
='-berok'
9209 # Determine the default libpath from the value encoded in an
9211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9222 if ac_fn_c_try_link
"$LINENO"; then :
9224 lt_aix_libpath_sed
='
9225 /Import File Strings/,/^$/ {
9231 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 # Check for a 64-bit object if we didn't find anything.
9233 if test -z "$aix_libpath"; then
9234 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9237 rm -f core conftest.err conftest.
$ac_objext \
9238 conftest
$ac_exeext conftest.
$ac_ext
9239 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9241 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9242 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"
9244 if test "$host_cpu" = ia64
; then
9245 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9246 allow_undefined_flag
="-z nodefs"
9247 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"
9249 # Determine the default libpath from the value encoded in an
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9262 if ac_fn_c_try_link
"$LINENO"; then :
9264 lt_aix_libpath_sed
='
9265 /Import File Strings/,/^$/ {
9271 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9272 # Check for a 64-bit object if we didn't find anything.
9273 if test -z "$aix_libpath"; then
9274 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277 rm -f core conftest.err conftest.
$ac_objext \
9278 conftest
$ac_exeext conftest.
$ac_ext
9279 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9281 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9282 # Warning - without using the other run time loading flags,
9283 # -berok will link without error, but may produce a broken library.
9284 no_undefined_flag
=' ${wl}-bernotok'
9285 allow_undefined_flag
=' ${wl}-berok'
9286 if test "$with_gnu_ld" = yes; then
9287 # We only use this code for GNU lds that support --whole-archive.
9288 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9290 # Exported symbols can be pulled into shared objects from archives
9291 whole_archive_flag_spec
='$convenience'
9293 archive_cmds_need_lc
=yes
9294 # This is similar to how AIX traditionally builds its shared libraries.
9295 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'
9303 # see comment about AmigaOS4 .so support
9304 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 archive_expsym_cmds
=''
9308 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)'
9309 hardcode_libdir_flag_spec
='-L$libdir'
9310 hardcode_minus_L
=yes
9316 export_dynamic_flag_spec
=-rdynamic
9319 cygwin
* | mingw
* | pw32
* | cegcc
*)
9320 # When not using gcc, we currently assume that we are using
9321 # Microsoft Visual C++.
9322 # hardcode_libdir_flag_spec is actually meaningless, as there is
9323 # no search path for DLLs.
9324 hardcode_libdir_flag_spec
=' '
9325 allow_undefined_flag
=unsupported
9326 # Tell ltmain to make .lib files, not .a files.
9328 # Tell ltmain to make .dll files, not .so files.
9330 # FIXME: Setting linknames here is a bad hack.
9331 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9332 # The linker will automatically build a .lib file if we build a DLL.
9333 old_archive_from_new_cmds
='true'
9334 # FIXME: Should let the user specify the lib program.
9335 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9336 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9337 enable_shared_with_static_runtimes
=yes
9340 darwin
* | rhapsody
*)
9343 archive_cmds_need_lc
=no
9345 hardcode_automatic
=yes
9346 hardcode_shlibpath_var
=unsupported
9347 if test "$lt_cv_ld_force_load" = "yes"; then
9348 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\"`'
9350 whole_archive_flag_spec
=''
9352 link_all_deplibs
=yes
9353 allow_undefined_flag
="$_lt_dar_allow_undefined"
9354 case $cc_basename in
9355 ifort
*) _lt_dar_can_shared
=yes ;;
9356 *) _lt_dar_can_shared
=$GCC ;;
9358 if test "$_lt_dar_can_shared" = "yes"; then
9359 output_verbose_link_cmd
=func_echo_all
9360 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9361 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9362 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}"
9363 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}"
9372 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_libdir_flag_spec
='-L$libdir'
9374 hardcode_shlibpath_var
=no
9377 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9378 # support. Future versions do this automatically, but an explicit c++rt0.o
9379 # does not break anything, and helps significantly (at the cost of a little
9382 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9383 hardcode_libdir_flag_spec
='-R$libdir'
9385 hardcode_shlibpath_var
=no
9388 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9390 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_minus_L
=yes
9393 hardcode_shlibpath_var
=no
9396 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9397 freebsd
* | dragonfly
*)
9398 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9399 hardcode_libdir_flag_spec
='-R$libdir'
9401 hardcode_shlibpath_var
=no
9405 if test "$GCC" = yes; then
9406 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'
9408 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'
9410 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9411 hardcode_libdir_separator
=:
9414 # hardcode_minus_L: Not really in the search PATH,
9415 # but as the default location of the library.
9416 hardcode_minus_L
=yes
9417 export_dynamic_flag_spec
='${wl}-E'
9421 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9422 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9426 if test "$with_gnu_ld" = no
; then
9427 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9428 hardcode_libdir_flag_spec_ld
='+b $libdir'
9429 hardcode_libdir_separator
=:
9431 hardcode_direct_absolute
=yes
9432 export_dynamic_flag_spec
='${wl}-E'
9433 # hardcode_minus_L: Not really in the search PATH,
9434 # but as the default location of the library.
9435 hardcode_minus_L
=yes
9440 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9443 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 # Older versions of the 11.00 compiler do not understand -b yet
9463 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9465 $as_echo_n "checking if $CC understands -b... " >&6; }
9466 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9469 lt_cv_prog_compiler__b
=no
9470 save_LDFLAGS
="$LDFLAGS"
9471 LDFLAGS
="$LDFLAGS -b"
9472 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9473 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9474 # The linker can only warn and ignore the option if not recognized
9475 # So say no if there are warnings
9476 if test -s conftest.err
; then
9477 # Append any errors to the config.log.
9478 cat conftest.err
1>&5
9479 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9480 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9481 if diff conftest.exp conftest.er2
>/dev
/null
; then
9482 lt_cv_prog_compiler__b
=yes
9485 lt_cv_prog_compiler__b
=yes
9489 LDFLAGS
="$save_LDFLAGS"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9493 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9495 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9496 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9504 if test "$with_gnu_ld" = no
; then
9505 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9506 hardcode_libdir_separator
=:
9511 hardcode_shlibpath_var
=no
9515 hardcode_direct_absolute
=yes
9516 export_dynamic_flag_spec
='${wl}-E'
9518 # hardcode_minus_L: Not really in the search PATH,
9519 # but as the default location of the library.
9520 hardcode_minus_L
=yes
9526 irix5
* | irix6
* | nonstopux
*)
9527 if test "$GCC" = yes; then
9528 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'
9529 # Try to use the -exported_symbol ld option, if it does not
9530 # work, assume that -exports_file does not work either and
9531 # implicitly export all symbols.
9532 save_LDFLAGS
="$LDFLAGS"
9533 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9538 if ac_fn_c_try_link
"$LINENO"; then :
9539 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'
9542 rm -f core conftest.err conftest.
$ac_objext \
9543 conftest
$ac_exeext conftest.
$ac_ext
9544 LDFLAGS
="$save_LDFLAGS"
9546 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'
9547 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'
9549 archive_cmds_need_lc
='no'
9550 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9551 hardcode_libdir_separator
=:
9553 link_all_deplibs
=yes
9557 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9558 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9560 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9562 hardcode_libdir_flag_spec
='-R$libdir'
9564 hardcode_shlibpath_var
=no
9568 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9571 hardcode_libdir_separator
=:
9572 hardcode_shlibpath_var
=no
9579 if test -f /usr
/libexec
/ld.so
; then
9581 hardcode_shlibpath_var
=no
9582 hardcode_direct_absolute
=yes
9583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9587 export_dynamic_flag_spec
='${wl}-E'
9590 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9591 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_libdir_flag_spec
='-R$libdir'
9595 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9606 hardcode_libdir_flag_spec
='-L$libdir'
9607 hardcode_minus_L
=yes
9608 allow_undefined_flag
=unsupported
9609 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'
9610 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9614 if test "$GCC" = yes; then
9615 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9616 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'
9618 allow_undefined_flag
=' -expect_unresolved \*'
9619 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'
9621 archive_cmds_need_lc
='no'
9622 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9623 hardcode_libdir_separator
=:
9626 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9627 if test "$GCC" = yes; then
9628 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9629 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'
9630 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9632 allow_undefined_flag
=' -expect_unresolved \*'
9633 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'
9634 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~
9635 $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'
9637 # Both c and cxx compiler support -rpath directly
9638 hardcode_libdir_flag_spec
='-rpath $libdir'
9640 archive_cmds_need_lc
='no'
9641 hardcode_libdir_separator
=:
9645 no_undefined_flag
=' -z defs'
9646 if test "$GCC" = yes; then
9648 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9649 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9650 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9652 case `$CC -V 2>&1` in
9655 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9661 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9663 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9667 hardcode_libdir_flag_spec
='-R$libdir'
9668 hardcode_shlibpath_var
=no
9670 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9672 # The compiler driver will combine and reorder linker options,
9673 # but understands `-z linker_flag'. GCC discards it without `$wl',
9674 # but is careful enough not to reorder.
9675 # Supported since Solaris 2.6 (maybe 2.5.1?)
9676 if test "$GCC" = yes; then
9677 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9679 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9683 link_all_deplibs
=yes
9687 if test "x$host_vendor" = xsequent
; then
9688 # Use $CC to link under sequent, because it throws in some extra .o
9689 # files that make .init and .fini sections work.
9690 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_libdir_flag_spec
='-L$libdir'
9696 hardcode_minus_L
=yes
9697 hardcode_shlibpath_var
=no
9701 case $host_vendor in
9703 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct
=yes # is this really true???
9707 ## LD is ld it makes a PLAMLIB
9708 ## CC just makes a GrossModule.
9709 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9710 reload_cmds
='$CC -r -o $output$reload_objs'
9714 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9718 runpath_var
='LD_RUN_PATH'
9719 hardcode_shlibpath_var
=no
9723 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_shlibpath_var
=no
9725 export_dynamic_flag_spec
='-Bexport'
9729 if test -d /usr
/nec
; then
9730 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_shlibpath_var
=no
9732 runpath_var
=LD_RUN_PATH
9733 hardcode_runpath_var
=yes
9738 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9739 no_undefined_flag
='${wl}-z,text'
9740 archive_cmds_need_lc
=no
9741 hardcode_shlibpath_var
=no
9742 runpath_var
='LD_RUN_PATH'
9744 if test "$GCC" = yes; then
9745 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 sysv5
* | sco3.2v5
* | sco5v6
*)
9754 # Note: We can NOT use -z defs as we might desire, because we do not
9755 # link with -lc, and that would cause any symbols used from libc to
9756 # always be unresolved, which means just about no library would
9757 # ever link correctly. If we're not using GNU ld we use -z text
9758 # though, which does catch some bad symbols but isn't as heavy-handed
9760 no_undefined_flag
='${wl}-z,text'
9761 allow_undefined_flag
='${wl}-z,nodefs'
9762 archive_cmds_need_lc
=no
9763 hardcode_shlibpath_var
=no
9764 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9765 hardcode_libdir_separator
=':'
9766 link_all_deplibs
=yes
9767 export_dynamic_flag_spec
='${wl}-Bexport'
9768 runpath_var
='LD_RUN_PATH'
9770 if test "$GCC" = yes; then
9771 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_libdir_flag_spec
='-L$libdir'
9782 hardcode_shlibpath_var
=no
9790 if test x
$host_vendor = xsni
; then
9792 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9793 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9800 $as_echo "$ld_shlibs" >&6; }
9801 test "$ld_shlibs" = no
&& can_build_shared
=no
9803 with_gnu_ld
=$with_gnu_ld
9820 # Do we need to explicitly link libc?
9822 case "x$archive_cmds_need_lc" in
9824 # Assume -lc should be added
9825 archive_cmds_need_lc
=yes
9827 if test "$enable_shared" = yes && test "$GCC" = yes; then
9828 case $archive_cmds in
9830 # FIXME: we may have to deal with multi-command sequences.
9833 # Test whether the compiler implicitly links with -lc since on some
9834 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9835 # to ld, don't add -lc before -lgcc.
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9837 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9838 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
9842 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9845 (eval $ac_compile) 2>&5
9847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9848 test $ac_status = 0; } 2>conftest.err
; then
9851 libobjs
=conftest.
$ac_objext
9853 wl
=$lt_prog_compiler_wl
9854 pic_flag
=$lt_prog_compiler_pic
9860 lt_save_allow_undefined_flag
=$allow_undefined_flag
9861 allow_undefined_flag
=
9862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9863 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9866 test $ac_status = 0; }
9868 lt_cv_archive_cmds_need_lc
=no
9870 lt_cv_archive_cmds_need_lc
=yes
9872 allow_undefined_flag
=$lt_save_allow_undefined_flag
9874 cat conftest.err
1>&5
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9880 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9881 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10045 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10047 if test "$GCC" = yes; then
10049 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10050 *) lt_awk_arg
="/^libraries:/" ;;
10053 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10054 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10056 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10057 case $lt_search_path_spec in
10059 # if the path contains ";" then we assume it to be the separator
10060 # otherwise default to the standard path separator (i.e. ":") - it is
10061 # assumed that no part of a normal pathname contains ";" but that should
10062 # okay in the real world where ";" in dirpaths is itself problematic.
10063 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10066 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10069 # Ok, now we have the path, separated by spaces, we can step through it
10070 # and add multilib dir if necessary.
10071 lt_tmp_lt_search_path_spec
=
10072 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10073 for lt_sys_path
in $lt_search_path_spec; do
10074 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10075 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10077 test -d "$lt_sys_path" && \
10078 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10081 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10082 BEGIN {RS=" "; FS="/|\n";} {
10085 for (lt_i = NF; lt_i > 0; lt_i--) {
10086 if ($lt_i != "" && $lt_i != ".") {
10087 if ($lt_i == "..") {
10090 if (lt_count == 0) {
10091 lt_foo="/" $lt_i lt_foo;
10098 if (lt_foo != "") { lt_freq[lt_foo]++; }
10099 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10101 # AWK program above erroneously prepends '/' to C:/dos/paths
10104 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10105 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10107 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10109 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10111 library_names_spec
=
10112 libname_spec
='lib$name'
10116 postuninstall_cmds
=
10120 shlibpath_overrides_runpath
=unknown
10122 dynamic_linker
="$host_os ld.so"
10123 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10124 need_lib_prefix
=unknown
10125 hardcode_into_libs
=no
10127 # when you set need_version to no, make sure it does not cause -set_version
10128 # flags to be left without arguments
10129 need_version
=unknown
10134 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10135 shlibpath_var
=LIBPATH
10137 # AIX 3 has no versioning support, so we append a major version to the name.
10138 soname_spec
='${libname}${release}${shared_ext}$major'
10145 hardcode_into_libs
=yes
10146 if test "$host_cpu" = ia64
; then
10147 # AIX 5 supports IA64
10148 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10149 shlibpath_var
=LD_LIBRARY_PATH
10151 # With GCC up to 2.95.x, collect2 would create an import file
10152 # for dependence libraries. The import file would start with
10153 # the line `#! .'. This would cause the generated library to
10154 # depend on `.', always an invalid library. This was fixed in
10155 # development snapshots of GCC prior to 3.0.
10157 aix4 | aix4.
[01] | aix4.
[01].
*)
10158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10160 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10163 can_build_shared
=no
10167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10168 # soname into executable. Probably we can add versioning support to
10169 # collect2, so additional links can be useful in future.
10170 if test "$aix_use_runtimelinking" = yes; then
10171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10172 # instead of lib<name>.a to let people know that these are not
10173 # typical AIX shared libraries.
10174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176 # We preserve .a as extension for shared libraries through AIX4.2
10177 # and later when we are not doing run time linking.
10178 library_names_spec
='${libname}${release}.a $libname.a'
10179 soname_spec
='${libname}${release}${shared_ext}$major'
10181 shlibpath_var
=LIBPATH
10188 # Since July 2007 AmigaOS4 officially supports .so libraries.
10189 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 library_names_spec
='$libname.ixlibrary $libname.a'
10194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10195 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'
10201 library_names_spec
='${libname}${shared_ext}'
10202 dynamic_linker
="$host_os ld.so"
10203 shlibpath_var
=LIBRARY_PATH
10209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec
='${libname}${release}${shared_ext}$major'
10211 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10212 shlibpath_var
=LD_LIBRARY_PATH
10213 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10214 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10215 # the default ld.so.conf also contains /usr/contrib/lib and
10216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10217 # libtool to hard-code these into programs
10220 cygwin
* | mingw
* | pw32
* | cegcc
*)
10221 version_type
=windows
10226 case $GCC,$host_os in
10227 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10228 library_names_spec
='$libname.dll.a'
10229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10230 postinstall_cmds
='base_file=`basename \${file}`~
10231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10232 dldir=$destdir/`dirname \$dlpath`~
10233 test -d \$dldir || mkdir -p \$dldir~
10234 $install_prog $dir/$dlname \$dldir/$dlname~
10235 chmod a+x \$dldir/$dlname~
10236 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10237 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10239 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10240 dlpath=$dir/\$dldll~
10242 shlibpath_overrides_runpath
=yes
10246 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10247 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10249 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10252 # MinGW DLLs use traditional 'lib' prefix
10253 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10256 # pw32 DLLs use 'pw' prefix rather than 'lib'
10257 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10263 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10266 dynamic_linker
='Win32 ld.exe'
10267 # FIXME: first we should search . and the directory the executable is in
10271 darwin
* | rhapsody
*)
10272 dynamic_linker
="$host_os dyld"
10273 version_type
=darwin
10276 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10277 soname_spec
='${libname}${release}${major}$shared_ext'
10278 shlibpath_overrides_runpath
=yes
10279 shlibpath_var
=DYLD_LIBRARY_PATH
10280 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10282 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10283 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10291 soname_spec
='${libname}${release}${shared_ext}$major'
10292 shlibpath_var
=LD_LIBRARY_PATH
10295 freebsd
* | dragonfly
*)
10296 # DragonFly does not have aout. When/if they implement a new
10297 # versioning mechanism, adjust this.
10298 if test -x /usr
/bin
/objformat
; then
10299 objformat
=`/usr/bin/objformat`
10302 freebsd
[23].
*) objformat
=aout
;;
10303 *) objformat
=elf
;;
10306 version_type
=freebsd-
$objformat
10307 case $version_type in
10309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10314 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10318 shlibpath_var
=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath
=yes
10323 freebsd3.
[01]* | freebsdelf3.
[01]*)
10324 shlibpath_overrides_runpath
=yes
10325 hardcode_into_libs
=yes
10327 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10328 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10329 shlibpath_overrides_runpath
=no
10330 hardcode_into_libs
=yes
10332 *) # from 4.6 on, and DragonFly
10333 shlibpath_overrides_runpath
=yes
10334 hardcode_into_libs
=yes
10343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10344 soname_spec
='${libname}${release}${shared_ext}$major'
10345 shlibpath_var
=LD_LIBRARY_PATH
10346 hardcode_into_libs
=yes
10353 dynamic_linker
="$host_os runtime_loader"
10354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10355 soname_spec
='${libname}${release}${shared_ext}$major'
10356 shlibpath_var
=LIBRARY_PATH
10357 shlibpath_overrides_runpath
=yes
10358 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10359 hardcode_into_libs
=yes
10362 hpux9
* | hpux10
* | hpux11
*)
10363 # Give a soname corresponding to the major version so that dld.sl refuses to
10364 # link against other versions.
10371 hardcode_into_libs
=yes
10372 dynamic_linker
="$host_os dld.so"
10373 shlibpath_var
=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec
='${libname}${release}${shared_ext}$major'
10377 if test "X$HPUX_IA64_MODE" = X32
; then
10378 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10380 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10382 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10386 hardcode_into_libs
=yes
10387 dynamic_linker
="$host_os dld.sl"
10388 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10389 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec
='${libname}${release}${shared_ext}$major'
10392 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10393 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10397 dynamic_linker
="$host_os dld.sl"
10398 shlibpath_var
=SHLIB_PATH
10399 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec
='${libname}${release}${shared_ext}$major'
10404 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10405 postinstall_cmds
='chmod 555 $lib'
10406 # or fails outright, so override atomically:
10407 install_override_mode
=555
10414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10415 soname_spec
='${libname}${release}${shared_ext}$major'
10416 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10417 shlibpath_var
=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath
=no
10419 hardcode_into_libs
=yes
10422 irix5
* | irix6
* | nonstopux
*)
10424 nonstopux
*) version_type
=nonstopux
;;
10426 if test "$lt_cv_prog_gnu_ld" = yes; then
10434 soname_spec
='${libname}${release}${shared_ext}$major'
10435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10437 irix5
* | nonstopux
*)
10438 libsuff
= shlibsuff
=
10441 case $LD in # libtool.m4 will add one of these switches to LD
10442 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10443 libsuff
= shlibsuff
= libmagic
=32-bit;;
10444 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10445 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10446 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10447 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10448 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10452 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10453 shlibpath_overrides_runpath
=no
10454 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10455 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10456 hardcode_into_libs
=yes
10459 # No shared lib support for Linux oldld, aout, or coff.
10460 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10464 # This must be Linux ELF.
10465 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 soname_spec
='${libname}${release}${shared_ext}$major'
10471 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10472 shlibpath_var
=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath
=no
10475 # Some binutils ld are patched to set DT_RUNPATH
10476 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10477 $as_echo_n "(cached) " >&6
10479 lt_cv_shlibpath_overrides_runpath
=no
10480 save_LDFLAGS
=$LDFLAGS
10481 save_libdir
=$libdir
10482 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10483 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10495 if ac_fn_c_try_link
"$LINENO"; then :
10496 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10497 lt_cv_shlibpath_overrides_runpath
=yes
10500 rm -f core conftest.err conftest.
$ac_objext \
10501 conftest
$ac_exeext conftest.
$ac_ext
10502 LDFLAGS
=$save_LDFLAGS
10503 libdir
=$save_libdir
10507 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10509 # This implies no fast_install, which is unacceptable.
10510 # Some rework will be needed to allow for fast_install
10511 # before this can be enabled.
10512 hardcode_into_libs
=yes
10514 # Append ld.so.conf contents to the search path
10515 if test -f /etc
/ld.so.conf
; then
10516 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' ' '`
10517 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10520 # We used to test for /lib/ld.so.1 and disable shared libraries on
10521 # powerpc, because MkLinux only supported shared libraries with the
10522 # GNU dynamic linker. Since this was broken with cross compilers,
10523 # most powerpc-linux boxes support dynamic linking these days and
10524 # people can always --disable-shared, the test was removed, and we
10525 # assume the GNU/Linux dynamic linker is in use.
10526 dynamic_linker
='GNU/Linux ld.so'
10533 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10535 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10536 dynamic_linker
='NetBSD (a.out) ld.so'
10538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10539 soname_spec
='${libname}${release}${shared_ext}$major'
10540 dynamic_linker
='NetBSD ld.elf_so'
10542 shlibpath_var
=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath
=yes
10544 hardcode_into_libs
=yes
10549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 shlibpath_var
=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath
=yes
10558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec
='${libname}${release}${shared_ext}$major'
10560 shlibpath_var
=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath
=no
10562 hardcode_into_libs
=yes
10563 dynamic_linker
='ldqnx.so'
10568 sys_lib_dlsearch_path_spec
="/usr/lib"
10570 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10572 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10573 *) need_version
=no
;;
10575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10576 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10577 shlibpath_var
=LD_LIBRARY_PATH
10578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10580 openbsd2.
[89] | openbsd2.
[89].
*)
10581 shlibpath_overrides_runpath
=no
10584 shlibpath_overrides_runpath
=yes
10588 shlibpath_overrides_runpath
=yes
10593 libname_spec
='$name'
10596 library_names_spec
='$libname${shared_ext} $libname.a'
10597 dynamic_linker
='OS/2 ld.exe'
10598 shlibpath_var
=LIBPATH
10601 osf3
* | osf4
* | osf5
*)
10605 soname_spec
='${libname}${release}${shared_ext}$major'
10606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 shlibpath_var
=LD_LIBRARY_PATH
10608 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10609 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec
='${libname}${release}${shared_ext}$major'
10622 shlibpath_var
=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath
=yes
10624 hardcode_into_libs
=yes
10625 # ldd complains unless libraries are executable
10626 postinstall_cmds
='chmod +x $lib'
10631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10632 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10633 shlibpath_var
=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath
=yes
10635 if test "$with_gnu_ld" = yes; then
10643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec
='${libname}${release}${shared_ext}$major'
10645 shlibpath_var
=LD_LIBRARY_PATH
10646 case $host_vendor in
10648 shlibpath_overrides_runpath
=no
10650 runpath_var
=LD_RUN_PATH
10658 shlibpath_overrides_runpath
=no
10659 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10665 if test -d /usr
/nec
;then
10667 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10668 soname_spec
='$libname${shared_ext}.$major'
10669 shlibpath_var
=LD_LIBRARY_PATH
10673 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10674 version_type
=freebsd-elf
10677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10678 soname_spec
='${libname}${release}${shared_ext}$major'
10679 shlibpath_var
=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath
=yes
10681 hardcode_into_libs
=yes
10682 if test "$with_gnu_ld" = yes; then
10683 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10685 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10688 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10692 sys_lib_dlsearch_path_spec
='/usr/lib'
10696 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 shlibpath_var
=LD_LIBRARY_PATH
10702 shlibpath_overrides_runpath
=no
10703 hardcode_into_libs
=yes
10708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec
='${libname}${release}${shared_ext}$major'
10710 shlibpath_var
=LD_LIBRARY_PATH
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10718 $as_echo "$dynamic_linker" >&6; }
10719 test "$dynamic_linker" = no
&& can_build_shared
=no
10721 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10722 if test "$GCC" = yes; then
10723 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10726 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10727 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10729 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10730 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10825 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10827 if test -n "$hardcode_libdir_flag_spec" ||
10828 test -n "$runpath_var" ||
10829 test "X$hardcode_automatic" = "Xyes" ; then
10831 # We can hardcode non-existent directories.
10832 if test "$hardcode_direct" != no
&&
10833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10834 # have to relink, otherwise we might link with an installed library
10835 # when we should be linking with a yet-to-be-installed one
10836 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10837 test "$hardcode_minus_L" != no
; then
10838 # Linking always hardcodes the temporary library directory.
10839 hardcode_action
=relink
10841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10842 hardcode_action
=immediate
10845 # We cannot hardcode anything, or else we can only hardcode existing
10847 hardcode_action
=unsupported
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10850 $as_echo "$hardcode_action" >&6; }
10852 if test "$hardcode_action" = relink ||
10853 test "$inherit_rpath" = yes; then
10854 # Fast installation is not supported
10855 enable_fast_install
=no
10856 elif test "$shlibpath_overrides_runpath" = yes ||
10857 test "$enable_shared" = no
; then
10858 # Fast installation is not necessary
10859 enable_fast_install
=needless
10867 if test "x$enable_dlopen" != xyes
; then
10868 enable_dlopen
=unknown
10869 enable_dlopen_self
=unknown
10870 enable_dlopen_self_static
=unknown
10877 lt_cv_dlopen
="load_add_on"
10879 lt_cv_dlopen_self
=yes
10882 mingw
* | pw32
* | cegcc
*)
10883 lt_cv_dlopen
="LoadLibrary"
10888 lt_cv_dlopen
="dlopen"
10893 # if libdl is installed we need to link against it
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10899 ac_check_lib_save_LIBS
=$LIBS
10901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10919 if ac_fn_c_try_link
"$LINENO"; then :
10920 ac_cv_lib_dl_dlopen
=yes
10922 ac_cv_lib_dl_dlopen
=no
10924 rm -f core conftest.err conftest.
$ac_objext \
10925 conftest
$ac_exeext conftest.
$ac_ext
10926 LIBS
=$ac_check_lib_save_LIBS
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10930 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10931 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10934 lt_cv_dlopen
="dyld"
10936 lt_cv_dlopen_self
=yes
10943 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10944 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10945 lt_cv_dlopen
="shl_load"
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10948 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10949 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10952 ac_check_lib_save_LIBS
=$LIBS
10954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10957 /* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10967 return shl_load ();
10972 if ac_fn_c_try_link
"$LINENO"; then :
10973 ac_cv_lib_dld_shl_load
=yes
10975 ac_cv_lib_dld_shl_load
=no
10977 rm -f core conftest.err conftest.
$ac_objext \
10978 conftest
$ac_exeext conftest.
$ac_ext
10979 LIBS
=$ac_check_lib_save_LIBS
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10982 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10983 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10984 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10986 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10987 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10988 lt_cv_dlopen
="dlopen"
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10991 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10992 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10995 ac_check_lib_save_LIBS
=$LIBS
10997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11015 if ac_fn_c_try_link
"$LINENO"; then :
11016 ac_cv_lib_dl_dlopen
=yes
11018 ac_cv_lib_dl_dlopen
=no
11020 rm -f core conftest.err conftest.
$ac_objext \
11021 conftest
$ac_exeext conftest.
$ac_ext
11022 LIBS
=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11026 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11027 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11030 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS
=$LIBS
11035 LIBS
="-lsvld $LIBS"
11036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11054 if ac_fn_c_try_link
"$LINENO"; then :
11055 ac_cv_lib_svld_dlopen
=yes
11057 ac_cv_lib_svld_dlopen
=no
11059 rm -f core conftest.err conftest.
$ac_objext \
11060 conftest
$ac_exeext conftest.
$ac_ext
11061 LIBS
=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11064 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11065 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11066 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11069 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11070 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11071 $as_echo_n "(cached) " >&6
11073 ac_check_lib_save_LIBS
=$LIBS
11075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11078 /* Override any GCC internal prototype to avoid an error.
11079 Use char because int might match the return type of a GCC
11080 builtin and then its argument prototype would still apply. */
11088 return dld_link ();
11093 if ac_fn_c_try_link
"$LINENO"; then :
11094 ac_cv_lib_dld_dld_link
=yes
11096 ac_cv_lib_dld_dld_link
=no
11098 rm -f core conftest.err conftest.
$ac_objext \
11099 conftest
$ac_exeext conftest.
$ac_ext
11100 LIBS
=$ac_check_lib_save_LIBS
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11103 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11104 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11105 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11126 if test "x$lt_cv_dlopen" != xno
; then
11132 case $lt_cv_dlopen in
11134 save_CPPFLAGS
="$CPPFLAGS"
11135 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11137 save_LDFLAGS
="$LDFLAGS"
11138 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11141 LIBS
="$lt_cv_dlopen_libs $LIBS"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11144 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11145 if test "${lt_cv_dlopen_self+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11148 if test "$cross_compiling" = yes; then :
11149 lt_cv_dlopen_self
=cross
11151 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11152 lt_status
=$lt_dlunknown
11153 cat > conftest.
$ac_ext <<_LT_EOF
11154 #line 11154 "configure"
11155 #include "confdefs.h"
11164 # define LT_DLGLOBAL RTLD_GLOBAL
11167 # define LT_DLGLOBAL DL_GLOBAL
11169 # define LT_DLGLOBAL 0
11173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11174 find out it does not work in some platform. */
11175 #ifndef LT_DLLAZY_OR_NOW
11177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11180 # define LT_DLLAZY_OR_NOW DL_LAZY
11183 # define LT_DLLAZY_OR_NOW RTLD_NOW
11186 # define LT_DLLAZY_OR_NOW DL_NOW
11188 # define LT_DLLAZY_OR_NOW 0
11195 /* When -fvisbility=hidden is used, assume the code has been annotated
11196 correspondingly for the symbols needed. */
11197 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11198 void fnord () __attribute__((visibility("default")));
11201 void fnord () { int i=42; }
11204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11205 int status = $lt_dlunknown;
11209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11212 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11213 else puts (dlerror ());
11215 /* dlclose (self); */
11223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11224 (eval $ac_link) 2>&5
11226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11228 (.
/conftest
; exit; ) >&5 2>/dev
/null
11230 case x
$lt_status in
11231 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11232 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11233 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11236 # compilation failed
11237 lt_cv_dlopen_self
=no
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11245 $as_echo "$lt_cv_dlopen_self" >&6; }
11247 if test "x$lt_cv_dlopen_self" = xyes
; then
11248 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11250 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11251 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11254 if test "$cross_compiling" = yes; then :
11255 lt_cv_dlopen_self_static
=cross
11257 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11258 lt_status
=$lt_dlunknown
11259 cat > conftest.
$ac_ext <<_LT_EOF
11260 #line 11260 "configure"
11261 #include "confdefs.h"
11270 # define LT_DLGLOBAL RTLD_GLOBAL
11273 # define LT_DLGLOBAL DL_GLOBAL
11275 # define LT_DLGLOBAL 0
11279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11280 find out it does not work in some platform. */
11281 #ifndef LT_DLLAZY_OR_NOW
11283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11286 # define LT_DLLAZY_OR_NOW DL_LAZY
11289 # define LT_DLLAZY_OR_NOW RTLD_NOW
11292 # define LT_DLLAZY_OR_NOW DL_NOW
11294 # define LT_DLLAZY_OR_NOW 0
11301 /* When -fvisbility=hidden is used, assume the code has been annotated
11302 correspondingly for the symbols needed. */
11303 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11304 void fnord () __attribute__((visibility("default")));
11307 void fnord () { int i=42; }
11310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11311 int status = $lt_dlunknown;
11315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11318 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11319 else puts (dlerror ());
11321 /* dlclose (self); */
11329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11330 (eval $ac_link) 2>&5
11332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11333 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11334 (.
/conftest
; exit; ) >&5 2>/dev
/null
11336 case x
$lt_status in
11337 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11338 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11339 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11342 # compilation failed
11343 lt_cv_dlopen_self_static
=no
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11351 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11354 CPPFLAGS
="$save_CPPFLAGS"
11355 LDFLAGS
="$save_LDFLAGS"
11360 case $lt_cv_dlopen_self in
11361 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11362 *) enable_dlopen_self
=unknown
;;
11365 case $lt_cv_dlopen_self_static in
11366 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11367 *) enable_dlopen_self_static
=unknown
;;
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11390 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11391 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11392 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11393 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11395 $as_echo "yes" >&6; }
11397 # FIXME - insert some real tests, host_os isn't really good enough
11400 if test -n "$STRIP" ; then
11401 striplib
="$STRIP -x"
11402 old_striplib
="$STRIP -S"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11428 # Report which library types will actually be built
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11430 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11432 $as_echo "$can_build_shared" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11435 $as_echo_n "checking whether to build shared libraries... " >&6; }
11436 test "$can_build_shared" = "no" && enable_shared
=no
11438 # On AIX, shared libraries and static libraries use the same namespace, and
11439 # are all built from PIC.
11442 test "$enable_shared" = yes && enable_static
=no
11443 if test -n "$RANLIB"; then
11444 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11445 postinstall_cmds
='$RANLIB $lib'
11450 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11451 test "$enable_shared" = yes && enable_static
=no
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11456 $as_echo "$enable_shared" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11459 $as_echo_n "checking whether to build static libraries... " >&6; }
11460 # Make sure either enable_shared or enable_static is yes.
11461 test "$enable_shared" = yes || enable_static
=yes
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11463 $as_echo "$enable_static" >&6; }
11470 ac_cpp
='$CPP $CPPFLAGS'
11471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11489 ac_config_commands
="$ac_config_commands libtool"
11494 # Only expand once:
11501 *-cygwin* |
*-mingw*)
11502 # 'host' will be top-level target in the case of a target lib,
11503 # we must compare to with_cross_host to decide if this is a native
11504 # or cross-compiler and select where to install dlls appropriately.
11505 if test -n "$with_cross_host" &&
11506 test x
"$with_cross_host" != x
"no"; then
11507 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11509 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11524 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11525 # Check whether --enable-maintainer-mode was given.
11526 if test "${enable_maintainer_mode+set}" = set; then :
11527 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11529 USE_MAINTAINER_MODE
=no
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11533 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11534 if test $USE_MAINTAINER_MODE = yes; then
11535 MAINTAINER_MODE_TRUE
=
11536 MAINTAINER_MODE_FALSE
='#'
11538 MAINTAINER_MODE_TRUE
='#'
11539 MAINTAINER_MODE_FALSE
=
11542 MAINT
=$MAINTAINER_MODE_TRUE
11546 # Create a spec file, so that compile/link tests don't fail
11547 test -f libgfortran.spec ||
touch libgfortran.spec
11548 FCFLAGS
="$FCFLAGS -L."
11550 # We need gfortran to compile parts of the library
11551 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11552 #AC_PROG_FC(gfortran)
11553 case `echo $GFORTRAN` in
11557 set dummy
$GFORTRAN; ac_word
=$2
11558 if test -x "$ac_word"; then
11564 ac_ext
=${ac_fc_srcext-f}
11565 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11566 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11567 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11568 if test -n "$ac_tool_prefix"; then
11569 for ac_prog
in gfortran
11571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11572 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574 $as_echo_n "checking for $ac_word... " >&6; }
11575 if test "${ac_cv_prog_FC+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11578 if test -n "$FC"; then
11579 ac_cv_prog_FC
="$FC" # Let the user override the test.
11581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11582 for as_dir
in $PATH
11585 test -z "$as_dir" && as_dir
=.
11586 for ac_exec_ext
in '' $ac_executable_extensions; do
11587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11588 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 if test -n "$FC"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11601 $as_echo "$FC" >&6; }
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11608 test -n "$FC" && break
11611 if test -z "$FC"; then
11613 for ac_prog
in gfortran
11615 # Extract the first word of "$ac_prog", so it can be a program name with args.
11616 set dummy
$ac_prog; ac_word
=$2
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618 $as_echo_n "checking for $ac_word... " >&6; }
11619 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11622 if test -n "$ac_ct_FC"; then
11623 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11626 for as_dir
in $PATH
11629 test -z "$as_dir" && as_dir
=.
11630 for ac_exec_ext
in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11632 ac_cv_prog_ac_ct_FC
="$ac_prog"
11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11643 if test -n "$ac_ct_FC"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11645 $as_echo "$ac_ct_FC" >&6; }
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11652 test -n "$ac_ct_FC" && break
11655 if test "x$ac_ct_FC" = x
; then
11658 case $cross_compiling:$ac_tool_warned in
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11662 ac_tool_warned
=yes ;;
11669 # Provide some information about the compiler.
11670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11673 for ac_option
in --version -v -V -qversion; do
11674 { { ac_try
="$ac_compiler $ac_option >&5"
11675 case "(($ac_try" in
11676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11680 $as_echo "$ac_try_echo"; } >&5
11681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11683 if test -s conftest.err; then
11685 ... rest of stderr output deleted ...
11686 10q' conftest.err >conftest.er1
11687 cat conftest.er1 >&5
11688 rm -f conftest.er1 conftest.err
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; }
11695 # If we don't use `.F
' as extension, the preprocessor is not run on the
11696 # input file. (Note that this only needs to work for GNU compilers.)
11697 ac_save_ext=$ac_ext
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11700 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11701 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11702 $as_echo_n "(cached) " >&6
11704 cat > conftest.$ac_ext <<_ACEOF
11712 if ac_fn_fc_try_compile "$LINENO"; then :
11713 ac_compiler_gnu=yes
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11722 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11723 ac_ext=$ac_save_ext
11724 ac_test_FCFLAGS=${FCFLAGS+set}
11725 ac_save_FCFLAGS=$FCFLAGS
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11728 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11729 if test "${ac_cv_prog_fc_g+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11733 cat > conftest.$ac_ext <<_ACEOF
11738 if ac_fn_fc_try_compile "$LINENO"; then :
11739 ac_cv_prog_fc_g=yes
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11747 $as_echo "$ac_cv_prog_fc_g" >&6; }
11748 if test "$ac_test_FCFLAGS" = set; then
11749 FCFLAGS=$ac_save_FCFLAGS
11750 elif test $ac_cv_prog_fc_g = yes; then
11751 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11757 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11765 ac_cpp='$CPP $CPPFLAGS'
11766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
11767 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
11768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11770 ac_ext=${ac_fc_srcext-f}
11771 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
11772 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
11773 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11776 if test -z "$FC" || test "X$FC" = "Xno"; then
11780 archive_cmds_need_lc_FC=no
11781 allow_undefined_flag_FC=
11782 always_export_symbols_FC=no
11783 archive_expsym_cmds_FC=
11784 export_dynamic_flag_spec_FC=
11785 hardcode_direct_FC=no
11786 hardcode_direct_absolute_FC=no
11787 hardcode_libdir_flag_spec_FC=
11788 hardcode_libdir_flag_spec_ld_FC=
11789 hardcode_libdir_separator_FC=
11790 hardcode_minus_L_FC=no
11791 hardcode_automatic_FC=no
11792 inherit_rpath_FC=no
11794 module_expsym_cmds_FC=
11795 link_all_deplibs_FC=unknown
11796 old_archive_cmds_FC=$old_archive_cmds
11797 reload_flag_FC=$reload_flag
11798 reload_cmds_FC=$reload_cmds
11799 no_undefined_flag_FC=
11800 whole_archive_flag_spec_FC=
11801 enable_shared_with_static_runtimes_FC=no
11803 # Source file extension for fc test sources.
11804 ac_ext=${ac_fc_srcext-f}
11806 # Object file extension for compiled fc test sources.
11810 # No sense in running all these tests if we already determined that
11811 # the FC compiler isn't working. Some variables
(like enable_shared
)
11812 # are currently assumed to apply to all compilers on this platform,
11813 # and will be corrupted by setting them based on a non-working compiler.
11814 if test "$_lt_disable_FC" != yes; then
11815 # Code to be used in simple compile tests
11816 lt_simple_compile_test_code
="\
11822 # Code to be used in simple link tests
11823 lt_simple_link_test_code
="\
11828 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11835 # If no C compiler was specified, use CC.
11838 # If no C compiler flags were specified, use CFLAGS.
11839 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11841 # Allow CC to be a program name with arguments.
11845 # save warnings/boilerplate of simple test code
11846 ac_outfile
=conftest.
$ac_objext
11847 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11848 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11849 _lt_compiler_boilerplate
=`cat conftest.err`
11852 ac_outfile
=conftest.
$ac_objext
11853 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11854 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11855 _lt_linker_boilerplate
=`cat conftest.err`
11859 # Allow CC to be a program name with arguments.
11864 GCC
=$ac_cv_fc_compiler_gnu
11867 for cc_temp
in $compiler""; do
11869 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11870 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11875 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11878 if test -n "$compiler"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11880 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11882 $as_echo "$can_build_shared" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11885 $as_echo_n "checking whether to build shared libraries... " >&6; }
11886 test "$can_build_shared" = "no" && enable_shared
=no
11888 # On AIX, shared libraries and static libraries use the same namespace, and
11889 # are all built from PIC.
11892 test "$enable_shared" = yes && enable_static
=no
11893 if test -n "$RANLIB"; then
11894 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11895 postinstall_cmds
='$RANLIB $lib'
11899 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11900 test "$enable_shared" = yes && enable_static
=no
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11905 $as_echo "$enable_shared" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11908 $as_echo_n "checking whether to build static libraries... " >&6; }
11909 # Make sure either enable_shared or enable_static is yes.
11910 test "$enable_shared" = yes || enable_static
=yes
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11912 $as_echo "$enable_static" >&6; }
11914 GCC_FC
="$ac_cv_fc_compiler_gnu"
11918 ## There is no encapsulation within the following macros, do not change
11919 ## the running order or otherwise move them around unless you know exactly
11920 ## what you are doing...
11921 # Dependencies to place before and after the object being linked:
11923 postdep_objects_FC
=
11926 compiler_lib_search_path_FC
=
11928 cat > conftest.
$ac_ext <<_LT_EOF
11937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11938 (eval $ac_compile) 2>&5
11940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; }; then
11942 # Parse the compiler output and extract the necessary
11943 # objects, libraries and library flags.
11945 # Sentinel used to keep track of whether or not we are before
11946 # the conftest object file.
11947 pre_test_object_deps_done
=no
11949 for p
in `eval "$output_verbose_link_cmd"`; do
11953 # Some compilers place space between "-{L,R}" and the path.
11954 # Remove the space.
11955 if test $p = "-L" ||
11956 test $p = "-R"; then
11963 if test "$pre_test_object_deps_done" = no
; then
11966 # Internal compiler library paths should come after those
11967 # provided the user. The postdeps already come after the
11968 # user supplied libs so there is no need to process them.
11969 if test -z "$compiler_lib_search_path_FC"; then
11970 compiler_lib_search_path_FC
="${prev}${p}"
11972 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
11975 # The "-l" case would never come before the object being
11976 # linked, so don't bother handling this case.
11979 if test -z "$postdeps_FC"; then
11980 postdeps_FC
="${prev}${p}"
11982 postdeps_FC
="${postdeps_FC} ${prev}${p}"
11988 # This assumes that the test object file only shows up
11989 # once in the compiler output.
11990 if test "$p" = "conftest.$objext"; then
11991 pre_test_object_deps_done
=yes
11995 if test "$pre_test_object_deps_done" = no
; then
11996 if test -z "$predep_objects_FC"; then
11997 predep_objects_FC
="$p"
11999 predep_objects_FC
="$predep_objects_FC $p"
12002 if test -z "$postdep_objects_FC"; then
12003 postdep_objects_FC
="$p"
12005 postdep_objects_FC
="$postdep_objects_FC $p"
12010 *) ;; # Ignore the rest.
12018 echo "libtool.m4: error: problem compiling FC test program"
12021 $RM -f confest.
$objext
12023 # PORTME: override above test on systems where it is broken
12026 case " $postdeps_FC " in
12027 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12029 compiler_lib_search_dirs_FC
=
12030 if test -n "${compiler_lib_search_path_FC}"; then
12031 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12064 lt_prog_compiler_wl_FC
=
12065 lt_prog_compiler_pic_FC
=
12066 lt_prog_compiler_static_FC
=
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12069 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12071 if test "$GCC" = yes; then
12072 lt_prog_compiler_wl_FC
='-Wl,'
12073 lt_prog_compiler_static_FC
='-static'
12077 # All AIX code is PIC.
12078 if test "$host_cpu" = ia64
; then
12079 # AIX 5 now supports IA64 processor
12080 lt_prog_compiler_static_FC
='-Bstatic'
12082 lt_prog_compiler_pic_FC
='-fPIC'
12088 # see comment about AmigaOS4 .so support
12089 lt_prog_compiler_pic_FC
='-fPIC'
12092 # FIXME: we need at least 68020 code to build shared libraries, but
12093 # adding the `-m68020' flag to GCC prevents building anything better,
12095 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12100 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12101 # PIC is the default for these OSes.
12104 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12105 # This hack is so that the source file can tell whether it is being
12106 # built for inclusion in a dll (and should export symbols for example).
12107 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12108 # (--disable-auto-import) libraries
12109 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12112 darwin
* | rhapsody
*)
12113 # PIC is the default on this platform
12114 # Common symbols not allowed in MH_DYLIB files
12115 lt_prog_compiler_pic_FC
='-fno-common'
12119 # PIC is the default for Haiku.
12120 # The "-static" flag exists, but is broken.
12121 lt_prog_compiler_static_FC
=
12125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12127 # sets the default TLS model and affects inlining.
12133 lt_prog_compiler_pic_FC
='-fPIC'
12139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12140 # Instead, we relocate shared libraries at runtime.
12144 # Just because we use GCC doesn't mean we suddenly get shared libraries
12145 # on systems that don't support them.
12146 lt_prog_compiler_can_build_shared_FC
=no
12151 # QNX uses GNU C++, but need to define -shared option too, otherwise
12152 # it will coredump.
12153 lt_prog_compiler_pic_FC
='-fPIC -shared'
12157 if test -d /usr
/nec
; then
12158 lt_prog_compiler_pic_FC
=-Kconform_pic
12163 lt_prog_compiler_pic_FC
='-fPIC'
12167 case $cc_basename in
12168 nvcc
*) # Cuda Compiler Driver 2.2
12169 lt_prog_compiler_wl_FC
='-Xlinker '
12170 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12174 # PORTME Check for flag to pass linker flags through the system compiler.
12177 lt_prog_compiler_wl_FC
='-Wl,'
12178 if test "$host_cpu" = ia64
; then
12179 # AIX 5 now supports IA64 processor
12180 lt_prog_compiler_static_FC
='-Bstatic'
12182 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12186 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12187 # This hack is so that the source file can tell whether it is being
12188 # built for inclusion in a dll (and should export symbols for example).
12189 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12192 hpux9
* | hpux10
* | hpux11
*)
12193 lt_prog_compiler_wl_FC
='-Wl,'
12194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12195 # not for PA HP-UX.
12201 lt_prog_compiler_pic_FC
='+Z'
12204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12205 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12208 irix5
* | irix6
* | nonstopux
*)
12209 lt_prog_compiler_wl_FC
='-Wl,'
12210 # PIC (with -KPIC) is the default.
12211 lt_prog_compiler_static_FC
='-non_shared'
12214 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12215 case $cc_basename in
12216 # old Intel for x86_64 which still supported -KPIC.
12218 lt_prog_compiler_wl_FC
='-Wl,'
12219 lt_prog_compiler_pic_FC
='-KPIC'
12220 lt_prog_compiler_static_FC
='-static'
12222 # icc used to be incompatible with GCC.
12223 # ICC 10 doesn't accept -KPIC any more.
12225 lt_prog_compiler_wl_FC
='-Wl,'
12226 lt_prog_compiler_pic_FC
='-fPIC'
12227 lt_prog_compiler_static_FC
='-static'
12229 # Lahey Fortran 8.1.
12231 lt_prog_compiler_wl_FC
='-Wl,'
12232 lt_prog_compiler_pic_FC
='--shared'
12233 lt_prog_compiler_static_FC
='--static'
12235 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12236 # Portland Group compilers (*not* the Pentium gcc compiler,
12237 # which looks to be a dead project)
12238 lt_prog_compiler_wl_FC
='-Wl,'
12239 lt_prog_compiler_pic_FC
='-fpic'
12240 lt_prog_compiler_static_FC
='-Bstatic'
12243 lt_prog_compiler_wl_FC
='-Wl,'
12244 # All Alpha code is PIC.
12245 lt_prog_compiler_static_FC
='-non_shared'
12247 xl
* | bgxl
* | bgf
* | mpixl
*)
12248 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12249 lt_prog_compiler_wl_FC
='-Wl,'
12250 lt_prog_compiler_pic_FC
='-qpic'
12251 lt_prog_compiler_static_FC
='-qstaticlink'
12254 case `$CC -V 2>&1 | sed 5q` in
12255 *Sun\ F
* |
*Sun
*Fortran
*)
12256 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12257 lt_prog_compiler_pic_FC
='-KPIC'
12258 lt_prog_compiler_static_FC
='-Bstatic'
12259 lt_prog_compiler_wl_FC
=''
12263 lt_prog_compiler_pic_FC
='-KPIC'
12264 lt_prog_compiler_static_FC
='-Bstatic'
12265 lt_prog_compiler_wl_FC
='-Wl,'
12273 lt_prog_compiler_pic_FC
='-KPIC'
12274 lt_prog_compiler_static_FC
='-Bstatic'
12278 # QNX uses GNU C++, but need to define -shared option too, otherwise
12279 # it will coredump.
12280 lt_prog_compiler_pic_FC
='-fPIC -shared'
12283 osf3
* | osf4
* | osf5
*)
12284 lt_prog_compiler_wl_FC
='-Wl,'
12285 # All OSF/1 code is PIC.
12286 lt_prog_compiler_static_FC
='-non_shared'
12290 lt_prog_compiler_static_FC
='-non_shared'
12294 lt_prog_compiler_pic_FC
='-KPIC'
12295 lt_prog_compiler_static_FC
='-Bstatic'
12296 case $cc_basename in
12297 f77
* | f90
* | f95
*)
12298 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12300 lt_prog_compiler_wl_FC
='-Wl,';;
12305 lt_prog_compiler_wl_FC
='-Qoption ld '
12306 lt_prog_compiler_pic_FC
='-PIC'
12307 lt_prog_compiler_static_FC
='-Bstatic'
12310 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12311 lt_prog_compiler_wl_FC
='-Wl,'
12312 lt_prog_compiler_pic_FC
='-KPIC'
12313 lt_prog_compiler_static_FC
='-Bstatic'
12317 if test -d /usr
/nec
;then
12318 lt_prog_compiler_pic_FC
='-Kconform_pic'
12319 lt_prog_compiler_static_FC
='-Bstatic'
12323 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12324 lt_prog_compiler_wl_FC
='-Wl,'
12325 lt_prog_compiler_pic_FC
='-KPIC'
12326 lt_prog_compiler_static_FC
='-Bstatic'
12330 lt_prog_compiler_wl_FC
='-Wl,'
12331 lt_prog_compiler_can_build_shared_FC
=no
12335 lt_prog_compiler_pic_FC
='-pic'
12336 lt_prog_compiler_static_FC
='-Bstatic'
12340 lt_prog_compiler_can_build_shared_FC
=no
12346 # For platforms which do not support PIC, -DPIC is meaningless:
12348 lt_prog_compiler_pic_FC
=
12351 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12355 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12360 # Check to make sure the PIC flag actually works.
12362 if test -n "$lt_prog_compiler_pic_FC"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12364 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12365 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 lt_cv_prog_compiler_pic_works_FC
=no
12369 ac_outfile
=conftest.
$ac_objext
12370 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12371 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12372 # Insert the option either (1) after the last *FLAGS variable, or
12373 # (2) before a word containing "conftest.", or (3) at the end.
12374 # Note that $ac_compile itself does not contain backslashes and begins
12375 # with a dollar sign (not a hyphen), so the echo should work correctly.
12376 # The option is referenced via a variable to avoid confusing sed.
12377 lt_compile
=`echo "$ac_compile" | $SED \
12378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12380 -e 's:$: $lt_compiler_flag:'`
12381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12382 (eval "$lt_compile" 2>conftest.err
)
12384 cat conftest.err
>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 if (exit $ac_status) && test -s "$ac_outfile"; then
12387 # The compiler can only warn and ignore the option if not recognized
12388 # So say no if there are warnings other than the usual output.
12389 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12390 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12391 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12392 lt_cv_prog_compiler_pic_works_FC
=yes
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12399 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12401 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12402 case $lt_prog_compiler_pic_FC in
12404 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12407 lt_prog_compiler_pic_FC
=
12408 lt_prog_compiler_can_build_shared_FC
=no
12416 # Check to make sure the static flag actually works.
12418 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12420 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12421 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12424 lt_cv_prog_compiler_static_works_FC
=no
12425 save_LDFLAGS
="$LDFLAGS"
12426 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12427 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12428 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12429 # The linker can only warn and ignore the option if not recognized
12430 # So say no if there are warnings
12431 if test -s conftest.err
; then
12432 # Append any errors to the config.log.
12433 cat conftest.err
1>&5
12434 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12435 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12436 if diff conftest.exp conftest.er2
>/dev
/null
; then
12437 lt_cv_prog_compiler_static_works_FC
=yes
12440 lt_cv_prog_compiler_static_works_FC
=yes
12444 LDFLAGS
="$save_LDFLAGS"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12448 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12450 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12453 lt_prog_compiler_static_FC
=
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12461 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12464 lt_cv_prog_compiler_c_o_FC
=no
12465 $RM -r conftest
2>/dev
/null
12469 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12471 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12472 # Insert the option either (1) after the last *FLAGS variable, or
12473 # (2) before a word containing "conftest.", or (3) at the end.
12474 # Note that $ac_compile itself does not contain backslashes and begins
12475 # with a dollar sign (not a hyphen), so the echo should work correctly.
12476 lt_compile
=`echo "$ac_compile" | $SED \
12477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479 -e 's:$: $lt_compiler_flag:'`
12480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12481 (eval "$lt_compile" 2>out
/conftest.err
)
12483 cat out
/conftest.err
>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12487 # The compiler can only warn and ignore the option if not recognized
12488 # So say no if there are warnings
12489 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12490 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12491 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12492 lt_cv_prog_compiler_c_o_FC
=yes
12497 # SGI C++ compiler will create directory out/ii_files/ for
12498 # template instantiation
12499 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12500 $RM out
/* && rmdir out
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12507 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12513 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12516 lt_cv_prog_compiler_c_o_FC
=no
12517 $RM -r conftest
2>/dev
/null
12521 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12523 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12524 # Insert the option either (1) after the last *FLAGS variable, or
12525 # (2) before a word containing "conftest.", or (3) at the end.
12526 # Note that $ac_compile itself does not contain backslashes and begins
12527 # with a dollar sign (not a hyphen), so the echo should work correctly.
12528 lt_compile
=`echo "$ac_compile" | $SED \
12529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12531 -e 's:$: $lt_compiler_flag:'`
12532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12533 (eval "$lt_compile" 2>out
/conftest.err
)
12535 cat out
/conftest.err
>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12539 # The compiler can only warn and ignore the option if not recognized
12540 # So say no if there are warnings
12541 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12542 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12543 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12544 lt_cv_prog_compiler_c_o_FC
=yes
12549 # SGI C++ compiler will create directory out/ii_files/ for
12550 # template instantiation
12551 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12552 $RM out
/* && rmdir out
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12559 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12564 hard_links
="nottested"
12565 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12566 # do not overwrite the value of need_locks provided by the user
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12568 $as_echo_n "checking if we can lock with hard links... " >&6; }
12571 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12573 ln conftest.a conftest.b
2>&5 || hard_links
=no
12574 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12576 $as_echo "$hard_links" >&6; }
12577 if test "$hard_links" = no
; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12579 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12589 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12592 allow_undefined_flag_FC
=
12593 always_export_symbols_FC
=no
12595 archive_expsym_cmds_FC
=
12596 compiler_needs_object_FC
=no
12597 enable_shared_with_static_runtimes_FC
=no
12598 export_dynamic_flag_spec_FC
=
12599 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12600 hardcode_automatic_FC
=no
12601 hardcode_direct_FC
=no
12602 hardcode_direct_absolute_FC
=no
12603 hardcode_libdir_flag_spec_FC
=
12604 hardcode_libdir_flag_spec_ld_FC
=
12605 hardcode_libdir_separator_FC
=
12606 hardcode_minus_L_FC
=no
12607 hardcode_shlibpath_var_FC
=unsupported
12608 inherit_rpath_FC
=no
12609 link_all_deplibs_FC
=unknown
12611 module_expsym_cmds_FC
=
12612 old_archive_from_new_cmds_FC
=
12613 old_archive_from_expsyms_cmds_FC
=
12614 thread_safe_flag_spec_FC
=
12615 whole_archive_flag_spec_FC
=
12616 # include_expsyms should be a list of space-separated symbols to be *always*
12617 # included in the symbol list
12618 include_expsyms_FC
=
12619 # exclude_expsyms can be an extended regexp of symbols to exclude
12620 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12621 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12622 # as well as any symbol that contains `d'.
12623 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12624 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12625 # platforms (ab)use it in PIC code, but their linkers get confused if
12626 # the symbol is explicitly referenced. Since portable code cannot
12627 # rely on this symbol name, it's probably fine to never include it in
12628 # preloaded symbol tables.
12629 # Exclude shared library initialization/finalization symbols.
12630 extract_expsyms_cmds
=
12633 cygwin
* | mingw
* | pw32
* | cegcc
*)
12634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12635 # When not using gcc, we currently assume that we are using
12636 # Microsoft Visual C++.
12637 if test "$GCC" != yes; then
12642 # we just hope/assume this is gcc and not c89 (= MSVC++)
12652 # On some targets, GNU ld is compatible enough with the native linker
12653 # that we're better off using the native interface for both.
12654 lt_use_gnu_ld_interface
=no
12655 if test "$with_gnu_ld" = yes; then
12658 # The AIX port of GNU ld has always aspired to compatibility
12659 # with the native linker. However, as the warning in the GNU ld
12660 # block says, versions before 2.19.5* couldn't really create working
12661 # shared libraries, regardless of the interface used.
12662 case `$LD -v 2>&1` in
12663 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12664 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12665 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12667 lt_use_gnu_ld_interface
=yes
12672 lt_use_gnu_ld_interface
=yes
12677 if test "$lt_use_gnu_ld_interface" = yes; then
12678 # If archive_cmds runs LD, not CC, wlarc should be empty
12681 # Set some defaults for GNU ld with shared library support. These
12682 # are reset later if shared libraries are not supported. Putting them
12683 # here allows them to be overridden if necessary.
12684 runpath_var
=LD_RUN_PATH
12685 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12686 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12687 # ancient GNU ld didn't support --whole-archive et. al.
12688 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12689 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12691 whole_archive_flag_spec_FC
=
12693 supports_anon_versioning
=no
12694 case `$LD -v 2>&1` in
12695 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12696 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12697 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12698 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12699 *\
2.11.
*) ;; # other 2.11 versions
12700 *) supports_anon_versioning
=yes ;;
12703 # See if GNU ld supports shared libraries.
12706 # On AIX/PPC, the GNU linker is very broken
12707 if test "$host_cpu" != ia64
; then
12711 *** Warning: the GNU linker, at least up to release 2.19, is reported
12712 *** to be unable to reliably create shared libraries on AIX.
12713 *** Therefore, libtool is disabling shared libraries support. If you
12714 *** really care for shared libraries, you may want to install binutils
12715 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12716 *** You will then need to restart the configuration process.
12725 # see comment about AmigaOS4 .so support
12726 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12727 archive_expsym_cmds_FC
=''
12730 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)'
12731 hardcode_libdir_flag_spec_FC
='-L$libdir'
12732 hardcode_minus_L_FC
=yes
12738 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12739 allow_undefined_flag_FC
=unsupported
12740 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12741 # support --undefined. This deserves some investigation. FIXME
12742 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12748 cygwin
* | mingw
* | pw32
* | cegcc
*)
12749 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12750 # as there is no search path for DLLs.
12751 hardcode_libdir_flag_spec_FC
='-L$libdir'
12752 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
12753 allow_undefined_flag_FC
=unsupported
12754 always_export_symbols_FC
=no
12755 enable_shared_with_static_runtimes_FC
=yes
12756 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12758 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12759 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12760 # If the export-symbols file already is a .def file (1st line
12761 # is EXPORTS), use it as is; otherwise, prepend...
12762 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12763 cp $export_symbols $output_objdir/$soname.def;
12765 echo EXPORTS > $output_objdir/$soname.def;
12766 cat $export_symbols >> $output_objdir/$soname.def;
12768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12775 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12776 link_all_deplibs_FC
=yes
12780 hardcode_direct_FC
=no
12781 hardcode_shlibpath_var_FC
=no
12782 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
12783 export_dynamic_flag_spec_FC
='${wl}-E'
12784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12785 # Instead, shared libraries are loaded at an image base (0x10000000 by
12786 # default) and relocated if they conflict, which is a slow very memory
12787 # consuming and fragmenting process. To avoid this, we pick a random,
12788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12790 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'
12791 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'
12794 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12796 if test "$host_os" = linux-dietlibc
; then
12797 case $cc_basename in
12798 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12801 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12802 && test "$tmp_diet" = no
12804 tmp_addflag
=' $pic_flag'
12805 tmp_sharedflag
='-shared'
12806 case $cc_basename,$host_cpu in
12807 pgcc
*) # Portland Group C compiler
12808 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'
12809 tmp_addflag
=' $pic_flag'
12811 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12812 # Portland Group f77 and f90 compilers
12813 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'
12814 tmp_addflag
=' $pic_flag -Mnomain' ;;
12815 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12816 tmp_addflag
=' -i_dynamic' ;;
12817 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12818 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12819 ifc
* | ifort
*) # Intel Fortran compiler
12820 tmp_addflag
=' -nofor_main' ;;
12821 lf95
*) # Lahey Fortran 8.1
12822 whole_archive_flag_spec_FC
=
12823 tmp_sharedflag
='--shared' ;;
12824 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12825 tmp_sharedflag
='-qmkshrobj'
12827 nvcc
*) # Cuda Compiler Driver 2.2
12828 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'
12829 compiler_needs_object_FC
=yes
12832 case `$CC -V 2>&1 | sed 5q` in
12833 *Sun\ C
*) # Sun C 5.9
12834 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'
12835 compiler_needs_object_FC
=yes
12836 tmp_sharedflag
='-G' ;;
12837 *Sun\ F
*) # Sun Fortran 8.3
12838 tmp_sharedflag
='-G' ;;
12840 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842 if test "x$supports_anon_versioning" = xyes
; then
12843 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12845 echo "local: *; };" >> $output_objdir/$libname.ver~
12846 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12849 case $cc_basename in
12850 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12851 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12852 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
12853 hardcode_libdir_flag_spec_FC
=
12854 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
12855 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12856 if test "x$supports_anon_versioning" = xyes
; then
12857 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
12858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12859 echo "local: *; };" >> $output_objdir/$libname.ver~
12860 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12870 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12871 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12874 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12880 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12884 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12885 *** create shared libraries on Solaris systems. Therefore, libtool
12886 *** is disabling shared libraries support. We urge you to upgrade GNU
12887 *** binutils to release 2.9.1 or newer. Another option is to modify
12888 *** your PATH or compiler configuration so that the native linker is
12889 *** used, and then restart.
12892 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12893 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12894 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12900 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12901 case `$LD -v 2>&1` in
12902 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12906 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12907 *** reliably create shared libraries on SCO systems. Therefore, libtool
12908 *** is disabling shared libraries support. We urge you to upgrade GNU
12909 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12910 *** your PATH or compiler configuration so that the native linker is
12911 *** used, and then restart.
12916 # For security reasons, it is highly recommended that you always
12917 # use absolute paths for naming shared libraries, and exclude the
12918 # DT_RUNPATH tag from executables and libraries. But doing so
12919 # requires that you compile everything twice, which is a pain.
12920 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12921 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12922 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12932 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12934 hardcode_direct_FC
=yes
12935 hardcode_shlibpath_var_FC
=no
12939 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12940 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12948 if test "$ld_shlibs_FC" = no
; then
12950 hardcode_libdir_flag_spec_FC
=
12951 export_dynamic_flag_spec_FC
=
12952 whole_archive_flag_spec_FC
=
12955 # PORTME fill in a description of your system's linker (not GNU ld)
12958 allow_undefined_flag_FC
=unsupported
12959 always_export_symbols_FC
=yes
12960 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'
12961 # Note: this linker hardcodes the directories in LIBPATH if there
12962 # are no directories specified by -L.
12963 hardcode_minus_L_FC
=yes
12964 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12965 # Neither direct hardcoding nor static linking is supported with a
12967 hardcode_direct_FC
=unsupported
12972 if test "$host_cpu" = ia64
; then
12973 # On IA64, the linker does run time linking by default, so we don't
12974 # have to do anything special.
12975 aix_use_runtimelinking
=no
12976 exp_sym_flag
='-Bexport'
12979 # If we're using GNU nm, then we don't want the "-C" option.
12980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12981 # Also, AIX nm treats weak defined symbols like other global
12982 # defined symbols, whereas GNU nm marks them as "W".
12983 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12984 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'
12986 export_symbols_cmds_FC
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12988 aix_use_runtimelinking
=no
12990 # Test if we are trying to use run time linking or normal
12991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12992 # need to do runtime linking.
12993 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12994 for ld_flag
in $LDFLAGS; do
12995 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12996 aix_use_runtimelinking
=yes
13003 exp_sym_flag
='-bexport'
13004 no_entry_flag
='-bnoentry'
13007 # When large executables or shared objects are built, AIX ld can
13008 # have problems creating the table of contents. If linking a library
13009 # or program results in "error TOC overflow" add -mminimal-toc to
13010 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13011 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13014 hardcode_direct_FC
=yes
13015 hardcode_direct_absolute_FC
=yes
13016 hardcode_libdir_separator_FC
=':'
13017 link_all_deplibs_FC
=yes
13018 file_list_spec_FC
='${wl}-f,'
13020 if test "$GCC" = yes; then
13021 case $host_os in aix4.
[012]|aix4.
[012].
*)
13022 # We only want to do this on AIX 4.2 and lower, the check
13023 # below for broken collect2 doesn't work under 4.3+
13024 collect2name
=`${CC} -print-prog-name=collect2`
13025 if test -f "$collect2name" &&
13026 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13028 # We have reworked collect2
13031 # We have old collect2
13032 hardcode_direct_FC
=unsupported
13033 # It fails to find uninstalled libraries when the uninstalled
13034 # path is not listed in the libpath. Setting hardcode_minus_L
13035 # to unsupported forces relinking
13036 hardcode_minus_L_FC
=yes
13037 hardcode_libdir_flag_spec_FC
='-L$libdir'
13038 hardcode_libdir_separator_FC
=
13042 shared_flag
='-shared'
13043 if test "$aix_use_runtimelinking" = yes; then
13044 shared_flag
="$shared_flag "'${wl}-G'
13048 if test "$host_cpu" = ia64
; then
13049 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13050 # chokes on -Wl,-G. The following line is correct:
13053 if test "$aix_use_runtimelinking" = yes; then
13054 shared_flag
='${wl}-G'
13056 shared_flag
='${wl}-bM:SRE'
13061 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13062 # It seems that -bexpall does not export symbols beginning with
13063 # underscore (_), so it is better to generate a list of symbols to export.
13064 always_export_symbols_FC
=yes
13065 if test "$aix_use_runtimelinking" = yes; then
13066 # Warning - without using the other runtime loading flags (-brtl),
13067 # -berok will link without error, but may produce a broken library.
13068 allow_undefined_flag_FC
='-berok'
13069 # Determine the default libpath from the value encoded in an
13070 # empty executable.
13071 cat > conftest.
$ac_ext <<_ACEOF
13076 if ac_fn_fc_try_link
"$LINENO"; then :
13078 lt_aix_libpath_sed
='
13079 /Import File Strings/,/^$/ {
13085 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13086 # Check for a 64-bit object if we didn't find anything.
13087 if test -z "$aix_libpath"; then
13088 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13091 rm -f core conftest.err conftest.
$ac_objext \
13092 conftest
$ac_exeext conftest.
$ac_ext
13093 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13095 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13096 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"
13098 if test "$host_cpu" = ia64
; then
13099 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13100 allow_undefined_flag_FC
="-z nodefs"
13101 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"
13103 # Determine the default libpath from the value encoded in an
13104 # empty executable.
13105 cat > conftest.
$ac_ext <<_ACEOF
13110 if ac_fn_fc_try_link
"$LINENO"; then :
13112 lt_aix_libpath_sed
='
13113 /Import File Strings/,/^$/ {
13119 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13120 # Check for a 64-bit object if we didn't find anything.
13121 if test -z "$aix_libpath"; then
13122 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13125 rm -f core conftest.err conftest.
$ac_objext \
13126 conftest
$ac_exeext conftest.
$ac_ext
13127 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13129 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13130 # Warning - without using the other run time loading flags,
13131 # -berok will link without error, but may produce a broken library.
13132 no_undefined_flag_FC
=' ${wl}-bernotok'
13133 allow_undefined_flag_FC
=' ${wl}-berok'
13134 if test "$with_gnu_ld" = yes; then
13135 # We only use this code for GNU lds that support --whole-archive.
13136 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13138 # Exported symbols can be pulled into shared objects from archives
13139 whole_archive_flag_spec_FC
='$convenience'
13141 archive_cmds_need_lc_FC
=yes
13142 # This is similar to how AIX traditionally builds its shared libraries.
13143 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'
13151 # see comment about AmigaOS4 .so support
13152 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153 archive_expsym_cmds_FC
=''
13156 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)'
13157 hardcode_libdir_flag_spec_FC
='-L$libdir'
13158 hardcode_minus_L_FC
=yes
13164 export_dynamic_flag_spec_FC
=-rdynamic
13167 cygwin
* | mingw
* | pw32
* | cegcc
*)
13168 # When not using gcc, we currently assume that we are using
13169 # Microsoft Visual C++.
13170 # hardcode_libdir_flag_spec is actually meaningless, as there is
13171 # no search path for DLLs.
13172 hardcode_libdir_flag_spec_FC
=' '
13173 allow_undefined_flag_FC
=unsupported
13174 # Tell ltmain to make .lib files, not .a files.
13176 # Tell ltmain to make .dll files, not .so files.
13178 # FIXME: Setting linknames here is a bad hack.
13179 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13180 # The linker will automatically build a .lib file if we build a DLL.
13181 old_archive_from_new_cmds_FC
='true'
13182 # FIXME: Should let the user specify the lib program.
13183 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13184 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13185 enable_shared_with_static_runtimes_FC
=yes
13188 darwin
* | rhapsody
*)
13191 archive_cmds_need_lc_FC
=no
13192 hardcode_direct_FC
=no
13193 hardcode_automatic_FC
=yes
13194 hardcode_shlibpath_var_FC
=unsupported
13195 if test "$lt_cv_ld_force_load" = "yes"; then
13196 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\"`'
13198 whole_archive_flag_spec_FC
=''
13200 link_all_deplibs_FC
=yes
13201 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13202 case $cc_basename in
13203 ifort
*) _lt_dar_can_shared
=yes ;;
13204 *) _lt_dar_can_shared
=$GCC ;;
13206 if test "$_lt_dar_can_shared" = "yes"; then
13207 output_verbose_link_cmd
=func_echo_all
13208 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}"
13209 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13210 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}"
13211 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}"
13220 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13221 hardcode_libdir_flag_spec_FC
='-L$libdir'
13222 hardcode_shlibpath_var_FC
=no
13225 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13226 # support. Future versions do this automatically, but an explicit c++rt0.o
13227 # does not break anything, and helps significantly (at the cost of a little
13230 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13231 hardcode_libdir_flag_spec_FC
='-R$libdir'
13232 hardcode_direct_FC
=yes
13233 hardcode_shlibpath_var_FC
=no
13236 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13238 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13239 hardcode_direct_FC
=yes
13240 hardcode_minus_L_FC
=yes
13241 hardcode_shlibpath_var_FC
=no
13244 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13245 freebsd
* | dragonfly
*)
13246 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13247 hardcode_libdir_flag_spec_FC
='-R$libdir'
13248 hardcode_direct_FC
=yes
13249 hardcode_shlibpath_var_FC
=no
13253 if test "$GCC" = yes; then
13254 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'
13256 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'
13258 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13259 hardcode_libdir_separator_FC
=:
13260 hardcode_direct_FC
=yes
13262 # hardcode_minus_L: Not really in the search PATH,
13263 # but as the default location of the library.
13264 hardcode_minus_L_FC
=yes
13265 export_dynamic_flag_spec_FC
='${wl}-E'
13269 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13270 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13272 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13274 if test "$with_gnu_ld" = no
; then
13275 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13276 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13277 hardcode_libdir_separator_FC
=:
13278 hardcode_direct_FC
=yes
13279 hardcode_direct_absolute_FC
=yes
13280 export_dynamic_flag_spec_FC
='${wl}-E'
13281 # hardcode_minus_L: Not really in the search PATH,
13282 # but as the default location of the library.
13283 hardcode_minus_L_FC
=yes
13288 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13291 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13294 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13306 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13309 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13313 if test "$with_gnu_ld" = no
; then
13314 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13315 hardcode_libdir_separator_FC
=:
13319 hardcode_direct_FC
=no
13320 hardcode_shlibpath_var_FC
=no
13323 hardcode_direct_FC
=yes
13324 hardcode_direct_absolute_FC
=yes
13325 export_dynamic_flag_spec_FC
='${wl}-E'
13327 # hardcode_minus_L: Not really in the search PATH,
13328 # but as the default location of the library.
13329 hardcode_minus_L_FC
=yes
13335 irix5
* | irix6
* | nonstopux
*)
13336 if test "$GCC" = yes; then
13337 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'
13338 # Try to use the -exported_symbol ld option, if it does not
13339 # work, assume that -exports_file does not work either and
13340 # implicitly export all symbols.
13341 save_LDFLAGS
="$LDFLAGS"
13342 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13343 cat > conftest.
$ac_ext <<_ACEOF
13346 if ac_fn_fc_try_link
"$LINENO"; then :
13347 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'
13350 rm -f core conftest.err conftest.
$ac_objext \
13351 conftest
$ac_exeext conftest.
$ac_ext
13352 LDFLAGS
="$save_LDFLAGS"
13354 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'
13355 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'
13357 archive_cmds_need_lc_FC
='no'
13358 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13359 hardcode_libdir_separator_FC
=:
13360 inherit_rpath_FC
=yes
13361 link_all_deplibs_FC
=yes
13365 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13366 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13368 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13370 hardcode_libdir_flag_spec_FC
='-R$libdir'
13371 hardcode_direct_FC
=yes
13372 hardcode_shlibpath_var_FC
=no
13376 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13377 hardcode_direct_FC
=yes
13378 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13379 hardcode_libdir_separator_FC
=:
13380 hardcode_shlibpath_var_FC
=no
13387 if test -f /usr
/libexec
/ld.so
; then
13388 hardcode_direct_FC
=yes
13389 hardcode_shlibpath_var_FC
=no
13390 hardcode_direct_absolute_FC
=yes
13391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13392 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13393 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13394 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13395 export_dynamic_flag_spec_FC
='${wl}-E'
13398 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13399 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13400 hardcode_libdir_flag_spec_FC
='-R$libdir'
13403 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13404 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13414 hardcode_libdir_flag_spec_FC
='-L$libdir'
13415 hardcode_minus_L_FC
=yes
13416 allow_undefined_flag_FC
=unsupported
13417 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'
13418 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13422 if test "$GCC" = yes; then
13423 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13424 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'
13426 allow_undefined_flag_FC
=' -expect_unresolved \*'
13427 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'
13429 archive_cmds_need_lc_FC
='no'
13430 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13431 hardcode_libdir_separator_FC
=:
13434 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13435 if test "$GCC" = yes; then
13436 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13437 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'
13438 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13440 allow_undefined_flag_FC
=' -expect_unresolved \*'
13441 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'
13442 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~
13443 $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'
13445 # Both c and cxx compiler support -rpath directly
13446 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13448 archive_cmds_need_lc_FC
='no'
13449 hardcode_libdir_separator_FC
=:
13453 no_undefined_flag_FC
=' -z defs'
13454 if test "$GCC" = yes; then
13456 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13457 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13458 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13460 case `$CC -V 2>&1` in
13463 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13465 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13469 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13475 hardcode_libdir_flag_spec_FC
='-R$libdir'
13476 hardcode_shlibpath_var_FC
=no
13478 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13480 # The compiler driver will combine and reorder linker options,
13481 # but understands `-z linker_flag'. GCC discards it without `$wl',
13482 # but is careful enough not to reorder.
13483 # Supported since Solaris 2.6 (maybe 2.5.1?)
13484 if test "$GCC" = yes; then
13485 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13487 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13491 link_all_deplibs_FC
=yes
13495 if test "x$host_vendor" = xsequent
; then
13496 # Use $CC to link under sequent, because it throws in some extra .o
13497 # files that make .init and .fini sections work.
13498 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13500 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13502 hardcode_libdir_flag_spec_FC
='-L$libdir'
13503 hardcode_direct_FC
=yes
13504 hardcode_minus_L_FC
=yes
13505 hardcode_shlibpath_var_FC
=no
13509 case $host_vendor in
13511 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13512 hardcode_direct_FC
=yes # is this really true???
13515 ## LD is ld it makes a PLAMLIB
13516 ## CC just makes a GrossModule.
13517 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13518 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13519 hardcode_direct_FC
=no
13522 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13526 runpath_var
='LD_RUN_PATH'
13527 hardcode_shlibpath_var_FC
=no
13531 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_shlibpath_var_FC
=no
13533 export_dynamic_flag_spec_FC
='-Bexport'
13537 if test -d /usr
/nec
; then
13538 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 hardcode_shlibpath_var_FC
=no
13540 runpath_var
=LD_RUN_PATH
13541 hardcode_runpath_var
=yes
13546 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13547 no_undefined_flag_FC
='${wl}-z,text'
13548 archive_cmds_need_lc_FC
=no
13549 hardcode_shlibpath_var_FC
=no
13550 runpath_var
='LD_RUN_PATH'
13552 if test "$GCC" = yes; then
13553 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13556 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13557 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 sysv5
* | sco3.2v5
* | sco5v6
*)
13562 # Note: We can NOT use -z defs as we might desire, because we do not
13563 # link with -lc, and that would cause any symbols used from libc to
13564 # always be unresolved, which means just about no library would
13565 # ever link correctly. If we're not using GNU ld we use -z text
13566 # though, which does catch some bad symbols but isn't as heavy-handed
13568 no_undefined_flag_FC
='${wl}-z,text'
13569 allow_undefined_flag_FC
='${wl}-z,nodefs'
13570 archive_cmds_need_lc_FC
=no
13571 hardcode_shlibpath_var_FC
=no
13572 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13573 hardcode_libdir_separator_FC
=':'
13574 link_all_deplibs_FC
=yes
13575 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13576 runpath_var
='LD_RUN_PATH'
13578 if test "$GCC" = yes; then
13579 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13582 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13583 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13588 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13589 hardcode_libdir_flag_spec_FC
='-L$libdir'
13590 hardcode_shlibpath_var_FC
=no
13598 if test x
$host_vendor = xsni
; then
13600 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13601 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13608 $as_echo "$ld_shlibs_FC" >&6; }
13609 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13611 with_gnu_ld_FC
=$with_gnu_ld
13619 # Do we need to explicitly link libc?
13621 case "x$archive_cmds_need_lc_FC" in
13623 # Assume -lc should be added
13624 archive_cmds_need_lc_FC
=yes
13626 if test "$enable_shared" = yes && test "$GCC" = yes; then
13627 case $archive_cmds_FC in
13629 # FIXME: we may have to deal with multi-command sequences.
13632 # Test whether the compiler implicitly links with -lc since on some
13633 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13634 # to ld, don't add -lc before -lgcc.
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13636 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13637 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13641 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13644 (eval $ac_compile) 2>&5
13646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13647 test $ac_status = 0; } 2>conftest.err
; then
13650 libobjs
=conftest.
$ac_objext
13652 wl
=$lt_prog_compiler_wl_FC
13653 pic_flag
=$lt_prog_compiler_pic_FC
13659 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13660 allow_undefined_flag_FC
=
13661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13662 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665 test $ac_status = 0; }
13667 lt_cv_archive_cmds_need_lc_FC
=no
13669 lt_cv_archive_cmds_need_lc_FC
=yes
13671 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13673 cat conftest.err
1>&5
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13679 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13680 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13751 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13753 library_names_spec
=
13754 libname_spec
='lib$name'
13758 postuninstall_cmds
=
13762 shlibpath_overrides_runpath
=unknown
13764 dynamic_linker
="$host_os ld.so"
13765 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13766 need_lib_prefix
=unknown
13767 hardcode_into_libs
=no
13769 # when you set need_version to no, make sure it does not cause -set_version
13770 # flags to be left without arguments
13771 need_version
=unknown
13776 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13777 shlibpath_var
=LIBPATH
13779 # AIX 3 has no versioning support, so we append a major version to the name.
13780 soname_spec
='${libname}${release}${shared_ext}$major'
13787 hardcode_into_libs
=yes
13788 if test "$host_cpu" = ia64
; then
13789 # AIX 5 supports IA64
13790 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13791 shlibpath_var
=LD_LIBRARY_PATH
13793 # With GCC up to 2.95.x, collect2 would create an import file
13794 # for dependence libraries. The import file would start with
13795 # the line `#! .'. This would cause the generated library to
13796 # depend on `.', always an invalid library. This was fixed in
13797 # development snapshots of GCC prior to 3.0.
13799 aix4 | aix4.
[01] | aix4.
[01].
*)
13800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13802 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
13805 can_build_shared
=no
13809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13810 # soname into executable. Probably we can add versioning support to
13811 # collect2, so additional links can be useful in future.
13812 if test "$aix_use_runtimelinking" = yes; then
13813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13814 # instead of lib<name>.a to let people know that these are not
13815 # typical AIX shared libraries.
13816 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818 # We preserve .a as extension for shared libraries through AIX4.2
13819 # and later when we are not doing run time linking.
13820 library_names_spec
='${libname}${release}.a $libname.a'
13821 soname_spec
='${libname}${release}${shared_ext}$major'
13823 shlibpath_var
=LIBPATH
13830 # Since July 2007 AmigaOS4 officially supports .so libraries.
13831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 library_names_spec
='$libname.ixlibrary $libname.a'
13836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13837 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'
13843 library_names_spec
='${libname}${shared_ext}'
13844 dynamic_linker
="$host_os ld.so"
13845 shlibpath_var
=LIBRARY_PATH
13851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec
='${libname}${release}${shared_ext}$major'
13853 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13854 shlibpath_var
=LD_LIBRARY_PATH
13855 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13856 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13857 # the default ld.so.conf also contains /usr/contrib/lib and
13858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13859 # libtool to hard-code these into programs
13862 cygwin
* | mingw
* | pw32
* | cegcc
*)
13863 version_type
=windows
13868 case $GCC,$host_os in
13869 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
13870 library_names_spec
='$libname.dll.a'
13871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13872 postinstall_cmds
='base_file=`basename \${file}`~
13873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13874 dldir=$destdir/`dirname \$dlpath`~
13875 test -d \$dldir || mkdir -p \$dldir~
13876 $install_prog $dir/$dlname \$dldir/$dlname~
13877 chmod a+x \$dldir/$dlname~
13878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13881 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13882 dlpath=$dir/\$dldll~
13884 shlibpath_overrides_runpath
=yes
13888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13889 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13893 # MinGW DLLs use traditional 'lib' prefix
13894 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13897 # pw32 DLLs use 'pw' prefix rather than 'lib'
13898 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13904 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13907 dynamic_linker
='Win32 ld.exe'
13908 # FIXME: first we should search . and the directory the executable is in
13912 darwin
* | rhapsody
*)
13913 dynamic_linker
="$host_os dyld"
13914 version_type
=darwin
13917 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13918 soname_spec
='${libname}${release}${major}$shared_ext'
13919 shlibpath_overrides_runpath
=yes
13920 shlibpath_var
=DYLD_LIBRARY_PATH
13921 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13923 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13931 soname_spec
='${libname}${release}${shared_ext}$major'
13932 shlibpath_var
=LD_LIBRARY_PATH
13935 freebsd
* | dragonfly
*)
13936 # DragonFly does not have aout. When/if they implement a new
13937 # versioning mechanism, adjust this.
13938 if test -x /usr
/bin
/objformat
; then
13939 objformat
=`/usr/bin/objformat`
13942 freebsd
[23].
*) objformat
=aout
;;
13943 *) objformat
=elf
;;
13946 version_type
=freebsd-
$objformat
13947 case $version_type in
13949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13954 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13958 shlibpath_var
=LD_LIBRARY_PATH
13961 shlibpath_overrides_runpath
=yes
13963 freebsd3.
[01]* | freebsdelf3.
[01]*)
13964 shlibpath_overrides_runpath
=yes
13965 hardcode_into_libs
=yes
13967 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13968 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13969 shlibpath_overrides_runpath
=no
13970 hardcode_into_libs
=yes
13972 *) # from 4.6 on, and DragonFly
13973 shlibpath_overrides_runpath
=yes
13974 hardcode_into_libs
=yes
13983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13984 soname_spec
='${libname}${release}${shared_ext}$major'
13985 shlibpath_var
=LD_LIBRARY_PATH
13986 hardcode_into_libs
=yes
13993 dynamic_linker
="$host_os runtime_loader"
13994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13995 soname_spec
='${libname}${release}${shared_ext}$major'
13996 shlibpath_var
=LIBRARY_PATH
13997 shlibpath_overrides_runpath
=yes
13998 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13999 hardcode_into_libs
=yes
14002 hpux9
* | hpux10
* | hpux11
*)
14003 # Give a soname corresponding to the major version so that dld.sl refuses to
14004 # link against other versions.
14011 hardcode_into_libs
=yes
14012 dynamic_linker
="$host_os dld.so"
14013 shlibpath_var
=LD_LIBRARY_PATH
14014 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016 soname_spec
='${libname}${release}${shared_ext}$major'
14017 if test "X$HPUX_IA64_MODE" = X32
; then
14018 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14020 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14022 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14026 hardcode_into_libs
=yes
14027 dynamic_linker
="$host_os dld.sl"
14028 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14029 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031 soname_spec
='${libname}${release}${shared_ext}$major'
14032 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14033 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14037 dynamic_linker
="$host_os dld.sl"
14038 shlibpath_var
=SHLIB_PATH
14039 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14041 soname_spec
='${libname}${release}${shared_ext}$major'
14044 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14045 postinstall_cmds
='chmod 555 $lib'
14046 # or fails outright, so override atomically:
14047 install_override_mode
=555
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 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14057 shlibpath_var
=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath
=no
14059 hardcode_into_libs
=yes
14062 irix5
* | irix6
* | nonstopux
*)
14064 nonstopux
*) version_type
=nonstopux
;;
14066 if test "$lt_cv_prog_gnu_ld" = yes; then
14074 soname_spec
='${libname}${release}${shared_ext}$major'
14075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14077 irix5
* | nonstopux
*)
14078 libsuff
= shlibsuff
=
14081 case $LD in # libtool.m4 will add one of these switches to LD
14082 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14083 libsuff
= shlibsuff
= libmagic
=32-bit;;
14084 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14085 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14086 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14087 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14088 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14092 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14093 shlibpath_overrides_runpath
=no
14094 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14095 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14096 hardcode_into_libs
=yes
14099 # No shared lib support for Linux oldld, aout, or coff.
14100 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14104 # This must be Linux ELF.
14105 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110 soname_spec
='${libname}${release}${shared_ext}$major'
14111 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14112 shlibpath_var
=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath
=no
14115 # Some binutils ld are patched to set DT_RUNPATH
14116 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14119 lt_cv_shlibpath_overrides_runpath
=no
14120 save_LDFLAGS
=$LDFLAGS
14121 save_libdir
=$libdir
14122 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14123 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14124 cat > conftest.
$ac_ext <<_ACEOF
14129 if ac_fn_fc_try_link
"$LINENO"; then :
14130 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14131 lt_cv_shlibpath_overrides_runpath
=yes
14134 rm -f core conftest.err conftest.
$ac_objext \
14135 conftest
$ac_exeext conftest.
$ac_ext
14136 LDFLAGS
=$save_LDFLAGS
14137 libdir
=$save_libdir
14141 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14143 # This implies no fast_install, which is unacceptable.
14144 # Some rework will be needed to allow for fast_install
14145 # before this can be enabled.
14146 hardcode_into_libs
=yes
14148 # Append ld.so.conf contents to the search path
14149 if test -f /etc
/ld.so.conf
; then
14150 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' ' '`
14151 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14154 # We used to test for /lib/ld.so.1 and disable shared libraries on
14155 # powerpc, because MkLinux only supported shared libraries with the
14156 # GNU dynamic linker. Since this was broken with cross compilers,
14157 # most powerpc-linux boxes support dynamic linking these days and
14158 # people can always --disable-shared, the test was removed, and we
14159 # assume the GNU/Linux dynamic linker is in use.
14160 dynamic_linker
='GNU/Linux ld.so'
14167 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14169 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14170 dynamic_linker
='NetBSD (a.out) ld.so'
14172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14173 soname_spec
='${libname}${release}${shared_ext}$major'
14174 dynamic_linker
='NetBSD ld.elf_so'
14176 shlibpath_var
=LD_LIBRARY_PATH
14177 shlibpath_overrides_runpath
=yes
14178 hardcode_into_libs
=yes
14183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 shlibpath_var
=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath
=yes
14192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 soname_spec
='${libname}${release}${shared_ext}$major'
14194 shlibpath_var
=LD_LIBRARY_PATH
14195 shlibpath_overrides_runpath
=no
14196 hardcode_into_libs
=yes
14197 dynamic_linker
='ldqnx.so'
14202 sys_lib_dlsearch_path_spec
="/usr/lib"
14204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14206 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14207 *) need_version
=no
;;
14209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14210 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14211 shlibpath_var
=LD_LIBRARY_PATH
14212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14214 openbsd2.
[89] | openbsd2.
[89].
*)
14215 shlibpath_overrides_runpath
=no
14218 shlibpath_overrides_runpath
=yes
14222 shlibpath_overrides_runpath
=yes
14227 libname_spec
='$name'
14230 library_names_spec
='$libname${shared_ext} $libname.a'
14231 dynamic_linker
='OS/2 ld.exe'
14232 shlibpath_var
=LIBPATH
14235 osf3
* | osf4
* | osf5
*)
14239 soname_spec
='${libname}${release}${shared_ext}$major'
14240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241 shlibpath_var
=LD_LIBRARY_PATH
14242 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14243 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec
='${libname}${release}${shared_ext}$major'
14256 shlibpath_var
=LD_LIBRARY_PATH
14257 shlibpath_overrides_runpath
=yes
14258 hardcode_into_libs
=yes
14259 # ldd complains unless libraries are executable
14260 postinstall_cmds
='chmod +x $lib'
14265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14266 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14267 shlibpath_var
=LD_LIBRARY_PATH
14268 shlibpath_overrides_runpath
=yes
14269 if test "$with_gnu_ld" = yes; then
14277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278 soname_spec
='${libname}${release}${shared_ext}$major'
14279 shlibpath_var
=LD_LIBRARY_PATH
14280 case $host_vendor in
14282 shlibpath_overrides_runpath
=no
14284 runpath_var
=LD_RUN_PATH
14292 shlibpath_overrides_runpath
=no
14293 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14299 if test -d /usr
/nec
;then
14301 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14302 soname_spec
='$libname${shared_ext}.$major'
14303 shlibpath_var
=LD_LIBRARY_PATH
14307 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14308 version_type
=freebsd-elf
14311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14312 soname_spec
='${libname}${release}${shared_ext}$major'
14313 shlibpath_var
=LD_LIBRARY_PATH
14314 shlibpath_overrides_runpath
=yes
14315 hardcode_into_libs
=yes
14316 if test "$with_gnu_ld" = yes; then
14317 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14319 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14322 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14326 sys_lib_dlsearch_path_spec
='/usr/lib'
14330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 shlibpath_var
=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath
=no
14337 hardcode_into_libs
=yes
14342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14343 soname_spec
='${libname}${release}${shared_ext}$major'
14344 shlibpath_var
=LD_LIBRARY_PATH
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14352 $as_echo "$dynamic_linker" >&6; }
14353 test "$dynamic_linker" = no
&& can_build_shared
=no
14355 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14356 if test "$GCC" = yes; then
14357 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14361 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14364 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14405 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14406 hardcode_action_FC
=
14407 if test -n "$hardcode_libdir_flag_spec_FC" ||
14408 test -n "$runpath_var_FC" ||
14409 test "X$hardcode_automatic_FC" = "Xyes" ; then
14411 # We can hardcode non-existent directories.
14412 if test "$hardcode_direct_FC" != no
&&
14413 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14414 # have to relink, otherwise we might link with an installed library
14415 # when we should be linking with a yet-to-be-installed one
14416 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14417 test "$hardcode_minus_L_FC" != no
; then
14418 # Linking always hardcodes the temporary library directory.
14419 hardcode_action_FC
=relink
14421 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14422 hardcode_action_FC
=immediate
14425 # We cannot hardcode anything, or else we can only hardcode existing
14427 hardcode_action_FC
=unsupported
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14430 $as_echo "$hardcode_action_FC" >&6; }
14432 if test "$hardcode_action_FC" = relink ||
14433 test "$inherit_rpath_FC" = yes; then
14434 # Fast installation is not supported
14435 enable_fast_install
=no
14436 elif test "$shlibpath_overrides_runpath" = yes ||
14437 test "$enable_shared" = no
; then
14438 # Fast installation is not necessary
14439 enable_fast_install
=needless
14448 fi # test -n "$compiler"
14452 fi # test "$_lt_disable_FC" != yes
14455 ac_cpp
='$CPP $CPPFLAGS'
14456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14461 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14463 # For libtool versioning info, format is CURRENT:REVISION:AGE
14464 libtool_VERSION
=1:0:0
14467 # Check header files.
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14469 $as_echo_n "checking for ANSI C header files... " >&6; }
14470 if test "${ac_cv_header_stdc+set}" = set; then :
14471 $as_echo_n "(cached) " >&6
14473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14475 #include <stdlib.h>
14476 #include <stdarg.h>
14477 #include <string.h>
14488 if ac_fn_c_try_compile
"$LINENO"; then :
14489 ac_cv_header_stdc
=yes
14491 ac_cv_header_stdc
=no
14493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14495 if test $ac_cv_header_stdc = yes; then
14496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 #include <string.h>
14502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14503 $EGREP "memchr" >/dev
/null
2>&1; then :
14506 ac_cv_header_stdc
=no
14512 if test $ac_cv_header_stdc = yes; then
14513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 #include <stdlib.h>
14519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14520 $EGREP "free" >/dev
/null
2>&1; then :
14523 ac_cv_header_stdc
=no
14529 if test $ac_cv_header_stdc = yes; then
14530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14531 if test "$cross_compiling" = yes; then :
14534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14537 #include <stdlib.h>
14538 #if ((' ' & 0x0FF) == 0x020)
14539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14542 # define ISLOWER(c) \
14543 (('a' <= (c) && (c) <= 'i') \
14544 || ('j' <= (c) && (c) <= 'r') \
14545 || ('s' <= (c) && (c) <= 'z'))
14546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14554 for (i = 0; i < 256; i++)
14555 if (XOR (islower (i), ISLOWER (i))
14556 || toupper (i) != TOUPPER (i))
14561 if ac_fn_c_try_run
"$LINENO"; then :
14564 ac_cv_header_stdc
=no
14566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14573 $as_echo "$ac_cv_header_stdc" >&6; }
14574 if test $ac_cv_header_stdc = yes; then
14576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14581 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14582 if test "${ac_cv_header_time+set}" = set; then :
14583 $as_echo_n "(cached) " >&6
14585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 #include <sys/types.h>
14588 #include <sys/time.h>
14594 if ((struct tm *) 0)
14600 if ac_fn_c_try_compile
"$LINENO"; then :
14601 ac_cv_header_time
=yes
14603 ac_cv_header_time
=no
14605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14608 $as_echo "$ac_cv_header_time" >&6; }
14609 if test $ac_cv_header_time = yes; then
14611 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14616 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14617 if test "${gcc_cv_header_string+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14622 #include <string.h>
14623 #include <strings.h>
14632 if ac_fn_c_try_compile
"$LINENO"; then :
14633 gcc_cv_header_string
=yes
14635 gcc_cv_header_string
=no
14637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14640 $as_echo "$gcc_cv_header_string" >&6; }
14641 if test $gcc_cv_header_string = yes; then
14643 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14647 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14649 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14650 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14651 eval as_val
=\$
$as_ac_Header
14652 if test "x$as_val" = x
""yes; then :
14653 cat >>confdefs.h
<<_ACEOF
14654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14664 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14666 acx_cv_header_stdint
=stddef.h
14667 acx_cv_header_stdint_kind
="(already complete)"
14668 for i
in stdint.h
$inttype_headers; do
14669 unset ac_cv_type_uintptr_t
14670 unset ac_cv_type_uintmax_t
14671 unset ac_cv_type_int_least32_t
14672 unset ac_cv_type_int_fast32_t
14673 unset ac_cv_type_uint64_t
14674 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14675 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14678 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
14679 acx_cv_header_stdint
=$i
14684 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14687 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14690 acx_cv_header_stdint_kind
="(mostly complete)"
14693 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14696 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
14699 acx_cv_header_stdint_kind
="(mostly complete)"
14702 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14705 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
14708 acx_cv_header_stdint_kind
="(mostly complete)"
14711 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14714 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14717 acx_cv_header_stdint_kind
="(lacks uint64_t)"
14722 if test "$acx_cv_header_stdint" = stddef.h
; then
14723 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
14724 for i
in stdint.h
$inttype_headers; do
14725 unset ac_cv_type_uintptr_t
14726 unset ac_cv_type_uint32_t
14727 unset ac_cv_type_uint64_t
14728 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14729 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14732 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
14733 acx_cv_header_stdint
=$i
14738 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14741 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
14745 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14748 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
14755 if test "$acx_cv_header_stdint" = stddef.h
; then
14756 acx_cv_header_stdint_kind
="(u_intXX_t style)"
14757 for i
in sys
/types.h
$inttype_headers; do
14758 unset ac_cv_type_u_int32_t
14759 unset ac_cv_type_u_int64_t
14760 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14761 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14764 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
14765 acx_cv_header_stdint
=$i
14770 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14773 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
14780 if test "$acx_cv_header_stdint" = stddef.h
; then
14781 acx_cv_header_stdint_kind
="(using manual detection)"
14784 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
14785 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
14786 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
14787 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
14788 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
14790 # ----------------- Summarize what we found so far
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14793 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14795 case `$as_basename -- gstdint.h ||
14796 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14797 Xgstdint.h : 'X\(//\)$' \| \
14798 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14799 $as_echo X/gstdint.h |
14800 sed '/^.*\/\([^/][^/]*\)\/*$/{
14813 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14814 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14815 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14816 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14821 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14823 # ----------------- done included file, check C basic types --------
14825 # Lacking an uintptr_t? Test size of void *
14826 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14827 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
14828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14830 # This bug is HP SR number 8606223364.
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14832 $as_echo_n "checking size of void *... " >&6; }
14833 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14834 $as_echo_n "(cached) " >&6
14836 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14839 if test "$ac_cv_type_void_p" = yes; then
14840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14842 { as_fn_set_status
77
14843 as_fn_error
"cannot compute sizeof (void *)
14844 See \`config.log' for more details." "$LINENO" 5; }; }
14846 ac_cv_sizeof_void_p
=0
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14852 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14856 cat >>confdefs.h
<<_ACEOF
14857 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14863 # Lacking an uint64_t? Test size of long
14864 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14865 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
14866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14868 # This bug is HP SR number 8606223364.
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14870 $as_echo_n "checking size of long... " >&6; }
14871 if test "${ac_cv_sizeof_long+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14874 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14877 if test "$ac_cv_type_long" = yes; then
14878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880 { as_fn_set_status
77
14881 as_fn_error
"cannot compute sizeof (long)
14882 See \`config.log' for more details." "$LINENO" 5; }; }
14884 ac_cv_sizeof_long
=0
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14890 $as_echo "$ac_cv_sizeof_long" >&6; }
14894 cat >>confdefs.h
<<_ACEOF
14895 #define SIZEOF_LONG $ac_cv_sizeof_long
14901 if test $acx_cv_header_stdint = stddef.h
; then
14902 # Lacking a good header? Test size of everything and deduce all types.
14903 # The cast to long int works around a bug in the HP C Compiler
14904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14906 # This bug is HP SR number 8606223364.
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14908 $as_echo_n "checking size of int... " >&6; }
14909 if test "${ac_cv_sizeof_int+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14912 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14915 if test "$ac_cv_type_int" = yes; then
14916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14918 { as_fn_set_status
77
14919 as_fn_error
"cannot compute sizeof (int)
14920 See \`config.log' for more details." "$LINENO" 5; }; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14928 $as_echo "$ac_cv_sizeof_int" >&6; }
14932 cat >>confdefs.h
<<_ACEOF
14933 #define SIZEOF_INT $ac_cv_sizeof_int
14937 # The cast to long int works around a bug in the HP C Compiler
14938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14940 # This bug is HP SR number 8606223364.
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14942 $as_echo_n "checking size of short... " >&6; }
14943 if test "${ac_cv_sizeof_short+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
14946 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14949 if test "$ac_cv_type_short" = yes; then
14950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14952 { as_fn_set_status
77
14953 as_fn_error
"cannot compute sizeof (short)
14954 See \`config.log' for more details." "$LINENO" 5; }; }
14956 ac_cv_sizeof_short
=0
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14962 $as_echo "$ac_cv_sizeof_short" >&6; }
14966 cat >>confdefs.h
<<_ACEOF
14967 #define SIZEOF_SHORT $ac_cv_sizeof_short
14971 # The cast to long int works around a bug in the HP C Compiler
14972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14974 # This bug is HP SR number 8606223364.
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14976 $as_echo_n "checking size of char... " >&6; }
14977 if test "${ac_cv_sizeof_char+set}" = set; then :
14978 $as_echo_n "(cached) " >&6
14980 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14983 if test "$ac_cv_type_char" = yes; then
14984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14986 { as_fn_set_status
77
14987 as_fn_error
"cannot compute sizeof (char)
14988 See \`config.log' for more details." "$LINENO" 5; }; }
14990 ac_cv_sizeof_char
=0
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14996 $as_echo "$ac_cv_sizeof_char" >&6; }
15000 cat >>confdefs.h
<<_ACEOF
15001 #define SIZEOF_CHAR $ac_cv_sizeof_char
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15007 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15008 case "$ac_cv_sizeof_char" in
15009 1) acx_cv_type_int8_t
=char
;;
15010 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15013 $as_echo "$acx_cv_type_int8_t" >&6; }
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15016 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15017 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15018 2:*) acx_cv_type_int16_t
=int
;;
15019 *:2) acx_cv_type_int16_t
=short
;;
15020 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15023 $as_echo "$acx_cv_type_int16_t" >&6; }
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15026 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15027 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15028 4:*) acx_cv_type_int32_t
=int
;;
15029 *:4) acx_cv_type_int32_t
=long
;;
15030 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15033 $as_echo "$acx_cv_type_int32_t" >&6; }
15036 # These tests are here to make the output prettier
15038 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15039 case "$ac_cv_sizeof_long" in
15040 8) acx_cv_type_int64_t
=long
;;
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15043 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15045 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15048 # Now we can use the above types
15050 if test "$ac_cv_type_uintptr_t" != yes; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15052 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15053 case $ac_cv_sizeof_void_p in
15054 2) acx_cv_type_intptr_t
=int16_t
;;
15055 4) acx_cv_type_intptr_t
=int32_t
;;
15056 8) acx_cv_type_intptr_t
=int64_t
;;
15057 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15060 $as_echo "$acx_cv_type_intptr_t" >&6; }
15063 # ----------------- done all checks, emit header -------------
15064 ac_config_commands
="$ac_config_commands gstdint.h"
15072 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15075 # NVPTX does not support Pthreads, has its own code replacement.
15076 libgomp_use_pthreads
=no
15077 # NVPTX is an accelerator-only target
15078 libgomp_offloaded_only
=yes
15081 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15082 # In case the pthread.h system header is not found, this test will fail.
15083 CFLAGS
="$CFLAGS -pthread"
15084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 #include <pthread.h>
15087 void *g(void *d) { return NULL; }
15091 pthread_t t; pthread_create(&t,NULL,g,NULL);
15096 if ac_fn_c_try_link
"$LINENO"; then :
15097 XPCFLAGS
=" -Wc,-pthread"
15099 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 #include <pthread.h>
15103 void *g(void *d) { return NULL; }
15107 pthread_t t; pthread_create(&t,NULL,g,NULL);
15112 if ac_fn_c_try_link
"$LINENO"; then :
15115 as_fn_error
"Pthreads are required to build libgomp" "$LINENO" 5
15117 rm -f core conftest.err conftest.
$ac_objext \
15118 conftest
$ac_exeext conftest.
$ac_ext
15120 rm -f core conftest.err conftest.
$ac_objext \
15121 conftest
$ac_exeext conftest.
$ac_ext
15124 if test x
$libgomp_use_pthreads != xno
; then
15126 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15130 if test x
$libgomp_offloaded_only = xyes
; then
15132 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15136 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15138 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
15140 # Contributed by Mentor Embedded.
15142 # This file is part of the GNU Offloading and Multi Processing Library
15145 # Libgomp is free software; you can redistribute it and/or modify it
15146 # under the terms of the GNU General Public License as published by
15147 # the Free Software Foundation; either version 3, or (at your option)
15148 # any later version.
15150 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15151 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15152 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15155 # Under Section 7 of GPL version 3, you are granted additional
15156 # permissions described in the GCC Runtime Library Exception, version
15157 # 3.1, as published by the Free Software Foundation.
15159 # You should have received a copy of the GNU General Public License and
15160 # a copy of the GCC Runtime Library Exception along with this program;
15161 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15162 # <http://www.gnu.org/licenses/>.
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15168 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15169 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15172 ac_check_lib_save_LIBS
=$LIBS
15174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15177 /* Override any GCC internal prototype to avoid an error.
15178 Use char because int might match the return type of a GCC
15179 builtin and then its argument prototype would still apply. */
15192 if ac_fn_c_try_link
"$LINENO"; then :
15193 ac_cv_lib_dl_dlsym
=yes
15195 ac_cv_lib_dl_dlsym
=no
15197 rm -f core conftest.err conftest.
$ac_objext \
15198 conftest
$ac_exeext conftest.
$ac_ext
15199 LIBS
=$ac_check_lib_save_LIBS
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15202 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15203 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then :
15204 cat >>confdefs.h
<<_ACEOF
15205 #define HAVE_LIBDL 1
15214 if test x
"$plugin_support" = xyes
; then
15216 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15218 elif test "x${enable_offload_targets-no}" != xno
; then
15219 as_fn_error
"Can't support offloading without support for plugins" "$LINENO" 5
15224 for ac_header
in $ac_header_list
15226 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15227 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15229 eval as_val
=\$
$as_ac_Header
15230 if test "x$as_val" = x
""yes; then :
15231 cat >>confdefs.h
<<_ACEOF
15232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15245 for ac_func
in $ac_func_list
15247 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15248 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15249 eval as_val
=\$
$as_ac_var
15250 if test "x$as_val" = x
""yes; then :
15251 cat >>confdefs.h
<<_ACEOF
15252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15273 # Look for the CUDA driver package.
15274 CUDA_DRIVER_INCLUDE
=
15278 CUDA_DRIVER_CPPFLAGS
=
15279 CUDA_DRIVER_LDFLAGS
=
15281 # Check whether --with-cuda-driver was given.
15282 if test "${with_cuda_driver+set}" = set; then :
15283 withval
=$with_cuda_driver;
15287 # Check whether --with-cuda-driver-include was given.
15288 if test "${with_cuda_driver_include+set}" = set; then :
15289 withval
=$with_cuda_driver_include;
15293 # Check whether --with-cuda-driver-lib was given.
15294 if test "${with_cuda_driver_lib+set}" = set; then :
15295 withval
=$with_cuda_driver_lib;
15298 if test "x$with_cuda_driver" != x
; then
15299 CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15300 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15302 if test "x$with_cuda_driver_include" != x
; then
15303 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15305 if test "x$with_cuda_driver_lib" != x
; then
15306 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15308 if test "x$CUDA_DRIVER_INCLUDE" != x
; then
15309 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15311 if test "x$CUDA_DRIVER_LIB" != x
; then
15312 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15316 PLUGIN_NVPTX_CPPFLAGS
=
15317 PLUGIN_NVPTX_LDFLAGS
=
15324 # Look for HSA run-time, its includes and libraries
15326 HSA_RUNTIME_INCLUDE
=
15330 HSA_RUNTIME_CPPFLAGS
=
15331 HSA_RUNTIME_LDFLAGS
=
15334 # Check whether --with-hsa-runtime was given.
15335 if test "${with_hsa_runtime+set}" = set; then :
15336 withval
=$with_hsa_runtime;
15340 # Check whether --with-hsa-runtime-include was given.
15341 if test "${with_hsa_runtime_include+set}" = set; then :
15342 withval
=$with_hsa_runtime_include;
15346 # Check whether --with-hsa-runtime-lib was given.
15347 if test "${with_hsa_runtime_lib+set}" = set; then :
15348 withval
=$with_hsa_runtime_lib;
15351 if test "x$with_hsa_runtime" != x
; then
15352 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15353 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15355 if test "x$with_hsa_runtime_include" != x
; then
15356 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15358 if test "x$with_hsa_runtime_lib" != x
; then
15359 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15361 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15362 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15364 if test "x$HSA_RUNTIME_LIB" != x
; then
15365 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15369 PLUGIN_HSA_CPPFLAGS
=
15370 PLUGIN_HSA_LDFLAGS
=
15377 # Get offload targets and path to install tree of offloading compiler.
15378 offload_additional_options
=
15379 offload_additional_lib_paths
=
15382 if test x
"$enable_offload_targets" != x
; then
15383 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15384 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15385 tgt
=`echo $tgt | sed 's/=.*//'`
15388 *-intelmic-* |
*-intelmicemul-*)
15394 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15395 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15396 PLUGIN_NVPTX_LIBS
='-lcuda'
15398 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15399 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15400 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15401 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15402 PLUGIN_NVPTX_save_LIBS
=$LIBS
15403 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15410 CUresult r = cuCtxPushCurrent (NULL);
15415 if ac_fn_c_try_link
"$LINENO"; then :
15418 rm -f core conftest.err conftest.
$ac_objext \
15419 conftest
$ac_exeext conftest.
$ac_ext
15420 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15421 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15422 LIBS
=$PLUGIN_NVPTX_save_LIBS
15423 case $PLUGIN_NVPTX in
15426 as_fn_error
"CUDA driver package required for nvptx support" "$LINENO" 5
15431 case "${target}" in
15433 case " ${CC} ${CFLAGS} " in
15440 PLUGIN_HSA_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15441 PLUGIN_HSA_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15442 PLUGIN_HSA_LIBS
="-ldl"
15444 PLUGIN_HSA_save_CPPFLAGS
=$CPPFLAGS
15445 CPPFLAGS
="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15446 PLUGIN_HSA_save_LDFLAGS
=$LDFLAGS
15447 LDFLAGS
="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15448 PLUGIN_HSA_save_LIBS
=$LIBS
15449 LIBS
="$PLUGIN_HSA_LIBS $LIBS"
15452 CPPFLAGS
=$PLUGIN_HSA_save_CPPFLAGS
15453 LDFLAGS
=$PLUGIN_HSA_save_LDFLAGS
15454 LIBS
=$PLUGIN_HSA_save_LIBS
15455 case $PLUGIN_HSA in
15458 as_fn_error
"HSA run-time package required for HSA support" "$LINENO" 5
15470 as_fn_error
"unknown offload target specified" "$LINENO" 5
15473 if test x
"$tgt_name" = x
; then
15474 # Don't configure libgomp for this offloading target if we don't build
15475 # the corresponding plugin.
15477 elif test x
"$offload_targets" = x
; then
15478 offload_targets
=$tgt_name
15480 offload_targets
=$offload_targets,$tgt_name
15482 if test "$tgt_name" = hsa
; then
15483 # Offloading compilation is all handled by the target compiler.
15485 elif test x
"$tgt_dir" != x
; then
15486 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15487 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15489 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15490 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15495 cat >>confdefs.h
<<_ACEOF
15496 #define OFFLOAD_TARGETS "$offload_targets"
15499 if test $PLUGIN_NVPTX = 1; then
15501 PLUGIN_NVPTX_FALSE
='#'
15503 PLUGIN_NVPTX_TRUE
='#'
15504 PLUGIN_NVPTX_FALSE
=
15508 cat >>confdefs.h
<<_ACEOF
15509 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15512 if test $PLUGIN_HSA = 1; then
15514 PLUGIN_HSA_FALSE
='#'
15516 PLUGIN_HSA_TRUE
='#'
15521 cat >>confdefs.h
<<_ACEOF
15522 #define PLUGIN_HSA $PLUGIN_HSA
15526 if test "$HSA_RUNTIME_LIB" != ""; then
15527 HSA_RUNTIME_LIB
="$HSA_RUNTIME_LIB/"
15531 cat >>confdefs.h
<<_ACEOF
15532 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15537 # Check for functions needed.
15538 for ac_func
in getloadavg clock_gettime strtoull
15540 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15541 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15542 eval as_val
=\$
$as_ac_var
15543 if test "x$as_val" = x
""yes; then :
15544 cat >>confdefs.h
<<_ACEOF
15545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15552 # Check for broken semaphore implementation on darwin.
15553 # sem_init returns: sem_init error: Function not implemented.
15557 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15562 # RTEMS specific checks
15565 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15567 if test "x$ac_cv_type_struct__Mutex_Control" = x
""yes; then :
15569 cat >>confdefs.h
<<_ACEOF
15570 #define HAVE_STRUCT__MUTEX_CONTROL 1
15579 # Check whether --enable-linux-futex was given.
15580 if test "${enable_linux_futex+set}" = set; then :
15581 enableval
=$enable_linux_futex;
15582 case "$enableval" in
15584 *) as_fn_error
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15588 enable_linux_futex
=default
15594 case "$enable_linux_futex" in
15596 # If headers don't have gettid/futex syscalls definition, then
15597 # default to no, otherwise there will be compile time failures.
15598 # Otherwise, default to yes. If we don't detect we are
15599 # compiled/linked against NPTL and not cross-compiling, check
15600 # if programs are run by default against NPTL and if not, issue
15602 enable_linux_futex
=no
15603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 #include <sys/syscall.h>
15610 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15615 if ac_fn_c_try_link
"$LINENO"; then :
15617 LIBS
="-lpthread $LIBS"
15618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15620 #ifndef _GNU_SOURCE
15621 #define _GNU_SOURCE 1
15623 #include <pthread.h>
15624 pthread_t th; void *status;
15628 pthread_tryjoin_np (th, &status);
15633 if ac_fn_c_try_link
"$LINENO"; then :
15634 enable_linux_futex
=yes
15636 if test x
$cross_compiling = xno
; then
15637 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15638 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15640 If so, please configure with --disable-linux-futex" >&5
15641 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15642 If so, please configure with --disable-linux-futex" >&2;}
15645 enable_linux_futex
=yes
15647 rm -f core conftest.err conftest.
$ac_objext \
15648 conftest
$ac_exeext conftest.
$ac_ext
15651 rm -f core conftest.err conftest.
$ac_objext \
15652 conftest
$ac_exeext conftest.
$ac_ext
15655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 #include <sys/syscall.h>
15662 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15667 if ac_fn_c_try_link
"$LINENO"; then :
15670 as_fn_error
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15672 rm -f core conftest.err conftest.
$ac_objext \
15673 conftest
$ac_exeext conftest.
$ac_ext
15678 enable_linux_futex
=no
15681 if test x
$enable_linux_futex = xyes
; then
15686 # Check for pthread_{,attr_}[sg]etaffinity_np.
15687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 #define _GNU_SOURCE
15690 #include <pthread.h>
15695 pthread_attr_t attr;
15696 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15697 if (CPU_ISSET (0, &cpuset))
15698 CPU_SET (1, &cpuset);
15700 CPU_ZERO (&cpuset);
15701 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15702 pthread_attr_init (&attr);
15703 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15704 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15709 if ac_fn_c_try_link
"$LINENO"; then :
15711 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15714 rm -f core conftest.err conftest.
$ac_objext \
15715 conftest
$ac_exeext conftest.
$ac_ext
15717 # At least for glibc, clock_gettime is in librt. But don't pull that
15718 # in if it still doesn't give us the function we want.
15719 if test $ac_cv_func_clock_gettime = no
; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15721 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15722 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15725 ac_check_lib_save_LIBS
=$LIBS
15727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15730 /* Override any GCC internal prototype to avoid an error.
15731 Use char because int might match the return type of a GCC
15732 builtin and then its argument prototype would still apply. */
15736 char clock_gettime ();
15740 return clock_gettime ();
15745 if ac_fn_c_try_link
"$LINENO"; then :
15746 ac_cv_lib_rt_clock_gettime
=yes
15748 ac_cv_lib_rt_clock_gettime
=no
15750 rm -f core conftest.err conftest.
$ac_objext \
15751 conftest
$ac_exeext conftest.
$ac_ext
15752 LIBS
=$ac_check_lib_save_LIBS
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15755 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15756 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
15759 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15765 # See if we support thread-local storage.
15768 # Check whether --enable-tls was given.
15769 if test "${enable_tls+set}" = set; then :
15770 enableval
=$enable_tls;
15771 case "$enableval" in
15773 *) as_fn_error
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15782 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15783 if test "${gcc_cv_have_tls+set}" = set; then :
15784 $as_echo_n "(cached) " >&6
15787 if test "$cross_compiling" = yes; then :
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 __thread int a; int b; int main() { return a = b; }
15792 if ac_fn_c_try_link
"$LINENO"; then :
15793 chktls_save_LDFLAGS
="$LDFLAGS"
15796 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15799 chktls_save_CFLAGS
="$CFLAGS"
15800 CFLAGS
="-fPIC $CFLAGS"
15801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803 int f() { return 0; }
15805 if ac_fn_c_try_link
"$LINENO"; then :
15806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15808 __thread int a; int b; int f() { return a = b; }
15810 if ac_fn_c_try_link
"$LINENO"; then :
15811 gcc_cv_have_tls
=yes
15815 rm -f core conftest.err conftest.
$ac_objext \
15816 conftest
$ac_exeext conftest.
$ac_ext
15818 gcc_cv_have_tls
=yes
15820 rm -f core conftest.err conftest.
$ac_objext \
15821 conftest
$ac_exeext conftest.
$ac_ext
15822 CFLAGS
="$chktls_save_CFLAGS"
15823 LDFLAGS
="$chktls_save_LDFLAGS"
15827 rm -f core conftest.err conftest.
$ac_objext \
15828 conftest
$ac_exeext conftest.
$ac_ext
15832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 __thread int a; int b; int main() { return a = b; }
15836 if ac_fn_c_try_run
"$LINENO"; then :
15837 chktls_save_LDFLAGS
="$LDFLAGS"
15838 LDFLAGS
="-static $LDFLAGS"
15839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 int main() { return 0; }
15843 if ac_fn_c_try_link
"$LINENO"; then :
15844 if test "$cross_compiling" = yes; then :
15845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15847 as_fn_error
"cannot run test program while cross compiling
15848 See \`config.log' for more details." "$LINENO" 5; }
15850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 __thread int a; int b; int main() { return a = b; }
15854 if ac_fn_c_try_run
"$LINENO"; then :
15855 gcc_cv_have_tls
=yes
15859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15864 gcc_cv_have_tls
=yes
15866 rm -f core conftest.err conftest.
$ac_objext \
15867 conftest
$ac_exeext conftest.
$ac_ext
15868 LDFLAGS
="$chktls_save_LDFLAGS"
15869 if test $gcc_cv_have_tls = yes; then
15870 chktls_save_CFLAGS
="$CFLAGS"
15871 thread_CFLAGS
=failed
15872 for flag
in '' '-pthread' '-lpthread'; do
15873 CFLAGS
="$flag $chktls_save_CFLAGS"
15874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15876 #include <pthread.h>
15877 void *g(void *d) { return NULL; }
15881 pthread_t t; pthread_create(&t,NULL,g,NULL);
15886 if ac_fn_c_try_link
"$LINENO"; then :
15887 thread_CFLAGS
="$flag"
15889 rm -f core conftest.err conftest.
$ac_objext \
15890 conftest
$ac_exeext conftest.
$ac_ext
15891 if test "X$thread_CFLAGS" != Xfailed
; then
15895 CFLAGS
="$chktls_save_CFLAGS"
15896 if test "X$thread_CFLAGS" != Xfailed
; then
15897 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15898 if test "$cross_compiling" = yes; then :
15899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15901 as_fn_error
"cannot run test program while cross compiling
15902 See \`config.log' for more details." "$LINENO" 5; }
15904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #include <pthread.h>
15908 static int *volatile a_in_other_thread;
15910 thread_func (void *arg)
15912 a_in_other_thread = &a;
15919 void *thread_retval;
15920 int *volatile a_in_main_thread;
15921 a_in_main_thread = &a;
15922 if (pthread_create (&thread, (pthread_attr_t *)0,
15923 thread_func, (void *)0))
15925 if (pthread_join (thread, &thread_retval))
15927 return (a_in_other_thread == a_in_main_thread);
15932 if ac_fn_c_try_run
"$LINENO"; then :
15933 gcc_cv_have_tls
=yes
15937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15941 CFLAGS
="$chktls_save_CFLAGS"
15947 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15948 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15953 $as_echo "$gcc_cv_have_tls" >&6; }
15954 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15956 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15960 # See if we have emulated thread-local storage.
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15963 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15964 if test "${gcc_cv_use_emutls+set}" = set; then :
15965 $as_echo_n "(cached) " >&6
15968 gcc_cv_use_emutls
=no
15969 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15970 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15972 (eval $ac_try) 2>&5
15974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15975 test $ac_status = 0; }; }; then
15976 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15977 gcc_cv_use_emutls
=yes
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15984 $as_echo "$gcc_cv_use_emutls" >&6; }
15985 if test "$gcc_cv_use_emutls" = "yes" ; then
15987 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15991 # See what sort of export controls are available.
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15994 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15995 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15996 $as_echo_n "(cached) " >&6
15999 save_CFLAGS
="$CFLAGS"
16000 CFLAGS
="$CFLAGS -Werror"
16001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 void __attribute__((visibility("hidden"))) foo(void) { }
16012 if ac_fn_c_try_compile
"$LINENO"; then :
16013 libgomp_cv_have_attribute_visibility
=yes
16015 libgomp_cv_have_attribute_visibility
=no
16017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16018 CFLAGS
="$save_CFLAGS"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16021 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16022 if test $libgomp_cv_have_attribute_visibility = yes; then
16024 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16029 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16030 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16031 $as_echo_n "(cached) " >&6
16034 save_CFLAGS
="$CFLAGS"
16035 CFLAGS
="$CFLAGS -Werror"
16036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038 void __attribute__((dllexport)) foo(void) { }
16047 if ac_fn_c_try_compile
"$LINENO"; then :
16048 libgomp_cv_have_attribute_dllexport
=yes
16050 libgomp_cv_have_attribute_dllexport
=no
16052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16053 CFLAGS
="$save_CFLAGS"
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16056 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16057 if test $libgomp_cv_have_attribute_dllexport = yes; then
16059 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16064 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16065 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16066 $as_echo_n "(cached) " >&6
16069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16073 extern void bar(void) __attribute__((alias("foo")));
16082 if ac_fn_c_try_link
"$LINENO"; then :
16083 libgomp_cv_have_attribute_alias
=yes
16085 libgomp_cv_have_attribute_alias
=no
16087 rm -f core conftest.err conftest.
$ac_objext \
16088 conftest
$ac_exeext conftest.
$ac_ext
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16091 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16092 if test $libgomp_cv_have_attribute_alias = yes; then
16094 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16099 # Check whether --with-gnu-ld was given.
16100 if test "${with_gnu_ld+set}" = set; then :
16101 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16107 if test "$GCC" = yes; then
16108 # Check if gcc -print-prog-name=ld gives a path.
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16110 $as_echo_n "checking for ld used by $CC... " >&6; }
16113 # gcc leaves a trailing carriage return which upsets mingw
16114 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16116 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16119 # Accept absolute paths.
16121 re_direlt
='/[^/][^/]*/\.\./'
16122 # Canonicalize the pathname of ld
16123 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16124 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16125 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16127 test -z "$LD" && LD
="$ac_prog"
16130 # If it fails, then pretend we aren't using GCC.
16134 # If it is relative, then search for the first ld in PATH.
16135 with_gnu_ld
=unknown
16138 elif test "$with_gnu_ld" = yes; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16140 $as_echo_n "checking for GNU ld... " >&6; }
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16143 $as_echo_n "checking for non-GNU ld... " >&6; }
16145 if test "${lt_cv_path_LD+set}" = set; then :
16146 $as_echo_n "(cached) " >&6
16148 if test -z "$LD"; then
16149 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16150 for ac_dir
in $PATH; do
16152 test -z "$ac_dir" && ac_dir
=.
16153 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16154 lt_cv_path_LD
="$ac_dir/$ac_prog"
16155 # Check to see if the program is GNU ld. I'd rather use --version,
16156 # but apparently some variants of GNU ld only accept -v.
16157 # Break only if it was the GNU/non-GNU ld that we prefer.
16158 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16159 *GNU
* |
*'with BFD'*)
16160 test "$with_gnu_ld" != no
&& break
16163 test "$with_gnu_ld" != yes && break
16170 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16174 LD
="$lt_cv_path_LD"
16175 if test -n "$LD"; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16177 $as_echo "$LD" >&6; }
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16180 $as_echo "no" >&6; }
16182 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16184 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16185 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16186 $as_echo_n "(cached) " >&6
16188 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16189 case `$LD -v 2>&1 </dev/null` in
16190 *GNU
* |
*'with BFD'*)
16191 lt_cv_prog_gnu_ld
=yes
16194 lt_cv_prog_gnu_ld
=no
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16199 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16200 with_gnu_ld
=$lt_cv_prog_gnu_ld
16208 # If we're not using GNU ld, then there's no point in even trying these
16209 # tests. Check for that first. We should have already tested for gld
16210 # by now (in libtool), but require it now just to be safe...
16211 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16212 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16216 # The name set by libtool depends on the version of libtool. Shame on us
16217 # for depending on an impl detail, but c'est la vie. Older versions used
16218 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16219 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16220 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16221 # set (hence we're using an older libtool), then set it.
16222 if test x
${with_gnu_ld+set} != xset
; then
16223 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16224 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16227 with_gnu_ld
=$ac_cv_prog_gnu_ld
16231 # Start by getting the version number. I think the libtool test already
16232 # does some of this, but throws away the result.
16233 libgomp_ld_is_gold
=no
16234 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16235 libgomp_ld_is_gold
=yes
16238 ldver
=`$LD --version 2>/dev/null |
16239 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'`
16241 libgomp_gnu_ld_version
=`echo $ldver | \
16242 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16244 # Set --gc-sections.
16245 if test "$with_gnu_ld" = "notbroken"; then
16246 # GNU ld it is! Joy and bunny rabbits!
16248 # All these tests are for C++; save the language and the compiler flags.
16249 # Need to do this so that g++ won't try to link in libstdc++
16250 ac_test_CFLAGS
="${CFLAGS+set}"
16251 ac_save_CFLAGS
="$CFLAGS"
16252 CFLAGS
='-x c++ -Wl,--gc-sections'
16254 # Check for -Wl,--gc-sections
16255 # XXX This test is broken at the moment, as symbols required for linking
16256 # are now in libsupc++ (not built yet). In addition, this test has
16257 # cored on solaris in the past. In addition, --gc-sections doesn't
16258 # really work at the moment (keeps on discarding used sections, first
16259 # .eh_frame and now some of the glibc sections for iconv).
16260 # Bzzzzt. Thanks for playing, maybe next time.
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16262 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16263 if test "$cross_compiling" = yes; then :
16264 ac_sectionLDflags
=yes
16266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16277 if ac_fn_c_try_run
"$LINENO"; then :
16278 ac_sectionLDflags
=yes
16280 ac_sectionLDflags
=no
16282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16283 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16286 if test "$ac_test_CFLAGS" = set; then
16287 CFLAGS
="$ac_save_CFLAGS"
16289 # this is the suspicious part
16292 if test "$ac_sectionLDflags" = "yes"; then
16293 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16296 $as_echo "$ac_sectionLDflags" >&6; }
16299 # Set linker optimization flags.
16300 if test x
"$with_gnu_ld" = x
"yes"; then
16301 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16309 # Check whether --enable-symvers was given.
16310 if test "${enable_symvers+set}" = set; then :
16311 enableval
=$enable_symvers;
16312 case "$enableval" in
16313 yes|no|gnu
*|sun
) ;;
16314 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16323 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16324 # don't know enough about $LD to do tricks...
16327 # Turn a 'yes' into a suitable default.
16328 if test x
$enable_symvers = xyes
; then
16329 # FIXME The following test is too strict, in theory.
16330 if test $enable_shared = no ||
test "x$LD" = x
; then
16333 if test $with_gnu_ld = yes ; then
16336 case ${target_os} in
16337 # Sun symbol versioning exists since Solaris 2.5.
16338 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16339 enable_symvers
=sun
;;
16341 enable_symvers
=no
;;
16347 # Check if 'sun' was requested on non-Solaris 2 platforms.
16348 if test x
$enable_symvers = xsun
; then
16349 case ${target_os} in
16354 # Unlikely to work.
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16356 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16358 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16360 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16366 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16367 if test $enable_symvers != no
; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16369 $as_echo_n "checking for shared libgcc... " >&6; }
16370 ac_save_CFLAGS
="$CFLAGS"
16372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16383 if ac_fn_c_try_link
"$LINENO"; then :
16384 libgomp_shared_libgcc
=yes
16386 libgomp_shared_libgcc
=no
16388 rm -f core conftest.err conftest.
$ac_objext \
16389 conftest
$ac_exeext conftest.
$ac_ext
16390 CFLAGS
="$ac_save_CFLAGS"
16391 if test $libgomp_shared_libgcc = no
; then
16392 cat > conftest.c
<<EOF
16393 int main (void) { return 0; }
16395 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16396 -shared -shared-libgcc -o conftest.so \
16397 conftest.c -v 2>&1 >/dev/null \
16398 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16399 rm -f conftest.c conftest.so
16400 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16401 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16413 if ac_fn_c_try_link
"$LINENO"; then :
16414 libgomp_shared_libgcc
=yes
16416 rm -f core conftest.err conftest.
$ac_objext \
16417 conftest
$ac_exeext conftest.
$ac_ext
16418 CFLAGS
="$ac_save_CFLAGS"
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16422 $as_echo "$libgomp_shared_libgcc" >&6; }
16425 # For GNU ld, we need at least this version. The format is described in
16426 # LIBGOMP_CHECK_LINKER_FEATURES above.
16427 libgomp_min_gnu_ld_version
=21400
16428 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16430 # Check to see if unspecified "yes" value can win, given results above.
16431 # Change "yes" into either "no" or a style name.
16432 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16433 if test $with_gnu_ld = yes; then
16434 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16436 elif test $libgomp_ld_is_gold = yes ; then
16439 # The right tools, the right setup, but too old. Fallbacks?
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16441 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16443 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16445 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16447 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16448 if test $libgomp_gnu_ld_version -ge 21200 ; then
16449 # Globbing fix is present, proper block support is not.
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16451 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16456 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16460 elif test $enable_symvers = sun
; then
16461 : All interesting versions of Sun ld support sun style symbol versioning.
16463 # just fail for now
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16465 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16467 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16469 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16471 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16477 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16478 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16479 $as_echo_n "(cached) " >&6
16482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 void foo (void); __asm (".symver foo, bar@SYMVER");
16493 if ac_fn_c_try_compile
"$LINENO"; then :
16494 libgomp_cv_have_as_symver_directive
=yes
16496 libgomp_cv_have_as_symver_directive
=no
16498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16501 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16502 if test $libgomp_cv_have_as_symver_directive = yes; then
16504 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16508 if test $enable_symvers != no
; then
16509 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16510 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16512 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16513 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16516 if test $enable_symvers = gnu
; then
16517 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16518 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16520 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16521 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16524 if test $enable_symvers = sun
; then
16525 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16526 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16528 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16529 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16533 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16535 if test $enable_symvers != no
; then
16536 case ${target_os} in
16537 # The Solaris 2 runtime linker doesn't support the GNU extension of
16538 # binding the same symbol to different versions
16541 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16544 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16551 if test $enable_symvers = gnu
; then
16553 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16557 # Get target configury.
16558 .
${srcdir}/configure.tgt
16559 CFLAGS
="$save_CFLAGS $XCFLAGS"
16561 # Check for __sync_val_compare_and_swap, but only after the target has
16562 # had a chance to set XCFLAGS.
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16565 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16566 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16567 $as_echo_n "(cached) " >&6
16570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16576 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16581 if ac_fn_c_try_link
"$LINENO"; then :
16582 libgomp_cv_have_sync_builtins
=yes
16584 libgomp_cv_have_sync_builtins
=no
16586 rm -f core conftest.err conftest.
$ac_objext \
16587 conftest
$ac_exeext conftest.
$ac_ext
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16590 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16591 if test $libgomp_cv_have_sync_builtins = yes; then
16593 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16597 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16603 # Cleanup and exit.
16604 CFLAGS
="$save_CFLAGS"
16605 cat >confcache
<<\_ACEOF
16606 # This file is a shell script that caches the results of configure
16607 # tests run on this system so they can be shared between configure
16608 # scripts and configure runs, see configure's option --config-cache.
16609 # It is not useful on other systems. If it contains results you don't
16610 # want to keep, you may remove or edit it.
16612 # config.status only pays attention to the cache file if you give it
16613 # the --recheck option to rerun configure.
16615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16617 # following values.
16621 # The following way of writing the cache mishandles newlines in values,
16622 # but we know of no workaround that is simple, portable, and efficient.
16623 # So, we kill variables containing newlines.
16624 # Ultrix sh set writes to stderr and can't be redirected directly,
16625 # and sets the high bit in the cache file unless we assign to the vars.
16627 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16628 eval ac_val
=\$
$ac_var
16632 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16636 _ | IFS | as_nl
) ;; #(
16637 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16638 *) { eval $ac_var=; unset $ac_var;} ;;
16644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16645 *${as_nl}ac_space
=\
*)
16646 # `set' does not quote correctly, so add quotes: double-quote
16647 # substitution turns \\\\ into \\, and sed turns \\ into \.
16650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16653 # `set' quotes correctly as required by POSIX, so do not add quotes.
16654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16667 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16668 if test -w "$cache_file"; then
16669 test "x$cache_file" != "x/dev/null" &&
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16671 $as_echo "$as_me: updating cache $cache_file" >&6;}
16672 cat confcache
>$cache_file
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16680 if test ${multilib} = yes; then
16681 multilib_arg
="--enable-multilib"
16686 # Set up the set of libraries that we need to link against for libgomp.
16687 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16688 # which will force linkage against -lpthread (or equivalent for the system).
16689 # That's not 100% ideal, but about the best we can do easily.
16690 if test $enable_shared = yes; then
16691 link_gomp
="-lgomp %{static: $LIBS}"
16693 link_gomp
="-lgomp $LIBS"
16697 if test "$ac_cv_fc_compiler_gnu" = yes; then
16699 USE_FORTRAN_FALSE
='#'
16701 USE_FORTRAN_TRUE
='#'
16706 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16707 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16708 # the underscore here and update the PREREQ. If it doesn't, then we'll
16709 # need to copy this macro to our acinclude.m4.
16710 save_CFLAGS
="$CFLAGS"
16711 for i
in $config_path; do
16712 if test -f $srcdir/config
/$i/omp-lock.h
; then
16713 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16718 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16721 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16725 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16730 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16735 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16740 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16743 as_fn_error
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16747 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16752 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16757 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16763 # If the lock fits in an integer, then arrange for Fortran to use that
16764 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16765 # Except that we don't have a way at present to multi-lib the installed
16766 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16768 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16769 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16770 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16773 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16774 OMP_NEST_LOCK_KIND
=8
16776 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16777 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16778 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16781 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16782 OMP_NEST_LOCK_25_KIND
=8
16797 CFLAGS
="$save_CFLAGS"
16799 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16801 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16803 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16805 cat >confcache
<<\_ACEOF
16806 # This file is a shell script that caches the results of configure
16807 # tests run on this system so they can be shared between configure
16808 # scripts and configure runs, see configure's option --config-cache.
16809 # It is not useful on other systems. If it contains results you don't
16810 # want to keep, you may remove or edit it.
16812 # config.status only pays attention to the cache file if you give it
16813 # the --recheck option to rerun configure.
16815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16817 # following values.
16821 # The following way of writing the cache mishandles newlines in values,
16822 # but we know of no workaround that is simple, portable, and efficient.
16823 # So, we kill variables containing newlines.
16824 # Ultrix sh set writes to stderr and can't be redirected directly,
16825 # and sets the high bit in the cache file unless we assign to the vars.
16827 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16828 eval ac_val
=\$
$ac_var
16832 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16836 _ | IFS | as_nl
) ;; #(
16837 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16838 *) { eval $ac_var=; unset $ac_var;} ;;
16844 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16845 *${as_nl}ac_space
=\
*)
16846 # `set' does not quote correctly, so add quotes: double-quote
16847 # substitution turns \\\\ into \\, and sed turns \\ into \.
16850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16853 # `set' quotes correctly as required by POSIX, so do not add quotes.
16854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16865 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16867 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16868 if test -w "$cache_file"; then
16869 test "x$cache_file" != "x/dev/null" &&
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16871 $as_echo "$as_me: updating cache $cache_file" >&6;}
16872 cat confcache
>$cache_file
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16875 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16880 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16881 # Let make expand exec_prefix.
16882 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16884 DEFS
=-DHAVE_CONFIG_H
16888 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16889 # 1. Remove the extension, and $U if already installed.
16890 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16891 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16892 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16893 # will be set to the directory where LIBOBJS objects are built.
16894 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16895 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16897 LIBOBJS
=$ac_libobjs
16899 LTLIBOBJS
=$ac_ltlibobjs
16902 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16903 as_fn_error
"conditional \"GENINSRC\" was never defined.
16904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 if test -n "$EXEEXT"; then
16908 am__EXEEXT_FALSE
='#'
16910 am__EXEEXT_TRUE
='#'
16914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16915 as_fn_error
"conditional \"AMDEP\" was never defined.
16916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16919 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16923 as_fn_error
"conditional \"BUILD_INFO\" was never defined.
16924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16927 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16931 as_fn_error
"conditional \"PLUGIN_NVPTX\" was never defined.
16932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16935 as_fn_error
"conditional \"PLUGIN_HSA\" was never defined.
16936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16939 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16943 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16947 as_fn_error
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16951 as_fn_error
"conditional \"USE_FORTRAN\" was never defined.
16952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16955 : ${CONFIG_STATUS=./config.status}
16957 ac_clean_files_save
=$ac_clean_files
16958 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16960 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16962 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16964 # Generated by $as_me.
16965 # Run this file to recreate the current configuration.
16966 # Compiler output produced by configure, useful for debugging
16967 # configure, is in config.log if it exists.
16970 ac_cs_recheck=false
16973 SHELL=\${CONFIG_SHELL-$SHELL}
16976 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16977 ## -------------------- ##
16978 ## M4sh Initialization. ##
16979 ## -------------------- ##
16981 # Be more Bourne compatible
16982 DUALCASE
=1; export DUALCASE
# for MKS sh
16983 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16987 # is contrary to our usage. Disable this feature.
16988 alias -g '${1+"$@"}'='"$@"'
16989 setopt NO_GLOB_SUBST
16991 case `(set -o) 2>/dev/null` in #(
17003 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17004 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17006 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17007 # Prefer a ksh shell builtin over an external printf program on Solaris,
17008 # but without wasting forks for bash or zsh.
17009 if test -z "$BASH_VERSION$ZSH_VERSION" \
17010 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17011 as_echo='print
-r --'
17012 as_echo_n='print
-rn --'
17013 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17014 as_echo='printf %s
\n'
17015 as_echo_n='printf %s
'
17017 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17018 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17019 as_echo_n='/usr
/ucb
/echo -n'
17021 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17022 as_echo_n_body='eval
17026 expr "X$arg" : "X\\(.*\\)$as_nl";
17027 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17029 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17031 export as_echo_n_body
17032 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17034 export as_echo_body
17035 as_echo='sh
-c $as_echo_body as_echo
'
17038 # The user is always right.
17039 if test "${PATH_SEPARATOR+set}" != set; then
17041 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17042 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17049 # We need space, tab and new line, in precisely that order. Quoting is
17050 # there to prevent editors from complaining about space-tab.
17051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17052 # splitting by setting IFS to empty value.)
17055 # Find who we are. Look in the path if we contain no directory separator.
17057 *[\\/]* ) as_myself=$0 ;;
17058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17059 for as_dir in $PATH
17062 test -z "$as_dir" && as_dir=.
17063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17069 # We did not find ourselves, most probably we were run as `sh COMMAND'
17070 # in which case we are not to be found in the path.
17071 if test "x$as_myself" = x
; then
17074 if test ! -f "$as_myself"; then
17075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17079 # Unset variables that we do not need and which cause bugs (e.g. in
17080 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17081 # suppresses any "Segmentation fault" message there. '((' could
17082 # trigger a bug in pdksh 5.2.14.
17083 for as_var
in BASH_ENV ENV MAIL MAILPATH
17084 do eval test x\
${$as_var+set} = xset \
17085 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17098 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17101 # as_fn_error ERROR [LINENO LOG_FD]
17102 # ---------------------------------
17103 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17104 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17105 # script with status $?, using 1 if that was 0.
17108 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17110 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17111 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17113 $as_echo "$as_me: error: $1" >&2
17114 as_fn_exit
$as_status
17118 # as_fn_set_status STATUS
17119 # -----------------------
17120 # Set $? to STATUS, without forking.
17121 as_fn_set_status
()
17124 } # as_fn_set_status
17126 # as_fn_exit STATUS
17127 # -----------------
17128 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17132 as_fn_set_status
$1
17138 # Portably unset VAR.
17141 { eval $1=; unset $1;}
17143 as_unset
=as_fn_unset
17144 # as_fn_append VAR VALUE
17145 # ----------------------
17146 # Append the text in VALUE to the end of the definition contained in VAR. Take
17147 # advantage of any shell optimizations that allow amortized linear growth over
17148 # repeated appends, instead of the typical quadratic growth present in naive
17150 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17151 eval 'as_fn_append ()
17162 # as_fn_arith ARG...
17163 # ------------------
17164 # Perform arithmetic evaluation on the ARGs, and store the result in the
17165 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17166 # must be portable across $(()) and expr.
17167 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17168 eval 'as_fn_arith ()
17175 as_val
=`expr "$@" || test $? -eq 1`
17180 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17181 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17187 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17188 as_basename
=basename
17193 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17199 as_me
=`$as_basename -- "$0" ||
17200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17201 X"$0" : 'X\(//\)$' \| \
17202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17204 sed '/^.*\/\([^/][^/]*\)\/*$/{
17218 # Avoid depending upon Character Ranges.
17219 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17220 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17221 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17222 as_cr_digits
='0123456789'
17223 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17225 ECHO_C
= ECHO_N
= ECHO_T
=
17226 case `echo -n x` in #(((((
17228 case `echo 'xy\c'` in
17229 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17231 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17238 rm -f conf$$ conf$$.exe conf$$.
file
17239 if test -d conf$$.dir
; then
17240 rm -f conf$$.dir
/conf$$.
file
17243 mkdir conf$$.dir
2>/dev
/null
17245 if (echo >conf$$.
file) 2>/dev
/null
; then
17246 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17248 # ... but there are two gotchas:
17249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17251 # In both cases, we have to default to `cp -p'.
17252 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17254 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17262 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17263 rmdir conf$$.dir
2>/dev
/null
17268 # Create "$as_dir" as a directory, including parents if necessary.
17273 -*) as_dir
=.
/$as_dir;;
17275 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17279 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17280 *) as_qdir
=$as_dir;;
17282 as_dirs
="'$as_qdir' $as_dirs"
17283 as_dir
=`$as_dirname -- "$as_dir" ||
17284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17285 X"$as_dir" : 'X\(//\)[^/]' \| \
17286 X"$as_dir" : 'X\(//\)$' \| \
17287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17288 $as_echo X"$as_dir" |
17289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17293 /^X\(\/\/\)[^/].*/{
17306 test -d "$as_dir" && break
17308 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17309 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17313 if mkdir
-p .
2>/dev
/null
; then
17314 as_mkdir_p
='mkdir -p "$as_dir"'
17316 test -d .
/-p && rmdir .
/-p
17320 if test -x / >/dev
/null
2>&1; then
17321 as_test_x
='test -x'
17323 if ls -dL / >/dev
/null
2>&1; then
17330 if test -d "$1"; then
17336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17337 ???[sx]*):;;*)false;;esac;fi
17341 as_executable_p
=$as_test_x
17343 # Sed expression to map a string onto a valid CPP name.
17344 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17346 # Sed expression to map a string onto a valid variable name.
17347 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17351 ## ----------------------------------- ##
17352 ## Main body of $CONFIG_STATUS script. ##
17353 ## ----------------------------------- ##
17355 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17358 # Save the log message, to keep $0 and so on meaningful, and to
17359 # report actual input values of CONFIG_FILES etc. instead of their
17360 # values after options handling.
17362 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17363 generated by GNU Autoconf 2.64. Invocation command line was
17365 CONFIG_FILES = $CONFIG_FILES
17366 CONFIG_HEADERS = $CONFIG_HEADERS
17367 CONFIG_LINKS = $CONFIG_LINKS
17368 CONFIG_COMMANDS = $CONFIG_COMMANDS
17371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17376 case $ac_config_files in *"
17377 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17380 case $ac_config_headers in *"
17381 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17386 # Files that config.status was made for.
17387 config_files="$ac_config_files"
17388 config_headers="$ac_config_headers"
17389 config_commands="$ac_config_commands"
17393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17395 \`$as_me' instantiates files and other configuration actions
17396 from templates according to the current configuration. Unless the files
17397 and actions are specified as TAGs, all are instantiated by default.
17399 Usage: $0 [OPTION]... [TAG]...
17401 -h, --help print this help, then exit
17402 -V, --version print version number and configuration settings, then exit
17403 -q, --quiet, --silent
17404 do not print progress messages
17405 -d, --debug don't remove temporary files
17406 --recheck update $as_me by reconfiguring in the same conditions
17407 --file=FILE[:TEMPLATE]
17408 instantiate the configuration file FILE
17409 --header=FILE[:TEMPLATE]
17410 instantiate the configuration header FILE
17412 Configuration files:
17415 Configuration headers:
17418 Configuration commands:
17421 Report bugs to the package provider.
17422 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17423 General help using GNU software: <http://www.gnu.org/gethelp/>."
17426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17428 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17429 configured by $0, generated by GNU Autoconf 2.64,
17430 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17432 Copyright (C) 2009 Free Software Foundation, Inc.
17433 This config.status script is free software; the Free Software Foundation
17434 gives unlimited permission to copy, distribute and modify it."
17441 test -n "\$AWK" || AWK=awk
17444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17445 # The default lists apply if the user does not specify any file.
17451 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17452 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17463 # Handling of the options.
17464 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17466 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17467 $as_echo "$ac_cs_version"; exit ;;
17468 --debug |
--debu |
--deb |
--de |
--d |
-d )
17470 --file |
--fil |
--fi |
--f )
17473 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17475 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17476 ac_need_defaults
=false
;;
17477 --header |
--heade |
--head |
--hea )
17480 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17482 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17483 ac_need_defaults
=false
;;
17485 # Conflict between --help and --header
17486 as_fn_error
"ambiguous option: \`$1'
17487 Try \`$0 --help' for more information.";;
17488 --help |
--hel |
-h )
17489 $as_echo "$ac_cs_usage"; exit ;;
17490 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17491 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17494 # This is an error.
17495 -*) as_fn_error
"unrecognized option: \`$1'
17496 Try \`$0 --help' for more information." ;;
17498 *) as_fn_append ac_config_targets
" $1"
17499 ac_need_defaults
=false
;;
17505 ac_configure_extra_args
=
17507 if $ac_cs_silent; then
17509 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17514 if \$ac_cs_recheck; then
17515 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17517 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17518 CONFIG_SHELL='$SHELL'
17519 export CONFIG_SHELL
17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17529 ## Running $as_me. ##
17535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17543 with_multisubdir="$with_multisubdir"
17544 with_multisrctop="$with_multisrctop"
17545 with_target_subdir="$with_target_subdir"
17546 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17547 multi_basedir="$multi_basedir"
17548 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17551 GFORTRAN="$GFORTRAN"
17552 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17555 # The HP-UX ksh and POSIX shell print the target directory to stdout
17556 # if CDPATH is set.
17557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17559 sed_quote_subst='$sed_quote_subst'
17560 double_quote_subst='$double_quote_subst'
17561 delay_variable_subst='$delay_variable_subst'
17562 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17563 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17564 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17565 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17566 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17567 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17568 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17569 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17570 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17571 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17572 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17573 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17574 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17575 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17576 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17577 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17578 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17579 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17580 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17581 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17582 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17583 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17584 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17585 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17586 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17587 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17588 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17589 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17590 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17591 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17592 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17593 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17594 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17595 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17596 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17597 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17598 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17599 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17600 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17601 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17602 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17603 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17604 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17605 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17606 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17607 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17608 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17609 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17610 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"`'
17611 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17612 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17613 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17614 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17615 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17616 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17617 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17618 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17619 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17620 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17621 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17622 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17623 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17624 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17625 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17626 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17627 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17628 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17629 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17630 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17631 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17632 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17633 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17634 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17635 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17636 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17637 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17638 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17639 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17640 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17641 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17642 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17643 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17644 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17645 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17646 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17647 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17648 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17649 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17650 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17651 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17652 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17653 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17654 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17655 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17656 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17657 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17658 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17659 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17660 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17661 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17662 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17663 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17664 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17665 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17666 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17667 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17668 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17669 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17670 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17671 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17672 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17673 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17674 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17675 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17676 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17677 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17678 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17679 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17680 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17681 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17682 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17683 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17684 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17685 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17686 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17687 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17688 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17689 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17690 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17691 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17692 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17693 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17694 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17695 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17696 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17697 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17698 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17699 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17700 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17701 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17702 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17703 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17704 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17705 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17706 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17707 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17708 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17709 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17710 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17711 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17712 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17713 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17714 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17715 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17716 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17717 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17718 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17719 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17720 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17721 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17722 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17723 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17724 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17725 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17726 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17727 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17728 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17729 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17730 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17731 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17732 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17733 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17734 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17735 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17736 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17739 LTCFLAGS='$LTCFLAGS'
17740 compiler='$compiler_DEFAULT'
17742 # A function that is used when there is no print builtin or printf.
17743 func_fallback_echo ()
17745 eval 'cat <<_LTECHO_EOF
17750 # Quote evaled strings.
17764 deplibs_check_method \
17773 lt_cv_sys_global_symbol_pipe \
17774 lt_cv_sys_global_symbol_to_cdecl \
17775 lt_cv_sys_global_symbol_to_c_name_address \
17776 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17777 lt_prog_compiler_no_builtin_flag \
17778 lt_prog_compiler_wl \
17779 lt_prog_compiler_pic \
17780 lt_prog_compiler_static \
17781 lt_cv_prog_compiler_c_o \
17789 export_dynamic_flag_spec \
17790 whole_archive_flag_spec \
17791 compiler_needs_object \
17793 allow_undefined_flag \
17794 no_undefined_flag \
17795 hardcode_libdir_flag_spec \
17796 hardcode_libdir_flag_spec_ld \
17797 hardcode_libdir_separator \
17802 variables_saved_for_relink \
17804 library_names_spec \
17806 install_override_mode \
17810 compiler_lib_search_dirs \
17815 compiler_lib_search_path \
17819 lt_prog_compiler_no_builtin_flag_FC \
17820 lt_prog_compiler_wl_FC \
17821 lt_prog_compiler_pic_FC \
17822 lt_prog_compiler_static_FC \
17823 lt_cv_prog_compiler_c_o_FC \
17824 export_dynamic_flag_spec_FC \
17825 whole_archive_flag_spec_FC \
17826 compiler_needs_object_FC \
17828 allow_undefined_flag_FC \
17829 no_undefined_flag_FC \
17830 hardcode_libdir_flag_spec_FC \
17831 hardcode_libdir_flag_spec_ld_FC \
17832 hardcode_libdir_separator_FC \
17833 fix_srcfile_path_FC \
17834 exclude_expsyms_FC \
17835 include_expsyms_FC \
17836 file_list_spec_FC \
17837 compiler_lib_search_dirs_FC \
17838 predep_objects_FC \
17839 postdep_objects_FC \
17842 compiler_lib_search_path_FC; do
17843 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17844 *[\\\\\\\`\\"\\\$]*)
17845 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17848 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17853 # Double-quote double-evaled strings.
17854 for var in reload_cmds \
17855 old_postinstall_cmds \
17856 old_postuninstall_cmds \
17858 extract_expsyms_cmds \
17859 old_archive_from_new_cmds \
17860 old_archive_from_expsyms_cmds \
17862 archive_expsym_cmds \
17864 module_expsym_cmds \
17865 export_symbols_cmds \
17868 postuninstall_cmds \
17870 sys_lib_search_path_spec \
17871 sys_lib_dlsearch_path_spec \
17873 old_archive_cmds_FC \
17874 old_archive_from_new_cmds_FC \
17875 old_archive_from_expsyms_cmds_FC \
17877 archive_expsym_cmds_FC \
17879 module_expsym_cmds_FC \
17880 export_symbols_cmds_FC \
17881 prelink_cmds_FC; do
17882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17883 *[\\\\\\\`\\"\\\$]*)
17884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17892 ac_aux_dir='$ac_aux_dir'
17893 xsi_shell='$xsi_shell'
17894 lt_shell_append='$lt_shell_append'
17896 # See if we are running on zsh, and set the options which allow our
17897 # commands through without removal of \ escapes INIT.
17898 if test -n "\${ZSH_VERSION+set}" ; then
17899 setopt NO_GLOB_SUBST
17905 TIMESTAMP='$TIMESTAMP'
17916 acx_cv_header_stdint="$acx_cv_header_stdint"
17917 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17918 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17919 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17920 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17921 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17922 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17923 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17924 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17925 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17926 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17927 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17928 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17929 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17936 # Handling of arguments.
17937 for ac_config_target
in $ac_config_targets
17939 case $ac_config_target in
17940 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17941 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17942 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17943 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17944 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
17945 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
17946 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
17947 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
17948 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
17949 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17950 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17951 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
17952 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17954 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17959 # If the user did not use the arguments to specify the items to instantiate,
17960 # then the envvar interface is used. Set only those that are not.
17961 # We use the long form for the default assignment because of an extremely
17962 # bizarre bug on SunOS 4.1.3.
17963 if $ac_need_defaults; then
17964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17969 # Have a temporary directory for convenience. Make it in the build tree
17970 # simply because there is no reason against having it here, and in addition,
17971 # creating and moving files from /tmp can sometimes cause problems.
17972 # Hook for its removal unless debugging.
17973 # Note that there is a small window in which the directory will not be cleaned:
17974 # after its creation but before its name has been assigned to `$tmp'.
17978 trap 'exit_status=$?
17979 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17981 trap 'as_fn_exit 1' 1 2 13 15
17983 # Create a (secure) tmp directory for tmp files.
17986 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17987 test -n "$tmp" && test -d "$tmp"
17990 tmp
=.
/conf$$
-$RANDOM
17991 (umask 077 && mkdir
"$tmp")
17992 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17994 # Set up the scripts for CONFIG_FILES section.
17995 # No need to generate them if there are no CONFIG_FILES.
17996 # This happens for instance with `./config.status config.h'.
17997 if test -n "$CONFIG_FILES"; then
18000 ac_cr
=`echo X | tr X '\015'`
18001 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18002 # But we know of no other shell where ac_cr would be empty at this
18003 # point, so we can use a bashism as a fallback.
18004 if test "x$ac_cr" = x
; then
18005 eval ac_cr
=\$
\'\\r
\'
18007 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18008 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18011 ac_cs_awk_cr
=$ac_cr
18014 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18019 echo "cat >conf$$subs.awk <<_ACEOF" &&
18020 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18022 } >conf$$subs.sh ||
18023 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18024 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18026 for ac_last_try in false false false false false :; do
18027 . ./conf$$subs.sh ||
18028 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18030 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18031 if test $ac_delim_n = $ac_delim_num; then
18033 elif $ac_last_try; then
18034 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18036 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18039 rm -f conf$$subs.sh
18041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18042 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18046 s/^/S["/; s
/!.
*/"]=/
18056 s/\(.\{148\}\).*/\1/
18058 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18063 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18070 s/\(.\{148\}\).*/\1/
18072 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18076 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18081 ' <conf$$subs.awk | sed '
18086 ' >>$CONFIG_STATUS || ac_write_fail=1
18087 rm -f conf$$subs.awk
18088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18090 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18091 for (key in S) S_is_set[key] = 1
18097 nfields = split(line, field, "@
")
18099 len = length(field[1])
18100 for (i = 2; i < nfields; i++) {
18102 keylen = length(key)
18103 if (S_is_set[key]) {
18105 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18106 len += length(value) + length(field[++i])
18117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18118 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18119 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18122 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18123 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18128 # trailing colons and then remove the whole line if VPATH becomes empty
18129 # (actually we leave an empty line to preserve line numbers).
18130 if test "x
$srcdir" = x.; then
18131 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18132 s/:*\$(srcdir):*/:/
18133 s/:*\${srcdir}:*/:/
18135 s/^\([^=]*=[ ]*\):*/\1/
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 fi # test -n "$CONFIG_FILES"
18144 # Set up the scripts for CONFIG_HEADERS section.
18145 # No need to generate them if there are no CONFIG_HEADERS.
18146 # This happens for instance with `./config.status Makefile'.
18147 if test -n "$CONFIG_HEADERS"; then
18148 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18152 # Transform confdefs.h into an awk script `defines.awk', embedded as
18153 # here-document in config.status, that substitutes the proper values into
18154 # config.h.in to produce config.h.
18156 # Create a delimiter string that does not exist in confdefs.h, to ease
18157 # handling of long lines.
18159 for ac_last_try in false false :; do
18160 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18161 if test -z "$ac_t"; then
18163 elif $ac_last_try; then
18164 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18166 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18170 # For the awk script, D is an array of macro values keyed by name,
18171 # likewise P contains macro parameters if any. Preserve backslash
18172 # newline sequences.
18174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18176 s/.\{148\}/&'"$ac_delim"'/g
18179 s/^[ ]*#[ ]*define[ ][ ]*/ /
18186 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18188 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18193 D["\
1"]=" \
3\\\\\\n
"\\/p
18195 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18200 s/.\{148\}/&'"$ac_delim"'/g
18205 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18208 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18210 ' <confdefs.h | sed '
18211 s/'"$ac_delim"'/"\\\
18212 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18215 for (key in D) D_is_set[key] = 1
18218 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18220 split(line, arg, " ")
18221 if (arg[1] == "#") {
18225 defundef
= substr
(arg
[1], 2)
18228 split(mac1
, mac2
, "(") #)
18230 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18231 if (D_is_set
[macro
]) {
18232 # Preserve the white space surrounding the "#".
18233 print prefix
"define", macro P
[macro
] D
[macro
]
18236 # Replace #undef with comments. This is necessary, for example,
18237 # in the case of _POSIX_SOURCE, which is predefined and required
18238 # on some systems where configure will not decide to define it.
18239 if (defundef
== "undef") {
18240 print
"/*", prefix defundef
, macro
, "*/"
18248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18249 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18250 fi # test -n "$CONFIG_HEADERS"
18253 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18258 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18260 case $ac_mode$ac_tag in
18262 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18263 :[FH
]-) ac_tag
=-:-;;
18264 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18281 -) ac_f
="$tmp/stdin";;
18282 *) # Look for the file first in the build tree, then in the source tree
18283 # (if the path is not absolute). The absolute path cannot be DOS-style,
18284 # because $ac_f cannot contain `:'.
18288 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18290 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18292 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18293 as_fn_append ac_file_inputs
" '$ac_f'"
18296 # Let's still pretend it is `configure' which instantiates (i.e., don't
18297 # use $as_me), people would be surprised to read:
18298 # /* config.h. Generated by config.status. */
18299 configure_input
='Generated from '`
18300 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18302 if test x
"$ac_file" != x-
; then
18303 configure_input
="$ac_file. $configure_input"
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18305 $as_echo "$as_me: creating $ac_file" >&6;}
18307 # Neutralize special characters interpreted by sed in replacement strings.
18308 case $configure_input in #(
18309 *\
&* |
*\|
* |
*\\* )
18310 ac_sed_conf_input
=`$as_echo "$configure_input" |
18311 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18312 *) ac_sed_conf_input
=$configure_input;;
18316 *:-:* |
*:-) cat >"$tmp/stdin" \
18317 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18322 ac_dir
=`$as_dirname -- "$ac_file" ||
18323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324 X"$ac_file" : 'X\(//\)[^/]' \| \
18325 X"$ac_file" : 'X\(//\)$' \| \
18326 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18327 $as_echo X"$ac_file" |
18328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18332 /^X\(\/\/\)[^/].*/{
18345 as_dir
="$ac_dir"; as_fn_mkdir_p
18349 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18351 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18352 # A ".." for each directory in $ac_dir_suffix.
18353 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18354 case $ac_top_builddir_sub in
18355 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18356 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18359 ac_abs_top_builddir
=$ac_pwd
18360 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18361 # for backward compatibility:
18362 ac_top_builddir
=$ac_top_build_prefix
18365 .
) # We are building in place.
18367 ac_top_srcdir
=$ac_top_builddir_sub
18368 ac_abs_top_srcdir
=$ac_pwd ;;
18369 [\\/]* | ?
:[\\/]* ) # Absolute name.
18370 ac_srcdir
=$srcdir$ac_dir_suffix;
18371 ac_top_srcdir
=$srcdir
18372 ac_abs_top_srcdir
=$srcdir ;;
18373 *) # Relative name.
18374 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18375 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18376 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18378 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18388 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18389 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18391 ac_MKDIR_P
=$MKDIR_P
18393 [\\/$
]* | ?
:[\\/]* ) ;;
18394 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18399 # If the template does not know about datarootdir, expand it.
18400 # FIXME: This hack should be removed a few years after 2.60.
18401 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18413 *datarootdir
*) ac_datarootdir_seen
=yes;;
18414 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18419 ac_datarootdir_hack='
18420 s&@datadir@&$datadir&g
18421 s&@docdir@&$docdir&g
18422 s&@infodir@&$infodir&g
18423 s&@localedir@&$localedir&g
18424 s&@mandir@&$mandir&g
18425 s&\\\${datarootdir}&$datarootdir&g' ;;
18429 # Neutralize VPATH when `$srcdir' = `.'.
18430 # Shell code in configure.ac might set extrasub.
18431 # FIXME: do we really want to maintain this feature?
18432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18433 ac_sed_extra="$ac_vpsub
18436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18438 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18439 s|@configure_input@|
$ac_sed_conf_input|
;t t
18440 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18441 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18442 s
&@srcdir@
&$ac_srcdir&;t t
18443 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18444 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18445 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18446 s
&@builddir@
&$ac_builddir&;t t
18447 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18448 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18449 s
&@INSTALL@
&$ac_INSTALL&;t t
18450 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18451 $ac_datarootdir_hack
18453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18454 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18457 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18460 which seems to be undefined. Please make sure it is defined." >&5
18461 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18462 which seems to be undefined. Please make sure it is defined." >&2;}
18466 -) cat "$tmp/out" && rm -f "$tmp/out";;
18467 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18469 || as_fn_error "could not create $ac_file" "$LINENO" 5
18475 if test x"$ac_file" != x-; then
18477 $as_echo "/* $configure_input */" \
18478 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18479 } >"$tmp/config.h" \
18480 || as_fn_error "could not create $ac_file" "$LINENO" 5
18481 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18483 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18486 mv "$tmp/config.h" "$ac_file" \
18487 || as_fn_error "could not create $ac_file" "$LINENO" 5
18490 $as_echo "/* $configure_input */" \
18491 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18492 || as_fn_error "could not create -" "$LINENO" 5
18494 # Compute "$ac_file"'s index
in $config_headers.
18497 for _am_header
in $config_headers :; do
18498 case $_am_header in
18499 $_am_arg |
$_am_arg:* )
18502 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18505 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18506 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18507 X"$_am_arg" : 'X\(//\)[^/]' \| \
18508 X"$_am_arg" : 'X\(//\)$' \| \
18509 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18510 $as_echo X"$_am_arg" |
18511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18515 /^X\(\/\/\)[^/].*/{
18527 s/.*/./; q'`/stamp-h
$_am_stamp_count
18530 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18531 $as_echo "$as_me: executing $ac_file commands" >&6;}
18536 case $ac_file$ac_mode in
18538 # Only add multilib support code if we just rebuilt the top-level
18540 case " $CONFIG_FILES " in
18542 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18545 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18546 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18547 # are listed without --file. Let's play safe and only enable the eval
18548 # if we detect the quoting.
18549 case $CONFIG_FILES in
18550 *\'*) eval set x
"$CONFIG_FILES" ;;
18551 *) set x
$CONFIG_FILES ;;
18556 # Strip MF so we end up with the name of the file.
18557 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18558 # Check whether this is an Automake generated Makefile or not.
18559 # We used to match only the files named `Makefile.in', but
18560 # some people rename them; so instead we look at the file content.
18561 # Grep'ing the first line is not enough: some people post-process
18562 # each Makefile.in and add a new line on top of each file to say so.
18563 # Grep'ing the whole file is not good either: AIX grep has a line
18564 # limit of 2048, but all sed's we know have understand at least 4000.
18565 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18566 dirpart
=`$as_dirname -- "$mf" ||
18567 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18568 X"$mf" : 'X\(//\)[^/]' \| \
18569 X"$mf" : 'X\(//\)$' \| \
18570 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18576 /^X\(\/\/\)[^/].*/{
18592 # Extract the definition of DEPDIR, am__include, and am__quote
18593 # from the Makefile without running `make'.
18594 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18595 test -z "$DEPDIR" && continue
18596 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18597 test -z "am__include" && continue
18598 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18599 # When using ansi2knr, U may be empty or an underscore; expand it
18600 U
=`sed -n 's/^U = //p' < "$mf"`
18601 # Find all dependency output files, they are included files with
18602 # $(DEPDIR) in their names. We invoke sed twice because it is the
18603 # simplest approach to changing $(DEPDIR) to its actual value in the
18605 for file in `sed -n "
18606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18608 # Make sure the directory exists.
18609 test -f "$dirpart/$file" && continue
18610 fdir
=`$as_dirname -- "$file" ||
18611 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18612 X"$file" : 'X\(//\)[^/]' \| \
18613 X"$file" : 'X\(//\)$' \| \
18614 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18615 $as_echo X"$file" |
18616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18620 /^X\(\/\/\)[^/].*/{
18633 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18634 # echo "creating $dirpart/$file"
18635 echo '# dummy' > "$dirpart/$file"
18642 # See if we are running on zsh, and set the options which allow our
18643 # commands through without removal of \ escapes.
18644 if test -n "${ZSH_VERSION+set}" ; then
18645 setopt NO_GLOB_SUBST
18648 cfgfile
="${ofile}T"
18649 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18652 cat <<_LT_EOF >> "$cfgfile"
18655 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18656 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18658 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18660 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18661 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18662 # Written by Gordon Matzigkeit, 1996
18664 # This file is part of GNU Libtool.
18666 # GNU Libtool is free software; you can redistribute it and/or
18667 # modify it under the terms of the GNU General Public License as
18668 # published by the Free Software Foundation; either version 2 of
18669 # the License, or (at your option) any later version.
18671 # As a special exception to the GNU General Public License,
18672 # if you distribute this file as part of a program or library that
18673 # is built using GNU Libtool, you may include this file under the
18674 # same distribution terms that you use for the rest of that program.
18676 # GNU Libtool is distributed in the hope that it will be useful,
18677 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18678 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18679 # GNU General Public License for more details.
18681 # You should have received a copy of the GNU General Public License
18682 # along with GNU Libtool; see the file COPYING. If not, a copy
18683 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18684 # obtained by writing to the Free Software Foundation, Inc.,
18685 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18688 # The names of the tagged configurations supported by this script.
18689 available_tags="FC "
18691 # ### BEGIN LIBTOOL CONFIG
18693 # Which release of libtool.m4 was used?
18694 macro_version=$macro_version
18695 macro_revision=$macro_revision
18697 # Whether or not to build shared libraries.
18698 build_libtool_libs=$enable_shared
18700 # Whether or not to build static libraries.
18701 build_old_libs=$enable_static
18703 # What type of objects to build.
18706 # Whether or not to optimize for fast installation.
18707 fast_install=$enable_fast_install
18709 # Shell to use when invoking shell scripts.
18712 # An echo program that protects backslashes.
18716 host_alias=$host_alias
18720 # The build system.
18721 build_alias=$build_alias
18725 # A sed program that does not truncate output.
18728 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18729 Xsed="\$SED -e 1s/^X//"
18731 # A grep program that handles long lines.
18737 # A literal string matcher.
18740 # A BSD- or MS-compatible name lister.
18743 # Whether we need soft or hard links.
18746 # What is the maximum length of a command?
18747 max_cmd_len=$max_cmd_len
18749 # Object file suffix (normally "o").
18752 # Executable file suffix (normally "").
18755 # whether the shell understands "unset".
18758 # turn spaces into newlines.
18761 # turn newlines into spaces.
18764 # An object symbol dumper.
18765 OBJDUMP=$lt_OBJDUMP
18767 # Method to check whether dependent libraries are shared objects.
18768 deplibs_check_method=$lt_deplibs_check_method
18770 # Command to use when deplibs_check_method == "file_magic".
18771 file_magic_cmd=$lt_file_magic_cmd
18775 AR_FLAGS=$lt_AR_FLAGS
18777 # A symbol stripping program.
18780 # Commands used to install an old-style archive.
18782 old_postinstall_cmds=$lt_old_postinstall_cmds
18783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18785 # Whether to use a lock for old archive extraction.
18786 lock_old_archive_extraction=$lock_old_archive_extraction
18791 # LTCC compiler flags.
18792 LTCFLAGS=$lt_CFLAGS
18794 # Take the output of nm and produce a listing of raw symbols and C names.
18795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18797 # Transform the output of nm in a proper C declaration.
18798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18800 # Transform the output of nm in a C name address pair.
18801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18803 # Transform the output of nm in a C name address pair when lib prefix is needed.
18804 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18806 # The name of the directory that contains temporary libtool files.
18809 # Used to examine libraries when file_magic_cmd begins with "file".
18810 MAGIC_CMD=$MAGIC_CMD
18812 # Must we lock files when doing compilation?
18813 need_locks=$lt_need_locks
18815 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18816 DSYMUTIL=$lt_DSYMUTIL
18818 # Tool to change global to local symbols on Mac OS X.
18821 # Tool to manipulate fat objects and archives on Mac OS X.
18824 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18827 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18828 OTOOL64=$lt_OTOOL64
18830 # Old archive suffix (normally "a").
18833 # Shared library suffix (normally ".so").
18834 shrext_cmds=$lt_shrext_cmds
18836 # The commands to extract the exported symbol list from a shared archive.
18837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at link time.
18841 variables_saved_for_relink=$lt_variables_saved_for_relink
18843 # Do we need the "lib" prefix for modules?
18844 need_lib_prefix=$need_lib_prefix
18846 # Do we need a version for libraries?
18847 need_version=$need_version
18849 # Library versioning type.
18850 version_type=$version_type
18852 # Shared library runtime path variable.
18853 runpath_var=$runpath_var
18855 # Shared library path variable.
18856 shlibpath_var=$shlibpath_var
18858 # Is shlibpath searched before the hard-coded library search path?
18859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18861 # Format of library name prefix.
18862 libname_spec=$lt_libname_spec
18864 # List of archive names. First name is the real one, the rest are links.
18865 # The last name is the one that the linker finds with -lNAME
18866 library_names_spec=$lt_library_names_spec
18868 # The coded name of the library, if different from the real name.
18869 soname_spec=$lt_soname_spec
18871 # Permission mode override for installation of shared libraries.
18872 install_override_mode=$lt_install_override_mode
18874 # Command to use after installation of a shared archive.
18875 postinstall_cmds=$lt_postinstall_cmds
18877 # Command to use after uninstallation of a shared archive.
18878 postuninstall_cmds=$lt_postuninstall_cmds
18880 # Commands used to finish a libtool library installation in a directory.
18881 finish_cmds=$lt_finish_cmds
18883 # As "finish_cmds", except a single script fragment to be evaled but
18885 finish_eval=$lt_finish_eval
18887 # Whether we should hardcode library paths into libraries.
18888 hardcode_into_libs=$hardcode_into_libs
18890 # Compile-time system search path for libraries.
18891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18893 # Run-time system search path for libraries.
18894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18896 # Whether dlopen is supported.
18897 dlopen_support=$enable_dlopen
18899 # Whether dlopen of programs is supported.
18900 dlopen_self=$enable_dlopen_self
18902 # Whether dlopen of statically linked programs is supported.
18903 dlopen_self_static=$enable_dlopen_self_static
18905 # Commands to strip libraries.
18906 old_striplib=$lt_old_striplib
18907 striplib=$lt_striplib
18910 # The linker used to build libraries.
18913 # How to create reloadable object files.
18914 reload_flag=$lt_reload_flag
18915 reload_cmds=$lt_reload_cmds
18917 # Commands used to build an old-style archive.
18918 old_archive_cmds=$lt_old_archive_cmds
18920 # A language specific compiler.
18923 # Is the compiler the GNU compiler?
18926 # Compiler flag to turn off builtin functions.
18927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18929 # How to pass a linker flag through the compiler.
18930 wl=$lt_lt_prog_compiler_wl
18932 # Additional compiler flags for building library objects.
18933 pic_flag=$lt_lt_prog_compiler_pic
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static
18938 # Does compiler simultaneously support -c and -o options?
18939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18941 # Whether or not to add -lc for building shared libraries.
18942 build_libtool_need_lc=$archive_cmds_need_lc
18944 # Whether or not to disallow shared libs when runtime libs are static.
18945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18947 # Compiler flag to allow reflexive dlopens.
18948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18950 # Compiler flag to generate shared objects directly from archives.
18951 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18953 # Whether the compiler copes with passing no objects directly.
18954 compiler_needs_object=$lt_compiler_needs_object
18956 # Create an old-style archive from a shared archive.
18957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18959 # Create a temporary old-style archive to link instead of a shared archive.
18960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18962 # Commands used to build a shared archive.
18963 archive_cmds=$lt_archive_cmds
18964 archive_expsym_cmds=$lt_archive_expsym_cmds
18966 # Commands used to build a loadable module if different from building
18967 # a shared archive.
18968 module_cmds=$lt_module_cmds
18969 module_expsym_cmds=$lt_module_expsym_cmds
18971 # Whether we are building with GNU ld or not.
18972 with_gnu_ld=$lt_with_gnu_ld
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag
18977 # Flag that enforces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag
18980 # Flag to hardcode \$libdir into a binary during linking.
18981 # This must work even if \$libdir does not exist
18982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18984 # If ld is used when linking, flag to hardcode \$libdir into a binary
18985 # during linking. This must work even if \$libdir does not exist.
18986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18988 # Whether we need a single "-rpath" flag with a separated argument.
18989 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18992 # DIR into the resulting binary.
18993 hardcode_direct=$hardcode_direct
18995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18996 # DIR into the resulting binary and the resulting library dependency is
18997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18998 # library is relocated.
18999 hardcode_direct_absolute=$hardcode_direct_absolute
19001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19002 # into the resulting binary.
19003 hardcode_minus_L=$hardcode_minus_L
19005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19006 # into the resulting binary.
19007 hardcode_shlibpath_var=$hardcode_shlibpath_var
19009 # Set to "yes" if building a shared library automatically hardcodes DIR
19010 # into the library and all subsequent libraries and executables linked
19012 hardcode_automatic=$hardcode_automatic
19014 # Set to yes if linker adds runtime paths of dependent libraries
19015 # to runtime path list.
19016 inherit_rpath=$inherit_rpath
19018 # Whether libtool must link a program against all its dependency libraries.
19019 link_all_deplibs=$link_all_deplibs
19021 # Fix the shell variable \$srcfile for the compiler.
19022 fix_srcfile_path=$lt_fix_srcfile_path
19024 # Set to "yes" if exported symbols are required.
19025 always_export_symbols=$always_export_symbols
19027 # The commands to list exported symbols.
19028 export_symbols_cmds=$lt_export_symbols_cmds
19030 # Symbols that should not be listed in the preloaded symbols.
19031 exclude_expsyms=$lt_exclude_expsyms
19033 # Symbols that must always be exported.
19034 include_expsyms=$lt_include_expsyms
19036 # Commands necessary for linking programs (against libraries) with templates.
19037 prelink_cmds=$lt_prelink_cmds
19039 # Specify filename containing input files.
19040 file_list_spec=$lt_file_list_spec
19042 # How to hardcode a shared library path into an executable.
19043 hardcode_action=$hardcode_action
19045 # The directories searched by this compiler when creating a shared library.
19046 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19048 # Dependencies to place before and after the objects being linked to
19049 # create a shared library.
19050 predep_objects=$lt_predep_objects
19051 postdep_objects=$lt_postdep_objects
19052 predeps=$lt_predeps
19053 postdeps=$lt_postdeps
19055 # The library search path used internally by the compiler when linking
19056 # a shared library.
19057 compiler_lib_search_path=$lt_compiler_lib_search_path
19059 # ### END LIBTOOL CONFIG
19065 cat <<\_LT_EOF
>> "$cfgfile"
19066 # AIX sometimes has problems with the GCC collect2 program. For some
19067 # reason, if we set the COLLECT_NAMES environment variable, the problems
19068 # vanish in a puff of smoke.
19069 if test "X${COLLECT_NAMES+set}" != Xset
; then
19071 export COLLECT_NAMES
19078 ltmain
="$ac_aux_dir/ltmain.sh"
19081 # We use sed instead of cat because bash on DJGPP gets confused if
19082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19083 # text mode, it properly converts lines to CR/LF. This bash problem
19084 # is reportedly fixed, but why not run on old versions too?
19085 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19086 ||
(rm -f "$cfgfile"; exit 1)
19090 cat << \_LT_EOF
>> "$cfgfile"
19092 # func_dirname file append nondir_replacement
19093 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19094 # otherwise set result to NONDIR_REPLACEMENT.
19098 */*) func_dirname_result
="${1%/*}${2}" ;;
19099 * ) func_dirname_result
="${3}" ;;
19103 # func_basename file
19106 func_basename_result
="${1##*/}"
19109 # func_dirname_and_basename file append nondir_replacement
19110 # perform func_basename and func_dirname in a single function
19112 # dirname: Compute the dirname of FILE. If nonempty,
19113 # add APPEND to the result, otherwise set result
19114 # to NONDIR_REPLACEMENT.
19115 # value returned in "$func_dirname_result"
19116 # basename: Compute filename of FILE.
19117 # value retuned in "$func_basename_result"
19118 # Implementation must be kept synchronized with func_dirname
19119 # and func_basename. For efficiency, we do not delegate to
19120 # those functions but instead duplicate the functionality here.
19121 func_dirname_and_basename
()
19124 */*) func_dirname_result
="${1%/*}${2}" ;;
19125 * ) func_dirname_result
="${3}" ;;
19127 func_basename_result
="${1##*/}"
19130 # func_stripname prefix suffix name
19131 # strip PREFIX and SUFFIX off of NAME.
19132 # PREFIX and SUFFIX must not contain globbing or regex special
19133 # characters, hashes, percent signs, but SUFFIX may contain a leading
19134 # dot (in which case that matches only a dot).
19137 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19138 # positional parameters, so assign one to ordinary parameter first.
19139 func_stripname_result
=${3}
19140 func_stripname_result
=${func_stripname_result#"${1}"}
19141 func_stripname_result
=${func_stripname_result%"${2}"}
19147 func_opt_split_opt
=${1%%=*}
19148 func_opt_split_arg
=${1#*=}
19155 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19156 *) func_lo2o_result
=${1} ;;
19160 # func_xform libobj-or-source
19163 func_xform_result
=${1%.*}.lo
19166 # func_arith arithmetic-term...
19169 func_arith_result
=$
(( $
* ))
19173 # STRING may not start with a hyphen.
19176 func_len_result
=${#1}
19181 *) # Bourne compatible functions.
19182 cat << \_LT_EOF
>> "$cfgfile"
19184 # func_dirname file append nondir_replacement
19185 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19186 # otherwise set result to NONDIR_REPLACEMENT.
19189 # Extract subdirectory from the argument.
19190 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19191 if test "X$func_dirname_result" = "X${1}"; then
19192 func_dirname_result
="${3}"
19194 func_dirname_result
="$func_dirname_result${2}"
19198 # func_basename file
19201 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19205 # func_stripname prefix suffix name
19206 # strip PREFIX and SUFFIX off of NAME.
19207 # PREFIX and SUFFIX must not contain globbing or regex special
19208 # characters, hashes, percent signs, but SUFFIX may contain a leading
19209 # dot (in which case that matches only a dot).
19210 # func_strip_suffix prefix name
19214 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19215 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19220 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19221 my_sed_long_arg
='1s/^-[^=]*=//'
19226 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19227 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19233 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19236 # func_xform libobj-or-source
19239 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19242 # func_arith arithmetic-term...
19245 func_arith_result
=`expr "$@"`
19249 # STRING may not start with a hyphen.
19252 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19258 case $lt_shell_append in
19260 cat << \_LT_EOF
>> "$cfgfile"
19262 # func_append var value
19263 # Append VALUE to the end of shell variable VAR.
19271 cat << \_LT_EOF
>> "$cfgfile"
19273 # func_append var value
19274 # Append VALUE to the end of shell variable VAR.
19285 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19286 ||
(rm -f "$cfgfile"; exit 1)
19288 mv -f "$cfgfile" "$ofile" ||
19289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19293 cat <<_LT_EOF >> "$ofile"
19295 # ### BEGIN LIBTOOL TAG CONFIG: FC
19297 # The linker used to build libraries.
19300 # How to create reloadable object files.
19301 reload_flag=$lt_reload_flag_FC
19302 reload_cmds=$lt_reload_cmds_FC
19304 # Commands used to build an old-style archive.
19305 old_archive_cmds=$lt_old_archive_cmds_FC
19307 # A language specific compiler.
19310 # Is the compiler the GNU compiler?
19313 # Compiler flag to turn off builtin functions.
19314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19316 # How to pass a linker flag through the compiler.
19317 wl=$lt_lt_prog_compiler_wl_FC
19319 # Additional compiler flags for building library objects.
19320 pic_flag=$lt_lt_prog_compiler_pic_FC
19322 # Compiler flag to prevent dynamic linking.
19323 link_static_flag=$lt_lt_prog_compiler_static_FC
19325 # Does compiler simultaneously support -c and -o options?
19326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19328 # Whether or not to add -lc for building shared libraries.
19329 build_libtool_need_lc=$archive_cmds_need_lc_FC
19331 # Whether or not to disallow shared libs when runtime libs are static.
19332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19334 # Compiler flag to allow reflexive dlopens.
19335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19337 # Compiler flag to generate shared objects directly from archives.
19338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19340 # Whether the compiler copes with passing no objects directly.
19341 compiler_needs_object=$lt_compiler_needs_object_FC
19343 # Create an old-style archive from a shared archive.
19344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19346 # Create a temporary old-style archive to link instead of a shared archive.
19347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19349 # Commands used to build a shared archive.
19350 archive_cmds=$lt_archive_cmds_FC
19351 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19353 # Commands used to build a loadable module if different from building
19354 # a shared archive.
19355 module_cmds=$lt_module_cmds_FC
19356 module_expsym_cmds=$lt_module_expsym_cmds_FC
19358 # Whether we are building with GNU ld or not.
19359 with_gnu_ld=$lt_with_gnu_ld_FC
19361 # Flag that allows shared libraries with undefined symbols to be built.
19362 allow_undefined_flag=$lt_allow_undefined_flag_FC
19364 # Flag that enforces no undefined symbols.
19365 no_undefined_flag=$lt_no_undefined_flag_FC
19367 # Flag to hardcode \$libdir into a binary during linking.
19368 # This must work even if \$libdir does not exist
19369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19371 # If ld is used when linking, flag to hardcode \$libdir into a binary
19372 # during linking. This must work even if \$libdir does not exist.
19373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19375 # Whether we need a single "-rpath" flag with a separated argument.
19376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19378 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19379 # DIR into the resulting binary.
19380 hardcode_direct=$hardcode_direct_FC
19382 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19383 # DIR into the resulting binary and the resulting library dependency is
19384 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19385 # library is relocated.
19386 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19388 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19389 # into the resulting binary.
19390 hardcode_minus_L=$hardcode_minus_L_FC
19392 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19393 # into the resulting binary.
19394 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19396 # Set to "yes" if building a shared library automatically hardcodes DIR
19397 # into the library and all subsequent libraries and executables linked
19399 hardcode_automatic=$hardcode_automatic_FC
19401 # Set to yes if linker adds runtime paths of dependent libraries
19402 # to runtime path list.
19403 inherit_rpath=$inherit_rpath_FC
19405 # Whether libtool must link a program against all its dependency libraries.
19406 link_all_deplibs=$link_all_deplibs_FC
19408 # Fix the shell variable \$srcfile for the compiler.
19409 fix_srcfile_path=$lt_fix_srcfile_path_FC
19411 # Set to "yes" if exported symbols are required.
19412 always_export_symbols=$always_export_symbols_FC
19414 # The commands to list exported symbols.
19415 export_symbols_cmds=$lt_export_symbols_cmds_FC
19417 # Symbols that should not be listed in the preloaded symbols.
19418 exclude_expsyms=$lt_exclude_expsyms_FC
19420 # Symbols that must always be exported.
19421 include_expsyms=$lt_include_expsyms_FC
19423 # Commands necessary for linking programs (against libraries) with templates.
19424 prelink_cmds=$lt_prelink_cmds_FC
19426 # Specify filename containing input files.
19427 file_list_spec=$lt_file_list_spec_FC
19429 # How to hardcode a shared library path into an executable.
19430 hardcode_action=$hardcode_action_FC
19432 # The directories searched by this compiler when creating a shared library.
19433 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19435 # Dependencies to place before and after the objects being linked to
19436 # create a shared library.
19437 predep_objects=$lt_predep_objects_FC
19438 postdep_objects=$lt_postdep_objects_FC
19439 predeps=$lt_predeps_FC
19440 postdeps=$lt_postdeps_FC
19442 # The library search path used internally by the compiler when linking
19443 # a shared library.
19444 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19446 # ### END LIBTOOL TAG CONFIG: FC
19451 if test "$GCC" = yes; then
19452 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19454 echo "/* generated for $CC */" > tmp-stdint.h
19457 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19459 #ifndef GCC_GENERATED_STDINT_H
19460 #define GCC_GENERATED_STDINT_H 1
19462 #include <sys/types.h>
19465 if test "$acx_cv_header_stdint" != stdint.h
; then
19466 echo "#include <stddef.h>" >> tmp-stdint.h
19468 if test "$acx_cv_header_stdint" != stddef.h
; then
19469 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19472 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19473 /* glibc uses these symbols as guards to prevent redefinitions. */
19474 #ifdef __int8_t_defined
19479 #ifdef __uint32_t_defined
19485 # ----------------- done header, emit basic int types -------------
19486 if test "$acx_cv_header_stdint" = stddef.h
; then
19487 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19491 #ifndef __uint8_t_defined
19492 #define __uint8_t_defined
19494 typedef unsigned $acx_cv_type_int8_t uint8_t;
19501 #ifndef __uint16_t_defined
19502 #define __uint16_t_defined
19504 typedef unsigned $acx_cv_type_int16_t uint16_t;
19511 #ifndef __uint32_t_defined
19512 #define __uint32_t_defined
19514 typedef unsigned $acx_cv_type_int32_t uint32_t;
19521 #ifndef __int8_t_defined
19522 #define __int8_t_defined
19524 typedef $acx_cv_type_int8_t int8_t;
19531 #ifndef __int16_t_defined
19532 #define __int16_t_defined
19534 typedef $acx_cv_type_int16_t int16_t;
19541 #ifndef __int32_t_defined
19542 #define __int32_t_defined
19544 typedef $acx_cv_type_int32_t int32_t;
19549 elif test "$ac_cv_type_u_int32_t" = yes; then
19550 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19552 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19565 #ifndef __uint8_t_defined
19566 #define __uint8_t_defined
19568 typedef u_int8_t uint8_t;
19575 #ifndef __uint16_t_defined
19576 #define __uint16_t_defined
19578 typedef u_int16_t uint16_t;
19585 #ifndef __uint32_t_defined
19586 #define __uint32_t_defined
19588 typedef u_int32_t uint32_t;
19594 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19596 /* Some systems have guard macros to prevent redefinitions, define them. */
19618 # ------------- done basic int types, emit int64_t types ------------
19619 if test "$ac_cv_type_uint64_t" = yes; then
19620 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19622 /* system headers have good uint64_t and int64_t */
19630 elif test "$ac_cv_type_u_int64_t" = yes; then
19631 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19633 /* system headers have an u_int64_t (and int64_t) */
19639 #ifndef __uint64_t_defined
19640 #define __uint64_t_defined
19642 typedef u_int64_t uint64_t;
19647 elif test -n "$acx_cv_type_int64_t"; then
19648 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19650 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19654 typedef $acx_cv_type_int64_t int64_t;
19659 #ifndef __uint64_t_defined
19660 #define __uint64_t_defined
19662 typedef unsigned $acx_cv_type_int64_t uint64_t;
19668 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19670 /* some common heuristics for int64_t, using compiler-specific tests */
19671 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19674 #ifndef __int64_t_defined
19676 typedef long long int64_t;
19683 typedef unsigned long long uint64_t;
19687 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19688 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19689 does not implement __extension__. But that compiler doesn't define
19691 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19692 # define __extension__
19698 __extension__ typedef long long int64_t;
19704 __extension__ typedef unsigned long long uint64_t;
19708 #elif !defined __STRICT_ANSI__
19709 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19714 typedef __int64 int64_t;
19720 typedef unsigned __int64 uint64_t;
19723 # endif /* compiler */
19725 #endif /* ANSI version */
19729 # ------------- done int64_t types, emit intptr types ------------
19730 if test "$ac_cv_type_uintptr_t" != yes; then
19731 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19733 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19734 #ifndef __uintptr_t_defined
19736 typedef u$acx_cv_type_intptr_t uintptr_t;
19739 #ifndef __intptr_t_defined
19741 typedef $acx_cv_type_intptr_t intptr_t;
19747 # ------------- done intptr types, emit int_least types ------------
19748 if test "$ac_cv_type_int_least32_t" != yes; then
19749 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19751 /* Define int_least types */
19752 typedef int8_t int_least8_t;
19753 typedef int16_t int_least16_t;
19754 typedef int32_t int_least32_t;
19756 typedef int64_t int_least64_t;
19759 typedef uint8_t uint_least8_t;
19760 typedef uint16_t uint_least16_t;
19761 typedef uint32_t uint_least32_t;
19763 typedef uint64_t uint_least64_t;
19768 # ------------- done intptr types, emit int_fast types ------------
19769 if test "$ac_cv_type_int_fast32_t" != yes; then
19770 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19772 /* Define int_fast types. short is often slow */
19773 typedef int8_t int_fast8_t;
19774 typedef int int_fast16_t;
19775 typedef int32_t int_fast32_t;
19777 typedef int64_t int_fast64_t;
19780 typedef uint8_t uint_fast8_t;
19781 typedef unsigned int uint_fast16_t;
19782 typedef uint32_t uint_fast32_t;
19784 typedef uint64_t uint_fast64_t;
19789 if test "$ac_cv_type_uintmax_t" != yes; then
19790 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19792 /* Define intmax based on what we found */
19795 typedef int64_t intmax_t;
19797 typedef long intmax_t;
19802 typedef uint64_t uintmax_t;
19804 typedef unsigned long uintmax_t;
19810 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19812 #endif /* GCC_GENERATED_STDINT_H */
19815 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
19818 mv -f tmp-stdint.h gstdint.h
19829 ac_clean_files
=$ac_clean_files_save
19831 test $ac_write_fail = 0 ||
19832 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19835 # configure is writing to config.log, and then calls config.status.
19836 # config.status does its own redirection, appending to config.log.
19837 # Unfortunately, on DOS this fails, as config.log is still kept open
19838 # by configure, so config.status won't be able to write to it; its
19839 # output is simply discarded. So we exec the FD to /dev/null,
19840 # effectively closing config.log, so it can be properly (re)opened and
19841 # appended to by config.status. When coming back to configure, we
19842 # need to make the FD available again.
19843 if test "$no_create" != yes; then
19845 ac_config_status_args
=
19846 test "$silent" = yes &&
19847 ac_config_status_args
="$ac_config_status_args --quiet"
19849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19852 # would make configure fail if this is the last instruction.
19853 $ac_cs_success || as_fn_exit $?
19855 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19857 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}