2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME
='libgomp'
590 PACKAGE_VERSION
='1.0'
591 PACKAGE_STRING
='GNU Offloading and Multi Processing Runtime Library 1.0'
593 PACKAGE_URL
='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
639 OMP_NEST_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
672 offload_additional_lib_paths
673 offload_additional_options
682 MAINTAINER_MODE_FALSE
741 INSTALL_STRIP_PROGRAM
797 program_transform_name
810 enable_option_checking
811 enable_version_specific_runtime_libs
812 enable_generated_files_in_srcdir
816 enable_dependency_tracking
824 enable_maintainer_mode
829 with_gcc_major_version_only
831 ac_precious_vars
='build_alias
842 # Initialize some variables set by options.
844 ac_init_version
=false
845 ac_unrecognized_opts
=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name
=s
,x
,x
,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir
='${exec_prefix}/bin'
871 sbindir
='${exec_prefix}/sbin'
872 libexecdir
='${exec_prefix}/libexec'
873 datarootdir
='${prefix}/share'
874 datadir
='${datarootdir}'
875 sysconfdir
='${prefix}/etc'
876 sharedstatedir
='${prefix}/com'
877 localstatedir
='${prefix}/var'
878 includedir
='${prefix}/include'
879 oldincludedir
='/usr/include'
880 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir
='${datarootdir}/info'
886 libdir
='${exec_prefix}/lib'
887 localedir
='${datarootdir}/locale'
888 mandir
='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\
$ac_option
902 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
915 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
918 -build |
--build |
--buil |
--bui |
--bu)
919 ac_prev
=build_alias
;;
920 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
921 build_alias
=$ac_optarg ;;
923 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
924 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
925 ac_prev
=cache_file
;;
926 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
927 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
928 cache_file
=$ac_optarg ;;
931 cache_file
=config.cache
;;
933 -datadir |
--datadir |
--datadi |
--datad)
935 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
936 datadir
=$ac_optarg ;;
938 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
939 |
--dataroo |
--dataro |
--datar)
940 ac_prev
=datarootdir
;;
941 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
942 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
943 datarootdir
=$ac_optarg ;;
945 -disable-* |
--disable-*)
946 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
949 as_fn_error $?
"invalid feature name: $ac_useropt"
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=no
;;
961 -docdir |
--docdir |
--docdi |
--doc |
--do)
963 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
966 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
968 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
971 -enable-* |
--enable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 as_fn_error $?
"invalid feature name: $ac_useropt"
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=\
$ac_optarg ;;
987 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
988 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
989 |
--exec |
--exe |
--ex)
990 ac_prev
=exec_prefix
;;
991 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
992 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
993 |
--exec=* |
--exe=* |
--ex=*)
994 exec_prefix
=$ac_optarg ;;
996 -gas |
--gas |
--ga |
--g)
997 # Obsolete; use --with-gas.
1000 -help |
--help |
--hel |
--he |
-h)
1001 ac_init_help
=long
;;
1002 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1003 ac_init_help
=recursive
;;
1004 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1005 ac_init_help
=short
;;
1007 -host |
--host |
--hos |
--ho)
1008 ac_prev
=host_alias
;;
1009 -host=* |
--host=* |
--hos=* |
--ho=*)
1010 host_alias
=$ac_optarg ;;
1012 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1014 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1016 htmldir
=$ac_optarg ;;
1018 -includedir |
--includedir |
--includedi |
--included |
--include \
1019 |
--includ |
--inclu |
--incl |
--inc)
1020 ac_prev
=includedir
;;
1021 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1022 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1023 includedir
=$ac_optarg ;;
1025 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1027 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1028 infodir
=$ac_optarg ;;
1030 -libdir |
--libdir |
--libdi |
--libd)
1032 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1033 libdir
=$ac_optarg ;;
1035 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1036 |
--libexe |
--libex |
--libe)
1037 ac_prev
=libexecdir
;;
1038 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1039 |
--libexe=* |
--libex=* |
--libe=*)
1040 libexecdir
=$ac_optarg ;;
1042 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1043 ac_prev
=localedir
;;
1044 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1045 localedir
=$ac_optarg ;;
1047 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1048 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1049 ac_prev
=localstatedir
;;
1050 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1051 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1052 localstatedir
=$ac_optarg ;;
1054 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1056 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1057 mandir
=$ac_optarg ;;
1059 -nfp |
--nfp |
--nf)
1060 # Obsolete; use --without-fp.
1063 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1064 |
--no-cr |
--no-c |
-n)
1067 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1068 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1071 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1072 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1073 |
--oldin |
--oldi |
--old |
--ol |
--o)
1074 ac_prev
=oldincludedir
;;
1075 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1076 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1077 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1078 oldincludedir
=$ac_optarg ;;
1080 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1082 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1083 prefix
=$ac_optarg ;;
1085 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1086 |
--program-pre |
--program-pr |
--program-p)
1087 ac_prev
=program_prefix
;;
1088 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1089 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1090 program_prefix
=$ac_optarg ;;
1092 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1093 |
--program-suf |
--program-su |
--program-s)
1094 ac_prev
=program_suffix
;;
1095 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1096 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1097 program_suffix
=$ac_optarg ;;
1099 -program-transform-name |
--program-transform-name \
1100 |
--program-transform-nam |
--program-transform-na \
1101 |
--program-transform-n |
--program-transform- \
1102 |
--program-transform |
--program-transfor \
1103 |
--program-transfo |
--program-transf \
1104 |
--program-trans |
--program-tran \
1105 |
--progr-tra |
--program-tr |
--program-t)
1106 ac_prev
=program_transform_name
;;
1107 -program-transform-name=* |
--program-transform-name=* \
1108 |
--program-transform-nam=* |
--program-transform-na=* \
1109 |
--program-transform-n=* |
--program-transform-=* \
1110 |
--program-transform=* |
--program-transfor=* \
1111 |
--program-transfo=* |
--program-transf=* \
1112 |
--program-trans=* |
--program-tran=* \
1113 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1114 program_transform_name
=$ac_optarg ;;
1116 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1118 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1119 pdfdir
=$ac_optarg ;;
1121 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1123 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1127 |
-silent |
--silent |
--silen |
--sile |
--sil)
1130 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1132 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1134 sbindir
=$ac_optarg ;;
1136 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1137 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1138 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1140 ac_prev
=sharedstatedir
;;
1141 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1142 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1143 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1145 sharedstatedir
=$ac_optarg ;;
1147 -site |
--site |
--sit)
1149 -site=* |
--site=* |
--sit=*)
1152 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1154 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1155 srcdir
=$ac_optarg ;;
1157 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1158 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1159 ac_prev
=sysconfdir
;;
1160 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1161 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1162 sysconfdir
=$ac_optarg ;;
1164 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1165 ac_prev
=target_alias
;;
1166 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1167 target_alias
=$ac_optarg ;;
1169 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1172 -version |
--version |
--versio |
--versi |
--vers |
-V)
1173 ac_init_version
=: ;;
1176 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 as_fn_error $?
"invalid package name: $ac_useropt"
1180 ac_useropt_orig
=$ac_useropt
1181 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep
=', ';;
1189 eval with_
$ac_useropt=\
$ac_optarg ;;
1191 -without-* |
--without-*)
1192 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 as_fn_error $?
"invalid package name: $ac_useropt"
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=no
;;
1208 # Obsolete; use --with-x.
1211 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1212 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1213 ac_prev
=x_includes
;;
1214 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1215 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1216 x_includes
=$ac_optarg ;;
1218 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1219 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1220 ac_prev
=x_libraries
;;
1221 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1222 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1223 x_libraries
=$ac_optarg ;;
1225 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1234 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1236 eval $ac_envvar=\
$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 if test -n "$ac_prev"; then
1251 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $?
"missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 # Check all directory arguments for consistency.
1264 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val
=\$
$ac_var
1270 # Remove trailing slashes.
1273 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\
$ac_val;;
1276 # Be sure to have absolute directory names.
1278 [\\/$
]* | ?
:[\\/]* ) continue;;
1279 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1281 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target
=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x
; then
1293 if test "x$build_alias" = x
; then
1294 cross_compiling
=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1301 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1303 test "$silent" = yes && exec 6>/dev
/null
1306 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di
=`ls -di .` &&
1308 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $?
"working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $?
"pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted
=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir
=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1346 ac_srcdir_defaulted
=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1350 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1364 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 for ac_var
in $ac_precious_vars; do
1367 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1369 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1380 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1443 --build=BUILD configure
for building on BUILD
[guessed
]
1444 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1445 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1456 --disable-option-checking ignore unrecognized
--enable/--with options
1457 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1458 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1459 --enable-version-specific-runtime-libs
1460 Specify that runtime libraries should be installed
1461 in a compiler-specific directory
[default
=no
]
1462 --enable-generated-files-in-srcdir
1463 put copies of generated files
in source dir intended
1464 for creating
source tarballs
for users without
1465 texinfo bison or flex.
[default
=no
]
1466 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1467 --disable-silent-rules verbose build output
(undo
: "make V=0")
1468 --enable-multilib build many library versions
(default
)
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --disable-werror disable building with
-Werror
1474 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1475 --enable-static[=PKGS
] build static libraries
[default
=yes]
1476 --enable-fast-install[=PKGS
]
1477 optimize
for fast installation
[default
=yes]
1478 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful
(and
1481 sometimes confusing
) to the casual installer
1482 --enable-linux-futex use the Linux futex system call
[default
=default
]
1483 --enable-tls Use thread-local storage
[default
=yes]
1484 --enable-symvers=STYLE enables symbol versioning of the shared library
1486 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1489 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1490 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1491 --with-toolexeclibdir=DIR
1492 install libraries built with a cross compiler within
1494 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1496 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1497 --with-gcc-major-version-only
1498 use only GCC major number
in filesystem paths
1500 Some influential environment variables
:
1501 CC C compiler
command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1504 nonstandard directory
<lib dir
>
1505 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1506 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1507 you have headers
in a nonstandard directory
<include dir
>
1509 FC Fortran compiler
command
1510 FCFLAGS Fortran compiler flags
1512 Use these variables to override the choices made by
`configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to the package provider.
1516 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1517 General help using GNU software: <http://www.gnu.org/gethelp/>.
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1580 GNU Offloading and Multi Processing Runtime Library configure 1.0
1581 generated by GNU Autoconf 2.69
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1604 *) ac_try_echo
=$ac_try;;
1606 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1610 if test -s conftest.err
; then
1611 grep -v '^ *+' conftest.err
>conftest.er1
1612 cat conftest.er1
>&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.
$ac_objext; then :
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.
$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status
$ac_retval
1630 } # ac_fn_c_try_compile
1632 # ac_fn_c_try_link LINENO
1633 # -----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1638 rm -f conftest.
$ac_objext conftest
$ac_exeext
1639 if { { ac_try
="$ac_link"
1641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_c_try_link
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1695 if ac_fn_c_try_compile "$LINENO"; then :
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 } # ac_fn_c_check_header_compile
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1718 *) ac_try_echo
=$ac_try;;
1720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 if test -s conftest.err
; then
1725 grep -v '^ *+' conftest.err
>conftest.er1
1726 cat conftest.er1
>&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i
&& {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.
$ac_ext >&5
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status
$ac_retval
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1752 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1753 if { { ac_try
="$ac_link"
1755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1766 *) ac_try_echo
=$ac_try;;
1768 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.
$ac_ext >&5
1780 ac_retval
=$ac_status
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status
$ac_retval
1788 # ac_fn_c_check_func LINENO FUNC VAR
1789 # ----------------------------------
1790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1791 ac_fn_c_check_func
()
1793 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \
${$3+:} false
; then :
1797 $as_echo_n "(cached) " >&6
1799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (); below.
1807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808 <limits.h> exists even on freestanding compilers. */
1811 # include <limits.h>
1813 # include <assert.h>
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1840 if ac_fn_c_try_link
"$LINENO"; then :
1845 rm -f core conftest.err conftest.
$ac_objext \
1846 conftest
$ac_exeext conftest.
$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 } # ac_fn_c_check_func
1855 # ac_fn_fc_try_compile LINENO
1856 # ---------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_fc_try_compile
()
1860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1861 rm -f conftest.
$ac_objext
1862 if { { ac_try
="$ac_compile"
1864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_fc_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_fc_try_compile
1893 # ac_fn_fc_try_link LINENO
1894 # ------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_fc_try_link ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1903 *) ac_try_echo
=$ac_try;;
1905 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1909 if test -s conftest.err
; then
1910 grep -v '^ *+' conftest.err
>conftest.er1
1911 cat conftest.er1
>&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_fc_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest
$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest
$ac_exeext
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.
$ac_ext >&5
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status
$ac_retval
1937 } # ac_fn_fc_try_link
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1944 ac_fn_c_check_header_mongrel
()
1946 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1947 if eval \
${$3+:} false
; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \
${$3+:} false
; then :
1951 $as_echo_n "(cached) " >&6
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1965 if ac_fn_c_try_compile
"$LINENO"; then :
1966 ac_header_compiler
=yes
1968 ac_header_compiler
=no
1970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 if ac_fn_c_try_cpp
"$LINENO"; then :
1982 ac_header_preproc
=yes
1984 ac_header_preproc
=no
1986 rm -f conftest.err conftest.i conftest.
$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1990 # So? What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \
${$3+:} false
; then :
2014 $as_echo_n "(cached) " >&6
2016 eval "$3=\$ac_header_compiler"
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_header_mongrel
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 ac_fn_c_compute_int
()
2033 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2034 if test "$cross_compiling" = yes; then
2035 # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2044 return test_array [0];
2050 if ac_fn_c_try_compile
"$LINENO"; then :
2053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile
"$LINENO"; then :
2068 ac_hi
=$ac_mid; break
2070 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2071 if test $ac_lo -le $ac_mid; then
2075 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) < 0)];
2088 return test_array [0];
2094 if ac_fn_c_try_compile
"$LINENO"; then :
2097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 return test_array [0];
2111 if ac_fn_c_try_compile
"$LINENO"; then :
2112 ac_lo
=$ac_mid; break
2114 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2115 if test $ac_mid -le $ac_hi; then
2119 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 # Binary search between lo and hi bounds.
2130 while test "x$ac_lo" != "x$ac_hi"; do
2131 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2149 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2169 FILE *f = fopen ("conftest.val", "w");
2174 long int i = longval ();
2177 fprintf (f, "%ld", i);
2181 unsigned long int i = ulongval ();
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2194 if ac_fn_c_try_run
"$LINENO"; then :
2195 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status
$ac_retval
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type
()
2215 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \
${$3+:} false
; then :
2219 $as_echo_n "(cached) " >&6
2222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2234 if ac_fn_c_try_compile
"$LINENO"; then :
2235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2247 if ac_fn_c_try_compile
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_type
2262 cat >config.log
<<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2266 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2267 generated by GNU Autoconf 2.69. Invocation command line was
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir
=.
2303 $as_echo "PATH: $as_dir"
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2327 ac_must_keep_next
=false
2333 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2334 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2335 |
-silent |
--silent |
--silen |
--sile |
--sil)
2338 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2343 as_fn_append ac_configure_args1
" '$ac_arg'"
2344 if test $ac_must_keep_next = true
; then
2345 ac_must_keep_next
=false
# Got value, back to normal.
2348 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2349 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2350 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2351 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356 -* ) ac_must_keep_next
=true
;;
2359 as_fn_append ac_configure_args
" '$ac_arg'"
2364 { ac_configure_args0
=; unset ac_configure_args0
;}
2365 { ac_configure_args1
=; unset ac_configure_args1
;}
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log. We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2377 $as_echo "## ---------------- ##
2378 ## Cache variables. ##
2379 ## ---------------- ##"
2381 # The following way of writing the cache mishandles newlines in values,
2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2384 eval ac_val=\$$ac_var
2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2389 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2392 _ | IFS | as_nl) ;; #(
2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2394 *) { eval $ac_var=; unset $ac_var;} ;;
2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2400 *${as_nl}ac_space=\ *)
2402 "s/'\''/'\''\\\\'\'''\''/g;
2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413 $as_echo "## ----------------- ##
2414 ## Output variables. ##
2415 ## ----------------- ##"
2417 for ac_var in $ac_subst_vars
2419 eval ac_val=\$$ac_var
2421 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 $as_echo "$ac_var='\''$ac_val'\''"
2427 if test -n "$ac_subst_files"; then
2428 $as_echo "## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##"
2432 for ac_var
in $ac_subst_files
2434 eval ac_val
=\$
$ac_var
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 $as_echo "$ac_var='\''$ac_val'\''"
2443 if test -s confdefs.h; then
2444 $as_echo "## ----------- ##
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2459 for ac_signal
in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest
* confdefs.h
2467 $as_echo "/* confdefs.h */" > confdefs.h
2469 # Predefined preprocessor variables.
2471 cat >>confdefs.h
<<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2475 cat >>confdefs.h
<<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2479 cat >>confdefs.h
<<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2483 cat >>confdefs.h
<<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2487 cat >>confdefs.h
<<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2491 cat >>confdefs.h
<<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2500 if test -n "$CONFIG_SITE"; then
2501 # We do not want a PATH search for config.site.
2502 case $CONFIG_SITE in #((
2503 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2504 */*) ac_site_file1
=$CONFIG_SITE;;
2505 *) ac_site_file1
=.
/$CONFIG_SITE;;
2507 elif test "x$prefix" != xNONE
; then
2508 ac_site_file1
=$prefix/share
/config.site
2509 ac_site_file2
=$prefix/etc
/config.site
2511 ac_site_file1
=$ac_default_prefix/share
/config.site
2512 ac_site_file2
=$ac_default_prefix/etc
/config.site
2514 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2516 test "x$ac_site_file" = xNONE
&& continue
2517 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2519 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2520 sed 's/^/| /' "$ac_site_file" >&5
2522 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 as_fn_error $?
"failed to load site script $ac_site_file
2525 See \`config.log' for more details" "$LINENO" 5; }
2529 if test -r "$cache_file"; then
2530 # Some versions of bash will fail to source /dev/null (special files
2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2532 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534 $as_echo "$as_me: loading cache $cache_file" >&6;}
2536 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2537 *) .
"./$cache_file";;
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 as_fn_append ac_header_list
" unistd.h"
2547 as_fn_append ac_func_list
" secure_getenv"
2548 as_fn_append ac_func_list
" __secure_getenv"
2549 as_fn_append ac_func_list
" getuid"
2550 as_fn_append ac_func_list
" geteuid"
2551 as_fn_append ac_func_list
" getgid"
2552 as_fn_append ac_func_list
" getegid"
2553 # Check that the precious variables saved in the cache have kept the same
2555 ac_cache_corrupted
=false
2556 for ac_var
in $ac_precious_vars; do
2557 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2558 eval ac_new_set
=\
$ac_env_${ac_var}_set
2559 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2560 eval ac_new_val
=\
$ac_env_${ac_var}_value
2561 case $ac_old_set,$ac_new_set in
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565 ac_cache_corrupted
=: ;;
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569 ac_cache_corrupted
=: ;;
2572 if test "x$ac_old_val" != "x$ac_new_val"; then
2573 # differences in whitespace do not lead to failure.
2574 ac_old_val_w
=`echo x $ac_old_val`
2575 ac_new_val_w
=`echo x $ac_new_val`
2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579 ac_cache_corrupted
=:
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583 eval $ac_var=\
$ac_old_val
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2586 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2588 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2591 # Pass precious variables to config.status.
2592 if test "$ac_new_set" = set; then
2594 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595 *) ac_arg
=$ac_var=$ac_new_val ;;
2597 case " $ac_configure_args " in
2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2599 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2603 if $ac_cache_corrupted; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2615 ac_cpp
='$CPP $CPPFLAGS'
2616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2624 ac_config_headers
="$ac_config_headers config.h"
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2632 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2633 # Check whether --enable-version-specific-runtime-libs was given.
2634 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2635 enableval
=$enable_version_specific_runtime_libs;
2636 case "$enableval" in
2638 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2642 enable_version_specific_runtime_libs
=no
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2647 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2649 # We would like our source tree to be readonly. However when releases or
2650 # pre-releases are generated, the flex/bison generated files as well as the
2651 # various formats of manuals need to be included along with the rest of the
2652 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2655 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2656 # Check whether --enable-generated-files-in-srcdir was given.
2657 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2658 enableval
=$enable_generated_files_in_srcdir;
2659 case "$enableval" in
2661 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2665 enable_generated_files_in_srcdir
=no
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2670 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2671 if test "$enable_generated_files_in_srcdir" = yes; then
2684 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2686 # You will slowly go insane if you do not grok the following fact: when
2687 # building this library, the top-level /target/ becomes the library's /host/.
2689 # configure then causes --target to default to --host, exactly like any
2690 # other package using autoconf. Therefore, 'target' and 'host' will
2691 # always be the same. This makes sense both for native and cross compilers
2692 # just think about it for a little while. :-)
2694 # Also, if this library is being configured as part of a cross compiler, the
2695 # top-level configure script will pass the "real" host as $with_cross_host.
2697 # Do not delete or change the following two lines. For why, see
2698 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2700 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2701 if test -f "$ac_dir/install-sh"; then
2703 ac_install_sh
="$ac_aux_dir/install-sh -c"
2705 elif test -f "$ac_dir/install.sh"; then
2707 ac_install_sh
="$ac_aux_dir/install.sh -c"
2709 elif test -f "$ac_dir/shtool"; then
2711 ac_install_sh
="$ac_aux_dir/shtool install -c"
2715 if test -z "$ac_aux_dir"; then
2716 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2730 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false
; then :
2735 $as_echo_n "(cached) " >&6
2737 ac_build_alias
=$build_alias
2738 test "x$ac_build_alias" = x
&&
2739 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x
&&
2741 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2750 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2753 ac_save_IFS
=$IFS; IFS
='-'
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2763 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false
; then :
2769 $as_echo_n "(cached) " >&6
2771 if test "x$host_alias" = x
; then
2772 ac_cv_host
=$ac_cv_build
2774 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2783 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2786 ac_save_IFS
=$IFS; IFS
='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800 $as_echo_n "checking target system type... " >&6; }
2801 if ${ac_cv_target+:} false
; then :
2802 $as_echo_n "(cached) " >&6
2804 if test "x$target_alias" = x
; then
2805 ac_cv_target
=$ac_cv_host
2807 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813 $as_echo "$ac_cv_target" >&6; }
2814 case $ac_cv_target in
2816 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2818 target
=$ac_cv_target
2819 ac_save_IFS
=$IFS; IFS
='-'
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2829 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2832 # The aliases save the names the user supplied, while $host etc.
2833 # will get canonicalized.
2834 test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2837 program_prefix
=${target_alias}-
2839 target_alias
=${target_alias-$host_alias}
2841 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2842 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843 # 1.9.0: minimum required version
2844 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845 # of other PACKAGE_* variables will, however, and there's nothing
2846 # we can do about that; they come from AC_INIT).
2847 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2848 # file in the top srcdir, etc, etc), so stop complaining.
2849 # no-dist: we don't want 'dist' and related rules.
2850 # -Wall: turns on all automake warnings...
2851 # -Wno-portability: ...except this one, since GNU make is required.
2852 # -Wno-override: ... and this one, since we do want this in testsuite.
2853 am__api_version
='1.15'
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if ${ac_cv_path_install+:} false
; then :
2873 $as_echo_n "(cached) " >&6
2875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir
=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882 .
/ | .
// |
/[cC
]/* | \
2883 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2884 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2890 for ac_prog
in ginstall scoinst
install; do
2891 for ac_exec_ext
in '' $ac_executable_extensions; do
2892 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2893 if test $ac_prog = install &&
2894 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2897 elif test $ac_prog = install &&
2898 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2902 rm -rf conftest.one conftest.two conftest.dir
2903 echo one
> conftest.one
2904 echo two
> conftest.two
2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2907 test -s conftest.one
&& test -s conftest.two
&&
2908 test -s conftest.dir
/conftest.one
&&
2909 test -s conftest.dir
/conftest.two
2911 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2924 rm -rf conftest.one conftest.two conftest.dir
2927 if test "${ac_cv_path_install+set}" = set; then
2928 INSTALL
=$ac_cv_path_install
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for INSTALL within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 INSTALL
=$ac_install_sh
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2946 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2950 # Reject unsafe characters in $srcdir or the absolute working directory
2951 # name. Accept space and tab only in the latter.
2955 *[\\\"\
#\$\&\'\`$am_lf]*)
2956 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2959 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2960 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2963 # Do 'set' in a subshell so we don't clobber the current shell's
2964 # arguments. Must try -L first in case configure is actually a
2965 # symlink; some systems play weird games with the mod time of symlinks
2966 # (eg FreeBSD returns the mod time of the symlink's containing
2970 for am_try
in 1 2; do
2971 echo "timestamp, slept: $am_has_slept" > conftest.
file
2972 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973 if test "$*" = "X"; then
2975 set X
`ls -t "$srcdir/configure" conftest.file`
2977 if test "$*" != "X $srcdir/configure conftest.file" \
2978 && test "$*" != "X conftest.file $srcdir/configure"; then
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
2984 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2985 alias in your environment" "$LINENO" 5
2987 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2994 test "$2" = conftest.
file
3000 as_fn_error $?
"newly created file is older than distributed files!
3001 Check your system clock" "$LINENO" 5
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004 $as_echo "yes" >&6; }
3005 # If we didn't sleep, we still need to ensure time stamps of config.status and
3006 # generated files are strictly newer.
3008 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3015 test "$program_prefix" != NONE
&&
3016 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3017 # Use a double $ so make ignores it.
3018 test "$program_suffix" != NONE
&&
3019 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3020 # Double any \ or $.
3021 # By default was `s,x,x', remove it if useless.
3022 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3023 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3025 # Expand $ac_aux_dir to an absolute path.
3026 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3028 if test x
"${MISSING+set}" != xset
; then
3031 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3033 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3036 # Use eval to expand $SHELL
3037 if eval "$MISSING --is-lightweight"; then
3038 am_missing_run
="$MISSING "
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3042 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3045 if test x
"${install_sh+set}" != xset
; then
3048 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3050 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3054 # Installed binaries are usually stripped using 'strip' when the user
3055 # run "make install-strip". However 'strip' might not be the right
3056 # tool to use in cross-compilation environments, therefore Automake
3057 # will honor the 'STRIP' environment variable to overrule this program.
3058 if test "$cross_compiling" != no
; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3061 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_STRIP+:} false
; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$STRIP"; then
3068 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir
=.
3075 for ac_exec_ext
in '' $ac_executable_extensions; do
3076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 STRIP
=$ac_cv_prog_STRIP
3088 if test -n "$STRIP"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3090 $as_echo "$STRIP" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3098 if test -z "$ac_cv_prog_STRIP"; then
3100 # Extract the first word of "strip", so it can be a program name with args.
3101 set dummy strip
; ac_word
=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$ac_ct_STRIP"; then
3108 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir
=.
3115 for ac_exec_ext
in '' $ac_executable_extensions; do
3116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_STRIP
="strip"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3128 if test -n "$ac_ct_STRIP"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3130 $as_echo "$ac_ct_STRIP" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3136 if test "x$ac_ct_STRIP" = x
; then
3139 case $cross_compiling:$ac_tool_warned in
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned
=yes ;;
3148 STRIP
="$ac_cv_prog_STRIP"
3152 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3155 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3156 if test -z "$MKDIR_P"; then
3157 if ${ac_cv_path_mkdir+:} false
; then :
3158 $as_echo_n "(cached) " >&6
3160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3161 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3164 test -z "$as_dir" && as_dir
=.
3165 for ac_prog
in mkdir gmkdir
; do
3166 for ac_exec_ext
in '' $ac_executable_extensions; do
3167 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3168 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3169 'mkdir (GNU coreutils) '* | \
3170 'mkdir (coreutils) '* | \
3171 'mkdir (fileutils) '4.1*)
3172 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3182 test -d .
/--version && rmdir .
/--version
3183 if test "${ac_cv_path_mkdir+set}" = set; then
3184 MKDIR_P
="$ac_cv_path_mkdir -p"
3186 # As a last resort, use the slow shell script. Don't cache a
3187 # value for MKDIR_P within a source directory, because that will
3188 # break other packages using the cache if that directory is
3189 # removed, or if the value is a relative name.
3190 MKDIR_P
="$ac_install_sh -d"
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3194 $as_echo "$MKDIR_P" >&6; }
3196 for ac_prog
in gawk mawk nawk
awk
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy
$ac_prog; ac_word
=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_AWK+:} false
; then :
3203 $as_echo_n "(cached) " >&6
3205 if test -n "$AWK"; then
3206 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir
=.
3213 for ac_exec_ext
in '' $ac_executable_extensions; do
3214 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_AWK
="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 if test -n "$AWK"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3228 $as_echo "$AWK" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 test -n "$AWK" && break
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3239 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3242 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3243 $as_echo_n "(cached) " >&6
3245 cat >conftest.
make <<\_ACEOF
3248 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3250 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3251 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3253 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3255 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3259 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 SET_MAKE
="MAKE=${MAKE-make}"
3269 rm -rf .tst
2>/dev
/null
3270 mkdir .tst
2>/dev
/null
3271 if test -d .tst
; then
3276 rmdir .tst
2>/dev
/null
3278 # Check whether --enable-silent-rules was given.
3279 if test "${enable_silent_rules+set}" = set; then :
3280 enableval
=$enable_silent_rules;
3283 case $enable_silent_rules in # (((
3284 yes) AM_DEFAULT_VERBOSITY
=0;;
3285 no
) AM_DEFAULT_VERBOSITY
=1;;
3286 *) AM_DEFAULT_VERBOSITY
=1;;
3288 am_make
=${MAKE-make}
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3290 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3291 if ${am_cv_make_support_nested_variables+:} false
; then :
3292 $as_echo_n "(cached) " >&6
3294 if $as_echo 'TRUE=$(BAR$(V))
3300 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3301 am_cv_make_support_nested_variables
=yes
3303 am_cv_make_support_nested_variables
=no
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3307 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3308 if test $am_cv_make_support_nested_variables = yes; then
3310 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3312 AM_V
=$AM_DEFAULT_VERBOSITY
3313 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3317 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3318 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3319 # is not polluted with repeated "-I."
3320 am__isrc
=' -I$(srcdir)'
3321 # test to see if srcdir already configured
3322 if test -f $srcdir/config.status
; then
3323 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3327 # test whether we have cygpath
3328 if test -z "$CYGPATH_W"; then
3329 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3330 CYGPATH_W
='cygpath -w'
3337 # Define the identity of the package.
3342 cat >>confdefs.h
<<_ACEOF
3343 #define PACKAGE "$PACKAGE"
3347 cat >>confdefs.h
<<_ACEOF
3348 #define VERSION "$VERSION"
3351 # Some tools Automake needs.
3353 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3356 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3359 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3362 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3365 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3367 # For better backward compatibility. To be removed once Automake 1.9.x
3368 # dies out for good. For more background, see:
3369 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3371 mkdir_p
='$(MKDIR_P)'
3373 # We need awk for the "check" target (and possibly the TAP driver). The
3374 # system "awk" is bad on some platforms.
3375 # Always define AMTAR for backward compatibility. Yes, it's still used
3376 # in the wild :-( We should find a proper way to deprecate it ...
3380 # We'll loop over all known methods to create a tar archive until one works.
3381 _am_tools
='gnutar pax cpio none'
3383 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3390 # POSIX will say in a future version that running "rm -f" with no argument
3391 # is OK; and we want to be able to make that assumption in our Makefile
3392 # recipes. So use an aggressive probe to check that the usage we want is
3393 # actually supported "in the wild" to an acceptable degree.
3394 # See automake bug#10828.
3395 # To make any issue more visible, cause the running configure to be aborted
3396 # by default if the 'rm' program in use doesn't match our expectations; the
3397 # user can still override this though.
3398 if rm -f && rm -fr && rm -rf; then : OK
; else
3402 Your 'rm' program seems unable to run without file operands specified
3403 on the command line, even when the '-f' option is present. This is contrary
3404 to the behaviour of most rm programs out there, and not conforming with
3405 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3407 Please tell bug-automake@gnu.org about your system, including the value
3408 of your $PATH and any error possibly output before this message. This
3409 can help us improve future automake versions.
3412 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3413 echo 'Configuration will proceed anyway, since you have set the' >&2
3414 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3418 Aborting the configuration process, to ensure you take notice of the issue.
3420 You can download and install GNU coreutils to get an 'rm' implementation
3421 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3423 If you want to complete the configuration process using your problematic
3424 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3425 to "yes", and re-run configure.
3428 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3432 # Default to --enable-multilib
3433 # Check whether --enable-multilib was given.
3434 if test "${enable_multilib+set}" = set; then :
3435 enableval
=$enable_multilib; case "$enableval" in
3436 yes) multilib
=yes ;;
3438 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3445 # We may get other options which we leave undocumented:
3446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3447 # See config-ml.in if you want the gory details.
3449 if test "$srcdir" = "."; then
3450 if test "$with_target_subdir" != "."; then
3451 multi_basedir
="$srcdir/$with_multisrctop../.."
3453 multi_basedir
="$srcdir/$with_multisrctop.."
3456 multi_basedir
="$srcdir/.."
3460 # Even if the default multilib is not a cross compilation,
3461 # it may be that some of the other multilibs are.
3462 if test $cross_compiling = no
&& test $multilib = yes \
3463 && test "x${with_multisubdir}" != x
; then
3464 cross_compiling
=maybe
3467 ac_config_commands
="$ac_config_commands default-1"
3471 # Check whether --with-toolexeclibdir was given.
3472 if test "${with_toolexeclibdir+set}" = set; then :
3473 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3477 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
3481 with_toolexeclibdir
=no
3486 # Calculate toolexeclibdir
3487 # Also toolexecdir, though it's only used in toolexeclibdir
3488 case ${enable_version_specific_runtime_libs} in
3490 # Need the gcc compiler version to know where to install libraries
3491 # and header files if --enable-version-specific-runtime-libs option
3493 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3494 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3497 if test -n "$with_cross_host" &&
3498 test x
"$with_cross_host" != x
"no"; then
3499 # Install a library built with a cross compiler in tooldir, not libdir.
3500 toolexecdir
='$(exec_prefix)/$(target_alias)'
3501 case ${with_toolexeclibdir} in
3503 toolexeclibdir
='$(toolexecdir)/lib'
3506 toolexeclibdir
=${with_toolexeclibdir}
3510 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3511 toolexeclibdir
='$(libdir)'
3513 multi_os_directory
=`$CC -print-multi-os-directory`
3514 case $multi_os_directory in
3515 .
) ;; # Avoid trailing /.
3516 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3523 # Check the compiler.
3524 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3525 # We must force CC to /not/ be precious variables; otherwise
3526 # the wrong, non-multilib-adjusted value will be used in multilibs.
3527 # As a side effect, we have to subst CFLAGS ourselves.
3532 ac_cpp
='$CPP $CPPFLAGS'
3533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3538 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_CC+:} false
; then :
3542 $as_echo_n "(cached) " >&6
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC
="$CC" # Let the user override the test.
3547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir
=.
3552 for ac_exec_ext
in '' $ac_executable_extensions; do
3553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3575 if test -z "$ac_cv_prog_CC"; then
3577 # Extract the first word of "gcc", so it can be a program name with args.
3578 set dummy gcc
; ac_word
=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3582 $as_echo_n "(cached) " >&6
3584 if test -n "$ac_ct_CC"; then
3585 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir
=.
3592 for ac_exec_ext
in '' $ac_executable_extensions; do
3593 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_CC
="gcc"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3605 if test -n "$ac_ct_CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3607 $as_echo "$ac_ct_CC" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3613 if test "x$ac_ct_CC" = x
; then
3616 case $cross_compiling:$ac_tool_warned in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620 ac_tool_warned
=yes ;;
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3631 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if ${ac_cv_prog_CC+:} false
; then :
3635 $as_echo_n "(cached) " >&6
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC
="$CC" # Let the user override the test.
3640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir
=.
3645 for ac_exec_ext
in '' $ac_executable_extensions; do
3646 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test -n "$CC"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 $as_echo "$CC" >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3669 if test -z "$CC"; then
3670 # Extract the first word of "cc", so it can be a program name with args.
3671 set dummy cc
; ac_word
=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_CC+:} false
; then :
3675 $as_echo_n "(cached) " >&6
3677 if test -n "$CC"; then
3678 ac_cv_prog_CC
="$CC" # Let the user override the test.
3681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir
=.
3686 for ac_exec_ext
in '' $ac_executable_extensions; do
3687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3689 ac_prog_rejected
=yes
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 if test $ac_prog_rejected = yes; then
3701 # We found a bogon in the path, so make sure we never use it.
3702 set dummy
$ac_cv_prog_CC
3704 if test $# != 0; then
3705 # We chose a different compiler from the bogus one.
3706 # However, it has the same basename, so the bogon will be chosen
3707 # first if we set CC to just the basename; use the full file name.
3709 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3725 if test -z "$CC"; then
3726 if test -n "$ac_tool_prefix"; then
3727 for ac_prog
in cl.exe
3729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3730 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if ${ac_cv_prog_CC+:} false
; then :
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC
="$CC" # Let the user override the test.
3739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir
=.
3744 for ac_exec_ext
in '' $ac_executable_extensions; do
3745 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 if test -n "$CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3759 $as_echo "$CC" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3766 test -n "$CC" && break
3769 if test -z "$CC"; then
3771 for ac_prog
in cl.exe
3773 # Extract the first word of "$ac_prog", so it can be a program name with args.
3774 set dummy
$ac_prog; ac_word
=$2
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776 $as_echo_n "checking for $ac_word... " >&6; }
3777 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3778 $as_echo_n "(cached) " >&6
3780 if test -n "$ac_ct_CC"; then
3781 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3787 test -z "$as_dir" && as_dir
=.
3788 for ac_exec_ext
in '' $ac_executable_extensions; do
3789 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_ac_ct_CC
="$ac_prog"
3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3801 if test -n "$ac_ct_CC"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803 $as_echo "$ac_ct_CC" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 $as_echo "no" >&6; }
3810 test -n "$ac_ct_CC" && break
3813 if test "x$ac_ct_CC" = x
; then
3816 case $cross_compiling:$ac_tool_warned in
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3820 ac_tool_warned
=yes ;;
3829 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error $?
"no acceptable C compiler found in \$PATH
3832 See \`config.log' for more details" "$LINENO" 5; }
3834 # Provide some information about the compiler.
3835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3838 for ac_option
in --version -v -V -qversion; do
3839 { { ac_try
="$ac_compiler $ac_option >&5"
3841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848 if test -s conftest.err; then
3850 ... rest of stderr output deleted ...
3851 10q' conftest.err >conftest.er1
3852 cat conftest.er1 >&5
3854 rm -f conftest.er1 conftest.err
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 ac_clean_files_save=$ac_clean_files
3871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3872 # Try to create an executable without -o first, disregard a.out.
3873 # It will help us diagnose broken compilers, and finding out an intuition
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3876 $as_echo_n "checking whether the C compiler works... " >&6; }
3877 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3879 # The possible output files:
3880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3883 for ac_file in $ac_files
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3892 if { { ac_try="$ac_link_default"
3894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3895 *) ac_try_echo
=$ac_try;;
3897 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link_default") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3906 # so that the user can short-circuit this test for compilers unknown to
3908 for ac_file
in $ac_files ''
3910 test -f "$ac_file" ||
continue
3912 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3915 # We found the default executable, but exeext='' is most
3919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3921 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 # We set ac_cv_exeext here because the later test for it is not
3924 # safe: cross compilers may not add the suffix if given an `-o'
3925 # argument, so we may need to know it at that point already.
3926 # Even if this section looks crufty: it has the advantage of
3933 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3938 if test -z "$ac_file"; then :
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940 $as_echo "no" >&6; }
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.
$ac_ext >&5
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error
77 "C compiler cannot create executables
3947 See \`config.log' for more details" "$LINENO" 5; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3953 $as_echo_n "checking for C compiler default output file name... " >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3955 $as_echo "$ac_file" >&6; }
3956 ac_exeext
=$ac_cv_exeext
3958 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3959 ac_clean_files
=$ac_clean_files_save
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try
="$ac_link"
3964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3974 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3977 for ac_file
in conftest.exe conftest conftest.
*; do
3978 test -f "$ac_file" ||
continue
3980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3981 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details" "$LINENO" 5; }
3992 rm -f conftest conftest
$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.
$ac_ext
3997 EXEEXT
=$ac_cv_exeext
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4005 FILE *f = fopen ("conftest.out", "w");
4006 return ferror (f) || fclose (f) != 0;
4012 ac_clean_files
="$ac_clean_files conftest.out"
4013 # Check that the compiler produces executables we can run. If not, either
4014 # the compiler is broken, or we cross compile.
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4016 $as_echo_n "checking whether we are cross compiling... " >&6; }
4017 if test "$cross_compiling" != yes; then
4018 { { ac_try
="$ac_link"
4020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025 (eval "$ac_link") 2>&5
4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }
4029 if { ac_try='./conftest$ac_cv_exeext'
4030 { { case "(($ac_try" in
4031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4032 *) ac_try_echo
=$ac_try;;
4034 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_try") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; }; then
4042 if test "$cross_compiling" = maybe
; then
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $?
"cannot run C compiled programs.
4048 If you meant to cross compile, use \`--host'.
4049 See \`config.log' for more details" "$LINENO" 5; }
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4054 $as_echo "$cross_compiling" >&6; }
4056 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4057 ac_clean_files
=$ac_clean_files_save
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4059 $as_echo_n "checking for suffix of object files... " >&6; }
4060 if ${ac_cv_objext+:} false
; then :
4061 $as_echo_n "(cached) " >&6
4063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4074 rm -f conftest.o conftest.obj
4075 if { { ac_try
="$ac_compile"
4077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081 $as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_compile") 2>&5
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
4086 for ac_file in conftest.o conftest.obj conftest.*; do
4087 test -f "$ac_file" || continue;
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4095 $as_echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4101 See \
`config.log' for more details" "$LINENO" 5; }
4103 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4106 $as_echo "$ac_cv_objext" >&6; }
4107 OBJEXT=$ac_cv_objext
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4110 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4111 if ${ac_cv_c_compiler_gnu+:} false; then :
4112 $as_echo_n "(cached) " >&6
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4138 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4139 if test $ac_compiler_gnu = yes; then
4144 ac_test_CFLAGS=${CFLAGS+set}
4145 ac_save_CFLAGS=$CFLAGS
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4147 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4148 if ${ac_cv_prog_cc_g+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_save_c_werror_flag=$ac_c_werror_flag
4152 ac_c_werror_flag=yes
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4166 if ac_fn_c_try_compile "$LINENO"; then :
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4181 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4197 if ac_fn_c_try_compile "$LINENO"; then :
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 ac_c_werror_flag=$ac_save_c_werror_flag
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4208 $as_echo "$ac_cv_prog_cc_g" >&6; }
4209 if test "$ac_test_CFLAGS" = set; then
4210 CFLAGS=$ac_save_CFLAGS
4211 elif test $ac_cv_prog_cc_g = yes; then
4212 if test "$GCC" = yes; then
4218 if test "$GCC" = yes; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4225 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4226 if ${ac_cv_prog_cc_c89+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 ac_cv_prog_cc_c89=no
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4237 struct buf { int x; };
4238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4239 static char *e (p, i)
4245 static char *f (char * (*g) (char **, int), char **p, ...)
4250 s = g (p, va_arg (v,int));
4255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4256 function prototypes and stuff, but not '\xHH' hex character constants.
4257 These don't provoke an error unfortunately, instead are silently treated
4258 as 'x'. The following induces an error, until -std is added to get
4259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4260 array size at least. It's necessary to write '\x00'==0 to get something
4261 that's true only with -std. */
4262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4265 inside strings and character constants. */
4267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4269 int test (int i, double x);
4270 struct s1 {int (*f) (int a);};
4271 struct s2 {int (*f) (double a);};
4272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4278 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4286 CC="$ac_save_CC $ac_arg"
4287 if ac_fn_c_try_compile "$LINENO"; then :
4288 ac_cv_prog_cc_c89=$ac_arg
4290 rm -f core conftest.err conftest.$ac_objext
4291 test "x$ac_cv_prog_cc_c89" != "xno" && break
4293 rm -f conftest.$ac_ext
4298 case "x$ac_cv_prog_cc_c89" in
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4301 $as_echo "none needed" >&6; } ;;
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304 $as_echo "unsupported" >&6; } ;;
4306 CC="$CC $ac_cv_prog_cc_c89"
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4308 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310 if test "x$ac_cv_prog_cc_c89" != xno; then :
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4326 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4327 if ${am_cv_prog_cc_c_o+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4341 # Make sure it works both with $CC and with simple cc.
4342 # Following AC_PROG_CC_C_O, we do the test twice because some
4343 # compilers refuse to overwrite an existing .o file with -o,
4344 # though they will create one.
4345 am_cv_prog_cc_c_o=yes
4347 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4348 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } \
4352 && test -f conftest2.$ac_objext; then
4355 am_cv_prog_cc_c_o=no
4359 rm -f core conftest*
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4363 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4364 if test "$am_cv_prog_cc_c_o" != yes; then
4365 # Losing compiler, so override with the script.
4366 # FIXME: It is wrong to rewrite CC.
4367 # But if we don't then we get into trouble of one sort or another.
4368 # A longer-term fix would be to have automake use am__CC in this case,
4369 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4370 CC="$am_aux_dir/compile $CC"
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 DEPDIR="${am__leading_dot}deps"
4380 ac_config_commands="$ac_config_commands depfiles"
4383 am_make=${MAKE-make}
4384 cat > confinc << 'END'
4386 @echo this is the am__doit target
4389 # If we don't find an include directive, just comment out the code.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4391 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4395 # First try GNU make style include.
4396 echo "include confinc" > confmf
4397 # Ignore all kinds of additional output from 'make'.
4398 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4399 *the\ am__doit\ target*)
4405 # Now try BSD make style include.
4406 if test "$am__include" = "#"; then
4407 echo '.include "confinc"' > confmf
4408 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4409 *the\ am__doit\ target*)
4410 am__include=.include
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4419 $as_echo "$_am_result" >&6; }
4420 rm -f confinc confmf
4422 # Check whether --enable-dependency-tracking was given.
4423 if test "${enable_dependency_tracking+set}" = set; then :
4424 enableval=$enable_dependency_tracking;
4427 if test "x$enable_dependency_tracking" != xno; then
4428 am_depcomp="$ac_aux_dir/depcomp"
4432 if test "x$enable_dependency_tracking" != xno; then
4442 depcc="$CC" am_compiler_list=
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445 $as_echo_n "checking dependency style of $depcc... " >&6; }
4446 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4450 # We make a subdir and do the tests there. Otherwise we can end up
4451 # making bogus files that we don't know about and never remove. For
4452 # instance it was reported that on HP-UX the gcc test will end up
4453 # making a dummy file named 'D' -- because '-MD' means "put the output
4457 # Copy depcomp to subdir because otherwise we won't find it if we're
4458 # using a relative directory.
4459 cp "$am_depcomp" conftest.dir
4461 # We will build objects and dependencies in a subdirectory because
4462 # it helps to detect inapplicable dependency modes. For instance
4463 # both Tru64's cc and ICC support -MD to output dependencies as a
4464 # side effect of compilation, but ICC will put the dependencies in
4465 # the current directory while Tru64 will put them in the object
4469 am_cv_CC_dependencies_compiler_type=none
4470 if test "$am_compiler_list" = ""; then
4471 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4474 case " $depcc " in #(
4475 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4478 for depmode in $am_compiler_list; do
4479 # Setup a source with many dependencies, because some compilers
4480 # like to wrap large dependency lists on column 80 (with \), and
4481 # we should not choose a depcomp mode which is confused by this.
4483 # We need to recreate these files for each test, as the compiler may
4484 # overwrite some of them when testing with obscure command lines.
4485 # This happens at least with the AIX C compiler.
4487 for i in 1 2 3 4 5 6; do
4488 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4489 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4490 # Solaris 10 /bin/sh.
4491 echo '/* dummy */' > sub/conftst$i.h
4493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4496 # mode. It turns out that the SunPro C++ compiler does not properly
4497 # handle '-M -o', and we need to detect this. Also, some Intel
4498 # versions had trouble with output in subdirs.
4499 am__obj=sub/conftest.${OBJEXT-o}
4500 am__minus_obj="-o $am__obj"
4503 # This depmode causes a compiler race in universal mode.
4504 test "$am__universal" = false || continue
4507 # After this tag, mechanisms are not by side-effect, so they'll
4508 # only be used when explicitly requested.
4509 if test "x$enable_dependency_tracking" = xyes; then
4515 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4516 # This compiler won't grok '-c -o', but also, the minuso test has
4517 # not run yet. These depmodes are late enough in the game, and
4518 # so weak that their functioning should not be impacted.
4519 am__obj=conftest.${OBJEXT-o}
4524 if depmode=$depmode \
4525 source=sub/conftest.c object=$am__obj \
4526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4527 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4528 >/dev/null 2>conftest.err &&
4529 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4530 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4533 # icc doesn't choke on unknown options, it will just issue warnings
4534 # or remarks (even with -Werror). So we grep stderr for any message
4535 # that says an option was ignored or not supported.
4536 # When given -MP, icc 7.0 and 7.1 complain thusly:
4537 # icc: Command line warning: ignoring option '-M'; no argument required
4538 # The diagnosis changed in icc 8.0:
4539 # icc: Command line remark: option '-MP' not supported
4540 if (grep 'ignoring option' conftest.err ||
4541 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4542 am_cv_CC_dependencies_compiler_type=$depmode
4551 am_cv_CC_dependencies_compiler_type=none
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4556 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4557 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4560 test "x$enable_dependency_tracking" != xno \
4561 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563 am__fastdepCC_FALSE='#'
4565 am__fastdepCC_TRUE='#'
4566 am__fastdepCC_FALSE=
4574 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4575 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4576 # in both places for now and restore CFLAGS at the end of config.
4577 save_CFLAGS="$CFLAGS"
4579 # Check whether --enable-werror was given.
4580 if test "${enable_werror+set}" = set; then :
4581 enableval=$enable_werror;
4584 # Add -Wall -Werror if we are using GCC.
4585 if test "x$GCC" = "xyes"; then :
4586 XCFLAGS="$XCFLAGS -Wall"
4588 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4589 XCFLAGS="$XCFLAGS -Werror"
4592 # Find other programs we need.
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}ar; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_AR+:} false; then :
4599 $as_echo_n "(cached) " >&6
4601 if test -n "$AR"; then
4602 ac_cv_prog_AR="$AR" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_AR="${ac_tool_prefix}ar"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 if test -n "$AR"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4624 $as_echo "$AR" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4632 if test -z "$ac_cv_prog_AR"; then
4634 # Extract the first word of "ar", so it can be a program name with args.
4635 set dummy ar; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$ac_ct_AR"; then
4642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_AR="ar"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4662 if test -n "$ac_ct_AR"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4664 $as_echo "$ac_ct_AR" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4670 if test "x$ac_ct_AR" = x; then
4673 case $cross_compiling:$ac_tool_warned in
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_RANLIB+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$RANLIB"; then
4694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 RANLIB=$ac_cv_prog_RANLIB
4714 if test -n "$RANLIB"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4716 $as_echo "$RANLIB" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4724 if test -z "$ac_cv_prog_RANLIB"; then
4725 ac_ct_RANLIB=$RANLIB
4726 # Extract the first word of "ranlib", so it can be a program name with args.
4727 set dummy ranlib; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 if test -n "$ac_ct_RANLIB"; then
4734 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_ac_ct_RANLIB="ranlib"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4754 if test -n "$ac_ct_RANLIB"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4756 $as_echo "$ac_ct_RANLIB" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4762 if test "x$ac_ct_RANLIB" = x; then
4763 RANLIB="ranlib-not-found-in-path-error"
4765 case $cross_compiling:$ac_tool_warned in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4771 RANLIB=$ac_ct_RANLIB
4774 RANLIB="$ac_cv_prog_RANLIB"
4777 # Extract the first word of "perl", so it can be a program name with args.
4778 set dummy perl; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_path_PERL+:} false; then :
4782 $as_echo_n "(cached) " >&6
4786 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4808 PERL=$ac_cv_path_PERL
4809 if test -n "$PERL"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4811 $as_echo "$PERL" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4819 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4821 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4822 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4823 $as_echo_n "(cached) " >&6
4825 cat >conftest.make <<\_ACEOF
4828 @echo '@@@%%%=$(MAKE)=@@@%%%'
4830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4831 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4833 eval ac_cv_prog_make_${ac_make}_set=yes;;
4835 eval ac_cv_prog_make_${ac_make}_set=no;;
4839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841 $as_echo "yes" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 SET_MAKE="MAKE=${MAKE-make}"
4851 # See if makeinfo has been installed and is modern enough
4852 # that we can use it.
4854 # Extract the first word of "makeinfo", so it can be a program name with args.
4855 set dummy makeinfo; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_MAKEINFO+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$MAKEINFO"; then
4862 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_MAKEINFO="makeinfo"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 MAKEINFO=$ac_cv_prog_MAKEINFO
4882 if test -n "$MAKEINFO"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4884 $as_echo "$MAKEINFO" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 if test -n "$MAKEINFO"; then
4892 # Found it, now check the version.
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4894 $as_echo_n "checking for modern makeinfo... " >&6; }
4895 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4896 $as_echo_n "(cached) " >&6
4898 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4899 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4901 case $ac_prog_version in
4902 '') gcc_cv_prog_makeinfo_modern=no;;
4903 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4904 *) gcc_cv_prog_makeinfo_modern=no;;
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4909 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4911 gcc_cv_prog_makeinfo_modern=no
4913 if test $gcc_cv_prog_makeinfo_modern = no; then
4914 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4917 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4919 BUILD_INFO_FALSE='#'
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4931 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4936 macro_version='2.2.7a'
4937 macro_revision='1.3134'
4951 ltmain="$ac_aux_dir/ltmain.sh"
4953 # Backslashify metacharacters that are still active within
4954 # double-quoted strings.
4955 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4957 # Same as above, but do not quote variable references.
4958 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4960 # Sed substitution to delay expansion of an escaped shell variable in a
4961 # double_quote_subst'ed string.
4962 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4964 # Sed substitution to delay expansion of an escaped single quote.
4965 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4967 # Sed substitution to avoid accidental globbing in evaled expressions
4968 no_glob_subst='s/\*/\\\*/g'
4970 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4972 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4975 $as_echo_n "checking how to print
strings...
" >&6; }
4976 # Test print first, because it will be a builtin if present.
4977 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4978 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4980 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4983 # Use this function as a fallback that always works.
4984 func_fallback_echo ()
4986 eval 'cat <<_LTECHO_EOF
4990 ECHO='func_fallback_echo'
4993 # func_echo_all arg...
4994 # Invoke $ECHO with all args, space-separated.
5001 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5002 $as_echo "printf" >&6; } ;;
5003 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5004 $as_echo "print
-r" >&6; } ;;
5005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5006 $as_echo "cat" >&6; } ;;
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5023 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5024 if ${ac_cv_path_SED+:} false; then :
5025 $as_echo_n "(cached
) " >&6
5027 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5028 for ac_i in 1 2 3 4 5 6 7; do
5029 ac_script="$ac_script$as_nl$ac_script"
5031 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5032 { ac_script=; unset ac_script;}
5033 if test -z "$SED"; then
5034 ac_path_SED_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir=.
5041 for ac_prog in sed gsed; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5044 as_fn_executable_p "$ac_path_SED" || continue
5045 # Check for GNU ac_path_SED and select it if it is found.
5046 # Check for GNU $ac_path_SED
5047 case `"$ac_path_SED" --version 2>&1` in
5049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5052 $as_echo_n 0123456789 >"conftest.
in"
5055 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5056 mv "conftest.tmp
" "conftest.
in"
5057 cp "conftest.
in" "conftest.
nl"
5058 $as_echo '' >> "conftest.
nl"
5059 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5060 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_SED_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_SED="$ac_path_SED"
5065 ac_path_SED_max=$ac_count
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5073 $ac_path_SED_found && break 3
5078 if test -z "$ac_cv_path_SED"; then
5079 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5087 $as_echo "$ac_cv_path_SED" >&6; }
5088 SED="$ac_cv_path_SED"
5091 test -z "$SED" && SED=sed
5092 Xsed="$SED -e 1s
/^X
//"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5105 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5106 if ${ac_cv_path_GREP+:} false; then :
5107 $as_echo_n "(cached
) " >&6
5109 if test -z "$GREP"; then
5110 ac_path_GREP_found=false
5111 # Loop through the user's path and test for each of PROGNAME-LIST
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5116 test -z "$as_dir" && as_dir=.
5117 for ac_prog in grep ggrep; do
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5120 as_fn_executable_p "$ac_path_GREP" || continue
5121 # Check for GNU ac_path_GREP and select it if it is found.
5122 # Check for GNU $ac_path_GREP
5123 case `"$ac_path_GREP" --version 2>&1` in
5125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5128 $as_echo_n 0123456789 >"conftest.
in"
5131 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5132 mv "conftest.tmp
" "conftest.
in"
5133 cp "conftest.
in" "conftest.
nl"
5134 $as_echo 'GREP' >> "conftest.
nl"
5135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5136 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5137 as_fn_arith $ac_count + 1 && ac_count=$as_val
5138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5139 # Best one so far, save it but keep looking for a better one
5140 ac_cv_path_GREP="$ac_path_GREP"
5141 ac_path_GREP_max=$ac_count
5143 # 10*(2^10) chars as input seems more than enough
5144 test $ac_count -gt 10 && break
5146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 $ac_path_GREP_found && break 3
5154 if test -z "$ac_cv_path_GREP"; then
5155 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5158 ac_cv_path_GREP=$GREP
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5163 $as_echo "$ac_cv_path_GREP" >&6; }
5164 GREP="$ac_cv_path_GREP"
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5168 $as_echo_n "checking
for egrep...
" >&6; }
5169 if ${ac_cv_path_EGREP+:} false; then :
5170 $as_echo_n "(cached
) " >&6
5172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5173 then ac_cv_path_EGREP="$GREP -E"
5175 if test -z "$EGREP"; then
5176 ac_path_EGREP_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in egrep; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5186 as_fn_executable_p "$ac_path_EGREP" || continue
5187 # Check for GNU ac_path_EGREP and select it if it is found.
5188 # Check for GNU $ac_path_EGREP
5189 case `"$ac_path_EGREP" --version 2>&1` in
5191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5194 $as_echo_n 0123456789 >"conftest.
in"
5197 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5198 mv "conftest.tmp
" "conftest.
in"
5199 cp "conftest.
in" "conftest.
nl"
5200 $as_echo 'EGREP' >> "conftest.
nl"
5201 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5202 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_EGREP="$ac_path_EGREP"
5207 ac_path_EGREP_max=$ac_count
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 $ac_path_EGREP_found && break 3
5220 if test -z "$ac_cv_path_EGREP"; then
5221 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5224 ac_cv_path_EGREP=$EGREP
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5230 $as_echo "$ac_cv_path_EGREP" >&6; }
5231 EGREP="$ac_cv_path_EGREP"
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5235 $as_echo_n "checking
for fgrep...
" >&6; }
5236 if ${ac_cv_path_FGREP+:} false; then :
5237 $as_echo_n "(cached
) " >&6
5239 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5240 then ac_cv_path_FGREP="$GREP -F"
5242 if test -z "$FGREP"; then
5243 ac_path_FGREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in fgrep; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5253 as_fn_executable_p "$ac_path_FGREP" || continue
5254 # Check for GNU ac_path_FGREP and select it if it is found.
5255 # Check for GNU $ac_path_FGREP
5256 case `"$ac_path_FGREP" --version 2>&1` in
5258 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5261 $as_echo_n 0123456789 >"conftest.
in"
5264 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5265 mv "conftest.tmp
" "conftest.
in"
5266 cp "conftest.
in" "conftest.
nl"
5267 $as_echo 'FGREP' >> "conftest.
nl"
5268 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5269 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_FGREP="$ac_path_FGREP"
5274 ac_path_FGREP_max=$ac_count
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 $ac_path_FGREP_found && break 3
5287 if test -z "$ac_cv_path_FGREP"; then
5288 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5291 ac_cv_path_FGREP=$FGREP
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5297 $as_echo "$ac_cv_path_FGREP" >&6; }
5298 FGREP="$ac_cv_path_FGREP"
5301 test -z "$GREP" && GREP=grep
5321 # Check whether --with-gnu-ld was given.
5322 if test "${with_gnu_ld+set}" = set; then :
5323 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5329 if test "$GCC" = yes; then
5330 # Check if gcc -print-prog-name=ld gives a path.
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5332 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5335 # gcc leaves a trailing carriage return which upsets mingw
5336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5341 # Accept absolute paths.
5343 re_direlt='/[^/][^/]*/\.\./'
5344 # Canonicalize the pathname of ld
5345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5347 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5349 test -z "$LD" && LD="$ac_prog"
5352 # If it fails, then pretend we aren't using GCC.
5356 # If it is relative, then search for the first ld in PATH.
5360 elif test "$with_gnu_ld" = yes; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5362 $as_echo_n "checking
for GNU ld...
" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5365 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5367 if ${lt_cv_path_LD+:} false; then :
5368 $as_echo_n "(cached
) " >&6
5370 if test -z "$LD"; then
5371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5372 for ac_dir in $PATH; do
5374 test -z "$ac_dir" && ac_dir=.
5375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5376 lt_cv_path_LD="$ac_dir/$ac_prog"
5377 # Check to see if the program is GNU ld. I'd rather use --version,
5378 # but apparently some variants of GNU ld only accept -v.
5379 # Break only if it was the GNU/non-GNU ld that we prefer.
5380 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5381 *GNU* | *'with BFD'*)
5382 test "$with_gnu_ld" != no && break
5385 test "$with_gnu_ld" != yes && break
5392 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5397 if test -n "$LD"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5399 $as_echo "$LD" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5402 $as_echo "no
" >&6; }
5404 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5406 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5407 if ${lt_cv_prog_gnu_ld+:} false; then :
5408 $as_echo_n "(cached
) " >&6
5410 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5411 case `$LD -v 2>&1 </dev/null` in
5412 *GNU* | *'with BFD'*)
5413 lt_cv_prog_gnu_ld=yes
5416 lt_cv_prog_gnu_ld=no
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5421 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5422 with_gnu_ld=$lt_cv_prog_gnu_ld
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5433 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5434 if ${lt_cv_path_NM+:} false; then :
5435 $as_echo_n "(cached
) " >&6
5437 if test -n "$NM"; then
5438 # Let the user override the test.
5441 lt_nm_to_check="${ac_tool_prefix}nm
"
5442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5443 lt_nm_to_check="$lt_nm_to_check nm
"
5445 for lt_tmp_nm in $lt_nm_to_check; do
5446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5449 test -z "$ac_dir" && ac_dir=.
5450 tmp_nm="$ac_dir/$lt_tmp_nm"
5451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5452 # Check to see if the nm accepts a BSD-compat flag.
5453 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5454 # nm: unknown option "B
" ignored
5455 # Tru64's nm complains that /dev/null is an invalid object file
5456 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5457 */dev/null* | *'Invalid file or object type'*)
5458 lt_cv_path_NM="$tmp_nm -B"
5462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5464 lt_cv_path_NM="$tmp_nm -p"
5468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5469 continue # so that we can try to find one that supports BSD flags
5478 : ${lt_cv_path_NM=no}
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5482 $as_echo "$lt_cv_path_NM" >&6; }
5483 if test "$lt_cv_path_NM" != "no
"; then
5486 # Didn't find any BSD compatible name lister, look for dumpbin.
5487 if test -n "$DUMPBIN"; then :
5488 # Let the user override the test.
5490 if test -n "$ac_tool_prefix"; then
5491 for ac_prog in dumpbin "link
-dump"
5493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5496 $as_echo_n "checking
for $ac_word...
" >&6; }
5497 if ${ac_cv_prog_DUMPBIN+:} false; then :
5498 $as_echo_n "(cached
) " >&6
5500 if test -n "$DUMPBIN"; then
5501 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5520 DUMPBIN=$ac_cv_prog_DUMPBIN
5521 if test -n "$DUMPBIN"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5523 $as_echo "$DUMPBIN" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5526 $as_echo "no
" >&6; }
5530 test -n "$DUMPBIN" && break
5533 if test -z "$DUMPBIN"; then
5534 ac_ct_DUMPBIN=$DUMPBIN
5535 for ac_prog in dumpbin "link
-dump"
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5540 $as_echo_n "checking
for $ac_word...
" >&6; }
5541 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5542 $as_echo_n "(cached
) " >&6
5544 if test -n "$ac_ct_DUMPBIN"; then
5545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5565 if test -n "$ac_ct_DUMPBIN"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5567 $as_echo "$ac_ct_DUMPBIN" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5570 $as_echo "no
" >&6; }
5574 test -n "$ac_ct_DUMPBIN" && break
5577 if test "x
$ac_ct_DUMPBIN" = x; then
5580 case $cross_compiling:$ac_tool_warned in
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5583 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5584 ac_tool_warned=yes ;;
5586 DUMPBIN=$ac_ct_DUMPBIN
5590 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5592 DUMPBIN="$DUMPBIN -symbols"
5600 if test "$DUMPBIN" != ":"; then
5604 test -z "$NM" && NM=nm
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5612 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5613 if ${lt_cv_nm_interface+:} false; then :
5614 $as_echo_n "(cached
) " >&6
5616 lt_cv_nm_interface="BSD nm
"
5617 echo "int some_variable
= 0;" > conftest.$ac_ext
5618 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5619 (eval "$ac_compile" 2>conftest.err)
5620 cat conftest.err >&5
5621 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5622 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5623 cat conftest.err >&5
5624 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5625 cat conftest.out >&5
5626 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5627 lt_cv_nm_interface="MS dumpbin
"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5632 $as_echo "$lt_cv_nm_interface" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5635 $as_echo_n "checking whether
ln -s works...
" >&6; }
5637 if test "$LN_S" = "ln -s"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5639 $as_echo "yes" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5642 $as_echo "no
, using
$LN_S" >&6; }
5645 # find the maximum length of command line arguments
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5647 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5648 if ${lt_cv_sys_max_cmd_len+:} false; then :
5649 $as_echo_n "(cached
) " >&6
5656 # On DJGPP, this test can blow up pretty badly due to problems in libc
5657 # (any single argument exceeding 2000 bytes causes a buffer overrun
5658 # during glob expansion). Even if it were fixed, the result of this
5659 # check would be larger than it should be.
5660 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 # Under GNU Hurd, this test is not required because there is
5665 # no limit to the length of command line arguments.
5666 # Libtool will interpret -1 as no limit whatsoever
5667 lt_cv_sys_max_cmd_len=-1;
5670 cygwin* | mingw* | cegcc*)
5671 # On Win9x/ME, this test blows up -- it succeeds, but takes
5672 # about 5 minutes as the teststring grows exponentially.
5673 # Worse, since 9x/ME are not pre-emptively multitasking,
5674 # you end up with a "frozen
" computer, even though with patience
5675 # the test eventually succeeds (with a max line length of 256k).
5676 # Instead, let's just punt: use the minimum linelength reported by
5677 # all of the supported platforms: 8192 (on NT/2K/XP).
5678 lt_cv_sys_max_cmd_len=8192;
5682 # On MiNT this can take a long time and run out of memory.
5683 lt_cv_sys_max_cmd_len=8192;
5687 # On AmigaOS with pdksh, this test takes hours, literally.
5688 # So we just punt and use a minimum line length of 8192.
5689 lt_cv_sys_max_cmd_len=8192;
5692 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5693 # This has been around since 386BSD, at least. Likely further.
5694 if test -x /sbin/sysctl; then
5695 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5696 elif test -x /usr/sbin/sysctl; then
5697 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5699 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5701 # And add a safety zone
5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5708 lt_cv_sys_max_cmd_len=196608
5712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5714 # nice to cause kernel panics so lets avoid the loop below.
5715 # First set a reasonable default.
5716 lt_cv_sys_max_cmd_len=16384
5718 if test -x /sbin/sysconfig; then
5719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5725 lt_cv_sys_max_cmd_len=102400
5727 sysv5* | sco5v6* | sysv4.2uw2*)
5728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5729 if test -n "$kargmax"; then
5730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5732 lt_cv_sys_max_cmd_len=32768
5736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5737 if test -n "$lt_cv_sys_max_cmd_len"; then
5738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5741 # Make teststring a little bigger before we do anything with it.
5742 # a 1K string should be a reasonable start.
5743 for i in 1 2 3 4 5 6 7 8 ; do
5744 teststring=$teststring$teststring
5746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5747 # If test is not a shell built-in, we'll probably end up computing a
5748 # maximum length that is only half of the actual maximum length, but
5750 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5751 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5752 test $i != 17 # 1/2 MB should be enough
5755 teststring=$teststring$teststring
5757 # Only check the string length outside the loop.
5758 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5760 # Add a significant safety factor because C++ compilers can tack on
5761 # massive amounts of additional arguments before passing them to the
5762 # linker. It appears as though 1/2 is a usable value.
5763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5770 if test -n $lt_cv_sys_max_cmd_len ; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5772 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5775 $as_echo "none
" >&6; }
5777 max_cmd_len=$lt_cv_sys_max_cmd_len
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5789 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5790 # Try some XSI features
5793 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5795 && eval 'test $(( 1 + 1 )) -eq 2 \
5796 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5799 $as_echo "$xsi_shell" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5803 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5805 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5807 && lt_shell_append
=yes
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5809 $as_echo "$lt_shell_append" >&6; }
5812 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5822 # test EBCDIC or ASCII
5823 case `echo X|tr X '\101'` in
5824 A
) # ASCII based system
5825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5826 lt_SP2NL
='tr \040 \012'
5827 lt_NL2SP
='tr \015\012 \040\040'
5829 *) # EBCDIC based system
5830 lt_SP2NL
='tr \100 \n'
5831 lt_NL2SP
='tr \r\n \100\100'
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5844 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5845 if ${lt_cv_ld_reload_flag+:} false
; then :
5846 $as_echo_n "(cached) " >&6
5848 lt_cv_ld_reload_flag
='-r'
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5851 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5852 reload_flag
=$lt_cv_ld_reload_flag
5853 case $reload_flag in
5855 *) reload_flag
=" $reload_flag" ;;
5857 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5860 if test "$GCC" = yes; then
5861 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5863 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5878 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5882 $as_echo_n "(cached) " >&6
5884 if test -n "$OBJDUMP"; then
5885 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir
=.
5892 for ac_exec_ext
in '' $ac_executable_extensions; do
5893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 OBJDUMP
=$ac_cv_prog_OBJDUMP
5905 if test -n "$OBJDUMP"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5907 $as_echo "$OBJDUMP" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5915 if test -z "$ac_cv_prog_OBJDUMP"; then
5916 ac_ct_OBJDUMP
=$OBJDUMP
5917 # Extract the first word of "objdump", so it can be a program name with args.
5918 set dummy objdump
; ac_word
=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5922 $as_echo_n "(cached) " >&6
5924 if test -n "$ac_ct_OBJDUMP"; then
5925 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir
=.
5932 for ac_exec_ext
in '' $ac_executable_extensions; do
5933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5945 if test -n "$ac_ct_OBJDUMP"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5947 $as_echo "$ac_ct_OBJDUMP" >&6; }
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5953 if test "x$ac_ct_OBJDUMP" = x
; then
5956 case $cross_compiling:$ac_tool_warned in
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960 ac_tool_warned
=yes ;;
5962 OBJDUMP
=$ac_ct_OBJDUMP
5965 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5968 test -z "$OBJDUMP" && OBJDUMP
=objdump
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5979 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5980 if ${lt_cv_deplibs_check_method+:} false
; then :
5981 $as_echo_n "(cached) " >&6
5983 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5984 lt_cv_file_magic_test_file
=
5985 lt_cv_deplibs_check_method
='unknown'
5986 # Need to set the preceding variable on all platforms that support
5987 # interlibrary dependencies.
5988 # 'none' -- dependencies not supported.
5989 # `unknown' -- same as none, but documents that we really don't know.
5990 # 'pass_all' -- all dependencies passed with no checks.
5991 # 'test_compile' -- check by making test program.
5992 # 'file_magic [[regex]]' -- check by looking for files in library path
5993 # which responds to the $file_magic_cmd with a given extended regex.
5994 # If you have `file' or equivalent on your system and you're not sure
5995 # whether `pass_all' will *always* work, you probably want this one.
5999 lt_cv_deplibs_check_method
=pass_all
6003 lt_cv_deplibs_check_method
=pass_all
6007 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6008 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6009 lt_cv_file_magic_test_file
=/shlib
/libc.so
6013 # func_win32_libid is a shell function defined in ltmain.sh
6014 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6015 lt_cv_file_magic_cmd
='func_win32_libid'
6019 # Base MSYS/MinGW do not provide the 'file' command needed by
6020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6021 # unless we find 'file', for example because we are cross-compiling.
6022 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6023 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6024 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6025 lt_cv_file_magic_cmd
='func_win32_libid'
6027 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6028 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6033 # use the weaker test based on 'objdump'. See mingw*.
6034 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6035 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6038 darwin
* | rhapsody
*)
6039 lt_cv_deplibs_check_method
=pass_all
6042 freebsd
* | dragonfly
*)
6043 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6046 # Not sure whether the presence of OpenBSD here was a mistake.
6047 # Let's accept both of them until this is cleared up.
6048 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6049 lt_cv_file_magic_cmd
=/usr
/bin
/file
6050 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6054 lt_cv_deplibs_check_method
=pass_all
6059 lt_cv_deplibs_check_method
=pass_all
6063 lt_cv_deplibs_check_method
=pass_all
6066 hpux10.20
* | hpux11
*)
6067 lt_cv_file_magic_cmd
=/usr
/bin
/file
6070 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6071 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6074 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]'
6075 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6078 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6079 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6085 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6086 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6089 irix5
* | irix6
* | nonstopux
*)
6091 *-32|
*"-32 ") libmagic
=32-bit;;
6092 *-n32|
*"-n32 ") libmagic
=N32
;;
6093 *-64|
*"-64 ") libmagic
=64-bit;;
6094 *) libmagic
=never-match
;;
6096 lt_cv_deplibs_check_method
=pass_all
6099 # This must be Linux ELF.
6100 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6101 lt_cv_deplibs_check_method
=pass_all
6105 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6106 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6108 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6113 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6114 lt_cv_file_magic_cmd
=/usr
/bin
/file
6115 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6119 lt_cv_deplibs_check_method
=pass_all
6123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6124 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6126 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 osf3
* | osf4
* | osf5
*)
6131 lt_cv_deplibs_check_method
=pass_all
6135 lt_cv_deplibs_check_method
=pass_all
6139 lt_cv_deplibs_check_method
=pass_all
6142 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6143 lt_cv_deplibs_check_method
=pass_all
6147 case $host_vendor in
6149 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]'
6150 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6153 lt_cv_deplibs_check_method
=pass_all
6156 lt_cv_file_magic_cmd
='/bin/file'
6157 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6160 lt_cv_file_magic_cmd
='/bin/file'
6161 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6162 lt_cv_file_magic_test_file
=/lib
/libc.so
6165 lt_cv_deplibs_check_method
=pass_all
6168 lt_cv_deplibs_check_method
=pass_all
6174 lt_cv_deplibs_check_method
=pass_all
6177 # Assume VxWorks cross toolchains are built on Linux, possibly
6178 # as canadian for Windows hosts.
6179 lt_cv_deplibs_check_method
=pass_all
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6185 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6186 file_magic_cmd
=$lt_cv_file_magic_cmd
6187 deplibs_check_method
=$lt_cv_deplibs_check_method
6188 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6201 if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6203 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_AR+:} false
; then :
6207 $as_echo_n "(cached) " >&6
6209 if test -n "$AR"; then
6210 ac_cv_prog_AR
="$AR" # Let the user override the test.
6212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir
=.
6217 for ac_exec_ext
in '' $ac_executable_extensions; do
6218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 if test -n "$AR"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6232 $as_echo "$AR" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6240 if test -z "$ac_cv_prog_AR"; then
6242 # Extract the first word of "ar", so it can be a program name with args.
6243 set dummy
ar; ac_word
=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6247 $as_echo_n "(cached) " >&6
6249 if test -n "$ac_ct_AR"; then
6250 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir
=.
6257 for ac_exec_ext
in '' $ac_executable_extensions; do
6258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_ac_ct_AR
="ar"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6270 if test -n "$ac_ct_AR"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6272 $as_echo "$ac_ct_AR" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6278 if test "x$ac_ct_AR" = x
; then
6281 case $cross_compiling:$ac_tool_warned in
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285 ac_tool_warned
=yes ;;
6293 test -z "$AR" && AR
=ar
6294 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6308 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_STRIP+:} false
; then :
6312 $as_echo_n "(cached) " >&6
6314 if test -n "$STRIP"; then
6315 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir
=.
6322 for ac_exec_ext
in '' $ac_executable_extensions; do
6323 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 STRIP
=$ac_cv_prog_STRIP
6335 if test -n "$STRIP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6337 $as_echo "$STRIP" >&6; }
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6345 if test -z "$ac_cv_prog_STRIP"; then
6347 # Extract the first word of "strip", so it can be a program name with args.
6348 set dummy strip
; ac_word
=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$ac_ct_STRIP"; then
6355 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir
=.
6362 for ac_exec_ext
in '' $ac_executable_extensions; do
6363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_ac_ct_STRIP
="strip"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6375 if test -n "$ac_ct_STRIP"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6377 $as_echo "$ac_ct_STRIP" >&6; }
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6383 if test "x$ac_ct_STRIP" = x
; then
6386 case $cross_compiling:$ac_tool_warned in
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned
=yes ;;
6395 STRIP
="$ac_cv_prog_STRIP"
6398 test -z "$STRIP" && STRIP
=:
6405 if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6407 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_RANLIB+:} false
; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$RANLIB"; then
6414 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir
=.
6421 for ac_exec_ext
in '' $ac_executable_extensions; do
6422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 RANLIB
=$ac_cv_prog_RANLIB
6434 if test -n "$RANLIB"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6436 $as_echo "$RANLIB" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6444 if test -z "$ac_cv_prog_RANLIB"; then
6445 ac_ct_RANLIB
=$RANLIB
6446 # Extract the first word of "ranlib", so it can be a program name with args.
6447 set dummy ranlib
; ac_word
=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$ac_ct_RANLIB"; then
6454 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir
=.
6461 for ac_exec_ext
in '' $ac_executable_extensions; do
6462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6474 if test -n "$ac_ct_RANLIB"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6476 $as_echo "$ac_ct_RANLIB" >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6482 if test "x$ac_ct_RANLIB" = x
; then
6485 case $cross_compiling:$ac_tool_warned in
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned
=yes ;;
6491 RANLIB
=$ac_ct_RANLIB
6494 RANLIB
="$ac_cv_prog_RANLIB"
6497 test -z "$RANLIB" && RANLIB
=:
6504 # Determine commands to create old-style static archives.
6505 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6506 old_postinstall_cmds
='chmod 644 $oldlib'
6507 old_postuninstall_cmds
=
6509 if test -n "$RANLIB"; then
6512 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6515 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6518 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6523 lock_old_archive_extraction
=yes ;;
6525 lock_old_archive_extraction
=no
;;
6566 # If no C compiler was specified, use CC.
6569 # If no C compiler flags were specified, use CFLAGS.
6570 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6572 # Allow CC to be a program name with arguments.
6576 # Check for command to grab the raw symbol name followed by C symbol from nm.
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6578 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6579 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6580 $as_echo_n "(cached) " >&6
6583 # These are sane defaults that work on at least a few old systems.
6584 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6586 # Character class describing NM global symbol codes.
6587 symcode
='[BCDEGRST]'
6589 # Regexp to match symbols that can be accessed directly from C.
6590 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6592 # Define system-specific variables.
6597 cygwin
* | mingw
* | pw32
* | cegcc
*)
6598 symcode
='[ABCDGISTW]'
6601 if test "$host_cpu" = ia64
; then
6602 symcode
='[ABCDEGRST]'
6606 symcode
='[BCDEGRST]'
6609 symcode
='[BCDEGQRST]'
6620 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6628 # If we're using GNU nm, then use its standard symbol codes.
6629 case `$NM -V 2>&1` in
6630 *GNU
* |
*'with BFD'*)
6631 symcode
='[ABCDGIRSTW]' ;;
6634 # Transform an extracted symbol line into a proper C declaration.
6635 # Some systems (esp. on ia64) link data and code symbols differently,
6636 # so use this general approach.
6637 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6639 # Transform an extracted symbol line into symbol name and symbol address
6640 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6641 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'"
6643 # Handle CRLF in mingw tool chain
6647 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6651 # Try without a prefix underscore, then with it.
6652 for ac_symprfx
in "" "_"; do
6654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6655 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6657 # Write the raw and C identifiers.
6658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6659 # Fake it for dumpbin and say T for any non-static function
6660 # and D for any global variable.
6661 # Also find C++ and __fastcall symbols from MSVC++,
6662 # which start with @ or ?.
6663 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6664 " {last_section=section; section=\$ 3};"\
6665 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6666 " \$ 0!~/External *\|/{next};"\
6667 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6668 " {if(hide[section]) next};"\
6669 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6670 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6671 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6672 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6673 " ' prfx=^$ac_symprfx"
6675 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6678 # Check to see that the pipe works correctly.
6682 cat > conftest.
$ac_ext <<_LT_EOF
6687 void nm_test_func(void);
6688 void nm_test_func(void){}
6692 int main(){nm_test_var='a';nm_test_func();return(0);}
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6696 (eval $ac_compile) 2>&5
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; then
6700 # Now try to grab the symbols.
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6703 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; } && test -s "$nlist"; then
6707 # Try sorting and uniquifying the output.
6708 if sort "$nlist" |
uniq > "$nlist"T
; then
6709 mv -f "$nlist"T
"$nlist"
6714 # Make sure that we snagged all the symbols we need.
6715 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6716 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6717 cat <<_LT_EOF > conftest.$ac_ext
6723 # Now generate the symbol file.
6724 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6726 cat <<_LT_EOF >> conftest.$ac_ext
6728 /* The mapping between symbol names and symbols. */
6733 lt__PROGRAM__LTX_preloaded_symbols[] =
6735 { "@PROGRAM@", (void *) 0 },
6737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6738 cat <<\_LT_EOF
>> conftest.
$ac_ext
6742 /* This works around a problem
in FreeBSD linker
*/
6743 #ifdef FREEBSD_WORKAROUND
6744 static const void
*lt_preloaded_setup
() {
6745 return lt__PROGRAM__LTX_preloaded_symbols
;
6753 # Now try linking the two files.
6754 mv conftest.
$ac_objext conftstm.
$ac_objext
6755 lt_save_LIBS
="$LIBS"
6756 lt_save_CFLAGS
="$CFLAGS"
6757 LIBS
="conftstm.$ac_objext"
6758 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6760 (eval $ac_link) 2>&5
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6766 LIBS
="$lt_save_LIBS"
6767 CFLAGS
="$lt_save_CFLAGS"
6769 echo "cannot find nm_test_func in $nlist" >&5
6772 echo "cannot find nm_test_var in $nlist" >&5
6775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6778 echo "$progname: failed program was:" >&5
6779 cat conftest.
$ac_ext >&5
6781 rm -rf conftest
* conftst
*
6783 # Do not use the global_symbol_pipe unless it works.
6784 if test "$pipe_works" = yes; then
6787 lt_cv_sys_global_symbol_pipe
=
6793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6794 lt_cv_sys_global_symbol_to_cdecl
=
6796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6798 $as_echo "failed" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6801 $as_echo "ok" >&6; }
6826 # Check whether --enable-libtool-lock was given.
6827 if test "${enable_libtool_lock+set}" = set; then :
6828 enableval
=$enable_libtool_lock;
6831 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6833 # Some flags need to be propagated to the compiler or linker for good
6837 # Find out which ABI we are using.
6838 echo 'int i;' > conftest.
$ac_ext
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 case `/usr/bin/file conftest.$ac_objext` in
6856 # Find out which ABI we are using.
6857 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859 (eval $ac_compile) 2>&5
6861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862 test $ac_status = 0; }; then
6863 if test "$lt_cv_prog_gnu_ld" = yes; then
6864 case `/usr/bin/file conftest.$ac_objext` in
6866 LD
="${LD-ld} -melf32bsmip"
6869 LD
="${LD-ld} -melf32bmipn32"
6872 LD
="${LD-ld} -melf64bmip"
6876 case `/usr/bin/file conftest.$ac_objext` in
6892 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6893 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6894 # Find out which ABI we are using.
6895 echo 'int i;' > conftest.
$ac_ext
6896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897 (eval $ac_compile) 2>&5
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900 test $ac_status = 0; }; then
6901 case `/usr/bin/file conftest.o` in
6904 x86_64-
*kfreebsd
*-gnu)
6905 LD
="${LD-ld} -m elf_i386_fbsd"
6908 case `/usr/bin/file conftest.o` in
6910 LD
="${LD-ld} -m elf32_x86_64"
6913 LD
="${LD-ld} -m elf_i386"
6917 powerpc64le-
*linux
*)
6918 LD
="${LD-ld} -m elf32lppclinux"
6921 LD
="${LD-ld} -m elf32ppclinux"
6924 LD
="${LD-ld} -m elf_s390"
6927 LD
="${LD-ld} -m elf32_sparc"
6933 x86_64-
*kfreebsd
*-gnu)
6934 LD
="${LD-ld} -m elf_x86_64_fbsd"
6937 LD
="${LD-ld} -m elf_x86_64"
6940 LD
="${LD-ld} -m elf64lppc"
6943 LD
="${LD-ld} -m elf64ppc"
6945 s390
*-*linux
*|s390
*-*tpf
*)
6946 LD
="${LD-ld} -m elf64_s390"
6949 LD
="${LD-ld} -m elf64_sparc"
6959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6960 SAVE_CFLAGS
="$CFLAGS"
6961 CFLAGS
="$CFLAGS -belf"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6963 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6964 if ${lt_cv_cc_needs_belf+:} false
; then :
6965 $as_echo_n "(cached) " >&6
6968 ac_cpp
='$CPP $CPPFLAGS'
6969 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6984 if ac_fn_c_try_link
"$LINENO"; then :
6985 lt_cv_cc_needs_belf
=yes
6987 lt_cv_cc_needs_belf
=no
6989 rm -f core conftest.err conftest.
$ac_objext \
6990 conftest
$ac_exeext conftest.
$ac_ext
6992 ac_cpp
='$CPP $CPPFLAGS'
6993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6999 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7000 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7001 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7002 CFLAGS
="$SAVE_CFLAGS"
7006 # Find out which ABI we are using.
7007 echo 'int i;' > conftest.
$ac_ext
7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7009 (eval $ac_compile) 2>&5
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; }; then
7013 case `/usr/bin/file conftest.o` in
7015 case $lt_cv_prog_gnu_ld in
7016 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7018 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7030 need_locks
="$enable_libtool_lock"
7034 rhapsody
* | darwin
*)
7035 if test -n "$ac_tool_prefix"; then
7036 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7037 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7041 $as_echo_n "(cached) " >&6
7043 if test -n "$DSYMUTIL"; then
7044 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir
=.
7051 for ac_exec_ext
in '' $ac_executable_extensions; do
7052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7064 if test -n "$DSYMUTIL"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7066 $as_echo "$DSYMUTIL" >&6; }
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7074 if test -z "$ac_cv_prog_DSYMUTIL"; then
7075 ac_ct_DSYMUTIL
=$DSYMUTIL
7076 # Extract the first word of "dsymutil", so it can be a program name with args.
7077 set dummy dsymutil
; ac_word
=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7081 $as_echo_n "(cached) " >&6
7083 if test -n "$ac_ct_DSYMUTIL"; then
7084 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir
=.
7091 for ac_exec_ext
in '' $ac_executable_extensions; do
7092 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7104 if test -n "$ac_ct_DSYMUTIL"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7106 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7112 if test "x$ac_ct_DSYMUTIL" = x
; then
7115 case $cross_compiling:$ac_tool_warned in
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned
=yes ;;
7121 DSYMUTIL
=$ac_ct_DSYMUTIL
7124 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7129 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_NMEDIT+:} false
; then :
7133 $as_echo_n "(cached) " >&6
7135 if test -n "$NMEDIT"; then
7136 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir
=.
7143 for ac_exec_ext
in '' $ac_executable_extensions; do
7144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 NMEDIT
=$ac_cv_prog_NMEDIT
7156 if test -n "$NMEDIT"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7158 $as_echo "$NMEDIT" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7166 if test -z "$ac_cv_prog_NMEDIT"; then
7167 ac_ct_NMEDIT
=$NMEDIT
7168 # Extract the first word of "nmedit", so it can be a program name with args.
7169 set dummy nmedit
; ac_word
=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7173 $as_echo_n "(cached) " >&6
7175 if test -n "$ac_ct_NMEDIT"; then
7176 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir
=.
7183 for ac_exec_ext
in '' $ac_executable_extensions; do
7184 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7196 if test -n "$ac_ct_NMEDIT"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7198 $as_echo "$ac_ct_NMEDIT" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7204 if test "x$ac_ct_NMEDIT" = x
; then
7207 case $cross_compiling:$ac_tool_warned in
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned
=yes ;;
7213 NMEDIT
=$ac_ct_NMEDIT
7216 NMEDIT
="$ac_cv_prog_NMEDIT"
7219 if test -n "$ac_tool_prefix"; then
7220 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7221 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_LIPO+:} false
; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$LIPO"; then
7228 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir
=.
7235 for ac_exec_ext
in '' $ac_executable_extensions; do
7236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 LIPO
=$ac_cv_prog_LIPO
7248 if test -n "$LIPO"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7250 $as_echo "$LIPO" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7258 if test -z "$ac_cv_prog_LIPO"; then
7260 # Extract the first word of "lipo", so it can be a program name with args.
7261 set dummy lipo
; ac_word
=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7265 $as_echo_n "(cached) " >&6
7267 if test -n "$ac_ct_LIPO"; then
7268 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir
=.
7275 for ac_exec_ext
in '' $ac_executable_extensions; do
7276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_LIPO
="lipo"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7288 if test -n "$ac_ct_LIPO"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7290 $as_echo "$ac_ct_LIPO" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7296 if test "x$ac_ct_LIPO" = x
; then
7299 case $cross_compiling:$ac_tool_warned in
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303 ac_tool_warned
=yes ;;
7308 LIPO
="$ac_cv_prog_LIPO"
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7313 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_OTOOL+:} false
; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$OTOOL"; then
7320 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir
=.
7327 for ac_exec_ext
in '' $ac_executable_extensions; do
7328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 OTOOL
=$ac_cv_prog_OTOOL
7340 if test -n "$OTOOL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7342 $as_echo "$OTOOL" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7350 if test -z "$ac_cv_prog_OTOOL"; then
7352 # Extract the first word of "otool", so it can be a program name with args.
7353 set dummy otool
; ac_word
=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7357 $as_echo_n "(cached) " >&6
7359 if test -n "$ac_ct_OTOOL"; then
7360 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir
=.
7367 for ac_exec_ext
in '' $ac_executable_extensions; do
7368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_ac_ct_OTOOL
="otool"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7380 if test -n "$ac_ct_OTOOL"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7382 $as_echo "$ac_ct_OTOOL" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7388 if test "x$ac_ct_OTOOL" = x
; then
7391 case $cross_compiling:$ac_tool_warned in
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned
=yes ;;
7400 OTOOL
="$ac_cv_prog_OTOOL"
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7405 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_OTOOL64+:} false
; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$OTOOL64"; then
7412 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir
=.
7419 for ac_exec_ext
in '' $ac_executable_extensions; do
7420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 OTOOL64
=$ac_cv_prog_OTOOL64
7432 if test -n "$OTOOL64"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7434 $as_echo "$OTOOL64" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7442 if test -z "$ac_cv_prog_OTOOL64"; then
7443 ac_ct_OTOOL64
=$OTOOL64
7444 # Extract the first word of "otool64", so it can be a program name with args.
7445 set dummy otool64
; ac_word
=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7449 $as_echo_n "(cached) " >&6
7451 if test -n "$ac_ct_OTOOL64"; then
7452 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir
=.
7459 for ac_exec_ext
in '' $ac_executable_extensions; do
7460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7472 if test -n "$ac_ct_OTOOL64"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7474 $as_echo "$ac_ct_OTOOL64" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7480 if test "x$ac_ct_OTOOL64" = x
; then
7483 case $cross_compiling:$ac_tool_warned in
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned
=yes ;;
7489 OTOOL64
=$ac_ct_OTOOL64
7492 OTOOL64
="$ac_cv_prog_OTOOL64"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7522 $as_echo_n "checking for -single_module linker flag... " >&6; }
7523 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7524 $as_echo_n "(cached) " >&6
7526 lt_cv_apple_cc_single_mod
=no
7527 if test -z "${LT_MULTI_MODULE}"; then
7528 # By default we will add the -single_module flag. You can override
7529 # by either setting the environment variable LT_MULTI_MODULE
7530 # non-empty at configure time, or by adding -multi_module to the
7532 rm -rf libconftest.dylib
*
7533 echo "int foo(void){return 1;}" > conftest.c
7534 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c" >&5
7536 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7537 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7539 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7540 lt_cv_apple_cc_single_mod
=yes
7542 cat conftest.err
>&5
7544 rm -rf libconftest.dylib
*
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7549 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7551 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7552 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7553 $as_echo_n "(cached) " >&6
7555 lt_cv_ld_exported_symbols_list
=no
7556 save_LDFLAGS
=$LDFLAGS
7557 echo "_main" > conftest.sym
7558 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7570 if ac_fn_c_try_link
"$LINENO"; then :
7571 lt_cv_ld_exported_symbols_list
=yes
7573 lt_cv_ld_exported_symbols_list
=no
7575 rm -f core conftest.err conftest.
$ac_objext \
7576 conftest
$ac_exeext conftest.
$ac_ext
7577 LDFLAGS
="$save_LDFLAGS"
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7581 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7583 $as_echo_n "checking for -force_load linker flag... " >&6; }
7584 if ${lt_cv_ld_force_load+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 lt_cv_ld_force_load
=no
7588 cat > conftest.c
<< _LT_EOF
7589 int forced_loaded() { return 2;}
7591 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7592 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7593 echo "$AR cru libconftest.a conftest.o" >&5
7594 $AR cru libconftest.a conftest.o
2>&5
7595 cat > conftest.c
<< _LT_EOF
7596 int main() { return 0;}
7598 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7599 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7601 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7602 lt_cv_ld_force_load
=yes
7604 cat conftest.err
>&5
7606 rm -f conftest.err libconftest.a conftest conftest.c
7607 rm -rf conftest.dSYM
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7611 $as_echo "$lt_cv_ld_force_load" >&6; }
7612 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7613 # build without first building modern cctools / linker.
7614 case $host_cpu-$host_os in
7615 *-rhapsody* |
*-darwin1.
[012])
7616 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7618 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7620 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7621 # deployment target is forced to an earlier version.
7622 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7623 UNSET
,*-darwin[89]*|UNSET
,*-darwin[12][0123456789]*)
7626 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7633 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7634 _lt_dar_single_mod
='$single_module'
7636 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7637 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7639 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7641 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7642 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7650 ac_cpp
='$CPP $CPPFLAGS'
7651 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7655 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7656 # On Suns, sometimes $CPP names a directory.
7657 if test -n "$CPP" && test -d "$CPP"; then
7660 if test -z "$CPP"; then
7661 if ${ac_cv_prog_CPP+:} false
; then :
7662 $as_echo_n "(cached) " >&6
7664 # Double quotes because CPP needs to be expanded
7665 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7668 for ac_c_preproc_warn_flag
in '' yes
7670 # Use a header file that comes with gcc, so configuring glibc
7671 # with a fresh cross-compiler works.
7672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7673 # <limits.h> exists even on freestanding compilers.
7674 # On the NeXT, cc -E runs the code through the compiler's parser,
7675 # not just through cpp. "Syntax error" is here to catch this case.
7676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7679 # include <limits.h>
7681 # include <assert.h>
7685 if ac_fn_c_try_cpp
"$LINENO"; then :
7688 # Broken: fails on valid input.
7691 rm -f conftest.err conftest.i conftest.
$ac_ext
7693 # OK, works on sane cases. Now check whether nonexistent headers
7694 # can be detected and how.
7695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <ac_nonexistent.h>
7699 if ac_fn_c_try_cpp
"$LINENO"; then :
7700 # Broken: success on invalid input.
7703 # Passes both tests.
7707 rm -f conftest.err conftest.i conftest.
$ac_ext
7710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7711 rm -f conftest.i conftest.err conftest.
$ac_ext
7712 if $ac_preproc_ok; then :
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7725 $as_echo "$CPP" >&6; }
7727 for ac_c_preproc_warn_flag
in '' yes
7729 # Use a header file that comes with gcc, so configuring glibc
7730 # with a fresh cross-compiler works.
7731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7732 # <limits.h> exists even on freestanding compilers.
7733 # On the NeXT, cc -E runs the code through the compiler's parser,
7734 # not just through cpp. "Syntax error" is here to catch this case.
7735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7738 # include <limits.h>
7740 # include <assert.h>
7744 if ac_fn_c_try_cpp
"$LINENO"; then :
7747 # Broken: fails on valid input.
7750 rm -f conftest.err conftest.i conftest.
$ac_ext
7752 # OK, works on sane cases. Now check whether nonexistent headers
7753 # can be detected and how.
7754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <ac_nonexistent.h>
7758 if ac_fn_c_try_cpp
"$LINENO"; then :
7759 # Broken: success on invalid input.
7762 # Passes both tests.
7766 rm -f conftest.err conftest.i conftest.
$ac_ext
7769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7770 rm -f conftest.i conftest.err conftest.
$ac_ext
7771 if $ac_preproc_ok; then :
7774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7776 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7777 See \`config.log' for more details" "$LINENO" 5; }
7781 ac_cpp
='$CPP $CPPFLAGS'
7782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7788 $as_echo_n "checking for ANSI C header files... " >&6; }
7789 if ${ac_cv_header_stdc+:} false
; then :
7790 $as_echo_n "(cached) " >&6
7792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7807 if ac_fn_c_try_compile
"$LINENO"; then :
7808 ac_cv_header_stdc
=yes
7810 ac_cv_header_stdc
=no
7812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7814 if test $ac_cv_header_stdc = yes; then
7815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7822 $EGREP "memchr" >/dev
/null
2>&1; then :
7825 ac_cv_header_stdc
=no
7831 if test $ac_cv_header_stdc = yes; then
7832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7839 $EGREP "free" >/dev
/null
2>&1; then :
7842 ac_cv_header_stdc
=no
7848 if test $ac_cv_header_stdc = yes; then
7849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7850 if test "$cross_compiling" = yes; then :
7853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7857 #if ((' ' & 0x0FF) == 0x020)
7858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7861 # define ISLOWER(c) \
7862 (('a' <= (c) && (c) <= 'i') \
7863 || ('j' <= (c) && (c) <= 'r') \
7864 || ('s' <= (c) && (c) <= 'z'))
7865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7873 for (i = 0; i < 256; i++)
7874 if (XOR (islower (i), ISLOWER (i))
7875 || toupper (i) != TOUPPER (i))
7880 if ac_fn_c_try_run
"$LINENO"; then :
7883 ac_cv_header_stdc
=no
7885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7892 $as_echo "$ac_cv_header_stdc" >&6; }
7893 if test $ac_cv_header_stdc = yes; then
7895 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7899 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7900 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7901 inttypes.h stdint.h unistd.h
7903 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7904 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7906 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7907 cat >>confdefs.h
<<_ACEOF
7908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7916 for ac_header
in dlfcn.h
7918 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7920 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7921 cat >>confdefs.h
<<_ACEOF
7922 #define HAVE_DLFCN_H 1
7943 # Check whether --enable-shared was given.
7944 if test "${enable_shared+set}" = set; then :
7945 enableval
=$enable_shared; p
=${PACKAGE-default}
7947 yes) enable_shared
=yes ;;
7948 no
) enable_shared
=no
;;
7951 # Look at the argument we got. We use all the common list separators.
7952 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7953 for pkg
in $enableval; do
7955 if test "X$pkg" = "X$p"; then
7974 # Check whether --enable-static was given.
7975 if test "${enable_static+set}" = set; then :
7976 enableval
=$enable_static; p
=${PACKAGE-default}
7978 yes) enable_static
=yes ;;
7979 no
) enable_static
=no
;;
7982 # Look at the argument we got. We use all the common list separators.
7983 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7984 for pkg
in $enableval; do
7986 if test "X$pkg" = "X$p"; then
8006 # Check whether --with-pic was given.
8007 if test "${with_pic+set}" = set; then :
8008 withval
=$with_pic; pic_mode
="$withval"
8014 test -z "$pic_mode" && pic_mode
=default
8022 # Check whether --enable-fast-install was given.
8023 if test "${enable_fast_install+set}" = set; then :
8024 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8026 yes) enable_fast_install
=yes ;;
8027 no
) enable_fast_install
=no
;;
8029 enable_fast_install
=no
8030 # Look at the argument we got. We use all the common list separators.
8031 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8032 for pkg
in $enableval; do
8034 if test "X$pkg" = "X$p"; then
8035 enable_fast_install
=yes
8042 enable_fast_install
=yes
8055 # This can be used to rebuild libtool when needed
8056 LIBTOOL_DEPS
="$ltmain"
8058 # Always use our own libtool.
8059 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8086 test -z "$LN_S" && LN_S
="ln -s"
8101 if test -n "${ZSH_VERSION+set}" ; then
8102 setopt NO_GLOB_SUBST
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8106 $as_echo_n "checking for objdir... " >&6; }
8107 if ${lt_cv_objdir+:} false
; then :
8108 $as_echo_n "(cached) " >&6
8110 rm -f .libs
2>/dev
/null
8111 mkdir .libs
2>/dev
/null
8112 if test -d .libs
; then
8115 # MS-DOS does not allow filenames that begin with a dot.
8118 rmdir .libs
2>/dev
/null
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8121 $as_echo "$lt_cv_objdir" >&6; }
8122 objdir
=$lt_cv_objdir
8128 cat >>confdefs.h
<<_ACEOF
8129 #define LT_OBJDIR "$lt_cv_objdir/"
8137 # AIX sometimes has problems with the GCC collect2 program. For some
8138 # reason, if we set the COLLECT_NAMES environment variable, the problems
8139 # vanish in a puff of smoke.
8140 if test "X${COLLECT_NAMES+set}" != Xset
; then
8142 export COLLECT_NAMES
8149 can_build_shared
=yes
8151 # All known linkers require a `.a' archive for static linking (except MSVC,
8152 # which needs '.lib').
8155 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8158 old_CFLAGS
="$CFLAGS"
8160 # Set sane defaults for various variables
8161 test -z "$CC" && CC
=cc
8162 test -z "$LTCC" && LTCC
=$CC
8163 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8164 test -z "$LD" && LD
=ld
8165 test -z "$ac_objext" && ac_objext
=o
8167 for cc_temp
in $compiler""; do
8169 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8170 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8175 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8178 # Only perform the check for file, if the check method requires it
8179 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8180 case $deplibs_check_method in
8182 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8184 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8185 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8186 $as_echo_n "(cached) " >&6
8190 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8193 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8194 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8195 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8196 for ac_dir
in $ac_dummy; do
8198 test -z "$ac_dir" && ac_dir
=.
8199 if test -f $ac_dir/${ac_tool_prefix}file; then
8200 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8201 if test -n "$file_magic_test_file"; then
8202 case $deplibs_check_method in
8204 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8205 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8206 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8207 $EGREP "$file_magic_regex" > /dev
/null
; then
8212 *** Warning: the command libtool uses to detect shared libraries,
8213 *** $file_magic_cmd, produces output that libtool cannot recognize.
8214 *** The result is that libtool may fail to recognize shared libraries
8215 *** as such. This will affect the creation of libtool libraries that
8216 *** depend on shared libraries, but programs linked with such libtool
8217 *** libraries will work regardless of this problem. Nevertheless, you
8218 *** may want to report the problem to your system manager and/or to
8219 *** bug-libtool@gnu.org
8229 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8234 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8235 if test -n "$MAGIC_CMD"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8237 $as_echo "$MAGIC_CMD" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8247 if test -z "$lt_cv_path_MAGIC_CMD"; then
8248 if test -n "$ac_tool_prefix"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8250 $as_echo_n "checking for file... " >&6; }
8251 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8252 $as_echo_n "(cached) " >&6
8256 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8259 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8260 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8261 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8262 for ac_dir
in $ac_dummy; do
8264 test -z "$ac_dir" && ac_dir
=.
8265 if test -f $ac_dir/file; then
8266 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8267 if test -n "$file_magic_test_file"; then
8268 case $deplibs_check_method in
8270 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8271 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8272 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8273 $EGREP "$file_magic_regex" > /dev
/null
; then
8278 *** Warning: the command libtool uses to detect shared libraries,
8279 *** $file_magic_cmd, produces output that libtool cannot recognize.
8280 *** The result is that libtool may fail to recognize shared libraries
8281 *** as such. This will affect the creation of libtool libraries that
8282 *** depend on shared libraries, but programs linked with such libtool
8283 *** libraries will work regardless of this problem. Nevertheless, you
8284 *** may want to report the problem to your system manager and/or to
8285 *** bug-libtool@gnu.org
8295 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8300 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8301 if test -n "$MAGIC_CMD"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8303 $as_echo "$MAGIC_CMD" >&6; }
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8319 # Use C for the default configuration in the libtool script
8323 ac_cpp
='$CPP $CPPFLAGS'
8324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8329 # Source file extension for C test sources.
8332 # Object file extension for compiled C test sources.
8336 # Code to be used in simple compile tests
8337 lt_simple_compile_test_code
="int some_variable = 0;"
8339 # Code to be used in simple link tests
8340 lt_simple_link_test_code
='int main(){return(0);}'
8348 # If no C compiler was specified, use CC.
8351 # If no C compiler flags were specified, use CFLAGS.
8352 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8354 # Allow CC to be a program name with arguments.
8357 # Save the default compiler, since it gets overwritten when the other
8358 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8359 compiler_DEFAULT
=$CC
8361 # save warnings/boilerplate of simple test code
8362 ac_outfile
=conftest.
$ac_objext
8363 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8364 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8365 _lt_compiler_boilerplate
=`cat conftest.err`
8368 ac_outfile
=conftest.
$ac_objext
8369 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8370 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8371 _lt_linker_boilerplate
=`cat conftest.err`
8376 ## There is no encapsulation within the following macros, do not change
8377 ## the running order or otherwise move them around unless you know exactly
8378 ## what you are doing...
8379 if test -n "$compiler"; then
8381 lt_prog_compiler_no_builtin_flag
=
8383 if test "$GCC" = yes; then
8384 case $cc_basename in
8386 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8388 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8392 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8393 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8394 $as_echo_n "(cached) " >&6
8396 lt_cv_prog_compiler_rtti_exceptions
=no
8397 ac_outfile
=conftest.
$ac_objext
8398 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8399 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8400 # Insert the option either (1) after the last *FLAGS variable, or
8401 # (2) before a word containing "conftest.", or (3) at the end.
8402 # Note that $ac_compile itself does not contain backslashes and begins
8403 # with a dollar sign (not a hyphen), so the echo should work correctly.
8404 # The option is referenced via a variable to avoid confusing sed.
8405 lt_compile
=`echo "$ac_compile" | $SED \
8406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408 -e 's:$: $lt_compiler_flag:'`
8409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8410 (eval "$lt_compile" 2>conftest.err
)
8412 cat conftest.err
>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 if (exit $ac_status) && test -s "$ac_outfile"; then
8415 # The compiler can only warn and ignore the option if not recognized
8416 # So say no if there are warnings other than the usual output.
8417 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8418 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8419 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8420 lt_cv_prog_compiler_rtti_exceptions
=yes
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8427 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8429 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8430 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8442 lt_prog_compiler_wl
=
8443 lt_prog_compiler_pic
=
8444 lt_prog_compiler_static
=
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8447 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8449 if test "$GCC" = yes; then
8450 lt_prog_compiler_wl
='-Wl,'
8451 lt_prog_compiler_static
='-static'
8455 # All AIX code is PIC.
8456 if test "$host_cpu" = ia64
; then
8457 # AIX 5 now supports IA64 processor
8458 lt_prog_compiler_static
='-Bstatic'
8460 lt_prog_compiler_pic
='-fPIC'
8466 # see comment about AmigaOS4 .so support
8467 lt_prog_compiler_pic
='-fPIC'
8470 # FIXME: we need at least 68020 code to build shared libraries, but
8471 # adding the `-m68020' flag to GCC prevents building anything better,
8473 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8478 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8479 # PIC is the default for these OSes.
8482 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8483 # This hack is so that the source file can tell whether it is being
8484 # built for inclusion in a dll (and should export symbols for example).
8485 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8486 # (--disable-auto-import) libraries
8487 lt_prog_compiler_pic
='-DDLL_EXPORT'
8490 darwin
* | rhapsody
*)
8491 # PIC is the default on this platform
8492 # Common symbols not allowed in MH_DYLIB files
8493 lt_prog_compiler_pic
='-fno-common'
8497 # PIC is the default for Haiku.
8498 # The "-static" flag exists, but is broken.
8499 lt_prog_compiler_static
=
8503 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8504 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8505 # sets the default TLS model and affects inlining.
8511 lt_prog_compiler_pic
='-fPIC'
8517 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8518 # Instead, we relocate shared libraries at runtime.
8522 # Just because we use GCC doesn't mean we suddenly get shared libraries
8523 # on systems that don't support them.
8524 lt_prog_compiler_can_build_shared
=no
8529 # QNX uses GNU C++, but need to define -shared option too, otherwise
8531 lt_prog_compiler_pic
='-fPIC -shared'
8535 if test -d /usr
/nec
; then
8536 lt_prog_compiler_pic
=-Kconform_pic
8541 lt_prog_compiler_pic
='-fPIC'
8545 case $cc_basename in
8546 nvcc
*) # Cuda Compiler Driver 2.2
8547 lt_prog_compiler_wl
='-Xlinker '
8548 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8552 # PORTME Check for flag to pass linker flags through the system compiler.
8555 lt_prog_compiler_wl
='-Wl,'
8556 if test "$host_cpu" = ia64
; then
8557 # AIX 5 now supports IA64 processor
8558 lt_prog_compiler_static
='-Bstatic'
8560 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8564 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8565 # This hack is so that the source file can tell whether it is being
8566 # built for inclusion in a dll (and should export symbols for example).
8567 lt_prog_compiler_pic
='-DDLL_EXPORT'
8570 hpux9
* | hpux10
* | hpux11
*)
8571 lt_prog_compiler_wl
='-Wl,'
8572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8579 lt_prog_compiler_pic
='+Z'
8582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8583 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8586 irix5
* | irix6
* | nonstopux
*)
8587 lt_prog_compiler_wl
='-Wl,'
8588 # PIC (with -KPIC) is the default.
8589 lt_prog_compiler_static
='-non_shared'
8592 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8593 case $cc_basename in
8594 # old Intel for x86_64 which still supported -KPIC.
8596 lt_prog_compiler_wl
='-Wl,'
8597 lt_prog_compiler_pic
='-KPIC'
8598 lt_prog_compiler_static
='-static'
8600 # icc used to be incompatible with GCC.
8601 # ICC 10 doesn't accept -KPIC any more.
8603 lt_prog_compiler_wl
='-Wl,'
8604 lt_prog_compiler_pic
='-fPIC'
8605 lt_prog_compiler_static
='-static'
8607 # Lahey Fortran 8.1.
8609 lt_prog_compiler_wl
='-Wl,'
8610 lt_prog_compiler_pic
='--shared'
8611 lt_prog_compiler_static
='--static'
8613 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8614 # Portland Group compilers (*not* the Pentium gcc compiler,
8615 # which looks to be a dead project)
8616 lt_prog_compiler_wl
='-Wl,'
8617 lt_prog_compiler_pic
='-fpic'
8618 lt_prog_compiler_static
='-Bstatic'
8621 lt_prog_compiler_wl
='-Wl,'
8622 # All Alpha code is PIC.
8623 lt_prog_compiler_static
='-non_shared'
8625 xl
* | bgxl
* | bgf
* | mpixl
*)
8626 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8627 lt_prog_compiler_wl
='-Wl,'
8628 lt_prog_compiler_pic
='-qpic'
8629 lt_prog_compiler_static
='-qstaticlink'
8632 case `$CC -V 2>&1 | sed 5q` in
8633 *Sun\ F
* |
*Sun
*Fortran
*)
8634 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8635 lt_prog_compiler_pic
='-KPIC'
8636 lt_prog_compiler_static
='-Bstatic'
8637 lt_prog_compiler_wl
=''
8641 lt_prog_compiler_pic
='-KPIC'
8642 lt_prog_compiler_static
='-Bstatic'
8643 lt_prog_compiler_wl
='-Wl,'
8651 lt_prog_compiler_pic
='-KPIC'
8652 lt_prog_compiler_static
='-Bstatic'
8656 # QNX uses GNU C++, but need to define -shared option too, otherwise
8658 lt_prog_compiler_pic
='-fPIC -shared'
8661 osf3
* | osf4
* | osf5
*)
8662 lt_prog_compiler_wl
='-Wl,'
8663 # All OSF/1 code is PIC.
8664 lt_prog_compiler_static
='-non_shared'
8668 lt_prog_compiler_static
='-non_shared'
8672 lt_prog_compiler_pic
='-KPIC'
8673 lt_prog_compiler_static
='-Bstatic'
8674 case $cc_basename in
8676 lt_prog_compiler_wl
='-Qoption ld ';;
8678 lt_prog_compiler_wl
='-Wl,';;
8683 lt_prog_compiler_wl
='-Qoption ld '
8684 lt_prog_compiler_pic
='-PIC'
8685 lt_prog_compiler_static
='-Bstatic'
8688 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8689 lt_prog_compiler_wl
='-Wl,'
8690 lt_prog_compiler_pic
='-KPIC'
8691 lt_prog_compiler_static
='-Bstatic'
8695 if test -d /usr
/nec
;then
8696 lt_prog_compiler_pic
='-Kconform_pic'
8697 lt_prog_compiler_static
='-Bstatic'
8701 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8702 lt_prog_compiler_wl
='-Wl,'
8703 lt_prog_compiler_pic
='-KPIC'
8704 lt_prog_compiler_static
='-Bstatic'
8708 lt_prog_compiler_wl
='-Wl,'
8709 lt_prog_compiler_can_build_shared
=no
8713 lt_prog_compiler_pic
='-pic'
8714 lt_prog_compiler_static
='-Bstatic'
8718 lt_prog_compiler_can_build_shared
=no
8724 # For platforms which do not support PIC, -DPIC is meaningless:
8726 lt_prog_compiler_pic
=
8729 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8733 $as_echo "$lt_prog_compiler_pic" >&6; }
8741 # Check to make sure the PIC flag actually works.
8743 if test -n "$lt_prog_compiler_pic"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8745 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8746 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8747 $as_echo_n "(cached) " >&6
8749 lt_cv_prog_compiler_pic_works
=no
8750 ac_outfile
=conftest.
$ac_objext
8751 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8752 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8753 # Insert the option either (1) after the last *FLAGS variable, or
8754 # (2) before a word containing "conftest.", or (3) at the end.
8755 # Note that $ac_compile itself does not contain backslashes and begins
8756 # with a dollar sign (not a hyphen), so the echo should work correctly.
8757 # The option is referenced via a variable to avoid confusing sed.
8758 lt_compile
=`echo "$ac_compile" | $SED \
8759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761 -e 's:$: $lt_compiler_flag:'`
8762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8763 (eval "$lt_compile" 2>conftest.err
)
8765 cat conftest.err
>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 if (exit $ac_status) && test -s "$ac_outfile"; then
8768 # The compiler can only warn and ignore the option if not recognized
8769 # So say no if there are warnings other than the usual output.
8770 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8771 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8772 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8773 lt_cv_prog_compiler_pic_works
=yes
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8780 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8782 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8783 case $lt_prog_compiler_pic in
8785 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8788 lt_prog_compiler_pic
=
8789 lt_prog_compiler_can_build_shared
=no
8800 # Check to make sure the static flag actually works.
8802 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8804 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8805 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8806 $as_echo_n "(cached) " >&6
8808 lt_cv_prog_compiler_static_works
=no
8809 save_LDFLAGS
="$LDFLAGS"
8810 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8811 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8812 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8813 # The linker can only warn and ignore the option if not recognized
8814 # So say no if there are warnings
8815 if test -s conftest.err
; then
8816 # Append any errors to the config.log.
8817 cat conftest.err
1>&5
8818 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8819 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8820 if diff conftest.exp conftest.er2
>/dev
/null
; then
8821 lt_cv_prog_compiler_static_works
=yes
8824 lt_cv_prog_compiler_static_works
=yes
8828 LDFLAGS
="$save_LDFLAGS"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8832 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8834 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8837 lt_prog_compiler_static
=
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8848 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8849 $as_echo_n "(cached) " >&6
8851 lt_cv_prog_compiler_c_o
=no
8852 $RM -r conftest
2>/dev
/null
8856 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8858 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8859 # Insert the option either (1) after the last *FLAGS variable, or
8860 # (2) before a word containing "conftest.", or (3) at the end.
8861 # Note that $ac_compile itself does not contain backslashes and begins
8862 # with a dollar sign (not a hyphen), so the echo should work correctly.
8863 lt_compile
=`echo "$ac_compile" | $SED \
8864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8866 -e 's:$: $lt_compiler_flag:'`
8867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8868 (eval "$lt_compile" 2>out
/conftest.err
)
8870 cat out
/conftest.err
>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8874 # The compiler can only warn and ignore the option if not recognized
8875 # So say no if there are warnings
8876 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8877 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8878 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8879 lt_cv_prog_compiler_c_o
=yes
8884 # SGI C++ compiler will create directory out/ii_files/ for
8885 # template instantiation
8886 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8887 $RM out
/* && rmdir out
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8902 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8903 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8904 $as_echo_n "(cached) " >&6
8906 lt_cv_prog_compiler_c_o
=no
8907 $RM -r conftest
2>/dev
/null
8911 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8913 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8914 # Insert the option either (1) after the last *FLAGS variable, or
8915 # (2) before a word containing "conftest.", or (3) at the end.
8916 # Note that $ac_compile itself does not contain backslashes and begins
8917 # with a dollar sign (not a hyphen), so the echo should work correctly.
8918 lt_compile
=`echo "$ac_compile" | $SED \
8919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8921 -e 's:$: $lt_compiler_flag:'`
8922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8923 (eval "$lt_compile" 2>out
/conftest.err
)
8925 cat out
/conftest.err
>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8929 # The compiler can only warn and ignore the option if not recognized
8930 # So say no if there are warnings
8931 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8932 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8933 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8934 lt_cv_prog_compiler_c_o
=yes
8939 # SGI C++ compiler will create directory out/ii_files/ for
8940 # template instantiation
8941 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8942 $RM out
/* && rmdir out
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8949 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8954 hard_links
="nottested"
8955 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8956 # do not overwrite the value of need_locks provided by the user
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8958 $as_echo_n "checking if we can lock with hard links... " >&6; }
8961 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8963 ln conftest.a conftest.b
2>&5 || hard_links
=no
8964 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8966 $as_echo "$hard_links" >&6; }
8967 if test "$hard_links" = no
; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8969 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8982 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8985 allow_undefined_flag
=
8986 always_export_symbols
=no
8988 archive_expsym_cmds
=
8989 compiler_needs_object
=no
8990 enable_shared_with_static_runtimes
=no
8991 export_dynamic_flag_spec
=
8992 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8993 hardcode_automatic
=no
8995 hardcode_direct_absolute
=no
8996 hardcode_libdir_flag_spec
=
8997 hardcode_libdir_flag_spec_ld
=
8998 hardcode_libdir_separator
=
9000 hardcode_shlibpath_var
=unsupported
9002 link_all_deplibs
=unknown
9005 old_archive_from_new_cmds
=
9006 old_archive_from_expsyms_cmds
=
9007 thread_safe_flag_spec
=
9008 whole_archive_flag_spec
=
9009 # include_expsyms should be a list of space-separated symbols to be *always*
9010 # included in the symbol list
9012 # exclude_expsyms can be an extended regexp of symbols to exclude
9013 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9014 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9015 # as well as any symbol that contains `d'.
9016 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9017 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9018 # platforms (ab)use it in PIC code, but their linkers get confused if
9019 # the symbol is explicitly referenced. Since portable code cannot
9020 # rely on this symbol name, it's probably fine to never include it in
9021 # preloaded symbol tables.
9022 # Exclude shared library initialization/finalization symbols.
9023 extract_expsyms_cmds
=
9026 cygwin
* | mingw
* | pw32
* | cegcc
*)
9027 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9028 # When not using gcc, we currently assume that we are using
9029 # Microsoft Visual C++.
9030 if test "$GCC" != yes; then
9035 # we just hope/assume this is gcc and not c89 (= MSVC++)
9045 # On some targets, GNU ld is compatible enough with the native linker
9046 # that we're better off using the native interface for both.
9047 lt_use_gnu_ld_interface
=no
9048 if test "$with_gnu_ld" = yes; then
9051 # The AIX port of GNU ld has always aspired to compatibility
9052 # with the native linker. However, as the warning in the GNU ld
9053 # block says, versions before 2.19.5* couldn't really create working
9054 # shared libraries, regardless of the interface used.
9055 case `$LD -v 2>&1` in
9056 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9057 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9058 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9060 lt_use_gnu_ld_interface
=yes
9065 lt_use_gnu_ld_interface
=yes
9070 if test "$lt_use_gnu_ld_interface" = yes; then
9071 # If archive_cmds runs LD, not CC, wlarc should be empty
9074 # Set some defaults for GNU ld with shared library support. These
9075 # are reset later if shared libraries are not supported. Putting them
9076 # here allows them to be overridden if necessary.
9077 runpath_var
=LD_RUN_PATH
9078 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9079 export_dynamic_flag_spec
='${wl}--export-dynamic'
9080 # ancient GNU ld didn't support --whole-archive et. al.
9081 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9082 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9084 whole_archive_flag_spec
=
9086 supports_anon_versioning
=no
9087 case `$LD -v 2>&1` in
9088 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9089 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9090 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9091 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9092 *\
2.11.
*) ;; # other 2.11 versions
9093 *) supports_anon_versioning
=yes ;;
9096 # See if GNU ld supports shared libraries.
9099 # On AIX/PPC, the GNU linker is very broken
9100 if test "$host_cpu" != ia64
; then
9104 *** Warning: the GNU linker, at least up to release 2.19, is reported
9105 *** to be unable to reliably create shared libraries on AIX.
9106 *** Therefore, libtool is disabling shared libraries support. If you
9107 *** really care for shared libraries, you may want to install binutils
9108 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9109 *** You will then need to restart the configuration process.
9118 # see comment about AmigaOS4 .so support
9119 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 archive_expsym_cmds
=''
9123 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)'
9124 hardcode_libdir_flag_spec
='-L$libdir'
9125 hardcode_minus_L
=yes
9131 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9132 allow_undefined_flag
=unsupported
9133 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9134 # support --undefined. This deserves some investigation. FIXME
9135 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9141 cygwin
* | mingw
* | pw32
* | cegcc
*)
9142 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9143 # as there is no search path for DLLs.
9144 hardcode_libdir_flag_spec
='-L$libdir'
9145 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9146 allow_undefined_flag
=unsupported
9147 always_export_symbols
=no
9148 enable_shared_with_static_runtimes
=yes
9149 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9151 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9152 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9153 # If the export-symbols file already is a .def file (1st line
9154 # is EXPORTS), use it as is; otherwise, prepend...
9155 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9156 cp $export_symbols $output_objdir/$soname.def;
9158 echo EXPORTS > $output_objdir/$soname.def;
9159 cat $export_symbols >> $output_objdir/$soname.def;
9161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9168 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 link_all_deplibs
=yes
9174 hardcode_shlibpath_var
=no
9175 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9176 export_dynamic_flag_spec
='${wl}-E'
9177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9178 # Instead, shared libraries are loaded at an image base (0x10000000 by
9179 # default) and relocated if they conflict, which is a slow very memory
9180 # consuming and fragmenting process. To avoid this, we pick a random,
9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9183 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9184 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'
9187 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9189 if test "$host_os" = linux-dietlibc
; then
9190 case $cc_basename in
9191 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9194 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9195 && test "$tmp_diet" = no
9197 tmp_addflag
=' $pic_flag'
9198 tmp_sharedflag
='-shared'
9199 case $cc_basename,$host_cpu in
9200 pgcc
*) # Portland Group C compiler
9201 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'
9202 tmp_addflag
=' $pic_flag'
9204 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9205 # Portland Group f77 and f90 compilers
9206 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'
9207 tmp_addflag
=' $pic_flag -Mnomain' ;;
9208 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9209 tmp_addflag
=' -i_dynamic' ;;
9210 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9211 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9212 ifc
* | ifort
*) # Intel Fortran compiler
9213 tmp_addflag
=' -nofor_main' ;;
9214 lf95
*) # Lahey Fortran 8.1
9215 whole_archive_flag_spec
=
9216 tmp_sharedflag
='--shared' ;;
9217 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9218 tmp_sharedflag
='-qmkshrobj'
9220 nvcc
*) # Cuda Compiler Driver 2.2
9221 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'
9222 compiler_needs_object
=yes
9225 case `$CC -V 2>&1 | sed 5q` in
9226 *Sun\ C
*) # Sun C 5.9
9227 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'
9228 compiler_needs_object
=yes
9229 tmp_sharedflag
='-G' ;;
9230 *Sun\ F
*) # Sun Fortran 8.3
9231 tmp_sharedflag
='-G' ;;
9233 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 if test "x$supports_anon_versioning" = xyes
; then
9236 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238 echo "local: *; };" >> $output_objdir/$libname.ver~
9239 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9242 case $cc_basename in
9243 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9244 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9245 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9246 hardcode_libdir_flag_spec
=
9247 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9248 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9249 if test "x$supports_anon_versioning" = xyes
; then
9250 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9252 echo "local: *; };" >> $output_objdir/$libname.ver~
9253 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9263 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9264 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9267 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9273 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9277 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9278 *** create shared libraries on Solaris systems. Therefore, libtool
9279 *** is disabling shared libraries support. We urge you to upgrade GNU
9280 *** binutils to release 2.9.1 or newer. Another option is to modify
9281 *** your PATH or compiler configuration so that the native linker is
9282 *** used, and then restart.
9285 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9286 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9293 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9294 case `$LD -v 2>&1` in
9295 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9299 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9300 *** reliably create shared libraries on SCO systems. Therefore, libtool
9301 *** is disabling shared libraries support. We urge you to upgrade GNU
9302 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9303 *** your PATH or compiler configuration so that the native linker is
9304 *** used, and then restart.
9309 # For security reasons, it is highly recommended that you always
9310 # use absolute paths for naming shared libraries, and exclude the
9311 # DT_RUNPATH tag from executables and libraries. But doing so
9312 # requires that you compile everything twice, which is a pain.
9313 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9314 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9315 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_shlibpath_var
=no
9332 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9333 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9341 if test "$ld_shlibs" = no
; then
9343 hardcode_libdir_flag_spec
=
9344 export_dynamic_flag_spec
=
9345 whole_archive_flag_spec
=
9348 # PORTME fill in a description of your system's linker (not GNU ld)
9351 allow_undefined_flag
=unsupported
9352 always_export_symbols
=yes
9353 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'
9354 # Note: this linker hardcodes the directories in LIBPATH if there
9355 # are no directories specified by -L.
9356 hardcode_minus_L
=yes
9357 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9358 # Neither direct hardcoding nor static linking is supported with a
9360 hardcode_direct
=unsupported
9365 if test "$host_cpu" = ia64
; then
9366 # On IA64, the linker does run time linking by default, so we don't
9367 # have to do anything special.
9368 aix_use_runtimelinking
=no
9369 exp_sym_flag
='-Bexport'
9372 # If we're using GNU nm, then we don't want the "-C" option.
9373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9374 # Also, AIX nm treats weak defined symbols like other global
9375 # defined symbols, whereas GNU nm marks them as "W".
9376 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9377 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'
9379 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'
9381 aix_use_runtimelinking
=no
9383 # Test if we are trying to use run time linking or normal
9384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9385 # need to do runtime linking.
9386 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9387 for ld_flag
in $LDFLAGS; do
9388 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9389 aix_use_runtimelinking
=yes
9396 exp_sym_flag
='-bexport'
9397 no_entry_flag
='-bnoentry'
9400 # When large executables or shared objects are built, AIX ld can
9401 # have problems creating the table of contents. If linking a library
9402 # or program results in "error TOC overflow" add -mminimal-toc to
9403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9408 hardcode_direct_absolute
=yes
9409 hardcode_libdir_separator
=':'
9410 link_all_deplibs
=yes
9411 file_list_spec
='${wl}-f,'
9413 if test "$GCC" = yes; then
9414 case $host_os in aix4.
[012]|aix4.
[012].
*)
9415 # We only want to do this on AIX 4.2 and lower, the check
9416 # below for broken collect2 doesn't work under 4.3+
9417 collect2name
=`${CC} -print-prog-name=collect2`
9418 if test -f "$collect2name" &&
9419 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9421 # We have reworked collect2
9424 # We have old collect2
9425 hardcode_direct
=unsupported
9426 # It fails to find uninstalled libraries when the uninstalled
9427 # path is not listed in the libpath. Setting hardcode_minus_L
9428 # to unsupported forces relinking
9429 hardcode_minus_L
=yes
9430 hardcode_libdir_flag_spec
='-L$libdir'
9431 hardcode_libdir_separator
=
9435 shared_flag
='-shared'
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag
="$shared_flag "'${wl}-G'
9441 if test "$host_cpu" = ia64
; then
9442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9443 # chokes on -Wl,-G. The following line is correct:
9446 if test "$aix_use_runtimelinking" = yes; then
9447 shared_flag
='${wl}-G'
9449 shared_flag
='${wl}-bM:SRE'
9454 export_dynamic_flag_spec
='${wl}-bexpall'
9455 # It seems that -bexpall does not export symbols beginning with
9456 # underscore (_), so it is better to generate a list of symbols to export.
9457 always_export_symbols
=yes
9458 if test "$aix_use_runtimelinking" = yes; then
9459 # Warning - without using the other runtime loading flags (-brtl),
9460 # -berok will link without error, but may produce a broken library.
9461 allow_undefined_flag
='-berok'
9462 # Determine the default libpath from the value encoded in an
9464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9475 if ac_fn_c_try_link
"$LINENO"; then :
9477 lt_aix_libpath_sed
='
9478 /Import File Strings/,/^$/ {
9484 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 # Check for a 64-bit object if we didn't find anything.
9486 if test -z "$aix_libpath"; then
9487 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 rm -f core conftest.err conftest.
$ac_objext \
9491 conftest
$ac_exeext conftest.
$ac_ext
9492 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9494 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9495 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"
9497 if test "$host_cpu" = ia64
; then
9498 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9499 allow_undefined_flag
="-z nodefs"
9500 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"
9502 # Determine the default libpath from the value encoded in an
9504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9515 if ac_fn_c_try_link
"$LINENO"; then :
9517 lt_aix_libpath_sed
='
9518 /Import File Strings/,/^$/ {
9524 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9525 # Check for a 64-bit object if we didn't find anything.
9526 if test -z "$aix_libpath"; then
9527 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530 rm -f core conftest.err conftest.
$ac_objext \
9531 conftest
$ac_exeext conftest.
$ac_ext
9532 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9534 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9535 # Warning - without using the other run time loading flags,
9536 # -berok will link without error, but may produce a broken library.
9537 no_undefined_flag
=' ${wl}-bernotok'
9538 allow_undefined_flag
=' ${wl}-berok'
9539 if test "$with_gnu_ld" = yes; then
9540 # We only use this code for GNU lds that support --whole-archive.
9541 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9543 # Exported symbols can be pulled into shared objects from archives
9544 whole_archive_flag_spec
='$convenience'
9546 archive_cmds_need_lc
=yes
9547 # This is similar to how AIX traditionally builds its shared libraries.
9548 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'
9556 # see comment about AmigaOS4 .so support
9557 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558 archive_expsym_cmds
=''
9561 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)'
9562 hardcode_libdir_flag_spec
='-L$libdir'
9563 hardcode_minus_L
=yes
9569 export_dynamic_flag_spec
=-rdynamic
9572 cygwin
* | mingw
* | pw32
* | cegcc
*)
9573 # When not using gcc, we currently assume that we are using
9574 # Microsoft Visual C++.
9575 # hardcode_libdir_flag_spec is actually meaningless, as there is
9576 # no search path for DLLs.
9577 hardcode_libdir_flag_spec
=' '
9578 allow_undefined_flag
=unsupported
9579 # Tell ltmain to make .lib files, not .a files.
9581 # Tell ltmain to make .dll files, not .so files.
9583 # FIXME: Setting linknames here is a bad hack.
9584 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9585 # The linker will automatically build a .lib file if we build a DLL.
9586 old_archive_from_new_cmds
='true'
9587 # FIXME: Should let the user specify the lib program.
9588 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9589 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9590 enable_shared_with_static_runtimes
=yes
9593 darwin
* | rhapsody
*)
9596 archive_cmds_need_lc
=no
9598 hardcode_automatic
=yes
9599 hardcode_shlibpath_var
=unsupported
9600 if test "$lt_cv_ld_force_load" = "yes"; then
9601 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\"`'
9603 whole_archive_flag_spec
=''
9605 link_all_deplibs
=yes
9606 allow_undefined_flag
="$_lt_dar_allow_undefined"
9607 case $cc_basename in
9608 ifort
*) _lt_dar_can_shared
=yes ;;
9609 *) _lt_dar_can_shared
=$GCC ;;
9611 if test "$_lt_dar_can_shared" = "yes"; then
9612 output_verbose_link_cmd
=func_echo_all
9613 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9614 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9615 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}"
9616 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}"
9625 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_libdir_flag_spec
='-L$libdir'
9627 hardcode_shlibpath_var
=no
9630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9631 # support. Future versions do this automatically, but an explicit c++rt0.o
9632 # does not break anything, and helps significantly (at the cost of a little
9635 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9636 hardcode_libdir_flag_spec
='-R$libdir'
9638 hardcode_shlibpath_var
=no
9641 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9643 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_minus_L
=yes
9646 hardcode_shlibpath_var
=no
9649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9650 freebsd
* | dragonfly
*)
9651 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9652 hardcode_libdir_flag_spec
='-R$libdir'
9654 hardcode_shlibpath_var
=no
9658 if test "$GCC" = yes; then
9659 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'
9661 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'
9663 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9664 hardcode_libdir_separator
=:
9667 # hardcode_minus_L: Not really in the search PATH,
9668 # but as the default location of the library.
9669 hardcode_minus_L
=yes
9670 export_dynamic_flag_spec
='${wl}-E'
9674 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9675 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9679 if test "$with_gnu_ld" = no
; then
9680 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9681 hardcode_libdir_flag_spec_ld
='+b $libdir'
9682 hardcode_libdir_separator
=:
9684 hardcode_direct_absolute
=yes
9685 export_dynamic_flag_spec
='${wl}-E'
9686 # hardcode_minus_L: Not really in the search PATH,
9687 # but as the default location of the library.
9688 hardcode_minus_L
=yes
9693 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9696 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9715 # Older versions of the 11.00 compiler do not understand -b yet
9716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9718 $as_echo_n "checking if $CC understands -b... " >&6; }
9719 if ${lt_cv_prog_compiler__b+:} false
; then :
9720 $as_echo_n "(cached) " >&6
9722 lt_cv_prog_compiler__b
=no
9723 save_LDFLAGS
="$LDFLAGS"
9724 LDFLAGS
="$LDFLAGS -b"
9725 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9726 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9727 # The linker can only warn and ignore the option if not recognized
9728 # So say no if there are warnings
9729 if test -s conftest.err
; then
9730 # Append any errors to the config.log.
9731 cat conftest.err
1>&5
9732 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9733 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9734 if diff conftest.exp conftest.er2
>/dev
/null
; then
9735 lt_cv_prog_compiler__b
=yes
9738 lt_cv_prog_compiler__b
=yes
9742 LDFLAGS
="$save_LDFLAGS"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9746 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9748 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9749 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9757 if test "$with_gnu_ld" = no
; then
9758 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9759 hardcode_libdir_separator
=:
9764 hardcode_shlibpath_var
=no
9768 hardcode_direct_absolute
=yes
9769 export_dynamic_flag_spec
='${wl}-E'
9771 # hardcode_minus_L: Not really in the search PATH,
9772 # but as the default location of the library.
9773 hardcode_minus_L
=yes
9779 irix5
* | irix6
* | nonstopux
*)
9780 if test "$GCC" = yes; then
9781 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'
9782 # Try to use the -exported_symbol ld option, if it does not
9783 # work, assume that -exports_file does not work either and
9784 # implicitly export all symbols.
9785 save_LDFLAGS
="$LDFLAGS"
9786 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9791 if ac_fn_c_try_link
"$LINENO"; then :
9792 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'
9795 rm -f core conftest.err conftest.
$ac_objext \
9796 conftest
$ac_exeext conftest.
$ac_ext
9797 LDFLAGS
="$save_LDFLAGS"
9799 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'
9800 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'
9802 archive_cmds_need_lc
='no'
9803 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9804 hardcode_libdir_separator
=:
9806 link_all_deplibs
=yes
9810 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9811 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9813 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9815 hardcode_libdir_flag_spec
='-R$libdir'
9817 hardcode_shlibpath_var
=no
9821 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9824 hardcode_libdir_separator
=:
9825 hardcode_shlibpath_var
=no
9832 if test -f /usr
/libexec
/ld.so
; then
9834 hardcode_shlibpath_var
=no
9835 hardcode_direct_absolute
=yes
9836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9837 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9839 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9840 export_dynamic_flag_spec
='${wl}-E'
9843 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9844 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_libdir_flag_spec
='-R$libdir'
9848 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9849 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9859 hardcode_libdir_flag_spec
='-L$libdir'
9860 hardcode_minus_L
=yes
9861 allow_undefined_flag
=unsupported
9862 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'
9863 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9867 if test "$GCC" = yes; then
9868 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9869 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'
9871 allow_undefined_flag
=' -expect_unresolved \*'
9872 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'
9874 archive_cmds_need_lc
='no'
9875 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator
=:
9879 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9880 if test "$GCC" = yes; then
9881 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9882 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'
9883 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9885 allow_undefined_flag
=' -expect_unresolved \*'
9886 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'
9887 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~
9888 $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'
9890 # Both c and cxx compiler support -rpath directly
9891 hardcode_libdir_flag_spec
='-rpath $libdir'
9893 archive_cmds_need_lc
='no'
9894 hardcode_libdir_separator
=:
9898 no_undefined_flag
=' -z defs'
9899 if test "$GCC" = yes; then
9901 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9903 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9905 case `$CC -V 2>&1` in
9908 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9914 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9916 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9920 hardcode_libdir_flag_spec
='-R$libdir'
9921 hardcode_shlibpath_var
=no
9923 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9925 # The compiler driver will combine and reorder linker options,
9926 # but understands `-z linker_flag'. GCC discards it without `$wl',
9927 # but is careful enough not to reorder.
9928 # Supported since Solaris 2.6 (maybe 2.5.1?)
9929 if test "$GCC" = yes; then
9930 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9932 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9936 link_all_deplibs
=yes
9940 if test "x$host_vendor" = xsequent
; then
9941 # Use $CC to link under sequent, because it throws in some extra .o
9942 # files that make .init and .fini sections work.
9943 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_libdir_flag_spec
='-L$libdir'
9949 hardcode_minus_L
=yes
9950 hardcode_shlibpath_var
=no
9954 case $host_vendor in
9956 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_direct
=yes # is this really true???
9960 ## LD is ld it makes a PLAMLIB
9961 ## CC just makes a GrossModule.
9962 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9963 reload_cmds
='$CC -r -o $output$reload_objs'
9967 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9971 runpath_var
='LD_RUN_PATH'
9972 hardcode_shlibpath_var
=no
9976 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_shlibpath_var
=no
9978 export_dynamic_flag_spec
='-Bexport'
9982 if test -d /usr
/nec
; then
9983 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 hardcode_shlibpath_var
=no
9985 runpath_var
=LD_RUN_PATH
9986 hardcode_runpath_var
=yes
9991 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9992 no_undefined_flag
='${wl}-z,text'
9993 archive_cmds_need_lc
=no
9994 hardcode_shlibpath_var
=no
9995 runpath_var
='LD_RUN_PATH'
9997 if test "$GCC" = yes; then
9998 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10006 sysv5
* | sco3.2v5
* | sco5v6
*)
10007 # Note: We can NOT use -z defs as we might desire, because we do not
10008 # link with -lc, and that would cause any symbols used from libc to
10009 # always be unresolved, which means just about no library would
10010 # ever link correctly. If we're not using GNU ld we use -z text
10011 # though, which does catch some bad symbols but isn't as heavy-handed
10013 no_undefined_flag
='${wl}-z,text'
10014 allow_undefined_flag
='${wl}-z,nodefs'
10015 archive_cmds_need_lc
=no
10016 hardcode_shlibpath_var
=no
10017 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10018 hardcode_libdir_separator
=':'
10019 link_all_deplibs
=yes
10020 export_dynamic_flag_spec
='${wl}-Bexport'
10021 runpath_var
='LD_RUN_PATH'
10023 if test "$GCC" = yes; then
10024 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_libdir_flag_spec
='-L$libdir'
10035 hardcode_shlibpath_var
=no
10043 if test x
$host_vendor = xsni
; then
10045 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10046 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10053 $as_echo "$ld_shlibs" >&6; }
10054 test "$ld_shlibs" = no
&& can_build_shared
=no
10056 with_gnu_ld
=$with_gnu_ld
10073 # Do we need to explicitly link libc?
10075 case "x$archive_cmds_need_lc" in
10077 # Assume -lc should be added
10078 archive_cmds_need_lc
=yes
10080 if test "$enable_shared" = yes && test "$GCC" = yes; then
10081 case $archive_cmds in
10083 # FIXME: we may have to deal with multi-command sequences.
10086 # Test whether the compiler implicitly links with -lc since on some
10087 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10088 # to ld, don't add -lc before -lgcc.
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10090 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10091 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10092 $as_echo_n "(cached) " >&6
10095 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10098 (eval $ac_compile) 2>&5
10100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101 test $ac_status = 0; } 2>conftest.err
; then
10104 libobjs
=conftest.
$ac_objext
10106 wl
=$lt_prog_compiler_wl
10107 pic_flag
=$lt_prog_compiler_pic
10113 lt_save_allow_undefined_flag
=$allow_undefined_flag
10114 allow_undefined_flag
=
10115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10116 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10119 test $ac_status = 0; }
10121 lt_cv_archive_cmds_need_lc
=no
10123 lt_cv_archive_cmds_need_lc
=yes
10125 allow_undefined_flag
=$lt_save_allow_undefined_flag
10127 cat conftest.err
1>&5
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10133 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10134 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10298 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10300 if test "$GCC" = yes; then
10302 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10303 *) lt_awk_arg
="/^libraries:/" ;;
10306 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10307 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10309 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10310 case $lt_search_path_spec in
10312 # if the path contains ";" then we assume it to be the separator
10313 # otherwise default to the standard path separator (i.e. ":") - it is
10314 # assumed that no part of a normal pathname contains ";" but that should
10315 # okay in the real world where ";" in dirpaths is itself problematic.
10316 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10319 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10322 # Ok, now we have the path, separated by spaces, we can step through it
10323 # and add multilib dir if necessary.
10324 lt_tmp_lt_search_path_spec
=
10325 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10326 for lt_sys_path
in $lt_search_path_spec; do
10327 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10328 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10330 test -d "$lt_sys_path" && \
10331 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10334 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10335 BEGIN {RS=" "; FS="/|\n";} {
10338 for (lt_i = NF; lt_i > 0; lt_i--) {
10339 if ($lt_i != "" && $lt_i != ".") {
10340 if ($lt_i == "..") {
10343 if (lt_count == 0) {
10344 lt_foo="/" $lt_i lt_foo;
10351 if (lt_foo != "") { lt_freq[lt_foo]++; }
10352 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10354 # AWK program above erroneously prepends '/' to C:/dos/paths
10357 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10358 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10360 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10362 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10364 library_names_spec
=
10365 libname_spec
='lib$name'
10369 postuninstall_cmds
=
10373 shlibpath_overrides_runpath
=unknown
10375 dynamic_linker
="$host_os ld.so"
10376 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10377 need_lib_prefix
=unknown
10378 hardcode_into_libs
=no
10380 # when you set need_version to no, make sure it does not cause -set_version
10381 # flags to be left without arguments
10382 need_version
=unknown
10387 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10388 shlibpath_var
=LIBPATH
10390 # AIX 3 has no versioning support, so we append a major version to the name.
10391 soname_spec
='${libname}${release}${shared_ext}$major'
10398 hardcode_into_libs
=yes
10399 if test "$host_cpu" = ia64
; then
10400 # AIX 5 supports IA64
10401 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10402 shlibpath_var
=LD_LIBRARY_PATH
10404 # With GCC up to 2.95.x, collect2 would create an import file
10405 # for dependence libraries. The import file would start with
10406 # the line `#! .'. This would cause the generated library to
10407 # depend on `.', always an invalid library. This was fixed in
10408 # development snapshots of GCC prior to 3.0.
10410 aix4 | aix4.
[01] | aix4.
[01].
*)
10411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10413 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10416 can_build_shared
=no
10420 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10421 # soname into executable. Probably we can add versioning support to
10422 # collect2, so additional links can be useful in future.
10423 if test "$aix_use_runtimelinking" = yes; then
10424 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10425 # instead of lib<name>.a to let people know that these are not
10426 # typical AIX shared libraries.
10427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 # We preserve .a as extension for shared libraries through AIX4.2
10430 # and later when we are not doing run time linking.
10431 library_names_spec
='${libname}${release}.a $libname.a'
10432 soname_spec
='${libname}${release}${shared_ext}$major'
10434 shlibpath_var
=LIBPATH
10441 # Since July 2007 AmigaOS4 officially supports .so libraries.
10442 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 library_names_spec
='$libname.ixlibrary $libname.a'
10447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10448 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'
10454 library_names_spec
='${libname}${shared_ext}'
10455 dynamic_linker
="$host_os ld.so"
10456 shlibpath_var
=LIBRARY_PATH
10462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec
='${libname}${release}${shared_ext}$major'
10464 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10465 shlibpath_var
=LD_LIBRARY_PATH
10466 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10467 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10468 # the default ld.so.conf also contains /usr/contrib/lib and
10469 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10470 # libtool to hard-code these into programs
10473 cygwin
* | mingw
* | pw32
* | cegcc
*)
10474 version_type
=windows
10479 case $GCC,$host_os in
10480 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10481 library_names_spec
='$libname.dll.a'
10482 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10483 postinstall_cmds
='base_file=`basename \${file}`~
10484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10485 dldir=$destdir/`dirname \$dlpath`~
10486 test -d \$dldir || mkdir -p \$dldir~
10487 $install_prog $dir/$dlname \$dldir/$dlname~
10488 chmod a+x \$dldir/$dlname~
10489 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10490 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10492 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10493 dlpath=$dir/\$dldll~
10495 shlibpath_overrides_runpath
=yes
10499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10500 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10502 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10505 # MinGW DLLs use traditional 'lib' prefix
10506 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10509 # pw32 DLLs use 'pw' prefix rather than 'lib'
10510 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10516 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10519 dynamic_linker
='Win32 ld.exe'
10520 # FIXME: first we should search . and the directory the executable is in
10524 darwin
* | rhapsody
*)
10525 dynamic_linker
="$host_os dyld"
10526 version_type
=darwin
10529 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10530 soname_spec
='${libname}${release}${major}$shared_ext'
10531 shlibpath_overrides_runpath
=yes
10532 shlibpath_var
=DYLD_LIBRARY_PATH
10533 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10535 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10536 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10544 soname_spec
='${libname}${release}${shared_ext}$major'
10545 shlibpath_var
=LD_LIBRARY_PATH
10548 freebsd
* | dragonfly
*)
10549 # DragonFly does not have aout. When/if they implement a new
10550 # versioning mechanism, adjust this.
10551 if test -x /usr
/bin
/objformat
; then
10552 objformat
=`/usr/bin/objformat`
10555 freebsd
[23].
*) objformat
=aout
;;
10556 *) objformat
=elf
;;
10559 version_type
=freebsd-
$objformat
10560 case $version_type in
10562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10567 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10571 shlibpath_var
=LD_LIBRARY_PATH
10574 shlibpath_overrides_runpath
=yes
10576 freebsd3.
[01]* | freebsdelf3.
[01]*)
10577 shlibpath_overrides_runpath
=yes
10578 hardcode_into_libs
=yes
10580 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10581 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10582 shlibpath_overrides_runpath
=no
10583 hardcode_into_libs
=yes
10585 *) # from 4.6 on, and DragonFly
10586 shlibpath_overrides_runpath
=yes
10587 hardcode_into_libs
=yes
10596 dynamic_linker
="$host_os runtime_loader"
10597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598 soname_spec
='${libname}${release}${shared_ext}$major'
10599 shlibpath_var
=LIBRARY_PATH
10600 shlibpath_overrides_runpath
=yes
10601 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10602 hardcode_into_libs
=yes
10605 hpux9
* | hpux10
* | hpux11
*)
10606 # Give a soname corresponding to the major version so that dld.sl refuses to
10607 # link against other versions.
10614 hardcode_into_libs
=yes
10615 dynamic_linker
="$host_os dld.so"
10616 shlibpath_var
=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec
='${libname}${release}${shared_ext}$major'
10620 if test "X$HPUX_IA64_MODE" = X32
; then
10621 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10623 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10625 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10629 hardcode_into_libs
=yes
10630 dynamic_linker
="$host_os dld.sl"
10631 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10632 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec
='${libname}${release}${shared_ext}$major'
10635 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10636 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10640 dynamic_linker
="$host_os dld.sl"
10641 shlibpath_var
=SHLIB_PATH
10642 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
10647 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10648 postinstall_cmds
='chmod 555 $lib'
10649 # or fails outright, so override atomically:
10650 install_override_mode
=555
10657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658 soname_spec
='${libname}${release}${shared_ext}$major'
10659 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10660 shlibpath_var
=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath
=no
10662 hardcode_into_libs
=yes
10665 irix5
* | irix6
* | nonstopux
*)
10667 nonstopux
*) version_type
=nonstopux
;;
10669 if test "$lt_cv_prog_gnu_ld" = yes; then
10677 soname_spec
='${libname}${release}${shared_ext}$major'
10678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10680 irix5
* | nonstopux
*)
10681 libsuff
= shlibsuff
=
10684 case $LD in # libtool.m4 will add one of these switches to LD
10685 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10686 libsuff
= shlibsuff
= libmagic
=32-bit;;
10687 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10688 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10689 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10690 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10691 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10695 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10696 shlibpath_overrides_runpath
=no
10697 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10698 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10699 hardcode_into_libs
=yes
10702 # No shared lib support for Linux oldld, aout, or coff.
10703 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10707 # This must be Linux ELF.
10709 # uclinux* changes (here and below) have been submitted to the libtool
10710 # project, but have not yet been accepted: they are GCC-local changes
10711 # for the time being. (See
10712 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10713 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec
='${libname}${release}${shared_ext}$major'
10719 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10720 shlibpath_var
=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath
=no
10723 # Some binutils ld are patched to set DT_RUNPATH
10724 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10725 $as_echo_n "(cached) " >&6
10727 lt_cv_shlibpath_overrides_runpath
=no
10728 save_LDFLAGS
=$LDFLAGS
10729 save_libdir
=$libdir
10730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10743 if ac_fn_c_try_link
"$LINENO"; then :
10744 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10745 lt_cv_shlibpath_overrides_runpath
=yes
10748 rm -f core conftest.err conftest.
$ac_objext \
10749 conftest
$ac_exeext conftest.
$ac_ext
10750 LDFLAGS
=$save_LDFLAGS
10751 libdir
=$save_libdir
10755 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10757 # This implies no fast_install, which is unacceptable.
10758 # Some rework will be needed to allow for fast_install
10759 # before this can be enabled.
10760 hardcode_into_libs
=yes
10762 # Append ld.so.conf contents to the search path
10763 if test -f /etc
/ld.so.conf
; then
10764 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' ' '`
10765 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10768 # We used to test for /lib/ld.so.1 and disable shared libraries on
10769 # powerpc, because MkLinux only supported shared libraries with the
10770 # GNU dynamic linker. Since this was broken with cross compilers,
10771 # most powerpc-linux boxes support dynamic linking these days and
10772 # people can always --disable-shared, the test was removed, and we
10773 # assume the GNU/Linux dynamic linker is in use.
10774 dynamic_linker
='GNU/Linux ld.so'
10781 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10783 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10784 dynamic_linker
='NetBSD (a.out) ld.so'
10786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10787 soname_spec
='${libname}${release}${shared_ext}$major'
10788 dynamic_linker
='NetBSD ld.elf_so'
10790 shlibpath_var
=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath
=yes
10792 hardcode_into_libs
=yes
10797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 shlibpath_var
=LD_LIBRARY_PATH
10799 shlibpath_overrides_runpath
=yes
10806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 soname_spec
='${libname}${release}${shared_ext}$major'
10808 shlibpath_var
=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath
=no
10810 hardcode_into_libs
=yes
10811 dynamic_linker
='ldqnx.so'
10816 sys_lib_dlsearch_path_spec
="/usr/lib"
10818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10820 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10821 *) need_version
=no
;;
10823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10824 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10825 shlibpath_var
=LD_LIBRARY_PATH
10826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10828 openbsd2.
[89] | openbsd2.
[89].
*)
10829 shlibpath_overrides_runpath
=no
10832 shlibpath_overrides_runpath
=yes
10836 shlibpath_overrides_runpath
=yes
10841 libname_spec
='$name'
10844 library_names_spec
='$libname${shared_ext} $libname.a'
10845 dynamic_linker
='OS/2 ld.exe'
10846 shlibpath_var
=LIBPATH
10849 osf3
* | osf4
* | osf5
*)
10853 soname_spec
='${libname}${release}${shared_ext}$major'
10854 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 shlibpath_var
=LD_LIBRARY_PATH
10856 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10857 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec
='${libname}${release}${shared_ext}$major'
10870 shlibpath_var
=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath
=yes
10872 hardcode_into_libs
=yes
10873 # ldd complains unless libraries are executable
10874 postinstall_cmds
='chmod +x $lib'
10879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10880 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10881 shlibpath_var
=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath
=yes
10883 if test "$with_gnu_ld" = yes; then
10891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec
='${libname}${release}${shared_ext}$major'
10893 shlibpath_var
=LD_LIBRARY_PATH
10894 case $host_vendor in
10896 shlibpath_overrides_runpath
=no
10898 runpath_var
=LD_RUN_PATH
10906 shlibpath_overrides_runpath
=no
10907 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10913 if test -d /usr
/nec
;then
10915 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10916 soname_spec
='$libname${shared_ext}.$major'
10917 shlibpath_var
=LD_LIBRARY_PATH
10921 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10922 version_type
=freebsd-elf
10925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10926 soname_spec
='${libname}${release}${shared_ext}$major'
10927 shlibpath_var
=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath
=yes
10929 hardcode_into_libs
=yes
10930 if test "$with_gnu_ld" = yes; then
10931 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10933 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10936 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10940 sys_lib_dlsearch_path_spec
='/usr/lib'
10944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 shlibpath_var
=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath
=no
10951 hardcode_into_libs
=yes
10956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec
='${libname}${release}${shared_ext}$major'
10958 shlibpath_var
=LD_LIBRARY_PATH
10961 # Shared libraries for VwWorks, >= 7 only at this stage
10962 # and (fpic) still incompatible with "large" code models
10963 # in a few configurations. Only for RTP mode in any case,
10964 # and upon explicit request at configure time.
10967 case ${with_multisubdir}-${enable_shared} in
10974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec
='${libname}${release}${shared_ext}$major'
10976 dynamic_linker
="$host_os module_loader"
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10985 $as_echo "$dynamic_linker" >&6; }
10986 test "$dynamic_linker" = no
&& can_build_shared
=no
10988 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10989 if test "$GCC" = yes; then
10990 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10993 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10994 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10996 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10997 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11092 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11094 if test -n "$hardcode_libdir_flag_spec" ||
11095 test -n "$runpath_var" ||
11096 test "X$hardcode_automatic" = "Xyes" ; then
11098 # We can hardcode non-existent directories.
11099 if test "$hardcode_direct" != no
&&
11100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11101 # have to relink, otherwise we might link with an installed library
11102 # when we should be linking with a yet-to-be-installed one
11103 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11104 test "$hardcode_minus_L" != no
; then
11105 # Linking always hardcodes the temporary library directory.
11106 hardcode_action
=relink
11108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11109 hardcode_action
=immediate
11112 # We cannot hardcode anything, or else we can only hardcode existing
11114 hardcode_action
=unsupported
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11117 $as_echo "$hardcode_action" >&6; }
11119 if test "$hardcode_action" = relink ||
11120 test "$inherit_rpath" = yes; then
11121 # Fast installation is not supported
11122 enable_fast_install
=no
11123 elif test "$shlibpath_overrides_runpath" = yes ||
11124 test "$enable_shared" = no
; then
11125 # Fast installation is not necessary
11126 enable_fast_install
=needless
11134 if test "x$enable_dlopen" != xyes
; then
11135 enable_dlopen
=unknown
11136 enable_dlopen_self
=unknown
11137 enable_dlopen_self_static
=unknown
11144 lt_cv_dlopen
="load_add_on"
11146 lt_cv_dlopen_self
=yes
11149 mingw
* | pw32
* | cegcc
*)
11150 lt_cv_dlopen
="LoadLibrary"
11155 lt_cv_dlopen
="dlopen"
11160 # if libdl is installed we need to link against it
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11163 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11164 $as_echo_n "(cached) " >&6
11166 ac_check_lib_save_LIBS
=$LIBS
11168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11171 /* Override any GCC internal prototype to avoid an error.
11172 Use char because int might match the return type of a GCC
11173 builtin and then its argument prototype would still apply. */
11186 if ac_fn_c_try_link
"$LINENO"; then :
11187 ac_cv_lib_dl_dlopen
=yes
11189 ac_cv_lib_dl_dlopen
=no
11191 rm -f core conftest.err conftest.
$ac_objext \
11192 conftest
$ac_exeext conftest.
$ac_ext
11193 LIBS
=$ac_check_lib_save_LIBS
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11197 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11198 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11201 lt_cv_dlopen
="dyld"
11203 lt_cv_dlopen_self
=yes
11210 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11211 if test "x$ac_cv_func_shl_load" = xyes
; then :
11212 lt_cv_dlopen
="shl_load"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11215 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11216 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11217 $as_echo_n "(cached) " >&6
11219 ac_check_lib_save_LIBS
=$LIBS
11221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11234 return shl_load ();
11239 if ac_fn_c_try_link
"$LINENO"; then :
11240 ac_cv_lib_dld_shl_load
=yes
11242 ac_cv_lib_dld_shl_load
=no
11244 rm -f core conftest.err conftest.
$ac_objext \
11245 conftest
$ac_exeext conftest.
$ac_ext
11246 LIBS
=$ac_check_lib_save_LIBS
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11249 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11250 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11251 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11253 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11254 if test "x$ac_cv_func_dlopen" = xyes
; then :
11255 lt_cv_dlopen
="dlopen"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11259 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11260 $as_echo_n "(cached) " >&6
11262 ac_check_lib_save_LIBS
=$LIBS
11264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11282 if ac_fn_c_try_link
"$LINENO"; then :
11283 ac_cv_lib_dl_dlopen
=yes
11285 ac_cv_lib_dl_dlopen
=no
11287 rm -f core conftest.err conftest.
$ac_objext \
11288 conftest
$ac_exeext conftest.
$ac_ext
11289 LIBS
=$ac_check_lib_save_LIBS
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11293 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11294 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11297 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11298 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11299 $as_echo_n "(cached) " >&6
11301 ac_check_lib_save_LIBS
=$LIBS
11302 LIBS
="-lsvld $LIBS"
11303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11321 if ac_fn_c_try_link
"$LINENO"; then :
11322 ac_cv_lib_svld_dlopen
=yes
11324 ac_cv_lib_svld_dlopen
=no
11326 rm -f core conftest.err conftest.
$ac_objext \
11327 conftest
$ac_exeext conftest.
$ac_ext
11328 LIBS
=$ac_check_lib_save_LIBS
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11331 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11332 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11333 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11336 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11337 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11338 $as_echo_n "(cached) " >&6
11340 ac_check_lib_save_LIBS
=$LIBS
11342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11355 return dld_link ();
11360 if ac_fn_c_try_link
"$LINENO"; then :
11361 ac_cv_lib_dld_dld_link
=yes
11363 ac_cv_lib_dld_dld_link
=no
11365 rm -f core conftest.err conftest.
$ac_objext \
11366 conftest
$ac_exeext conftest.
$ac_ext
11367 LIBS
=$ac_check_lib_save_LIBS
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11370 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11371 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11372 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11393 if test "x$lt_cv_dlopen" != xno
; then
11399 case $lt_cv_dlopen in
11401 save_CPPFLAGS
="$CPPFLAGS"
11402 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11404 save_LDFLAGS
="$LDFLAGS"
11405 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11408 LIBS
="$lt_cv_dlopen_libs $LIBS"
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11411 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11412 if ${lt_cv_dlopen_self+:} false
; then :
11413 $as_echo_n "(cached) " >&6
11415 if test "$cross_compiling" = yes; then :
11416 lt_cv_dlopen_self
=cross
11418 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11419 lt_status
=$lt_dlunknown
11420 cat > conftest.
$ac_ext <<_LT_EOF
11421 #line 11421 "configure"
11422 #include "confdefs.h"
11431 # define LT_DLGLOBAL RTLD_GLOBAL
11434 # define LT_DLGLOBAL DL_GLOBAL
11436 # define LT_DLGLOBAL 0
11440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11441 find out it does not work in some platform. */
11442 #ifndef LT_DLLAZY_OR_NOW
11444 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11447 # define LT_DLLAZY_OR_NOW DL_LAZY
11450 # define LT_DLLAZY_OR_NOW RTLD_NOW
11453 # define LT_DLLAZY_OR_NOW DL_NOW
11455 # define LT_DLLAZY_OR_NOW 0
11462 /* When -fvisbility=hidden is used, assume the code has been annotated
11463 correspondingly for the symbols needed. */
11464 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11465 void fnord () __attribute__((visibility("default")));
11468 void fnord () { int i=42; }
11471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11472 int status = $lt_dlunknown;
11476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11479 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11480 else puts (dlerror ());
11482 /* dlclose (self); */
11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11491 (eval $ac_link) 2>&5
11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11495 (.
/conftest
; exit; ) >&5 2>/dev
/null
11497 case x
$lt_status in
11498 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11499 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11500 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11503 # compilation failed
11504 lt_cv_dlopen_self
=no
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11512 $as_echo "$lt_cv_dlopen_self" >&6; }
11514 if test "x$lt_cv_dlopen_self" = xyes
; then
11515 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11517 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11518 if ${lt_cv_dlopen_self_static+:} false
; then :
11519 $as_echo_n "(cached) " >&6
11521 if test "$cross_compiling" = yes; then :
11522 lt_cv_dlopen_self_static
=cross
11524 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11525 lt_status
=$lt_dlunknown
11526 cat > conftest.
$ac_ext <<_LT_EOF
11527 #line 11527 "configure"
11528 #include "confdefs.h"
11537 # define LT_DLGLOBAL RTLD_GLOBAL
11540 # define LT_DLGLOBAL DL_GLOBAL
11542 # define LT_DLGLOBAL 0
11546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11547 find out it does not work in some platform. */
11548 #ifndef LT_DLLAZY_OR_NOW
11550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11553 # define LT_DLLAZY_OR_NOW DL_LAZY
11556 # define LT_DLLAZY_OR_NOW RTLD_NOW
11559 # define LT_DLLAZY_OR_NOW DL_NOW
11561 # define LT_DLLAZY_OR_NOW 0
11568 /* When -fvisbility=hidden is used, assume the code has been annotated
11569 correspondingly for the symbols needed. */
11570 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11571 void fnord () __attribute__((visibility("default")));
11574 void fnord () { int i=42; }
11577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11578 int status = $lt_dlunknown;
11582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11585 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11586 else puts (dlerror ());
11588 /* dlclose (self); */
11596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11597 (eval $ac_link) 2>&5
11599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11600 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11601 (.
/conftest
; exit; ) >&5 2>/dev
/null
11603 case x
$lt_status in
11604 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11605 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11606 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11609 # compilation failed
11610 lt_cv_dlopen_self_static
=no
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11618 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11621 CPPFLAGS
="$save_CPPFLAGS"
11622 LDFLAGS
="$save_LDFLAGS"
11627 case $lt_cv_dlopen_self in
11628 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11629 *) enable_dlopen_self
=unknown
;;
11632 case $lt_cv_dlopen_self_static in
11633 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11634 *) enable_dlopen_self_static
=unknown
;;
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11657 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11658 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11659 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11660 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11662 $as_echo "yes" >&6; }
11664 # FIXME - insert some real tests, host_os isn't really good enough
11667 if test -n "$STRIP" ; then
11668 striplib
="$STRIP -x"
11669 old_striplib
="$STRIP -S"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11671 $as_echo "yes" >&6; }
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11695 # Report which library types will actually be built
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11697 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11699 $as_echo "$can_build_shared" >&6; }
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11702 $as_echo_n "checking whether to build shared libraries... " >&6; }
11703 test "$can_build_shared" = "no" && enable_shared
=no
11705 # On AIX, shared libraries and static libraries use the same namespace, and
11706 # are all built from PIC.
11709 test "$enable_shared" = yes && enable_static
=no
11710 if test -n "$RANLIB"; then
11711 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11712 postinstall_cmds
='$RANLIB $lib'
11717 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11718 test "$enable_shared" = yes && enable_static
=no
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11723 $as_echo "$enable_shared" >&6; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11726 $as_echo_n "checking whether to build static libraries... " >&6; }
11727 # Make sure either enable_shared or enable_static is yes.
11728 test "$enable_shared" = yes || enable_static
=yes
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11730 $as_echo "$enable_static" >&6; }
11737 ac_cpp
='$CPP $CPPFLAGS'
11738 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11739 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11740 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11756 ac_config_commands
="$ac_config_commands libtool"
11761 # Only expand once:
11768 *-cygwin* |
*-mingw*)
11769 # 'host' will be top-level target in the case of a target lib,
11770 # we must compare to with_cross_host to decide if this is a native
11771 # or cross-compiler and select where to install dlls appropriately.
11772 if test -n "$with_cross_host" &&
11773 test x
"$with_cross_host" != x
"no"; then
11774 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11776 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11791 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11792 # Check whether --enable-maintainer-mode was given.
11793 if test "${enable_maintainer_mode+set}" = set; then :
11794 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11796 USE_MAINTAINER_MODE
=no
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11800 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11801 if test $USE_MAINTAINER_MODE = yes; then
11802 MAINTAINER_MODE_TRUE
=
11803 MAINTAINER_MODE_FALSE
='#'
11805 MAINTAINER_MODE_TRUE
='#'
11806 MAINTAINER_MODE_FALSE
=
11809 MAINT
=$MAINTAINER_MODE_TRUE
11813 # Create a spec file, so that compile/link tests don't fail
11814 test -f libgfortran.spec ||
touch libgfortran.spec
11815 FCFLAGS
="$FCFLAGS -L."
11817 # We need gfortran to compile parts of the library
11818 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11819 #AC_PROG_FC(gfortran)
11820 case `echo $GFORTRAN` in
11824 set dummy
$GFORTRAN; ac_word
=$2
11825 if test -x "$ac_word"; then
11831 ac_ext
=${ac_fc_srcext-f}
11832 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11833 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11835 if test -n "$ac_tool_prefix"; then
11836 for ac_prog
in gfortran
11838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11839 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841 $as_echo_n "checking for $ac_word... " >&6; }
11842 if ${ac_cv_prog_FC+:} false
; then :
11843 $as_echo_n "(cached) " >&6
11845 if test -n "$FC"; then
11846 ac_cv_prog_FC
="$FC" # Let the user override the test.
11848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11849 for as_dir
in $PATH
11852 test -z "$as_dir" && as_dir
=.
11853 for ac_exec_ext
in '' $ac_executable_extensions; do
11854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 if test -n "$FC"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11868 $as_echo "$FC" >&6; }
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11875 test -n "$FC" && break
11878 if test -z "$FC"; then
11880 for ac_prog
in gfortran
11882 # Extract the first word of "$ac_prog", so it can be a program name with args.
11883 set dummy
$ac_prog; ac_word
=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11887 $as_echo_n "(cached) " >&6
11889 if test -n "$ac_ct_FC"; then
11890 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11893 for as_dir
in $PATH
11896 test -z "$as_dir" && as_dir
=.
11897 for ac_exec_ext
in '' $ac_executable_extensions; do
11898 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_prog_ac_ct_FC
="$ac_prog"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11910 if test -n "$ac_ct_FC"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11912 $as_echo "$ac_ct_FC" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11919 test -n "$ac_ct_FC" && break
11922 if test "x$ac_ct_FC" = x
; then
11925 case $cross_compiling:$ac_tool_warned in
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11929 ac_tool_warned
=yes ;;
11936 # Provide some information about the compiler.
11937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11940 for ac_option
in --version -v -V -qversion; do
11941 { { ac_try
="$ac_compiler $ac_option >&5"
11942 case "(($ac_try" in
11943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11947 $as_echo "$ac_try_echo"; } >&5
11948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11950 if test -s conftest.err; then
11952 ... rest of stderr output deleted ...
11953 10q' conftest.err >conftest.er1
11954 cat conftest.er1 >&5
11956 rm -f conftest.er1 conftest.err
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; }
11962 # If we don't use `.F
' as extension, the preprocessor is not run on the
11963 # input file. (Note that this only needs to work for GNU compilers.)
11964 ac_save_ext=$ac_ext
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11967 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11968 if ${ac_cv_fc_compiler_gnu+:} false; then :
11969 $as_echo_n "(cached) " >&6
11971 cat > conftest.$ac_ext <<_ACEOF
11979 if ac_fn_fc_try_compile "$LINENO"; then :
11980 ac_compiler_gnu=yes
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11989 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11990 ac_ext=$ac_save_ext
11991 ac_test_FCFLAGS=${FCFLAGS+set}
11992 ac_save_FCFLAGS=$FCFLAGS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11995 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11996 if ${ac_cv_prog_fc_g+:} false; then :
11997 $as_echo_n "(cached) " >&6
12000 cat > conftest.$ac_ext <<_ACEOF
12005 if ac_fn_fc_try_compile "$LINENO"; then :
12006 ac_cv_prog_fc_g=yes
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12014 $as_echo "$ac_cv_prog_fc_g" >&6; }
12015 if test "$ac_test_FCFLAGS" = set; then
12016 FCFLAGS=$ac_save_FCFLAGS
12017 elif test $ac_cv_prog_fc_g = yes; then
12018 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12024 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12031 if test $ac_compiler_gnu = yes; then
12037 ac_cpp='$CPP $CPPFLAGS'
12038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12039 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12042 ac_ext=${ac_fc_srcext-f}
12043 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12044 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12048 if test -z "$FC" || test "X$FC" = "Xno"; then
12052 archive_cmds_need_lc_FC=no
12053 allow_undefined_flag_FC=
12054 always_export_symbols_FC=no
12055 archive_expsym_cmds_FC=
12056 export_dynamic_flag_spec_FC=
12057 hardcode_direct_FC=no
12058 hardcode_direct_absolute_FC=no
12059 hardcode_libdir_flag_spec_FC=
12060 hardcode_libdir_flag_spec_ld_FC=
12061 hardcode_libdir_separator_FC=
12062 hardcode_minus_L_FC=no
12063 hardcode_automatic_FC=no
12064 inherit_rpath_FC=no
12066 module_expsym_cmds_FC=
12067 link_all_deplibs_FC=unknown
12068 old_archive_cmds_FC=$old_archive_cmds
12069 reload_flag_FC=$reload_flag
12070 reload_cmds_FC=$reload_cmds
12071 no_undefined_flag_FC=
12072 whole_archive_flag_spec_FC=
12073 enable_shared_with_static_runtimes_FC=no
12075 # Source file extension for fc test sources.
12076 ac_ext=${ac_fc_srcext-f}
12078 # Object file extension for compiled fc test sources.
12082 # No sense in running all these tests if we already determined that
12083 # the FC compiler isn't working. Some variables
(like enable_shared
)
12084 # are currently assumed to apply to all compilers on this platform,
12085 # and will be corrupted by setting them based on a non-working compiler.
12086 if test "$_lt_disable_FC" != yes; then
12087 # Code to be used in simple compile tests
12088 lt_simple_compile_test_code
="\
12094 # Code to be used in simple link tests
12095 lt_simple_link_test_code
="\
12100 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12107 # If no C compiler was specified, use CC.
12110 # If no C compiler flags were specified, use CFLAGS.
12111 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12113 # Allow CC to be a program name with arguments.
12117 # save warnings/boilerplate of simple test code
12118 ac_outfile
=conftest.
$ac_objext
12119 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12120 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12121 _lt_compiler_boilerplate
=`cat conftest.err`
12124 ac_outfile
=conftest.
$ac_objext
12125 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12126 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12127 _lt_linker_boilerplate
=`cat conftest.err`
12131 # Allow CC to be a program name with arguments.
12136 GCC
=$ac_cv_fc_compiler_gnu
12139 for cc_temp
in $compiler""; do
12141 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12142 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12147 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12150 if test -n "$compiler"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12152 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12154 $as_echo "$can_build_shared" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12157 $as_echo_n "checking whether to build shared libraries... " >&6; }
12158 test "$can_build_shared" = "no" && enable_shared
=no
12160 # On AIX, shared libraries and static libraries use the same namespace, and
12161 # are all built from PIC.
12164 test "$enable_shared" = yes && enable_static
=no
12165 if test -n "$RANLIB"; then
12166 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12167 postinstall_cmds
='$RANLIB $lib'
12171 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12172 test "$enable_shared" = yes && enable_static
=no
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12177 $as_echo "$enable_shared" >&6; }
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12180 $as_echo_n "checking whether to build static libraries... " >&6; }
12181 # Make sure either enable_shared or enable_static is yes.
12182 test "$enable_shared" = yes || enable_static
=yes
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12184 $as_echo "$enable_static" >&6; }
12186 GCC_FC
="$ac_cv_fc_compiler_gnu"
12190 ## There is no encapsulation within the following macros, do not change
12191 ## the running order or otherwise move them around unless you know exactly
12192 ## what you are doing...
12193 # Dependencies to place before and after the object being linked:
12195 postdep_objects_FC
=
12198 compiler_lib_search_path_FC
=
12200 cat > conftest.
$ac_ext <<_LT_EOF
12209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12210 (eval $ac_compile) 2>&5
12212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12213 test $ac_status = 0; }; then
12214 # Parse the compiler output and extract the necessary
12215 # objects, libraries and library flags.
12217 # Sentinel used to keep track of whether or not we are before
12218 # the conftest object file.
12219 pre_test_object_deps_done
=no
12221 for p
in `eval "$output_verbose_link_cmd"`; do
12225 # Some compilers place space between "-{L,R}" and the path.
12226 # Remove the space.
12227 if test $p = "-L" ||
12228 test $p = "-R"; then
12235 if test "$pre_test_object_deps_done" = no
; then
12238 # Internal compiler library paths should come after those
12239 # provided the user. The postdeps already come after the
12240 # user supplied libs so there is no need to process them.
12241 if test -z "$compiler_lib_search_path_FC"; then
12242 compiler_lib_search_path_FC
="${prev}${p}"
12244 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12247 # The "-l" case would never come before the object being
12248 # linked, so don't bother handling this case.
12251 if test -z "$postdeps_FC"; then
12252 postdeps_FC
="${prev}${p}"
12254 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12260 # This assumes that the test object file only shows up
12261 # once in the compiler output.
12262 if test "$p" = "conftest.$objext"; then
12263 pre_test_object_deps_done
=yes
12267 if test "$pre_test_object_deps_done" = no
; then
12268 if test -z "$predep_objects_FC"; then
12269 predep_objects_FC
="$p"
12271 predep_objects_FC
="$predep_objects_FC $p"
12274 if test -z "$postdep_objects_FC"; then
12275 postdep_objects_FC
="$p"
12277 postdep_objects_FC
="$postdep_objects_FC $p"
12282 *) ;; # Ignore the rest.
12290 echo "libtool.m4: error: problem compiling FC test program"
12293 $RM -f confest.
$objext
12295 # PORTME: override above test on systems where it is broken
12298 case " $postdeps_FC " in
12299 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12301 compiler_lib_search_dirs_FC
=
12302 if test -n "${compiler_lib_search_path_FC}"; then
12303 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12336 lt_prog_compiler_wl_FC
=
12337 lt_prog_compiler_pic_FC
=
12338 lt_prog_compiler_static_FC
=
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12341 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12343 if test "$GCC" = yes; then
12344 lt_prog_compiler_wl_FC
='-Wl,'
12345 lt_prog_compiler_static_FC
='-static'
12349 # All AIX code is PIC.
12350 if test "$host_cpu" = ia64
; then
12351 # AIX 5 now supports IA64 processor
12352 lt_prog_compiler_static_FC
='-Bstatic'
12354 lt_prog_compiler_pic_FC
='-fPIC'
12360 # see comment about AmigaOS4 .so support
12361 lt_prog_compiler_pic_FC
='-fPIC'
12364 # FIXME: we need at least 68020 code to build shared libraries, but
12365 # adding the `-m68020' flag to GCC prevents building anything better,
12367 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12372 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12373 # PIC is the default for these OSes.
12376 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12377 # This hack is so that the source file can tell whether it is being
12378 # built for inclusion in a dll (and should export symbols for example).
12379 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12380 # (--disable-auto-import) libraries
12381 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12384 darwin
* | rhapsody
*)
12385 # PIC is the default on this platform
12386 # Common symbols not allowed in MH_DYLIB files
12387 lt_prog_compiler_pic_FC
='-fno-common'
12391 # PIC is the default for Haiku.
12392 # The "-static" flag exists, but is broken.
12393 lt_prog_compiler_static_FC
=
12397 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12398 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12399 # sets the default TLS model and affects inlining.
12405 lt_prog_compiler_pic_FC
='-fPIC'
12411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12412 # Instead, we relocate shared libraries at runtime.
12416 # Just because we use GCC doesn't mean we suddenly get shared libraries
12417 # on systems that don't support them.
12418 lt_prog_compiler_can_build_shared_FC
=no
12423 # QNX uses GNU C++, but need to define -shared option too, otherwise
12424 # it will coredump.
12425 lt_prog_compiler_pic_FC
='-fPIC -shared'
12429 if test -d /usr
/nec
; then
12430 lt_prog_compiler_pic_FC
=-Kconform_pic
12435 lt_prog_compiler_pic_FC
='-fPIC'
12439 case $cc_basename in
12440 nvcc
*) # Cuda Compiler Driver 2.2
12441 lt_prog_compiler_wl_FC
='-Xlinker '
12442 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12446 # PORTME Check for flag to pass linker flags through the system compiler.
12449 lt_prog_compiler_wl_FC
='-Wl,'
12450 if test "$host_cpu" = ia64
; then
12451 # AIX 5 now supports IA64 processor
12452 lt_prog_compiler_static_FC
='-Bstatic'
12454 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12458 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12459 # This hack is so that the source file can tell whether it is being
12460 # built for inclusion in a dll (and should export symbols for example).
12461 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12464 hpux9
* | hpux10
* | hpux11
*)
12465 lt_prog_compiler_wl_FC
='-Wl,'
12466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12467 # not for PA HP-UX.
12473 lt_prog_compiler_pic_FC
='+Z'
12476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12477 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12480 irix5
* | irix6
* | nonstopux
*)
12481 lt_prog_compiler_wl_FC
='-Wl,'
12482 # PIC (with -KPIC) is the default.
12483 lt_prog_compiler_static_FC
='-non_shared'
12486 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12487 case $cc_basename in
12488 # old Intel for x86_64 which still supported -KPIC.
12490 lt_prog_compiler_wl_FC
='-Wl,'
12491 lt_prog_compiler_pic_FC
='-KPIC'
12492 lt_prog_compiler_static_FC
='-static'
12494 # icc used to be incompatible with GCC.
12495 # ICC 10 doesn't accept -KPIC any more.
12497 lt_prog_compiler_wl_FC
='-Wl,'
12498 lt_prog_compiler_pic_FC
='-fPIC'
12499 lt_prog_compiler_static_FC
='-static'
12501 # Lahey Fortran 8.1.
12503 lt_prog_compiler_wl_FC
='-Wl,'
12504 lt_prog_compiler_pic_FC
='--shared'
12505 lt_prog_compiler_static_FC
='--static'
12507 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12508 # Portland Group compilers (*not* the Pentium gcc compiler,
12509 # which looks to be a dead project)
12510 lt_prog_compiler_wl_FC
='-Wl,'
12511 lt_prog_compiler_pic_FC
='-fpic'
12512 lt_prog_compiler_static_FC
='-Bstatic'
12515 lt_prog_compiler_wl_FC
='-Wl,'
12516 # All Alpha code is PIC.
12517 lt_prog_compiler_static_FC
='-non_shared'
12519 xl
* | bgxl
* | bgf
* | mpixl
*)
12520 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12521 lt_prog_compiler_wl_FC
='-Wl,'
12522 lt_prog_compiler_pic_FC
='-qpic'
12523 lt_prog_compiler_static_FC
='-qstaticlink'
12526 case `$CC -V 2>&1 | sed 5q` in
12527 *Sun\ F
* |
*Sun
*Fortran
*)
12528 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12529 lt_prog_compiler_pic_FC
='-KPIC'
12530 lt_prog_compiler_static_FC
='-Bstatic'
12531 lt_prog_compiler_wl_FC
=''
12535 lt_prog_compiler_pic_FC
='-KPIC'
12536 lt_prog_compiler_static_FC
='-Bstatic'
12537 lt_prog_compiler_wl_FC
='-Wl,'
12545 lt_prog_compiler_pic_FC
='-KPIC'
12546 lt_prog_compiler_static_FC
='-Bstatic'
12550 # QNX uses GNU C++, but need to define -shared option too, otherwise
12551 # it will coredump.
12552 lt_prog_compiler_pic_FC
='-fPIC -shared'
12555 osf3
* | osf4
* | osf5
*)
12556 lt_prog_compiler_wl_FC
='-Wl,'
12557 # All OSF/1 code is PIC.
12558 lt_prog_compiler_static_FC
='-non_shared'
12562 lt_prog_compiler_static_FC
='-non_shared'
12566 lt_prog_compiler_pic_FC
='-KPIC'
12567 lt_prog_compiler_static_FC
='-Bstatic'
12568 case $cc_basename in
12569 f77
* | f90
* | f95
*)
12570 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12572 lt_prog_compiler_wl_FC
='-Wl,';;
12577 lt_prog_compiler_wl_FC
='-Qoption ld '
12578 lt_prog_compiler_pic_FC
='-PIC'
12579 lt_prog_compiler_static_FC
='-Bstatic'
12582 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12583 lt_prog_compiler_wl_FC
='-Wl,'
12584 lt_prog_compiler_pic_FC
='-KPIC'
12585 lt_prog_compiler_static_FC
='-Bstatic'
12589 if test -d /usr
/nec
;then
12590 lt_prog_compiler_pic_FC
='-Kconform_pic'
12591 lt_prog_compiler_static_FC
='-Bstatic'
12595 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12596 lt_prog_compiler_wl_FC
='-Wl,'
12597 lt_prog_compiler_pic_FC
='-KPIC'
12598 lt_prog_compiler_static_FC
='-Bstatic'
12602 lt_prog_compiler_wl_FC
='-Wl,'
12603 lt_prog_compiler_can_build_shared_FC
=no
12607 lt_prog_compiler_pic_FC
='-pic'
12608 lt_prog_compiler_static_FC
='-Bstatic'
12612 lt_prog_compiler_can_build_shared_FC
=no
12618 # For platforms which do not support PIC, -DPIC is meaningless:
12620 lt_prog_compiler_pic_FC
=
12623 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12627 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12632 # Check to make sure the PIC flag actually works.
12634 if test -n "$lt_prog_compiler_pic_FC"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12636 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12637 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12638 $as_echo_n "(cached) " >&6
12640 lt_cv_prog_compiler_pic_works_FC
=no
12641 ac_outfile
=conftest.
$ac_objext
12642 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12643 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12644 # Insert the option either (1) after the last *FLAGS variable, or
12645 # (2) before a word containing "conftest.", or (3) at the end.
12646 # Note that $ac_compile itself does not contain backslashes and begins
12647 # with a dollar sign (not a hyphen), so the echo should work correctly.
12648 # The option is referenced via a variable to avoid confusing sed.
12649 lt_compile
=`echo "$ac_compile" | $SED \
12650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12652 -e 's:$: $lt_compiler_flag:'`
12653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12654 (eval "$lt_compile" 2>conftest.err
)
12656 cat conftest.err
>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 if (exit $ac_status) && test -s "$ac_outfile"; then
12659 # The compiler can only warn and ignore the option if not recognized
12660 # So say no if there are warnings other than the usual output.
12661 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12662 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12663 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12664 lt_cv_prog_compiler_pic_works_FC
=yes
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12671 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12673 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12674 case $lt_prog_compiler_pic_FC in
12676 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12679 lt_prog_compiler_pic_FC
=
12680 lt_prog_compiler_can_build_shared_FC
=no
12688 # Check to make sure the static flag actually works.
12690 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12692 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12693 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12694 $as_echo_n "(cached) " >&6
12696 lt_cv_prog_compiler_static_works_FC
=no
12697 save_LDFLAGS
="$LDFLAGS"
12698 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12699 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12700 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12701 # The linker can only warn and ignore the option if not recognized
12702 # So say no if there are warnings
12703 if test -s conftest.err
; then
12704 # Append any errors to the config.log.
12705 cat conftest.err
1>&5
12706 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12707 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12708 if diff conftest.exp conftest.er2
>/dev
/null
; then
12709 lt_cv_prog_compiler_static_works_FC
=yes
12712 lt_cv_prog_compiler_static_works_FC
=yes
12716 LDFLAGS
="$save_LDFLAGS"
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12720 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12722 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12725 lt_prog_compiler_static_FC
=
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12732 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12733 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12734 $as_echo_n "(cached) " >&6
12736 lt_cv_prog_compiler_c_o_FC
=no
12737 $RM -r conftest
2>/dev
/null
12741 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12743 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12744 # Insert the option either (1) after the last *FLAGS variable, or
12745 # (2) before a word containing "conftest.", or (3) at the end.
12746 # Note that $ac_compile itself does not contain backslashes and begins
12747 # with a dollar sign (not a hyphen), so the echo should work correctly.
12748 lt_compile
=`echo "$ac_compile" | $SED \
12749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12751 -e 's:$: $lt_compiler_flag:'`
12752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12753 (eval "$lt_compile" 2>out
/conftest.err
)
12755 cat out
/conftest.err
>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12759 # The compiler can only warn and ignore the option if not recognized
12760 # So say no if there are warnings
12761 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12762 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12763 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12764 lt_cv_prog_compiler_c_o_FC
=yes
12769 # SGI C++ compiler will create directory out/ii_files/ for
12770 # template instantiation
12771 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12772 $RM out
/* && rmdir out
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12779 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12785 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12786 $as_echo_n "(cached) " >&6
12788 lt_cv_prog_compiler_c_o_FC
=no
12789 $RM -r conftest
2>/dev
/null
12793 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12795 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12796 # Insert the option either (1) after the last *FLAGS variable, or
12797 # (2) before a word containing "conftest.", or (3) at the end.
12798 # Note that $ac_compile itself does not contain backslashes and begins
12799 # with a dollar sign (not a hyphen), so the echo should work correctly.
12800 lt_compile
=`echo "$ac_compile" | $SED \
12801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12803 -e 's:$: $lt_compiler_flag:'`
12804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12805 (eval "$lt_compile" 2>out
/conftest.err
)
12807 cat out
/conftest.err
>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12811 # The compiler can only warn and ignore the option if not recognized
12812 # So say no if there are warnings
12813 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12814 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12815 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12816 lt_cv_prog_compiler_c_o_FC
=yes
12821 # SGI C++ compiler will create directory out/ii_files/ for
12822 # template instantiation
12823 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12824 $RM out
/* && rmdir out
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12831 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12836 hard_links
="nottested"
12837 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12838 # do not overwrite the value of need_locks provided by the user
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12840 $as_echo_n "checking if we can lock with hard links... " >&6; }
12843 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12845 ln conftest.a conftest.b
2>&5 || hard_links
=no
12846 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12848 $as_echo "$hard_links" >&6; }
12849 if test "$hard_links" = no
; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12851 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12861 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12864 allow_undefined_flag_FC
=
12865 always_export_symbols_FC
=no
12867 archive_expsym_cmds_FC
=
12868 compiler_needs_object_FC
=no
12869 enable_shared_with_static_runtimes_FC
=no
12870 export_dynamic_flag_spec_FC
=
12871 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12872 hardcode_automatic_FC
=no
12873 hardcode_direct_FC
=no
12874 hardcode_direct_absolute_FC
=no
12875 hardcode_libdir_flag_spec_FC
=
12876 hardcode_libdir_flag_spec_ld_FC
=
12877 hardcode_libdir_separator_FC
=
12878 hardcode_minus_L_FC
=no
12879 hardcode_shlibpath_var_FC
=unsupported
12880 inherit_rpath_FC
=no
12881 link_all_deplibs_FC
=unknown
12883 module_expsym_cmds_FC
=
12884 old_archive_from_new_cmds_FC
=
12885 old_archive_from_expsyms_cmds_FC
=
12886 thread_safe_flag_spec_FC
=
12887 whole_archive_flag_spec_FC
=
12888 # include_expsyms should be a list of space-separated symbols to be *always*
12889 # included in the symbol list
12890 include_expsyms_FC
=
12891 # exclude_expsyms can be an extended regexp of symbols to exclude
12892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12894 # as well as any symbol that contains `d'.
12895 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12897 # platforms (ab)use it in PIC code, but their linkers get confused if
12898 # the symbol is explicitly referenced. Since portable code cannot
12899 # rely on this symbol name, it's probably fine to never include it in
12900 # preloaded symbol tables.
12901 # Exclude shared library initialization/finalization symbols.
12902 extract_expsyms_cmds
=
12905 cygwin
* | mingw
* | pw32
* | cegcc
*)
12906 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12907 # When not using gcc, we currently assume that we are using
12908 # Microsoft Visual C++.
12909 if test "$GCC" != yes; then
12914 # we just hope/assume this is gcc and not c89 (= MSVC++)
12924 # On some targets, GNU ld is compatible enough with the native linker
12925 # that we're better off using the native interface for both.
12926 lt_use_gnu_ld_interface
=no
12927 if test "$with_gnu_ld" = yes; then
12930 # The AIX port of GNU ld has always aspired to compatibility
12931 # with the native linker. However, as the warning in the GNU ld
12932 # block says, versions before 2.19.5* couldn't really create working
12933 # shared libraries, regardless of the interface used.
12934 case `$LD -v 2>&1` in
12935 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12936 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12937 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12939 lt_use_gnu_ld_interface
=yes
12944 lt_use_gnu_ld_interface
=yes
12949 if test "$lt_use_gnu_ld_interface" = yes; then
12950 # If archive_cmds runs LD, not CC, wlarc should be empty
12953 # Set some defaults for GNU ld with shared library support. These
12954 # are reset later if shared libraries are not supported. Putting them
12955 # here allows them to be overridden if necessary.
12956 runpath_var
=LD_RUN_PATH
12957 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12958 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12959 # ancient GNU ld didn't support --whole-archive et. al.
12960 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12961 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12963 whole_archive_flag_spec_FC
=
12965 supports_anon_versioning
=no
12966 case `$LD -v 2>&1` in
12967 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12968 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12969 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12970 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12971 *\
2.11.
*) ;; # other 2.11 versions
12972 *) supports_anon_versioning
=yes ;;
12975 # See if GNU ld supports shared libraries.
12978 # On AIX/PPC, the GNU linker is very broken
12979 if test "$host_cpu" != ia64
; then
12983 *** Warning: the GNU linker, at least up to release 2.19, is reported
12984 *** to be unable to reliably create shared libraries on AIX.
12985 *** Therefore, libtool is disabling shared libraries support. If you
12986 *** really care for shared libraries, you may want to install binutils
12987 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12988 *** You will then need to restart the configuration process.
12997 # see comment about AmigaOS4 .so support
12998 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12999 archive_expsym_cmds_FC
=''
13002 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)'
13003 hardcode_libdir_flag_spec_FC
='-L$libdir'
13004 hardcode_minus_L_FC
=yes
13010 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13011 allow_undefined_flag_FC
=unsupported
13012 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13013 # support --undefined. This deserves some investigation. FIXME
13014 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13020 cygwin
* | mingw
* | pw32
* | cegcc
*)
13021 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13022 # as there is no search path for DLLs.
13023 hardcode_libdir_flag_spec_FC
='-L$libdir'
13024 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13025 allow_undefined_flag_FC
=unsupported
13026 always_export_symbols_FC
=no
13027 enable_shared_with_static_runtimes_FC
=yes
13028 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13030 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13031 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13032 # If the export-symbols file already is a .def file (1st line
13033 # is EXPORTS), use it as is; otherwise, prepend...
13034 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13035 cp $export_symbols $output_objdir/$soname.def;
13037 echo EXPORTS > $output_objdir/$soname.def;
13038 cat $export_symbols >> $output_objdir/$soname.def;
13040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13047 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13048 link_all_deplibs_FC
=yes
13052 hardcode_direct_FC
=no
13053 hardcode_shlibpath_var_FC
=no
13054 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13055 export_dynamic_flag_spec_FC
='${wl}-E'
13056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13057 # Instead, shared libraries are loaded at an image base (0x10000000 by
13058 # default) and relocated if they conflict, which is a slow very memory
13059 # consuming and fragmenting process. To avoid this, we pick a random,
13060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13062 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'
13063 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'
13066 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
13068 if test "$host_os" = linux-dietlibc
; then
13069 case $cc_basename in
13070 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13073 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13074 && test "$tmp_diet" = no
13076 tmp_addflag
=' $pic_flag'
13077 tmp_sharedflag
='-shared'
13078 case $cc_basename,$host_cpu in
13079 pgcc
*) # Portland Group C compiler
13080 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'
13081 tmp_addflag
=' $pic_flag'
13083 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13084 # Portland Group f77 and f90 compilers
13085 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'
13086 tmp_addflag
=' $pic_flag -Mnomain' ;;
13087 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13088 tmp_addflag
=' -i_dynamic' ;;
13089 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13090 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13091 ifc
* | ifort
*) # Intel Fortran compiler
13092 tmp_addflag
=' -nofor_main' ;;
13093 lf95
*) # Lahey Fortran 8.1
13094 whole_archive_flag_spec_FC
=
13095 tmp_sharedflag
='--shared' ;;
13096 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13097 tmp_sharedflag
='-qmkshrobj'
13099 nvcc
*) # Cuda Compiler Driver 2.2
13100 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'
13101 compiler_needs_object_FC
=yes
13104 case `$CC -V 2>&1 | sed 5q` in
13105 *Sun\ C
*) # Sun C 5.9
13106 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'
13107 compiler_needs_object_FC
=yes
13108 tmp_sharedflag
='-G' ;;
13109 *Sun\ F
*) # Sun Fortran 8.3
13110 tmp_sharedflag
='-G' ;;
13112 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114 if test "x$supports_anon_versioning" = xyes
; then
13115 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13117 echo "local: *; };" >> $output_objdir/$libname.ver~
13118 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13121 case $cc_basename in
13122 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13123 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13124 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13125 hardcode_libdir_flag_spec_FC
=
13126 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13127 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13128 if test "x$supports_anon_versioning" = xyes
; then
13129 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13131 echo "local: *; };" >> $output_objdir/$libname.ver~
13132 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13142 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13143 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13146 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13152 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13157 *** create shared libraries on Solaris systems. Therefore, libtool
13158 *** is disabling shared libraries support. We urge you to upgrade GNU
13159 *** binutils to release 2.9.1 or newer. Another option is to modify
13160 *** your PATH or compiler configuration so that the native linker is
13161 *** used, and then restart.
13164 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13165 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13166 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13172 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13173 case `$LD -v 2>&1` in
13174 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13179 *** reliably create shared libraries on SCO systems. Therefore, libtool
13180 *** is disabling shared libraries support. We urge you to upgrade GNU
13181 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13182 *** your PATH or compiler configuration so that the native linker is
13183 *** used, and then restart.
13188 # For security reasons, it is highly recommended that you always
13189 # use absolute paths for naming shared libraries, and exclude the
13190 # DT_RUNPATH tag from executables and libraries. But doing so
13191 # requires that you compile everything twice, which is a pain.
13192 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13193 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13194 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13204 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13206 hardcode_direct_FC
=yes
13207 hardcode_shlibpath_var_FC
=no
13211 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13212 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13213 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13220 if test "$ld_shlibs_FC" = no
; then
13222 hardcode_libdir_flag_spec_FC
=
13223 export_dynamic_flag_spec_FC
=
13224 whole_archive_flag_spec_FC
=
13227 # PORTME fill in a description of your system's linker (not GNU ld)
13230 allow_undefined_flag_FC
=unsupported
13231 always_export_symbols_FC
=yes
13232 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'
13233 # Note: this linker hardcodes the directories in LIBPATH if there
13234 # are no directories specified by -L.
13235 hardcode_minus_L_FC
=yes
13236 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13237 # Neither direct hardcoding nor static linking is supported with a
13239 hardcode_direct_FC
=unsupported
13244 if test "$host_cpu" = ia64
; then
13245 # On IA64, the linker does run time linking by default, so we don't
13246 # have to do anything special.
13247 aix_use_runtimelinking
=no
13248 exp_sym_flag
='-Bexport'
13251 # If we're using GNU nm, then we don't want the "-C" option.
13252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13253 # Also, AIX nm treats weak defined symbols like other global
13254 # defined symbols, whereas GNU nm marks them as "W".
13255 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13256 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'
13258 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'
13260 aix_use_runtimelinking
=no
13262 # Test if we are trying to use run time linking or normal
13263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13264 # need to do runtime linking.
13265 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13266 for ld_flag
in $LDFLAGS; do
13267 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13268 aix_use_runtimelinking
=yes
13275 exp_sym_flag
='-bexport'
13276 no_entry_flag
='-bnoentry'
13279 # When large executables or shared objects are built, AIX ld can
13280 # have problems creating the table of contents. If linking a library
13281 # or program results in "error TOC overflow" add -mminimal-toc to
13282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13286 hardcode_direct_FC
=yes
13287 hardcode_direct_absolute_FC
=yes
13288 hardcode_libdir_separator_FC
=':'
13289 link_all_deplibs_FC
=yes
13290 file_list_spec_FC
='${wl}-f,'
13292 if test "$GCC" = yes; then
13293 case $host_os in aix4.
[012]|aix4.
[012].
*)
13294 # We only want to do this on AIX 4.2 and lower, the check
13295 # below for broken collect2 doesn't work under 4.3+
13296 collect2name
=`${CC} -print-prog-name=collect2`
13297 if test -f "$collect2name" &&
13298 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13300 # We have reworked collect2
13303 # We have old collect2
13304 hardcode_direct_FC
=unsupported
13305 # It fails to find uninstalled libraries when the uninstalled
13306 # path is not listed in the libpath. Setting hardcode_minus_L
13307 # to unsupported forces relinking
13308 hardcode_minus_L_FC
=yes
13309 hardcode_libdir_flag_spec_FC
='-L$libdir'
13310 hardcode_libdir_separator_FC
=
13314 shared_flag
='-shared'
13315 if test "$aix_use_runtimelinking" = yes; then
13316 shared_flag
="$shared_flag "'${wl}-G'
13320 if test "$host_cpu" = ia64
; then
13321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13322 # chokes on -Wl,-G. The following line is correct:
13325 if test "$aix_use_runtimelinking" = yes; then
13326 shared_flag
='${wl}-G'
13328 shared_flag
='${wl}-bM:SRE'
13333 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13334 # It seems that -bexpall does not export symbols beginning with
13335 # underscore (_), so it is better to generate a list of symbols to export.
13336 always_export_symbols_FC
=yes
13337 if test "$aix_use_runtimelinking" = yes; then
13338 # Warning - without using the other runtime loading flags (-brtl),
13339 # -berok will link without error, but may produce a broken library.
13340 allow_undefined_flag_FC
='-berok'
13341 # Determine the default libpath from the value encoded in an
13342 # empty executable.
13343 cat > conftest.
$ac_ext <<_ACEOF
13348 if ac_fn_fc_try_link
"$LINENO"; then :
13350 lt_aix_libpath_sed
='
13351 /Import File Strings/,/^$/ {
13357 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 rm -f core conftest.err conftest.
$ac_objext \
13364 conftest
$ac_exeext conftest.
$ac_ext
13365 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13367 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13368 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"
13370 if test "$host_cpu" = ia64
; then
13371 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13372 allow_undefined_flag_FC
="-z nodefs"
13373 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"
13375 # Determine the default libpath from the value encoded in an
13376 # empty executable.
13377 cat > conftest.
$ac_ext <<_ACEOF
13382 if ac_fn_fc_try_link
"$LINENO"; then :
13384 lt_aix_libpath_sed
='
13385 /Import File Strings/,/^$/ {
13391 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13392 # Check for a 64-bit object if we didn't find anything.
13393 if test -z "$aix_libpath"; then
13394 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13397 rm -f core conftest.err conftest.
$ac_objext \
13398 conftest
$ac_exeext conftest.
$ac_ext
13399 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13401 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13402 # Warning - without using the other run time loading flags,
13403 # -berok will link without error, but may produce a broken library.
13404 no_undefined_flag_FC
=' ${wl}-bernotok'
13405 allow_undefined_flag_FC
=' ${wl}-berok'
13406 if test "$with_gnu_ld" = yes; then
13407 # We only use this code for GNU lds that support --whole-archive.
13408 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13410 # Exported symbols can be pulled into shared objects from archives
13411 whole_archive_flag_spec_FC
='$convenience'
13413 archive_cmds_need_lc_FC
=yes
13414 # This is similar to how AIX traditionally builds its shared libraries.
13415 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'
13423 # see comment about AmigaOS4 .so support
13424 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425 archive_expsym_cmds_FC
=''
13428 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)'
13429 hardcode_libdir_flag_spec_FC
='-L$libdir'
13430 hardcode_minus_L_FC
=yes
13436 export_dynamic_flag_spec_FC
=-rdynamic
13439 cygwin
* | mingw
* | pw32
* | cegcc
*)
13440 # When not using gcc, we currently assume that we are using
13441 # Microsoft Visual C++.
13442 # hardcode_libdir_flag_spec is actually meaningless, as there is
13443 # no search path for DLLs.
13444 hardcode_libdir_flag_spec_FC
=' '
13445 allow_undefined_flag_FC
=unsupported
13446 # Tell ltmain to make .lib files, not .a files.
13448 # Tell ltmain to make .dll files, not .so files.
13450 # FIXME: Setting linknames here is a bad hack.
13451 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13452 # The linker will automatically build a .lib file if we build a DLL.
13453 old_archive_from_new_cmds_FC
='true'
13454 # FIXME: Should let the user specify the lib program.
13455 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13456 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13457 enable_shared_with_static_runtimes_FC
=yes
13460 darwin
* | rhapsody
*)
13463 archive_cmds_need_lc_FC
=no
13464 hardcode_direct_FC
=no
13465 hardcode_automatic_FC
=yes
13466 hardcode_shlibpath_var_FC
=unsupported
13467 if test "$lt_cv_ld_force_load" = "yes"; then
13468 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\"`'
13470 whole_archive_flag_spec_FC
=''
13472 link_all_deplibs_FC
=yes
13473 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13474 case $cc_basename in
13475 ifort
*) _lt_dar_can_shared
=yes ;;
13476 *) _lt_dar_can_shared
=$GCC ;;
13478 if test "$_lt_dar_can_shared" = "yes"; then
13479 output_verbose_link_cmd
=func_echo_all
13480 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}"
13481 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13482 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}"
13483 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}"
13492 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13493 hardcode_libdir_flag_spec_FC
='-L$libdir'
13494 hardcode_shlibpath_var_FC
=no
13497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13498 # support. Future versions do this automatically, but an explicit c++rt0.o
13499 # does not break anything, and helps significantly (at the cost of a little
13502 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13503 hardcode_libdir_flag_spec_FC
='-R$libdir'
13504 hardcode_direct_FC
=yes
13505 hardcode_shlibpath_var_FC
=no
13508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13510 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13511 hardcode_direct_FC
=yes
13512 hardcode_minus_L_FC
=yes
13513 hardcode_shlibpath_var_FC
=no
13516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13517 freebsd
* | dragonfly
*)
13518 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13519 hardcode_libdir_flag_spec_FC
='-R$libdir'
13520 hardcode_direct_FC
=yes
13521 hardcode_shlibpath_var_FC
=no
13525 if test "$GCC" = yes; then
13526 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'
13528 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'
13530 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13531 hardcode_libdir_separator_FC
=:
13532 hardcode_direct_FC
=yes
13534 # hardcode_minus_L: Not really in the search PATH,
13535 # but as the default location of the library.
13536 hardcode_minus_L_FC
=yes
13537 export_dynamic_flag_spec_FC
='${wl}-E'
13541 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13542 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13544 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13546 if test "$with_gnu_ld" = no
; then
13547 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13548 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13549 hardcode_libdir_separator_FC
=:
13550 hardcode_direct_FC
=yes
13551 hardcode_direct_absolute_FC
=yes
13552 export_dynamic_flag_spec_FC
='${wl}-E'
13553 # hardcode_minus_L: Not really in the search PATH,
13554 # but as the default location of the library.
13555 hardcode_minus_L_FC
=yes
13560 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13563 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13566 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13575 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13578 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13581 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13585 if test "$with_gnu_ld" = no
; then
13586 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13587 hardcode_libdir_separator_FC
=:
13591 hardcode_direct_FC
=no
13592 hardcode_shlibpath_var_FC
=no
13595 hardcode_direct_FC
=yes
13596 hardcode_direct_absolute_FC
=yes
13597 export_dynamic_flag_spec_FC
='${wl}-E'
13599 # hardcode_minus_L: Not really in the search PATH,
13600 # but as the default location of the library.
13601 hardcode_minus_L_FC
=yes
13607 irix5
* | irix6
* | nonstopux
*)
13608 if test "$GCC" = yes; then
13609 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'
13610 # Try to use the -exported_symbol ld option, if it does not
13611 # work, assume that -exports_file does not work either and
13612 # implicitly export all symbols.
13613 save_LDFLAGS
="$LDFLAGS"
13614 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13615 cat > conftest.
$ac_ext <<_ACEOF
13618 if ac_fn_fc_try_link
"$LINENO"; then :
13619 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'
13622 rm -f core conftest.err conftest.
$ac_objext \
13623 conftest
$ac_exeext conftest.
$ac_ext
13624 LDFLAGS
="$save_LDFLAGS"
13626 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'
13627 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'
13629 archive_cmds_need_lc_FC
='no'
13630 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13631 hardcode_libdir_separator_FC
=:
13632 inherit_rpath_FC
=yes
13633 link_all_deplibs_FC
=yes
13637 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13638 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13640 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13642 hardcode_libdir_flag_spec_FC
='-R$libdir'
13643 hardcode_direct_FC
=yes
13644 hardcode_shlibpath_var_FC
=no
13648 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13649 hardcode_direct_FC
=yes
13650 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13651 hardcode_libdir_separator_FC
=:
13652 hardcode_shlibpath_var_FC
=no
13659 if test -f /usr
/libexec
/ld.so
; then
13660 hardcode_direct_FC
=yes
13661 hardcode_shlibpath_var_FC
=no
13662 hardcode_direct_absolute_FC
=yes
13663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13664 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13665 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13666 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13667 export_dynamic_flag_spec_FC
='${wl}-E'
13670 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13671 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13672 hardcode_libdir_flag_spec_FC
='-R$libdir'
13675 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13676 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13686 hardcode_libdir_flag_spec_FC
='-L$libdir'
13687 hardcode_minus_L_FC
=yes
13688 allow_undefined_flag_FC
=unsupported
13689 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'
13690 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13694 if test "$GCC" = yes; then
13695 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13696 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'
13698 allow_undefined_flag_FC
=' -expect_unresolved \*'
13699 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'
13701 archive_cmds_need_lc_FC
='no'
13702 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13703 hardcode_libdir_separator_FC
=:
13706 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13707 if test "$GCC" = yes; then
13708 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13709 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'
13710 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13712 allow_undefined_flag_FC
=' -expect_unresolved \*'
13713 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'
13714 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~
13715 $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'
13717 # Both c and cxx compiler support -rpath directly
13718 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13720 archive_cmds_need_lc_FC
='no'
13721 hardcode_libdir_separator_FC
=:
13725 no_undefined_flag_FC
=' -z defs'
13726 if test "$GCC" = yes; then
13728 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13729 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13730 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13732 case `$CC -V 2>&1` in
13735 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13737 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13741 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13743 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13747 hardcode_libdir_flag_spec_FC
='-R$libdir'
13748 hardcode_shlibpath_var_FC
=no
13750 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13752 # The compiler driver will combine and reorder linker options,
13753 # but understands `-z linker_flag'. GCC discards it without `$wl',
13754 # but is careful enough not to reorder.
13755 # Supported since Solaris 2.6 (maybe 2.5.1?)
13756 if test "$GCC" = yes; then
13757 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13759 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13763 link_all_deplibs_FC
=yes
13767 if test "x$host_vendor" = xsequent
; then
13768 # Use $CC to link under sequent, because it throws in some extra .o
13769 # files that make .init and .fini sections work.
13770 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13772 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13774 hardcode_libdir_flag_spec_FC
='-L$libdir'
13775 hardcode_direct_FC
=yes
13776 hardcode_minus_L_FC
=yes
13777 hardcode_shlibpath_var_FC
=no
13781 case $host_vendor in
13783 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13784 hardcode_direct_FC
=yes # is this really true???
13787 ## LD is ld it makes a PLAMLIB
13788 ## CC just makes a GrossModule.
13789 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13790 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13791 hardcode_direct_FC
=no
13794 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13798 runpath_var
='LD_RUN_PATH'
13799 hardcode_shlibpath_var_FC
=no
13803 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804 hardcode_shlibpath_var_FC
=no
13805 export_dynamic_flag_spec_FC
='-Bexport'
13809 if test -d /usr
/nec
; then
13810 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13811 hardcode_shlibpath_var_FC
=no
13812 runpath_var
=LD_RUN_PATH
13813 hardcode_runpath_var
=yes
13818 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13819 no_undefined_flag_FC
='${wl}-z,text'
13820 archive_cmds_need_lc_FC
=no
13821 hardcode_shlibpath_var_FC
=no
13822 runpath_var
='LD_RUN_PATH'
13824 if test "$GCC" = yes; then
13825 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 sysv5
* | sco3.2v5
* | sco5v6
*)
13834 # Note: We can NOT use -z defs as we might desire, because we do not
13835 # link with -lc, and that would cause any symbols used from libc to
13836 # always be unresolved, which means just about no library would
13837 # ever link correctly. If we're not using GNU ld we use -z text
13838 # though, which does catch some bad symbols but isn't as heavy-handed
13840 no_undefined_flag_FC
='${wl}-z,text'
13841 allow_undefined_flag_FC
='${wl}-z,nodefs'
13842 archive_cmds_need_lc_FC
=no
13843 hardcode_shlibpath_var_FC
=no
13844 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13845 hardcode_libdir_separator_FC
=':'
13846 link_all_deplibs_FC
=yes
13847 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13848 runpath_var
='LD_RUN_PATH'
13850 if test "$GCC" = yes; then
13851 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13852 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13854 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13861 hardcode_libdir_flag_spec_FC
='-L$libdir'
13862 hardcode_shlibpath_var_FC
=no
13870 if test x
$host_vendor = xsni
; then
13872 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13873 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13880 $as_echo "$ld_shlibs_FC" >&6; }
13881 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13883 with_gnu_ld_FC
=$with_gnu_ld
13891 # Do we need to explicitly link libc?
13893 case "x$archive_cmds_need_lc_FC" in
13895 # Assume -lc should be added
13896 archive_cmds_need_lc_FC
=yes
13898 if test "$enable_shared" = yes && test "$GCC" = yes; then
13899 case $archive_cmds_FC in
13901 # FIXME: we may have to deal with multi-command sequences.
13904 # Test whether the compiler implicitly links with -lc since on some
13905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13906 # to ld, don't add -lc before -lgcc.
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13909 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13910 $as_echo_n "(cached) " >&6
13913 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13916 (eval $ac_compile) 2>&5
13918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; } 2>conftest.err
; then
13922 libobjs
=conftest.
$ac_objext
13924 wl
=$lt_prog_compiler_wl_FC
13925 pic_flag
=$lt_prog_compiler_pic_FC
13931 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13932 allow_undefined_flag_FC
=
13933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13934 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }
13939 lt_cv_archive_cmds_need_lc_FC
=no
13941 lt_cv_archive_cmds_need_lc_FC
=yes
13943 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13945 cat conftest.err
1>&5
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13951 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13952 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14025 library_names_spec
=
14026 libname_spec
='lib$name'
14030 postuninstall_cmds
=
14034 shlibpath_overrides_runpath
=unknown
14036 dynamic_linker
="$host_os ld.so"
14037 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14038 need_lib_prefix
=unknown
14039 hardcode_into_libs
=no
14041 # when you set need_version to no, make sure it does not cause -set_version
14042 # flags to be left without arguments
14043 need_version
=unknown
14048 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14049 shlibpath_var
=LIBPATH
14051 # AIX 3 has no versioning support, so we append a major version to the name.
14052 soname_spec
='${libname}${release}${shared_ext}$major'
14059 hardcode_into_libs
=yes
14060 if test "$host_cpu" = ia64
; then
14061 # AIX 5 supports IA64
14062 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14063 shlibpath_var
=LD_LIBRARY_PATH
14065 # With GCC up to 2.95.x, collect2 would create an import file
14066 # for dependence libraries. The import file would start with
14067 # the line `#! .'. This would cause the generated library to
14068 # depend on `.', always an invalid library. This was fixed in
14069 # development snapshots of GCC prior to 3.0.
14071 aix4 | aix4.
[01] | aix4.
[01].
*)
14072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14074 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14077 can_build_shared
=no
14081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14082 # soname into executable. Probably we can add versioning support to
14083 # collect2, so additional links can be useful in future.
14084 if test "$aix_use_runtimelinking" = yes; then
14085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14086 # instead of lib<name>.a to let people know that these are not
14087 # typical AIX shared libraries.
14088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090 # We preserve .a as extension for shared libraries through AIX4.2
14091 # and later when we are not doing run time linking.
14092 library_names_spec
='${libname}${release}.a $libname.a'
14093 soname_spec
='${libname}${release}${shared_ext}$major'
14095 shlibpath_var
=LIBPATH
14102 # Since July 2007 AmigaOS4 officially supports .so libraries.
14103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 library_names_spec
='$libname.ixlibrary $libname.a'
14108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14109 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'
14115 library_names_spec
='${libname}${shared_ext}'
14116 dynamic_linker
="$host_os ld.so"
14117 shlibpath_var
=LIBRARY_PATH
14123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec
='${libname}${release}${shared_ext}$major'
14125 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14126 shlibpath_var
=LD_LIBRARY_PATH
14127 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14128 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14129 # the default ld.so.conf also contains /usr/contrib/lib and
14130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14131 # libtool to hard-code these into programs
14134 cygwin
* | mingw
* | pw32
* | cegcc
*)
14135 version_type
=windows
14140 case $GCC,$host_os in
14141 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14142 library_names_spec
='$libname.dll.a'
14143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14144 postinstall_cmds
='base_file=`basename \${file}`~
14145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14146 dldir=$destdir/`dirname \$dlpath`~
14147 test -d \$dldir || mkdir -p \$dldir~
14148 $install_prog $dir/$dlname \$dldir/$dlname~
14149 chmod a+x \$dldir/$dlname~
14150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14153 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14154 dlpath=$dir/\$dldll~
14156 shlibpath_overrides_runpath
=yes
14160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14161 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14165 # MinGW DLLs use traditional 'lib' prefix
14166 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14169 # pw32 DLLs use 'pw' prefix rather than 'lib'
14170 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14176 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14179 dynamic_linker
='Win32 ld.exe'
14180 # FIXME: first we should search . and the directory the executable is in
14184 darwin
* | rhapsody
*)
14185 dynamic_linker
="$host_os dyld"
14186 version_type
=darwin
14189 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14190 soname_spec
='${libname}${release}${major}$shared_ext'
14191 shlibpath_overrides_runpath
=yes
14192 shlibpath_var
=DYLD_LIBRARY_PATH
14193 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14195 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14203 soname_spec
='${libname}${release}${shared_ext}$major'
14204 shlibpath_var
=LD_LIBRARY_PATH
14207 freebsd
* | dragonfly
*)
14208 # DragonFly does not have aout. When/if they implement a new
14209 # versioning mechanism, adjust this.
14210 if test -x /usr
/bin
/objformat
; then
14211 objformat
=`/usr/bin/objformat`
14214 freebsd
[23].
*) objformat
=aout
;;
14215 *) objformat
=elf
;;
14218 version_type
=freebsd-
$objformat
14219 case $version_type in
14221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14226 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14230 shlibpath_var
=LD_LIBRARY_PATH
14233 shlibpath_overrides_runpath
=yes
14235 freebsd3.
[01]* | freebsdelf3.
[01]*)
14236 shlibpath_overrides_runpath
=yes
14237 hardcode_into_libs
=yes
14239 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14240 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14241 shlibpath_overrides_runpath
=no
14242 hardcode_into_libs
=yes
14244 *) # from 4.6 on, and DragonFly
14245 shlibpath_overrides_runpath
=yes
14246 hardcode_into_libs
=yes
14255 dynamic_linker
="$host_os runtime_loader"
14256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14257 soname_spec
='${libname}${release}${shared_ext}$major'
14258 shlibpath_var
=LIBRARY_PATH
14259 shlibpath_overrides_runpath
=yes
14260 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14261 hardcode_into_libs
=yes
14264 hpux9
* | hpux10
* | hpux11
*)
14265 # Give a soname corresponding to the major version so that dld.sl refuses to
14266 # link against other versions.
14273 hardcode_into_libs
=yes
14274 dynamic_linker
="$host_os dld.so"
14275 shlibpath_var
=LD_LIBRARY_PATH
14276 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32
; then
14280 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14282 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14284 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14288 hardcode_into_libs
=yes
14289 dynamic_linker
="$host_os dld.sl"
14290 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14291 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 soname_spec
='${libname}${release}${shared_ext}$major'
14294 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14295 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14299 dynamic_linker
="$host_os dld.sl"
14300 shlibpath_var
=SHLIB_PATH
14301 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 soname_spec
='${libname}${release}${shared_ext}$major'
14306 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14307 postinstall_cmds
='chmod 555 $lib'
14308 # or fails outright, so override atomically:
14309 install_override_mode
=555
14316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14317 soname_spec
='${libname}${release}${shared_ext}$major'
14318 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14319 shlibpath_var
=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath
=no
14321 hardcode_into_libs
=yes
14324 irix5
* | irix6
* | nonstopux
*)
14326 nonstopux
*) version_type
=nonstopux
;;
14328 if test "$lt_cv_prog_gnu_ld" = yes; then
14336 soname_spec
='${libname}${release}${shared_ext}$major'
14337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14339 irix5
* | nonstopux
*)
14340 libsuff
= shlibsuff
=
14343 case $LD in # libtool.m4 will add one of these switches to LD
14344 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14345 libsuff
= shlibsuff
= libmagic
=32-bit;;
14346 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14347 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14348 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14349 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14350 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14354 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14355 shlibpath_overrides_runpath
=no
14356 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14357 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14358 hardcode_into_libs
=yes
14361 # No shared lib support for Linux oldld, aout, or coff.
14362 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14366 # This must be Linux ELF.
14368 # uclinux* changes (here and below) have been submitted to the libtool
14369 # project, but have not yet been accepted: they are GCC-local changes
14370 # for the time being. (See
14371 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14372 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377 soname_spec
='${libname}${release}${shared_ext}$major'
14378 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14379 shlibpath_var
=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath
=no
14382 # Some binutils ld are patched to set DT_RUNPATH
14383 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14384 $as_echo_n "(cached) " >&6
14386 lt_cv_shlibpath_overrides_runpath
=no
14387 save_LDFLAGS
=$LDFLAGS
14388 save_libdir
=$libdir
14389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14391 cat > conftest.
$ac_ext <<_ACEOF
14396 if ac_fn_fc_try_link
"$LINENO"; then :
14397 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14398 lt_cv_shlibpath_overrides_runpath
=yes
14401 rm -f core conftest.err conftest.
$ac_objext \
14402 conftest
$ac_exeext conftest.
$ac_ext
14403 LDFLAGS
=$save_LDFLAGS
14404 libdir
=$save_libdir
14408 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14410 # This implies no fast_install, which is unacceptable.
14411 # Some rework will be needed to allow for fast_install
14412 # before this can be enabled.
14413 hardcode_into_libs
=yes
14415 # Append ld.so.conf contents to the search path
14416 if test -f /etc
/ld.so.conf
; then
14417 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' ' '`
14418 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14421 # We used to test for /lib/ld.so.1 and disable shared libraries on
14422 # powerpc, because MkLinux only supported shared libraries with the
14423 # GNU dynamic linker. Since this was broken with cross compilers,
14424 # most powerpc-linux boxes support dynamic linking these days and
14425 # people can always --disable-shared, the test was removed, and we
14426 # assume the GNU/Linux dynamic linker is in use.
14427 dynamic_linker
='GNU/Linux ld.so'
14434 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437 dynamic_linker
='NetBSD (a.out) ld.so'
14439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14440 soname_spec
='${libname}${release}${shared_ext}$major'
14441 dynamic_linker
='NetBSD ld.elf_so'
14443 shlibpath_var
=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath
=yes
14445 hardcode_into_libs
=yes
14450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 shlibpath_var
=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath
=yes
14459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec
='${libname}${release}${shared_ext}$major'
14461 shlibpath_var
=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath
=no
14463 hardcode_into_libs
=yes
14464 dynamic_linker
='ldqnx.so'
14469 sys_lib_dlsearch_path_spec
="/usr/lib"
14471 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14473 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14474 *) need_version
=no
;;
14476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14477 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14478 shlibpath_var
=LD_LIBRARY_PATH
14479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14481 openbsd2.
[89] | openbsd2.
[89].
*)
14482 shlibpath_overrides_runpath
=no
14485 shlibpath_overrides_runpath
=yes
14489 shlibpath_overrides_runpath
=yes
14494 libname_spec
='$name'
14497 library_names_spec
='$libname${shared_ext} $libname.a'
14498 dynamic_linker
='OS/2 ld.exe'
14499 shlibpath_var
=LIBPATH
14502 osf3
* | osf4
* | osf5
*)
14506 soname_spec
='${libname}${release}${shared_ext}$major'
14507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 shlibpath_var
=LD_LIBRARY_PATH
14509 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14510 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14521 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec
='${libname}${release}${shared_ext}$major'
14523 shlibpath_var
=LD_LIBRARY_PATH
14524 shlibpath_overrides_runpath
=yes
14525 hardcode_into_libs
=yes
14526 # ldd complains unless libraries are executable
14527 postinstall_cmds
='chmod +x $lib'
14532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14533 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14534 shlibpath_var
=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath
=yes
14536 if test "$with_gnu_ld" = yes; then
14544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec
='${libname}${release}${shared_ext}$major'
14546 shlibpath_var
=LD_LIBRARY_PATH
14547 case $host_vendor in
14549 shlibpath_overrides_runpath
=no
14551 runpath_var
=LD_RUN_PATH
14559 shlibpath_overrides_runpath
=no
14560 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14566 if test -d /usr
/nec
;then
14568 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14569 soname_spec
='$libname${shared_ext}.$major'
14570 shlibpath_var
=LD_LIBRARY_PATH
14574 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14575 version_type
=freebsd-elf
14578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14579 soname_spec
='${libname}${release}${shared_ext}$major'
14580 shlibpath_var
=LD_LIBRARY_PATH
14581 shlibpath_overrides_runpath
=yes
14582 hardcode_into_libs
=yes
14583 if test "$with_gnu_ld" = yes; then
14584 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14586 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14589 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14593 sys_lib_dlsearch_path_spec
='/usr/lib'
14597 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 shlibpath_var
=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath
=no
14604 hardcode_into_libs
=yes
14609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610 soname_spec
='${libname}${release}${shared_ext}$major'
14611 shlibpath_var
=LD_LIBRARY_PATH
14614 # Shared libraries for VwWorks, >= 7 only at this stage
14615 # and (fpic) still incompatible with "large" code models
14616 # in a few configurations. Only for RTP mode in any case,
14617 # and upon explicit request at configure time.
14620 case ${with_multisubdir}-${enable_shared} in
14627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14628 soname_spec
='${libname}${release}${shared_ext}$major'
14629 dynamic_linker
="$host_os module_loader"
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14638 $as_echo "$dynamic_linker" >&6; }
14639 test "$dynamic_linker" = no
&& can_build_shared
=no
14641 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14642 if test "$GCC" = yes; then
14643 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14647 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14650 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14691 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14692 hardcode_action_FC
=
14693 if test -n "$hardcode_libdir_flag_spec_FC" ||
14694 test -n "$runpath_var_FC" ||
14695 test "X$hardcode_automatic_FC" = "Xyes" ; then
14697 # We can hardcode non-existent directories.
14698 if test "$hardcode_direct_FC" != no
&&
14699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14700 # have to relink, otherwise we might link with an installed library
14701 # when we should be linking with a yet-to-be-installed one
14702 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14703 test "$hardcode_minus_L_FC" != no
; then
14704 # Linking always hardcodes the temporary library directory.
14705 hardcode_action_FC
=relink
14707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14708 hardcode_action_FC
=immediate
14711 # We cannot hardcode anything, or else we can only hardcode existing
14713 hardcode_action_FC
=unsupported
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14716 $as_echo "$hardcode_action_FC" >&6; }
14718 if test "$hardcode_action_FC" = relink ||
14719 test "$inherit_rpath_FC" = yes; then
14720 # Fast installation is not supported
14721 enable_fast_install
=no
14722 elif test "$shlibpath_overrides_runpath" = yes ||
14723 test "$enable_shared" = no
; then
14724 # Fast installation is not necessary
14725 enable_fast_install
=needless
14734 fi # test -n "$compiler"
14738 fi # test "$_lt_disable_FC" != yes
14741 ac_cpp
='$CPP $CPPFLAGS'
14742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14747 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14749 # For libtool versioning info, format is CURRENT:REVISION:AGE
14750 libtool_VERSION
=1:0:0
14753 # Check header files.
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14755 $as_echo_n "checking for ANSI C header files... " >&6; }
14756 if ${ac_cv_header_stdc+:} false
; then :
14757 $as_echo_n "(cached) " >&6
14759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 #include <stdlib.h>
14762 #include <stdarg.h>
14763 #include <string.h>
14774 if ac_fn_c_try_compile
"$LINENO"; then :
14775 ac_cv_header_stdc
=yes
14777 ac_cv_header_stdc
=no
14779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14781 if test $ac_cv_header_stdc = yes; then
14782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 #include <string.h>
14788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14789 $EGREP "memchr" >/dev
/null
2>&1; then :
14792 ac_cv_header_stdc
=no
14798 if test $ac_cv_header_stdc = yes; then
14799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 #include <stdlib.h>
14805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14806 $EGREP "free" >/dev
/null
2>&1; then :
14809 ac_cv_header_stdc
=no
14815 if test $ac_cv_header_stdc = yes; then
14816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14817 if test "$cross_compiling" = yes; then :
14820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14823 #include <stdlib.h>
14824 #if ((' ' & 0x0FF) == 0x020)
14825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14828 # define ISLOWER(c) \
14829 (('a' <= (c) && (c) <= 'i') \
14830 || ('j' <= (c) && (c) <= 'r') \
14831 || ('s' <= (c) && (c) <= 'z'))
14832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14840 for (i = 0; i < 256; i++)
14841 if (XOR (islower (i), ISLOWER (i))
14842 || toupper (i) != TOUPPER (i))
14847 if ac_fn_c_try_run
"$LINENO"; then :
14850 ac_cv_header_stdc
=no
14852 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14853 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14859 $as_echo "$ac_cv_header_stdc" >&6; }
14860 if test $ac_cv_header_stdc = yes; then
14862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14867 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14868 if ${ac_cv_header_time+:} false
; then :
14869 $as_echo_n "(cached) " >&6
14871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 #include <sys/types.h>
14874 #include <sys/time.h>
14880 if ((struct tm *) 0)
14886 if ac_fn_c_try_compile
"$LINENO"; then :
14887 ac_cv_header_time
=yes
14889 ac_cv_header_time
=no
14891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14894 $as_echo "$ac_cv_header_time" >&6; }
14895 if test $ac_cv_header_time = yes; then
14897 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14902 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14903 if ${gcc_cv_header_string+:} false
; then :
14904 $as_echo_n "(cached) " >&6
14906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <string.h>
14909 #include <strings.h>
14918 if ac_fn_c_try_compile
"$LINENO"; then :
14919 gcc_cv_header_string
=yes
14921 gcc_cv_header_string
=no
14923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14926 $as_echo "$gcc_cv_header_string" >&6; }
14927 if test $gcc_cv_header_string = yes; then
14929 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14933 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14935 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14937 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14938 cat >>confdefs.h
<<_ACEOF
14939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14950 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14952 nvptx
*-*-* | amdgcn
*-*-*)
14953 # NVPTX does not support Pthreads, has its own code replacement.
14954 libgomp_use_pthreads
=no
14955 # NVPTX is an accelerator-only target
14956 libgomp_offloaded_only
=yes
14959 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14960 # In case the pthread.h system header is not found, this test will fail.
14961 CFLAGS
="$CFLAGS -pthread"
14962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964 #include <pthread.h>
14965 void *g(void *d) { return NULL; }
14969 pthread_t t; pthread_create(&t,NULL,g,NULL);
14974 if ac_fn_c_try_link
"$LINENO"; then :
14975 XPCFLAGS
=" -Wc,-pthread"
14977 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
14978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #include <pthread.h>
14981 void *g(void *d) { return NULL; }
14985 pthread_t t; pthread_create(&t,NULL,g,NULL);
14990 if ac_fn_c_try_link
"$LINENO"; then :
14993 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
14995 rm -f core conftest.err conftest.
$ac_objext \
14996 conftest
$ac_exeext conftest.
$ac_ext
14998 rm -f core conftest.err conftest.
$ac_objext \
14999 conftest
$ac_exeext conftest.
$ac_ext
15002 if test x
$libgomp_use_pthreads != xno
; then
15004 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15008 if test x
$libgomp_offloaded_only = xyes
; then
15010 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15014 if test "x$enable_offload_defaulted" = xyes
; then
15016 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
15020 # The cast to long int works around a bug in the HP C Compiler
15021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15023 # This bug is HP SR number 8606223364.
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15025 $as_echo_n "checking size of void *... " >&6; }
15026 if ${ac_cv_sizeof_void_p+:} false
; then :
15027 $as_echo_n "(cached) " >&6
15029 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15032 if test "$ac_cv_type_void_p" = yes; then
15033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15035 as_fn_error
77 "cannot compute sizeof (void *)
15036 See \`config.log' for more details" "$LINENO" 5; }
15038 ac_cv_sizeof_void_p
=0
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15044 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15048 cat >>confdefs.h
<<_ACEOF
15049 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15054 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15056 # Copyright (C) 2014-2023 Free Software Foundation, Inc.
15058 # Contributed by Mentor Embedded.
15060 # This file is part of the GNU Offloading and Multi Processing Library
15063 # Libgomp is free software; you can redistribute it and/or modify it
15064 # under the terms of the GNU General Public License as published by
15065 # the Free Software Foundation; either version 3, or (at your option)
15066 # any later version.
15068 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15069 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15070 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15073 # Under Section 7 of GPL version 3, you are granted additional
15074 # permissions described in the GCC Runtime Library Exception, version
15075 # 3.1, as published by the Free Software Foundation.
15077 # You should have received a copy of the GNU General Public License and
15078 # a copy of the GCC Runtime Library Exception along with this program;
15079 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15080 # <http://www.gnu.org/licenses/>.
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15086 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15087 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15088 $as_echo_n "(cached) " >&6
15090 ac_check_lib_save_LIBS
=$LIBS
15092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15110 if ac_fn_c_try_link
"$LINENO"; then :
15111 ac_cv_lib_dl_dlsym
=yes
15113 ac_cv_lib_dl_dlsym
=no
15115 rm -f core conftest.err conftest.
$ac_objext \
15116 conftest
$ac_exeext conftest.
$ac_ext
15117 LIBS
=$ac_check_lib_save_LIBS
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15120 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15121 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15127 if test x
"$plugin_support" = xyes
; then
15129 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15131 elif test "x${enable_offload_targets-no}" != xno
; then
15132 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15137 for ac_header
in $ac_header_list
15139 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15140 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15142 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15143 cat >>confdefs.h
<<_ACEOF
15144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157 for ac_func
in $ac_func_list
15159 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15160 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15161 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15162 cat >>confdefs.h
<<_ACEOF
15163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15186 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15187 # plugins, and configure to find the corresponding offload compilers.
15188 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15193 offload_additional_options
=
15194 offload_additional_lib_paths
=
15197 if test x
"$enable_offload_targets" != x
; then
15198 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15199 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15200 tgt
=`echo $tgt | sed 's/=.*//'`
15204 case "${target}" in
15205 aarch64
*-*-* | powerpc64le-
*-* | x86_64-
*-*)
15206 case "$ac_cv_sizeof_void_p" in
15208 # PR libgomp/65099: Currently, we only support offloading in
15209 # 64-bit configurations.
15219 # Target architecture not supported.
15225 case "${target}" in
15227 case "$ac_cv_sizeof_void_p" in
15243 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15246 if test x
"$tgt_plugin" = x
; then
15247 # Not configuring libgomp for this offload target if we're not building
15248 # the corresponding offload plugin.
15250 elif test x
"$offload_plugins" = x
; then
15251 offload_plugins
=$tgt_plugin
15252 offload_targets
=$tgt
15254 offload_plugins
=$offload_plugins,$tgt_plugin
15255 offload_targets
=$offload_targets,$tgt
15257 # Configure additional search paths.
15258 if test x
"$tgt_dir" != x
; then
15259 offload_additional_options
="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15260 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15262 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15263 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15268 cat >>confdefs.h
<<_ACEOF
15269 #define OFFLOAD_PLUGINS "$offload_plugins"
15272 if test $PLUGIN_NVPTX = 1; then
15274 PLUGIN_NVPTX_FALSE
='#'
15276 PLUGIN_NVPTX_TRUE
='#'
15277 PLUGIN_NVPTX_FALSE
=
15280 if test $PLUGIN_GCN = 1; then
15282 PLUGIN_GCN_FALSE
='#'
15284 PLUGIN_GCN_TRUE
='#'
15290 # Check for functions needed.
15291 for ac_func
in getloadavg clock_gettime strtoull
15293 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15294 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15295 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15296 cat >>confdefs.h
<<_ACEOF
15297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15303 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15305 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15306 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15307 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15308 cat >>confdefs.h
<<_ACEOF
15309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15316 # Check for broken semaphore implementation on darwin.
15317 # sem_init returns: sem_init error: Function not implemented.
15321 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15326 # RTEMS specific checks
15329 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15331 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15333 cat >>confdefs.h
<<_ACEOF
15334 #define HAVE_STRUCT__MUTEX_CONTROL 1
15343 # Check whether --enable-linux-futex was given.
15344 if test "${enable_linux_futex+set}" = set; then :
15345 enableval
=$enable_linux_futex;
15346 case "$enableval" in
15348 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15352 enable_linux_futex
=default
15357 *-linux* |
*-uclinux*)
15358 case "$enable_linux_futex" in
15360 # If headers don't have gettid/futex syscalls definition, then
15361 # default to no, otherwise there will be compile time failures.
15362 # Otherwise, default to yes. If we don't detect we are
15363 # compiled/linked against NPTL and not cross-compiling, check
15364 # if programs are run by default against NPTL and if not, issue
15366 enable_linux_futex
=no
15367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369 #include <sys/syscall.h>
15370 #include <unistd.h>
15375 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15380 if ac_fn_c_try_link
"$LINENO"; then :
15382 LIBS
="-lpthread $LIBS"
15383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385 #ifndef _GNU_SOURCE
15386 #define _GNU_SOURCE 1
15388 #include <pthread.h>
15389 pthread_t th; void *status;
15393 pthread_tryjoin_np (th, &status);
15398 if ac_fn_c_try_link
"$LINENO"; then :
15399 enable_linux_futex
=yes
15401 if test x
$cross_compiling = xno
; then
15402 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15403 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15405 If so, please configure with --disable-linux-futex" >&5
15406 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15407 If so, please configure with --disable-linux-futex" >&2;}
15410 enable_linux_futex
=yes
15412 rm -f core conftest.err conftest.
$ac_objext \
15413 conftest
$ac_exeext conftest.
$ac_ext
15416 rm -f core conftest.err conftest.
$ac_objext \
15417 conftest
$ac_exeext conftest.
$ac_ext
15420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422 #include <sys/syscall.h>
15423 #include <unistd.h>
15428 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15433 if ac_fn_c_try_link
"$LINENO"; then :
15436 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15438 rm -f core conftest.err conftest.
$ac_objext \
15439 conftest
$ac_exeext conftest.
$ac_ext
15444 enable_linux_futex
=no
15447 if test x
$enable_linux_futex = xyes
; then
15452 # Check for pthread_{,attr_}[sg]etaffinity_np.
15453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #define _GNU_SOURCE
15456 #include <pthread.h>
15461 pthread_attr_t attr;
15462 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15463 if (CPU_ISSET (0, &cpuset))
15464 CPU_SET (1, &cpuset);
15466 CPU_ZERO (&cpuset);
15467 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15468 pthread_attr_init (&attr);
15469 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15470 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15475 if ac_fn_c_try_link
"$LINENO"; then :
15477 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15480 rm -f core conftest.err conftest.
$ac_objext \
15481 conftest
$ac_exeext conftest.
$ac_ext
15483 # At least for glibc, clock_gettime is in librt. But don't pull that
15484 # in if it still doesn't give us the function we want.
15485 if test $ac_cv_func_clock_gettime = no
; then
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15487 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15488 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
15489 $as_echo_n "(cached) " >&6
15491 ac_check_lib_save_LIBS
=$LIBS
15493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15496 /* Override any GCC internal prototype to avoid an error.
15497 Use char because int might match the return type of a GCC
15498 builtin and then its argument prototype would still apply. */
15502 char clock_gettime ();
15506 return clock_gettime ();
15511 if ac_fn_c_try_link
"$LINENO"; then :
15512 ac_cv_lib_rt_clock_gettime
=yes
15514 ac_cv_lib_rt_clock_gettime
=no
15516 rm -f core conftest.err conftest.
$ac_objext \
15517 conftest
$ac_exeext conftest.
$ac_ext
15518 LIBS
=$ac_check_lib_save_LIBS
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15521 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15522 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
15525 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15534 #include <string.h>
15535 #include <stdlib.h>
15536 #include <sys/utsname.h>
15540 struct utsname buf;
15541 volatile size_t len = 0;
15543 len = strlen (buf.nodename);
15548 if ac_fn_c_try_compile
"$LINENO"; then :
15550 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15555 # Check for gethostname.
15556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15558 #include <unistd.h>
15564 if (gethostname (buf, sizeof (buf) - 1) == 0)
15571 if ac_fn_c_try_compile
"$LINENO"; then :
15573 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15578 # Check for getpid.
15579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15581 #include <unistd.h>
15585 int pid = getpid ();
15590 if ac_fn_c_try_compile
"$LINENO"; then :
15592 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15597 # See if we support thread-local storage.
15600 # Check whether --enable-tls was given.
15601 if test "${enable_tls+set}" = set; then :
15602 enableval
=$enable_tls;
15603 case "$enableval" in
15605 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15614 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15615 if ${gcc_cv_have_tls+:} false
; then :
15616 $as_echo_n "(cached) " >&6
15619 if test "$cross_compiling" = yes; then :
15620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 __thread int a; int b; int main() { return a = b; }
15624 if ac_fn_c_try_link
"$LINENO"; then :
15625 chktls_save_LDFLAGS
="$LDFLAGS"
15627 *-*-linux* |
-*-uclinuxfdpic*)
15628 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
15631 chktls_save_CFLAGS
="$CFLAGS"
15632 CFLAGS
="-fPIC $CFLAGS"
15633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 int f() { return 0; }
15637 if ac_fn_c_try_link
"$LINENO"; then :
15638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 __thread int a; int b; int f() { return a = b; }
15642 if ac_fn_c_try_link
"$LINENO"; then :
15643 gcc_cv_have_tls
=yes
15647 rm -f core conftest.err conftest.
$ac_objext \
15648 conftest
$ac_exeext conftest.
$ac_ext
15650 gcc_cv_have_tls
=yes
15652 rm -f core conftest.err conftest.
$ac_objext \
15653 conftest
$ac_exeext conftest.
$ac_ext
15654 CFLAGS
="$chktls_save_CFLAGS"
15655 LDFLAGS
="$chktls_save_LDFLAGS"
15659 rm -f core conftest.err conftest.
$ac_objext \
15660 conftest
$ac_exeext conftest.
$ac_ext
15664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15666 __thread int a; int b; int main() { return a = b; }
15668 if ac_fn_c_try_run
"$LINENO"; then :
15669 chktls_save_LDFLAGS
="$LDFLAGS"
15670 LDFLAGS
="-static $LDFLAGS"
15671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 int main() { return 0; }
15675 if ac_fn_c_try_link
"$LINENO"; then :
15676 if test "$cross_compiling" = yes; then :
15677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15679 as_fn_error $?
"cannot run test program while cross compiling
15680 See \`config.log' for more details" "$LINENO" 5; }
15682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684 __thread int a; int b; int main() { return a = b; }
15686 if ac_fn_c_try_run
"$LINENO"; then :
15687 gcc_cv_have_tls
=yes
15691 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15692 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15696 gcc_cv_have_tls
=yes
15698 rm -f core conftest.err conftest.
$ac_objext \
15699 conftest
$ac_exeext conftest.
$ac_ext
15700 LDFLAGS
="$chktls_save_LDFLAGS"
15701 if test $gcc_cv_have_tls = yes; then
15702 chktls_save_CFLAGS
="$CFLAGS"
15703 thread_CFLAGS
=failed
15704 for flag
in '' '-pthread' '-lpthread'; do
15705 CFLAGS
="$flag $chktls_save_CFLAGS"
15706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 #include <pthread.h>
15709 void *g(void *d) { return NULL; }
15713 pthread_t t; pthread_create(&t,NULL,g,NULL);
15718 if ac_fn_c_try_link
"$LINENO"; then :
15719 thread_CFLAGS
="$flag"
15721 rm -f core conftest.err conftest.
$ac_objext \
15722 conftest
$ac_exeext conftest.
$ac_ext
15723 if test "X$thread_CFLAGS" != Xfailed
; then
15727 CFLAGS
="$chktls_save_CFLAGS"
15728 if test "X$thread_CFLAGS" != Xfailed
; then
15729 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
15730 if test "$cross_compiling" = yes; then :
15731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15733 as_fn_error $?
"cannot run test program while cross compiling
15734 See \`config.log' for more details" "$LINENO" 5; }
15736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738 #include <pthread.h>
15740 static int *volatile a_in_other_thread;
15742 thread_func (void *arg)
15744 a_in_other_thread = &a;
15751 void *thread_retval;
15752 int *volatile a_in_main_thread;
15753 a_in_main_thread = &a;
15754 if (pthread_create (&thread, (pthread_attr_t *)0,
15755 thread_func, (void *)0))
15757 if (pthread_join (thread, &thread_retval))
15759 return (a_in_other_thread == a_in_main_thread);
15764 if ac_fn_c_try_run
"$LINENO"; then :
15765 gcc_cv_have_tls
=yes
15769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15770 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15773 CFLAGS
="$chktls_save_CFLAGS"
15779 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15780 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15785 $as_echo "$gcc_cv_have_tls" >&6; }
15786 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15788 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15792 # See if we have emulated thread-local storage.
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15795 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15796 if ${gcc_cv_use_emutls+:} false
; then :
15797 $as_echo_n "(cached) " >&6
15800 gcc_cv_use_emutls
=no
15801 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15802 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15804 (eval $ac_try) 2>&5
15806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15807 test $ac_status = 0; }; }; then
15808 if grep __emutls_get_address conftest.s
> /dev
/null
; then
15809 gcc_cv_use_emutls
=yes
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15816 $as_echo "$gcc_cv_use_emutls" >&6; }
15817 if test "$gcc_cv_use_emutls" = "yes" ; then
15819 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15823 # See what sort of export controls are available.
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15826 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15827 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
15828 $as_echo_n "(cached) " >&6
15831 save_CFLAGS
="$CFLAGS"
15832 CFLAGS
="$CFLAGS -Werror"
15833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15835 void __attribute__((visibility("hidden"))) foo(void) { }
15844 if ac_fn_c_try_compile
"$LINENO"; then :
15845 libgomp_cv_have_attribute_visibility
=yes
15847 libgomp_cv_have_attribute_visibility
=no
15849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15850 CFLAGS
="$save_CFLAGS"
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15853 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15854 if test $libgomp_cv_have_attribute_visibility = yes; then
15856 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15861 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15862 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
15863 $as_echo_n "(cached) " >&6
15866 save_CFLAGS
="$CFLAGS"
15867 CFLAGS
="$CFLAGS -Werror"
15868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 void __attribute__((dllexport)) foo(void) { }
15879 if ac_fn_c_try_compile
"$LINENO"; then :
15880 libgomp_cv_have_attribute_dllexport
=yes
15882 libgomp_cv_have_attribute_dllexport
=no
15884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15885 CFLAGS
="$save_CFLAGS"
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15888 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15889 if test $libgomp_cv_have_attribute_dllexport = yes; then
15891 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15896 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15897 if ${libgomp_cv_have_attribute_alias+:} false
; then :
15898 $as_echo_n "(cached) " >&6
15901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15905 extern void bar(void) __attribute__((alias("foo")));
15914 if ac_fn_c_try_link
"$LINENO"; then :
15915 libgomp_cv_have_attribute_alias
=yes
15917 libgomp_cv_have_attribute_alias
=no
15919 rm -f core conftest.err conftest.
$ac_objext \
15920 conftest
$ac_exeext conftest.
$ac_ext
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15923 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15924 if test $libgomp_cv_have_attribute_alias = yes; then
15926 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15931 # Check whether --with-gnu-ld was given.
15932 if test "${with_gnu_ld+set}" = set; then :
15933 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15939 if test "$GCC" = yes; then
15940 # Check if gcc -print-prog-name=ld gives a path.
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15942 $as_echo_n "checking for ld used by $CC... " >&6; }
15945 # gcc leaves a trailing carriage return which upsets mingw
15946 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15948 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15951 # Accept absolute paths.
15953 re_direlt
='/[^/][^/]*/\.\./'
15954 # Canonicalize the pathname of ld
15955 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15956 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15957 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15959 test -z "$LD" && LD
="$ac_prog"
15962 # If it fails, then pretend we aren't using GCC.
15966 # If it is relative, then search for the first ld in PATH.
15967 with_gnu_ld
=unknown
15970 elif test "$with_gnu_ld" = yes; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15972 $as_echo_n "checking for GNU ld... " >&6; }
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15975 $as_echo_n "checking for non-GNU ld... " >&6; }
15977 if ${lt_cv_path_LD+:} false
; then :
15978 $as_echo_n "(cached) " >&6
15980 if test -z "$LD"; then
15981 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15982 for ac_dir
in $PATH; do
15984 test -z "$ac_dir" && ac_dir
=.
15985 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15986 lt_cv_path_LD
="$ac_dir/$ac_prog"
15987 # Check to see if the program is GNU ld. I'd rather use --version,
15988 # but apparently some variants of GNU ld only accept -v.
15989 # Break only if it was the GNU/non-GNU ld that we prefer.
15990 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15991 *GNU
* |
*'with BFD'*)
15992 test "$with_gnu_ld" != no
&& break
15995 test "$with_gnu_ld" != yes && break
16002 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16006 LD
="$lt_cv_path_LD"
16007 if test -n "$LD"; then
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16009 $as_echo "$LD" >&6; }
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012 $as_echo "no" >&6; }
16014 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16016 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16017 if ${lt_cv_prog_gnu_ld+:} false
; then :
16018 $as_echo_n "(cached) " >&6
16020 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16021 case `$LD -v 2>&1 </dev/null` in
16022 *GNU
* |
*'with BFD'*)
16023 lt_cv_prog_gnu_ld
=yes
16026 lt_cv_prog_gnu_ld
=no
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16031 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16032 with_gnu_ld
=$lt_cv_prog_gnu_ld
16040 # If we're not using GNU ld, then there's no point in even trying these
16041 # tests. Check for that first. We should have already tested for gld
16042 # by now (in libtool), but require it now just to be safe...
16043 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16044 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16048 # The name set by libtool depends on the version of libtool. Shame on us
16049 # for depending on an impl detail, but c'est la vie. Older versions used
16050 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16051 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16052 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16053 # set (hence we're using an older libtool), then set it.
16054 if test x
${with_gnu_ld+set} != xset
; then
16055 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16056 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16059 with_gnu_ld
=$ac_cv_prog_gnu_ld
16063 # Start by getting the version number. I think the libtool test already
16064 # does some of this, but throws away the result.
16065 libgomp_ld_is_gold
=no
16066 libgomp_ld_is_mold
=no
16067 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16068 libgomp_ld_is_gold
=yes
16069 elif $LD --version 2>/dev
/null |
grep 'mold'> /dev
/null
2>&1; then
16070 libgomp_ld_is_mold
=yes
16073 ldver
=`$LD --version 2>/dev/null |
16074 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16076 libgomp_gnu_ld_version
=`echo $ldver | \
16077 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16079 # Set --gc-sections.
16080 if test "$with_gnu_ld" = "notbroken"; then
16081 # GNU ld it is! Joy and bunny rabbits!
16083 # All these tests are for C++; save the language and the compiler flags.
16084 # Need to do this so that g++ won't try to link in libstdc++
16085 ac_test_CFLAGS
="${CFLAGS+set}"
16086 ac_save_CFLAGS
="$CFLAGS"
16087 CFLAGS
='-x c++ -Wl,--gc-sections'
16089 # Check for -Wl,--gc-sections
16090 # XXX This test is broken at the moment, as symbols required for linking
16091 # are now in libsupc++ (not built yet). In addition, this test has
16092 # cored on solaris in the past. In addition, --gc-sections doesn't
16093 # really work at the moment (keeps on discarding used sections, first
16094 # .eh_frame and now some of the glibc sections for iconv).
16095 # Bzzzzt. Thanks for playing, maybe next time.
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16097 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16098 if test "$cross_compiling" = yes; then :
16099 ac_sectionLDflags
=yes
16101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16112 if ac_fn_c_try_run
"$LINENO"; then :
16113 ac_sectionLDflags
=yes
16115 ac_sectionLDflags
=no
16117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16121 if test "$ac_test_CFLAGS" = set; then
16122 CFLAGS
="$ac_save_CFLAGS"
16124 # this is the suspicious part
16127 if test "$ac_sectionLDflags" = "yes"; then
16128 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16131 $as_echo "$ac_sectionLDflags" >&6; }
16134 # Set linker optimization flags.
16135 if test x
"$with_gnu_ld" = x
"yes"; then
16136 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16144 # Check whether --enable-symvers was given.
16145 if test "${enable_symvers+set}" = set; then :
16146 enableval
=$enable_symvers;
16147 case "$enableval" in
16148 yes|no|gnu
*|sun
) ;;
16149 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16158 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16159 # don't know enough about $LD to do tricks...
16162 # Turn a 'yes' into a suitable default.
16163 if test x
$enable_symvers = xyes
; then
16164 # FIXME The following test is too strict, in theory.
16165 if test $enable_shared = no ||
test "x$LD" = x
; then
16168 if test $with_gnu_ld = yes ; then
16171 case ${target_os} in
16172 # Sun symbol versioning exists since Solaris 2.5.
16173 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16174 enable_symvers
=sun
;;
16176 enable_symvers
=no
;;
16182 # Check if 'sun' was requested on non-Solaris 2 platforms.
16183 if test x
$enable_symvers = xsun
; then
16184 case ${target_os} in
16189 # Unlikely to work.
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16191 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16193 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16195 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16201 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16202 if test $enable_symvers != no
; then
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16204 $as_echo_n "checking for shared libgcc... " >&6; }
16205 ac_save_CFLAGS
="$CFLAGS"
16207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16218 if ac_fn_c_try_link
"$LINENO"; then :
16219 libgomp_shared_libgcc
=yes
16221 libgomp_shared_libgcc
=no
16223 rm -f core conftest.err conftest.
$ac_objext \
16224 conftest
$ac_exeext conftest.
$ac_ext
16225 CFLAGS
="$ac_save_CFLAGS"
16226 if test $libgomp_shared_libgcc = no
; then
16227 cat > conftest.c
<<EOF
16228 int main (void) { return 0; }
16230 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16231 -shared -shared-libgcc -o conftest.so \
16232 conftest.c -v 2>&1 >/dev/null \
16233 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16234 rm -f conftest.c conftest.so
16235 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16236 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16248 if ac_fn_c_try_link
"$LINENO"; then :
16249 libgomp_shared_libgcc
=yes
16251 rm -f core conftest.err conftest.
$ac_objext \
16252 conftest
$ac_exeext conftest.
$ac_ext
16253 CFLAGS
="$ac_save_CFLAGS"
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16257 $as_echo "$libgomp_shared_libgcc" >&6; }
16260 # For GNU ld, we need at least this version. The format is described in
16261 # LIBGOMP_CHECK_LINKER_FEATURES above.
16262 libgomp_min_gnu_ld_version
=21400
16263 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16265 # Check to see if unspecified "yes" value can win, given results above.
16266 # Change "yes" into either "no" or a style name.
16267 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16268 if test $with_gnu_ld = yes; then
16269 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16271 elif test $libgomp_ld_is_gold = yes ; then
16273 elif test $libgomp_ld_is_mold = yes ; then
16276 # The right tools, the right setup, but too old. Fallbacks?
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16278 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16280 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16282 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16284 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16285 if test $libgomp_gnu_ld_version -ge 21200 ; then
16286 # Globbing fix is present, proper block support is not.
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16288 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16293 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16297 elif test $enable_symvers = sun
; then
16298 : All interesting versions of Sun ld support sun style symbol versioning.
16300 # just fail for now
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16302 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16304 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16306 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16308 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16314 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16315 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16316 $as_echo_n "(cached) " >&6
16319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 void foo (void); __asm (".symver foo, bar@SYMVER");
16330 if ac_fn_c_try_compile
"$LINENO"; then :
16331 libgomp_cv_have_as_symver_directive
=yes
16333 libgomp_cv_have_as_symver_directive
=no
16335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16338 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16339 if test $libgomp_cv_have_as_symver_directive = yes; then
16341 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16345 if test $enable_symvers != no
; then
16346 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16347 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16349 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16350 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16353 if test $enable_symvers = gnu
; then
16354 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16355 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16357 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16358 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16361 if test $enable_symvers = sun
; then
16362 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16363 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16365 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16366 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16370 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16372 if test $enable_symvers != no
; then
16373 case ${target_os} in
16374 # The Solaris 2 runtime linker doesn't support the GNU extension of
16375 # binding the same symbol to different versions
16378 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16381 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16388 if test $enable_symvers = gnu
; then
16390 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16394 # Determine cpu count to limit testsuite parallelism.
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16396 $as_echo_n "checking the number of available CPUs... " >&6; }
16399 # Try generic methods
16401 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16402 # 'NPROCESSORS_ONLN' are platform-specific
16403 command -v getconf
>/dev
/null
2>&1 && \
16404 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16405 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16408 # 'nproc' is part of GNU Coreutils and is widely available
16409 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16412 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16415 # Try platform-specific preferred methods
16416 case $host_os in #(
16418 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16420 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16422 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16424 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16426 command -v psrinfo
>/dev
/null
2>&1 && CPU_COUNT
=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT
="0" ;; #(
16428 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16430 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16432 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16437 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16440 # Try less preferred generic method
16441 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16442 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16445 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16448 # Try platform-specific fallback methods
16449 # They can be less accurate and slower then preferred methods
16450 case $host_os in #(
16452 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16454 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16456 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16458 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16459 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16461 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16462 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16464 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16467 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16470 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16472 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16477 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16479 $as_echo "$CPU_COUNT" >&6; }
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16484 $as_echo "unable to detect (assuming 1)" >&6; }
16489 # Get target configury.
16490 .
${srcdir}/configure.tgt
16491 CFLAGS
="$save_CFLAGS $XCFLAGS"
16493 # Check for __sync_val_compare_and_swap, but only after the target has
16494 # had a chance to set XCFLAGS.
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16497 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16498 if ${libgomp_cv_have_sync_builtins+:} false
; then :
16499 $as_echo_n "(cached) " >&6
16502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16508 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16513 if ac_fn_c_try_link
"$LINENO"; then :
16514 libgomp_cv_have_sync_builtins
=yes
16516 libgomp_cv_have_sync_builtins
=no
16518 rm -f core conftest.err conftest.
$ac_objext \
16519 conftest
$ac_exeext conftest.
$ac_ext
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16522 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16523 if test $libgomp_cv_have_sync_builtins = yes; then
16525 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16529 XCFLAGS
="$XCFLAGS$XPCFLAGS"
16531 # Add CET specific flags if CET is enabled
16532 # Check whether --enable-cet was given.
16533 if test "${enable_cet+set}" = set; then :
16534 enableval
=$enable_cet;
16535 case "$enableval" in
16537 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16546 $as_echo_n "checking for CET support... " >&6; }
16548 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16550 i
[34567]86-*-linux* | x86_64-
*-linux*)
16551 case "$enable_cet" in
16553 # Check if target supports multi-byte NOPs
16554 # and if compiler and assembler support CET insn.
16555 cet_save_CFLAGS
="$CFLAGS"
16556 CFLAGS
="$CFLAGS -fcf-protection"
16557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16564 #if !defined(__SSE2__)
16565 #error target does not support multi-byte NOPs
16574 if ac_fn_c_try_compile
"$LINENO"; then :
16579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16580 CFLAGS
="$cet_save_CFLAGS"
16583 # Check if assembler supports CET.
16584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16595 if ac_fn_c_try_compile
"$LINENO"; then :
16598 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
16600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16608 if test x
$enable_cet = xyes
; then
16609 CET_FLAGS
="-fcf-protection -mshstk"
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16611 $as_echo "yes" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16617 XCFLAGS
="$XCFLAGS $CET_FLAGS"
16618 FCFLAGS
="$FCFLAGS $CET_FLAGS"
16624 # Conditionalize the makefile for this target machine.
16626 for f
in ${tmake_file}
16628 if test -f ${srcdir}/config
/$f
16630 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
16633 tmake_file
="${tmake_file_}"
16636 # Cleanup and exit.
16637 CFLAGS
="$save_CFLAGS"
16638 cat >confcache
<<\_ACEOF
16639 # This file is a shell script that caches the results of configure
16640 # tests run on this system so they can be shared between configure
16641 # scripts and configure runs, see configure's option --config-cache.
16642 # It is not useful on other systems. If it contains results you don't
16643 # want to keep, you may remove or edit it.
16645 # config.status only pays attention to the cache file if you give it
16646 # the --recheck option to rerun configure.
16648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16650 # following values.
16654 # The following way of writing the cache mishandles newlines in values,
16655 # but we know of no workaround that is simple, portable, and efficient.
16656 # So, we kill variables containing newlines.
16657 # Ultrix sh set writes to stderr and can't be redirected directly,
16658 # and sets the high bit in the cache file unless we assign to the vars.
16660 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16661 eval ac_val
=\$
$ac_var
16665 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16669 _ | IFS | as_nl
) ;; #(
16670 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16671 *) { eval $ac_var=; unset $ac_var;} ;;
16677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16678 *${as_nl}ac_space
=\
*)
16679 # `set' does not quote correctly, so add quotes: double-quote
16680 # substitution turns \\\\ into \\, and sed turns \\ into \.
16683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16686 # `set' quotes correctly as required by POSIX, so do not add quotes.
16687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16700 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16701 if test -w "$cache_file"; then
16702 if test "x$cache_file" != "x/dev/null"; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16704 $as_echo "$as_me: updating cache $cache_file" >&6;}
16705 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16706 cat confcache
>"$cache_file"
16708 case $cache_file in #(
16710 mv -f confcache
"$cache_file"$$
&&
16711 mv -f "$cache_file"$$
"$cache_file" ;; #(
16713 mv -f confcache
"$cache_file" ;;
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16719 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16724 if test ${multilib} = yes; then
16725 multilib_arg
="--enable-multilib"
16730 # Set up the set of libraries that we need to link against for libgomp.
16731 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16732 # which will force linkage against -lpthread (or equivalent for the system).
16733 # That's not 100% ideal, but about the best we can do easily.
16734 if test $enable_shared = yes; then
16735 link_gomp
="-lgomp %{static: $LIBS}"
16737 link_gomp
="-lgomp $LIBS"
16741 if test "$ac_cv_fc_compiler_gnu" = yes; then
16743 USE_FORTRAN_FALSE
='#'
16745 USE_FORTRAN_TRUE
='#'
16750 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16751 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16752 # the underscore here and update the PREREQ. If it doesn't, then we'll
16753 # need to copy this macro to our acinclude.m4.
16754 save_CFLAGS
="$CFLAGS"
16755 for i
in $config_path; do
16756 if test -f $srcdir/config
/$i/omp-lock.h
; then
16757 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16762 if ac_fn_c_compute_int
"$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16767 if ac_fn_c_compute_int
"$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16774 if ac_fn_c_compute_int
"$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16781 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16784 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16788 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16793 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16798 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16803 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16806 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16810 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16815 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16820 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16826 # If the lock fits in an integer, then arrange for Fortran to use that
16827 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16828 # Except that we don't have a way at present to multi-lib the installed
16829 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16831 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
16832 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
16833 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16836 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16837 OMP_NEST_LOCK_KIND
=8
16839 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
16840 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
16841 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16844 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16845 OMP_NEST_LOCK_25_KIND
=8
16847 if test "$ac_cv_fc_compiler_gnu" = yes; then
16848 if test $OMP_DEPEND_KIND -eq 16; then
16849 if test $OMP_INT128_SIZE -ne 16; then
16850 as_fn_error $?
"unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16853 if test $OMP_DEPEND_KIND -ne 8; then
16854 as_fn_error $?
"unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16873 CFLAGS
="$save_CFLAGS"
16875 # Determine what GCC version number to use in filesystem paths.
16877 get_gcc_base_ver
="cat"
16879 # Check whether --with-gcc-major-version-only was given.
16880 if test "${with_gcc_major_version_only+set}" = set; then :
16881 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
16882 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
16890 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16892 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16894 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16896 ac_config_files
="$ac_config_files testsuite/libgomp-site-extra.exp"
16898 cat >confcache
<<\_ACEOF
16899 # This file is a shell script that caches the results of configure
16900 # tests run on this system so they can be shared between configure
16901 # scripts and configure runs, see configure's option --config-cache.
16902 # It is not useful on other systems. If it contains results you don't
16903 # want to keep, you may remove or edit it.
16905 # config.status only pays attention to the cache file if you give it
16906 # the --recheck option to rerun configure.
16908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16910 # following values.
16914 # The following way of writing the cache mishandles newlines in values,
16915 # but we know of no workaround that is simple, portable, and efficient.
16916 # So, we kill variables containing newlines.
16917 # Ultrix sh set writes to stderr and can't be redirected directly,
16918 # and sets the high bit in the cache file unless we assign to the vars.
16920 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16921 eval ac_val
=\$
$ac_var
16925 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16929 _ | IFS | as_nl
) ;; #(
16930 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16931 *) { eval $ac_var=; unset $ac_var;} ;;
16937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16938 *${as_nl}ac_space
=\
*)
16939 # `set' does not quote correctly, so add quotes: double-quote
16940 # substitution turns \\\\ into \\, and sed turns \\ into \.
16943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16946 # `set' quotes correctly as required by POSIX, so do not add quotes.
16947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16960 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16961 if test -w "$cache_file"; then
16962 if test "x$cache_file" != "x/dev/null"; then
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16964 $as_echo "$as_me: updating cache $cache_file" >&6;}
16965 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16966 cat confcache
>"$cache_file"
16968 case $cache_file in #(
16970 mv -f confcache
"$cache_file"$$
&&
16971 mv -f "$cache_file"$$
"$cache_file" ;; #(
16973 mv -f confcache
"$cache_file" ;;
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16979 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16984 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16985 # Let make expand exec_prefix.
16986 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16988 DEFS
=-DHAVE_CONFIG_H
16993 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16994 # 1. Remove the extension, and $U if already installed.
16995 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16996 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16998 # will be set to the directory where LIBOBJS objects are built.
16999 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17000 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17002 LIBOBJS
=$ac_libobjs
17004 LTLIBOBJS
=$ac_ltlibobjs
17007 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17008 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17012 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17013 if test -n "$am_sleep_pid"; then
17014 # Hide warnings about reused PIDs.
17015 wait $am_sleep_pid 2>/dev
/null
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17018 $as_echo "done" >&6; }
17019 if test -n "$EXEEXT"; then
17021 am__EXEEXT_FALSE
='#'
17023 am__EXEEXT_TRUE
='#'
17027 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17028 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17031 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17032 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17035 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17036 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17039 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17040 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17043 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17044 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17047 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17048 as_fn_error $?
"conditional \"PLUGIN_GCN\" was never defined.
17049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17051 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17052 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17055 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17056 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17059 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17060 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17063 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17064 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17068 : "${CONFIG_STATUS=./config.status}"
17070 ac_clean_files_save
=$ac_clean_files
17071 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17073 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17075 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17077 # Generated by $as_me.
17078 # Run this file to recreate the current configuration.
17079 # Compiler output produced by configure, useful for debugging
17080 # configure, is in config.log if it exists.
17083 ac_cs_recheck=false
17086 SHELL=\${CONFIG_SHELL-$SHELL}
17089 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17090 ## -------------------- ##
17091 ## M4sh Initialization. ##
17092 ## -------------------- ##
17094 # Be more Bourne compatible
17095 DUALCASE
=1; export DUALCASE
# for MKS sh
17096 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17099 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17100 # is contrary to our usage. Disable this feature.
17101 alias -g '${1+"$@"}'='"$@"'
17102 setopt NO_GLOB_SUBST
17104 case `(set -o) 2>/dev/null` in #(
17116 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17117 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17119 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17120 # Prefer a ksh shell builtin over an external printf program on Solaris,
17121 # but without wasting forks for bash or zsh.
17122 if test -z "$BASH_VERSION$ZSH_VERSION" \
17123 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17124 as_echo='print
-r --'
17125 as_echo_n='print
-rn --'
17126 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17127 as_echo='printf %s
\n'
17128 as_echo_n='printf %s
'
17130 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17131 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17132 as_echo_n='/usr
/ucb
/echo -n'
17134 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17135 as_echo_n_body='eval
17139 expr "X$arg" : "X\\(.*\\)$as_nl";
17140 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17142 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17144 export as_echo_n_body
17145 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17147 export as_echo_body
17148 as_echo='sh
-c $as_echo_body as_echo
'
17151 # The user is always right.
17152 if test "${PATH_SEPARATOR+set}" != set; then
17154 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17155 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17162 # We need space, tab and new line, in precisely that order. Quoting is
17163 # there to prevent editors from complaining about space-tab.
17164 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17165 # splitting by setting IFS to empty value.)
17168 # Find who we are. Look in the path if we contain no directory separator.
17171 *[\\/]* ) as_myself=$0 ;;
17172 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17173 for as_dir in $PATH
17176 test -z "$as_dir" && as_dir=.
17177 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17183 # We did not find ourselves, most probably we were run as `sh COMMAND'
17184 # in which case we are not to be found in the path.
17185 if test "x$as_myself" = x
; then
17188 if test ! -f "$as_myself"; then
17189 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17193 # Unset variables that we do not need and which cause bugs (e.g. in
17194 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17195 # suppresses any "Segmentation fault" message there. '((' could
17196 # trigger a bug in pdksh 5.2.14.
17197 for as_var
in BASH_ENV ENV MAIL MAILPATH
17198 do eval test x\
${$as_var+set} = xset \
17199 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17212 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17215 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17216 # ----------------------------------------
17217 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17218 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17219 # script with STATUS, using 1 if that was 0.
17222 as_status
=$1; test $as_status -eq 0 && as_status
=1
17224 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17225 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17227 $as_echo "$as_me: error: $2" >&2
17228 as_fn_exit
$as_status
17232 # as_fn_set_status STATUS
17233 # -----------------------
17234 # Set $? to STATUS, without forking.
17235 as_fn_set_status
()
17238 } # as_fn_set_status
17240 # as_fn_exit STATUS
17241 # -----------------
17242 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17246 as_fn_set_status
$1
17252 # Portably unset VAR.
17255 { eval $1=; unset $1;}
17257 as_unset
=as_fn_unset
17258 # as_fn_append VAR VALUE
17259 # ----------------------
17260 # Append the text in VALUE to the end of the definition contained in VAR. Take
17261 # advantage of any shell optimizations that allow amortized linear growth over
17262 # repeated appends, instead of the typical quadratic growth present in naive
17264 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17265 eval 'as_fn_append ()
17276 # as_fn_arith ARG...
17277 # ------------------
17278 # Perform arithmetic evaluation on the ARGs, and store the result in the
17279 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17280 # must be portable across $(()) and expr.
17281 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17282 eval 'as_fn_arith ()
17289 as_val
=`expr "$@" || test $? -eq 1`
17294 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17295 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17301 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17302 as_basename
=basename
17307 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17313 as_me
=`$as_basename -- "$0" ||
17314 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17315 X"$0" : 'X\(//\)$' \| \
17316 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17318 sed '/^.*\/\([^/][^/]*\)\/*$/{
17332 # Avoid depending upon Character Ranges.
17333 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17334 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17335 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17336 as_cr_digits
='0123456789'
17337 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17339 ECHO_C
= ECHO_N
= ECHO_T
=
17340 case `echo -n x` in #(((((
17342 case `echo 'xy\c'` in
17343 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17345 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17352 rm -f conf$$ conf$$.exe conf$$.
file
17353 if test -d conf$$.dir
; then
17354 rm -f conf$$.dir
/conf$$.
file
17357 mkdir conf$$.dir
2>/dev
/null
17359 if (echo >conf$$.
file) 2>/dev
/null
; then
17360 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17362 # ... but there are two gotchas:
17363 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17364 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17365 # In both cases, we have to default to `cp -pR'.
17366 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17368 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17376 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17377 rmdir conf$$.dir
2>/dev
/null
17382 # Create "$as_dir" as a directory, including parents if necessary.
17387 -*) as_dir
=.
/$as_dir;;
17389 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17393 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17394 *) as_qdir
=$as_dir;;
17396 as_dirs
="'$as_qdir' $as_dirs"
17397 as_dir
=`$as_dirname -- "$as_dir" ||
17398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17399 X"$as_dir" : 'X\(//\)[^/]' \| \
17400 X"$as_dir" : 'X\(//\)$' \| \
17401 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17402 $as_echo X"$as_dir" |
17403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17407 /^X\(\/\/\)[^/].*/{
17420 test -d "$as_dir" && break
17422 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17423 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17427 if mkdir
-p .
2>/dev
/null
; then
17428 as_mkdir_p
='mkdir -p "$as_dir"'
17430 test -d .
/-p && rmdir .
/-p
17435 # as_fn_executable_p FILE
17436 # -----------------------
17437 # Test if FILE is an executable regular file.
17438 as_fn_executable_p
()
17440 test -f "$1" && test -x "$1"
17441 } # as_fn_executable_p
17442 as_test_x
='test -x'
17443 as_executable_p
=as_fn_executable_p
17445 # Sed expression to map a string onto a valid CPP name.
17446 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17448 # Sed expression to map a string onto a valid variable name.
17449 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17453 ## ----------------------------------- ##
17454 ## Main body of $CONFIG_STATUS script. ##
17455 ## ----------------------------------- ##
17457 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17460 # Save the log message, to keep $0 and so on meaningful, and to
17461 # report actual input values of CONFIG_FILES etc. instead of their
17462 # values after options handling.
17464 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17465 generated by GNU Autoconf 2.69. Invocation command line was
17467 CONFIG_FILES = $CONFIG_FILES
17468 CONFIG_HEADERS = $CONFIG_HEADERS
17469 CONFIG_LINKS = $CONFIG_LINKS
17470 CONFIG_COMMANDS = $CONFIG_COMMANDS
17473 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17478 case $ac_config_files in *"
17479 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17482 case $ac_config_headers in *"
17483 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17488 # Files that config.status was made for.
17489 config_files="$ac_config_files"
17490 config_headers="$ac_config_headers"
17491 config_commands="$ac_config_commands"
17495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17497 \`$as_me' instantiates files and other configuration actions
17498 from templates according to the current configuration. Unless the files
17499 and actions are specified as TAGs, all are instantiated by default.
17501 Usage: $0 [OPTION]... [TAG]...
17503 -h, --help print this help, then exit
17504 -V, --version print version number and configuration settings, then exit
17505 --config print configuration, then exit
17506 -q, --quiet, --silent
17507 do not print progress messages
17508 -d, --debug don't remove temporary files
17509 --recheck update $as_me by reconfiguring in the same conditions
17510 --file=FILE[:TEMPLATE]
17511 instantiate the configuration file FILE
17512 --header=FILE[:TEMPLATE]
17513 instantiate the configuration header FILE
17515 Configuration files:
17518 Configuration headers:
17521 Configuration commands:
17524 Report bugs to the package provider.
17525 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17526 General help using GNU software: <http://www.gnu.org/gethelp/>."
17529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17530 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17532 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17533 configured by $0, generated by GNU Autoconf 2.69,
17534 with options \\"\$ac_cs_config\\"
17536 Copyright (C) 2012 Free Software Foundation, Inc.
17537 This config.status script is free software; the Free Software Foundation
17538 gives unlimited permission to copy, distribute and modify it."
17545 test -n "\$AWK" || AWK=awk
17548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17549 # The default lists apply if the user does not specify any file.
17555 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17556 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17560 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17572 # Handling of the options.
17573 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17575 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17576 $as_echo "$ac_cs_version"; exit ;;
17577 --config |
--confi |
--conf |
--con |
--co |
--c )
17578 $as_echo "$ac_cs_config"; exit ;;
17579 --debug |
--debu |
--deb |
--de |
--d |
-d )
17581 --file |
--fil |
--fi |
--f )
17584 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17585 '') as_fn_error $?
"missing file argument" ;;
17587 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17588 ac_need_defaults
=false
;;
17589 --header |
--heade |
--head |
--hea )
17592 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17594 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17595 ac_need_defaults
=false
;;
17597 # Conflict between --help and --header
17598 as_fn_error $?
"ambiguous option: \`$1'
17599 Try \`$0 --help' for more information.";;
17600 --help |
--hel |
-h )
17601 $as_echo "$ac_cs_usage"; exit ;;
17602 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17603 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17606 # This is an error.
17607 -*) as_fn_error $?
"unrecognized option: \`$1'
17608 Try \`$0 --help' for more information." ;;
17610 *) as_fn_append ac_config_targets
" $1"
17611 ac_need_defaults
=false
;;
17617 ac_configure_extra_args
=
17619 if $ac_cs_silent; then
17621 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17626 if \$ac_cs_recheck; then
17627 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17630 CONFIG_SHELL='$SHELL'
17631 export CONFIG_SHELL
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17641 ## Running $as_me. ##
17647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17655 with_multisubdir="$with_multisubdir"
17656 with_multisrctop="$with_multisrctop"
17657 with_target_subdir="$with_target_subdir"
17658 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17659 multi_basedir="$multi_basedir"
17660 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17663 GFORTRAN="$GFORTRAN"
17665 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17668 # The HP-UX ksh and POSIX shell print the target directory to stdout
17669 # if CDPATH is set.
17670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17672 sed_quote_subst='$sed_quote_subst'
17673 double_quote_subst='$double_quote_subst'
17674 delay_variable_subst='$delay_variable_subst'
17675 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17676 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17677 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17678 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17679 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17680 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17681 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17682 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17683 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17684 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17685 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17686 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17687 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17688 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17689 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17690 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17691 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17692 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17693 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17694 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17695 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17696 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17697 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17698 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17699 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17700 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17701 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17702 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17703 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17704 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17705 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17706 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17707 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17708 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17709 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17710 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17711 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17712 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17713 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17714 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17715 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17716 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17717 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17718 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17719 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17720 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17721 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17722 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17723 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"`'
17724 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17725 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17726 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17727 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17728 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17729 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17730 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17731 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17732 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17733 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17734 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17735 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17736 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17737 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17738 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17739 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17740 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17741 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17742 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17743 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17744 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17745 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17746 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17747 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17748 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17749 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17750 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17751 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17752 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17753 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17754 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17755 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17756 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17757 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17758 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17759 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17760 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17761 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17762 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17763 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17764 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17765 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17766 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17767 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17768 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17769 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17770 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17771 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17772 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17773 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17774 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17775 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17776 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17777 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17778 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17779 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17780 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17781 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17782 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17783 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17784 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17785 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17786 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17787 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17788 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17789 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17790 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17791 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17792 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17793 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17794 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17795 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17796 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17797 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17798 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17799 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17800 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17801 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17802 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17803 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17804 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17805 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17806 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17807 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17808 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17809 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17810 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17811 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17812 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17813 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17814 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17815 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17816 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17817 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17818 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17819 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17820 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17821 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17822 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17823 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17824 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17825 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17826 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17827 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17828 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17829 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17830 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17831 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17832 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17833 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17834 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17835 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17836 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17837 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17838 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17839 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17840 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17841 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17842 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17843 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17844 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17845 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17846 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17847 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17848 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17849 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17852 LTCFLAGS='$LTCFLAGS'
17853 compiler='$compiler_DEFAULT'
17855 # A function that is used when there is no print builtin or printf.
17856 func_fallback_echo ()
17858 eval 'cat <<_LTECHO_EOF
17863 # Quote evaled strings.
17877 deplibs_check_method \
17886 lt_cv_sys_global_symbol_pipe \
17887 lt_cv_sys_global_symbol_to_cdecl \
17888 lt_cv_sys_global_symbol_to_c_name_address \
17889 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17890 lt_prog_compiler_no_builtin_flag \
17891 lt_prog_compiler_wl \
17892 lt_prog_compiler_pic \
17893 lt_prog_compiler_static \
17894 lt_cv_prog_compiler_c_o \
17902 export_dynamic_flag_spec \
17903 whole_archive_flag_spec \
17904 compiler_needs_object \
17906 allow_undefined_flag \
17907 no_undefined_flag \
17908 hardcode_libdir_flag_spec \
17909 hardcode_libdir_flag_spec_ld \
17910 hardcode_libdir_separator \
17915 variables_saved_for_relink \
17917 library_names_spec \
17919 install_override_mode \
17923 compiler_lib_search_dirs \
17928 compiler_lib_search_path \
17932 lt_prog_compiler_no_builtin_flag_FC \
17933 lt_prog_compiler_wl_FC \
17934 lt_prog_compiler_pic_FC \
17935 lt_prog_compiler_static_FC \
17936 lt_cv_prog_compiler_c_o_FC \
17937 export_dynamic_flag_spec_FC \
17938 whole_archive_flag_spec_FC \
17939 compiler_needs_object_FC \
17941 allow_undefined_flag_FC \
17942 no_undefined_flag_FC \
17943 hardcode_libdir_flag_spec_FC \
17944 hardcode_libdir_flag_spec_ld_FC \
17945 hardcode_libdir_separator_FC \
17946 fix_srcfile_path_FC \
17947 exclude_expsyms_FC \
17948 include_expsyms_FC \
17949 file_list_spec_FC \
17950 compiler_lib_search_dirs_FC \
17951 predep_objects_FC \
17952 postdep_objects_FC \
17955 compiler_lib_search_path_FC; do
17956 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17957 *[\\\\\\\`\\"\\\$]*)
17958 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17961 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17966 # Double-quote double-evaled strings.
17967 for var in reload_cmds \
17968 old_postinstall_cmds \
17969 old_postuninstall_cmds \
17971 extract_expsyms_cmds \
17972 old_archive_from_new_cmds \
17973 old_archive_from_expsyms_cmds \
17975 archive_expsym_cmds \
17977 module_expsym_cmds \
17978 export_symbols_cmds \
17981 postuninstall_cmds \
17983 sys_lib_search_path_spec \
17984 sys_lib_dlsearch_path_spec \
17986 old_archive_cmds_FC \
17987 old_archive_from_new_cmds_FC \
17988 old_archive_from_expsyms_cmds_FC \
17990 archive_expsym_cmds_FC \
17992 module_expsym_cmds_FC \
17993 export_symbols_cmds_FC \
17994 prelink_cmds_FC; do
17995 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17996 *[\\\\\\\`\\"\\\$]*)
17997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18000 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18005 ac_aux_dir='$ac_aux_dir'
18006 xsi_shell='$xsi_shell'
18007 lt_shell_append='$lt_shell_append'
18009 # See if we are running on zsh, and set the options which allow our
18010 # commands through without removal of \ escapes INIT.
18011 if test -n "\${ZSH_VERSION+set}" ; then
18012 setopt NO_GLOB_SUBST
18018 TIMESTAMP='$TIMESTAMP'
18029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18031 # Handling of arguments.
18032 for ac_config_target
in $ac_config_targets
18034 case $ac_config_target in
18035 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18036 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18037 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18038 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18039 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18040 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18041 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18042 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18043 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18044 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18045 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18046 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18047 "testsuite/libgomp-site-extra.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18049 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18054 # If the user did not use the arguments to specify the items to instantiate,
18055 # then the envvar interface is used. Set only those that are not.
18056 # We use the long form for the default assignment because of an extremely
18057 # bizarre bug on SunOS 4.1.3.
18058 if $ac_need_defaults; then
18059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18060 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18064 # Have a temporary directory for convenience. Make it in the build tree
18065 # simply because there is no reason against having it here, and in addition,
18066 # creating and moving files from /tmp can sometimes cause problems.
18067 # Hook for its removal unless debugging.
18068 # Note that there is a small window in which the directory will not be cleaned:
18069 # after its creation but before its name has been assigned to `$tmp'.
18073 trap 'exit_status=$?
18074 : "${ac_tmp:=$tmp}"
18075 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18077 trap 'as_fn_exit 1' 1 2 13 15
18079 # Create a (secure) tmp directory for tmp files.
18082 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18086 tmp
=.
/conf$$
-$RANDOM
18087 (umask 077 && mkdir
"$tmp")
18088 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18091 # Set up the scripts for CONFIG_FILES section.
18092 # No need to generate them if there are no CONFIG_FILES.
18093 # This happens for instance with `./config.status config.h'.
18094 if test -n "$CONFIG_FILES"; then
18097 ac_cr
=`echo X | tr X '\015'`
18098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18099 # But we know of no other shell where ac_cr would be empty at this
18100 # point, so we can use a bashism as a fallback.
18101 if test "x$ac_cr" = x
; then
18102 eval ac_cr
=\$
\'\\r
\'
18104 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18108 ac_cs_awk_cr
=$ac_cr
18111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18116 echo "cat >conf$$subs.awk <<_ACEOF" &&
18117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18119 } >conf$$subs.sh ||
18120 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18123 for ac_last_try in false false false false false :; do
18124 . ./conf$$subs.sh ||
18125 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18127 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18128 if test $ac_delim_n = $ac_delim_num; then
18130 elif $ac_last_try; then
18131 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18133 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18136 rm -f conf$$subs.sh
18138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18139 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18143 s/^/S["/; s
/!.
*/"]=/
18153 s/\(.\{148\}\)..*/\1/
18155 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18160 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18167 s/\(.\{148\}\)..*/\1/
18169 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18173 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18178 ' <conf$$subs.awk | sed '
18183 ' >>$CONFIG_STATUS || ac_write_fail=1
18184 rm -f conf$$subs.awk
18185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18187 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18188 for (key in S) S_is_set[key] = 1
18194 nfields = split(line, field, "@
")
18196 len = length(field[1])
18197 for (i = 2; i < nfields; i++) {
18199 keylen = length(key)
18200 if (S_is_set[key]) {
18202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18203 len += length(value) + length(field[++i])
18214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18215 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18216 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18219 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18220 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18225 # trailing colons and then remove the whole line if VPATH becomes empty
18226 # (actually we leave an empty line to preserve line numbers).
18227 if test "x
$srcdir" = x.; then
18228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18247 fi # test -n "$CONFIG_FILES"
18249 # Set up the scripts for CONFIG_HEADERS section.
18250 # No need to generate them if there are no CONFIG_HEADERS.
18251 # This happens for instance with `./config.status Makefile'.
18252 if test -n "$CONFIG_HEADERS"; then
18253 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18257 # Transform confdefs.h into an awk script `defines.awk', embedded as
18258 # here-document in config.status, that substitutes the proper values into
18259 # config.h.in to produce config.h.
18261 # Create a delimiter string that does not exist in confdefs.h, to ease
18262 # handling of long lines.
18264 for ac_last_try in false false :; do
18265 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18266 if test -z "$ac_tt"; then
18268 elif $ac_last_try; then
18269 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18271 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18275 # For the awk script, D is an array of macro values keyed by name,
18276 # likewise P contains macro parameters if any. Preserve backslash
18277 # newline sequences.
18279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18281 s/.\{148\}/&'"$ac_delim"'/g
18284 s/^[ ]*#[ ]*define[ ][ ]*/ /
18291 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18293 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18298 D["\
1"]=" \
3\\\\\\n
"\\/p
18300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18305 s/.\{148\}/&'"$ac_delim"'/g
18310 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18313 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18315 ' <confdefs.h | sed '
18316 s/'"$ac_delim"'/"\\\
18317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18320 for (key in D) D_is_set[key] = 1
18323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18325 split(line, arg, " ")
18326 if (arg[1] == "#") {
18330 defundef
= substr
(arg
[1], 2)
18333 split(mac1
, mac2
, "(") #)
18335 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18336 if (D_is_set
[macro
]) {
18337 # Preserve the white space surrounding the "#".
18338 print prefix
"define", macro P
[macro
] D
[macro
]
18341 # Replace #undef with comments. This is necessary, for example,
18342 # in the case of _POSIX_SOURCE, which is predefined and required
18343 # on some systems where configure will not decide to define it.
18344 if (defundef
== "undef") {
18345 print
"/*", prefix defundef
, macro
, "*/"
18353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18354 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18355 fi # test -n "$CONFIG_HEADERS"
18358 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18363 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18365 case $ac_mode$ac_tag in
18367 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18368 :[FH
]-) ac_tag
=-:-;;
18369 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18386 -) ac_f
="$ac_tmp/stdin";;
18387 *) # Look for the file first in the build tree, then in the source tree
18388 # (if the path is not absolute). The absolute path cannot be DOS-style,
18389 # because $ac_f cannot contain `:'.
18393 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18395 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18397 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18398 as_fn_append ac_file_inputs
" '$ac_f'"
18401 # Let's still pretend it is `configure' which instantiates (i.e., don't
18402 # use $as_me), people would be surprised to read:
18403 # /* config.h. Generated by config.status. */
18404 configure_input
='Generated from '`
18405 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18407 if test x
"$ac_file" != x-
; then
18408 configure_input
="$ac_file. $configure_input"
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18410 $as_echo "$as_me: creating $ac_file" >&6;}
18412 # Neutralize special characters interpreted by sed in replacement strings.
18413 case $configure_input in #(
18414 *\
&* |
*\|
* |
*\\* )
18415 ac_sed_conf_input
=`$as_echo "$configure_input" |
18416 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18417 *) ac_sed_conf_input
=$configure_input;;
18421 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18422 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18427 ac_dir
=`$as_dirname -- "$ac_file" ||
18428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18429 X"$ac_file" : 'X\(//\)[^/]' \| \
18430 X"$ac_file" : 'X\(//\)$' \| \
18431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18432 $as_echo X"$ac_file" |
18433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18437 /^X\(\/\/\)[^/].*/{
18450 as_dir
="$ac_dir"; as_fn_mkdir_p
18454 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18456 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18457 # A ".." for each directory in $ac_dir_suffix.
18458 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18459 case $ac_top_builddir_sub in
18460 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18461 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18464 ac_abs_top_builddir
=$ac_pwd
18465 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18466 # for backward compatibility:
18467 ac_top_builddir
=$ac_top_build_prefix
18470 .
) # We are building in place.
18472 ac_top_srcdir
=$ac_top_builddir_sub
18473 ac_abs_top_srcdir
=$ac_pwd ;;
18474 [\\/]* | ?
:[\\/]* ) # Absolute name.
18475 ac_srcdir
=$srcdir$ac_dir_suffix;
18476 ac_top_srcdir
=$srcdir
18477 ac_abs_top_srcdir
=$srcdir ;;
18478 *) # Relative name.
18479 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18480 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18481 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18483 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18493 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18494 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18496 ac_MKDIR_P
=$MKDIR_P
18498 [\\/$
]* | ?
:[\\/]* ) ;;
18499 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18504 # If the template does not know about datarootdir, expand it.
18505 # FIXME: This hack should be removed a few years after 2.60.
18506 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18518 *datarootdir
*) ac_datarootdir_seen
=yes;;
18519 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18521 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18524 ac_datarootdir_hack='
18525 s&@datadir@&$datadir&g
18526 s&@docdir@&$docdir&g
18527 s&@infodir@&$infodir&g
18528 s&@localedir@&$localedir&g
18529 s&@mandir@&$mandir&g
18530 s&\\\${datarootdir}&$datarootdir&g' ;;
18534 # Neutralize VPATH when `$srcdir' = `.'.
18535 # Shell code in configure.ac might set extrasub.
18536 # FIXME: do we really want to maintain this feature?
18537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18538 ac_sed_extra="$ac_vpsub
18541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18543 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18544 s|@configure_input@|
$ac_sed_conf_input|
;t t
18545 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18546 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18547 s
&@srcdir@
&$ac_srcdir&;t t
18548 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18549 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18550 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18551 s
&@builddir@
&$ac_builddir&;t t
18552 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18553 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18554 s
&@INSTALL@
&$ac_INSTALL&;t t
18555 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18556 $ac_datarootdir_hack
18558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18559 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18562 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18564 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18566 which seems to be undefined. Please make sure it is defined" >&5
18567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18568 which seems to be undefined. Please make sure it is defined" >&2;}
18570 rm -f "$ac_tmp/stdin"
18572 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18573 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18581 if test x"$ac_file" != x-; then
18583 $as_echo "/* $configure_input */" \
18584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18585 } >"$ac_tmp/config.h" \
18586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18587 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18592 mv "$ac_tmp/config.h" "$ac_file" \
18593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18596 $as_echo "/* $configure_input */" \
18597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18598 || as_fn_error $? "could not create -" "$LINENO" 5
18600 # Compute "$ac_file"'s index
in $config_headers.
18603 for _am_header
in $config_headers :; do
18604 case $_am_header in
18605 $_am_arg |
$_am_arg:* )
18608 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18613 X"$_am_arg" : 'X\(//\)[^/]' \| \
18614 X"$_am_arg" : 'X\(//\)$' \| \
18615 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18616 $as_echo X"$_am_arg" |
18617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18621 /^X\(\/\/\)[^/].*/{
18633 s/.*/./; q'`/stamp-h
$_am_stamp_count
18636 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18637 $as_echo "$as_me: executing $ac_file commands" >&6;}
18642 case $ac_file$ac_mode in
18644 # Only add multilib support code if we just rebuilt the top-level
18646 case " $CONFIG_FILES " in
18648 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18651 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18652 # Older Autoconf quotes --file arguments for eval, but not when files
18653 # are listed without --file. Let's play safe and only enable the eval
18654 # if we detect the quoting.
18655 case $CONFIG_FILES in
18656 *\'*) eval set x
"$CONFIG_FILES" ;;
18657 *) set x
$CONFIG_FILES ;;
18662 # Strip MF so we end up with the name of the file.
18663 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18664 # Check whether this is an Automake generated Makefile or not.
18665 # We used to match only the files named 'Makefile.in', but
18666 # some people rename them; so instead we look at the file content.
18667 # Grep'ing the first line is not enough: some people post-process
18668 # each Makefile.in and add a new line on top of each file to say so.
18669 # Grep'ing the whole file is not good either: AIX grep has a line
18670 # limit of 2048, but all sed's we know have understand at least 4000.
18671 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18672 dirpart
=`$as_dirname -- "$mf" ||
18673 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18674 X"$mf" : 'X\(//\)[^/]' \| \
18675 X"$mf" : 'X\(//\)$' \| \
18676 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18682 /^X\(\/\/\)[^/].*/{
18698 # Extract the definition of DEPDIR, am__include, and am__quote
18699 # from the Makefile without running 'make'.
18700 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18701 test -z "$DEPDIR" && continue
18702 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18703 test -z "$am__include" && continue
18704 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18705 # Find all dependency output files, they are included files with
18706 # $(DEPDIR) in their names. We invoke sed twice because it is the
18707 # simplest approach to changing $(DEPDIR) to its actual value in the
18709 for file in `sed -n "
18710 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18711 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18712 # Make sure the directory exists.
18713 test -f "$dirpart/$file" && continue
18714 fdir
=`$as_dirname -- "$file" ||
18715 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18716 X"$file" : 'X\(//\)[^/]' \| \
18717 X"$file" : 'X\(//\)$' \| \
18718 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18719 $as_echo X"$file" |
18720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18724 /^X\(\/\/\)[^/].*/{
18737 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18738 # echo "creating $dirpart/$file"
18739 echo '# dummy' > "$dirpart/$file"
18746 # See if we are running on zsh, and set the options which allow our
18747 # commands through without removal of \ escapes.
18748 if test -n "${ZSH_VERSION+set}" ; then
18749 setopt NO_GLOB_SUBST
18752 cfgfile
="${ofile}T"
18753 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18756 cat <<_LT_EOF >> "$cfgfile"
18759 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18760 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18762 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18764 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18765 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18766 # Written by Gordon Matzigkeit, 1996
18768 # This file is part of GNU Libtool.
18770 # GNU Libtool is free software; you can redistribute it and/or
18771 # modify it under the terms of the GNU General Public License as
18772 # published by the Free Software Foundation; either version 2 of
18773 # the License, or (at your option) any later version.
18775 # As a special exception to the GNU General Public License,
18776 # if you distribute this file as part of a program or library that
18777 # is built using GNU Libtool, you may include this file under the
18778 # same distribution terms that you use for the rest of that program.
18780 # GNU Libtool is distributed in the hope that it will be useful,
18781 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18782 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18783 # GNU General Public License for more details.
18785 # You should have received a copy of the GNU General Public License
18786 # along with GNU Libtool; see the file COPYING. If not, a copy
18787 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18788 # obtained by writing to the Free Software Foundation, Inc.,
18789 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18792 # The names of the tagged configurations supported by this script.
18793 available_tags="FC "
18795 # ### BEGIN LIBTOOL CONFIG
18797 # Which release of libtool.m4 was used?
18798 macro_version=$macro_version
18799 macro_revision=$macro_revision
18801 # Whether or not to build shared libraries.
18802 build_libtool_libs=$enable_shared
18804 # Whether or not to build static libraries.
18805 build_old_libs=$enable_static
18807 # What type of objects to build.
18810 # Whether or not to optimize for fast installation.
18811 fast_install=$enable_fast_install
18813 # Shell to use when invoking shell scripts.
18816 # An echo program that protects backslashes.
18820 host_alias=$host_alias
18824 # The build system.
18825 build_alias=$build_alias
18829 # A sed program that does not truncate output.
18832 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18833 Xsed="\$SED -e 1s/^X//"
18835 # A grep program that handles long lines.
18841 # A literal string matcher.
18844 # A BSD- or MS-compatible name lister.
18847 # Whether we need soft or hard links.
18850 # What is the maximum length of a command?
18851 max_cmd_len=$max_cmd_len
18853 # Object file suffix (normally "o").
18856 # Executable file suffix (normally "").
18859 # whether the shell understands "unset".
18862 # turn spaces into newlines.
18865 # turn newlines into spaces.
18868 # An object symbol dumper.
18869 OBJDUMP=$lt_OBJDUMP
18871 # Method to check whether dependent libraries are shared objects.
18872 deplibs_check_method=$lt_deplibs_check_method
18874 # Command to use when deplibs_check_method == "file_magic".
18875 file_magic_cmd=$lt_file_magic_cmd
18879 AR_FLAGS=$lt_AR_FLAGS
18881 # A symbol stripping program.
18884 # Commands used to install an old-style archive.
18886 old_postinstall_cmds=$lt_old_postinstall_cmds
18887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18889 # Whether to use a lock for old archive extraction.
18890 lock_old_archive_extraction=$lock_old_archive_extraction
18895 # LTCC compiler flags.
18896 LTCFLAGS=$lt_CFLAGS
18898 # Take the output of nm and produce a listing of raw symbols and C names.
18899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18901 # Transform the output of nm in a proper C declaration.
18902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18904 # Transform the output of nm in a C name address pair.
18905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18907 # Transform the output of nm in a C name address pair when lib prefix is needed.
18908 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18910 # The name of the directory that contains temporary libtool files.
18913 # Used to examine libraries when file_magic_cmd begins with "file".
18914 MAGIC_CMD=$MAGIC_CMD
18916 # Must we lock files when doing compilation?
18917 need_locks=$lt_need_locks
18919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18920 DSYMUTIL=$lt_DSYMUTIL
18922 # Tool to change global to local symbols on Mac OS X.
18925 # Tool to manipulate fat objects and archives on Mac OS X.
18928 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18931 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18932 OTOOL64=$lt_OTOOL64
18934 # Old archive suffix (normally "a").
18937 # Shared library suffix (normally ".so").
18938 shrext_cmds=$lt_shrext_cmds
18940 # The commands to extract the exported symbol list from a shared archive.
18941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18943 # Variables whose values should be saved in libtool wrapper scripts and
18944 # restored at link time.
18945 variables_saved_for_relink=$lt_variables_saved_for_relink
18947 # Do we need the "lib" prefix for modules?
18948 need_lib_prefix=$need_lib_prefix
18950 # Do we need a version for libraries?
18951 need_version=$need_version
18953 # Library versioning type.
18954 version_type=$version_type
18956 # Shared library runtime path variable.
18957 runpath_var=$runpath_var
18959 # Shared library path variable.
18960 shlibpath_var=$shlibpath_var
18962 # Is shlibpath searched before the hard-coded library search path?
18963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18965 # Format of library name prefix.
18966 libname_spec=$lt_libname_spec
18968 # List of archive names. First name is the real one, the rest are links.
18969 # The last name is the one that the linker finds with -lNAME
18970 library_names_spec=$lt_library_names_spec
18972 # The coded name of the library, if different from the real name.
18973 soname_spec=$lt_soname_spec
18975 # Permission mode override for installation of shared libraries.
18976 install_override_mode=$lt_install_override_mode
18978 # Command to use after installation of a shared archive.
18979 postinstall_cmds=$lt_postinstall_cmds
18981 # Command to use after uninstallation of a shared archive.
18982 postuninstall_cmds=$lt_postuninstall_cmds
18984 # Commands used to finish a libtool library installation in a directory.
18985 finish_cmds=$lt_finish_cmds
18987 # As "finish_cmds", except a single script fragment to be evaled but
18989 finish_eval=$lt_finish_eval
18991 # Whether we should hardcode library paths into libraries.
18992 hardcode_into_libs=$hardcode_into_libs
18994 # Compile-time system search path for libraries.
18995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18997 # Run-time system search path for libraries.
18998 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19000 # Whether dlopen is supported.
19001 dlopen_support=$enable_dlopen
19003 # Whether dlopen of programs is supported.
19004 dlopen_self=$enable_dlopen_self
19006 # Whether dlopen of statically linked programs is supported.
19007 dlopen_self_static=$enable_dlopen_self_static
19009 # Commands to strip libraries.
19010 old_striplib=$lt_old_striplib
19011 striplib=$lt_striplib
19014 # The linker used to build libraries.
19017 # How to create reloadable object files.
19018 reload_flag=$lt_reload_flag
19019 reload_cmds=$lt_reload_cmds
19021 # Commands used to build an old-style archive.
19022 old_archive_cmds=$lt_old_archive_cmds
19024 # A language specific compiler.
19027 # Is the compiler the GNU compiler?
19030 # Compiler flag to turn off builtin functions.
19031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19033 # How to pass a linker flag through the compiler.
19034 wl=$lt_lt_prog_compiler_wl
19036 # Additional compiler flags for building library objects.
19037 pic_flag=$lt_lt_prog_compiler_pic
19039 # Compiler flag to prevent dynamic linking.
19040 link_static_flag=$lt_lt_prog_compiler_static
19042 # Does compiler simultaneously support -c and -o options?
19043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19045 # Whether or not to add -lc for building shared libraries.
19046 build_libtool_need_lc=$archive_cmds_need_lc
19048 # Whether or not to disallow shared libs when runtime libs are static.
19049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19051 # Compiler flag to allow reflexive dlopens.
19052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19054 # Compiler flag to generate shared objects directly from archives.
19055 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19057 # Whether the compiler copes with passing no objects directly.
19058 compiler_needs_object=$lt_compiler_needs_object
19060 # Create an old-style archive from a shared archive.
19061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19063 # Create a temporary old-style archive to link instead of a shared archive.
19064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19066 # Commands used to build a shared archive.
19067 archive_cmds=$lt_archive_cmds
19068 archive_expsym_cmds=$lt_archive_expsym_cmds
19070 # Commands used to build a loadable module if different from building
19071 # a shared archive.
19072 module_cmds=$lt_module_cmds
19073 module_expsym_cmds=$lt_module_expsym_cmds
19075 # Whether we are building with GNU ld or not.
19076 with_gnu_ld=$lt_with_gnu_ld
19078 # Flag that allows shared libraries with undefined symbols to be built.
19079 allow_undefined_flag=$lt_allow_undefined_flag
19081 # Flag that enforces no undefined symbols.
19082 no_undefined_flag=$lt_no_undefined_flag
19084 # Flag to hardcode \$libdir into a binary during linking.
19085 # This must work even if \$libdir does not exist
19086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19088 # If ld is used when linking, flag to hardcode \$libdir into a binary
19089 # during linking. This must work even if \$libdir does not exist.
19090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19092 # Whether we need a single "-rpath" flag with a separated argument.
19093 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19095 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19096 # DIR into the resulting binary.
19097 hardcode_direct=$hardcode_direct
19099 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19100 # DIR into the resulting binary and the resulting library dependency is
19101 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19102 # library is relocated.
19103 hardcode_direct_absolute=$hardcode_direct_absolute
19105 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19106 # into the resulting binary.
19107 hardcode_minus_L=$hardcode_minus_L
19109 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19110 # into the resulting binary.
19111 hardcode_shlibpath_var=$hardcode_shlibpath_var
19113 # Set to "yes" if building a shared library automatically hardcodes DIR
19114 # into the library and all subsequent libraries and executables linked
19116 hardcode_automatic=$hardcode_automatic
19118 # Set to yes if linker adds runtime paths of dependent libraries
19119 # to runtime path list.
19120 inherit_rpath=$inherit_rpath
19122 # Whether libtool must link a program against all its dependency libraries.
19123 link_all_deplibs=$link_all_deplibs
19125 # Fix the shell variable \$srcfile for the compiler.
19126 fix_srcfile_path=$lt_fix_srcfile_path
19128 # Set to "yes" if exported symbols are required.
19129 always_export_symbols=$always_export_symbols
19131 # The commands to list exported symbols.
19132 export_symbols_cmds=$lt_export_symbols_cmds
19134 # Symbols that should not be listed in the preloaded symbols.
19135 exclude_expsyms=$lt_exclude_expsyms
19137 # Symbols that must always be exported.
19138 include_expsyms=$lt_include_expsyms
19140 # Commands necessary for linking programs (against libraries) with templates.
19141 prelink_cmds=$lt_prelink_cmds
19143 # Specify filename containing input files.
19144 file_list_spec=$lt_file_list_spec
19146 # How to hardcode a shared library path into an executable.
19147 hardcode_action=$hardcode_action
19149 # The directories searched by this compiler when creating a shared library.
19150 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19152 # Dependencies to place before and after the objects being linked to
19153 # create a shared library.
19154 predep_objects=$lt_predep_objects
19155 postdep_objects=$lt_postdep_objects
19156 predeps=$lt_predeps
19157 postdeps=$lt_postdeps
19159 # The library search path used internally by the compiler when linking
19160 # a shared library.
19161 compiler_lib_search_path=$lt_compiler_lib_search_path
19163 # ### END LIBTOOL CONFIG
19169 cat <<\_LT_EOF
>> "$cfgfile"
19170 # AIX sometimes has problems with the GCC collect2 program. For some
19171 # reason, if we set the COLLECT_NAMES environment variable, the problems
19172 # vanish in a puff of smoke.
19173 if test "X${COLLECT_NAMES+set}" != Xset
; then
19175 export COLLECT_NAMES
19182 ltmain
="$ac_aux_dir/ltmain.sh"
19185 # We use sed instead of cat because bash on DJGPP gets confused if
19186 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19187 # text mode, it properly converts lines to CR/LF. This bash problem
19188 # is reportedly fixed, but why not run on old versions too?
19189 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19190 ||
(rm -f "$cfgfile"; exit 1)
19194 cat << \_LT_EOF
>> "$cfgfile"
19196 # func_dirname file append nondir_replacement
19197 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19198 # otherwise set result to NONDIR_REPLACEMENT.
19202 */*) func_dirname_result
="${1%/*}${2}" ;;
19203 * ) func_dirname_result
="${3}" ;;
19207 # func_basename file
19210 func_basename_result
="${1##*/}"
19213 # func_dirname_and_basename file append nondir_replacement
19214 # perform func_basename and func_dirname in a single function
19216 # dirname: Compute the dirname of FILE. If nonempty,
19217 # add APPEND to the result, otherwise set result
19218 # to NONDIR_REPLACEMENT.
19219 # value returned in "$func_dirname_result"
19220 # basename: Compute filename of FILE.
19221 # value retuned in "$func_basename_result"
19222 # Implementation must be kept synchronized with func_dirname
19223 # and func_basename. For efficiency, we do not delegate to
19224 # those functions but instead duplicate the functionality here.
19225 func_dirname_and_basename
()
19228 */*) func_dirname_result
="${1%/*}${2}" ;;
19229 * ) func_dirname_result
="${3}" ;;
19231 func_basename_result
="${1##*/}"
19234 # func_stripname prefix suffix name
19235 # strip PREFIX and SUFFIX off of NAME.
19236 # PREFIX and SUFFIX must not contain globbing or regex special
19237 # characters, hashes, percent signs, but SUFFIX may contain a leading
19238 # dot (in which case that matches only a dot).
19241 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19242 # positional parameters, so assign one to ordinary parameter first.
19243 func_stripname_result
=${3}
19244 func_stripname_result
=${func_stripname_result#"${1}"}
19245 func_stripname_result
=${func_stripname_result%"${2}"}
19251 func_opt_split_opt
=${1%%=*}
19252 func_opt_split_arg
=${1#*=}
19259 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19260 *) func_lo2o_result
=${1} ;;
19264 # func_xform libobj-or-source
19267 func_xform_result
=${1%.*}.lo
19270 # func_arith arithmetic-term...
19273 func_arith_result
=$
(( $
* ))
19277 # STRING may not start with a hyphen.
19280 func_len_result
=${#1}
19285 *) # Bourne compatible functions.
19286 cat << \_LT_EOF
>> "$cfgfile"
19288 # func_dirname file append nondir_replacement
19289 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19290 # otherwise set result to NONDIR_REPLACEMENT.
19293 # Extract subdirectory from the argument.
19294 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19295 if test "X$func_dirname_result" = "X${1}"; then
19296 func_dirname_result
="${3}"
19298 func_dirname_result
="$func_dirname_result${2}"
19302 # func_basename file
19305 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19309 # func_stripname prefix suffix name
19310 # strip PREFIX and SUFFIX off of NAME.
19311 # PREFIX and SUFFIX must not contain globbing or regex special
19312 # characters, hashes, percent signs, but SUFFIX may contain a leading
19313 # dot (in which case that matches only a dot).
19314 # func_strip_suffix prefix name
19318 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19319 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19324 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19325 my_sed_long_arg
='1s/^-[^=]*=//'
19330 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19331 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19337 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19340 # func_xform libobj-or-source
19343 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19346 # func_arith arithmetic-term...
19349 func_arith_result
=`expr "$@"`
19353 # STRING may not start with a hyphen.
19356 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19362 case $lt_shell_append in
19364 cat << \_LT_EOF
>> "$cfgfile"
19366 # func_append var value
19367 # Append VALUE to the end of shell variable VAR.
19375 cat << \_LT_EOF
>> "$cfgfile"
19377 # func_append var value
19378 # Append VALUE to the end of shell variable VAR.
19389 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19390 ||
(rm -f "$cfgfile"; exit 1)
19392 mv -f "$cfgfile" "$ofile" ||
19393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19397 cat <<_LT_EOF >> "$ofile"
19399 # ### BEGIN LIBTOOL TAG CONFIG: FC
19401 # The linker used to build libraries.
19404 # How to create reloadable object files.
19405 reload_flag=$lt_reload_flag_FC
19406 reload_cmds=$lt_reload_cmds_FC
19408 # Commands used to build an old-style archive.
19409 old_archive_cmds=$lt_old_archive_cmds_FC
19411 # A language specific compiler.
19414 # Is the compiler the GNU compiler?
19417 # Compiler flag to turn off builtin functions.
19418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl_FC
19423 # Additional compiler flags for building library objects.
19424 pic_flag=$lt_lt_prog_compiler_pic_FC
19426 # Compiler flag to prevent dynamic linking.
19427 link_static_flag=$lt_lt_prog_compiler_static_FC
19429 # Does compiler simultaneously support -c and -o options?
19430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19432 # Whether or not to add -lc for building shared libraries.
19433 build_libtool_need_lc=$archive_cmds_need_lc_FC
19435 # Whether or not to disallow shared libs when runtime libs are static.
19436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19438 # Compiler flag to allow reflexive dlopens.
19439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19441 # Compiler flag to generate shared objects directly from archives.
19442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19444 # Whether the compiler copes with passing no objects directly.
19445 compiler_needs_object=$lt_compiler_needs_object_FC
19447 # Create an old-style archive from a shared archive.
19448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19450 # Create a temporary old-style archive to link instead of a shared archive.
19451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19453 # Commands used to build a shared archive.
19454 archive_cmds=$lt_archive_cmds_FC
19455 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19457 # Commands used to build a loadable module if different from building
19458 # a shared archive.
19459 module_cmds=$lt_module_cmds_FC
19460 module_expsym_cmds=$lt_module_expsym_cmds_FC
19462 # Whether we are building with GNU ld or not.
19463 with_gnu_ld=$lt_with_gnu_ld_FC
19465 # Flag that allows shared libraries with undefined symbols to be built.
19466 allow_undefined_flag=$lt_allow_undefined_flag_FC
19468 # Flag that enforces no undefined symbols.
19469 no_undefined_flag=$lt_no_undefined_flag_FC
19471 # Flag to hardcode \$libdir into a binary during linking.
19472 # This must work even if \$libdir does not exist
19473 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19475 # If ld is used when linking, flag to hardcode \$libdir into a binary
19476 # during linking. This must work even if \$libdir does not exist.
19477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19479 # Whether we need a single "-rpath" flag with a separated argument.
19480 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19483 # DIR into the resulting binary.
19484 hardcode_direct=$hardcode_direct_FC
19486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19487 # DIR into the resulting binary and the resulting library dependency is
19488 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19489 # library is relocated.
19490 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19492 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19493 # into the resulting binary.
19494 hardcode_minus_L=$hardcode_minus_L_FC
19496 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19497 # into the resulting binary.
19498 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19500 # Set to "yes" if building a shared library automatically hardcodes DIR
19501 # into the library and all subsequent libraries and executables linked
19503 hardcode_automatic=$hardcode_automatic_FC
19505 # Set to yes if linker adds runtime paths of dependent libraries
19506 # to runtime path list.
19507 inherit_rpath=$inherit_rpath_FC
19509 # Whether libtool must link a program against all its dependency libraries.
19510 link_all_deplibs=$link_all_deplibs_FC
19512 # Fix the shell variable \$srcfile for the compiler.
19513 fix_srcfile_path=$lt_fix_srcfile_path_FC
19515 # Set to "yes" if exported symbols are required.
19516 always_export_symbols=$always_export_symbols_FC
19518 # The commands to list exported symbols.
19519 export_symbols_cmds=$lt_export_symbols_cmds_FC
19521 # Symbols that should not be listed in the preloaded symbols.
19522 exclude_expsyms=$lt_exclude_expsyms_FC
19524 # Symbols that must always be exported.
19525 include_expsyms=$lt_include_expsyms_FC
19527 # Commands necessary for linking programs (against libraries) with templates.
19528 prelink_cmds=$lt_prelink_cmds_FC
19530 # Specify filename containing input files.
19531 file_list_spec=$lt_file_list_spec_FC
19533 # How to hardcode a shared library path into an executable.
19534 hardcode_action=$hardcode_action_FC
19536 # The directories searched by this compiler when creating a shared library.
19537 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19539 # Dependencies to place before and after the objects being linked to
19540 # create a shared library.
19541 predep_objects=$lt_predep_objects_FC
19542 postdep_objects=$lt_postdep_objects_FC
19543 predeps=$lt_predeps_FC
19544 postdeps=$lt_postdeps_FC
19546 # The library search path used internally by the compiler when linking
19547 # a shared library.
19548 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19550 # ### END LIBTOOL TAG CONFIG: FC
19561 ac_clean_files
=$ac_clean_files_save
19563 test $ac_write_fail = 0 ||
19564 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19567 # configure is writing to config.log, and then calls config.status.
19568 # config.status does its own redirection, appending to config.log.
19569 # Unfortunately, on DOS this fails, as config.log is still kept open
19570 # by configure, so config.status won't be able to write to it; its
19571 # output is simply discarded. So we exec the FD to /dev/null,
19572 # effectively closing config.log, so it can be properly (re)opened and
19573 # appended to by config.status. When coming back to configure, we
19574 # need to make the FD available again.
19575 if test "$no_create" != yes; then
19577 ac_config_status_args
=
19578 test "$silent" = yes &&
19579 ac_config_status_args
="$ac_config_status_args --quiet"
19581 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19584 # would make configure fail if this is the last instruction.
19585 $ac_cs_success || as_fn_exit
1
19587 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19589 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}