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
638 OMP_NEST_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
669 offload_additional_lib_paths
670 offload_additional_options
681 PLUGIN_NVPTX_CPPFLAGS
690 MAINTAINER_MODE_FALSE
749 INSTALL_STRIP_PROGRAM
805 program_transform_name
818 enable_option_checking
819 enable_version_specific_runtime_libs
820 enable_generated_files_in_srcdir
823 enable_dependency_tracking
830 enable_maintainer_mode
832 with_cuda_driver_include
835 with_hsa_runtime_include
841 with_gcc_major_version_only
843 ac_precious_vars
='build_alias
854 # Initialize some variables set by options.
856 ac_init_version
=false
857 ac_unrecognized_opts
=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
868 program_transform_name
=s
,x
,x
,
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir
='${exec_prefix}/bin'
883 sbindir
='${exec_prefix}/sbin'
884 libexecdir
='${exec_prefix}/libexec'
885 datarootdir
='${prefix}/share'
886 datadir
='${datarootdir}'
887 sysconfdir
='${prefix}/etc'
888 sharedstatedir
='${prefix}/com'
889 localstatedir
='${prefix}/var'
890 includedir
='${prefix}/include'
891 oldincludedir
='/usr/include'
892 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir
='${datarootdir}/info'
898 libdir
='${exec_prefix}/lib'
899 localedir
='${datarootdir}/locale'
900 mandir
='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\
$ac_option
914 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
927 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
930 -build |
--build |
--buil |
--bui |
--bu)
931 ac_prev
=build_alias
;;
932 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
933 build_alias
=$ac_optarg ;;
935 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
936 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
937 ac_prev
=cache_file
;;
938 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
939 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
940 cache_file
=$ac_optarg ;;
943 cache_file
=config.cache
;;
945 -datadir |
--datadir |
--datadi |
--datad)
947 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
948 datadir
=$ac_optarg ;;
950 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
951 |
--dataroo |
--dataro |
--datar)
952 ac_prev
=datarootdir
;;
953 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
954 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
955 datarootdir
=$ac_optarg ;;
957 -disable-* |
--disable-*)
958 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
961 as_fn_error $?
"invalid feature name: $ac_useropt"
962 ac_useropt_orig
=$ac_useropt
963 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep
=', ';;
971 eval enable_
$ac_useropt=no
;;
973 -docdir |
--docdir |
--docdi |
--doc |
--do)
975 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
978 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
980 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
983 -enable-* |
--enable-*)
984 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
987 as_fn_error $?
"invalid feature name: $ac_useropt"
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=\
$ac_optarg ;;
999 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1000 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1001 |
--exec |
--exe |
--ex)
1002 ac_prev
=exec_prefix
;;
1003 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1004 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1005 |
--exec=* |
--exe=* |
--ex=*)
1006 exec_prefix
=$ac_optarg ;;
1008 -gas |
--gas |
--ga |
--g)
1009 # Obsolete; use --with-gas.
1012 -help |
--help |
--hel |
--he |
-h)
1013 ac_init_help
=long
;;
1014 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1015 ac_init_help
=recursive
;;
1016 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1017 ac_init_help
=short
;;
1019 -host |
--host |
--hos |
--ho)
1020 ac_prev
=host_alias
;;
1021 -host=* |
--host=* |
--hos=* |
--ho=*)
1022 host_alias
=$ac_optarg ;;
1024 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1026 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1028 htmldir
=$ac_optarg ;;
1030 -includedir |
--includedir |
--includedi |
--included |
--include \
1031 |
--includ |
--inclu |
--incl |
--inc)
1032 ac_prev
=includedir
;;
1033 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1034 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1035 includedir
=$ac_optarg ;;
1037 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1039 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1040 infodir
=$ac_optarg ;;
1042 -libdir |
--libdir |
--libdi |
--libd)
1044 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1045 libdir
=$ac_optarg ;;
1047 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1048 |
--libexe |
--libex |
--libe)
1049 ac_prev
=libexecdir
;;
1050 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1051 |
--libexe=* |
--libex=* |
--libe=*)
1052 libexecdir
=$ac_optarg ;;
1054 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1055 ac_prev
=localedir
;;
1056 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1057 localedir
=$ac_optarg ;;
1059 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1060 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1061 ac_prev
=localstatedir
;;
1062 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1063 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1064 localstatedir
=$ac_optarg ;;
1066 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1068 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1069 mandir
=$ac_optarg ;;
1071 -nfp |
--nfp |
--nf)
1072 # Obsolete; use --without-fp.
1075 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1076 |
--no-cr |
--no-c |
-n)
1079 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1080 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1083 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1084 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1085 |
--oldin |
--oldi |
--old |
--ol |
--o)
1086 ac_prev
=oldincludedir
;;
1087 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1088 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1089 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1090 oldincludedir
=$ac_optarg ;;
1092 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1094 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1095 prefix
=$ac_optarg ;;
1097 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1098 |
--program-pre |
--program-pr |
--program-p)
1099 ac_prev
=program_prefix
;;
1100 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1101 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1102 program_prefix
=$ac_optarg ;;
1104 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1105 |
--program-suf |
--program-su |
--program-s)
1106 ac_prev
=program_suffix
;;
1107 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1108 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1109 program_suffix
=$ac_optarg ;;
1111 -program-transform-name |
--program-transform-name \
1112 |
--program-transform-nam |
--program-transform-na \
1113 |
--program-transform-n |
--program-transform- \
1114 |
--program-transform |
--program-transfor \
1115 |
--program-transfo |
--program-transf \
1116 |
--program-trans |
--program-tran \
1117 |
--progr-tra |
--program-tr |
--program-t)
1118 ac_prev
=program_transform_name
;;
1119 -program-transform-name=* |
--program-transform-name=* \
1120 |
--program-transform-nam=* |
--program-transform-na=* \
1121 |
--program-transform-n=* |
--program-transform-=* \
1122 |
--program-transform=* |
--program-transfor=* \
1123 |
--program-transfo=* |
--program-transf=* \
1124 |
--program-trans=* |
--program-tran=* \
1125 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1126 program_transform_name
=$ac_optarg ;;
1128 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1130 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1131 pdfdir
=$ac_optarg ;;
1133 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1135 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1138 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1139 |
-silent |
--silent |
--silen |
--sile |
--sil)
1142 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1144 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1146 sbindir
=$ac_optarg ;;
1148 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1149 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1150 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1152 ac_prev
=sharedstatedir
;;
1153 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1154 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1155 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1157 sharedstatedir
=$ac_optarg ;;
1159 -site |
--site |
--sit)
1161 -site=* |
--site=* |
--sit=*)
1164 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1166 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1167 srcdir
=$ac_optarg ;;
1169 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1170 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1171 ac_prev
=sysconfdir
;;
1172 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1173 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1174 sysconfdir
=$ac_optarg ;;
1176 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1177 ac_prev
=target_alias
;;
1178 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1179 target_alias
=$ac_optarg ;;
1181 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1184 -version |
--version |
--versio |
--versi |
--vers |
-V)
1185 ac_init_version
=: ;;
1188 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 as_fn_error $?
"invalid package name: $ac_useropt"
1192 ac_useropt_orig
=$ac_useropt
1193 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep
=', ';;
1201 eval with_
$ac_useropt=\
$ac_optarg ;;
1203 -without-* |
--without-*)
1204 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1207 as_fn_error $?
"invalid package name: $ac_useropt"
1208 ac_useropt_orig
=$ac_useropt
1209 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep
=', ';;
1217 eval with_
$ac_useropt=no
;;
1220 # Obsolete; use --with-x.
1223 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1224 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1225 ac_prev
=x_includes
;;
1226 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1227 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1228 x_includes
=$ac_optarg ;;
1230 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1231 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1232 ac_prev
=x_libraries
;;
1233 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1234 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1235 x_libraries
=$ac_optarg ;;
1237 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1242 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1246 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1248 eval $ac_envvar=\
$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 if test -n "$ac_prev"; then
1263 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $?
"missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 # Check all directory arguments for consistency.
1276 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val
=\$
$ac_var
1282 # Remove trailing slashes.
1285 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\
$ac_val;;
1288 # Be sure to have absolute directory names.
1290 [\\/$
]* | ?
:[\\/]* ) continue;;
1291 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1293 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target
=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x
; then
1305 if test "x$build_alias" = x
; then
1306 cross_compiling
=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1315 test "$silent" = yes && exec 6>/dev
/null
1318 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di
=`ls -di .` &&
1320 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $?
"working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $?
"pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted
=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir
=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted
=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1362 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var
in $ac_precious_vars; do
1379 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1381 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1455 --build=BUILD configure
for building on BUILD
[guessed
]
1456 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1457 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive
) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1468 --disable-option-checking ignore unrecognized
--enable/--with options
1469 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1470 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1471 --enable-version-specific-runtime-libs
1472 Specify that runtime libraries should be installed
1473 in a compiler-specific directory
[default
=no
]
1474 --enable-generated-files-in-srcdir
1475 put copies of generated files
in source dir intended
1476 for creating
source tarballs
for users without
1477 texinfo bison or flex.
[default
=no
]
1478 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1479 --disable-silent-rules verbose build output
(undo
: "make V=0")
1480 --enable-multilib build many library versions
(default
)
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
1485 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1486 --enable-static[=PKGS
] build static libraries
[default
=yes]
1487 --enable-fast-install[=PKGS
]
1488 optimize
for fast installation
[default
=yes]
1489 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful
(and
1492 sometimes confusing
) to the casual installer
1493 --enable-linux-futex use the Linux futex system call
[default
=default
]
1494 --enable-tls Use thread-local storage
[default
=yes]
1495 --enable-symvers=STYLE enables symbol versioning of the shared library
1497 --enable-cet enable Intel CET
in target libraries
[default
=no
]
1500 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1501 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1502 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1504 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1505 --with-cuda-driver=PATH specify prefix directory
for installed CUDA driver
1506 package. Equivalent to
1507 --with-cuda-driver-include=PATH
/include plus
1508 --with-cuda-driver-lib=PATH
/lib
1509 --with-cuda-driver-include=PATH
1510 specify directory
for installed CUDA driver include
1512 --with-cuda-driver-lib=PATH
1513 specify directory
for the installed CUDA driver
1515 --with-hsa-runtime=PATH specify prefix directory
for installed HSA run-time
1516 package. Equivalent to
1517 --with-hsa-runtime-include=PATH
/include plus
1518 --with-hsa-runtime-lib=PATH
/lib
1519 --with-hsa-runtime-include=PATH
1520 specify directory
for installed HSA run-time include
1522 --with-hsa-runtime-lib=PATH
1523 specify directory
for the installed HSA run-time
1525 --with-gcc-major-version-only
1526 use only GCC major number
in filesystem paths
1528 Some influential environment variables
:
1529 CC C compiler
command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1532 nonstandard directory
<lib dir
>
1533 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1534 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1535 you have headers
in a nonstandard directory
<include dir
>
1537 FC Fortran compiler
command
1538 FCFLAGS Fortran compiler flags
1540 Use these variables to override the choices made by
`configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to the package provider.
1544 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1545 General help using GNU software: <http://www.gnu.org/gethelp/>.
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1575 .) # We are building in place.
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1608 GNU Offloading and Multi Processing Runtime Library configure 1.0
1609 generated by GNU Autoconf 2.69
1611 Copyright (C) 2012 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1632 *) ac_try_echo
=$ac_try;;
1634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1638 if test -s conftest.err
; then
1639 grep -v '^ *+' conftest.err
>conftest.er1
1640 cat conftest.er1
>&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.
$ac_objext; then :
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.
$ac_ext >&5
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status
$ac_retval
1658 } # ac_fn_c_try_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1666 rm -f conftest.
$ac_objext conftest
$ac_exeext
1667 if { { ac_try
="$ac_link"
1669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1723 if ac_fn_c_try_compile "$LINENO"; then :
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1746 *) ac_try_echo
=$ac_try;;
1748 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 if test -s conftest.err
; then
1753 grep -v '^ *+' conftest.err
>conftest.er1
1754 cat conftest.er1
>&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i
&& {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.
$ac_ext >&5
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status
$ac_retval
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1780 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1781 if { { ac_try
="$ac_link"
1783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1794 *) ac_try_echo
=$ac_try;;
1796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.
$ac_ext >&5
1808 ac_retval
=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status
$ac_retval
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func
()
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \
${$3+:} false
; then :
1825 $as_echo_n "(cached) " >&6
1827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1839 # include <limits.h>
1841 # include <assert.h>
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1868 if ac_fn_c_try_link
"$LINENO"; then :
1873 rm -f core conftest.err conftest.
$ac_objext \
1874 conftest
$ac_exeext conftest.
$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_func
1883 # ac_fn_fc_try_compile LINENO
1884 # ---------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_fc_try_compile
()
1888 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1889 rm -f conftest.
$ac_objext
1890 if { { ac_try
="$ac_compile"
1892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_fc_try_compile
1921 # ac_fn_fc_try_link LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_fc_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1931 *) ac_try_echo
=$ac_try;;
1933 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1937 if test -s conftest.err
; then
1938 grep -v '^ *+' conftest.err
>conftest.er1
1939 cat conftest.er1
>&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest
$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest
$ac_exeext
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.
$ac_ext >&5
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status
$ac_retval
1965 } # ac_fn_fc_try_link
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1972 ac_fn_c_check_header_mongrel
()
1974 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1975 if eval \
${$3+:} false
; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \
${$3+:} false
; then :
1979 $as_echo_n "(cached) " >&6
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1993 if ac_fn_c_try_compile
"$LINENO"; then :
1994 ac_header_compiler
=yes
1996 ac_header_compiler
=no
1998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 if ac_fn_c_try_cpp
"$LINENO"; then :
2010 ac_header_preproc
=yes
2012 ac_header_preproc
=no
2014 rm -f conftest.err conftest.i conftest.
$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \
${$3+:} false
; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_mongrel
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type
()
2060 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \
${$3+:} false
; then :
2064 $as_echo_n "(cached) " >&6
2067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2079 if ac_fn_c_try_compile
"$LINENO"; then :
2080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2092 if ac_fn_c_try_compile
"$LINENO"; then :
2097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_type
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2113 ac_fn_c_compute_int
()
2115 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile
"$LINENO"; then :
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile
"$LINENO"; then :
2150 ac_hi
=$ac_mid; break
2152 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2153 if test $ac_lo -le $ac_mid; then
2157 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) < 0)];
2170 return test_array [0];
2176 if ac_fn_c_try_compile
"$LINENO"; then :
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile
"$LINENO"; then :
2194 ac_lo
=$ac_mid; break
2196 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2197 if test $ac_mid -le $ac_hi; then
2201 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile
"$LINENO"; then :
2231 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2251 FILE *f = fopen ("conftest.val", "w");
2256 long int i = longval ();
2259 fprintf (f, "%ld", i);
2263 unsigned long int i = ulongval ();
2266 fprintf (f, "%lu", i);
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2276 if ac_fn_c_try_run
"$LINENO"; then :
2277 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2281 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2282 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status
$ac_retval
2289 } # ac_fn_c_compute_int
2290 cat >config.log
<<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2294 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir
=.
2331 $as_echo "PATH: $as_dir"
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2355 ac_must_keep_next
=false
2361 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2362 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2363 |
-silent |
--silent |
--silen |
--sile |
--sil)
2366 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2371 as_fn_append ac_configure_args1
" '$ac_arg'"
2372 if test $ac_must_keep_next = true
; then
2373 ac_must_keep_next
=false
# Got value, back to normal.
2376 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2377 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2378 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2379 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2384 -* ) ac_must_keep_next
=true
;;
2387 as_fn_append ac_configure_args
" '$ac_arg'"
2392 { ac_configure_args0
=; unset ac_configure_args0
;}
2393 { ac_configure_args1
=; unset ac_configure_args1
;}
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2409 # The following way of writing the cache mishandles newlines in values,
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2445 for ac_var in $ac_subst_vars
2447 eval ac_val=\$$ac_var
2449 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451 $as_echo "$ac_var='\''$ac_val'\''"
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2460 for ac_var
in $ac_subst_files
2462 eval ac_val
=\$
$ac_var
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466 $as_echo "$ac_var='\''$ac_val'\''"
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487 for ac_signal
in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest
* confdefs.h
2495 $as_echo "/* confdefs.h */" > confdefs.h
2497 # Predefined preprocessor variables.
2499 cat >>confdefs.h
<<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 cat >>confdefs.h
<<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 cat >>confdefs.h
<<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 cat >>confdefs.h
<<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 cat >>confdefs.h
<<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 cat >>confdefs.h
<<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2532 */*) ac_site_file1
=$CONFIG_SITE;;
2533 *) ac_site_file1
=.
/$CONFIG_SITE;;
2535 elif test "x$prefix" != xNONE
; then
2536 ac_site_file1
=$prefix/share
/config.site
2537 ac_site_file2
=$prefix/etc
/config.site
2539 ac_site_file1
=$ac_default_prefix/share
/config.site
2540 ac_site_file2
=$ac_default_prefix/etc
/config.site
2542 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2544 test "x$ac_site_file" = xNONE
&& continue
2545 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2550 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $?
"failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2564 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2565 *) .
"./$cache_file";;
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2574 as_fn_append ac_header_list
" unistd.h"
2575 as_fn_append ac_func_list
" secure_getenv"
2576 as_fn_append ac_func_list
" __secure_getenv"
2577 as_fn_append ac_func_list
" getuid"
2578 as_fn_append ac_func_list
" geteuid"
2579 as_fn_append ac_func_list
" getgid"
2580 as_fn_append ac_func_list
" getegid"
2581 # Check that the precious variables saved in the cache have kept the same
2583 ac_cache_corrupted
=false
2584 for ac_var
in $ac_precious_vars; do
2585 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2586 eval ac_new_set
=\
$ac_env_${ac_var}_set
2587 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2588 eval ac_new_val
=\
$ac_env_${ac_var}_value
2589 case $ac_old_set,$ac_new_set in
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593 ac_cache_corrupted
=: ;;
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597 ac_cache_corrupted
=: ;;
2600 if test "x$ac_old_val" != "x$ac_new_val"; then
2601 # differences in whitespace do not lead to failure.
2602 ac_old_val_w
=`echo x $ac_old_val`
2603 ac_new_val_w
=`echo x $ac_new_val`
2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607 ac_cache_corrupted
=:
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611 eval $ac_var=\
$ac_old_val
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2614 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2616 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2619 # Pass precious variables to config.status.
2620 if test "$ac_new_set" = set; then
2622 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623 *) ac_arg
=$ac_var=$ac_new_val ;;
2625 case " $ac_configure_args " in
2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2627 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2631 if $ac_cache_corrupted; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2636 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2638 ## -------------------- ##
2639 ## Main body of script. ##
2640 ## -------------------- ##
2643 ac_cpp
='$CPP $CPPFLAGS'
2644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2652 ac_config_headers
="$ac_config_headers config.h"
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2660 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2661 # Check whether --enable-version-specific-runtime-libs was given.
2662 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2663 enableval
=$enable_version_specific_runtime_libs;
2664 case "$enableval" in
2666 *) as_fn_error $?
"Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2670 enable_version_specific_runtime_libs
=no
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2675 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2677 # We would like our source tree to be readonly. However when releases or
2678 # pre-releases are generated, the flex/bison generated files as well as the
2679 # various formats of manuals need to be included along with the rest of the
2680 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2683 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2684 # Check whether --enable-generated-files-in-srcdir was given.
2685 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2686 enableval
=$enable_generated_files_in_srcdir;
2687 case "$enableval" in
2689 *) as_fn_error $?
"Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2693 enable_generated_files_in_srcdir
=no
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2698 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2699 if test "$enable_generated_files_in_srcdir" = yes; then
2712 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2714 # You will slowly go insane if you do not grok the following fact: when
2715 # building this library, the top-level /target/ becomes the library's /host/.
2717 # configure then causes --target to default to --host, exactly like any
2718 # other package using autoconf. Therefore, 'target' and 'host' will
2719 # always be the same. This makes sense both for native and cross compilers
2720 # just think about it for a little while. :-)
2722 # Also, if this library is being configured as part of a cross compiler, the
2723 # top-level configure script will pass the "real" host as $with_cross_host.
2725 # Do not delete or change the following two lines. For why, see
2726 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2728 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2729 if test -f "$ac_dir/install-sh"; then
2731 ac_install_sh
="$ac_aux_dir/install-sh -c"
2733 elif test -f "$ac_dir/install.sh"; then
2735 ac_install_sh
="$ac_aux_dir/install.sh -c"
2737 elif test -f "$ac_dir/shtool"; then
2739 ac_install_sh
="$ac_aux_dir/shtool install -c"
2743 if test -z "$ac_aux_dir"; then
2744 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2747 # These three variables are undocumented and unsupported,
2748 # and are intended to be withdrawn in a future Autoconf release.
2749 # They can cause serious problems if a builder's source tree is in a directory
2750 # whose full name contains unusual characters.
2751 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2752 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2753 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2756 # Make sure we can run config.sub.
2757 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2758 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2761 $as_echo_n "checking build system type... " >&6; }
2762 if ${ac_cv_build+:} false
; then :
2763 $as_echo_n "(cached) " >&6
2765 ac_build_alias
=$build_alias
2766 test "x$ac_build_alias" = x
&&
2767 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2768 test "x$ac_build_alias" = x
&&
2769 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2770 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2771 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2775 $as_echo "$ac_cv_build" >&6; }
2776 case $ac_cv_build in
2778 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2781 ac_save_IFS
=$IFS; IFS
='-'
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2791 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2795 $as_echo_n "checking host system type... " >&6; }
2796 if ${ac_cv_host+:} false
; then :
2797 $as_echo_n "(cached) " >&6
2799 if test "x$host_alias" = x
; then
2800 ac_cv_host
=$ac_cv_build
2802 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2803 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2808 $as_echo "$ac_cv_host" >&6; }
2811 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2814 ac_save_IFS
=$IFS; IFS
='-'
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2824 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2828 $as_echo_n "checking target system type... " >&6; }
2829 if ${ac_cv_target+:} false
; then :
2830 $as_echo_n "(cached) " >&6
2832 if test "x$target_alias" = x
; then
2833 ac_cv_target
=$ac_cv_host
2835 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2836 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2841 $as_echo "$ac_cv_target" >&6; }
2842 case $ac_cv_target in
2844 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2846 target
=$ac_cv_target
2847 ac_save_IFS
=$IFS; IFS
='-'
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2857 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2860 # The aliases save the names the user supplied, while $host etc.
2861 # will get canonicalized.
2862 test -n "$target_alias" &&
2863 test "$program_prefix$program_suffix$program_transform_name" = \
2865 program_prefix
=${target_alias}-
2867 target_alias
=${target_alias-$host_alias}
2869 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2870 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2871 # 1.9.0: minimum required version
2872 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2873 # of other PACKAGE_* variables will, however, and there's nothing
2874 # we can do about that; they come from AC_INIT).
2875 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2876 # file in the top srcdir, etc, etc), so stop complaining.
2877 # no-dist: we don't want 'dist' and related rules.
2878 # -Wall: turns on all automake warnings...
2879 # -Wno-portability: ...except this one, since GNU make is required.
2880 # -Wno-override: ... and this one, since we do want this in testsuite.
2881 am__api_version
='1.15'
2883 # Find a good install program. We prefer a C program (faster),
2884 # so one script is as good as another. But avoid the broken or
2885 # incompatible versions:
2886 # SysV /etc/install, /usr/sbin/install
2887 # SunOS /usr/etc/install
2888 # IRIX /sbin/install
2890 # AmigaOS /C/install, which installs bootblocks on floppy discs
2891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2894 # OS/2's system install, which has a completely different semantic
2895 # ./install, which can be erroneously created by make from ./install.sh.
2896 # Reject install programs that cannot install multiple files.
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2898 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2899 if test -z "$INSTALL"; then
2900 if ${ac_cv_path_install+:} false
; then :
2901 $as_echo_n "(cached) " >&6
2903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir
=.
2908 # Account for people who put trailing slashes in PATH elements.
2909 case $as_dir/ in #((
2910 .
/ | .
// |
/[cC
]/* | \
2911 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2912 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2915 # OSF1 and SCO ODT 3.0 have their own names for install.
2916 # Don't use installbsd from OSF since it installs stuff as root
2918 for ac_prog
in ginstall scoinst
install; do
2919 for ac_exec_ext
in '' $ac_executable_extensions; do
2920 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2921 if test $ac_prog = install &&
2922 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2923 # AIX install. It has an incompatible calling convention.
2925 elif test $ac_prog = install &&
2926 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2927 # program-specific install script used by HP pwplus--don't use.
2930 rm -rf conftest.one conftest.two conftest.dir
2931 echo one
> conftest.one
2932 echo two
> conftest.two
2934 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2935 test -s conftest.one
&& test -s conftest.two
&&
2936 test -s conftest.dir
/conftest.one
&&
2937 test -s conftest.dir
/conftest.two
2939 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2952 rm -rf conftest.one conftest.two conftest.dir
2955 if test "${ac_cv_path_install+set}" = set; then
2956 INSTALL
=$ac_cv_path_install
2958 # As a last resort, use the slow shell script. Don't cache a
2959 # value for INSTALL within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the value is a relative name.
2962 INSTALL
=$ac_install_sh
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2966 $as_echo "$INSTALL" >&6; }
2968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2969 # It thinks the first close brace ends the variable substitution.
2970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2974 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2977 $as_echo_n "checking whether build environment is sane... " >&6; }
2978 # Reject unsafe characters in $srcdir or the absolute working directory
2979 # name. Accept space and tab only in the latter.
2983 *[\\\"\
#\$\&\'\`$am_lf]*)
2984 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2987 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2988 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2991 # Do 'set' in a subshell so we don't clobber the current shell's
2992 # arguments. Must try -L first in case configure is actually a
2993 # symlink; some systems play weird games with the mod time of symlinks
2994 # (eg FreeBSD returns the mod time of the symlink's containing
2998 for am_try
in 1 2; do
2999 echo "timestamp, slept: $am_has_slept" > conftest.
file
3000 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3001 if test "$*" = "X"; then
3003 set X
`ls -t "$srcdir/configure" conftest.file`
3005 if test "$*" != "X $srcdir/configure conftest.file" \
3006 && test "$*" != "X conftest.file $srcdir/configure"; then
3008 # If neither matched, then we have a broken ls. This can happen
3009 # if, for instance, CONFIG_SHELL is bash and it inherits a
3010 # broken ls alias from the environment. This has actually
3011 # happened. Such a system could not be considered "sane".
3012 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3013 alias in your environment" "$LINENO" 5
3015 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3022 test "$2" = conftest.
file
3028 as_fn_error $?
"newly created file is older than distributed files!
3029 Check your system clock" "$LINENO" 5
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3033 # If we didn't sleep, we still need to ensure time stamps of config.status and
3034 # generated files are strictly newer.
3036 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3043 test "$program_prefix" != NONE
&&
3044 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3045 # Use a double $ so make ignores it.
3046 test "$program_suffix" != NONE
&&
3047 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3048 # Double any \ or $.
3049 # By default was `s,x,x', remove it if useless.
3050 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3051 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3053 # Expand $ac_aux_dir to an absolute path.
3054 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3056 if test x
"${MISSING+set}" != xset
; then
3059 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3061 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3064 # Use eval to expand $SHELL
3065 if eval "$MISSING --is-lightweight"; then
3066 am_missing_run
="$MISSING "
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3070 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3073 if test x
"${install_sh+set}" != xset
; then
3076 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3078 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3082 # Installed binaries are usually stripped using 'strip' when the user
3083 # run "make install-strip". However 'strip' might not be the right
3084 # tool to use in cross-compilation environments, therefore Automake
3085 # will honor the 'STRIP' environment variable to overrule this program.
3086 if test "$cross_compiling" != no
; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3089 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_STRIP+:} false
; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$STRIP"; then
3096 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir
=.
3103 for ac_exec_ext
in '' $ac_executable_extensions; do
3104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 STRIP
=$ac_cv_prog_STRIP
3116 if test -n "$STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3118 $as_echo "$STRIP" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3126 if test -z "$ac_cv_prog_STRIP"; then
3128 # Extract the first word of "strip", so it can be a program name with args.
3129 set dummy strip
; ac_word
=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$ac_ct_STRIP"; then
3136 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir
=.
3143 for ac_exec_ext
in '' $ac_executable_extensions; do
3144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_STRIP
="strip"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3156 if test -n "$ac_ct_STRIP"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3158 $as_echo "$ac_ct_STRIP" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3164 if test "x$ac_ct_STRIP" = x
; then
3167 case $cross_compiling:$ac_tool_warned in
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned
=yes ;;
3176 STRIP
="$ac_cv_prog_STRIP"
3180 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3183 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3184 if test -z "$MKDIR_P"; then
3185 if ${ac_cv_path_mkdir+:} false
; then :
3186 $as_echo_n "(cached) " >&6
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3189 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_prog
in mkdir gmkdir
; do
3194 for ac_exec_ext
in '' $ac_executable_extensions; do
3195 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3196 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3197 'mkdir (GNU coreutils) '* | \
3198 'mkdir (coreutils) '* | \
3199 'mkdir (fileutils) '4.1*)
3200 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3210 test -d .
/--version && rmdir .
/--version
3211 if test "${ac_cv_path_mkdir+set}" = set; then
3212 MKDIR_P
="$ac_cv_path_mkdir -p"
3214 # As a last resort, use the slow shell script. Don't cache a
3215 # value for MKDIR_P within a source directory, because that will
3216 # break other packages using the cache if that directory is
3217 # removed, or if the value is a relative name.
3218 MKDIR_P
="$ac_install_sh -d"
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3222 $as_echo "$MKDIR_P" >&6; }
3224 for ac_prog
in gawk mawk nawk
awk
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227 set dummy
$ac_prog; ac_word
=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_AWK+:} false
; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$AWK"; then
3234 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_AWK
="$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$AWK"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3256 $as_echo "$AWK" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$AWK" && break
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3267 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3269 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3270 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3271 $as_echo_n "(cached) " >&6
3273 cat >conftest.
make <<\_ACEOF
3276 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3278 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3279 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3281 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3283 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3287 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 SET_MAKE
="MAKE=${MAKE-make}"
3297 rm -rf .tst
2>/dev
/null
3298 mkdir .tst
2>/dev
/null
3299 if test -d .tst
; then
3304 rmdir .tst
2>/dev
/null
3306 # Check whether --enable-silent-rules was given.
3307 if test "${enable_silent_rules+set}" = set; then :
3308 enableval
=$enable_silent_rules;
3311 case $enable_silent_rules in # (((
3312 yes) AM_DEFAULT_VERBOSITY
=0;;
3313 no
) AM_DEFAULT_VERBOSITY
=1;;
3314 *) AM_DEFAULT_VERBOSITY
=1;;
3316 am_make
=${MAKE-make}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3318 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3319 if ${am_cv_make_support_nested_variables+:} false
; then :
3320 $as_echo_n "(cached) " >&6
3322 if $as_echo 'TRUE=$(BAR$(V))
3328 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3329 am_cv_make_support_nested_variables
=yes
3331 am_cv_make_support_nested_variables
=no
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3335 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3336 if test $am_cv_make_support_nested_variables = yes; then
3338 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3340 AM_V
=$AM_DEFAULT_VERBOSITY
3341 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3346 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3347 # is not polluted with repeated "-I."
3348 am__isrc
=' -I$(srcdir)'
3349 # test to see if srcdir already configured
3350 if test -f $srcdir/config.status
; then
3351 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3355 # test whether we have cygpath
3356 if test -z "$CYGPATH_W"; then
3357 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3358 CYGPATH_W
='cygpath -w'
3365 # Define the identity of the package.
3370 cat >>confdefs.h
<<_ACEOF
3371 #define PACKAGE "$PACKAGE"
3375 cat >>confdefs.h
<<_ACEOF
3376 #define VERSION "$VERSION"
3379 # Some tools Automake needs.
3381 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3387 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3393 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3395 # For better backward compatibility. To be removed once Automake 1.9.x
3396 # dies out for good. For more background, see:
3397 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3398 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3399 mkdir_p
='$(MKDIR_P)'
3401 # We need awk for the "check" target (and possibly the TAP driver). The
3402 # system "awk" is bad on some platforms.
3403 # Always define AMTAR for backward compatibility. Yes, it's still used
3404 # in the wild :-( We should find a proper way to deprecate it ...
3408 # We'll loop over all known methods to create a tar archive until one works.
3409 _am_tools
='gnutar pax cpio none'
3411 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3418 # POSIX will say in a future version that running "rm -f" with no argument
3419 # is OK; and we want to be able to make that assumption in our Makefile
3420 # recipes. So use an aggressive probe to check that the usage we want is
3421 # actually supported "in the wild" to an acceptable degree.
3422 # See automake bug#10828.
3423 # To make any issue more visible, cause the running configure to be aborted
3424 # by default if the 'rm' program in use doesn't match our expectations; the
3425 # user can still override this though.
3426 if rm -f && rm -fr && rm -rf; then : OK
; else
3430 Your 'rm' program seems unable to run without file operands specified
3431 on the command line, even when the '-f' option is present. This is contrary
3432 to the behaviour of most rm programs out there, and not conforming with
3433 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3435 Please tell bug-automake@gnu.org about your system, including the value
3436 of your $PATH and any error possibly output before this message. This
3437 can help us improve future automake versions.
3440 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3441 echo 'Configuration will proceed anyway, since you have set the' >&2
3442 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3446 Aborting the configuration process, to ensure you take notice of the issue.
3448 You can download and install GNU coreutils to get an 'rm' implementation
3449 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3451 If you want to complete the configuration process using your problematic
3452 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3453 to "yes", and re-run configure.
3456 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3460 # Default to --enable-multilib
3461 # Check whether --enable-multilib was given.
3462 if test "${enable_multilib+set}" = set; then :
3463 enableval
=$enable_multilib; case "$enableval" in
3464 yes) multilib
=yes ;;
3466 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3473 # We may get other options which we leave undocumented:
3474 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3475 # See config-ml.in if you want the gory details.
3477 if test "$srcdir" = "."; then
3478 if test "$with_target_subdir" != "."; then
3479 multi_basedir
="$srcdir/$with_multisrctop../.."
3481 multi_basedir
="$srcdir/$with_multisrctop.."
3484 multi_basedir
="$srcdir/.."
3488 # Even if the default multilib is not a cross compilation,
3489 # it may be that some of the other multilibs are.
3490 if test $cross_compiling = no
&& test $multilib = yes \
3491 && test "x${with_multisubdir}" != x
; then
3492 cross_compiling
=maybe
3495 ac_config_commands
="$ac_config_commands default-1"
3498 # Calculate toolexeclibdir
3499 # Also toolexecdir, though it's only used in toolexeclibdir
3500 case ${enable_version_specific_runtime_libs} in
3502 # Need the gcc compiler version to know where to install libraries
3503 # and header files if --enable-version-specific-runtime-libs option
3505 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3506 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3509 if test -n "$with_cross_host" &&
3510 test x
"$with_cross_host" != x
"no"; then
3511 # Install a library built with a cross compiler in tooldir, not libdir.
3512 toolexecdir
='$(exec_prefix)/$(target_alias)'
3513 toolexeclibdir
='$(toolexecdir)/lib'
3515 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3516 toolexeclibdir
='$(libdir)'
3518 multi_os_directory
=`$CC -print-multi-os-directory`
3519 case $multi_os_directory in
3520 .
) ;; # Avoid trailing /.
3521 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3528 # Check the compiler.
3529 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3530 # We must force CC to /not/ be precious variables; otherwise
3531 # the wrong, non-multilib-adjusted value will be used in multilibs.
3532 # As a side effect, we have to subst CFLAGS ourselves.
3537 ac_cpp
='$CPP $CPPFLAGS'
3538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_CC+:} false
; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC
="$CC" # Let the user override the test.
3552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir
=.
3557 for ac_exec_ext
in '' $ac_executable_extensions; do
3558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3580 if test -z "$ac_cv_prog_CC"; then
3582 # Extract the first word of "gcc", so it can be a program name with args.
3583 set dummy gcc
; ac_word
=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$ac_ct_CC"; then
3590 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir
=.
3597 for ac_exec_ext
in '' $ac_executable_extensions; do
3598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_ac_ct_CC
="gcc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3610 if test -n "$ac_ct_CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612 $as_echo "$ac_ct_CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3618 if test "x$ac_ct_CC" = x
; then
3621 case $cross_compiling:$ac_tool_warned in
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned
=yes ;;
3633 if test -z "$CC"; then
3634 if test -n "$ac_tool_prefix"; then
3635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3636 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_CC+:} false
; then :
3640 $as_echo_n "(cached) " >&6
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC
="$CC" # Let the user override the test.
3645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir
=.
3650 for ac_exec_ext
in '' $ac_executable_extensions; do
3651 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 if test -n "$CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 $as_echo "$CC" >&6; }
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3674 if test -z "$CC"; then
3675 # Extract the first word of "cc", so it can be a program name with args.
3676 set dummy cc
; ac_word
=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false
; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC
="$CC" # Let the user override the test.
3686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir
=.
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694 ac_prog_rejected
=yes
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 if test $ac_prog_rejected = yes; then
3706 # We found a bogon in the path, so make sure we never use it.
3707 set dummy
$ac_cv_prog_CC
3709 if test $# != 0; then
3710 # We chose a different compiler from the bogus one.
3711 # However, it has the same basename, so the bogon will be chosen
3712 # first if we set CC to just the basename; use the full file name.
3714 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3720 if test -n "$CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 $as_echo "$CC" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3730 if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 for ac_prog
in cl.exe
3734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CC+:} false
; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC
="$CC" # Let the user override the test.
3744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir
=.
3749 for ac_exec_ext
in '' $ac_executable_extensions; do
3750 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 if test -n "$CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764 $as_echo "$CC" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$CC" && break
3774 if test -z "$CC"; then
3776 for ac_prog
in cl.exe
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy
$ac_prog; ac_word
=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir
=.
3793 for ac_exec_ext
in '' $ac_executable_extensions; do
3794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_CC
="$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3806 if test -n "$ac_ct_CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808 $as_echo "$ac_ct_CC" >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3815 test -n "$ac_ct_CC" && break
3818 if test "x$ac_ct_CC" = x
; then
3821 case $cross_compiling:$ac_tool_warned in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned
=yes ;;
3834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $?
"no acceptable C compiler found in \$PATH
3837 See \`config.log' for more details" "$LINENO" 5; }
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3843 for ac_option
in --version -v -V -qversion; do
3844 { { ac_try
="$ac_compiler $ac_option >&5"
3846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853 if test -s conftest.err; then
3855 ... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3859 rm -f conftest.er1 conftest.err
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3875 ac_clean_files_save=$ac_clean_files
3876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3877 # Try to create an executable without -o first, disregard a.out.
3878 # It will help us diagnose broken compilers, and finding out an intuition
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3881 $as_echo_n "checking whether the C compiler works... " >&6; }
3882 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3884 # The possible output files:
3885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3888 for ac_file in $ac_files
3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3897 if { { ac_try="$ac_link_default"
3899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3900 *) ac_try_echo
=$ac_try;;
3902 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_link_default") 2>&5
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; then :
3908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3911 # so that the user can short-circuit this test for compilers unknown to
3913 for ac_file
in $ac_files ''
3915 test -f "$ac_file" ||
continue
3917 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3920 # We found the default executable, but exeext='' is most
3924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3926 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3928 # We set ac_cv_exeext here because the later test for it is not
3929 # safe: cross compilers may not add the suffix if given an `-o'
3930 # argument, so we may need to know it at that point already.
3931 # Even if this section looks crufty: it has the advantage of
3938 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3943 if test -z "$ac_file"; then :
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.
$ac_ext >&5
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error
77 "C compiler cannot create executables
3952 See \`config.log' for more details" "$LINENO" 5; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3958 $as_echo_n "checking for C compiler default output file name... " >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3960 $as_echo "$ac_file" >&6; }
3961 ac_exeext
=$ac_cv_exeext
3963 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3964 ac_clean_files
=$ac_clean_files_save
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3966 $as_echo_n "checking for suffix of executables... " >&6; }
3967 if { { ac_try
="$ac_link"
3969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_link") 2>&5
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3979 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3980 # work properly (i.e., refer to `conftest.exe'), while it won't with
3982 for ac_file
in conftest.exe conftest conftest.
*; do
3983 test -f "$ac_file" ||
continue
3985 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3986 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3995 See \`config.log' for more details" "$LINENO" 5; }
3997 rm -f conftest conftest
$ac_cv_exeext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3999 $as_echo "$ac_cv_exeext" >&6; }
4001 rm -f conftest.
$ac_ext
4002 EXEEXT
=$ac_cv_exeext
4004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4010 FILE *f = fopen ("conftest.out", "w");
4011 return ferror (f) || fclose (f) != 0;
4017 ac_clean_files
="$ac_clean_files conftest.out"
4018 # Check that the compiler produces executables we can run. If not, either
4019 # the compiler is broken, or we cross compile.
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4021 $as_echo_n "checking whether we are cross compiling... " >&6; }
4022 if test "$cross_compiling" != yes; then
4023 { { ac_try
="$ac_link"
4025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_link") 2>&5
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4034 if { ac_try='./conftest$ac_cv_exeext'
4035 { { case "(($ac_try" in
4036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4037 *) ac_try_echo
=$ac_try;;
4039 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_try") 2>&5
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; }; then
4047 if test "$cross_compiling" = maybe
; then
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error $?
"cannot run C compiled programs.
4053 If you meant to cross compile, use \`--host'.
4054 See \`config.log' for more details" "$LINENO" 5; }
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4059 $as_echo "$cross_compiling" >&6; }
4061 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4062 ac_clean_files
=$ac_clean_files_save
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4064 $as_echo_n "checking for suffix of object files... " >&6; }
4065 if ${ac_cv_objext+:} false
; then :
4066 $as_echo_n "(cached) " >&6
4068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 rm -f conftest.o conftest.obj
4080 if { { ac_try
="$ac_compile"
4082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compile") 2>&5
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }; then :
4091 for ac_file in conftest.o conftest.obj conftest.*; do
4092 test -f "$ac_file" || continue;
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4100 $as_echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4106 See \
`config.log' for more details" "$LINENO" 5; }
4108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4111 $as_echo "$ac_cv_objext" >&6; }
4112 OBJEXT=$ac_cv_objext
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4116 if ${ac_cv_c_compiler_gnu+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4144 if test $ac_compiler_gnu = yes; then
4149 ac_test_CFLAGS=${CFLAGS+set}
4150 ac_save_CFLAGS=$CFLAGS
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4153 if ${ac_cv_prog_cc_g+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_save_c_werror_flag=$ac_c_werror_flag
4157 ac_c_werror_flag=yes
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4171 if ac_fn_c_try_compile "$LINENO"; then :
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4186 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_c_werror_flag=$ac_save_c_werror_flag
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4202 if ac_fn_c_try_compile "$LINENO"; then :
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4213 $as_echo "$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4223 if test "$GCC" = yes; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4231 if ${ac_cv_prog_cc_c89+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_cv_prog_cc_c89=no
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4242 struct buf { int x; };
4243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4244 static char *e (p, i)
4250 static char *f (char * (*g) (char **, int), char **p, ...)
4255 s = g (p, va_arg (v,int));
4260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4261 function prototypes and stuff, but not '\xHH' hex character constants.
4262 These don't provoke an error unfortunately, instead are silently treated
4263 as 'x'. The following induces an error, until -std is added to get
4264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4265 array size at least. It's necessary to write '\x00'==0 to get something
4266 that's true only with -std. */
4267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4270 inside strings and character constants. */
4272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4274 int test (int i, double x);
4275 struct s1 {int (*f) (int a);};
4276 struct s2 {int (*f) (double a);};
4277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_prog_cc_c89=$ac_arg
4295 rm -f core conftest.err conftest.$ac_objext
4296 test "x$ac_cv_prog_cc_c89" != "xno" && break
4298 rm -f conftest.$ac_ext
4303 case "x$ac_cv_prog_cc_c89" in
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 $as_echo "none needed" >&6; } ;;
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309 $as_echo "unsupported" >&6; } ;;
4311 CC="$CC $ac_cv_prog_cc_c89"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4315 if test "x$ac_cv_prog_cc_c89" != xno; then :
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4331 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4332 if ${am_cv_prog_cc_c_o+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4346 # Make sure it works both with $CC and with simple cc.
4347 # Following AC_PROG_CC_C_O, we do the test twice because some
4348 # compilers refuse to overwrite an existing .o file with -o,
4349 # though they will create one.
4350 am_cv_prog_cc_c_o=yes
4352 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4353 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } \
4357 && test -f conftest2.$ac_objext; then
4360 am_cv_prog_cc_c_o=no
4364 rm -f core conftest*
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4368 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4369 if test "$am_cv_prog_cc_c_o" != yes; then
4370 # Losing compiler, so override with the script.
4371 # FIXME: It is wrong to rewrite CC.
4372 # But if we don't then we get into trouble of one sort or another.
4373 # A longer-term fix would be to have automake use am__CC in this case,
4374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4375 CC="$am_aux_dir/compile $CC"
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 DEPDIR="${am__leading_dot}deps"
4385 ac_config_commands="$ac_config_commands depfiles"
4388 am_make=${MAKE-make}
4389 cat > confinc << 'END'
4391 @echo this is the am__doit target
4394 # If we don't find an include directive, just comment out the code.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4396 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4400 # First try GNU make style include.
4401 echo "include confinc" > confmf
4402 # Ignore all kinds of additional output from 'make'.
4403 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4404 *the\ am__doit\ target*)
4410 # Now try BSD make style include.
4411 if test "$am__include" = "#"; then
4412 echo '.include "confinc"' > confmf
4413 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4414 *the\ am__doit\ target*)
4415 am__include=.include
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4424 $as_echo "$_am_result" >&6; }
4425 rm -f confinc confmf
4427 # Check whether --enable-dependency-tracking was given.
4428 if test "${enable_dependency_tracking+set}" = set; then :
4429 enableval=$enable_dependency_tracking;
4432 if test "x$enable_dependency_tracking" != xno; then
4433 am_depcomp="$ac_aux_dir/depcomp"
4437 if test "x$enable_dependency_tracking" != xno; then
4447 depcc="$CC" am_compiler_list=
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4450 $as_echo_n "checking dependency style of $depcc... " >&6; }
4451 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4455 # We make a subdir and do the tests there. Otherwise we can end up
4456 # making bogus files that we don't know about and never remove. For
4457 # instance it was reported that on HP-UX the gcc test will end up
4458 # making a dummy file named 'D' -- because '-MD' means "put the output
4462 # Copy depcomp to subdir because otherwise we won't find it if we're
4463 # using a relative directory.
4464 cp "$am_depcomp" conftest.dir
4466 # We will build objects and dependencies in a subdirectory because
4467 # it helps to detect inapplicable dependency modes. For instance
4468 # both Tru64's cc and ICC support -MD to output dependencies as a
4469 # side effect of compilation, but ICC will put the dependencies in
4470 # the current directory while Tru64 will put them in the object
4474 am_cv_CC_dependencies_compiler_type=none
4475 if test "$am_compiler_list" = ""; then
4476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4479 case " $depcc " in #(
4480 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4483 for depmode in $am_compiler_list; do
4484 # Setup a source with many dependencies, because some compilers
4485 # like to wrap large dependency lists on column 80 (with \), and
4486 # we should not choose a depcomp mode which is confused by this.
4488 # We need to recreate these files for each test, as the compiler may
4489 # overwrite some of them when testing with obscure command lines.
4490 # This happens at least with the AIX C compiler.
4492 for i in 1 2 3 4 5 6; do
4493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4494 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4495 # Solaris 10 /bin/sh.
4496 echo '/* dummy */' > sub/conftst$i.h
4498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4500 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4501 # mode. It turns out that the SunPro C++ compiler does not properly
4502 # handle '-M -o', and we need to detect this. Also, some Intel
4503 # versions had trouble with output in subdirs.
4504 am__obj=sub/conftest.${OBJEXT-o}
4505 am__minus_obj="-o $am__obj"
4508 # This depmode causes a compiler race in universal mode.
4509 test "$am__universal" = false || continue
4512 # After this tag, mechanisms are not by side-effect, so they'll
4513 # only be used when explicitly requested.
4514 if test "x$enable_dependency_tracking" = xyes; then
4520 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4521 # This compiler won't grok '-c -o', but also, the minuso test has
4522 # not run yet. These depmodes are late enough in the game, and
4523 # so weak that their functioning should not be impacted.
4524 am__obj=conftest.${OBJEXT-o}
4529 if depmode=$depmode \
4530 source=sub/conftest.c object=$am__obj \
4531 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4532 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4533 >/dev/null 2>conftest.err &&
4534 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4536 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4538 # icc doesn't choke on unknown options, it will just issue warnings
4539 # or remarks (even with -Werror). So we grep stderr for any message
4540 # that says an option was ignored or not supported.
4541 # When given -MP, icc 7.0 and 7.1 complain thusly:
4542 # icc: Command line warning: ignoring option '-M'; no argument required
4543 # The diagnosis changed in icc 8.0:
4544 # icc: Command line remark: option '-MP' not supported
4545 if (grep 'ignoring option' conftest.err ||
4546 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4547 am_cv_CC_dependencies_compiler_type=$depmode
4556 am_cv_CC_dependencies_compiler_type=none
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4561 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4562 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4565 test "x$enable_dependency_tracking" != xno \
4566 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4568 am__fastdepCC_FALSE='#'
4570 am__fastdepCC_TRUE='#'
4571 am__fastdepCC_FALSE=
4579 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4580 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4581 # in both places for now and restore CFLAGS at the end of config.
4582 save_CFLAGS="$CFLAGS"
4584 # Add -Wall -Werror if we are using GCC.
4585 if test "x$GCC" = "xyes"; then
4586 XCFLAGS="$XCFLAGS -Wall -Werror"
4589 # Find other programs we need.
4590 if test -n "$ac_tool_prefix"; then
4591 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4592 set dummy ${ac_tool_prefix}ar; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_AR+:} false; then :
4596 $as_echo_n "(cached) " >&6
4598 if test -n "$AR"; then
4599 ac_cv_prog_AR="$AR" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_AR="${ac_tool_prefix}ar"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 if test -n "$AR"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4621 $as_echo "$AR" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4629 if test -z "$ac_cv_prog_AR"; then
4631 # Extract the first word of "ar", so it can be a program name with args.
4632 set dummy ar; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -n "$ac_ct_AR"; then
4639 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_AR="ar"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4659 if test -n "$ac_ct_AR"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4661 $as_echo "$ac_ct_AR" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4667 if test "x$ac_ct_AR" = x; then
4670 case $cross_compiling:$ac_tool_warned in
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674 ac_tool_warned=yes ;;
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_RANLIB+:} false; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$RANLIB"; then
4691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 RANLIB=$ac_cv_prog_RANLIB
4711 if test -n "$RANLIB"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4713 $as_echo "$RANLIB" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4721 if test -z "$ac_cv_prog_RANLIB"; then
4722 ac_ct_RANLIB=$RANLIB
4723 # Extract the first word of "ranlib", so it can be a program name with args.
4724 set dummy ranlib; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4728 $as_echo_n "(cached) " >&6
4730 if test -n "$ac_ct_RANLIB"; then
4731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_ac_ct_RANLIB="ranlib"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4751 if test -n "$ac_ct_RANLIB"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4753 $as_echo "$ac_ct_RANLIB" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4759 if test "x$ac_ct_RANLIB" = x; then
4760 RANLIB="ranlib-not-found-in-path-error"
4762 case $cross_compiling:$ac_tool_warned in
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4768 RANLIB=$ac_ct_RANLIB
4771 RANLIB="$ac_cv_prog_RANLIB"
4774 # Extract the first word of "perl", so it can be a program name with args.
4775 set dummy perl; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_path_PERL+:} false; then :
4779 $as_echo_n "(cached) " >&6
4783 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4805 PERL=$ac_cv_path_PERL
4806 if test -n "$PERL"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4808 $as_echo "$PERL" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4816 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4818 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4819 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 cat >conftest.make <<\_ACEOF
4825 @echo '@@@%%%=$(MAKE)=@@@%%%'
4827 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4828 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4830 eval ac_cv_prog_make_${ac_make}_set=yes;;
4832 eval ac_cv_prog_make_${ac_make}_set=no;;
4836 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838 $as_echo "yes" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 SET_MAKE="MAKE=${MAKE-make}"
4848 # See if makeinfo has been installed and is modern enough
4849 # that we can use it.
4851 # Extract the first word of "makeinfo", so it can be a program name with args.
4852 set dummy makeinfo; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_MAKEINFO+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$MAKEINFO"; then
4859 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_MAKEINFO="makeinfo"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 MAKEINFO=$ac_cv_prog_MAKEINFO
4879 if test -n "$MAKEINFO"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4881 $as_echo "$MAKEINFO" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 if test -n "$MAKEINFO"; then
4889 # Found it, now check the version.
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4891 $as_echo_n "checking for modern makeinfo... " >&6; }
4892 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4896 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4898 case $ac_prog_version in
4899 '') gcc_cv_prog_makeinfo_modern=no;;
4900 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4901 *) gcc_cv_prog_makeinfo_modern=no;;
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4906 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4908 gcc_cv_prog_makeinfo_modern=no
4910 if test $gcc_cv_prog_makeinfo_modern = no; then
4911 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4914 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4916 BUILD_INFO_FALSE='#'
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4928 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4933 macro_version='2.2.7a'
4934 macro_revision='1.3134'
4948 ltmain="$ac_aux_dir/ltmain.sh"
4950 # Backslashify metacharacters that are still active within
4951 # double-quoted strings.
4952 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4954 # Same as above, but do not quote variable references.
4955 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4957 # Sed substitution to delay expansion of an escaped shell variable in a
4958 # double_quote_subst'ed string.
4959 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4961 # Sed substitution to delay expansion of an escaped single quote.
4962 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4964 # Sed substitution to avoid accidental globbing in evaled expressions
4965 no_glob_subst='s/\*/\\\*/g'
4967 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4969 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4972 $as_echo_n "checking how to print
strings...
" >&6; }
4973 # Test print first, because it will be a builtin if present.
4974 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4975 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4977 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4980 # Use this function as a fallback that always works.
4981 func_fallback_echo ()
4983 eval 'cat <<_LTECHO_EOF
4987 ECHO='func_fallback_echo'
4990 # func_echo_all arg...
4991 # Invoke $ECHO with all args, space-separated.
4998 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4999 $as_echo "printf" >&6; } ;;
5000 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5001 $as_echo "print
-r" >&6; } ;;
5002 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5003 $as_echo "cat" >&6; } ;;
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5020 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5021 if ${ac_cv_path_SED+:} false; then :
5022 $as_echo_n "(cached
) " >&6
5024 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5025 for ac_i in 1 2 3 4 5 6 7; do
5026 ac_script="$ac_script$as_nl$ac_script"
5028 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5029 { ac_script=; unset ac_script;}
5030 if test -z "$SED"; then
5031 ac_path_SED_found=false
5032 # Loop through the user's path and test for each of PROGNAME-LIST
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_prog in sed gsed; do
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5041 as_fn_executable_p "$ac_path_SED" || continue
5042 # Check for GNU ac_path_SED and select it if it is found.
5043 # Check for GNU $ac_path_SED
5044 case `"$ac_path_SED" --version 2>&1` in
5046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5049 $as_echo_n 0123456789 >"conftest.
in"
5052 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5053 mv "conftest.tmp
" "conftest.
in"
5054 cp "conftest.
in" "conftest.
nl"
5055 $as_echo '' >> "conftest.
nl"
5056 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5057 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5058 as_fn_arith $ac_count + 1 && ac_count=$as_val
5059 if test $ac_count -gt ${ac_path_SED_max-0}; then
5060 # Best one so far, save it but keep looking for a better one
5061 ac_cv_path_SED="$ac_path_SED"
5062 ac_path_SED_max=$ac_count
5064 # 10*(2^10) chars as input seems more than enough
5065 test $ac_count -gt 10 && break
5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5070 $ac_path_SED_found && break 3
5075 if test -z "$ac_cv_path_SED"; then
5076 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5084 $as_echo "$ac_cv_path_SED" >&6; }
5085 SED="$ac_cv_path_SED"
5088 test -z "$SED" && SED=sed
5089 Xsed="$SED -e 1s
/^X
//"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5102 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5103 if ${ac_cv_path_GREP+:} false; then :
5104 $as_echo_n "(cached
) " >&6
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113 test -z "$as_dir" && as_dir=.
5114 for ac_prog in grep ggrep; do
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117 as_fn_executable_p "$ac_path_GREP" || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5125 $as_echo_n 0123456789 >"conftest.
in"
5128 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5129 mv "conftest.tmp
" "conftest.
in"
5130 cp "conftest.
in" "conftest.
nl"
5131 $as_echo 'GREP' >> "conftest.
nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5133 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5134 as_fn_arith $ac_count + 1 && ac_count=$as_val
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP="$ac_path_GREP"
5138 ac_path_GREP_max=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5146 $ac_path_GREP_found && break 3
5151 if test -z "$ac_cv_path_GREP"; then
5152 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5155 ac_cv_path_GREP=$GREP
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP="$ac_cv_path_GREP"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5165 $as_echo_n "checking
for egrep...
" >&6; }
5166 if ${ac_cv_path_EGREP+:} false; then :
5167 $as_echo_n "(cached
) " >&6
5169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170 then ac_cv_path_EGREP="$GREP -E"
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in egrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183 as_fn_executable_p "$ac_path_EGREP" || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5191 $as_echo_n 0123456789 >"conftest.
in"
5194 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5195 mv "conftest.tmp
" "conftest.
in"
5196 cp "conftest.
in" "conftest.
nl"
5197 $as_echo 'EGREP' >> "conftest.
nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5199 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP="$ac_path_EGREP"
5204 ac_path_EGREP_max=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5212 $ac_path_EGREP_found && break 3
5217 if test -z "$ac_cv_path_EGREP"; then
5218 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5221 ac_cv_path_EGREP=$EGREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228 EGREP="$ac_cv_path_EGREP"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5232 $as_echo_n "checking
for fgrep...
" >&6; }
5233 if ${ac_cv_path_FGREP+:} false; then :
5234 $as_echo_n "(cached
) " >&6
5236 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5237 then ac_cv_path_FGREP="$GREP -F"
5239 if test -z "$FGREP"; then
5240 ac_path_FGREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in fgrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5250 as_fn_executable_p "$ac_path_FGREP" || continue
5251 # Check for GNU ac_path_FGREP and select it if it is found.
5252 # Check for GNU $ac_path_FGREP
5253 case `"$ac_path_FGREP" --version 2>&1` in
5255 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5258 $as_echo_n 0123456789 >"conftest.
in"
5261 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5262 mv "conftest.tmp
" "conftest.
in"
5263 cp "conftest.
in" "conftest.
nl"
5264 $as_echo 'FGREP' >> "conftest.
nl"
5265 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5266 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_FGREP="$ac_path_FGREP"
5271 ac_path_FGREP_max=$ac_count
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 $ac_path_FGREP_found && break 3
5284 if test -z "$ac_cv_path_FGREP"; then
5285 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5288 ac_cv_path_FGREP=$FGREP
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5294 $as_echo "$ac_cv_path_FGREP" >&6; }
5295 FGREP="$ac_cv_path_FGREP"
5298 test -z "$GREP" && GREP=grep
5318 # Check whether --with-gnu-ld was given.
5319 if test "${with_gnu_ld+set}" = set; then :
5320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5326 if test "$GCC" = yes; then
5327 # Check if gcc -print-prog-name=ld gives a path.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5329 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5332 # gcc leaves a trailing carriage return which upsets mingw
5333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5338 # Accept absolute paths.
5340 re_direlt='/[^/][^/]*/\.\./'
5341 # Canonicalize the pathname of ld
5342 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5343 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5344 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5346 test -z "$LD" && LD="$ac_prog"
5349 # If it fails, then pretend we aren't using GCC.
5353 # If it is relative, then search for the first ld in PATH.
5357 elif test "$with_gnu_ld" = yes; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5359 $as_echo_n "checking
for GNU ld...
" >&6; }
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5362 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5364 if ${lt_cv_path_LD+:} false; then :
5365 $as_echo_n "(cached
) " >&6
5367 if test -z "$LD"; then
5368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5369 for ac_dir in $PATH; do
5371 test -z "$ac_dir" && ac_dir=.
5372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5373 lt_cv_path_LD="$ac_dir/$ac_prog"
5374 # Check to see if the program is GNU ld. I'd rather use --version,
5375 # but apparently some variants of GNU ld only accept -v.
5376 # Break only if it was the GNU/non-GNU ld that we prefer.
5377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5378 *GNU* | *'with BFD'*)
5379 test "$with_gnu_ld" != no && break
5382 test "$with_gnu_ld" != yes && break
5389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5394 if test -n "$LD"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5396 $as_echo "$LD" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5399 $as_echo "no
" >&6; }
5401 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5403 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5404 if ${lt_cv_prog_gnu_ld+:} false; then :
5405 $as_echo_n "(cached
) " >&6
5407 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5408 case `$LD -v 2>&1 </dev/null` in
5409 *GNU* | *'with BFD'*)
5410 lt_cv_prog_gnu_ld=yes
5413 lt_cv_prog_gnu_ld=no
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5418 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5419 with_gnu_ld=$lt_cv_prog_gnu_ld
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5430 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5431 if ${lt_cv_path_NM+:} false; then :
5432 $as_echo_n "(cached
) " >&6
5434 if test -n "$NM"; then
5435 # Let the user override the test.
5438 lt_nm_to_check="${ac_tool_prefix}nm
"
5439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5440 lt_nm_to_check="$lt_nm_to_check nm
"
5442 for lt_tmp_nm in $lt_nm_to_check; do
5443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5446 test -z "$ac_dir" && ac_dir=.
5447 tmp_nm="$ac_dir/$lt_tmp_nm"
5448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5449 # Check to see if the nm accepts a BSD-compat flag.
5450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5451 # nm: unknown option "B
" ignored
5452 # Tru64's nm complains that /dev/null is an invalid object file
5453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5454 */dev/null* | *'Invalid file or object type'*)
5455 lt_cv_path_NM="$tmp_nm -B"
5459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5461 lt_cv_path_NM="$tmp_nm -p"
5465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5466 continue # so that we can try to find one that supports BSD flags
5475 : ${lt_cv_path_NM=no}
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5479 $as_echo "$lt_cv_path_NM" >&6; }
5480 if test "$lt_cv_path_NM" != "no
"; then
5483 # Didn't find any BSD compatible name lister, look for dumpbin.
5484 if test -n "$DUMPBIN"; then :
5485 # Let the user override the test.
5487 if test -n "$ac_tool_prefix"; then
5488 for ac_prog in dumpbin "link
-dump"
5490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5493 $as_echo_n "checking
for $ac_word...
" >&6; }
5494 if ${ac_cv_prog_DUMPBIN+:} false; then :
5495 $as_echo_n "(cached
) " >&6
5497 if test -n "$DUMPBIN"; then
5498 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5517 DUMPBIN=$ac_cv_prog_DUMPBIN
5518 if test -n "$DUMPBIN"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5520 $as_echo "$DUMPBIN" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5523 $as_echo "no
" >&6; }
5527 test -n "$DUMPBIN" && break
5530 if test -z "$DUMPBIN"; then
5531 ac_ct_DUMPBIN=$DUMPBIN
5532 for ac_prog in dumpbin "link
-dump"
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5537 $as_echo_n "checking
for $ac_word...
" >&6; }
5538 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5539 $as_echo_n "(cached
) " >&6
5541 if test -n "$ac_ct_DUMPBIN"; then
5542 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5561 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5562 if test -n "$ac_ct_DUMPBIN"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5564 $as_echo "$ac_ct_DUMPBIN" >&6; }
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5567 $as_echo "no
" >&6; }
5571 test -n "$ac_ct_DUMPBIN" && break
5574 if test "x
$ac_ct_DUMPBIN" = x; then
5577 case $cross_compiling:$ac_tool_warned in
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5580 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5581 ac_tool_warned=yes ;;
5583 DUMPBIN=$ac_ct_DUMPBIN
5587 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5589 DUMPBIN="$DUMPBIN -symbols"
5597 if test "$DUMPBIN" != ":"; then
5601 test -z "$NM" && NM=nm
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5609 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5610 if ${lt_cv_nm_interface+:} false; then :
5611 $as_echo_n "(cached
) " >&6
5613 lt_cv_nm_interface="BSD nm
"
5614 echo "int some_variable
= 0;" > conftest.$ac_ext
5615 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5616 (eval "$ac_compile" 2>conftest.err)
5617 cat conftest.err >&5
5618 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5619 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5620 cat conftest.err >&5
5621 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5622 cat conftest.out >&5
5623 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5624 lt_cv_nm_interface="MS dumpbin
"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5629 $as_echo "$lt_cv_nm_interface" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5632 $as_echo_n "checking whether
ln -s works...
" >&6; }
5634 if test "$LN_S" = "ln -s"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5636 $as_echo "yes" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5639 $as_echo "no
, using
$LN_S" >&6; }
5642 # find the maximum length of command line arguments
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5644 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5645 if ${lt_cv_sys_max_cmd_len+:} false; then :
5646 $as_echo_n "(cached
) " >&6
5653 # On DJGPP, this test can blow up pretty badly due to problems in libc
5654 # (any single argument exceeding 2000 bytes causes a buffer overrun
5655 # during glob expansion). Even if it were fixed, the result of this
5656 # check would be larger than it should be.
5657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5661 # Under GNU Hurd, this test is not required because there is
5662 # no limit to the length of command line arguments.
5663 # Libtool will interpret -1 as no limit whatsoever
5664 lt_cv_sys_max_cmd_len=-1;
5667 cygwin* | mingw* | cegcc*)
5668 # On Win9x/ME, this test blows up -- it succeeds, but takes
5669 # about 5 minutes as the teststring grows exponentially.
5670 # Worse, since 9x/ME are not pre-emptively multitasking,
5671 # you end up with a "frozen
" computer, even though with patience
5672 # the test eventually succeeds (with a max line length of 256k).
5673 # Instead, let's just punt: use the minimum linelength reported by
5674 # all of the supported platforms: 8192 (on NT/2K/XP).
5675 lt_cv_sys_max_cmd_len=8192;
5679 # On MiNT this can take a long time and run out of memory.
5680 lt_cv_sys_max_cmd_len=8192;
5684 # On AmigaOS with pdksh, this test takes hours, literally.
5685 # So we just punt and use a minimum line length of 8192.
5686 lt_cv_sys_max_cmd_len=8192;
5689 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5690 # This has been around since 386BSD, at least. Likely further.
5691 if test -x /sbin/sysctl; then
5692 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5693 elif test -x /usr/sbin/sysctl; then
5694 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5696 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5698 # And add a safety zone
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5704 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5705 lt_cv_sys_max_cmd_len=196608
5709 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5710 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5711 # nice to cause kernel panics so lets avoid the loop below.
5712 # First set a reasonable default.
5713 lt_cv_sys_max_cmd_len=16384
5715 if test -x /sbin/sysconfig; then
5716 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5717 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5722 lt_cv_sys_max_cmd_len=102400
5724 sysv5* | sco5v6* | sysv4.2uw2*)
5725 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5726 if test -n "$kargmax"; then
5727 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5729 lt_cv_sys_max_cmd_len=32768
5733 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5734 if test -n "$lt_cv_sys_max_cmd_len"; then
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5738 # Make teststring a little bigger before we do anything with it.
5739 # a 1K string should be a reasonable start.
5740 for i in 1 2 3 4 5 6 7 8 ; do
5741 teststring=$teststring$teststring
5743 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5744 # If test is not a shell built-in, we'll probably end up computing a
5745 # maximum length that is only half of the actual maximum length, but
5747 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5748 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5749 test $i != 17 # 1/2 MB should be enough
5752 teststring=$teststring$teststring
5754 # Only check the string length outside the loop.
5755 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5757 # Add a significant safety factor because C++ compilers can tack on
5758 # massive amounts of additional arguments before passing them to the
5759 # linker. It appears as though 1/2 is a usable value.
5760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5767 if test -n $lt_cv_sys_max_cmd_len ; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5769 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5772 $as_echo "none
" >&6; }
5774 max_cmd_len=$lt_cv_sys_max_cmd_len
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5786 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5787 # Try some XSI features
5790 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5792 && eval 'test $(( 1 + 1 )) -eq 2 \
5793 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5796 $as_echo "$xsi_shell" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5800 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5802 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5804 && lt_shell_append
=yes
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5806 $as_echo "$lt_shell_append" >&6; }
5809 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5819 # test EBCDIC or ASCII
5820 case `echo X|tr X '\101'` in
5821 A
) # ASCII based system
5822 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5823 lt_SP2NL
='tr \040 \012'
5824 lt_NL2SP
='tr \015\012 \040\040'
5826 *) # EBCDIC based system
5827 lt_SP2NL
='tr \100 \n'
5828 lt_NL2SP
='tr \r\n \100\100'
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5841 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5842 if ${lt_cv_ld_reload_flag+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 lt_cv_ld_reload_flag
='-r'
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5848 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5849 reload_flag
=$lt_cv_ld_reload_flag
5850 case $reload_flag in
5852 *) reload_flag
=" $reload_flag" ;;
5854 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5857 if test "$GCC" = yes; then
5858 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5860 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5875 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5879 $as_echo_n "(cached) " >&6
5881 if test -n "$OBJDUMP"; then
5882 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir
=.
5889 for ac_exec_ext
in '' $ac_executable_extensions; do
5890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 OBJDUMP
=$ac_cv_prog_OBJDUMP
5902 if test -n "$OBJDUMP"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5904 $as_echo "$OBJDUMP" >&6; }
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5912 if test -z "$ac_cv_prog_OBJDUMP"; then
5913 ac_ct_OBJDUMP
=$OBJDUMP
5914 # Extract the first word of "objdump", so it can be a program name with args.
5915 set dummy objdump
; ac_word
=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5919 $as_echo_n "(cached) " >&6
5921 if test -n "$ac_ct_OBJDUMP"; then
5922 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir
=.
5929 for ac_exec_ext
in '' $ac_executable_extensions; do
5930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5942 if test -n "$ac_ct_OBJDUMP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5944 $as_echo "$ac_ct_OBJDUMP" >&6; }
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5950 if test "x$ac_ct_OBJDUMP" = x
; then
5953 case $cross_compiling:$ac_tool_warned in
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957 ac_tool_warned
=yes ;;
5959 OBJDUMP
=$ac_ct_OBJDUMP
5962 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5965 test -z "$OBJDUMP" && OBJDUMP
=objdump
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5976 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5977 if ${lt_cv_deplibs_check_method+:} false
; then :
5978 $as_echo_n "(cached) " >&6
5980 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5981 lt_cv_file_magic_test_file
=
5982 lt_cv_deplibs_check_method
='unknown'
5983 # Need to set the preceding variable on all platforms that support
5984 # interlibrary dependencies.
5985 # 'none' -- dependencies not supported.
5986 # `unknown' -- same as none, but documents that we really don't know.
5987 # 'pass_all' -- all dependencies passed with no checks.
5988 # 'test_compile' -- check by making test program.
5989 # 'file_magic [[regex]]' -- check by looking for files in library path
5990 # which responds to the $file_magic_cmd with a given extended regex.
5991 # If you have `file' or equivalent on your system and you're not sure
5992 # whether `pass_all' will *always* work, you probably want this one.
5996 lt_cv_deplibs_check_method
=pass_all
6000 lt_cv_deplibs_check_method
=pass_all
6004 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6005 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6006 lt_cv_file_magic_test_file
=/shlib
/libc.so
6010 # func_win32_libid is a shell function defined in ltmain.sh
6011 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6012 lt_cv_file_magic_cmd
='func_win32_libid'
6016 # Base MSYS/MinGW do not provide the 'file' command needed by
6017 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6018 # unless we find 'file', for example because we are cross-compiling.
6019 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6020 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6021 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6022 lt_cv_file_magic_cmd
='func_win32_libid'
6024 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6025 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6030 # use the weaker test based on 'objdump'. See mingw*.
6031 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6032 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6035 darwin
* | rhapsody
*)
6036 lt_cv_deplibs_check_method
=pass_all
6039 freebsd
* | dragonfly
*)
6040 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6043 # Not sure whether the presence of OpenBSD here was a mistake.
6044 # Let's accept both of them until this is cleared up.
6045 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6046 lt_cv_file_magic_cmd
=/usr
/bin
/file
6047 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6051 lt_cv_deplibs_check_method
=pass_all
6056 lt_cv_deplibs_check_method
=pass_all
6060 lt_cv_deplibs_check_method
=pass_all
6063 hpux10.20
* | hpux11
*)
6064 lt_cv_file_magic_cmd
=/usr
/bin
/file
6067 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6068 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6071 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]'
6072 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6075 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6076 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6083 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6086 irix5
* | irix6
* | nonstopux
*)
6088 *-32|
*"-32 ") libmagic
=32-bit;;
6089 *-n32|
*"-n32 ") libmagic
=N32
;;
6090 *-64|
*"-64 ") libmagic
=64-bit;;
6091 *) libmagic
=never-match
;;
6093 lt_cv_deplibs_check_method
=pass_all
6096 # This must be Linux ELF.
6097 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6098 lt_cv_deplibs_check_method
=pass_all
6102 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6103 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6110 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6111 lt_cv_file_magic_cmd
=/usr
/bin
/file
6112 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6116 lt_cv_deplibs_check_method
=pass_all
6120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6121 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6123 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6127 osf3
* | osf4
* | osf5
*)
6128 lt_cv_deplibs_check_method
=pass_all
6132 lt_cv_deplibs_check_method
=pass_all
6136 lt_cv_deplibs_check_method
=pass_all
6139 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6140 lt_cv_deplibs_check_method
=pass_all
6144 case $host_vendor in
6146 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]'
6147 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6150 lt_cv_deplibs_check_method
=pass_all
6153 lt_cv_file_magic_cmd
='/bin/file'
6154 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6157 lt_cv_file_magic_cmd
='/bin/file'
6158 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6159 lt_cv_file_magic_test_file
=/lib
/libc.so
6162 lt_cv_deplibs_check_method
=pass_all
6165 lt_cv_deplibs_check_method
=pass_all
6171 lt_cv_deplibs_check_method
=pass_all
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6178 file_magic_cmd
=$lt_cv_file_magic_cmd
6179 deplibs_check_method
=$lt_cv_deplibs_check_method
6180 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6193 if test -n "$ac_tool_prefix"; then
6194 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6195 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if ${ac_cv_prog_AR+:} false
; then :
6199 $as_echo_n "(cached) " >&6
6201 if test -n "$AR"; then
6202 ac_cv_prog_AR
="$AR" # Let the user override the test.
6204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir
=.
6209 for ac_exec_ext
in '' $ac_executable_extensions; do
6210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 if test -n "$AR"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6224 $as_echo "$AR" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6232 if test -z "$ac_cv_prog_AR"; then
6234 # Extract the first word of "ar", so it can be a program name with args.
6235 set dummy
ar; ac_word
=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6239 $as_echo_n "(cached) " >&6
6241 if test -n "$ac_ct_AR"; then
6242 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir
=.
6249 for ac_exec_ext
in '' $ac_executable_extensions; do
6250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_ac_ct_AR
="ar"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6262 if test -n "$ac_ct_AR"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6264 $as_echo "$ac_ct_AR" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6270 if test "x$ac_ct_AR" = x
; then
6273 case $cross_compiling:$ac_tool_warned in
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277 ac_tool_warned
=yes ;;
6285 test -z "$AR" && AR
=ar
6286 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6300 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_STRIP+:} false
; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$STRIP"; then
6307 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir
=.
6314 for ac_exec_ext
in '' $ac_executable_extensions; do
6315 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 STRIP
=$ac_cv_prog_STRIP
6327 if test -n "$STRIP"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6329 $as_echo "$STRIP" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6337 if test -z "$ac_cv_prog_STRIP"; then
6339 # Extract the first word of "strip", so it can be a program name with args.
6340 set dummy strip
; ac_word
=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6344 $as_echo_n "(cached) " >&6
6346 if test -n "$ac_ct_STRIP"; then
6347 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir
=.
6354 for ac_exec_ext
in '' $ac_executable_extensions; do
6355 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_STRIP
="strip"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6367 if test -n "$ac_ct_STRIP"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6369 $as_echo "$ac_ct_STRIP" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6375 if test "x$ac_ct_STRIP" = x
; then
6378 case $cross_compiling:$ac_tool_warned in
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned
=yes ;;
6387 STRIP
="$ac_cv_prog_STRIP"
6390 test -z "$STRIP" && STRIP
=:
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6399 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_RANLIB+:} false
; then :
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$RANLIB"; then
6406 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir
=.
6413 for ac_exec_ext
in '' $ac_executable_extensions; do
6414 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 RANLIB
=$ac_cv_prog_RANLIB
6426 if test -n "$RANLIB"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6428 $as_echo "$RANLIB" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6436 if test -z "$ac_cv_prog_RANLIB"; then
6437 ac_ct_RANLIB
=$RANLIB
6438 # Extract the first word of "ranlib", so it can be a program name with args.
6439 set dummy ranlib
; ac_word
=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$ac_ct_RANLIB"; then
6446 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir
=.
6453 for ac_exec_ext
in '' $ac_executable_extensions; do
6454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6466 if test -n "$ac_ct_RANLIB"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6468 $as_echo "$ac_ct_RANLIB" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6474 if test "x$ac_ct_RANLIB" = x
; then
6477 case $cross_compiling:$ac_tool_warned in
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned
=yes ;;
6483 RANLIB
=$ac_ct_RANLIB
6486 RANLIB
="$ac_cv_prog_RANLIB"
6489 test -z "$RANLIB" && RANLIB
=:
6496 # Determine commands to create old-style static archives.
6497 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6498 old_postinstall_cmds
='chmod 644 $oldlib'
6499 old_postuninstall_cmds
=
6501 if test -n "$RANLIB"; then
6504 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6507 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6510 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6515 lock_old_archive_extraction
=yes ;;
6517 lock_old_archive_extraction
=no
;;
6558 # If no C compiler was specified, use CC.
6561 # If no C compiler flags were specified, use CFLAGS.
6562 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6564 # Allow CC to be a program name with arguments.
6568 # Check for command to grab the raw symbol name followed by C symbol from nm.
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6571 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6572 $as_echo_n "(cached) " >&6
6575 # These are sane defaults that work on at least a few old systems.
6576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6578 # Character class describing NM global symbol codes.
6579 symcode
='[BCDEGRST]'
6581 # Regexp to match symbols that can be accessed directly from C.
6582 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6584 # Define system-specific variables.
6589 cygwin
* | mingw
* | pw32
* | cegcc
*)
6590 symcode
='[ABCDGISTW]'
6593 if test "$host_cpu" = ia64
; then
6594 symcode
='[ABCDEGRST]'
6598 symcode
='[BCDEGRST]'
6601 symcode
='[BCDEGQRST]'
6612 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6620 # If we're using GNU nm, then use its standard symbol codes.
6621 case `$NM -V 2>&1` in
6622 *GNU
* |
*'with BFD'*)
6623 symcode
='[ABCDGIRSTW]' ;;
6626 # Transform an extracted symbol line into a proper C declaration.
6627 # Some systems (esp. on ia64) link data and code symbols differently,
6628 # so use this general approach.
6629 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6631 # Transform an extracted symbol line into symbol name and symbol address
6632 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6633 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'"
6635 # Handle CRLF in mingw tool chain
6639 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6643 # Try without a prefix underscore, then with it.
6644 for ac_symprfx
in "" "_"; do
6646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6647 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6649 # Write the raw and C identifiers.
6650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6651 # Fake it for dumpbin and say T for any non-static function
6652 # and D for any global variable.
6653 # Also find C++ and __fastcall symbols from MSVC++,
6654 # which start with @ or ?.
6655 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6656 " {last_section=section; section=\$ 3};"\
6657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6658 " \$ 0!~/External *\|/{next};"\
6659 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6660 " {if(hide[section]) next};"\
6661 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6662 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6663 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6664 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6665 " ' prfx=^$ac_symprfx"
6667 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6670 # Check to see that the pipe works correctly.
6674 cat > conftest.
$ac_ext <<_LT_EOF
6679 void nm_test_func(void);
6680 void nm_test_func(void){}
6684 int main(){nm_test_var='a';nm_test_func();return(0);}
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 # Now try to grab the symbols.
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6695 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; } && test -s "$nlist"; then
6699 # Try sorting and uniquifying the output.
6700 if sort "$nlist" |
uniq > "$nlist"T
; then
6701 mv -f "$nlist"T
"$nlist"
6706 # Make sure that we snagged all the symbols we need.
6707 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6708 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6709 cat <<_LT_EOF > conftest.$ac_ext
6715 # Now generate the symbol file.
6716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6718 cat <<_LT_EOF >> conftest.$ac_ext
6720 /* The mapping between symbol names and symbols. */
6725 lt__PROGRAM__LTX_preloaded_symbols[] =
6727 { "@PROGRAM@", (void *) 0 },
6729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6730 cat <<\_LT_EOF
>> conftest.
$ac_ext
6734 /* This works around a problem
in FreeBSD linker
*/
6735 #ifdef FREEBSD_WORKAROUND
6736 static const void
*lt_preloaded_setup
() {
6737 return lt__PROGRAM__LTX_preloaded_symbols
;
6745 # Now try linking the two files.
6746 mv conftest.
$ac_objext conftstm.
$ac_objext
6747 lt_save_LIBS
="$LIBS"
6748 lt_save_CFLAGS
="$CFLAGS"
6749 LIBS
="conftstm.$ac_objext"
6750 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6752 (eval $ac_link) 2>&5
6754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6758 LIBS
="$lt_save_LIBS"
6759 CFLAGS
="$lt_save_CFLAGS"
6761 echo "cannot find nm_test_func in $nlist" >&5
6764 echo "cannot find nm_test_var in $nlist" >&5
6767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6770 echo "$progname: failed program was:" >&5
6771 cat conftest.
$ac_ext >&5
6773 rm -rf conftest
* conftst
*
6775 # Do not use the global_symbol_pipe unless it works.
6776 if test "$pipe_works" = yes; then
6779 lt_cv_sys_global_symbol_pipe
=
6785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6786 lt_cv_sys_global_symbol_to_cdecl
=
6788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6790 $as_echo "failed" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6793 $as_echo "ok" >&6; }
6818 # Check whether --enable-libtool-lock was given.
6819 if test "${enable_libtool_lock+set}" = set; then :
6820 enableval
=$enable_libtool_lock;
6823 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6825 # Some flags need to be propagated to the compiler or linker for good
6829 # Find out which ABI we are using.
6830 echo 'int i;' > conftest.
$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.$ac_objext` in
6848 # Find out which ABI we are using.
6849 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 if test "$lt_cv_prog_gnu_ld" = yes; then
6856 case `/usr/bin/file conftest.$ac_objext` in
6858 LD
="${LD-ld} -melf32bsmip"
6861 LD
="${LD-ld} -melf32bmipn32"
6864 LD
="${LD-ld} -melf64bmip"
6868 case `/usr/bin/file conftest.$ac_objext` in
6884 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6885 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6886 # Find out which ABI we are using.
6887 echo 'int i;' > conftest.
$ac_ext
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889 (eval $ac_compile) 2>&5
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 case `/usr/bin/file conftest.o` in
6896 x86_64-
*kfreebsd
*-gnu)
6897 LD
="${LD-ld} -m elf_i386_fbsd"
6900 case `/usr/bin/file conftest.o` in
6902 LD
="${LD-ld} -m elf32_x86_64"
6905 LD
="${LD-ld} -m elf_i386"
6909 powerpc64le-
*linux
*)
6910 LD
="${LD-ld} -m elf32lppclinux"
6913 LD
="${LD-ld} -m elf32ppclinux"
6916 LD
="${LD-ld} -m elf_s390"
6919 LD
="${LD-ld} -m elf32_sparc"
6925 x86_64-
*kfreebsd
*-gnu)
6926 LD
="${LD-ld} -m elf_x86_64_fbsd"
6929 LD
="${LD-ld} -m elf_x86_64"
6932 LD
="${LD-ld} -m elf64lppc"
6935 LD
="${LD-ld} -m elf64ppc"
6937 s390
*-*linux
*|s390
*-*tpf
*)
6938 LD
="${LD-ld} -m elf64_s390"
6941 LD
="${LD-ld} -m elf64_sparc"
6951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6952 SAVE_CFLAGS
="$CFLAGS"
6953 CFLAGS
="$CFLAGS -belf"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6956 if ${lt_cv_cc_needs_belf+:} false
; then :
6957 $as_echo_n "(cached) " >&6
6960 ac_cpp
='$CPP $CPPFLAGS'
6961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6976 if ac_fn_c_try_link
"$LINENO"; then :
6977 lt_cv_cc_needs_belf
=yes
6979 lt_cv_cc_needs_belf
=no
6981 rm -f core conftest.err conftest.
$ac_objext \
6982 conftest
$ac_exeext conftest.
$ac_ext
6984 ac_cpp
='$CPP $CPPFLAGS'
6985 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6992 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6994 CFLAGS
="$SAVE_CFLAGS"
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.
$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7007 case $lt_cv_prog_gnu_ld in
7008 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7010 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7022 need_locks
="$enable_libtool_lock"
7026 rhapsody
* | darwin
*)
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7029 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -n "$DSYMUTIL"; then
7036 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir
=.
7043 for ac_exec_ext
in '' $ac_executable_extensions; do
7044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7056 if test -n "$DSYMUTIL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7058 $as_echo "$DSYMUTIL" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7066 if test -z "$ac_cv_prog_DSYMUTIL"; then
7067 ac_ct_DSYMUTIL
=$DSYMUTIL
7068 # Extract the first word of "dsymutil", so it can be a program name with args.
7069 set dummy dsymutil
; ac_word
=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7073 $as_echo_n "(cached) " >&6
7075 if test -n "$ac_ct_DSYMUTIL"; then
7076 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir
=.
7083 for ac_exec_ext
in '' $ac_executable_extensions; do
7084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7096 if test -n "$ac_ct_DSYMUTIL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7104 if test "x$ac_ct_DSYMUTIL" = x
; then
7107 case $cross_compiling:$ac_tool_warned in
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned
=yes ;;
7113 DSYMUTIL
=$ac_ct_DSYMUTIL
7116 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7121 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_NMEDIT+:} false
; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$NMEDIT"; then
7128 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir
=.
7135 for ac_exec_ext
in '' $ac_executable_extensions; do
7136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 NMEDIT
=$ac_cv_prog_NMEDIT
7148 if test -n "$NMEDIT"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7150 $as_echo "$NMEDIT" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7158 if test -z "$ac_cv_prog_NMEDIT"; then
7159 ac_ct_NMEDIT
=$NMEDIT
7160 # Extract the first word of "nmedit", so it can be a program name with args.
7161 set dummy nmedit
; ac_word
=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7165 $as_echo_n "(cached) " >&6
7167 if test -n "$ac_ct_NMEDIT"; then
7168 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir
=.
7175 for ac_exec_ext
in '' $ac_executable_extensions; do
7176 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7188 if test -n "$ac_ct_NMEDIT"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7190 $as_echo "$ac_ct_NMEDIT" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7196 if test "x$ac_ct_NMEDIT" = x
; then
7199 case $cross_compiling:$ac_tool_warned in
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned
=yes ;;
7205 NMEDIT
=$ac_ct_NMEDIT
7208 NMEDIT
="$ac_cv_prog_NMEDIT"
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7213 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_LIPO+:} false
; then :
7217 $as_echo_n "(cached) " >&6
7219 if test -n "$LIPO"; then
7220 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir
=.
7227 for ac_exec_ext
in '' $ac_executable_extensions; do
7228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 LIPO
=$ac_cv_prog_LIPO
7240 if test -n "$LIPO"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7242 $as_echo "$LIPO" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7250 if test -z "$ac_cv_prog_LIPO"; then
7252 # Extract the first word of "lipo", so it can be a program name with args.
7253 set dummy lipo
; ac_word
=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7257 $as_echo_n "(cached) " >&6
7259 if test -n "$ac_ct_LIPO"; then
7260 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir
=.
7267 for ac_exec_ext
in '' $ac_executable_extensions; do
7268 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_LIPO
="lipo"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7280 if test -n "$ac_ct_LIPO"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7282 $as_echo "$ac_ct_LIPO" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7288 if test "x$ac_ct_LIPO" = x
; then
7291 case $cross_compiling:$ac_tool_warned in
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned
=yes ;;
7300 LIPO
="$ac_cv_prog_LIPO"
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7305 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_OTOOL+:} false
; then :
7309 $as_echo_n "(cached) " >&6
7311 if test -n "$OTOOL"; then
7312 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir
=.
7319 for ac_exec_ext
in '' $ac_executable_extensions; do
7320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 OTOOL
=$ac_cv_prog_OTOOL
7332 if test -n "$OTOOL"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7334 $as_echo "$OTOOL" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7342 if test -z "$ac_cv_prog_OTOOL"; then
7344 # Extract the first word of "otool", so it can be a program name with args.
7345 set dummy otool
; ac_word
=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7349 $as_echo_n "(cached) " >&6
7351 if test -n "$ac_ct_OTOOL"; then
7352 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir
=.
7359 for ac_exec_ext
in '' $ac_executable_extensions; do
7360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_OTOOL
="otool"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7372 if test -n "$ac_ct_OTOOL"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7374 $as_echo "$ac_ct_OTOOL" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 if test "x$ac_ct_OTOOL" = x
; then
7383 case $cross_compiling:$ac_tool_warned in
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned
=yes ;;
7392 OTOOL
="$ac_cv_prog_OTOOL"
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7397 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_OTOOL64+:} false
; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$OTOOL64"; then
7404 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 OTOOL64
=$ac_cv_prog_OTOOL64
7424 if test -n "$OTOOL64"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7426 $as_echo "$OTOOL64" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7434 if test -z "$ac_cv_prog_OTOOL64"; then
7435 ac_ct_OTOOL64
=$OTOOL64
7436 # Extract the first word of "otool64", so it can be a program name with args.
7437 set dummy otool64
; ac_word
=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7441 $as_echo_n "(cached) " >&6
7443 if test -n "$ac_ct_OTOOL64"; then
7444 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_exec_ext
in '' $ac_executable_extensions; do
7452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7464 if test -n "$ac_ct_OTOOL64"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7466 $as_echo "$ac_ct_OTOOL64" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7472 if test "x$ac_ct_OTOOL64" = x
; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned
=yes ;;
7481 OTOOL64
=$ac_ct_OTOOL64
7484 OTOOL64
="$ac_cv_prog_OTOOL64"
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7514 $as_echo_n "checking for -single_module linker flag... " >&6; }
7515 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7516 $as_echo_n "(cached) " >&6
7518 lt_cv_apple_cc_single_mod
=no
7519 if test -z "${LT_MULTI_MODULE}"; then
7520 # By default we will add the -single_module flag. You can override
7521 # by either setting the environment variable LT_MULTI_MODULE
7522 # non-empty at configure time, or by adding -multi_module to the
7524 rm -rf libconftest.dylib
*
7525 echo "int foo(void){return 1;}" > conftest.c
7526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c" >&5
7528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7531 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7532 lt_cv_apple_cc_single_mod
=yes
7534 cat conftest.err
>&5
7536 rm -rf libconftest.dylib
*
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7541 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7543 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7544 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7545 $as_echo_n "(cached) " >&6
7547 lt_cv_ld_exported_symbols_list
=no
7548 save_LDFLAGS
=$LDFLAGS
7549 echo "_main" > conftest.sym
7550 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7562 if ac_fn_c_try_link
"$LINENO"; then :
7563 lt_cv_ld_exported_symbols_list
=yes
7565 lt_cv_ld_exported_symbols_list
=no
7567 rm -f core conftest.err conftest.
$ac_objext \
7568 conftest
$ac_exeext conftest.
$ac_ext
7569 LDFLAGS
="$save_LDFLAGS"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7573 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7575 $as_echo_n "checking for -force_load linker flag... " >&6; }
7576 if ${lt_cv_ld_force_load+:} false
; then :
7577 $as_echo_n "(cached) " >&6
7579 lt_cv_ld_force_load
=no
7580 cat > conftest.c
<< _LT_EOF
7581 int forced_loaded() { return 2;}
7583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7585 echo "$AR cru libconftest.a conftest.o" >&5
7586 $AR cru libconftest.a conftest.o
2>&5
7587 cat > conftest.c
<< _LT_EOF
7588 int main() { return 0;}
7590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7593 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7594 lt_cv_ld_force_load
=yes
7596 cat conftest.err
>&5
7598 rm -f conftest.err libconftest.a conftest conftest.c
7599 rm -rf conftest.dSYM
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7603 $as_echo "$lt_cv_ld_force_load" >&6; }
7605 rhapsody
* | darwin1.
[012])
7606 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7608 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7609 darwin
*) # darwin 5.x on
7610 # if running on 10.5 or later, the deployment target defaults
7611 # to the OS version, if on x86, and 10.4, the deployment
7612 # target defaults to 10.4. Don't you love it?
7613 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7614 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7615 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7617 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7619 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7623 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7624 _lt_dar_single_mod
='$single_module'
7626 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7627 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7629 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7631 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7632 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7640 ac_cpp
='$CPP $CPPFLAGS'
7641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7645 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7646 # On Suns, sometimes $CPP names a directory.
7647 if test -n "$CPP" && test -d "$CPP"; then
7650 if test -z "$CPP"; then
7651 if ${ac_cv_prog_CPP+:} false
; then :
7652 $as_echo_n "(cached) " >&6
7654 # Double quotes because CPP needs to be expanded
7655 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7658 for ac_c_preproc_warn_flag
in '' yes
7660 # Use a header file that comes with gcc, so configuring glibc
7661 # with a fresh cross-compiler works.
7662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7663 # <limits.h> exists even on freestanding compilers.
7664 # On the NeXT, cc -E runs the code through the compiler's parser,
7665 # not just through cpp. "Syntax error" is here to catch this case.
7666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7669 # include <limits.h>
7671 # include <assert.h>
7675 if ac_fn_c_try_cpp
"$LINENO"; then :
7678 # Broken: fails on valid input.
7681 rm -f conftest.err conftest.i conftest.
$ac_ext
7683 # OK, works on sane cases. Now check whether nonexistent headers
7684 # can be detected and how.
7685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <ac_nonexistent.h>
7689 if ac_fn_c_try_cpp
"$LINENO"; then :
7690 # Broken: success on invalid input.
7693 # Passes both tests.
7697 rm -f conftest.err conftest.i conftest.
$ac_ext
7700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7701 rm -f conftest.i conftest.err conftest.
$ac_ext
7702 if $ac_preproc_ok; then :
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7715 $as_echo "$CPP" >&6; }
7717 for ac_c_preproc_warn_flag
in '' yes
7719 # Use a header file that comes with gcc, so configuring glibc
7720 # with a fresh cross-compiler works.
7721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722 # <limits.h> exists even on freestanding compilers.
7723 # On the NeXT, cc -E runs the code through the compiler's parser,
7724 # not just through cpp. "Syntax error" is here to catch this case.
7725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7728 # include <limits.h>
7730 # include <assert.h>
7734 if ac_fn_c_try_cpp
"$LINENO"; then :
7737 # Broken: fails on valid input.
7740 rm -f conftest.err conftest.i conftest.
$ac_ext
7742 # OK, works on sane cases. Now check whether nonexistent headers
7743 # can be detected and how.
7744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 #include <ac_nonexistent.h>
7748 if ac_fn_c_try_cpp
"$LINENO"; then :
7749 # Broken: success on invalid input.
7752 # Passes both tests.
7756 rm -f conftest.err conftest.i conftest.
$ac_ext
7759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7760 rm -f conftest.i conftest.err conftest.
$ac_ext
7761 if $ac_preproc_ok; then :
7764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7766 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7767 See \`config.log' for more details" "$LINENO" 5; }
7771 ac_cpp
='$CPP $CPPFLAGS'
7772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7778 $as_echo_n "checking for ANSI C header files... " >&6; }
7779 if ${ac_cv_header_stdc+:} false
; then :
7780 $as_echo_n "(cached) " >&6
7782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7797 if ac_fn_c_try_compile
"$LINENO"; then :
7798 ac_cv_header_stdc
=yes
7800 ac_cv_header_stdc
=no
7802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7804 if test $ac_cv_header_stdc = yes; then
7805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812 $EGREP "memchr" >/dev
/null
2>&1; then :
7815 ac_cv_header_stdc
=no
7821 if test $ac_cv_header_stdc = yes; then
7822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7829 $EGREP "free" >/dev
/null
2>&1; then :
7832 ac_cv_header_stdc
=no
7838 if test $ac_cv_header_stdc = yes; then
7839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7840 if test "$cross_compiling" = yes; then :
7843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7847 #if ((' ' & 0x0FF) == 0x020)
7848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7851 # define ISLOWER(c) \
7852 (('a' <= (c) && (c) <= 'i') \
7853 || ('j' <= (c) && (c) <= 'r') \
7854 || ('s' <= (c) && (c) <= 'z'))
7855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7863 for (i = 0; i < 256; i++)
7864 if (XOR (islower (i), ISLOWER (i))
7865 || toupper (i) != TOUPPER (i))
7870 if ac_fn_c_try_run
"$LINENO"; then :
7873 ac_cv_header_stdc
=no
7875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7882 $as_echo "$ac_cv_header_stdc" >&6; }
7883 if test $ac_cv_header_stdc = yes; then
7885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7889 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7890 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7891 inttypes.h stdint.h unistd.h
7893 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7894 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7896 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7897 cat >>confdefs.h
<<_ACEOF
7898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7906 for ac_header
in dlfcn.h
7908 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7910 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7911 cat >>confdefs.h
<<_ACEOF
7912 #define HAVE_DLFCN_H 1
7933 # Check whether --enable-shared was given.
7934 if test "${enable_shared+set}" = set; then :
7935 enableval
=$enable_shared; p
=${PACKAGE-default}
7937 yes) enable_shared
=yes ;;
7938 no
) enable_shared
=no
;;
7941 # Look at the argument we got. We use all the common list separators.
7942 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7943 for pkg
in $enableval; do
7945 if test "X$pkg" = "X$p"; then
7964 # Check whether --enable-static was given.
7965 if test "${enable_static+set}" = set; then :
7966 enableval
=$enable_static; p
=${PACKAGE-default}
7968 yes) enable_static
=yes ;;
7969 no
) enable_static
=no
;;
7972 # Look at the argument we got. We use all the common list separators.
7973 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7974 for pkg
in $enableval; do
7976 if test "X$pkg" = "X$p"; then
7996 # Check whether --with-pic was given.
7997 if test "${with_pic+set}" = set; then :
7998 withval
=$with_pic; pic_mode
="$withval"
8004 test -z "$pic_mode" && pic_mode
=default
8012 # Check whether --enable-fast-install was given.
8013 if test "${enable_fast_install+set}" = set; then :
8014 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8016 yes) enable_fast_install
=yes ;;
8017 no
) enable_fast_install
=no
;;
8019 enable_fast_install
=no
8020 # Look at the argument we got. We use all the common list separators.
8021 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8022 for pkg
in $enableval; do
8024 if test "X$pkg" = "X$p"; then
8025 enable_fast_install
=yes
8032 enable_fast_install
=yes
8045 # This can be used to rebuild libtool when needed
8046 LIBTOOL_DEPS
="$ltmain"
8048 # Always use our own libtool.
8049 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8076 test -z "$LN_S" && LN_S
="ln -s"
8091 if test -n "${ZSH_VERSION+set}" ; then
8092 setopt NO_GLOB_SUBST
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8096 $as_echo_n "checking for objdir... " >&6; }
8097 if ${lt_cv_objdir+:} false
; then :
8098 $as_echo_n "(cached) " >&6
8100 rm -f .libs
2>/dev
/null
8101 mkdir .libs
2>/dev
/null
8102 if test -d .libs
; then
8105 # MS-DOS does not allow filenames that begin with a dot.
8108 rmdir .libs
2>/dev
/null
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8111 $as_echo "$lt_cv_objdir" >&6; }
8112 objdir
=$lt_cv_objdir
8118 cat >>confdefs.h
<<_ACEOF
8119 #define LT_OBJDIR "$lt_cv_objdir/"
8127 # AIX sometimes has problems with the GCC collect2 program. For some
8128 # reason, if we set the COLLECT_NAMES environment variable, the problems
8129 # vanish in a puff of smoke.
8130 if test "X${COLLECT_NAMES+set}" != Xset
; then
8132 export COLLECT_NAMES
8139 can_build_shared
=yes
8141 # All known linkers require a `.a' archive for static linking (except MSVC,
8142 # which needs '.lib').
8145 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8148 old_CFLAGS
="$CFLAGS"
8150 # Set sane defaults for various variables
8151 test -z "$CC" && CC
=cc
8152 test -z "$LTCC" && LTCC
=$CC
8153 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8154 test -z "$LD" && LD
=ld
8155 test -z "$ac_objext" && ac_objext
=o
8157 for cc_temp
in $compiler""; do
8159 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8160 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8165 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8168 # Only perform the check for file, if the check method requires it
8169 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8170 case $deplibs_check_method in
8172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8174 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8175 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8176 $as_echo_n "(cached) " >&6
8180 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8183 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8184 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8185 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8186 for ac_dir
in $ac_dummy; do
8188 test -z "$ac_dir" && ac_dir
=.
8189 if test -f $ac_dir/${ac_tool_prefix}file; then
8190 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8191 if test -n "$file_magic_test_file"; then
8192 case $deplibs_check_method in
8194 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8195 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8196 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8197 $EGREP "$file_magic_regex" > /dev
/null
; then
8202 *** Warning: the command libtool uses to detect shared libraries,
8203 *** $file_magic_cmd, produces output that libtool cannot recognize.
8204 *** The result is that libtool may fail to recognize shared libraries
8205 *** as such. This will affect the creation of libtool libraries that
8206 *** depend on shared libraries, but programs linked with such libtool
8207 *** libraries will work regardless of this problem. Nevertheless, you
8208 *** may want to report the problem to your system manager and/or to
8209 *** bug-libtool@gnu.org
8219 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8224 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8225 if test -n "$MAGIC_CMD"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8227 $as_echo "$MAGIC_CMD" >&6; }
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8237 if test -z "$lt_cv_path_MAGIC_CMD"; then
8238 if test -n "$ac_tool_prefix"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8240 $as_echo_n "checking for file... " >&6; }
8241 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8242 $as_echo_n "(cached) " >&6
8246 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8249 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8250 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8251 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8252 for ac_dir
in $ac_dummy; do
8254 test -z "$ac_dir" && ac_dir
=.
8255 if test -f $ac_dir/file; then
8256 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8257 if test -n "$file_magic_test_file"; then
8258 case $deplibs_check_method in
8260 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8261 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8262 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8263 $EGREP "$file_magic_regex" > /dev
/null
; then
8268 *** Warning: the command libtool uses to detect shared libraries,
8269 *** $file_magic_cmd, produces output that libtool cannot recognize.
8270 *** The result is that libtool may fail to recognize shared libraries
8271 *** as such. This will affect the creation of libtool libraries that
8272 *** depend on shared libraries, but programs linked with such libtool
8273 *** libraries will work regardless of this problem. Nevertheless, you
8274 *** may want to report the problem to your system manager and/or to
8275 *** bug-libtool@gnu.org
8285 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8290 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8291 if test -n "$MAGIC_CMD"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8293 $as_echo "$MAGIC_CMD" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8309 # Use C for the default configuration in the libtool script
8313 ac_cpp
='$CPP $CPPFLAGS'
8314 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8319 # Source file extension for C test sources.
8322 # Object file extension for compiled C test sources.
8326 # Code to be used in simple compile tests
8327 lt_simple_compile_test_code
="int some_variable = 0;"
8329 # Code to be used in simple link tests
8330 lt_simple_link_test_code
='int main(){return(0);}'
8338 # If no C compiler was specified, use CC.
8341 # If no C compiler flags were specified, use CFLAGS.
8342 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8344 # Allow CC to be a program name with arguments.
8347 # Save the default compiler, since it gets overwritten when the other
8348 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8349 compiler_DEFAULT
=$CC
8351 # save warnings/boilerplate of simple test code
8352 ac_outfile
=conftest.
$ac_objext
8353 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8354 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8355 _lt_compiler_boilerplate
=`cat conftest.err`
8358 ac_outfile
=conftest.
$ac_objext
8359 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8360 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8361 _lt_linker_boilerplate
=`cat conftest.err`
8366 ## There is no encapsulation within the following macros, do not change
8367 ## the running order or otherwise move them around unless you know exactly
8368 ## what you are doing...
8369 if test -n "$compiler"; then
8371 lt_prog_compiler_no_builtin_flag
=
8373 if test "$GCC" = yes; then
8374 case $cc_basename in
8376 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8378 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8382 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8383 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8384 $as_echo_n "(cached) " >&6
8386 lt_cv_prog_compiler_rtti_exceptions
=no
8387 ac_outfile
=conftest.
$ac_objext
8388 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8389 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8390 # Insert the option either (1) after the last *FLAGS variable, or
8391 # (2) before a word containing "conftest.", or (3) at the end.
8392 # Note that $ac_compile itself does not contain backslashes and begins
8393 # with a dollar sign (not a hyphen), so the echo should work correctly.
8394 # The option is referenced via a variable to avoid confusing sed.
8395 lt_compile
=`echo "$ac_compile" | $SED \
8396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8398 -e 's:$: $lt_compiler_flag:'`
8399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8400 (eval "$lt_compile" 2>conftest.err
)
8402 cat conftest.err
>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 if (exit $ac_status) && test -s "$ac_outfile"; then
8405 # The compiler can only warn and ignore the option if not recognized
8406 # So say no if there are warnings other than the usual output.
8407 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8408 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8409 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8410 lt_cv_prog_compiler_rtti_exceptions
=yes
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8417 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8419 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8420 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8432 lt_prog_compiler_wl
=
8433 lt_prog_compiler_pic
=
8434 lt_prog_compiler_static
=
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8439 if test "$GCC" = yes; then
8440 lt_prog_compiler_wl
='-Wl,'
8441 lt_prog_compiler_static
='-static'
8445 # All AIX code is PIC.
8446 if test "$host_cpu" = ia64
; then
8447 # AIX 5 now supports IA64 processor
8448 lt_prog_compiler_static
='-Bstatic'
8450 lt_prog_compiler_pic
='-fPIC'
8456 # see comment about AmigaOS4 .so support
8457 lt_prog_compiler_pic
='-fPIC'
8460 # FIXME: we need at least 68020 code to build shared libraries, but
8461 # adding the `-m68020' flag to GCC prevents building anything better,
8463 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8468 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8469 # PIC is the default for these OSes.
8472 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8476 # (--disable-auto-import) libraries
8477 lt_prog_compiler_pic
='-DDLL_EXPORT'
8480 darwin
* | rhapsody
*)
8481 # PIC is the default on this platform
8482 # Common symbols not allowed in MH_DYLIB files
8483 lt_prog_compiler_pic
='-fno-common'
8487 # PIC is the default for Haiku.
8488 # The "-static" flag exists, but is broken.
8489 lt_prog_compiler_static
=
8493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8495 # sets the default TLS model and affects inlining.
8501 lt_prog_compiler_pic
='-fPIC'
8507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8508 # Instead, we relocate shared libraries at runtime.
8512 # Just because we use GCC doesn't mean we suddenly get shared libraries
8513 # on systems that don't support them.
8514 lt_prog_compiler_can_build_shared
=no
8519 # QNX uses GNU C++, but need to define -shared option too, otherwise
8521 lt_prog_compiler_pic
='-fPIC -shared'
8525 if test -d /usr
/nec
; then
8526 lt_prog_compiler_pic
=-Kconform_pic
8531 lt_prog_compiler_pic
='-fPIC'
8535 case $cc_basename in
8536 nvcc
*) # Cuda Compiler Driver 2.2
8537 lt_prog_compiler_wl
='-Xlinker '
8538 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8542 # PORTME Check for flag to pass linker flags through the system compiler.
8545 lt_prog_compiler_wl
='-Wl,'
8546 if test "$host_cpu" = ia64
; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static
='-Bstatic'
8550 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8554 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8555 # This hack is so that the source file can tell whether it is being
8556 # built for inclusion in a dll (and should export symbols for example).
8557 lt_prog_compiler_pic
='-DDLL_EXPORT'
8560 hpux9
* | hpux10
* | hpux11
*)
8561 lt_prog_compiler_wl
='-Wl,'
8562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8569 lt_prog_compiler_pic
='+Z'
8572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8576 irix5
* | irix6
* | nonstopux
*)
8577 lt_prog_compiler_wl
='-Wl,'
8578 # PIC (with -KPIC) is the default.
8579 lt_prog_compiler_static
='-non_shared'
8582 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8583 case $cc_basename in
8584 # old Intel for x86_64 which still supported -KPIC.
8586 lt_prog_compiler_wl
='-Wl,'
8587 lt_prog_compiler_pic
='-KPIC'
8588 lt_prog_compiler_static
='-static'
8590 # icc used to be incompatible with GCC.
8591 # ICC 10 doesn't accept -KPIC any more.
8593 lt_prog_compiler_wl
='-Wl,'
8594 lt_prog_compiler_pic
='-fPIC'
8595 lt_prog_compiler_static
='-static'
8597 # Lahey Fortran 8.1.
8599 lt_prog_compiler_wl
='-Wl,'
8600 lt_prog_compiler_pic
='--shared'
8601 lt_prog_compiler_static
='--static'
8603 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl
='-Wl,'
8607 lt_prog_compiler_pic
='-fpic'
8608 lt_prog_compiler_static
='-Bstatic'
8611 lt_prog_compiler_wl
='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static
='-non_shared'
8615 xl
* | bgxl
* | bgf
* | mpixl
*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8617 lt_prog_compiler_wl
='-Wl,'
8618 lt_prog_compiler_pic
='-qpic'
8619 lt_prog_compiler_static
='-qstaticlink'
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ F
* |
*Sun
*Fortran
*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8625 lt_prog_compiler_pic
='-KPIC'
8626 lt_prog_compiler_static
='-Bstatic'
8627 lt_prog_compiler_wl
=''
8631 lt_prog_compiler_pic
='-KPIC'
8632 lt_prog_compiler_static
='-Bstatic'
8633 lt_prog_compiler_wl
='-Wl,'
8641 lt_prog_compiler_pic
='-KPIC'
8642 lt_prog_compiler_static
='-Bstatic'
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8648 lt_prog_compiler_pic
='-fPIC -shared'
8651 osf3
* | osf4
* | osf5
*)
8652 lt_prog_compiler_wl
='-Wl,'
8653 # All OSF/1 code is PIC.
8654 lt_prog_compiler_static
='-non_shared'
8658 lt_prog_compiler_static
='-non_shared'
8662 lt_prog_compiler_pic
='-KPIC'
8663 lt_prog_compiler_static
='-Bstatic'
8664 case $cc_basename in
8666 lt_prog_compiler_wl
='-Qoption ld ';;
8668 lt_prog_compiler_wl
='-Wl,';;
8673 lt_prog_compiler_wl
='-Qoption ld '
8674 lt_prog_compiler_pic
='-PIC'
8675 lt_prog_compiler_static
='-Bstatic'
8678 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8679 lt_prog_compiler_wl
='-Wl,'
8680 lt_prog_compiler_pic
='-KPIC'
8681 lt_prog_compiler_static
='-Bstatic'
8685 if test -d /usr
/nec
;then
8686 lt_prog_compiler_pic
='-Kconform_pic'
8687 lt_prog_compiler_static
='-Bstatic'
8691 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8692 lt_prog_compiler_wl
='-Wl,'
8693 lt_prog_compiler_pic
='-KPIC'
8694 lt_prog_compiler_static
='-Bstatic'
8698 lt_prog_compiler_wl
='-Wl,'
8699 lt_prog_compiler_can_build_shared
=no
8703 lt_prog_compiler_pic
='-pic'
8704 lt_prog_compiler_static
='-Bstatic'
8708 lt_prog_compiler_can_build_shared
=no
8714 # For platforms which do not support PIC, -DPIC is meaningless:
8716 lt_prog_compiler_pic
=
8719 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8723 $as_echo "$lt_prog_compiler_pic" >&6; }
8731 # Check to make sure the PIC flag actually works.
8733 if test -n "$lt_prog_compiler_pic"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8735 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8736 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8737 $as_echo_n "(cached) " >&6
8739 lt_cv_prog_compiler_pic_works
=no
8740 ac_outfile
=conftest.
$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8742 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile
=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err
)
8755 cat conftest.err
>&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8762 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8763 lt_cv_prog_compiler_pic_works
=yes
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8772 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8773 case $lt_prog_compiler_pic in
8775 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8778 lt_prog_compiler_pic
=
8779 lt_prog_compiler_can_build_shared
=no
8790 # Check to make sure the static flag actually works.
8792 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8794 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8795 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8796 $as_echo_n "(cached) " >&6
8798 lt_cv_prog_compiler_static_works
=no
8799 save_LDFLAGS
="$LDFLAGS"
8800 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8801 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8802 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8803 # The linker can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 if test -s conftest.err
; then
8806 # Append any errors to the config.log.
8807 cat conftest.err
1>&5
8808 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8810 if diff conftest.exp conftest.er2
>/dev
/null
; then
8811 lt_cv_prog_compiler_static_works
=yes
8814 lt_cv_prog_compiler_static_works
=yes
8818 LDFLAGS
="$save_LDFLAGS"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8822 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8824 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8827 lt_prog_compiler_static
=
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8839 $as_echo_n "(cached) " >&6
8841 lt_cv_prog_compiler_c_o
=no
8842 $RM -r conftest
2>/dev
/null
8846 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8848 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile
=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>out
/conftest.err
)
8860 cat out
/conftest.err
>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
8866 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8867 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8868 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8869 lt_cv_prog_compiler_c_o
=yes
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8877 $RM out
/* && rmdir out
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8893 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8894 $as_echo_n "(cached) " >&6
8896 lt_cv_prog_compiler_c_o
=no
8897 $RM -r conftest
2>/dev
/null
8901 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8903 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 lt_compile
=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>out
/conftest.err
)
8915 cat out
/conftest.err
>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings
8921 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8922 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8923 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8924 lt_cv_prog_compiler_c_o
=yes
8929 # SGI C++ compiler will create directory out/ii_files/ for
8930 # template instantiation
8931 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8932 $RM out
/* && rmdir out
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944 hard_links
="nottested"
8945 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8946 # do not overwrite the value of need_locks provided by the user
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8948 $as_echo_n "checking if we can lock with hard links... " >&6; }
8951 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8953 ln conftest.a conftest.b
2>&5 || hard_links
=no
8954 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8956 $as_echo "$hard_links" >&6; }
8957 if test "$hard_links" = no
; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8959 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8975 allow_undefined_flag
=
8976 always_export_symbols
=no
8978 archive_expsym_cmds
=
8979 compiler_needs_object
=no
8980 enable_shared_with_static_runtimes
=no
8981 export_dynamic_flag_spec
=
8982 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8983 hardcode_automatic
=no
8985 hardcode_direct_absolute
=no
8986 hardcode_libdir_flag_spec
=
8987 hardcode_libdir_flag_spec_ld
=
8988 hardcode_libdir_separator
=
8990 hardcode_shlibpath_var
=unsupported
8992 link_all_deplibs
=unknown
8995 old_archive_from_new_cmds
=
8996 old_archive_from_expsyms_cmds
=
8997 thread_safe_flag_spec
=
8998 whole_archive_flag_spec
=
8999 # include_expsyms should be a list of space-separated symbols to be *always*
9000 # included in the symbol list
9002 # exclude_expsyms can be an extended regexp of symbols to exclude
9003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9005 # as well as any symbol that contains `d'.
9006 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9008 # platforms (ab)use it in PIC code, but their linkers get confused if
9009 # the symbol is explicitly referenced. Since portable code cannot
9010 # rely on this symbol name, it's probably fine to never include it in
9011 # preloaded symbol tables.
9012 # Exclude shared library initialization/finalization symbols.
9013 extract_expsyms_cmds
=
9016 cygwin
* | mingw
* | pw32
* | cegcc
*)
9017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9018 # When not using gcc, we currently assume that we are using
9019 # Microsoft Visual C++.
9020 if test "$GCC" != yes; then
9025 # we just hope/assume this is gcc and not c89 (= MSVC++)
9035 # On some targets, GNU ld is compatible enough with the native linker
9036 # that we're better off using the native interface for both.
9037 lt_use_gnu_ld_interface
=no
9038 if test "$with_gnu_ld" = yes; then
9041 # The AIX port of GNU ld has always aspired to compatibility
9042 # with the native linker. However, as the warning in the GNU ld
9043 # block says, versions before 2.19.5* couldn't really create working
9044 # shared libraries, regardless of the interface used.
9045 case `$LD -v 2>&1` in
9046 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9047 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9048 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9050 lt_use_gnu_ld_interface
=yes
9055 lt_use_gnu_ld_interface
=yes
9060 if test "$lt_use_gnu_ld_interface" = yes; then
9061 # If archive_cmds runs LD, not CC, wlarc should be empty
9064 # Set some defaults for GNU ld with shared library support. These
9065 # are reset later if shared libraries are not supported. Putting them
9066 # here allows them to be overridden if necessary.
9067 runpath_var
=LD_RUN_PATH
9068 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9069 export_dynamic_flag_spec
='${wl}--export-dynamic'
9070 # ancient GNU ld didn't support --whole-archive et. al.
9071 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9072 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9074 whole_archive_flag_spec
=
9076 supports_anon_versioning
=no
9077 case `$LD -v 2>&1` in
9078 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9079 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9080 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9081 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9082 *\
2.11.
*) ;; # other 2.11 versions
9083 *) supports_anon_versioning
=yes ;;
9086 # See if GNU ld supports shared libraries.
9089 # On AIX/PPC, the GNU linker is very broken
9090 if test "$host_cpu" != ia64
; then
9094 *** Warning: the GNU linker, at least up to release 2.19, is reported
9095 *** to be unable to reliably create shared libraries on AIX.
9096 *** Therefore, libtool is disabling shared libraries support. If you
9097 *** really care for shared libraries, you may want to install binutils
9098 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9099 *** You will then need to restart the configuration process.
9108 # see comment about AmigaOS4 .so support
9109 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds
=''
9113 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)'
9114 hardcode_libdir_flag_spec
='-L$libdir'
9115 hardcode_minus_L
=yes
9121 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9122 allow_undefined_flag
=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131 cygwin
* | mingw
* | pw32
* | cegcc
*)
9132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec
='-L$libdir'
9135 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9136 allow_undefined_flag
=unsupported
9137 always_export_symbols
=no
9138 enable_shared_with_static_runtimes
=yes
9139 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9141 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9142 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file (1st line
9144 # is EXPORTS), use it as is; otherwise, prepend...
9145 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9146 cp $export_symbols $output_objdir/$soname.def;
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9158 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 link_all_deplibs
=yes
9164 hardcode_shlibpath_var
=no
9165 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9166 export_dynamic_flag_spec
='${wl}-E'
9167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9168 # Instead, shared libraries are loaded at an image base (0x10000000 by
9169 # default) and relocated if they conflict, which is a slow very memory
9170 # consuming and fragmenting process. To avoid this, we pick a random,
9171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9173 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9174 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'
9177 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9179 if test "$host_os" = linux-dietlibc
; then
9180 case $cc_basename in
9181 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9184 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9185 && test "$tmp_diet" = no
9187 tmp_addflag
=' $pic_flag'
9188 tmp_sharedflag
='-shared'
9189 case $cc_basename,$host_cpu in
9190 pgcc
*) # Portland Group C compiler
9191 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'
9192 tmp_addflag
=' $pic_flag'
9194 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9195 # Portland Group f77 and f90 compilers
9196 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'
9197 tmp_addflag
=' $pic_flag -Mnomain' ;;
9198 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9199 tmp_addflag
=' -i_dynamic' ;;
9200 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9201 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9202 ifc
* | ifort
*) # Intel Fortran compiler
9203 tmp_addflag
=' -nofor_main' ;;
9204 lf95
*) # Lahey Fortran 8.1
9205 whole_archive_flag_spec
=
9206 tmp_sharedflag
='--shared' ;;
9207 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9208 tmp_sharedflag
='-qmkshrobj'
9210 nvcc
*) # Cuda Compiler Driver 2.2
9211 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'
9212 compiler_needs_object
=yes
9215 case `$CC -V 2>&1 | sed 5q` in
9216 *Sun\ C
*) # Sun C 5.9
9217 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'
9218 compiler_needs_object
=yes
9219 tmp_sharedflag
='-G' ;;
9220 *Sun\ F
*) # Sun Fortran 8.3
9221 tmp_sharedflag
='-G' ;;
9223 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 if test "x$supports_anon_versioning" = xyes
; then
9226 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9232 case $cc_basename in
9233 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9235 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9236 hardcode_libdir_flag_spec
=
9237 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9238 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9239 if test "x$supports_anon_versioning" = xyes
; then
9240 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242 echo "local: *; };" >> $output_objdir/$libname.ver~
9243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9253 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9254 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9257 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9263 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9268 *** create shared libraries on Solaris systems. Therefore, libtool
9269 *** is disabling shared libraries support. We urge you to upgrade GNU
9270 *** binutils to release 2.9.1 or newer. Another option is to modify
9271 *** your PATH or compiler configuration so that the native linker is
9272 *** used, and then restart.
9275 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9276 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9283 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9284 case `$LD -v 2>&1` in
9285 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9290 *** reliably create shared libraries on SCO systems. Therefore, libtool
9291 *** is disabling shared libraries support. We urge you to upgrade GNU
9292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9293 *** your PATH or compiler configuration so that the native linker is
9294 *** used, and then restart.
9299 # For security reasons, it is highly recommended that you always
9300 # use absolute paths for naming shared libraries, and exclude the
9301 # DT_RUNPATH tag from executables and libraries. But doing so
9302 # requires that you compile everything twice, which is a pain.
9303 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9304 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9305 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9315 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_shlibpath_var
=no
9322 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9323 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9331 if test "$ld_shlibs" = no
; then
9333 hardcode_libdir_flag_spec
=
9334 export_dynamic_flag_spec
=
9335 whole_archive_flag_spec
=
9338 # PORTME fill in a description of your system's linker (not GNU ld)
9341 allow_undefined_flag
=unsupported
9342 always_export_symbols
=yes
9343 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'
9344 # Note: this linker hardcodes the directories in LIBPATH if there
9345 # are no directories specified by -L.
9346 hardcode_minus_L
=yes
9347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9348 # Neither direct hardcoding nor static linking is supported with a
9350 hardcode_direct
=unsupported
9355 if test "$host_cpu" = ia64
; then
9356 # On IA64, the linker does run time linking by default, so we don't
9357 # have to do anything special.
9358 aix_use_runtimelinking
=no
9359 exp_sym_flag
='-Bexport'
9362 # If we're using GNU nm, then we don't want the "-C" option.
9363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9364 # Also, AIX nm treats weak defined symbols like other global
9365 # defined symbols, whereas GNU nm marks them as "W".
9366 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9367 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'
9369 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'
9371 aix_use_runtimelinking
=no
9373 # Test if we are trying to use run time linking or normal
9374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9375 # need to do runtime linking.
9376 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9377 for ld_flag
in $LDFLAGS; do
9378 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9379 aix_use_runtimelinking
=yes
9386 exp_sym_flag
='-bexport'
9387 no_entry_flag
='-bnoentry'
9390 # When large executables or shared objects are built, AIX ld can
9391 # have problems creating the table of contents. If linking a library
9392 # or program results in "error TOC overflow" add -mminimal-toc to
9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9398 hardcode_direct_absolute
=yes
9399 hardcode_libdir_separator
=':'
9400 link_all_deplibs
=yes
9401 file_list_spec
='${wl}-f,'
9403 if test "$GCC" = yes; then
9404 case $host_os in aix4.
[012]|aix4.
[012].
*)
9405 # We only want to do this on AIX 4.2 and lower, the check
9406 # below for broken collect2 doesn't work under 4.3+
9407 collect2name
=`${CC} -print-prog-name=collect2`
9408 if test -f "$collect2name" &&
9409 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9411 # We have reworked collect2
9414 # We have old collect2
9415 hardcode_direct
=unsupported
9416 # It fails to find uninstalled libraries when the uninstalled
9417 # path is not listed in the libpath. Setting hardcode_minus_L
9418 # to unsupported forces relinking
9419 hardcode_minus_L
=yes
9420 hardcode_libdir_flag_spec
='-L$libdir'
9421 hardcode_libdir_separator
=
9425 shared_flag
='-shared'
9426 if test "$aix_use_runtimelinking" = yes; then
9427 shared_flag
="$shared_flag "'${wl}-G'
9431 if test "$host_cpu" = ia64
; then
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag
='${wl}-G'
9439 shared_flag
='${wl}-bM:SRE'
9444 export_dynamic_flag_spec
='${wl}-bexpall'
9445 # It seems that -bexpall does not export symbols beginning with
9446 # underscore (_), so it is better to generate a list of symbols to export.
9447 always_export_symbols
=yes
9448 if test "$aix_use_runtimelinking" = yes; then
9449 # Warning - without using the other runtime loading flags (-brtl),
9450 # -berok will link without error, but may produce a broken library.
9451 allow_undefined_flag
='-berok'
9452 # Determine the default libpath from the value encoded in an
9454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9465 if ac_fn_c_try_link
"$LINENO"; then :
9467 lt_aix_libpath_sed
='
9468 /Import File Strings/,/^$/ {
9474 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9475 # Check for a 64-bit object if we didn't find anything.
9476 if test -z "$aix_libpath"; then
9477 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 rm -f core conftest.err conftest.
$ac_objext \
9481 conftest
$ac_exeext conftest.
$ac_ext
9482 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9484 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9485 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"
9487 if test "$host_cpu" = ia64
; then
9488 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9489 allow_undefined_flag
="-z nodefs"
9490 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"
9492 # Determine the default libpath from the value encoded in an
9494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9505 if ac_fn_c_try_link
"$LINENO"; then :
9507 lt_aix_libpath_sed
='
9508 /Import File Strings/,/^$/ {
9514 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515 # Check for a 64-bit object if we didn't find anything.
9516 if test -z "$aix_libpath"; then
9517 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9520 rm -f core conftest.err conftest.
$ac_objext \
9521 conftest
$ac_exeext conftest.
$ac_ext
9522 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9524 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 # Warning - without using the other run time loading flags,
9526 # -berok will link without error, but may produce a broken library.
9527 no_undefined_flag
=' ${wl}-bernotok'
9528 allow_undefined_flag
=' ${wl}-berok'
9529 if test "$with_gnu_ld" = yes; then
9530 # We only use this code for GNU lds that support --whole-archive.
9531 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9533 # Exported symbols can be pulled into shared objects from archives
9534 whole_archive_flag_spec
='$convenience'
9536 archive_cmds_need_lc
=yes
9537 # This is similar to how AIX traditionally builds its shared libraries.
9538 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'
9546 # see comment about AmigaOS4 .so support
9547 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds
=''
9551 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)'
9552 hardcode_libdir_flag_spec
='-L$libdir'
9553 hardcode_minus_L
=yes
9559 export_dynamic_flag_spec
=-rdynamic
9562 cygwin
* | mingw
* | pw32
* | cegcc
*)
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 # hardcode_libdir_flag_spec is actually meaningless, as there is
9566 # no search path for DLLs.
9567 hardcode_libdir_flag_spec
=' '
9568 allow_undefined_flag
=unsupported
9569 # Tell ltmain to make .lib files, not .a files.
9571 # Tell ltmain to make .dll files, not .so files.
9573 # FIXME: Setting linknames here is a bad hack.
9574 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9575 # The linker will automatically build a .lib file if we build a DLL.
9576 old_archive_from_new_cmds
='true'
9577 # FIXME: Should let the user specify the lib program.
9578 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9579 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9580 enable_shared_with_static_runtimes
=yes
9583 darwin
* | rhapsody
*)
9586 archive_cmds_need_lc
=no
9588 hardcode_automatic
=yes
9589 hardcode_shlibpath_var
=unsupported
9590 if test "$lt_cv_ld_force_load" = "yes"; then
9591 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\"`'
9593 whole_archive_flag_spec
=''
9595 link_all_deplibs
=yes
9596 allow_undefined_flag
="$_lt_dar_allow_undefined"
9597 case $cc_basename in
9598 ifort
*) _lt_dar_can_shared
=yes ;;
9599 *) _lt_dar_can_shared
=$GCC ;;
9601 if test "$_lt_dar_can_shared" = "yes"; then
9602 output_verbose_link_cmd
=func_echo_all
9603 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9604 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9605 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}"
9606 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}"
9615 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_libdir_flag_spec
='-L$libdir'
9617 hardcode_shlibpath_var
=no
9620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9621 # support. Future versions do this automatically, but an explicit c++rt0.o
9622 # does not break anything, and helps significantly (at the cost of a little
9625 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9626 hardcode_libdir_flag_spec
='-R$libdir'
9628 hardcode_shlibpath_var
=no
9631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9633 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_minus_L
=yes
9636 hardcode_shlibpath_var
=no
9639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9640 freebsd
* | dragonfly
*)
9641 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9642 hardcode_libdir_flag_spec
='-R$libdir'
9644 hardcode_shlibpath_var
=no
9648 if test "$GCC" = yes; then
9649 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'
9651 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'
9653 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9654 hardcode_libdir_separator
=:
9657 # hardcode_minus_L: Not really in the search PATH,
9658 # but as the default location of the library.
9659 hardcode_minus_L
=yes
9660 export_dynamic_flag_spec
='${wl}-E'
9664 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9665 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9669 if test "$with_gnu_ld" = no
; then
9670 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9671 hardcode_libdir_flag_spec_ld
='+b $libdir'
9672 hardcode_libdir_separator
=:
9674 hardcode_direct_absolute
=yes
9675 export_dynamic_flag_spec
='${wl}-E'
9676 # hardcode_minus_L: Not really in the search PATH,
9677 # but as the default location of the library.
9678 hardcode_minus_L
=yes
9683 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9686 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9705 # Older versions of the 11.00 compiler do not understand -b yet
9706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9708 $as_echo_n "checking if $CC understands -b... " >&6; }
9709 if ${lt_cv_prog_compiler__b+:} false
; then :
9710 $as_echo_n "(cached) " >&6
9712 lt_cv_prog_compiler__b
=no
9713 save_LDFLAGS
="$LDFLAGS"
9714 LDFLAGS
="$LDFLAGS -b"
9715 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9716 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9717 # The linker can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
9719 if test -s conftest.err
; then
9720 # Append any errors to the config.log.
9721 cat conftest.err
1>&5
9722 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9723 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9724 if diff conftest.exp conftest.er2
>/dev
/null
; then
9725 lt_cv_prog_compiler__b
=yes
9728 lt_cv_prog_compiler__b
=yes
9732 LDFLAGS
="$save_LDFLAGS"
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9736 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9738 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9739 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9747 if test "$with_gnu_ld" = no
; then
9748 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9749 hardcode_libdir_separator
=:
9754 hardcode_shlibpath_var
=no
9758 hardcode_direct_absolute
=yes
9759 export_dynamic_flag_spec
='${wl}-E'
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L
=yes
9769 irix5
* | irix6
* | nonstopux
*)
9770 if test "$GCC" = yes; then
9771 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'
9772 # Try to use the -exported_symbol ld option, if it does not
9773 # work, assume that -exports_file does not work either and
9774 # implicitly export all symbols.
9775 save_LDFLAGS
="$LDFLAGS"
9776 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9781 if ac_fn_c_try_link
"$LINENO"; then :
9782 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'
9785 rm -f core conftest.err conftest.
$ac_objext \
9786 conftest
$ac_exeext conftest.
$ac_ext
9787 LDFLAGS
="$save_LDFLAGS"
9789 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'
9790 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'
9792 archive_cmds_need_lc
='no'
9793 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9794 hardcode_libdir_separator
=:
9796 link_all_deplibs
=yes
9800 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9801 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9803 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9805 hardcode_libdir_flag_spec
='-R$libdir'
9807 hardcode_shlibpath_var
=no
9811 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9814 hardcode_libdir_separator
=:
9815 hardcode_shlibpath_var
=no
9822 if test -f /usr
/libexec
/ld.so
; then
9824 hardcode_shlibpath_var
=no
9825 hardcode_direct_absolute
=yes
9826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9827 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9829 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9830 export_dynamic_flag_spec
='${wl}-E'
9833 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9834 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_libdir_flag_spec
='-R$libdir'
9838 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9839 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9849 hardcode_libdir_flag_spec
='-L$libdir'
9850 hardcode_minus_L
=yes
9851 allow_undefined_flag
=unsupported
9852 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'
9853 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9857 if test "$GCC" = yes; then
9858 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9859 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'
9861 allow_undefined_flag
=' -expect_unresolved \*'
9862 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'
9864 archive_cmds_need_lc
='no'
9865 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9866 hardcode_libdir_separator
=:
9869 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9870 if test "$GCC" = yes; then
9871 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9872 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'
9873 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9875 allow_undefined_flag
=' -expect_unresolved \*'
9876 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'
9877 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~
9878 $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'
9880 # Both c and cxx compiler support -rpath directly
9881 hardcode_libdir_flag_spec
='-rpath $libdir'
9883 archive_cmds_need_lc
='no'
9884 hardcode_libdir_separator
=:
9888 no_undefined_flag
=' -z defs'
9889 if test "$GCC" = yes; then
9891 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9893 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9895 case `$CC -V 2>&1` in
9898 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9899 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9904 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9906 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9910 hardcode_libdir_flag_spec
='-R$libdir'
9911 hardcode_shlibpath_var
=no
9913 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9915 # The compiler driver will combine and reorder linker options,
9916 # but understands `-z linker_flag'. GCC discards it without `$wl',
9917 # but is careful enough not to reorder.
9918 # Supported since Solaris 2.6 (maybe 2.5.1?)
9919 if test "$GCC" = yes; then
9920 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9922 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9926 link_all_deplibs
=yes
9930 if test "x$host_vendor" = xsequent
; then
9931 # Use $CC to link under sequent, because it throws in some extra .o
9932 # files that make .init and .fini sections work.
9933 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_libdir_flag_spec
='-L$libdir'
9939 hardcode_minus_L
=yes
9940 hardcode_shlibpath_var
=no
9944 case $host_vendor in
9946 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_direct
=yes # is this really true???
9950 ## LD is ld it makes a PLAMLIB
9951 ## CC just makes a GrossModule.
9952 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9953 reload_cmds
='$CC -r -o $output$reload_objs'
9957 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9961 runpath_var
='LD_RUN_PATH'
9962 hardcode_shlibpath_var
=no
9966 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_shlibpath_var
=no
9968 export_dynamic_flag_spec
='-Bexport'
9972 if test -d /usr
/nec
; then
9973 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_shlibpath_var
=no
9975 runpath_var
=LD_RUN_PATH
9976 hardcode_runpath_var
=yes
9981 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9982 no_undefined_flag
='${wl}-z,text'
9983 archive_cmds_need_lc
=no
9984 hardcode_shlibpath_var
=no
9985 runpath_var
='LD_RUN_PATH'
9987 if test "$GCC" = yes; then
9988 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 sysv5
* | sco3.2v5
* | sco5v6
*)
9997 # Note: We can NOT use -z defs as we might desire, because we do not
9998 # link with -lc, and that would cause any symbols used from libc to
9999 # always be unresolved, which means just about no library would
10000 # ever link correctly. If we're not using GNU ld we use -z text
10001 # though, which does catch some bad symbols but isn't as heavy-handed
10003 no_undefined_flag
='${wl}-z,text'
10004 allow_undefined_flag
='${wl}-z,nodefs'
10005 archive_cmds_need_lc
=no
10006 hardcode_shlibpath_var
=no
10007 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10008 hardcode_libdir_separator
=':'
10009 link_all_deplibs
=yes
10010 export_dynamic_flag_spec
='${wl}-Bexport'
10011 runpath_var
='LD_RUN_PATH'
10013 if test "$GCC" = yes; then
10014 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_libdir_flag_spec
='-L$libdir'
10025 hardcode_shlibpath_var
=no
10033 if test x
$host_vendor = xsni
; then
10035 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10036 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10043 $as_echo "$ld_shlibs" >&6; }
10044 test "$ld_shlibs" = no
&& can_build_shared
=no
10046 with_gnu_ld
=$with_gnu_ld
10063 # Do we need to explicitly link libc?
10065 case "x$archive_cmds_need_lc" in
10067 # Assume -lc should be added
10068 archive_cmds_need_lc
=yes
10070 if test "$enable_shared" = yes && test "$GCC" = yes; then
10071 case $archive_cmds in
10073 # FIXME: we may have to deal with multi-command sequences.
10076 # Test whether the compiler implicitly links with -lc since on some
10077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10078 # to ld, don't add -lc before -lgcc.
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10081 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10082 $as_echo_n "(cached) " >&6
10085 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10088 (eval $ac_compile) 2>&5
10090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10091 test $ac_status = 0; } 2>conftest.err
; then
10094 libobjs
=conftest.
$ac_objext
10096 wl
=$lt_prog_compiler_wl
10097 pic_flag
=$lt_prog_compiler_pic
10103 lt_save_allow_undefined_flag
=$allow_undefined_flag
10104 allow_undefined_flag
=
10105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10106 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10109 test $ac_status = 0; }
10111 lt_cv_archive_cmds_need_lc
=no
10113 lt_cv_archive_cmds_need_lc
=yes
10115 allow_undefined_flag
=$lt_save_allow_undefined_flag
10117 cat conftest.err
1>&5
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10123 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10124 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10290 if test "$GCC" = yes; then
10292 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10293 *) lt_awk_arg
="/^libraries:/" ;;
10296 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10297 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10299 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10300 case $lt_search_path_spec in
10302 # if the path contains ";" then we assume it to be the separator
10303 # otherwise default to the standard path separator (i.e. ":") - it is
10304 # assumed that no part of a normal pathname contains ";" but that should
10305 # okay in the real world where ";" in dirpaths is itself problematic.
10306 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10309 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10312 # Ok, now we have the path, separated by spaces, we can step through it
10313 # and add multilib dir if necessary.
10314 lt_tmp_lt_search_path_spec
=
10315 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10316 for lt_sys_path
in $lt_search_path_spec; do
10317 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10318 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10320 test -d "$lt_sys_path" && \
10321 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10324 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10325 BEGIN {RS=" "; FS="/|\n";} {
10328 for (lt_i = NF; lt_i > 0; lt_i--) {
10329 if ($lt_i != "" && $lt_i != ".") {
10330 if ($lt_i == "..") {
10333 if (lt_count == 0) {
10334 lt_foo="/" $lt_i lt_foo;
10341 if (lt_foo != "") { lt_freq[lt_foo]++; }
10342 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10344 # AWK program above erroneously prepends '/' to C:/dos/paths
10347 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10348 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10350 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10352 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10354 library_names_spec
=
10355 libname_spec
='lib$name'
10359 postuninstall_cmds
=
10363 shlibpath_overrides_runpath
=unknown
10365 dynamic_linker
="$host_os ld.so"
10366 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10367 need_lib_prefix
=unknown
10368 hardcode_into_libs
=no
10370 # when you set need_version to no, make sure it does not cause -set_version
10371 # flags to be left without arguments
10372 need_version
=unknown
10377 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10378 shlibpath_var
=LIBPATH
10380 # AIX 3 has no versioning support, so we append a major version to the name.
10381 soname_spec
='${libname}${release}${shared_ext}$major'
10388 hardcode_into_libs
=yes
10389 if test "$host_cpu" = ia64
; then
10390 # AIX 5 supports IA64
10391 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10392 shlibpath_var
=LD_LIBRARY_PATH
10394 # With GCC up to 2.95.x, collect2 would create an import file
10395 # for dependence libraries. The import file would start with
10396 # the line `#! .'. This would cause the generated library to
10397 # depend on `.', always an invalid library. This was fixed in
10398 # development snapshots of GCC prior to 3.0.
10400 aix4 | aix4.
[01] | aix4.
[01].
*)
10401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10403 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10406 can_build_shared
=no
10410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10411 # soname into executable. Probably we can add versioning support to
10412 # collect2, so additional links can be useful in future.
10413 if test "$aix_use_runtimelinking" = yes; then
10414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10415 # instead of lib<name>.a to let people know that these are not
10416 # typical AIX shared libraries.
10417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 # We preserve .a as extension for shared libraries through AIX4.2
10420 # and later when we are not doing run time linking.
10421 library_names_spec
='${libname}${release}.a $libname.a'
10422 soname_spec
='${libname}${release}${shared_ext}$major'
10424 shlibpath_var
=LIBPATH
10431 # Since July 2007 AmigaOS4 officially supports .so libraries.
10432 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 library_names_spec
='$libname.ixlibrary $libname.a'
10437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10438 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'
10444 library_names_spec
='${libname}${shared_ext}'
10445 dynamic_linker
="$host_os ld.so"
10446 shlibpath_var
=LIBRARY_PATH
10452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 soname_spec
='${libname}${release}${shared_ext}$major'
10454 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10455 shlibpath_var
=LD_LIBRARY_PATH
10456 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10457 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10458 # the default ld.so.conf also contains /usr/contrib/lib and
10459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10460 # libtool to hard-code these into programs
10463 cygwin
* | mingw
* | pw32
* | cegcc
*)
10464 version_type
=windows
10469 case $GCC,$host_os in
10470 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10471 library_names_spec
='$libname.dll.a'
10472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10473 postinstall_cmds
='base_file=`basename \${file}`~
10474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10475 dldir=$destdir/`dirname \$dlpath`~
10476 test -d \$dldir || mkdir -p \$dldir~
10477 $install_prog $dir/$dlname \$dldir/$dlname~
10478 chmod a+x \$dldir/$dlname~
10479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10482 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10483 dlpath=$dir/\$dldll~
10485 shlibpath_overrides_runpath
=yes
10489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10490 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10492 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10495 # MinGW DLLs use traditional 'lib' prefix
10496 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10499 # pw32 DLLs use 'pw' prefix rather than 'lib'
10500 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10509 dynamic_linker
='Win32 ld.exe'
10510 # FIXME: first we should search . and the directory the executable is in
10514 darwin
* | rhapsody
*)
10515 dynamic_linker
="$host_os dyld"
10516 version_type
=darwin
10519 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10520 soname_spec
='${libname}${release}${major}$shared_ext'
10521 shlibpath_overrides_runpath
=yes
10522 shlibpath_var
=DYLD_LIBRARY_PATH
10523 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10525 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10526 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10534 soname_spec
='${libname}${release}${shared_ext}$major'
10535 shlibpath_var
=LD_LIBRARY_PATH
10538 freebsd
* | dragonfly
*)
10539 # DragonFly does not have aout. When/if they implement a new
10540 # versioning mechanism, adjust this.
10541 if test -x /usr
/bin
/objformat
; then
10542 objformat
=`/usr/bin/objformat`
10545 freebsd
[23].
*) objformat
=aout
;;
10546 *) objformat
=elf
;;
10549 version_type
=freebsd-
$objformat
10550 case $version_type in
10552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10557 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10561 shlibpath_var
=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath
=yes
10566 freebsd3.
[01]* | freebsdelf3.
[01]*)
10567 shlibpath_overrides_runpath
=yes
10568 hardcode_into_libs
=yes
10570 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10571 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10572 shlibpath_overrides_runpath
=no
10573 hardcode_into_libs
=yes
10575 *) # from 4.6 on, and DragonFly
10576 shlibpath_overrides_runpath
=yes
10577 hardcode_into_libs
=yes
10586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10587 soname_spec
='${libname}${release}${shared_ext}$major'
10588 shlibpath_var
=LD_LIBRARY_PATH
10589 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.
10708 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 soname_spec
='${libname}${release}${shared_ext}$major'
10714 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10715 shlibpath_var
=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath
=no
10718 # Some binutils ld are patched to set DT_RUNPATH
10719 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10720 $as_echo_n "(cached) " >&6
10722 lt_cv_shlibpath_overrides_runpath
=no
10723 save_LDFLAGS
=$LDFLAGS
10724 save_libdir
=$libdir
10725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10738 if ac_fn_c_try_link
"$LINENO"; then :
10739 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10740 lt_cv_shlibpath_overrides_runpath
=yes
10743 rm -f core conftest.err conftest.
$ac_objext \
10744 conftest
$ac_exeext conftest.
$ac_ext
10745 LDFLAGS
=$save_LDFLAGS
10746 libdir
=$save_libdir
10750 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10752 # This implies no fast_install, which is unacceptable.
10753 # Some rework will be needed to allow for fast_install
10754 # before this can be enabled.
10755 hardcode_into_libs
=yes
10757 # Append ld.so.conf contents to the search path
10758 if test -f /etc
/ld.so.conf
; then
10759 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' ' '`
10760 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10763 # We used to test for /lib/ld.so.1 and disable shared libraries on
10764 # powerpc, because MkLinux only supported shared libraries with the
10765 # GNU dynamic linker. Since this was broken with cross compilers,
10766 # most powerpc-linux boxes support dynamic linking these days and
10767 # people can always --disable-shared, the test was removed, and we
10768 # assume the GNU/Linux dynamic linker is in use.
10769 dynamic_linker
='GNU/Linux ld.so'
10776 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10778 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10779 dynamic_linker
='NetBSD (a.out) ld.so'
10781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10782 soname_spec
='${libname}${release}${shared_ext}$major'
10783 dynamic_linker
='NetBSD ld.elf_so'
10785 shlibpath_var
=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath
=yes
10787 hardcode_into_libs
=yes
10792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793 shlibpath_var
=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath
=yes
10801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec
='${libname}${release}${shared_ext}$major'
10803 shlibpath_var
=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath
=no
10805 hardcode_into_libs
=yes
10806 dynamic_linker
='ldqnx.so'
10811 sys_lib_dlsearch_path_spec
="/usr/lib"
10813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10815 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10816 *) need_version
=no
;;
10818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10819 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10820 shlibpath_var
=LD_LIBRARY_PATH
10821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10823 openbsd2.
[89] | openbsd2.
[89].
*)
10824 shlibpath_overrides_runpath
=no
10827 shlibpath_overrides_runpath
=yes
10831 shlibpath_overrides_runpath
=yes
10836 libname_spec
='$name'
10839 library_names_spec
='$libname${shared_ext} $libname.a'
10840 dynamic_linker
='OS/2 ld.exe'
10841 shlibpath_var
=LIBPATH
10844 osf3
* | osf4
* | osf5
*)
10848 soname_spec
='${libname}${release}${shared_ext}$major'
10849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 shlibpath_var
=LD_LIBRARY_PATH
10851 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10852 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec
='${libname}${release}${shared_ext}$major'
10865 shlibpath_var
=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath
=yes
10867 hardcode_into_libs
=yes
10868 # ldd complains unless libraries are executable
10869 postinstall_cmds
='chmod +x $lib'
10874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10876 shlibpath_var
=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath
=yes
10878 if test "$with_gnu_ld" = yes; then
10886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 soname_spec
='${libname}${release}${shared_ext}$major'
10888 shlibpath_var
=LD_LIBRARY_PATH
10889 case $host_vendor in
10891 shlibpath_overrides_runpath
=no
10893 runpath_var
=LD_RUN_PATH
10901 shlibpath_overrides_runpath
=no
10902 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10908 if test -d /usr
/nec
;then
10910 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10911 soname_spec
='$libname${shared_ext}.$major'
10912 shlibpath_var
=LD_LIBRARY_PATH
10916 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10917 version_type
=freebsd-elf
10920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10921 soname_spec
='${libname}${release}${shared_ext}$major'
10922 shlibpath_var
=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath
=yes
10924 hardcode_into_libs
=yes
10925 if test "$with_gnu_ld" = yes; then
10926 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10928 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10931 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10935 sys_lib_dlsearch_path_spec
='/usr/lib'
10939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 shlibpath_var
=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath
=no
10946 hardcode_into_libs
=yes
10951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec
='${libname}${release}${shared_ext}$major'
10953 shlibpath_var
=LD_LIBRARY_PATH
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10961 $as_echo "$dynamic_linker" >&6; }
10962 test "$dynamic_linker" = no
&& can_build_shared
=no
10964 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10965 if test "$GCC" = yes; then
10966 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10969 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10970 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10972 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10973 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11068 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11070 if test -n "$hardcode_libdir_flag_spec" ||
11071 test -n "$runpath_var" ||
11072 test "X$hardcode_automatic" = "Xyes" ; then
11074 # We can hardcode non-existent directories.
11075 if test "$hardcode_direct" != no
&&
11076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11077 # have to relink, otherwise we might link with an installed library
11078 # when we should be linking with a yet-to-be-installed one
11079 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11080 test "$hardcode_minus_L" != no
; then
11081 # Linking always hardcodes the temporary library directory.
11082 hardcode_action
=relink
11084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11085 hardcode_action
=immediate
11088 # We cannot hardcode anything, or else we can only hardcode existing
11090 hardcode_action
=unsupported
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11093 $as_echo "$hardcode_action" >&6; }
11095 if test "$hardcode_action" = relink ||
11096 test "$inherit_rpath" = yes; then
11097 # Fast installation is not supported
11098 enable_fast_install
=no
11099 elif test "$shlibpath_overrides_runpath" = yes ||
11100 test "$enable_shared" = no
; then
11101 # Fast installation is not necessary
11102 enable_fast_install
=needless
11110 if test "x$enable_dlopen" != xyes
; then
11111 enable_dlopen
=unknown
11112 enable_dlopen_self
=unknown
11113 enable_dlopen_self_static
=unknown
11120 lt_cv_dlopen
="load_add_on"
11122 lt_cv_dlopen_self
=yes
11125 mingw
* | pw32
* | cegcc
*)
11126 lt_cv_dlopen
="LoadLibrary"
11131 lt_cv_dlopen
="dlopen"
11136 # if libdl is installed we need to link against it
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11138 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11139 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11140 $as_echo_n "(cached) " >&6
11142 ac_check_lib_save_LIBS
=$LIBS
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11162 if ac_fn_c_try_link
"$LINENO"; then :
11163 ac_cv_lib_dl_dlopen
=yes
11165 ac_cv_lib_dl_dlopen
=no
11167 rm -f core conftest.err conftest.
$ac_objext \
11168 conftest
$ac_exeext conftest.
$ac_ext
11169 LIBS
=$ac_check_lib_save_LIBS
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11173 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11174 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11177 lt_cv_dlopen
="dyld"
11179 lt_cv_dlopen_self
=yes
11186 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11187 if test "x$ac_cv_func_shl_load" = xyes
; then :
11188 lt_cv_dlopen
="shl_load"
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11191 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11192 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11193 $as_echo_n "(cached) " >&6
11195 ac_check_lib_save_LIBS
=$LIBS
11197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11210 return shl_load ();
11215 if ac_fn_c_try_link
"$LINENO"; then :
11216 ac_cv_lib_dld_shl_load
=yes
11218 ac_cv_lib_dld_shl_load
=no
11220 rm -f core conftest.err conftest.
$ac_objext \
11221 conftest
$ac_exeext conftest.
$ac_ext
11222 LIBS
=$ac_check_lib_save_LIBS
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11225 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11226 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11227 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11229 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11230 if test "x$ac_cv_func_dlopen" = xyes
; then :
11231 lt_cv_dlopen
="dlopen"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11235 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11236 $as_echo_n "(cached) " >&6
11238 ac_check_lib_save_LIBS
=$LIBS
11240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11258 if ac_fn_c_try_link
"$LINENO"; then :
11259 ac_cv_lib_dl_dlopen
=yes
11261 ac_cv_lib_dl_dlopen
=no
11263 rm -f core conftest.err conftest.
$ac_objext \
11264 conftest
$ac_exeext conftest.
$ac_ext
11265 LIBS
=$ac_check_lib_save_LIBS
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11269 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11270 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11273 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11274 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11275 $as_echo_n "(cached) " >&6
11277 ac_check_lib_save_LIBS
=$LIBS
11278 LIBS
="-lsvld $LIBS"
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11297 if ac_fn_c_try_link
"$LINENO"; then :
11298 ac_cv_lib_svld_dlopen
=yes
11300 ac_cv_lib_svld_dlopen
=no
11302 rm -f core conftest.err conftest.
$ac_objext \
11303 conftest
$ac_exeext conftest.
$ac_ext
11304 LIBS
=$ac_check_lib_save_LIBS
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11307 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11308 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11309 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11312 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11313 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11314 $as_echo_n "(cached) " >&6
11316 ac_check_lib_save_LIBS
=$LIBS
11318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11331 return dld_link ();
11336 if ac_fn_c_try_link
"$LINENO"; then :
11337 ac_cv_lib_dld_dld_link
=yes
11339 ac_cv_lib_dld_dld_link
=no
11341 rm -f core conftest.err conftest.
$ac_objext \
11342 conftest
$ac_exeext conftest.
$ac_ext
11343 LIBS
=$ac_check_lib_save_LIBS
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11346 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11347 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11348 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11369 if test "x$lt_cv_dlopen" != xno
; then
11375 case $lt_cv_dlopen in
11377 save_CPPFLAGS
="$CPPFLAGS"
11378 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11380 save_LDFLAGS
="$LDFLAGS"
11381 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11384 LIBS
="$lt_cv_dlopen_libs $LIBS"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11387 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11388 if ${lt_cv_dlopen_self+:} false
; then :
11389 $as_echo_n "(cached) " >&6
11391 if test "$cross_compiling" = yes; then :
11392 lt_cv_dlopen_self
=cross
11394 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11395 lt_status
=$lt_dlunknown
11396 cat > conftest.
$ac_ext <<_LT_EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11407 # define LT_DLGLOBAL RTLD_GLOBAL
11410 # define LT_DLGLOBAL DL_GLOBAL
11412 # define LT_DLGLOBAL 0
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11423 # define LT_DLLAZY_OR_NOW DL_LAZY
11426 # define LT_DLLAZY_OR_NOW RTLD_NOW
11429 # define LT_DLLAZY_OR_NOW DL_NOW
11431 # define LT_DLLAZY_OR_NOW 0
11438 /* When -fvisbility=hidden is used, assume the code has been annotated
11439 correspondingly for the symbols needed. */
11440 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11441 void fnord () __attribute__((visibility("default")));
11444 void fnord () { int i=42; }
11447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11448 int status = $lt_dlunknown;
11452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11456 else puts (dlerror ());
11458 /* dlclose (self); */
11466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11467 (eval $ac_link) 2>&5
11469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11470 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11471 (.
/conftest
; exit; ) >&5 2>/dev
/null
11473 case x
$lt_status in
11474 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11475 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11476 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11479 # compilation failed
11480 lt_cv_dlopen_self
=no
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11488 $as_echo "$lt_cv_dlopen_self" >&6; }
11490 if test "x$lt_cv_dlopen_self" = xyes
; then
11491 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11493 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11494 if ${lt_cv_dlopen_self_static+:} false
; then :
11495 $as_echo_n "(cached) " >&6
11497 if test "$cross_compiling" = yes; then :
11498 lt_cv_dlopen_self_static
=cross
11500 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11501 lt_status
=$lt_dlunknown
11502 cat > conftest.
$ac_ext <<_LT_EOF
11503 #line 11503 "configure"
11504 #include "confdefs.h"
11513 # define LT_DLGLOBAL RTLD_GLOBAL
11516 # define LT_DLGLOBAL DL_GLOBAL
11518 # define LT_DLGLOBAL 0
11522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11523 find out it does not work in some platform. */
11524 #ifndef LT_DLLAZY_OR_NOW
11526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11529 # define LT_DLLAZY_OR_NOW DL_LAZY
11532 # define LT_DLLAZY_OR_NOW RTLD_NOW
11535 # define LT_DLLAZY_OR_NOW DL_NOW
11537 # define LT_DLLAZY_OR_NOW 0
11544 /* When -fvisbility=hidden is used, assume the code has been annotated
11545 correspondingly for the symbols needed. */
11546 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11547 void fnord () __attribute__((visibility("default")));
11550 void fnord () { int i=42; }
11553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11554 int status = $lt_dlunknown;
11558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11562 else puts (dlerror ());
11564 /* dlclose (self); */
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11573 (eval $ac_link) 2>&5
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11577 (.
/conftest
; exit; ) >&5 2>/dev
/null
11579 case x
$lt_status in
11580 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11581 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11582 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11585 # compilation failed
11586 lt_cv_dlopen_self_static
=no
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11594 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11597 CPPFLAGS
="$save_CPPFLAGS"
11598 LDFLAGS
="$save_LDFLAGS"
11603 case $lt_cv_dlopen_self in
11604 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11605 *) enable_dlopen_self
=unknown
;;
11608 case $lt_cv_dlopen_self_static in
11609 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11610 *) enable_dlopen_self_static
=unknown
;;
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11633 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11634 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11635 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11636 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11640 # FIXME - insert some real tests, host_os isn't really good enough
11643 if test -n "$STRIP" ; then
11644 striplib
="$STRIP -x"
11645 old_striplib
="$STRIP -S"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11671 # Report which library types will actually be built
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11673 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11675 $as_echo "$can_build_shared" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11678 $as_echo_n "checking whether to build shared libraries... " >&6; }
11679 test "$can_build_shared" = "no" && enable_shared
=no
11681 # On AIX, shared libraries and static libraries use the same namespace, and
11682 # are all built from PIC.
11685 test "$enable_shared" = yes && enable_static
=no
11686 if test -n "$RANLIB"; then
11687 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11688 postinstall_cmds
='$RANLIB $lib'
11693 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11694 test "$enable_shared" = yes && enable_static
=no
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11699 $as_echo "$enable_shared" >&6; }
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11702 $as_echo_n "checking whether to build static libraries... " >&6; }
11703 # Make sure either enable_shared or enable_static is yes.
11704 test "$enable_shared" = yes || enable_static
=yes
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11706 $as_echo "$enable_static" >&6; }
11713 ac_cpp
='$CPP $CPPFLAGS'
11714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11732 ac_config_commands
="$ac_config_commands libtool"
11737 # Only expand once:
11744 *-cygwin* |
*-mingw*)
11745 # 'host' will be top-level target in the case of a target lib,
11746 # we must compare to with_cross_host to decide if this is a native
11747 # or cross-compiler and select where to install dlls appropriately.
11748 if test -n "$with_cross_host" &&
11749 test x
"$with_cross_host" != x
"no"; then
11750 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
11752 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11767 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11768 # Check whether --enable-maintainer-mode was given.
11769 if test "${enable_maintainer_mode+set}" = set; then :
11770 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11772 USE_MAINTAINER_MODE
=no
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11776 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11777 if test $USE_MAINTAINER_MODE = yes; then
11778 MAINTAINER_MODE_TRUE
=
11779 MAINTAINER_MODE_FALSE
='#'
11781 MAINTAINER_MODE_TRUE
='#'
11782 MAINTAINER_MODE_FALSE
=
11785 MAINT
=$MAINTAINER_MODE_TRUE
11789 # Create a spec file, so that compile/link tests don't fail
11790 test -f libgfortran.spec ||
touch libgfortran.spec
11791 FCFLAGS
="$FCFLAGS -L."
11793 # We need gfortran to compile parts of the library
11794 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11795 #AC_PROG_FC(gfortran)
11796 case `echo $GFORTRAN` in
11800 set dummy
$GFORTRAN; ac_word
=$2
11801 if test -x "$ac_word"; then
11807 ac_ext
=${ac_fc_srcext-f}
11808 ac_compile
='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11809 ac_link
='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu
=$ac_cv_fc_compiler_gnu
11811 if test -n "$ac_tool_prefix"; then
11812 for ac_prog
in gfortran
11814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11815 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if ${ac_cv_prog_FC+:} false
; then :
11819 $as_echo_n "(cached) " >&6
11821 if test -n "$FC"; then
11822 ac_cv_prog_FC
="$FC" # Let the user override the test.
11824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11825 for as_dir
in $PATH
11828 test -z "$as_dir" && as_dir
=.
11829 for ac_exec_ext
in '' $ac_executable_extensions; do
11830 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11831 ac_cv_prog_FC
="$ac_tool_prefix$ac_prog"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 if test -n "$FC"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11844 $as_echo "$FC" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11851 test -n "$FC" && break
11854 if test -z "$FC"; then
11856 for ac_prog
in gfortran
11858 # Extract the first word of "$ac_prog", so it can be a program name with args.
11859 set dummy
$ac_prog; ac_word
=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_ac_ct_FC+:} false
; then :
11863 $as_echo_n "(cached) " >&6
11865 if test -n "$ac_ct_FC"; then
11866 ac_cv_prog_ac_ct_FC
="$ac_ct_FC" # Let the user override the test.
11868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11869 for as_dir
in $PATH
11872 test -z "$as_dir" && as_dir
=.
11873 for ac_exec_ext
in '' $ac_executable_extensions; do
11874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_ac_ct_FC
="$ac_prog"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 ac_ct_FC
=$ac_cv_prog_ac_ct_FC
11886 if test -n "$ac_ct_FC"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11888 $as_echo "$ac_ct_FC" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11895 test -n "$ac_ct_FC" && break
11898 if test "x$ac_ct_FC" = x
; then
11901 case $cross_compiling:$ac_tool_warned in
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11905 ac_tool_warned
=yes ;;
11912 # Provide some information about the compiler.
11913 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11916 for ac_option
in --version -v -V -qversion; do
11917 { { ac_try
="$ac_compiler $ac_option >&5"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11923 $as_echo "$ac_try_echo"; } >&5
11924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11926 if test -s conftest.err; then
11928 ... rest of stderr output deleted ...
11929 10q' conftest.err >conftest.er1
11930 cat conftest.er1 >&5
11932 rm -f conftest.er1 conftest.err
11933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934 test $ac_status = 0; }
11938 # If we don't use `.F
' as extension, the preprocessor is not run on the
11939 # input file. (Note that this only needs to work for GNU compilers.)
11940 ac_save_ext=$ac_ext
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11943 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11944 if ${ac_cv_fc_compiler_gnu+:} false; then :
11945 $as_echo_n "(cached) " >&6
11947 cat > conftest.$ac_ext <<_ACEOF
11955 if ac_fn_fc_try_compile "$LINENO"; then :
11956 ac_compiler_gnu=yes
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11965 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11966 ac_ext=$ac_save_ext
11967 ac_test_FCFLAGS=${FCFLAGS+set}
11968 ac_save_FCFLAGS=$FCFLAGS
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11971 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11972 if ${ac_cv_prog_fc_g+:} false; then :
11973 $as_echo_n "(cached) " >&6
11976 cat > conftest.$ac_ext <<_ACEOF
11981 if ac_fn_fc_try_compile "$LINENO"; then :
11982 ac_cv_prog_fc_g=yes
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11990 $as_echo "$ac_cv_prog_fc_g" >&6; }
11991 if test "$ac_test_FCFLAGS" = set; then
11992 FCFLAGS=$ac_save_FCFLAGS
11993 elif test $ac_cv_prog_fc_g = yes; then
11994 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12000 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12007 if test $ac_compiler_gnu = yes; then
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12015 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12018 ac_ext=${ac_fc_srcext-f}
12019 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.
$ac_ext >&5'
12020 ac_link='$FC -o conftest
$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.
$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12024 if test -z "$FC" || test "X$FC" = "Xno"; then
12028 archive_cmds_need_lc_FC=no
12029 allow_undefined_flag_FC=
12030 always_export_symbols_FC=no
12031 archive_expsym_cmds_FC=
12032 export_dynamic_flag_spec_FC=
12033 hardcode_direct_FC=no
12034 hardcode_direct_absolute_FC=no
12035 hardcode_libdir_flag_spec_FC=
12036 hardcode_libdir_flag_spec_ld_FC=
12037 hardcode_libdir_separator_FC=
12038 hardcode_minus_L_FC=no
12039 hardcode_automatic_FC=no
12040 inherit_rpath_FC=no
12042 module_expsym_cmds_FC=
12043 link_all_deplibs_FC=unknown
12044 old_archive_cmds_FC=$old_archive_cmds
12045 reload_flag_FC=$reload_flag
12046 reload_cmds_FC=$reload_cmds
12047 no_undefined_flag_FC=
12048 whole_archive_flag_spec_FC=
12049 enable_shared_with_static_runtimes_FC=no
12051 # Source file extension for fc test sources.
12052 ac_ext=${ac_fc_srcext-f}
12054 # Object file extension for compiled fc test sources.
12058 # No sense in running all these tests if we already determined that
12059 # the FC compiler isn't working. Some variables
(like enable_shared
)
12060 # are currently assumed to apply to all compilers on this platform,
12061 # and will be corrupted by setting them based on a non-working compiler.
12062 if test "$_lt_disable_FC" != yes; then
12063 # Code to be used in simple compile tests
12064 lt_simple_compile_test_code
="\
12070 # Code to be used in simple link tests
12071 lt_simple_link_test_code
="\
12076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12083 # If no C compiler was specified, use CC.
12086 # If no C compiler flags were specified, use CFLAGS.
12087 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12089 # Allow CC to be a program name with arguments.
12093 # save warnings/boilerplate of simple test code
12094 ac_outfile
=conftest.
$ac_objext
12095 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12096 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12097 _lt_compiler_boilerplate
=`cat conftest.err`
12100 ac_outfile
=conftest.
$ac_objext
12101 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12102 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12103 _lt_linker_boilerplate
=`cat conftest.err`
12107 # Allow CC to be a program name with arguments.
12112 GCC
=$ac_cv_fc_compiler_gnu
12115 for cc_temp
in $compiler""; do
12117 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12118 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12123 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12126 if test -n "$compiler"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12128 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12130 $as_echo "$can_build_shared" >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12133 $as_echo_n "checking whether to build shared libraries... " >&6; }
12134 test "$can_build_shared" = "no" && enable_shared
=no
12136 # On AIX, shared libraries and static libraries use the same namespace, and
12137 # are all built from PIC.
12140 test "$enable_shared" = yes && enable_static
=no
12141 if test -n "$RANLIB"; then
12142 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12143 postinstall_cmds
='$RANLIB $lib'
12147 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12148 test "$enable_shared" = yes && enable_static
=no
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12153 $as_echo "$enable_shared" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12156 $as_echo_n "checking whether to build static libraries... " >&6; }
12157 # Make sure either enable_shared or enable_static is yes.
12158 test "$enable_shared" = yes || enable_static
=yes
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12160 $as_echo "$enable_static" >&6; }
12162 GCC_FC
="$ac_cv_fc_compiler_gnu"
12166 ## There is no encapsulation within the following macros, do not change
12167 ## the running order or otherwise move them around unless you know exactly
12168 ## what you are doing...
12169 # Dependencies to place before and after the object being linked:
12171 postdep_objects_FC
=
12174 compiler_lib_search_path_FC
=
12176 cat > conftest.
$ac_ext <<_LT_EOF
12185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12186 (eval $ac_compile) 2>&5
12188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12189 test $ac_status = 0; }; then
12190 # Parse the compiler output and extract the necessary
12191 # objects, libraries and library flags.
12193 # Sentinel used to keep track of whether or not we are before
12194 # the conftest object file.
12195 pre_test_object_deps_done
=no
12197 for p
in `eval "$output_verbose_link_cmd"`; do
12201 # Some compilers place space between "-{L,R}" and the path.
12202 # Remove the space.
12203 if test $p = "-L" ||
12204 test $p = "-R"; then
12211 if test "$pre_test_object_deps_done" = no
; then
12214 # Internal compiler library paths should come after those
12215 # provided the user. The postdeps already come after the
12216 # user supplied libs so there is no need to process them.
12217 if test -z "$compiler_lib_search_path_FC"; then
12218 compiler_lib_search_path_FC
="${prev}${p}"
12220 compiler_lib_search_path_FC
="${compiler_lib_search_path_FC} ${prev}${p}"
12223 # The "-l" case would never come before the object being
12224 # linked, so don't bother handling this case.
12227 if test -z "$postdeps_FC"; then
12228 postdeps_FC
="${prev}${p}"
12230 postdeps_FC
="${postdeps_FC} ${prev}${p}"
12236 # This assumes that the test object file only shows up
12237 # once in the compiler output.
12238 if test "$p" = "conftest.$objext"; then
12239 pre_test_object_deps_done
=yes
12243 if test "$pre_test_object_deps_done" = no
; then
12244 if test -z "$predep_objects_FC"; then
12245 predep_objects_FC
="$p"
12247 predep_objects_FC
="$predep_objects_FC $p"
12250 if test -z "$postdep_objects_FC"; then
12251 postdep_objects_FC
="$p"
12253 postdep_objects_FC
="$postdep_objects_FC $p"
12258 *) ;; # Ignore the rest.
12266 echo "libtool.m4: error: problem compiling FC test program"
12269 $RM -f confest.
$objext
12271 # PORTME: override above test on systems where it is broken
12274 case " $postdeps_FC " in
12275 *" -lc "*) archive_cmds_need_lc_FC
=no
;;
12277 compiler_lib_search_dirs_FC
=
12278 if test -n "${compiler_lib_search_path_FC}"; then
12279 compiler_lib_search_dirs_FC
=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12312 lt_prog_compiler_wl_FC
=
12313 lt_prog_compiler_pic_FC
=
12314 lt_prog_compiler_static_FC
=
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12317 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12319 if test "$GCC" = yes; then
12320 lt_prog_compiler_wl_FC
='-Wl,'
12321 lt_prog_compiler_static_FC
='-static'
12325 # All AIX code is PIC.
12326 if test "$host_cpu" = ia64
; then
12327 # AIX 5 now supports IA64 processor
12328 lt_prog_compiler_static_FC
='-Bstatic'
12330 lt_prog_compiler_pic_FC
='-fPIC'
12336 # see comment about AmigaOS4 .so support
12337 lt_prog_compiler_pic_FC
='-fPIC'
12340 # FIXME: we need at least 68020 code to build shared libraries, but
12341 # adding the `-m68020' flag to GCC prevents building anything better,
12343 lt_prog_compiler_pic_FC
='-m68020 -resident32 -malways-restore-a4'
12348 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12349 # PIC is the default for these OSes.
12352 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12353 # This hack is so that the source file can tell whether it is being
12354 # built for inclusion in a dll (and should export symbols for example).
12355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12356 # (--disable-auto-import) libraries
12357 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12360 darwin
* | rhapsody
*)
12361 # PIC is the default on this platform
12362 # Common symbols not allowed in MH_DYLIB files
12363 lt_prog_compiler_pic_FC
='-fno-common'
12367 # PIC is the default for Haiku.
12368 # The "-static" flag exists, but is broken.
12369 lt_prog_compiler_static_FC
=
12373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12375 # sets the default TLS model and affects inlining.
12381 lt_prog_compiler_pic_FC
='-fPIC'
12387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12388 # Instead, we relocate shared libraries at runtime.
12392 # Just because we use GCC doesn't mean we suddenly get shared libraries
12393 # on systems that don't support them.
12394 lt_prog_compiler_can_build_shared_FC
=no
12399 # QNX uses GNU C++, but need to define -shared option too, otherwise
12400 # it will coredump.
12401 lt_prog_compiler_pic_FC
='-fPIC -shared'
12405 if test -d /usr
/nec
; then
12406 lt_prog_compiler_pic_FC
=-Kconform_pic
12411 lt_prog_compiler_pic_FC
='-fPIC'
12415 case $cc_basename in
12416 nvcc
*) # Cuda Compiler Driver 2.2
12417 lt_prog_compiler_wl_FC
='-Xlinker '
12418 lt_prog_compiler_pic_FC
='-Xcompiler -fPIC'
12422 # PORTME Check for flag to pass linker flags through the system compiler.
12425 lt_prog_compiler_wl_FC
='-Wl,'
12426 if test "$host_cpu" = ia64
; then
12427 # AIX 5 now supports IA64 processor
12428 lt_prog_compiler_static_FC
='-Bstatic'
12430 lt_prog_compiler_static_FC
='-bnso -bI:/lib/syscalls.exp'
12434 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12435 # This hack is so that the source file can tell whether it is being
12436 # built for inclusion in a dll (and should export symbols for example).
12437 lt_prog_compiler_pic_FC
='-DDLL_EXPORT'
12440 hpux9
* | hpux10
* | hpux11
*)
12441 lt_prog_compiler_wl_FC
='-Wl,'
12442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12443 # not for PA HP-UX.
12449 lt_prog_compiler_pic_FC
='+Z'
12452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12453 lt_prog_compiler_static_FC
='${wl}-a ${wl}archive'
12456 irix5
* | irix6
* | nonstopux
*)
12457 lt_prog_compiler_wl_FC
='-Wl,'
12458 # PIC (with -KPIC) is the default.
12459 lt_prog_compiler_static_FC
='-non_shared'
12462 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12463 case $cc_basename in
12464 # old Intel for x86_64 which still supported -KPIC.
12466 lt_prog_compiler_wl_FC
='-Wl,'
12467 lt_prog_compiler_pic_FC
='-KPIC'
12468 lt_prog_compiler_static_FC
='-static'
12470 # icc used to be incompatible with GCC.
12471 # ICC 10 doesn't accept -KPIC any more.
12473 lt_prog_compiler_wl_FC
='-Wl,'
12474 lt_prog_compiler_pic_FC
='-fPIC'
12475 lt_prog_compiler_static_FC
='-static'
12477 # Lahey Fortran 8.1.
12479 lt_prog_compiler_wl_FC
='-Wl,'
12480 lt_prog_compiler_pic_FC
='--shared'
12481 lt_prog_compiler_static_FC
='--static'
12483 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12484 # Portland Group compilers (*not* the Pentium gcc compiler,
12485 # which looks to be a dead project)
12486 lt_prog_compiler_wl_FC
='-Wl,'
12487 lt_prog_compiler_pic_FC
='-fpic'
12488 lt_prog_compiler_static_FC
='-Bstatic'
12491 lt_prog_compiler_wl_FC
='-Wl,'
12492 # All Alpha code is PIC.
12493 lt_prog_compiler_static_FC
='-non_shared'
12495 xl
* | bgxl
* | bgf
* | mpixl
*)
12496 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12497 lt_prog_compiler_wl_FC
='-Wl,'
12498 lt_prog_compiler_pic_FC
='-qpic'
12499 lt_prog_compiler_static_FC
='-qstaticlink'
12502 case `$CC -V 2>&1 | sed 5q` in
12503 *Sun\ F
* |
*Sun
*Fortran
*)
12504 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12505 lt_prog_compiler_pic_FC
='-KPIC'
12506 lt_prog_compiler_static_FC
='-Bstatic'
12507 lt_prog_compiler_wl_FC
=''
12511 lt_prog_compiler_pic_FC
='-KPIC'
12512 lt_prog_compiler_static_FC
='-Bstatic'
12513 lt_prog_compiler_wl_FC
='-Wl,'
12521 lt_prog_compiler_pic_FC
='-KPIC'
12522 lt_prog_compiler_static_FC
='-Bstatic'
12526 # QNX uses GNU C++, but need to define -shared option too, otherwise
12527 # it will coredump.
12528 lt_prog_compiler_pic_FC
='-fPIC -shared'
12531 osf3
* | osf4
* | osf5
*)
12532 lt_prog_compiler_wl_FC
='-Wl,'
12533 # All OSF/1 code is PIC.
12534 lt_prog_compiler_static_FC
='-non_shared'
12538 lt_prog_compiler_static_FC
='-non_shared'
12542 lt_prog_compiler_pic_FC
='-KPIC'
12543 lt_prog_compiler_static_FC
='-Bstatic'
12544 case $cc_basename in
12545 f77
* | f90
* | f95
*)
12546 lt_prog_compiler_wl_FC
='-Qoption ld ';;
12548 lt_prog_compiler_wl_FC
='-Wl,';;
12553 lt_prog_compiler_wl_FC
='-Qoption ld '
12554 lt_prog_compiler_pic_FC
='-PIC'
12555 lt_prog_compiler_static_FC
='-Bstatic'
12558 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12559 lt_prog_compiler_wl_FC
='-Wl,'
12560 lt_prog_compiler_pic_FC
='-KPIC'
12561 lt_prog_compiler_static_FC
='-Bstatic'
12565 if test -d /usr
/nec
;then
12566 lt_prog_compiler_pic_FC
='-Kconform_pic'
12567 lt_prog_compiler_static_FC
='-Bstatic'
12571 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12572 lt_prog_compiler_wl_FC
='-Wl,'
12573 lt_prog_compiler_pic_FC
='-KPIC'
12574 lt_prog_compiler_static_FC
='-Bstatic'
12578 lt_prog_compiler_wl_FC
='-Wl,'
12579 lt_prog_compiler_can_build_shared_FC
=no
12583 lt_prog_compiler_pic_FC
='-pic'
12584 lt_prog_compiler_static_FC
='-Bstatic'
12588 lt_prog_compiler_can_build_shared_FC
=no
12594 # For platforms which do not support PIC, -DPIC is meaningless:
12596 lt_prog_compiler_pic_FC
=
12599 lt_prog_compiler_pic_FC
="$lt_prog_compiler_pic_FC"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12603 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12608 # Check to make sure the PIC flag actually works.
12610 if test -n "$lt_prog_compiler_pic_FC"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12612 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12613 if ${lt_cv_prog_compiler_pic_works_FC+:} false
; then :
12614 $as_echo_n "(cached) " >&6
12616 lt_cv_prog_compiler_pic_works_FC
=no
12617 ac_outfile
=conftest.
$ac_objext
12618 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12619 lt_compiler_flag
="$lt_prog_compiler_pic_FC"
12620 # Insert the option either (1) after the last *FLAGS variable, or
12621 # (2) before a word containing "conftest.", or (3) at the end.
12622 # Note that $ac_compile itself does not contain backslashes and begins
12623 # with a dollar sign (not a hyphen), so the echo should work correctly.
12624 # The option is referenced via a variable to avoid confusing sed.
12625 lt_compile
=`echo "$ac_compile" | $SED \
12626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12628 -e 's:$: $lt_compiler_flag:'`
12629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12630 (eval "$lt_compile" 2>conftest.err
)
12632 cat conftest.err
>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 if (exit $ac_status) && test -s "$ac_outfile"; then
12635 # The compiler can only warn and ignore the option if not recognized
12636 # So say no if there are warnings other than the usual output.
12637 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12638 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12639 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12640 lt_cv_prog_compiler_pic_works_FC
=yes
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12647 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12649 if test x
"$lt_cv_prog_compiler_pic_works_FC" = xyes
; then
12650 case $lt_prog_compiler_pic_FC in
12652 *) lt_prog_compiler_pic_FC
=" $lt_prog_compiler_pic_FC" ;;
12655 lt_prog_compiler_pic_FC
=
12656 lt_prog_compiler_can_build_shared_FC
=no
12664 # Check to make sure the static flag actually works.
12666 wl
=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_FC\"
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12668 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12669 if ${lt_cv_prog_compiler_static_works_FC+:} false
; then :
12670 $as_echo_n "(cached) " >&6
12672 lt_cv_prog_compiler_static_works_FC
=no
12673 save_LDFLAGS
="$LDFLAGS"
12674 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12675 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12676 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12677 # The linker can only warn and ignore the option if not recognized
12678 # So say no if there are warnings
12679 if test -s conftest.err
; then
12680 # Append any errors to the config.log.
12681 cat conftest.err
1>&5
12682 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12683 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12684 if diff conftest.exp conftest.er2
>/dev
/null
; then
12685 lt_cv_prog_compiler_static_works_FC
=yes
12688 lt_cv_prog_compiler_static_works_FC
=yes
12692 LDFLAGS
="$save_LDFLAGS"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12696 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12698 if test x
"$lt_cv_prog_compiler_static_works_FC" = xyes
; then
12701 lt_prog_compiler_static_FC
=
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12709 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12710 $as_echo_n "(cached) " >&6
12712 lt_cv_prog_compiler_c_o_FC
=no
12713 $RM -r conftest
2>/dev
/null
12717 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12719 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12720 # Insert the option either (1) after the last *FLAGS variable, or
12721 # (2) before a word containing "conftest.", or (3) at the end.
12722 # Note that $ac_compile itself does not contain backslashes and begins
12723 # with a dollar sign (not a hyphen), so the echo should work correctly.
12724 lt_compile
=`echo "$ac_compile" | $SED \
12725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12727 -e 's:$: $lt_compiler_flag:'`
12728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12729 (eval "$lt_compile" 2>out
/conftest.err
)
12731 cat out
/conftest.err
>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12735 # The compiler can only warn and ignore the option if not recognized
12736 # So say no if there are warnings
12737 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12738 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12739 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12740 lt_cv_prog_compiler_c_o_FC
=yes
12745 # SGI C++ compiler will create directory out/ii_files/ for
12746 # template instantiation
12747 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12748 $RM out
/* && rmdir out
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12755 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12761 if ${lt_cv_prog_compiler_c_o_FC+:} false
; then :
12762 $as_echo_n "(cached) " >&6
12764 lt_cv_prog_compiler_c_o_FC
=no
12765 $RM -r conftest
2>/dev
/null
12769 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12771 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12772 # Insert the option either (1) after the last *FLAGS variable, or
12773 # (2) before a word containing "conftest.", or (3) at the end.
12774 # Note that $ac_compile itself does not contain backslashes and begins
12775 # with a dollar sign (not a hyphen), so the echo should work correctly.
12776 lt_compile
=`echo "$ac_compile" | $SED \
12777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12779 -e 's:$: $lt_compiler_flag:'`
12780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12781 (eval "$lt_compile" 2>out
/conftest.err
)
12783 cat out
/conftest.err
>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12787 # The compiler can only warn and ignore the option if not recognized
12788 # So say no if there are warnings
12789 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12790 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12791 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12792 lt_cv_prog_compiler_c_o_FC
=yes
12797 # SGI C++ compiler will create directory out/ii_files/ for
12798 # template instantiation
12799 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12800 $RM out
/* && rmdir out
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12807 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12812 hard_links
="nottested"
12813 if test "$lt_cv_prog_compiler_c_o_FC" = no
&& test "$need_locks" != no
; then
12814 # do not overwrite the value of need_locks provided by the user
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12816 $as_echo_n "checking if we can lock with hard links... " >&6; }
12819 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12821 ln conftest.a conftest.b
2>&5 || hard_links
=no
12822 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12824 $as_echo "$hard_links" >&6; }
12825 if test "$hard_links" = no
; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12827 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12837 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12840 allow_undefined_flag_FC
=
12841 always_export_symbols_FC
=no
12843 archive_expsym_cmds_FC
=
12844 compiler_needs_object_FC
=no
12845 enable_shared_with_static_runtimes_FC
=no
12846 export_dynamic_flag_spec_FC
=
12847 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12848 hardcode_automatic_FC
=no
12849 hardcode_direct_FC
=no
12850 hardcode_direct_absolute_FC
=no
12851 hardcode_libdir_flag_spec_FC
=
12852 hardcode_libdir_flag_spec_ld_FC
=
12853 hardcode_libdir_separator_FC
=
12854 hardcode_minus_L_FC
=no
12855 hardcode_shlibpath_var_FC
=unsupported
12856 inherit_rpath_FC
=no
12857 link_all_deplibs_FC
=unknown
12859 module_expsym_cmds_FC
=
12860 old_archive_from_new_cmds_FC
=
12861 old_archive_from_expsyms_cmds_FC
=
12862 thread_safe_flag_spec_FC
=
12863 whole_archive_flag_spec_FC
=
12864 # include_expsyms should be a list of space-separated symbols to be *always*
12865 # included in the symbol list
12866 include_expsyms_FC
=
12867 # exclude_expsyms can be an extended regexp of symbols to exclude
12868 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12869 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12870 # as well as any symbol that contains `d'.
12871 exclude_expsyms_FC
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12872 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12873 # platforms (ab)use it in PIC code, but their linkers get confused if
12874 # the symbol is explicitly referenced. Since portable code cannot
12875 # rely on this symbol name, it's probably fine to never include it in
12876 # preloaded symbol tables.
12877 # Exclude shared library initialization/finalization symbols.
12878 extract_expsyms_cmds
=
12881 cygwin
* | mingw
* | pw32
* | cegcc
*)
12882 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12883 # When not using gcc, we currently assume that we are using
12884 # Microsoft Visual C++.
12885 if test "$GCC" != yes; then
12890 # we just hope/assume this is gcc and not c89 (= MSVC++)
12900 # On some targets, GNU ld is compatible enough with the native linker
12901 # that we're better off using the native interface for both.
12902 lt_use_gnu_ld_interface
=no
12903 if test "$with_gnu_ld" = yes; then
12906 # The AIX port of GNU ld has always aspired to compatibility
12907 # with the native linker. However, as the warning in the GNU ld
12908 # block says, versions before 2.19.5* couldn't really create working
12909 # shared libraries, regardless of the interface used.
12910 case `$LD -v 2>&1` in
12911 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12912 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12913 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12915 lt_use_gnu_ld_interface
=yes
12920 lt_use_gnu_ld_interface
=yes
12925 if test "$lt_use_gnu_ld_interface" = yes; then
12926 # If archive_cmds runs LD, not CC, wlarc should be empty
12929 # Set some defaults for GNU ld with shared library support. These
12930 # are reset later if shared libraries are not supported. Putting them
12931 # here allows them to be overridden if necessary.
12932 runpath_var
=LD_RUN_PATH
12933 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
12934 export_dynamic_flag_spec_FC
='${wl}--export-dynamic'
12935 # ancient GNU ld didn't support --whole-archive et. al.
12936 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12937 whole_archive_flag_spec_FC
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12939 whole_archive_flag_spec_FC
=
12941 supports_anon_versioning
=no
12942 case `$LD -v 2>&1` in
12943 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12944 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12945 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12946 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12947 *\
2.11.
*) ;; # other 2.11 versions
12948 *) supports_anon_versioning
=yes ;;
12951 # See if GNU ld supports shared libraries.
12954 # On AIX/PPC, the GNU linker is very broken
12955 if test "$host_cpu" != ia64
; then
12959 *** Warning: the GNU linker, at least up to release 2.19, is reported
12960 *** to be unable to reliably create shared libraries on AIX.
12961 *** Therefore, libtool is disabling shared libraries support. If you
12962 *** really care for shared libraries, you may want to install binutils
12963 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12964 *** You will then need to restart the configuration process.
12973 # see comment about AmigaOS4 .so support
12974 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 archive_expsym_cmds_FC
=''
12978 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)'
12979 hardcode_libdir_flag_spec_FC
='-L$libdir'
12980 hardcode_minus_L_FC
=yes
12986 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12987 allow_undefined_flag_FC
=unsupported
12988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12989 # support --undefined. This deserves some investigation. FIXME
12990 archive_cmds_FC
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 cygwin
* | mingw
* | pw32
* | cegcc
*)
12997 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12998 # as there is no search path for DLLs.
12999 hardcode_libdir_flag_spec_FC
='-L$libdir'
13000 export_dynamic_flag_spec_FC
='${wl}--export-all-symbols'
13001 allow_undefined_flag_FC
=unsupported
13002 always_export_symbols_FC
=no
13003 enable_shared_with_static_runtimes_FC
=yes
13004 export_symbols_cmds_FC
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13006 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13007 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13008 # If the export-symbols file already is a .def file (1st line
13009 # is EXPORTS), use it as is; otherwise, prepend...
13010 archive_expsym_cmds_FC
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13011 cp $export_symbols $output_objdir/$soname.def;
13013 echo EXPORTS > $output_objdir/$soname.def;
13014 cat $export_symbols >> $output_objdir/$soname.def;
13016 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13023 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13024 link_all_deplibs_FC
=yes
13028 hardcode_direct_FC
=no
13029 hardcode_shlibpath_var_FC
=no
13030 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13031 export_dynamic_flag_spec_FC
='${wl}-E'
13032 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13033 # Instead, shared libraries are loaded at an image base (0x10000000 by
13034 # default) and relocated if they conflict, which is a slow very memory
13035 # consuming and fragmenting process. To avoid this, we pick a random,
13036 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13037 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13038 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'
13039 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'
13042 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13044 if test "$host_os" = linux-dietlibc
; then
13045 case $cc_basename in
13046 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
13049 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
13050 && test "$tmp_diet" = no
13052 tmp_addflag
=' $pic_flag'
13053 tmp_sharedflag
='-shared'
13054 case $cc_basename,$host_cpu in
13055 pgcc
*) # Portland Group C compiler
13056 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'
13057 tmp_addflag
=' $pic_flag'
13059 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
13060 # Portland Group f77 and f90 compilers
13061 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'
13062 tmp_addflag
=' $pic_flag -Mnomain' ;;
13063 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13064 tmp_addflag
=' -i_dynamic' ;;
13065 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13066 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13067 ifc
* | ifort
*) # Intel Fortran compiler
13068 tmp_addflag
=' -nofor_main' ;;
13069 lf95
*) # Lahey Fortran 8.1
13070 whole_archive_flag_spec_FC
=
13071 tmp_sharedflag
='--shared' ;;
13072 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13073 tmp_sharedflag
='-qmkshrobj'
13075 nvcc
*) # Cuda Compiler Driver 2.2
13076 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'
13077 compiler_needs_object_FC
=yes
13080 case `$CC -V 2>&1 | sed 5q` in
13081 *Sun\ C
*) # Sun C 5.9
13082 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'
13083 compiler_needs_object_FC
=yes
13084 tmp_sharedflag
='-G' ;;
13085 *Sun\ F
*) # Sun Fortran 8.3
13086 tmp_sharedflag
='-G' ;;
13088 archive_cmds_FC
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090 if test "x$supports_anon_versioning" = xyes
; then
13091 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13093 echo "local: *; };" >> $output_objdir/$libname.ver~
13094 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13097 case $cc_basename in
13098 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13099 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13100 whole_archive_flag_spec_FC
='--whole-archive$convenience --no-whole-archive'
13101 hardcode_libdir_flag_spec_FC
=
13102 hardcode_libdir_flag_spec_ld_FC
='-rpath $libdir'
13103 archive_cmds_FC
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13104 if test "x$supports_anon_versioning" = xyes
; then
13105 archive_expsym_cmds_FC
='echo "{ global:" > $output_objdir/$libname.ver~
13106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13107 echo "local: *; };" >> $output_objdir/$libname.ver~
13108 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13118 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13119 archive_cmds_FC
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13122 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13123 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13128 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13133 *** create shared libraries on Solaris systems. Therefore, libtool
13134 *** is disabling shared libraries support. We urge you to upgrade GNU
13135 *** binutils to release 2.9.1 or newer. Another option is to modify
13136 *** your PATH or compiler configuration so that the native linker is
13137 *** used, and then restart.
13140 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13141 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13142 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13148 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13149 case `$LD -v 2>&1` in
13150 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13154 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13155 *** reliably create shared libraries on SCO systems. Therefore, libtool
13156 *** is disabling shared libraries support. We urge you to upgrade GNU
13157 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13158 *** your PATH or compiler configuration so that the native linker is
13159 *** used, and then restart.
13164 # For security reasons, it is highly recommended that you always
13165 # use absolute paths for naming shared libraries, and exclude the
13166 # DT_RUNPATH tag from executables and libraries. But doing so
13167 # requires that you compile everything twice, which is a pain.
13168 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13169 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13170 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13180 archive_cmds_FC
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13182 hardcode_direct_FC
=yes
13183 hardcode_shlibpath_var_FC
=no
13187 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13188 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 archive_expsym_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13196 if test "$ld_shlibs_FC" = no
; then
13198 hardcode_libdir_flag_spec_FC
=
13199 export_dynamic_flag_spec_FC
=
13200 whole_archive_flag_spec_FC
=
13203 # PORTME fill in a description of your system's linker (not GNU ld)
13206 allow_undefined_flag_FC
=unsupported
13207 always_export_symbols_FC
=yes
13208 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'
13209 # Note: this linker hardcodes the directories in LIBPATH if there
13210 # are no directories specified by -L.
13211 hardcode_minus_L_FC
=yes
13212 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13213 # Neither direct hardcoding nor static linking is supported with a
13215 hardcode_direct_FC
=unsupported
13220 if test "$host_cpu" = ia64
; then
13221 # On IA64, the linker does run time linking by default, so we don't
13222 # have to do anything special.
13223 aix_use_runtimelinking
=no
13224 exp_sym_flag
='-Bexport'
13227 # If we're using GNU nm, then we don't want the "-C" option.
13228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13229 # Also, AIX nm treats weak defined symbols like other global
13230 # defined symbols, whereas GNU nm marks them as "W".
13231 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13232 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'
13234 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'
13236 aix_use_runtimelinking
=no
13238 # Test if we are trying to use run time linking or normal
13239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240 # need to do runtime linking.
13241 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13242 for ld_flag
in $LDFLAGS; do
13243 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13244 aix_use_runtimelinking
=yes
13251 exp_sym_flag
='-bexport'
13252 no_entry_flag
='-bnoentry'
13255 # When large executables or shared objects are built, AIX ld can
13256 # have problems creating the table of contents. If linking a library
13257 # or program results in "error TOC overflow" add -mminimal-toc to
13258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13262 hardcode_direct_FC
=yes
13263 hardcode_direct_absolute_FC
=yes
13264 hardcode_libdir_separator_FC
=':'
13265 link_all_deplibs_FC
=yes
13266 file_list_spec_FC
='${wl}-f,'
13268 if test "$GCC" = yes; then
13269 case $host_os in aix4.
[012]|aix4.
[012].
*)
13270 # We only want to do this on AIX 4.2 and lower, the check
13271 # below for broken collect2 doesn't work under 4.3+
13272 collect2name
=`${CC} -print-prog-name=collect2`
13273 if test -f "$collect2name" &&
13274 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13276 # We have reworked collect2
13279 # We have old collect2
13280 hardcode_direct_FC
=unsupported
13281 # It fails to find uninstalled libraries when the uninstalled
13282 # path is not listed in the libpath. Setting hardcode_minus_L
13283 # to unsupported forces relinking
13284 hardcode_minus_L_FC
=yes
13285 hardcode_libdir_flag_spec_FC
='-L$libdir'
13286 hardcode_libdir_separator_FC
=
13290 shared_flag
='-shared'
13291 if test "$aix_use_runtimelinking" = yes; then
13292 shared_flag
="$shared_flag "'${wl}-G'
13296 if test "$host_cpu" = ia64
; then
13297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13298 # chokes on -Wl,-G. The following line is correct:
13301 if test "$aix_use_runtimelinking" = yes; then
13302 shared_flag
='${wl}-G'
13304 shared_flag
='${wl}-bM:SRE'
13309 export_dynamic_flag_spec_FC
='${wl}-bexpall'
13310 # It seems that -bexpall does not export symbols beginning with
13311 # underscore (_), so it is better to generate a list of symbols to export.
13312 always_export_symbols_FC
=yes
13313 if test "$aix_use_runtimelinking" = yes; then
13314 # Warning - without using the other runtime loading flags (-brtl),
13315 # -berok will link without error, but may produce a broken library.
13316 allow_undefined_flag_FC
='-berok'
13317 # Determine the default libpath from the value encoded in an
13318 # empty executable.
13319 cat > conftest.
$ac_ext <<_ACEOF
13324 if ac_fn_fc_try_link
"$LINENO"; then :
13326 lt_aix_libpath_sed
='
13327 /Import File Strings/,/^$/ {
13333 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13334 # Check for a 64-bit object if we didn't find anything.
13335 if test -z "$aix_libpath"; then
13336 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13339 rm -f core conftest.err conftest.
$ac_objext \
13340 conftest
$ac_exeext conftest.
$ac_ext
13341 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13343 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13344 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"
13346 if test "$host_cpu" = ia64
; then
13347 hardcode_libdir_flag_spec_FC
='${wl}-R $libdir:/usr/lib:/lib'
13348 allow_undefined_flag_FC
="-z nodefs"
13349 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"
13351 # Determine the default libpath from the value encoded in an
13352 # empty executable.
13353 cat > conftest.
$ac_ext <<_ACEOF
13358 if ac_fn_fc_try_link
"$LINENO"; then :
13360 lt_aix_libpath_sed
='
13361 /Import File Strings/,/^$/ {
13367 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13368 # Check for a 64-bit object if we didn't find anything.
13369 if test -z "$aix_libpath"; then
13370 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13373 rm -f core conftest.err conftest.
$ac_objext \
13374 conftest
$ac_exeext conftest.
$ac_ext
13375 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13377 hardcode_libdir_flag_spec_FC
='${wl}-blibpath:$libdir:'"$aix_libpath"
13378 # Warning - without using the other run time loading flags,
13379 # -berok will link without error, but may produce a broken library.
13380 no_undefined_flag_FC
=' ${wl}-bernotok'
13381 allow_undefined_flag_FC
=' ${wl}-berok'
13382 if test "$with_gnu_ld" = yes; then
13383 # We only use this code for GNU lds that support --whole-archive.
13384 whole_archive_flag_spec_FC
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13386 # Exported symbols can be pulled into shared objects from archives
13387 whole_archive_flag_spec_FC
='$convenience'
13389 archive_cmds_need_lc_FC
=yes
13390 # This is similar to how AIX traditionally builds its shared libraries.
13391 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'
13399 # see comment about AmigaOS4 .so support
13400 archive_cmds_FC
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 archive_expsym_cmds_FC
=''
13404 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)'
13405 hardcode_libdir_flag_spec_FC
='-L$libdir'
13406 hardcode_minus_L_FC
=yes
13412 export_dynamic_flag_spec_FC
=-rdynamic
13415 cygwin
* | mingw
* | pw32
* | cegcc
*)
13416 # When not using gcc, we currently assume that we are using
13417 # Microsoft Visual C++.
13418 # hardcode_libdir_flag_spec is actually meaningless, as there is
13419 # no search path for DLLs.
13420 hardcode_libdir_flag_spec_FC
=' '
13421 allow_undefined_flag_FC
=unsupported
13422 # Tell ltmain to make .lib files, not .a files.
13424 # Tell ltmain to make .dll files, not .so files.
13426 # FIXME: Setting linknames here is a bad hack.
13427 archive_cmds_FC
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13428 # The linker will automatically build a .lib file if we build a DLL.
13429 old_archive_from_new_cmds_FC
='true'
13430 # FIXME: Should let the user specify the lib program.
13431 old_archive_cmds_FC
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13432 fix_srcfile_path_FC
='`cygpath -w "$srcfile"`'
13433 enable_shared_with_static_runtimes_FC
=yes
13436 darwin
* | rhapsody
*)
13439 archive_cmds_need_lc_FC
=no
13440 hardcode_direct_FC
=no
13441 hardcode_automatic_FC
=yes
13442 hardcode_shlibpath_var_FC
=unsupported
13443 if test "$lt_cv_ld_force_load" = "yes"; then
13444 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\"`'
13446 whole_archive_flag_spec_FC
=''
13448 link_all_deplibs_FC
=yes
13449 allow_undefined_flag_FC
="$_lt_dar_allow_undefined"
13450 case $cc_basename in
13451 ifort
*) _lt_dar_can_shared
=yes ;;
13452 *) _lt_dar_can_shared
=$GCC ;;
13454 if test "$_lt_dar_can_shared" = "yes"; then
13455 output_verbose_link_cmd
=func_echo_all
13456 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}"
13457 module_cmds_FC
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13458 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}"
13459 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}"
13468 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_libdir_flag_spec_FC
='-L$libdir'
13470 hardcode_shlibpath_var_FC
=no
13473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13474 # support. Future versions do this automatically, but an explicit c++rt0.o
13475 # does not break anything, and helps significantly (at the cost of a little
13478 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13479 hardcode_libdir_flag_spec_FC
='-R$libdir'
13480 hardcode_direct_FC
=yes
13481 hardcode_shlibpath_var_FC
=no
13484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13486 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct_FC
=yes
13488 hardcode_minus_L_FC
=yes
13489 hardcode_shlibpath_var_FC
=no
13492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13493 freebsd
* | dragonfly
*)
13494 archive_cmds_FC
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13495 hardcode_libdir_flag_spec_FC
='-R$libdir'
13496 hardcode_direct_FC
=yes
13497 hardcode_shlibpath_var_FC
=no
13501 if test "$GCC" = yes; then
13502 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'
13504 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'
13506 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13507 hardcode_libdir_separator_FC
=:
13508 hardcode_direct_FC
=yes
13510 # hardcode_minus_L: Not really in the search PATH,
13511 # but as the default location of the library.
13512 hardcode_minus_L_FC
=yes
13513 export_dynamic_flag_spec_FC
='${wl}-E'
13517 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13518 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_cmds_FC
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13522 if test "$with_gnu_ld" = no
; then
13523 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13524 hardcode_libdir_flag_spec_ld_FC
='+b $libdir'
13525 hardcode_libdir_separator_FC
=:
13526 hardcode_direct_FC
=yes
13527 hardcode_direct_absolute_FC
=yes
13528 export_dynamic_flag_spec_FC
='${wl}-E'
13529 # hardcode_minus_L: Not really in the search PATH,
13530 # but as the default location of the library.
13531 hardcode_minus_L_FC
=yes
13536 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13539 archive_cmds_FC
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13542 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13545 archive_cmds_FC
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13557 archive_cmds_FC
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13561 if test "$with_gnu_ld" = no
; then
13562 hardcode_libdir_flag_spec_FC
='${wl}+b ${wl}$libdir'
13563 hardcode_libdir_separator_FC
=:
13567 hardcode_direct_FC
=no
13568 hardcode_shlibpath_var_FC
=no
13571 hardcode_direct_FC
=yes
13572 hardcode_direct_absolute_FC
=yes
13573 export_dynamic_flag_spec_FC
='${wl}-E'
13575 # hardcode_minus_L: Not really in the search PATH,
13576 # but as the default location of the library.
13577 hardcode_minus_L_FC
=yes
13583 irix5
* | irix6
* | nonstopux
*)
13584 if test "$GCC" = yes; then
13585 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'
13586 # Try to use the -exported_symbol ld option, if it does not
13587 # work, assume that -exports_file does not work either and
13588 # implicitly export all symbols.
13589 save_LDFLAGS
="$LDFLAGS"
13590 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13591 cat > conftest.
$ac_ext <<_ACEOF
13594 if ac_fn_fc_try_link
"$LINENO"; then :
13595 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'
13598 rm -f core conftest.err conftest.
$ac_objext \
13599 conftest
$ac_exeext conftest.
$ac_ext
13600 LDFLAGS
="$save_LDFLAGS"
13602 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'
13603 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'
13605 archive_cmds_need_lc_FC
='no'
13606 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13607 hardcode_libdir_separator_FC
=:
13608 inherit_rpath_FC
=yes
13609 link_all_deplibs_FC
=yes
13613 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13614 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13616 archive_cmds_FC
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13618 hardcode_libdir_flag_spec_FC
='-R$libdir'
13619 hardcode_direct_FC
=yes
13620 hardcode_shlibpath_var_FC
=no
13624 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_direct_FC
=yes
13626 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13627 hardcode_libdir_separator_FC
=:
13628 hardcode_shlibpath_var_FC
=no
13635 if test -f /usr
/libexec
/ld.so
; then
13636 hardcode_direct_FC
=yes
13637 hardcode_shlibpath_var_FC
=no
13638 hardcode_direct_absolute_FC
=yes
13639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13640 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13641 archive_expsym_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13642 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13643 export_dynamic_flag_spec_FC
='${wl}-E'
13646 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13647 archive_cmds_FC
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13648 hardcode_libdir_flag_spec_FC
='-R$libdir'
13651 archive_cmds_FC
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13652 hardcode_libdir_flag_spec_FC
='${wl}-rpath,$libdir'
13662 hardcode_libdir_flag_spec_FC
='-L$libdir'
13663 hardcode_minus_L_FC
=yes
13664 allow_undefined_flag_FC
=unsupported
13665 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'
13666 old_archive_from_new_cmds_FC
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13670 if test "$GCC" = yes; then
13671 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13672 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'
13674 allow_undefined_flag_FC
=' -expect_unresolved \*'
13675 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'
13677 archive_cmds_need_lc_FC
='no'
13678 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13679 hardcode_libdir_separator_FC
=:
13682 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13683 if test "$GCC" = yes; then
13684 allow_undefined_flag_FC
=' ${wl}-expect_unresolved ${wl}\*'
13685 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'
13686 hardcode_libdir_flag_spec_FC
='${wl}-rpath ${wl}$libdir'
13688 allow_undefined_flag_FC
=' -expect_unresolved \*'
13689 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'
13690 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~
13691 $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'
13693 # Both c and cxx compiler support -rpath directly
13694 hardcode_libdir_flag_spec_FC
='-rpath $libdir'
13696 archive_cmds_need_lc_FC
='no'
13697 hardcode_libdir_separator_FC
=:
13701 no_undefined_flag_FC
=' -z defs'
13702 if test "$GCC" = yes; then
13704 archive_cmds_FC
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13706 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13708 case `$CC -V 2>&1` in
13711 archive_cmds_FC
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13712 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13717 archive_cmds_FC
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13718 archive_expsym_cmds_FC
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13719 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13723 hardcode_libdir_flag_spec_FC
='-R$libdir'
13724 hardcode_shlibpath_var_FC
=no
13726 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13728 # The compiler driver will combine and reorder linker options,
13729 # but understands `-z linker_flag'. GCC discards it without `$wl',
13730 # but is careful enough not to reorder.
13731 # Supported since Solaris 2.6 (maybe 2.5.1?)
13732 if test "$GCC" = yes; then
13733 whole_archive_flag_spec_FC
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13735 whole_archive_flag_spec_FC
='-z allextract$convenience -z defaultextract'
13739 link_all_deplibs_FC
=yes
13743 if test "x$host_vendor" = xsequent
; then
13744 # Use $CC to link under sequent, because it throws in some extra .o
13745 # files that make .init and .fini sections work.
13746 archive_cmds_FC
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13748 archive_cmds_FC
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13750 hardcode_libdir_flag_spec_FC
='-L$libdir'
13751 hardcode_direct_FC
=yes
13752 hardcode_minus_L_FC
=yes
13753 hardcode_shlibpath_var_FC
=no
13757 case $host_vendor in
13759 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13760 hardcode_direct_FC
=yes # is this really true???
13763 ## LD is ld it makes a PLAMLIB
13764 ## CC just makes a GrossModule.
13765 archive_cmds_FC
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13766 reload_cmds_FC
='$CC -r -o $output$reload_objs'
13767 hardcode_direct_FC
=no
13770 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_direct_FC
=no
#Motorola manual says yes, but my tests say they lie
13774 runpath_var
='LD_RUN_PATH'
13775 hardcode_shlibpath_var_FC
=no
13779 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_shlibpath_var_FC
=no
13781 export_dynamic_flag_spec_FC
='-Bexport'
13785 if test -d /usr
/nec
; then
13786 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_shlibpath_var_FC
=no
13788 runpath_var
=LD_RUN_PATH
13789 hardcode_runpath_var
=yes
13794 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13795 no_undefined_flag_FC
='${wl}-z,text'
13796 archive_cmds_need_lc_FC
=no
13797 hardcode_shlibpath_var_FC
=no
13798 runpath_var
='LD_RUN_PATH'
13800 if test "$GCC" = yes; then
13801 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 sysv5
* | sco3.2v5
* | sco5v6
*)
13810 # Note: We can NOT use -z defs as we might desire, because we do not
13811 # link with -lc, and that would cause any symbols used from libc to
13812 # always be unresolved, which means just about no library would
13813 # ever link correctly. If we're not using GNU ld we use -z text
13814 # though, which does catch some bad symbols but isn't as heavy-handed
13816 no_undefined_flag_FC
='${wl}-z,text'
13817 allow_undefined_flag_FC
='${wl}-z,nodefs'
13818 archive_cmds_need_lc_FC
=no
13819 hardcode_shlibpath_var_FC
=no
13820 hardcode_libdir_flag_spec_FC
='${wl}-R,$libdir'
13821 hardcode_libdir_separator_FC
=':'
13822 link_all_deplibs_FC
=yes
13823 export_dynamic_flag_spec_FC
='${wl}-Bexport'
13824 runpath_var
='LD_RUN_PATH'
13826 if test "$GCC" = yes; then
13827 archive_cmds_FC
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds_FC
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_cmds_FC
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 archive_expsym_cmds_FC
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 archive_cmds_FC
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837 hardcode_libdir_flag_spec_FC
='-L$libdir'
13838 hardcode_shlibpath_var_FC
=no
13846 if test x
$host_vendor = xsni
; then
13848 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13849 export_dynamic_flag_spec_FC
='${wl}-Blargedynsym'
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13856 $as_echo "$ld_shlibs_FC" >&6; }
13857 test "$ld_shlibs_FC" = no
&& can_build_shared
=no
13859 with_gnu_ld_FC
=$with_gnu_ld
13867 # Do we need to explicitly link libc?
13869 case "x$archive_cmds_need_lc_FC" in
13871 # Assume -lc should be added
13872 archive_cmds_need_lc_FC
=yes
13874 if test "$enable_shared" = yes && test "$GCC" = yes; then
13875 case $archive_cmds_FC in
13877 # FIXME: we may have to deal with multi-command sequences.
13880 # Test whether the compiler implicitly links with -lc since on some
13881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13882 # to ld, don't add -lc before -lgcc.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13884 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13885 if ${lt_cv_archive_cmds_need_lc_FC+:} false
; then :
13886 $as_echo_n "(cached) " >&6
13889 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13892 (eval $ac_compile) 2>&5
13894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; } 2>conftest.err
; then
13898 libobjs
=conftest.
$ac_objext
13900 wl
=$lt_prog_compiler_wl_FC
13901 pic_flag
=$lt_prog_compiler_pic_FC
13907 lt_save_allow_undefined_flag
=$allow_undefined_flag_FC
13908 allow_undefined_flag_FC
=
13909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13910 (eval $archive_cmds_FC 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }
13915 lt_cv_archive_cmds_need_lc_FC
=no
13917 lt_cv_archive_cmds_need_lc_FC
=yes
13919 allow_undefined_flag_FC
=$lt_save_allow_undefined_flag
13921 cat conftest.err
1>&5
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13927 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13928 archive_cmds_need_lc_FC
=$lt_cv_archive_cmds_need_lc_FC
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14001 library_names_spec
=
14002 libname_spec
='lib$name'
14006 postuninstall_cmds
=
14010 shlibpath_overrides_runpath
=unknown
14012 dynamic_linker
="$host_os ld.so"
14013 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14014 need_lib_prefix
=unknown
14015 hardcode_into_libs
=no
14017 # when you set need_version to no, make sure it does not cause -set_version
14018 # flags to be left without arguments
14019 need_version
=unknown
14024 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14025 shlibpath_var
=LIBPATH
14027 # AIX 3 has no versioning support, so we append a major version to the name.
14028 soname_spec
='${libname}${release}${shared_ext}$major'
14035 hardcode_into_libs
=yes
14036 if test "$host_cpu" = ia64
; then
14037 # AIX 5 supports IA64
14038 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14039 shlibpath_var
=LD_LIBRARY_PATH
14041 # With GCC up to 2.95.x, collect2 would create an import file
14042 # for dependence libraries. The import file would start with
14043 # the line `#! .'. This would cause the generated library to
14044 # depend on `.', always an invalid library. This was fixed in
14045 # development snapshots of GCC prior to 3.0.
14047 aix4 | aix4.
[01] | aix4.
[01].
*)
14048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14050 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14053 can_build_shared
=no
14057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14058 # soname into executable. Probably we can add versioning support to
14059 # collect2, so additional links can be useful in future.
14060 if test "$aix_use_runtimelinking" = yes; then
14061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14062 # instead of lib<name>.a to let people know that these are not
14063 # typical AIX shared libraries.
14064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 # We preserve .a as extension for shared libraries through AIX4.2
14067 # and later when we are not doing run time linking.
14068 library_names_spec
='${libname}${release}.a $libname.a'
14069 soname_spec
='${libname}${release}${shared_ext}$major'
14071 shlibpath_var
=LIBPATH
14078 # Since July 2007 AmigaOS4 officially supports .so libraries.
14079 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 library_names_spec
='$libname.ixlibrary $libname.a'
14084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14085 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'
14091 library_names_spec
='${libname}${shared_ext}'
14092 dynamic_linker
="$host_os ld.so"
14093 shlibpath_var
=LIBRARY_PATH
14099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 soname_spec
='${libname}${release}${shared_ext}$major'
14101 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14102 shlibpath_var
=LD_LIBRARY_PATH
14103 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14104 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14105 # the default ld.so.conf also contains /usr/contrib/lib and
14106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14107 # libtool to hard-code these into programs
14110 cygwin
* | mingw
* | pw32
* | cegcc
*)
14111 version_type
=windows
14116 case $GCC,$host_os in
14117 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14118 library_names_spec
='$libname.dll.a'
14119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14120 postinstall_cmds
='base_file=`basename \${file}`~
14121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14122 dldir=$destdir/`dirname \$dlpath`~
14123 test -d \$dldir || mkdir -p \$dldir~
14124 $install_prog $dir/$dlname \$dldir/$dlname~
14125 chmod a+x \$dldir/$dlname~
14126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14129 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14130 dlpath=$dir/\$dldll~
14132 shlibpath_overrides_runpath
=yes
14136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14137 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14141 # MinGW DLLs use traditional 'lib' prefix
14142 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14145 # pw32 DLLs use 'pw' prefix rather than 'lib'
14146 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14155 dynamic_linker
='Win32 ld.exe'
14156 # FIXME: first we should search . and the directory the executable is in
14160 darwin
* | rhapsody
*)
14161 dynamic_linker
="$host_os dyld"
14162 version_type
=darwin
14165 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14166 soname_spec
='${libname}${release}${major}$shared_ext'
14167 shlibpath_overrides_runpath
=yes
14168 shlibpath_var
=DYLD_LIBRARY_PATH
14169 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14171 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14179 soname_spec
='${libname}${release}${shared_ext}$major'
14180 shlibpath_var
=LD_LIBRARY_PATH
14183 freebsd
* | dragonfly
*)
14184 # DragonFly does not have aout. When/if they implement a new
14185 # versioning mechanism, adjust this.
14186 if test -x /usr
/bin
/objformat
; then
14187 objformat
=`/usr/bin/objformat`
14190 freebsd
[23].
*) objformat
=aout
;;
14191 *) objformat
=elf
;;
14194 version_type
=freebsd-
$objformat
14195 case $version_type in
14197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14202 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14206 shlibpath_var
=LD_LIBRARY_PATH
14209 shlibpath_overrides_runpath
=yes
14211 freebsd3.
[01]* | freebsdelf3.
[01]*)
14212 shlibpath_overrides_runpath
=yes
14213 hardcode_into_libs
=yes
14215 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14216 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14217 shlibpath_overrides_runpath
=no
14218 hardcode_into_libs
=yes
14220 *) # from 4.6 on, and DragonFly
14221 shlibpath_overrides_runpath
=yes
14222 hardcode_into_libs
=yes
14231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14232 soname_spec
='${libname}${release}${shared_ext}$major'
14233 shlibpath_var
=LD_LIBRARY_PATH
14234 hardcode_into_libs
=yes
14241 dynamic_linker
="$host_os runtime_loader"
14242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14243 soname_spec
='${libname}${release}${shared_ext}$major'
14244 shlibpath_var
=LIBRARY_PATH
14245 shlibpath_overrides_runpath
=yes
14246 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14247 hardcode_into_libs
=yes
14250 hpux9
* | hpux10
* | hpux11
*)
14251 # Give a soname corresponding to the major version so that dld.sl refuses to
14252 # link against other versions.
14259 hardcode_into_libs
=yes
14260 dynamic_linker
="$host_os dld.so"
14261 shlibpath_var
=LD_LIBRARY_PATH
14262 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14264 soname_spec
='${libname}${release}${shared_ext}$major'
14265 if test "X$HPUX_IA64_MODE" = X32
; then
14266 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14268 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14270 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14274 hardcode_into_libs
=yes
14275 dynamic_linker
="$host_os dld.sl"
14276 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14277 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14279 soname_spec
='${libname}${release}${shared_ext}$major'
14280 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14281 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14285 dynamic_linker
="$host_os dld.sl"
14286 shlibpath_var
=SHLIB_PATH
14287 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14289 soname_spec
='${libname}${release}${shared_ext}$major'
14292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14293 postinstall_cmds
='chmod 555 $lib'
14294 # or fails outright, so override atomically:
14295 install_override_mode
=555
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'
14304 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14305 shlibpath_var
=LD_LIBRARY_PATH
14306 shlibpath_overrides_runpath
=no
14307 hardcode_into_libs
=yes
14310 irix5
* | irix6
* | nonstopux
*)
14312 nonstopux
*) version_type
=nonstopux
;;
14314 if test "$lt_cv_prog_gnu_ld" = yes; then
14322 soname_spec
='${libname}${release}${shared_ext}$major'
14323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14325 irix5
* | nonstopux
*)
14326 libsuff
= shlibsuff
=
14329 case $LD in # libtool.m4 will add one of these switches to LD
14330 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14331 libsuff
= shlibsuff
= libmagic
=32-bit;;
14332 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14333 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14334 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14335 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14336 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14340 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14341 shlibpath_overrides_runpath
=no
14342 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14343 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14344 hardcode_into_libs
=yes
14347 # No shared lib support for Linux oldld, aout, or coff.
14348 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14352 # This must be Linux ELF.
14353 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358 soname_spec
='${libname}${release}${shared_ext}$major'
14359 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14360 shlibpath_var
=LD_LIBRARY_PATH
14361 shlibpath_overrides_runpath
=no
14363 # Some binutils ld are patched to set DT_RUNPATH
14364 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14365 $as_echo_n "(cached) " >&6
14367 lt_cv_shlibpath_overrides_runpath
=no
14368 save_LDFLAGS
=$LDFLAGS
14369 save_libdir
=$libdir
14370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14372 cat > conftest.
$ac_ext <<_ACEOF
14377 if ac_fn_fc_try_link
"$LINENO"; then :
14378 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14379 lt_cv_shlibpath_overrides_runpath
=yes
14382 rm -f core conftest.err conftest.
$ac_objext \
14383 conftest
$ac_exeext conftest.
$ac_ext
14384 LDFLAGS
=$save_LDFLAGS
14385 libdir
=$save_libdir
14389 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14391 # This implies no fast_install, which is unacceptable.
14392 # Some rework will be needed to allow for fast_install
14393 # before this can be enabled.
14394 hardcode_into_libs
=yes
14396 # Append ld.so.conf contents to the search path
14397 if test -f /etc
/ld.so.conf
; then
14398 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' ' '`
14399 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14402 # We used to test for /lib/ld.so.1 and disable shared libraries on
14403 # powerpc, because MkLinux only supported shared libraries with the
14404 # GNU dynamic linker. Since this was broken with cross compilers,
14405 # most powerpc-linux boxes support dynamic linking these days and
14406 # people can always --disable-shared, the test was removed, and we
14407 # assume the GNU/Linux dynamic linker is in use.
14408 dynamic_linker
='GNU/Linux ld.so'
14415 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418 dynamic_linker
='NetBSD (a.out) ld.so'
14420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421 soname_spec
='${libname}${release}${shared_ext}$major'
14422 dynamic_linker
='NetBSD ld.elf_so'
14424 shlibpath_var
=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath
=yes
14426 hardcode_into_libs
=yes
14431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 shlibpath_var
=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath
=yes
14440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec
='${libname}${release}${shared_ext}$major'
14442 shlibpath_var
=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath
=no
14444 hardcode_into_libs
=yes
14445 dynamic_linker
='ldqnx.so'
14450 sys_lib_dlsearch_path_spec
="/usr/lib"
14452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14454 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14455 *) need_version
=no
;;
14457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459 shlibpath_var
=LD_LIBRARY_PATH
14460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14462 openbsd2.
[89] | openbsd2.
[89].
*)
14463 shlibpath_overrides_runpath
=no
14466 shlibpath_overrides_runpath
=yes
14470 shlibpath_overrides_runpath
=yes
14475 libname_spec
='$name'
14478 library_names_spec
='$libname${shared_ext} $libname.a'
14479 dynamic_linker
='OS/2 ld.exe'
14480 shlibpath_var
=LIBPATH
14483 osf3
* | osf4
* | osf5
*)
14487 soname_spec
='${libname}${release}${shared_ext}$major'
14488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 shlibpath_var
=LD_LIBRARY_PATH
14490 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14491 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec
='${libname}${release}${shared_ext}$major'
14504 shlibpath_var
=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath
=yes
14506 hardcode_into_libs
=yes
14507 # ldd complains unless libraries are executable
14508 postinstall_cmds
='chmod +x $lib'
14513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14514 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14515 shlibpath_var
=LD_LIBRARY_PATH
14516 shlibpath_overrides_runpath
=yes
14517 if test "$with_gnu_ld" = yes; then
14525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 soname_spec
='${libname}${release}${shared_ext}$major'
14527 shlibpath_var
=LD_LIBRARY_PATH
14528 case $host_vendor in
14530 shlibpath_overrides_runpath
=no
14532 runpath_var
=LD_RUN_PATH
14540 shlibpath_overrides_runpath
=no
14541 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14547 if test -d /usr
/nec
;then
14549 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14550 soname_spec
='$libname${shared_ext}.$major'
14551 shlibpath_var
=LD_LIBRARY_PATH
14555 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14556 version_type
=freebsd-elf
14559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14560 soname_spec
='${libname}${release}${shared_ext}$major'
14561 shlibpath_var
=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath
=yes
14563 hardcode_into_libs
=yes
14564 if test "$with_gnu_ld" = yes; then
14565 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14567 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14570 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14574 sys_lib_dlsearch_path_spec
='/usr/lib'
14578 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583 shlibpath_var
=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath
=no
14585 hardcode_into_libs
=yes
14590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591 soname_spec
='${libname}${release}${shared_ext}$major'
14592 shlibpath_var
=LD_LIBRARY_PATH
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14600 $as_echo "$dynamic_linker" >&6; }
14601 test "$dynamic_linker" = no
&& can_build_shared
=no
14603 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14604 if test "$GCC" = yes; then
14605 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14609 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14611 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14612 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14653 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14654 hardcode_action_FC
=
14655 if test -n "$hardcode_libdir_flag_spec_FC" ||
14656 test -n "$runpath_var_FC" ||
14657 test "X$hardcode_automatic_FC" = "Xyes" ; then
14659 # We can hardcode non-existent directories.
14660 if test "$hardcode_direct_FC" != no
&&
14661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14662 # have to relink, otherwise we might link with an installed library
14663 # when we should be linking with a yet-to-be-installed one
14664 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14665 test "$hardcode_minus_L_FC" != no
; then
14666 # Linking always hardcodes the temporary library directory.
14667 hardcode_action_FC
=relink
14669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14670 hardcode_action_FC
=immediate
14673 # We cannot hardcode anything, or else we can only hardcode existing
14675 hardcode_action_FC
=unsupported
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14678 $as_echo "$hardcode_action_FC" >&6; }
14680 if test "$hardcode_action_FC" = relink ||
14681 test "$inherit_rpath_FC" = yes; then
14682 # Fast installation is not supported
14683 enable_fast_install
=no
14684 elif test "$shlibpath_overrides_runpath" = yes ||
14685 test "$enable_shared" = no
; then
14686 # Fast installation is not necessary
14687 enable_fast_install
=needless
14696 fi # test -n "$compiler"
14700 fi # test "$_lt_disable_FC" != yes
14703 ac_cpp
='$CPP $CPPFLAGS'
14704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14709 FCFLAGS
="$FCFLAGS -Wall -L../libgfortran"
14711 # For libtool versioning info, format is CURRENT:REVISION:AGE
14712 libtool_VERSION
=1:0:0
14715 # Check header files.
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14717 $as_echo_n "checking for ANSI C header files... " >&6; }
14718 if ${ac_cv_header_stdc+:} false
; then :
14719 $as_echo_n "(cached) " >&6
14721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 #include <stdlib.h>
14724 #include <stdarg.h>
14725 #include <string.h>
14736 if ac_fn_c_try_compile
"$LINENO"; then :
14737 ac_cv_header_stdc
=yes
14739 ac_cv_header_stdc
=no
14741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14743 if test $ac_cv_header_stdc = yes; then
14744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14747 #include <string.h>
14750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14751 $EGREP "memchr" >/dev
/null
2>&1; then :
14754 ac_cv_header_stdc
=no
14760 if test $ac_cv_header_stdc = yes; then
14761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <stdlib.h>
14767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14768 $EGREP "free" >/dev
/null
2>&1; then :
14771 ac_cv_header_stdc
=no
14777 if test $ac_cv_header_stdc = yes; then
14778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14779 if test "$cross_compiling" = yes; then :
14782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14785 #include <stdlib.h>
14786 #if ((' ' & 0x0FF) == 0x020)
14787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14790 # define ISLOWER(c) \
14791 (('a' <= (c) && (c) <= 'i') \
14792 || ('j' <= (c) && (c) <= 'r') \
14793 || ('s' <= (c) && (c) <= 'z'))
14794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14802 for (i = 0; i < 256; i++)
14803 if (XOR (islower (i), ISLOWER (i))
14804 || toupper (i) != TOUPPER (i))
14809 if ac_fn_c_try_run
"$LINENO"; then :
14812 ac_cv_header_stdc
=no
14814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14821 $as_echo "$ac_cv_header_stdc" >&6; }
14822 if test $ac_cv_header_stdc = yes; then
14824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14829 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14830 if ${ac_cv_header_time+:} false
; then :
14831 $as_echo_n "(cached) " >&6
14833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 #include <sys/types.h>
14836 #include <sys/time.h>
14842 if ((struct tm *) 0)
14848 if ac_fn_c_try_compile
"$LINENO"; then :
14849 ac_cv_header_time
=yes
14851 ac_cv_header_time
=no
14853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14856 $as_echo "$ac_cv_header_time" >&6; }
14857 if test $ac_cv_header_time = yes; then
14859 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14864 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14865 if ${gcc_cv_header_string+:} false
; then :
14866 $as_echo_n "(cached) " >&6
14868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 #include <string.h>
14871 #include <strings.h>
14880 if ac_fn_c_try_compile
"$LINENO"; then :
14881 gcc_cv_header_string
=yes
14883 gcc_cv_header_string
=no
14885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14888 $as_echo "$gcc_cv_header_string" >&6; }
14889 if test $gcc_cv_header_string = yes; then
14891 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14895 for ac_header
in pthread.h unistd.h semaphore.h sys
/loadavg.h sys
/sysctl.h sys
/time.h
14897 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14898 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14899 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14900 cat >>confdefs.h
<<_ACEOF
14901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14911 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14913 acx_cv_header_stdint
=stddef.h
14914 acx_cv_header_stdint_kind
="(already complete)"
14915 for i
in stdint.h
$inttype_headers; do
14916 unset ac_cv_type_uintptr_t
14917 unset ac_cv_type_uintmax_t
14918 unset ac_cv_type_int_least32_t
14919 unset ac_cv_type_int_fast32_t
14920 unset ac_cv_type_uint64_t
14921 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14922 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14925 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
14926 acx_cv_header_stdint
=$i
14931 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14934 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
14937 acx_cv_header_stdint_kind
="(mostly complete)"
14940 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14943 if test "x$ac_cv_type_int_least32_t" = xyes
; then :
14946 acx_cv_header_stdint_kind
="(mostly complete)"
14949 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14952 if test "x$ac_cv_type_int_fast32_t" = xyes
; then :
14955 acx_cv_header_stdint_kind
="(mostly complete)"
14958 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14961 if test "x$ac_cv_type_uint64_t" = xyes
; then :
14964 acx_cv_header_stdint_kind
="(lacks uint64_t)"
14969 if test "$acx_cv_header_stdint" = stddef.h
; then
14970 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
14971 for i
in stdint.h
$inttype_headers; do
14972 unset ac_cv_type_uintptr_t
14973 unset ac_cv_type_uint32_t
14974 unset ac_cv_type_uint64_t
14975 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14976 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14979 if test "x$ac_cv_type_uint32_t" = xyes
; then :
14980 acx_cv_header_stdint
=$i
14985 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14988 if test "x$ac_cv_type_uint64_t" = xyes
; then :
14992 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14995 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
15002 if test "$acx_cv_header_stdint" = stddef.h
; then
15003 acx_cv_header_stdint_kind
="(u_intXX_t style)"
15004 for i
in sys
/types.h
$inttype_headers; do
15005 unset ac_cv_type_u_int32_t
15006 unset ac_cv_type_u_int64_t
15007 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15008 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15011 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
15012 acx_cv_header_stdint
=$i
15017 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15020 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
15027 if test "$acx_cv_header_stdint" = stddef.h
; then
15028 acx_cv_header_stdint_kind
="(using manual detection)"
15031 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
15032 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
15033 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
15034 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
15035 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
15037 # ----------------- Summarize what we found so far
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15040 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15042 case `$as_basename -- gstdint.h ||
15043 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15044 Xgstdint.h : 'X\(//\)$' \| \
15045 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15046 $as_echo X/gstdint.h |
15047 sed '/^.*\/\([^/][^/]*\)\/*$/{
15060 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15061 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15062 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15063 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15068 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15070 # ----------------- done included file, check C basic types --------
15072 # Lacking an uintptr_t? Test size of void *
15073 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15074 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
15075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15077 # This bug is HP SR number 8606223364.
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15079 $as_echo_n "checking size of void *... " >&6; }
15080 if ${ac_cv_sizeof_void_p+:} false
; then :
15081 $as_echo_n "(cached) " >&6
15083 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15086 if test "$ac_cv_type_void_p" = yes; then
15087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15089 as_fn_error
77 "cannot compute sizeof (void *)
15090 See \`config.log' for more details" "$LINENO" 5; }
15092 ac_cv_sizeof_void_p
=0
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15098 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15102 cat >>confdefs.h
<<_ACEOF
15103 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15109 # Lacking an uint64_t? Test size of long
15110 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15111 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
15112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15114 # This bug is HP SR number 8606223364.
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15116 $as_echo_n "checking size of long... " >&6; }
15117 if ${ac_cv_sizeof_long+:} false
; then :
15118 $as_echo_n "(cached) " >&6
15120 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15123 if test "$ac_cv_type_long" = yes; then
15124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15126 as_fn_error
77 "cannot compute sizeof (long)
15127 See \`config.log' for more details" "$LINENO" 5; }
15129 ac_cv_sizeof_long
=0
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15135 $as_echo "$ac_cv_sizeof_long" >&6; }
15139 cat >>confdefs.h
<<_ACEOF
15140 #define SIZEOF_LONG $ac_cv_sizeof_long
15146 if test $acx_cv_header_stdint = stddef.h
; then
15147 # Lacking a good header? Test size of everything and deduce all types.
15148 # The cast to long int works around a bug in the HP C Compiler
15149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15151 # This bug is HP SR number 8606223364.
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15153 $as_echo_n "checking size of int... " >&6; }
15154 if ${ac_cv_sizeof_int+:} false
; then :
15155 $as_echo_n "(cached) " >&6
15157 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15160 if test "$ac_cv_type_int" = yes; then
15161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15163 as_fn_error
77 "cannot compute sizeof (int)
15164 See \`config.log' for more details" "$LINENO" 5; }
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15172 $as_echo "$ac_cv_sizeof_int" >&6; }
15176 cat >>confdefs.h
<<_ACEOF
15177 #define SIZEOF_INT $ac_cv_sizeof_int
15181 # The cast to long int works around a bug in the HP C Compiler
15182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15184 # This bug is HP SR number 8606223364.
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15186 $as_echo_n "checking size of short... " >&6; }
15187 if ${ac_cv_sizeof_short+:} false
; then :
15188 $as_echo_n "(cached) " >&6
15190 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15193 if test "$ac_cv_type_short" = yes; then
15194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15196 as_fn_error
77 "cannot compute sizeof (short)
15197 See \`config.log' for more details" "$LINENO" 5; }
15199 ac_cv_sizeof_short
=0
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15205 $as_echo "$ac_cv_sizeof_short" >&6; }
15209 cat >>confdefs.h
<<_ACEOF
15210 #define SIZEOF_SHORT $ac_cv_sizeof_short
15214 # The cast to long int works around a bug in the HP C Compiler
15215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15217 # This bug is HP SR number 8606223364.
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15219 $as_echo_n "checking size of char... " >&6; }
15220 if ${ac_cv_sizeof_char+:} false
; then :
15221 $as_echo_n "(cached) " >&6
15223 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15226 if test "$ac_cv_type_char" = yes; then
15227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15229 as_fn_error
77 "cannot compute sizeof (char)
15230 See \`config.log' for more details" "$LINENO" 5; }
15232 ac_cv_sizeof_char
=0
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15238 $as_echo "$ac_cv_sizeof_char" >&6; }
15242 cat >>confdefs.h
<<_ACEOF
15243 #define SIZEOF_CHAR $ac_cv_sizeof_char
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15249 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15250 case "$ac_cv_sizeof_char" in
15251 1) acx_cv_type_int8_t
=char
;;
15252 *) as_fn_error $?
"no 8-bit type, please report a bug" "$LINENO" 5
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15255 $as_echo "$acx_cv_type_int8_t" >&6; }
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15258 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15259 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15260 2:*) acx_cv_type_int16_t
=int
;;
15261 *:2) acx_cv_type_int16_t
=short
;;
15262 *) as_fn_error $?
"no 16-bit type, please report a bug" "$LINENO" 5
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15265 $as_echo "$acx_cv_type_int16_t" >&6; }
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15268 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15269 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15270 4:*) acx_cv_type_int32_t
=int
;;
15271 *:4) acx_cv_type_int32_t
=long
;;
15272 *) as_fn_error $?
"no 32-bit type, please report a bug" "$LINENO" 5
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15275 $as_echo "$acx_cv_type_int32_t" >&6; }
15278 # These tests are here to make the output prettier
15280 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15281 case "$ac_cv_sizeof_long" in
15282 8) acx_cv_type_int64_t
=long
;;
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15285 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15287 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15290 # Now we can use the above types
15292 if test "$ac_cv_type_uintptr_t" != yes; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15294 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15295 case $ac_cv_sizeof_void_p in
15296 2) acx_cv_type_intptr_t
=int16_t
;;
15297 4) acx_cv_type_intptr_t
=int32_t
;;
15298 8) acx_cv_type_intptr_t
=int64_t
;;
15299 *) as_fn_error $?
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15302 $as_echo "$acx_cv_type_intptr_t" >&6; }
15305 # ----------------- done all checks, emit header -------------
15306 ac_config_commands
="$ac_config_commands gstdint.h"
15314 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15317 # NVPTX does not support Pthreads, has its own code replacement.
15318 libgomp_use_pthreads
=no
15319 # NVPTX is an accelerator-only target
15320 libgomp_offloaded_only
=yes
15323 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15324 # In case the pthread.h system header is not found, this test will fail.
15325 CFLAGS
="$CFLAGS -pthread"
15326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #include <pthread.h>
15329 void *g(void *d) { return NULL; }
15333 pthread_t t; pthread_create(&t,NULL,g,NULL);
15338 if ac_fn_c_try_link
"$LINENO"; then :
15339 XPCFLAGS
=" -Wc,-pthread"
15341 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
15342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 #include <pthread.h>
15345 void *g(void *d) { return NULL; }
15349 pthread_t t; pthread_create(&t,NULL,g,NULL);
15354 if ac_fn_c_try_link
"$LINENO"; then :
15357 as_fn_error $?
"Pthreads are required to build libgomp" "$LINENO" 5
15359 rm -f core conftest.err conftest.
$ac_objext \
15360 conftest
$ac_exeext conftest.
$ac_ext
15362 rm -f core conftest.err conftest.
$ac_objext \
15363 conftest
$ac_exeext conftest.
$ac_ext
15366 if test x
$libgomp_use_pthreads != xno
; then
15368 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15372 if test x
$libgomp_offloaded_only = xyes
; then
15374 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15378 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15380 # Copyright (C) 2014-2019 Free Software Foundation, Inc.
15382 # Contributed by Mentor Embedded.
15384 # This file is part of the GNU Offloading and Multi Processing Library
15387 # Libgomp is free software; you can redistribute it and/or modify it
15388 # under the terms of the GNU General Public License as published by
15389 # the Free Software Foundation; either version 3, or (at your option)
15390 # any later version.
15392 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15393 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15394 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15397 # Under Section 7 of GPL version 3, you are granted additional
15398 # permissions described in the GCC Runtime Library Exception, version
15399 # 3.1, as published by the Free Software Foundation.
15401 # You should have received a copy of the GNU General Public License and
15402 # a copy of the GCC Runtime Library Exception along with this program;
15403 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15404 # <http://www.gnu.org/licenses/>.
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15408 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15409 if ${ac_cv_lib_dl_dlsym+:} false
; then :
15410 $as_echo_n "(cached) " >&6
15412 ac_check_lib_save_LIBS
=$LIBS
15414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15432 if ac_fn_c_try_link
"$LINENO"; then :
15433 ac_cv_lib_dl_dlsym
=yes
15435 ac_cv_lib_dl_dlsym
=no
15437 rm -f core conftest.err conftest.
$ac_objext \
15438 conftest
$ac_exeext conftest.
$ac_ext
15439 LIBS
=$ac_check_lib_save_LIBS
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15442 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15443 if test "x$ac_cv_lib_dl_dlsym" = xyes
; then :
15444 cat >>confdefs.h
<<_ACEOF
15445 #define HAVE_LIBDL 1
15454 if test x
"$plugin_support" = xyes
; then
15456 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15458 elif test "x${enable_offload_targets-no}" != xno
; then
15459 as_fn_error $?
"Can't support offloading without support for plugins" "$LINENO" 5
15464 for ac_header
in $ac_header_list
15466 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15469 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15470 cat >>confdefs.h
<<_ACEOF
15471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15484 for ac_func
in $ac_func_list
15486 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15487 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15488 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15489 cat >>confdefs.h
<<_ACEOF
15490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511 # Look for the CUDA driver package.
15512 CUDA_DRIVER_INCLUDE
=
15516 CUDA_DRIVER_CPPFLAGS
=
15517 CUDA_DRIVER_LDFLAGS
=
15519 # Check whether --with-cuda-driver was given.
15520 if test "${with_cuda_driver+set}" = set; then :
15521 withval
=$with_cuda_driver;
15525 # Check whether --with-cuda-driver-include was given.
15526 if test "${with_cuda_driver_include+set}" = set; then :
15527 withval
=$with_cuda_driver_include;
15531 # Check whether --with-cuda-driver-lib was given.
15532 if test "${with_cuda_driver_lib+set}" = set; then :
15533 withval
=$with_cuda_driver_lib;
15536 case "x$with_cuda_driver" in
15539 CUDA_DRIVER_INCLUDE
=no
15542 *) CUDA_DRIVER_INCLUDE
=$with_cuda_driver/include
15543 CUDA_DRIVER_LIB
=$with_cuda_driver/lib
15546 if test "x$with_cuda_driver_include" != x
; then
15547 CUDA_DRIVER_INCLUDE
=$with_cuda_driver_include
15549 if test "x$with_cuda_driver_lib" != x
; then
15550 CUDA_DRIVER_LIB
=$with_cuda_driver_lib
15552 if test "x$CUDA_DRIVER_INCLUDE" != x \
15553 && test "x$CUDA_DRIVER_INCLUDE" != xno
; then
15554 CUDA_DRIVER_CPPFLAGS
=-I$CUDA_DRIVER_INCLUDE
15556 if test "x$CUDA_DRIVER_LIB" != x \
15557 && test "x$CUDA_DRIVER_LIB" != xno
; then
15558 CUDA_DRIVER_LDFLAGS
=-L$CUDA_DRIVER_LIB
15562 PLUGIN_NVPTX_CPPFLAGS
=
15563 PLUGIN_NVPTX_LDFLAGS
=
15565 PLUGIN_NVPTX_DYNAMIC
=0
15571 # Look for HSA run-time, its includes and libraries
15573 HSA_RUNTIME_INCLUDE
=
15577 HSA_RUNTIME_CPPFLAGS
=
15578 HSA_RUNTIME_LDFLAGS
=
15581 # Check whether --with-hsa-runtime was given.
15582 if test "${with_hsa_runtime+set}" = set; then :
15583 withval
=$with_hsa_runtime;
15587 # Check whether --with-hsa-runtime-include was given.
15588 if test "${with_hsa_runtime_include+set}" = set; then :
15589 withval
=$with_hsa_runtime_include;
15593 # Check whether --with-hsa-runtime-lib was given.
15594 if test "${with_hsa_runtime_lib+set}" = set; then :
15595 withval
=$with_hsa_runtime_lib;
15598 if test "x$with_hsa_runtime" != x
; then
15599 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime/include
15600 HSA_RUNTIME_LIB
=$with_hsa_runtime/lib
15602 if test "x$with_hsa_runtime_include" != x
; then
15603 HSA_RUNTIME_INCLUDE
=$with_hsa_runtime_include
15605 if test "x$with_hsa_runtime_lib" != x
; then
15606 HSA_RUNTIME_LIB
=$with_hsa_runtime_lib
15608 if test "x$HSA_RUNTIME_INCLUDE" != x
; then
15609 HSA_RUNTIME_CPPFLAGS
=-I$HSA_RUNTIME_INCLUDE
15611 if test "x$HSA_RUNTIME_LIB" != x
; then
15612 HSA_RUNTIME_LDFLAGS
=-L$HSA_RUNTIME_LIB
15616 PLUGIN_HSA_CPPFLAGS
=
15617 PLUGIN_HSA_LDFLAGS
=
15624 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15625 # plugins, and configure to find the corresponding offload compilers.
15626 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15631 offload_additional_options
=
15632 offload_additional_lib_paths
=
15635 if test x
"$enable_offload_targets" != x
; then
15636 for tgt
in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15637 tgt_dir
=`echo $tgt | grep '=' | sed 's/.*=//'`
15638 tgt
=`echo $tgt | sed 's/=.*//'`
15641 *-intelmic-* |
*-intelmicemul-*)
15642 tgt_plugin
=intelmic
15647 if test "x$CUDA_DRIVER_LIB" != xno \
15648 && test "x$CUDA_DRIVER_LIB" != xno
; then
15649 PLUGIN_NVPTX_CPPFLAGS
=$CUDA_DRIVER_CPPFLAGS
15650 PLUGIN_NVPTX_LDFLAGS
=$CUDA_DRIVER_LDFLAGS
15651 PLUGIN_NVPTX_LIBS
='-lcuda'
15653 PLUGIN_NVPTX_save_CPPFLAGS
=$CPPFLAGS
15654 CPPFLAGS
="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15655 PLUGIN_NVPTX_save_LDFLAGS
=$LDFLAGS
15656 LDFLAGS
="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15657 PLUGIN_NVPTX_save_LIBS
=$LIBS
15658 LIBS
="$PLUGIN_NVPTX_LIBS $LIBS"
15659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15665 CUresult r = cuCtxPushCurrent (NULL);
15670 if ac_fn_c_try_link
"$LINENO"; then :
15673 rm -f core conftest.err conftest.
$ac_objext \
15674 conftest
$ac_exeext conftest.
$ac_ext
15675 CPPFLAGS
=$PLUGIN_NVPTX_save_CPPFLAGS
15676 LDFLAGS
=$PLUGIN_NVPTX_save_LDFLAGS
15677 LIBS
=$PLUGIN_NVPTX_save_LIBS
15679 case $PLUGIN_NVPTX in
15681 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15682 ||
test "x$CUDA_DRIVER_INCLUDE" = xno
) \
15683 && (test "x$CUDA_DRIVER_LIB" = x \
15684 ||
test "x$CUDA_DRIVER_LIB" = xno
); then
15686 PLUGIN_NVPTX_CPPFLAGS
='-I$(srcdir)/plugin/cuda'
15687 PLUGIN_NVPTX_LIBS
='-ldl'
15688 PLUGIN_NVPTX_DYNAMIC
=1
15691 as_fn_error $?
"CUDA driver package required for nvptx support" "$LINENO" 5
15697 case "${target}" in
15699 case " ${CC} ${CFLAGS} " in
15706 PLUGIN_HSA_CPPFLAGS
=$HSA_RUNTIME_CPPFLAGS
15707 PLUGIN_HSA_LDFLAGS
="$HSA_RUNTIME_LDFLAGS"
15708 PLUGIN_HSA_LIBS
="-ldl"
15710 PLUGIN_HSA_save_CPPFLAGS
=$CPPFLAGS
15711 CPPFLAGS
="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15712 PLUGIN_HSA_save_LDFLAGS
=$LDFLAGS
15713 LDFLAGS
="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15714 PLUGIN_HSA_save_LIBS
=$LIBS
15715 LIBS
="$PLUGIN_HSA_LIBS $LIBS"
15718 CPPFLAGS
=$PLUGIN_HSA_save_CPPFLAGS
15719 LDFLAGS
=$PLUGIN_HSA_save_LDFLAGS
15720 LIBS
=$PLUGIN_HSA_save_LIBS
15721 case $PLUGIN_HSA in
15724 as_fn_error $?
"HSA run-time package required for HSA support" "$LINENO" 5
15736 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
15739 if test x
"$tgt_plugin" = x
; then
15740 # Not configuring libgomp for this offload target if we're not building
15741 # the corresponding offload plugin.
15743 elif test x
"$offload_plugins" = x
; then
15744 offload_plugins
=$tgt_plugin
15745 offload_targets
=$tgt
15747 offload_plugins
=$offload_plugins,$tgt_plugin
15748 offload_targets
=$offload_targets,$tgt
15750 # Configure additional search paths.
15751 if test "$tgt_plugin" = hsa
; then
15752 # Offloading compilation is all handled by the target compiler.
15754 elif test x
"$tgt_dir" != x
; then
15755 offload_additional_options
="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15756 offload_additional_lib_paths
="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15758 offload_additional_options
="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15759 offload_additional_lib_paths
="$offload_additional_lib_paths:$toolexeclibdir"
15764 cat >>confdefs.h
<<_ACEOF
15765 #define OFFLOAD_PLUGINS "$offload_plugins"
15768 if test $PLUGIN_NVPTX = 1; then
15770 PLUGIN_NVPTX_FALSE
='#'
15772 PLUGIN_NVPTX_TRUE
='#'
15773 PLUGIN_NVPTX_FALSE
=
15777 cat >>confdefs.h
<<_ACEOF
15778 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15782 cat >>confdefs.h
<<_ACEOF
15783 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15786 if test $PLUGIN_HSA = 1; then
15788 PLUGIN_HSA_FALSE
='#'
15790 PLUGIN_HSA_TRUE
='#'
15795 cat >>confdefs.h
<<_ACEOF
15796 #define PLUGIN_HSA $PLUGIN_HSA
15800 if test "$HSA_RUNTIME_LIB" != ""; then
15801 HSA_RUNTIME_LIB
="$HSA_RUNTIME_LIB/"
15805 cat >>confdefs.h
<<_ACEOF
15806 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15811 # Check for functions needed.
15812 for ac_func
in getloadavg clock_gettime strtoull
15814 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15815 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15816 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15817 cat >>confdefs.h
<<_ACEOF
15818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15824 for ac_func
in aligned_alloc posix_memalign memalign _aligned_malloc
15826 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15827 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15828 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15829 cat >>confdefs.h
<<_ACEOF
15830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15837 # Check for broken semaphore implementation on darwin.
15838 # sem_init returns: sem_init error: Function not implemented.
15842 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15847 # RTEMS specific checks
15850 ac_fn_c_check_type
"$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15852 if test "x$ac_cv_type_struct__Mutex_Control" = xyes
; then :
15854 cat >>confdefs.h
<<_ACEOF
15855 #define HAVE_STRUCT__MUTEX_CONTROL 1
15864 # Check whether --enable-linux-futex was given.
15865 if test "${enable_linux_futex+set}" = set; then :
15866 enableval
=$enable_linux_futex;
15867 case "$enableval" in
15869 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15873 enable_linux_futex
=default
15879 case "$enable_linux_futex" in
15881 # If headers don't have gettid/futex syscalls definition, then
15882 # default to no, otherwise there will be compile time failures.
15883 # Otherwise, default to yes. If we don't detect we are
15884 # compiled/linked against NPTL and not cross-compiling, check
15885 # if programs are run by default against NPTL and if not, issue
15887 enable_linux_futex
=no
15888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 #include <sys/syscall.h>
15895 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15900 if ac_fn_c_try_link
"$LINENO"; then :
15902 LIBS
="-lpthread $LIBS"
15903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #ifndef _GNU_SOURCE
15906 #define _GNU_SOURCE 1
15908 #include <pthread.h>
15909 pthread_t th; void *status;
15913 pthread_tryjoin_np (th, &status);
15918 if ac_fn_c_try_link
"$LINENO"; then :
15919 enable_linux_futex
=yes
15921 if test x
$cross_compiling = xno
; then
15922 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
15923 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15925 If so, please configure with --disable-linux-futex" >&5
15926 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15927 If so, please configure with --disable-linux-futex" >&2;}
15930 enable_linux_futex
=yes
15932 rm -f core conftest.err conftest.
$ac_objext \
15933 conftest
$ac_exeext conftest.
$ac_ext
15936 rm -f core conftest.err conftest.
$ac_objext \
15937 conftest
$ac_exeext conftest.
$ac_ext
15940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 #include <sys/syscall.h>
15947 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15952 if ac_fn_c_try_link
"$LINENO"; then :
15955 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15957 rm -f core conftest.err conftest.
$ac_objext \
15958 conftest
$ac_exeext conftest.
$ac_ext
15963 enable_linux_futex
=no
15966 if test x
$enable_linux_futex = xyes
; then
15971 # Check for pthread_{,attr_}[sg]etaffinity_np.
15972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 #define _GNU_SOURCE
15975 #include <pthread.h>
15980 pthread_attr_t attr;
15981 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15982 if (CPU_ISSET (0, &cpuset))
15983 CPU_SET (1, &cpuset);
15985 CPU_ZERO (&cpuset);
15986 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15987 pthread_attr_init (&attr);
15988 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15989 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15994 if ac_fn_c_try_link
"$LINENO"; then :
15996 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15999 rm -f core conftest.err conftest.
$ac_objext \
16000 conftest
$ac_exeext conftest.
$ac_ext
16002 # At least for glibc, clock_gettime is in librt. But don't pull that
16003 # in if it still doesn't give us the function we want.
16004 if test $ac_cv_func_clock_gettime = no
; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16006 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16007 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
16008 $as_echo_n "(cached) " >&6
16010 ac_check_lib_save_LIBS
=$LIBS
16012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16015 /* Override any GCC internal prototype to avoid an error.
16016 Use char because int might match the return type of a GCC
16017 builtin and then its argument prototype would still apply. */
16021 char clock_gettime ();
16025 return clock_gettime ();
16030 if ac_fn_c_try_link
"$LINENO"; then :
16031 ac_cv_lib_rt_clock_gettime
=yes
16033 ac_cv_lib_rt_clock_gettime
=no
16035 rm -f core conftest.err conftest.
$ac_objext \
16036 conftest
$ac_exeext conftest.
$ac_ext
16037 LIBS
=$ac_check_lib_save_LIBS
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16040 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16041 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
16044 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 #include <string.h>
16054 #include <stdlib.h>
16055 #include <sys/utsname.h>
16059 struct utsname buf;
16060 volatile size_t len = 0;
16062 len = strlen (buf.nodename);
16067 if ac_fn_c_try_compile
"$LINENO"; then :
16069 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
16072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16074 # Check for gethostname.
16075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 #include <unistd.h>
16083 if (gethostname (buf, sizeof (buf) - 1) == 0)
16090 if ac_fn_c_try_compile
"$LINENO"; then :
16092 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16097 # Check for getpid.
16098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16100 #include <unistd.h>
16104 int pid = getpid ();
16109 if ac_fn_c_try_compile
"$LINENO"; then :
16111 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
16114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16116 # See if we support thread-local storage.
16119 # Check whether --enable-tls was given.
16120 if test "${enable_tls+set}" = set; then :
16121 enableval
=$enable_tls;
16122 case "$enableval" in
16124 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16133 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16134 if ${gcc_cv_have_tls+:} false
; then :
16135 $as_echo_n "(cached) " >&6
16138 if test "$cross_compiling" = yes; then :
16139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16141 __thread int a; int b; int main() { return a = b; }
16143 if ac_fn_c_try_link
"$LINENO"; then :
16144 chktls_save_LDFLAGS
="$LDFLAGS"
16147 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
16150 chktls_save_CFLAGS
="$CFLAGS"
16151 CFLAGS
="-fPIC $CFLAGS"
16152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 int f() { return 0; }
16156 if ac_fn_c_try_link
"$LINENO"; then :
16157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159 __thread int a; int b; int f() { return a = b; }
16161 if ac_fn_c_try_link
"$LINENO"; then :
16162 gcc_cv_have_tls
=yes
16166 rm -f core conftest.err conftest.
$ac_objext \
16167 conftest
$ac_exeext conftest.
$ac_ext
16169 gcc_cv_have_tls
=yes
16171 rm -f core conftest.err conftest.
$ac_objext \
16172 conftest
$ac_exeext conftest.
$ac_ext
16173 CFLAGS
="$chktls_save_CFLAGS"
16174 LDFLAGS
="$chktls_save_LDFLAGS"
16178 rm -f core conftest.err conftest.
$ac_objext \
16179 conftest
$ac_exeext conftest.
$ac_ext
16183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185 __thread int a; int b; int main() { return a = b; }
16187 if ac_fn_c_try_run
"$LINENO"; then :
16188 chktls_save_LDFLAGS
="$LDFLAGS"
16189 LDFLAGS
="-static $LDFLAGS"
16190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 int main() { return 0; }
16194 if ac_fn_c_try_link
"$LINENO"; then :
16195 if test "$cross_compiling" = yes; then :
16196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16198 as_fn_error $?
"cannot run test program while cross compiling
16199 See \`config.log' for more details" "$LINENO" 5; }
16201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 __thread int a; int b; int main() { return a = b; }
16205 if ac_fn_c_try_run
"$LINENO"; then :
16206 gcc_cv_have_tls
=yes
16210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16211 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16215 gcc_cv_have_tls
=yes
16217 rm -f core conftest.err conftest.
$ac_objext \
16218 conftest
$ac_exeext conftest.
$ac_ext
16219 LDFLAGS
="$chktls_save_LDFLAGS"
16220 if test $gcc_cv_have_tls = yes; then
16221 chktls_save_CFLAGS
="$CFLAGS"
16222 thread_CFLAGS
=failed
16223 for flag
in '' '-pthread' '-lpthread'; do
16224 CFLAGS
="$flag $chktls_save_CFLAGS"
16225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 #include <pthread.h>
16228 void *g(void *d) { return NULL; }
16232 pthread_t t; pthread_create(&t,NULL,g,NULL);
16237 if ac_fn_c_try_link
"$LINENO"; then :
16238 thread_CFLAGS
="$flag"
16240 rm -f core conftest.err conftest.
$ac_objext \
16241 conftest
$ac_exeext conftest.
$ac_ext
16242 if test "X$thread_CFLAGS" != Xfailed
; then
16246 CFLAGS
="$chktls_save_CFLAGS"
16247 if test "X$thread_CFLAGS" != Xfailed
; then
16248 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
16249 if test "$cross_compiling" = yes; then :
16250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16252 as_fn_error $?
"cannot run test program while cross compiling
16253 See \`config.log' for more details" "$LINENO" 5; }
16255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16257 #include <pthread.h>
16259 static int *volatile a_in_other_thread;
16261 thread_func (void *arg)
16263 a_in_other_thread = &a;
16270 void *thread_retval;
16271 int *volatile a_in_main_thread;
16272 a_in_main_thread = &a;
16273 if (pthread_create (&thread, (pthread_attr_t *)0,
16274 thread_func, (void *)0))
16276 if (pthread_join (thread, &thread_retval))
16278 return (a_in_other_thread == a_in_main_thread);
16283 if ac_fn_c_try_run
"$LINENO"; then :
16284 gcc_cv_have_tls
=yes
16288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16292 CFLAGS
="$chktls_save_CFLAGS"
16298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16299 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16304 $as_echo "$gcc_cv_have_tls" >&6; }
16305 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16307 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16311 # See if we have emulated thread-local storage.
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16314 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16315 if ${gcc_cv_use_emutls+:} false
; then :
16316 $as_echo_n "(cached) " >&6
16319 gcc_cv_use_emutls
=no
16320 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16321 if { ac_try
='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16323 (eval $ac_try) 2>&5
16325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16326 test $ac_status = 0; }; }; then
16327 if grep __emutls_get_address conftest.s
> /dev
/null
; then
16328 gcc_cv_use_emutls
=yes
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16335 $as_echo "$gcc_cv_use_emutls" >&6; }
16336 if test "$gcc_cv_use_emutls" = "yes" ; then
16338 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16342 # See what sort of export controls are available.
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16345 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16346 if ${libgomp_cv_have_attribute_visibility+:} false
; then :
16347 $as_echo_n "(cached) " >&6
16350 save_CFLAGS
="$CFLAGS"
16351 CFLAGS
="$CFLAGS -Werror"
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 void __attribute__((visibility("hidden"))) foo(void) { }
16363 if ac_fn_c_try_compile
"$LINENO"; then :
16364 libgomp_cv_have_attribute_visibility
=yes
16366 libgomp_cv_have_attribute_visibility
=no
16368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16369 CFLAGS
="$save_CFLAGS"
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16372 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16373 if test $libgomp_cv_have_attribute_visibility = yes; then
16375 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16380 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16381 if ${libgomp_cv_have_attribute_dllexport+:} false
; then :
16382 $as_echo_n "(cached) " >&6
16385 save_CFLAGS
="$CFLAGS"
16386 CFLAGS
="$CFLAGS -Werror"
16387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 void __attribute__((dllexport)) foo(void) { }
16398 if ac_fn_c_try_compile
"$LINENO"; then :
16399 libgomp_cv_have_attribute_dllexport
=yes
16401 libgomp_cv_have_attribute_dllexport
=no
16403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16404 CFLAGS
="$save_CFLAGS"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16407 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16408 if test $libgomp_cv_have_attribute_dllexport = yes; then
16410 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16415 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16416 if ${libgomp_cv_have_attribute_alias+:} false
; then :
16417 $as_echo_n "(cached) " >&6
16420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16424 extern void bar(void) __attribute__((alias("foo")));
16433 if ac_fn_c_try_link
"$LINENO"; then :
16434 libgomp_cv_have_attribute_alias
=yes
16436 libgomp_cv_have_attribute_alias
=no
16438 rm -f core conftest.err conftest.
$ac_objext \
16439 conftest
$ac_exeext conftest.
$ac_ext
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16442 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16443 if test $libgomp_cv_have_attribute_alias = yes; then
16445 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16450 # Check whether --with-gnu-ld was given.
16451 if test "${with_gnu_ld+set}" = set; then :
16452 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16458 if test "$GCC" = yes; then
16459 # Check if gcc -print-prog-name=ld gives a path.
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16461 $as_echo_n "checking for ld used by $CC... " >&6; }
16464 # gcc leaves a trailing carriage return which upsets mingw
16465 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16467 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16470 # Accept absolute paths.
16472 re_direlt
='/[^/][^/]*/\.\./'
16473 # Canonicalize the pathname of ld
16474 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16475 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16476 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16478 test -z "$LD" && LD
="$ac_prog"
16481 # If it fails, then pretend we aren't using GCC.
16485 # If it is relative, then search for the first ld in PATH.
16486 with_gnu_ld
=unknown
16489 elif test "$with_gnu_ld" = yes; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16491 $as_echo_n "checking for GNU ld... " >&6; }
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16494 $as_echo_n "checking for non-GNU ld... " >&6; }
16496 if ${lt_cv_path_LD+:} false
; then :
16497 $as_echo_n "(cached) " >&6
16499 if test -z "$LD"; then
16500 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16501 for ac_dir
in $PATH; do
16503 test -z "$ac_dir" && ac_dir
=.
16504 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16505 lt_cv_path_LD
="$ac_dir/$ac_prog"
16506 # Check to see if the program is GNU ld. I'd rather use --version,
16507 # but apparently some variants of GNU ld only accept -v.
16508 # Break only if it was the GNU/non-GNU ld that we prefer.
16509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16510 *GNU
* |
*'with BFD'*)
16511 test "$with_gnu_ld" != no
&& break
16514 test "$with_gnu_ld" != yes && break
16521 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16525 LD
="$lt_cv_path_LD"
16526 if test -n "$LD"; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16528 $as_echo "$LD" >&6; }
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16533 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16536 if ${lt_cv_prog_gnu_ld+:} false
; then :
16537 $as_echo_n "(cached) " >&6
16539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16540 case `$LD -v 2>&1 </dev/null` in
16541 *GNU
* |
*'with BFD'*)
16542 lt_cv_prog_gnu_ld
=yes
16545 lt_cv_prog_gnu_ld
=no
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16550 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16551 with_gnu_ld
=$lt_cv_prog_gnu_ld
16559 # If we're not using GNU ld, then there's no point in even trying these
16560 # tests. Check for that first. We should have already tested for gld
16561 # by now (in libtool), but require it now just to be safe...
16562 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16563 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16567 # The name set by libtool depends on the version of libtool. Shame on us
16568 # for depending on an impl detail, but c'est la vie. Older versions used
16569 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16570 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16571 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16572 # set (hence we're using an older libtool), then set it.
16573 if test x
${with_gnu_ld+set} != xset
; then
16574 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16575 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16578 with_gnu_ld
=$ac_cv_prog_gnu_ld
16582 # Start by getting the version number. I think the libtool test already
16583 # does some of this, but throws away the result.
16584 libgomp_ld_is_gold
=no
16585 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16586 libgomp_ld_is_gold
=yes
16589 ldver
=`$LD --version 2>/dev/null |
16590 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16592 libgomp_gnu_ld_version
=`echo $ldver | \
16593 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16595 # Set --gc-sections.
16596 if test "$with_gnu_ld" = "notbroken"; then
16597 # GNU ld it is! Joy and bunny rabbits!
16599 # All these tests are for C++; save the language and the compiler flags.
16600 # Need to do this so that g++ won't try to link in libstdc++
16601 ac_test_CFLAGS
="${CFLAGS+set}"
16602 ac_save_CFLAGS
="$CFLAGS"
16603 CFLAGS
='-x c++ -Wl,--gc-sections'
16605 # Check for -Wl,--gc-sections
16606 # XXX This test is broken at the moment, as symbols required for linking
16607 # are now in libsupc++ (not built yet). In addition, this test has
16608 # cored on solaris in the past. In addition, --gc-sections doesn't
16609 # really work at the moment (keeps on discarding used sections, first
16610 # .eh_frame and now some of the glibc sections for iconv).
16611 # Bzzzzt. Thanks for playing, maybe next time.
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16613 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16614 if test "$cross_compiling" = yes; then :
16615 ac_sectionLDflags
=yes
16617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16628 if ac_fn_c_try_run
"$LINENO"; then :
16629 ac_sectionLDflags
=yes
16631 ac_sectionLDflags
=no
16633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16634 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16637 if test "$ac_test_CFLAGS" = set; then
16638 CFLAGS
="$ac_save_CFLAGS"
16640 # this is the suspicious part
16643 if test "$ac_sectionLDflags" = "yes"; then
16644 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16647 $as_echo "$ac_sectionLDflags" >&6; }
16650 # Set linker optimization flags.
16651 if test x
"$with_gnu_ld" = x
"yes"; then
16652 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16660 # Check whether --enable-symvers was given.
16661 if test "${enable_symvers+set}" = set; then :
16662 enableval
=$enable_symvers;
16663 case "$enableval" in
16664 yes|no|gnu
*|sun
) ;;
16665 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16674 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16675 # don't know enough about $LD to do tricks...
16678 # Turn a 'yes' into a suitable default.
16679 if test x
$enable_symvers = xyes
; then
16680 # FIXME The following test is too strict, in theory.
16681 if test $enable_shared = no ||
test "x$LD" = x
; then
16684 if test $with_gnu_ld = yes ; then
16687 case ${target_os} in
16688 # Sun symbol versioning exists since Solaris 2.5.
16689 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16690 enable_symvers
=sun
;;
16692 enable_symvers
=no
;;
16698 # Check if 'sun' was requested on non-Solaris 2 platforms.
16699 if test x
$enable_symvers = xsun
; then
16700 case ${target_os} in
16705 # Unlikely to work.
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16707 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16709 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16711 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16717 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16718 if test $enable_symvers != no
; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16720 $as_echo_n "checking for shared libgcc... " >&6; }
16721 ac_save_CFLAGS
="$CFLAGS"
16723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16734 if ac_fn_c_try_link
"$LINENO"; then :
16735 libgomp_shared_libgcc
=yes
16737 libgomp_shared_libgcc
=no
16739 rm -f core conftest.err conftest.
$ac_objext \
16740 conftest
$ac_exeext conftest.
$ac_ext
16741 CFLAGS
="$ac_save_CFLAGS"
16742 if test $libgomp_shared_libgcc = no
; then
16743 cat > conftest.c
<<EOF
16744 int main (void) { return 0; }
16746 libgomp_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16747 -shared -shared-libgcc -o conftest.so \
16748 conftest.c -v 2>&1 >/dev/null \
16749 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16750 rm -f conftest.c conftest.so
16751 if test x
${libgomp_libgcc_s_suffix+set} = xset
; then
16752 CFLAGS
=" -lgcc_s$libgomp_libgcc_s_suffix"
16753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16764 if ac_fn_c_try_link
"$LINENO"; then :
16765 libgomp_shared_libgcc
=yes
16767 rm -f core conftest.err conftest.
$ac_objext \
16768 conftest
$ac_exeext conftest.
$ac_ext
16769 CFLAGS
="$ac_save_CFLAGS"
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16773 $as_echo "$libgomp_shared_libgcc" >&6; }
16776 # For GNU ld, we need at least this version. The format is described in
16777 # LIBGOMP_CHECK_LINKER_FEATURES above.
16778 libgomp_min_gnu_ld_version
=21400
16779 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16781 # Check to see if unspecified "yes" value can win, given results above.
16782 # Change "yes" into either "no" or a style name.
16783 if test $enable_symvers != no
&& test $libgomp_shared_libgcc = yes; then
16784 if test $with_gnu_ld = yes; then
16785 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16787 elif test $libgomp_ld_is_gold = yes ; then
16790 # The right tools, the right setup, but too old. Fallbacks?
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16792 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16794 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16796 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16798 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16799 if test $libgomp_gnu_ld_version -ge 21200 ; then
16800 # Globbing fix is present, proper block support is not.
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16802 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16807 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16811 elif test $enable_symvers = sun
; then
16812 : All interesting versions of Sun ld support sun style symbol versioning.
16814 # just fail for now
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16816 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16818 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16820 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16822 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16828 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16829 if ${libgomp_cv_have_as_symver_directive+:} false
; then :
16830 $as_echo_n "(cached) " >&6
16833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 void foo (void); __asm (".symver foo, bar@SYMVER");
16844 if ac_fn_c_try_compile
"$LINENO"; then :
16845 libgomp_cv_have_as_symver_directive
=yes
16847 libgomp_cv_have_as_symver_directive
=no
16849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16852 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16853 if test $libgomp_cv_have_as_symver_directive = yes; then
16855 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16859 if test $enable_symvers != no
; then
16860 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
=
16861 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
='#'
16863 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
='#'
16864 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
=
16867 if test $enable_symvers = gnu
; then
16868 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16869 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16871 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16872 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16875 if test $enable_symvers = sun
; then
16876 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16877 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16879 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16880 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16884 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16886 if test $enable_symvers != no
; then
16887 case ${target_os} in
16888 # The Solaris 2 runtime linker doesn't support the GNU extension of
16889 # binding the same symbol to different versions
16892 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16895 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16902 if test $enable_symvers = gnu
; then
16904 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16908 # Determine cpu count to limit testsuite parallelism.
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16910 $as_echo_n "checking the number of available CPUs... " >&6; }
16913 # Try generic methods
16915 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16916 # 'NPROCESSORS_ONLN' are platform-specific
16917 command -v getconf
>/dev
/null
2>&1 && \
16918 CPU_COUNT
=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT
="0"
16919 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v nproc
>/dev
/null
2>&1; then :
16922 # 'nproc' is part of GNU Coreutils and is widely available
16923 CPU_COUNT
=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT
=`nproc 2>/dev/null` || CPU_COUNT
="0"
16926 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16929 # Try platform-specific preferred methods
16930 case $host_os in #(
16932 CPU_COUNT
=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT
="0" ;; #(
16934 CPU_COUNT
=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT
="0" ;; #(
16936 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT
="0" ;; #(
16938 command -v sysctl
>/dev
/null
2>&1 && CPU_COUNT
=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT
="0" ;; #(
16940 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" ;; #(
16942 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16944 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16946 CPU_COUNT
=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT
="0" ;; #(
16951 if test "$CPU_COUNT" -gt "0" 2>/dev
/null ||
! command -v sysctl
>/dev
/null
2>&1; then :
16954 # Try less preferred generic method
16955 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16956 CPU_COUNT
=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT
="0"
16959 if test "$CPU_COUNT" -gt "0" 2>/dev
/null
; then :
16962 # Try platform-specific fallback methods
16963 # They can be less accurate and slower then preferred methods
16964 case $host_os in #(
16966 CPU_COUNT
=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT
="0" ;; #(
16968 CPU_COUNT
=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT
="0" ;; #(
16970 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16972 CPU_COUNT
=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16973 CPU_COUNT
=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT
="0" ;; #(
16975 command -v kstat
>/dev
/null
2>&1 && CPU_COUNT
=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16976 CPU_COUNT
=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT
="0" ;; #(
16978 if CPU_COUNT
=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16981 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS"
16984 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16986 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev
/null
&& CPU_COUNT
="$NUMBER_OF_PROCESSORS" ;; #(
16991 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev
/null
; then :
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16993 $as_echo "$CPU_COUNT" >&6; }
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16998 $as_echo "unable to detect (assuming 1)" >&6; }
17003 # Get target configury.
17004 .
${srcdir}/configure.tgt
17005 CFLAGS
="$save_CFLAGS $XCFLAGS"
17007 # Check for __sync_val_compare_and_swap, but only after the target has
17008 # had a chance to set XCFLAGS.
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17011 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17012 if ${libgomp_cv_have_sync_builtins+:} false
; then :
17013 $as_echo_n "(cached) " >&6
17016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17022 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
17027 if ac_fn_c_try_link
"$LINENO"; then :
17028 libgomp_cv_have_sync_builtins
=yes
17030 libgomp_cv_have_sync_builtins
=no
17032 rm -f core conftest.err conftest.
$ac_objext \
17033 conftest
$ac_exeext conftest.
$ac_ext
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
17036 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
17037 if test $libgomp_cv_have_sync_builtins = yes; then
17039 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17043 XCFLAGS
="$XCFLAGS$XPCFLAGS"
17045 # Add CET specific flags if CET is enabled
17046 # Check whether --enable-cet was given.
17047 if test "${enable_cet+set}" = set; then :
17048 enableval
=$enable_cet;
17049 case "$enableval" in
17051 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17060 $as_echo_n "checking for CET support... " >&6; }
17063 i
[34567]86-*-linux* | x86_64-
*-linux*)
17064 case "$enable_cet" in
17066 # Check if target supports multi-byte NOPs
17067 # and if assembler supports CET insn.
17068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17075 #if !defined(__SSE2__)
17076 #error target does not support multi-byte NOPs
17085 if ac_fn_c_try_compile
"$LINENO"; then :
17090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17093 # Check if assembler supports CET.
17094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17105 if ac_fn_c_try_compile
"$LINENO"; then :
17108 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
17110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17118 if test x
$enable_cet = xyes
; then
17119 CET_FLAGS
="-fcf-protection -mshstk"
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17124 $as_echo "no" >&6; }
17127 XCFLAGS
="$XCFLAGS $CET_FLAGS"
17128 FCFLAGS
="$FCFLAGS $CET_FLAGS"
17134 # Cleanup and exit.
17135 CFLAGS
="$save_CFLAGS"
17136 cat >confcache
<<\_ACEOF
17137 # This file is a shell script that caches the results of configure
17138 # tests run on this system so they can be shared between configure
17139 # scripts and configure runs, see configure's option --config-cache.
17140 # It is not useful on other systems. If it contains results you don't
17141 # want to keep, you may remove or edit it.
17143 # config.status only pays attention to the cache file if you give it
17144 # the --recheck option to rerun configure.
17146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17148 # following values.
17152 # The following way of writing the cache mishandles newlines in values,
17153 # but we know of no workaround that is simple, portable, and efficient.
17154 # So, we kill variables containing newlines.
17155 # Ultrix sh set writes to stderr and can't be redirected directly,
17156 # and sets the high bit in the cache file unless we assign to the vars.
17158 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17159 eval ac_val
=\$
$ac_var
17163 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17167 _ | IFS | as_nl
) ;; #(
17168 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17169 *) { eval $ac_var=; unset $ac_var;} ;;
17175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17176 *${as_nl}ac_space
=\
*)
17177 # `set' does not quote correctly, so add quotes: double-quote
17178 # substitution turns \\\\ into \\, and sed turns \\ into \.
17181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17184 # `set' quotes correctly as required by POSIX, so do not add quotes.
17185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17198 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17199 if test -w "$cache_file"; then
17200 if test "x$cache_file" != "x/dev/null"; then
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17202 $as_echo "$as_me: updating cache $cache_file" >&6;}
17203 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17204 cat confcache
>"$cache_file"
17206 case $cache_file in #(
17208 mv -f confcache
"$cache_file"$$
&&
17209 mv -f "$cache_file"$$
"$cache_file" ;; #(
17211 mv -f confcache
"$cache_file" ;;
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17217 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17222 if test ${multilib} = yes; then
17223 multilib_arg
="--enable-multilib"
17228 # Set up the set of libraries that we need to link against for libgomp.
17229 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
17230 # which will force linkage against -lpthread (or equivalent for the system).
17231 # That's not 100% ideal, but about the best we can do easily.
17232 if test $enable_shared = yes; then
17233 link_gomp
="-lgomp %{static: $LIBS}"
17235 link_gomp
="-lgomp $LIBS"
17239 if test "$ac_cv_fc_compiler_gnu" = yes; then
17241 USE_FORTRAN_FALSE
='#'
17243 USE_FORTRAN_TRUE
='#'
17248 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17249 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
17250 # the underscore here and update the PREREQ. If it doesn't, then we'll
17251 # need to copy this macro to our acinclude.m4.
17252 save_CFLAGS
="$CFLAGS"
17253 for i
in $config_path; do
17254 if test -f $srcdir/config
/$i/omp-lock.h
; then
17255 CFLAGS
="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17260 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
17263 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
17267 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
17272 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
17277 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
17282 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
17285 as_fn_error $?
"unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
17289 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
17294 if ac_fn_c_compute_int
"$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
17299 if ac_fn_c_compute_int
"$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17305 # If the lock fits in an integer, then arrange for Fortran to use that
17306 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17307 # Except that we don't have a way at present to multi-lib the installed
17308 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17310 OMP_LOCK_KIND
=$OMP_LOCK_SIZE
17311 OMP_NEST_LOCK_KIND
=$OMP_NEST_LOCK_SIZE
17312 if test $OMP_LOCK_SIZE -gt 8 ||
test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17315 if test $OMP_NEST_LOCK_SIZE -gt 8 ||
test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17316 OMP_NEST_LOCK_KIND
=8
17318 OMP_LOCK_25_KIND
=$OMP_LOCK_25_SIZE
17319 OMP_NEST_LOCK_25_KIND
=$OMP_NEST_LOCK_25_SIZE
17320 if test $OMP_LOCK_25_SIZE -gt 8 ||
test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17323 if test $OMP_NEST_LOCK_25_SIZE -gt 8 ||
test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17324 OMP_NEST_LOCK_25_KIND
=8
17339 CFLAGS
="$save_CFLAGS"
17341 # Determine what GCC version number to use in filesystem paths.
17343 get_gcc_base_ver
="cat"
17345 # Check whether --with-gcc-major-version-only was given.
17346 if test "${with_gcc_major_version_only+set}" = set; then :
17347 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
17348 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
17356 ac_config_files
="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17358 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17360 ac_config_files
="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17362 cat >confcache
<<\_ACEOF
17363 # This file is a shell script that caches the results of configure
17364 # tests run on this system so they can be shared between configure
17365 # scripts and configure runs, see configure's option --config-cache.
17366 # It is not useful on other systems. If it contains results you don't
17367 # want to keep, you may remove or edit it.
17369 # config.status only pays attention to the cache file if you give it
17370 # the --recheck option to rerun configure.
17372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17374 # following values.
17378 # The following way of writing the cache mishandles newlines in values,
17379 # but we know of no workaround that is simple, portable, and efficient.
17380 # So, we kill variables containing newlines.
17381 # Ultrix sh set writes to stderr and can't be redirected directly,
17382 # and sets the high bit in the cache file unless we assign to the vars.
17384 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17385 eval ac_val
=\$
$ac_var
17389 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17393 _ | IFS | as_nl
) ;; #(
17394 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17395 *) { eval $ac_var=; unset $ac_var;} ;;
17401 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17402 *${as_nl}ac_space
=\
*)
17403 # `set' does not quote correctly, so add quotes: double-quote
17404 # substitution turns \\\\ into \\, and sed turns \\ into \.
17407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17410 # `set' quotes correctly as required by POSIX, so do not add quotes.
17411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17420 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17422 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17424 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17425 if test -w "$cache_file"; then
17426 if test "x$cache_file" != "x/dev/null"; then
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17428 $as_echo "$as_me: updating cache $cache_file" >&6;}
17429 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17430 cat confcache
>"$cache_file"
17432 case $cache_file in #(
17434 mv -f confcache
"$cache_file"$$
&&
17435 mv -f "$cache_file"$$
"$cache_file" ;; #(
17437 mv -f confcache
"$cache_file" ;;
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17443 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17448 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17449 # Let make expand exec_prefix.
17450 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17452 DEFS
=-DHAVE_CONFIG_H
17457 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17458 # 1. Remove the extension, and $U if already installed.
17459 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17460 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17462 # will be set to the directory where LIBOBJS objects are built.
17463 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17464 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17466 LIBOBJS
=$ac_libobjs
17468 LTLIBOBJS
=$ac_ltlibobjs
17471 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17472 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
17473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17476 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17477 if test -n "$am_sleep_pid"; then
17478 # Hide warnings about reused PIDs.
17479 wait $am_sleep_pid 2>/dev
/null
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17482 $as_echo "done" >&6; }
17483 if test -n "$EXEEXT"; then
17485 am__EXEEXT_FALSE
='#'
17487 am__EXEEXT_TRUE
='#'
17491 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17492 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17495 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17496 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17499 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17500 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
17501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17503 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17504 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17507 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17508 as_fn_error $?
"conditional \"PLUGIN_NVPTX\" was never defined.
17509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17511 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17512 as_fn_error $?
"conditional \"PLUGIN_HSA\" was never defined.
17513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17515 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17516 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17519 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17520 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17523 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17524 as_fn_error $?
"conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17527 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17528 as_fn_error $?
"conditional \"USE_FORTRAN\" was never defined.
17529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17532 : "${CONFIG_STATUS=./config.status}"
17534 ac_clean_files_save
=$ac_clean_files
17535 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17537 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17539 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17541 # Generated by $as_me.
17542 # Run this file to recreate the current configuration.
17543 # Compiler output produced by configure, useful for debugging
17544 # configure, is in config.log if it exists.
17547 ac_cs_recheck=false
17550 SHELL=\${CONFIG_SHELL-$SHELL}
17553 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17554 ## -------------------- ##
17555 ## M4sh Initialization. ##
17556 ## -------------------- ##
17558 # Be more Bourne compatible
17559 DUALCASE
=1; export DUALCASE
# for MKS sh
17560 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17563 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17564 # is contrary to our usage. Disable this feature.
17565 alias -g '${1+"$@"}'='"$@"'
17566 setopt NO_GLOB_SUBST
17568 case `(set -o) 2>/dev/null` in #(
17580 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17581 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17582 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17583 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17584 # Prefer a ksh shell builtin over an external printf program on Solaris,
17585 # but without wasting forks for bash or zsh.
17586 if test -z "$BASH_VERSION$ZSH_VERSION" \
17587 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17588 as_echo='print
-r --'
17589 as_echo_n='print
-rn --'
17590 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17591 as_echo='printf %s
\n'
17592 as_echo_n='printf %s
'
17594 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17595 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17596 as_echo_n='/usr
/ucb
/echo -n'
17598 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17599 as_echo_n_body='eval
17603 expr "X$arg" : "X\\(.*\\)$as_nl";
17604 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17606 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17608 export as_echo_n_body
17609 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17611 export as_echo_body
17612 as_echo='sh
-c $as_echo_body as_echo
'
17615 # The user is always right.
17616 if test "${PATH_SEPARATOR+set}" != set; then
17618 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17619 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17626 # We need space, tab and new line, in precisely that order. Quoting is
17627 # there to prevent editors from complaining about space-tab.
17628 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17629 # splitting by setting IFS to empty value.)
17632 # Find who we are. Look in the path if we contain no directory separator.
17635 *[\\/]* ) as_myself=$0 ;;
17636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17637 for as_dir in $PATH
17640 test -z "$as_dir" && as_dir=.
17641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17647 # We did not find ourselves, most probably we were run as `sh COMMAND'
17648 # in which case we are not to be found in the path.
17649 if test "x$as_myself" = x
; then
17652 if test ! -f "$as_myself"; then
17653 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17657 # Unset variables that we do not need and which cause bugs (e.g. in
17658 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17659 # suppresses any "Segmentation fault" message there. '((' could
17660 # trigger a bug in pdksh 5.2.14.
17661 for as_var
in BASH_ENV ENV MAIL MAILPATH
17662 do eval test x\
${$as_var+set} = xset \
17663 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17676 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17679 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17680 # ----------------------------------------
17681 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17682 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17683 # script with STATUS, using 1 if that was 0.
17686 as_status
=$1; test $as_status -eq 0 && as_status
=1
17688 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17689 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17691 $as_echo "$as_me: error: $2" >&2
17692 as_fn_exit
$as_status
17696 # as_fn_set_status STATUS
17697 # -----------------------
17698 # Set $? to STATUS, without forking.
17699 as_fn_set_status
()
17702 } # as_fn_set_status
17704 # as_fn_exit STATUS
17705 # -----------------
17706 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17710 as_fn_set_status
$1
17716 # Portably unset VAR.
17719 { eval $1=; unset $1;}
17721 as_unset
=as_fn_unset
17722 # as_fn_append VAR VALUE
17723 # ----------------------
17724 # Append the text in VALUE to the end of the definition contained in VAR. Take
17725 # advantage of any shell optimizations that allow amortized linear growth over
17726 # repeated appends, instead of the typical quadratic growth present in naive
17728 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17729 eval 'as_fn_append ()
17740 # as_fn_arith ARG...
17741 # ------------------
17742 # Perform arithmetic evaluation on the ARGs, and store the result in the
17743 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17744 # must be portable across $(()) and expr.
17745 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17746 eval 'as_fn_arith ()
17753 as_val
=`expr "$@" || test $? -eq 1`
17758 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17759 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17765 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17766 as_basename
=basename
17771 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17777 as_me
=`$as_basename -- "$0" ||
17778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17779 X"$0" : 'X\(//\)$' \| \
17780 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17782 sed '/^.*\/\([^/][^/]*\)\/*$/{
17796 # Avoid depending upon Character Ranges.
17797 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17798 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17799 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17800 as_cr_digits
='0123456789'
17801 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17803 ECHO_C
= ECHO_N
= ECHO_T
=
17804 case `echo -n x` in #(((((
17806 case `echo 'xy\c'` in
17807 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17809 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17816 rm -f conf$$ conf$$.exe conf$$.
file
17817 if test -d conf$$.dir
; then
17818 rm -f conf$$.dir
/conf$$.
file
17821 mkdir conf$$.dir
2>/dev
/null
17823 if (echo >conf$$.
file) 2>/dev
/null
; then
17824 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17826 # ... but there are two gotchas:
17827 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17828 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17829 # In both cases, we have to default to `cp -pR'.
17830 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17832 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17840 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17841 rmdir conf$$.dir
2>/dev
/null
17846 # Create "$as_dir" as a directory, including parents if necessary.
17851 -*) as_dir
=.
/$as_dir;;
17853 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17857 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17858 *) as_qdir
=$as_dir;;
17860 as_dirs
="'$as_qdir' $as_dirs"
17861 as_dir
=`$as_dirname -- "$as_dir" ||
17862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17863 X"$as_dir" : 'X\(//\)[^/]' \| \
17864 X"$as_dir" : 'X\(//\)$' \| \
17865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17866 $as_echo X"$as_dir" |
17867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17871 /^X\(\/\/\)[^/].*/{
17884 test -d "$as_dir" && break
17886 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17887 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17891 if mkdir
-p .
2>/dev
/null
; then
17892 as_mkdir_p
='mkdir -p "$as_dir"'
17894 test -d .
/-p && rmdir .
/-p
17899 # as_fn_executable_p FILE
17900 # -----------------------
17901 # Test if FILE is an executable regular file.
17902 as_fn_executable_p
()
17904 test -f "$1" && test -x "$1"
17905 } # as_fn_executable_p
17906 as_test_x
='test -x'
17907 as_executable_p
=as_fn_executable_p
17909 # Sed expression to map a string onto a valid CPP name.
17910 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17912 # Sed expression to map a string onto a valid variable name.
17913 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17917 ## ----------------------------------- ##
17918 ## Main body of $CONFIG_STATUS script. ##
17919 ## ----------------------------------- ##
17921 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17924 # Save the log message, to keep $0 and so on meaningful, and to
17925 # report actual input values of CONFIG_FILES etc. instead of their
17926 # values after options handling.
17928 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17929 generated by GNU Autoconf 2.69. Invocation command line was
17931 CONFIG_FILES = $CONFIG_FILES
17932 CONFIG_HEADERS = $CONFIG_HEADERS
17933 CONFIG_LINKS = $CONFIG_LINKS
17934 CONFIG_COMMANDS = $CONFIG_COMMANDS
17937 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17942 case $ac_config_files in *"
17943 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17946 case $ac_config_headers in *"
17947 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17952 # Files that config.status was made for.
17953 config_files="$ac_config_files"
17954 config_headers="$ac_config_headers"
17955 config_commands="$ac_config_commands"
17959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17961 \`$as_me' instantiates files and other configuration actions
17962 from templates according to the current configuration. Unless the files
17963 and actions are specified as TAGs, all are instantiated by default.
17965 Usage: $0 [OPTION]... [TAG]...
17967 -h, --help print this help, then exit
17968 -V, --version print version number and configuration settings, then exit
17969 --config print configuration, then exit
17970 -q, --quiet, --silent
17971 do not print progress messages
17972 -d, --debug don't remove temporary files
17973 --recheck update $as_me by reconfiguring in the same conditions
17974 --file=FILE[:TEMPLATE]
17975 instantiate the configuration file FILE
17976 --header=FILE[:TEMPLATE]
17977 instantiate the configuration header FILE
17979 Configuration files:
17982 Configuration headers:
17985 Configuration commands:
17988 Report bugs to the package provider.
17989 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17990 General help using GNU software: <http://www.gnu.org/gethelp/>."
17993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17994 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17996 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17997 configured by $0, generated by GNU Autoconf 2.69,
17998 with options \\"\$ac_cs_config\\"
18000 Copyright (C) 2012 Free Software Foundation, Inc.
18001 This config.status script is free software; the Free Software Foundation
18002 gives unlimited permission to copy, distribute and modify it."
18009 test -n "\$AWK" || AWK=awk
18012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18013 # The default lists apply if the user does not specify any file.
18019 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18020 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18024 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18036 # Handling of the options.
18037 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18039 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18040 $as_echo "$ac_cs_version"; exit ;;
18041 --config |
--confi |
--conf |
--con |
--co |
--c )
18042 $as_echo "$ac_cs_config"; exit ;;
18043 --debug |
--debu |
--deb |
--de |
--d |
-d )
18045 --file |
--fil |
--fi |
--f )
18048 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18049 '') as_fn_error $?
"missing file argument" ;;
18051 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18052 ac_need_defaults
=false
;;
18053 --header |
--heade |
--head |
--hea )
18056 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18058 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18059 ac_need_defaults
=false
;;
18061 # Conflict between --help and --header
18062 as_fn_error $?
"ambiguous option: \`$1'
18063 Try \`$0 --help' for more information.";;
18064 --help |
--hel |
-h )
18065 $as_echo "$ac_cs_usage"; exit ;;
18066 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18067 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18070 # This is an error.
18071 -*) as_fn_error $?
"unrecognized option: \`$1'
18072 Try \`$0 --help' for more information." ;;
18074 *) as_fn_append ac_config_targets
" $1"
18075 ac_need_defaults
=false
;;
18081 ac_configure_extra_args
=
18083 if $ac_cs_silent; then
18085 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18090 if \$ac_cs_recheck; then
18091 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18093 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18094 CONFIG_SHELL='$SHELL'
18095 export CONFIG_SHELL
18100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18105 ## Running $as_me. ##
18111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18119 with_multisubdir="$with_multisubdir"
18120 with_multisrctop="$with_multisrctop"
18121 with_target_subdir="$with_target_subdir"
18122 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18123 multi_basedir="$multi_basedir"
18124 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18127 GFORTRAN="$GFORTRAN"
18129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18132 # The HP-UX ksh and POSIX shell print the target directory to stdout
18133 # if CDPATH is set.
18134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18136 sed_quote_subst='$sed_quote_subst'
18137 double_quote_subst='$double_quote_subst'
18138 delay_variable_subst='$delay_variable_subst'
18139 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18140 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18141 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18142 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18143 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18144 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18145 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18146 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18147 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18148 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18149 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18150 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18151 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18152 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18153 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18154 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18155 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18156 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18157 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18158 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18159 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18160 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18161 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18162 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18163 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18164 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18165 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18166 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18167 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18168 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18169 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18170 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18171 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18172 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18173 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18174 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18175 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18176 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18177 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18178 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18179 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18180 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18181 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18182 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18183 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18184 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18185 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18186 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18187 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"`'
18188 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18189 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18190 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18191 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18192 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18193 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18194 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18195 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18196 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18197 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18198 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18199 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18200 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18201 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18202 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18203 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18204 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18205 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18206 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18207 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18208 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18209 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18210 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18211 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18212 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18213 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18214 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18215 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18216 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18217 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18218 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18219 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18220 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18221 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18222 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18223 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18224 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18225 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18226 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18227 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18228 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18229 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18230 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18231 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18232 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18233 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18234 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18235 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18236 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18237 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18238 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18239 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18240 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18241 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18242 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18243 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18244 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18245 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18246 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18247 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18248 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18249 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18250 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18251 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18252 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18253 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18254 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18255 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18256 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18257 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18258 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18259 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18260 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18261 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18262 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18263 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18264 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18265 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18266 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18267 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18268 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18269 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18270 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18271 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18272 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18273 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18274 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18275 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18276 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18277 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18278 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18279 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18280 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18281 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18282 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18283 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18284 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18285 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18286 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18287 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18288 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18289 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18290 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18291 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18292 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18293 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18294 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18295 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18296 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18297 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18298 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18299 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18300 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18301 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18302 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18303 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18304 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18305 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18306 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18307 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18308 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18309 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18310 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18311 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18312 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18313 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18316 LTCFLAGS='$LTCFLAGS'
18317 compiler='$compiler_DEFAULT'
18319 # A function that is used when there is no print builtin or printf.
18320 func_fallback_echo ()
18322 eval 'cat <<_LTECHO_EOF
18327 # Quote evaled strings.
18341 deplibs_check_method \
18350 lt_cv_sys_global_symbol_pipe \
18351 lt_cv_sys_global_symbol_to_cdecl \
18352 lt_cv_sys_global_symbol_to_c_name_address \
18353 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18354 lt_prog_compiler_no_builtin_flag \
18355 lt_prog_compiler_wl \
18356 lt_prog_compiler_pic \
18357 lt_prog_compiler_static \
18358 lt_cv_prog_compiler_c_o \
18366 export_dynamic_flag_spec \
18367 whole_archive_flag_spec \
18368 compiler_needs_object \
18370 allow_undefined_flag \
18371 no_undefined_flag \
18372 hardcode_libdir_flag_spec \
18373 hardcode_libdir_flag_spec_ld \
18374 hardcode_libdir_separator \
18379 variables_saved_for_relink \
18381 library_names_spec \
18383 install_override_mode \
18387 compiler_lib_search_dirs \
18392 compiler_lib_search_path \
18396 lt_prog_compiler_no_builtin_flag_FC \
18397 lt_prog_compiler_wl_FC \
18398 lt_prog_compiler_pic_FC \
18399 lt_prog_compiler_static_FC \
18400 lt_cv_prog_compiler_c_o_FC \
18401 export_dynamic_flag_spec_FC \
18402 whole_archive_flag_spec_FC \
18403 compiler_needs_object_FC \
18405 allow_undefined_flag_FC \
18406 no_undefined_flag_FC \
18407 hardcode_libdir_flag_spec_FC \
18408 hardcode_libdir_flag_spec_ld_FC \
18409 hardcode_libdir_separator_FC \
18410 fix_srcfile_path_FC \
18411 exclude_expsyms_FC \
18412 include_expsyms_FC \
18413 file_list_spec_FC \
18414 compiler_lib_search_dirs_FC \
18415 predep_objects_FC \
18416 postdep_objects_FC \
18419 compiler_lib_search_path_FC; do
18420 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18421 *[\\\\\\\`\\"\\\$]*)
18422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18430 # Double-quote double-evaled strings.
18431 for var in reload_cmds \
18432 old_postinstall_cmds \
18433 old_postuninstall_cmds \
18435 extract_expsyms_cmds \
18436 old_archive_from_new_cmds \
18437 old_archive_from_expsyms_cmds \
18439 archive_expsym_cmds \
18441 module_expsym_cmds \
18442 export_symbols_cmds \
18445 postuninstall_cmds \
18447 sys_lib_search_path_spec \
18448 sys_lib_dlsearch_path_spec \
18450 old_archive_cmds_FC \
18451 old_archive_from_new_cmds_FC \
18452 old_archive_from_expsyms_cmds_FC \
18454 archive_expsym_cmds_FC \
18456 module_expsym_cmds_FC \
18457 export_symbols_cmds_FC \
18458 prelink_cmds_FC; do
18459 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18460 *[\\\\\\\`\\"\\\$]*)
18461 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18464 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18469 ac_aux_dir='$ac_aux_dir'
18470 xsi_shell='$xsi_shell'
18471 lt_shell_append='$lt_shell_append'
18473 # See if we are running on zsh, and set the options which allow our
18474 # commands through without removal of \ escapes INIT.
18475 if test -n "\${ZSH_VERSION+set}" ; then
18476 setopt NO_GLOB_SUBST
18482 TIMESTAMP='$TIMESTAMP'
18493 acx_cv_header_stdint="$acx_cv_header_stdint"
18494 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18495 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18496 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18497 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18498 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18499 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18500 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18501 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18502 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18503 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18504 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18505 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18506 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18513 # Handling of arguments.
18514 for ac_config_target
in $ac_config_targets
18516 case $ac_config_target in
18517 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18518 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18519 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18520 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18521 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
18522 "omp.h") CONFIG_FILES
="$CONFIG_FILES omp.h" ;;
18523 "omp_lib.h") CONFIG_FILES
="$CONFIG_FILES omp_lib.h" ;;
18524 "omp_lib.f90") CONFIG_FILES
="$CONFIG_FILES omp_lib.f90" ;;
18525 "libgomp_f.h") CONFIG_FILES
="$CONFIG_FILES libgomp_f.h" ;;
18526 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18527 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18528 "libgomp.spec") CONFIG_FILES
="$CONFIG_FILES libgomp.spec" ;;
18529 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18531 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18536 # If the user did not use the arguments to specify the items to instantiate,
18537 # then the envvar interface is used. Set only those that are not.
18538 # We use the long form for the default assignment because of an extremely
18539 # bizarre bug on SunOS 4.1.3.
18540 if $ac_need_defaults; then
18541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18543 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18546 # Have a temporary directory for convenience. Make it in the build tree
18547 # simply because there is no reason against having it here, and in addition,
18548 # creating and moving files from /tmp can sometimes cause problems.
18549 # Hook for its removal unless debugging.
18550 # Note that there is a small window in which the directory will not be cleaned:
18551 # after its creation but before its name has been assigned to `$tmp'.
18555 trap 'exit_status=$?
18556 : "${ac_tmp:=$tmp}"
18557 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18559 trap 'as_fn_exit 1' 1 2 13 15
18561 # Create a (secure) tmp directory for tmp files.
18564 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18568 tmp
=.
/conf$$
-$RANDOM
18569 (umask 077 && mkdir
"$tmp")
18570 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18573 # Set up the scripts for CONFIG_FILES section.
18574 # No need to generate them if there are no CONFIG_FILES.
18575 # This happens for instance with `./config.status config.h'.
18576 if test -n "$CONFIG_FILES"; then
18579 ac_cr
=`echo X | tr X '\015'`
18580 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18581 # But we know of no other shell where ac_cr would be empty at this
18582 # point, so we can use a bashism as a fallback.
18583 if test "x$ac_cr" = x
; then
18584 eval ac_cr
=\$
\'\\r
\'
18586 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18587 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18590 ac_cs_awk_cr
=$ac_cr
18593 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18598 echo "cat >conf$$subs.awk <<_ACEOF" &&
18599 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18601 } >conf$$subs.sh ||
18602 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18605 for ac_last_try in false false false false false :; do
18606 . ./conf$$subs.sh ||
18607 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18609 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18610 if test $ac_delim_n = $ac_delim_num; then
18612 elif $ac_last_try; then
18613 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18615 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18618 rm -f conf$$subs.sh
18620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18621 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18625 s/^/S["/; s
/!.
*/"]=/
18635 s/\(.\{148\}\)..*/\1/
18637 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18642 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18649 s/\(.\{148\}\)..*/\1/
18651 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18655 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18660 ' <conf$$subs.awk | sed '
18665 ' >>$CONFIG_STATUS || ac_write_fail=1
18666 rm -f conf$$subs.awk
18667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18669 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18670 for (key in S) S_is_set[key] = 1
18676 nfields = split(line, field, "@
")
18678 len = length(field[1])
18679 for (i = 2; i < nfields; i++) {
18681 keylen = length(key)
18682 if (S_is_set[key]) {
18684 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18685 len += length(value) + length(field[++i])
18696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18697 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18698 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18701 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18702 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18705 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18706 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18707 # trailing colons and then remove the whole line if VPATH becomes empty
18708 # (actually we leave an empty line to preserve line numbers).
18709 if test "x
$srcdir" = x.; then
18710 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18729 fi # test -n "$CONFIG_FILES"
18731 # Set up the scripts for CONFIG_HEADERS section.
18732 # No need to generate them if there are no CONFIG_HEADERS.
18733 # This happens for instance with `./config.status Makefile'.
18734 if test -n "$CONFIG_HEADERS"; then
18735 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18739 # Transform confdefs.h into an awk script `defines.awk', embedded as
18740 # here-document in config.status, that substitutes the proper values into
18741 # config.h.in to produce config.h.
18743 # Create a delimiter string that does not exist in confdefs.h, to ease
18744 # handling of long lines.
18746 for ac_last_try in false false :; do
18747 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18748 if test -z "$ac_tt"; then
18750 elif $ac_last_try; then
18751 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18753 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18757 # For the awk script, D is an array of macro values keyed by name,
18758 # likewise P contains macro parameters if any. Preserve backslash
18759 # newline sequences.
18761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18763 s/.\{148\}/&'"$ac_delim"'/g
18766 s/^[ ]*#[ ]*define[ ][ ]*/ /
18773 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18775 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18780 D["\
1"]=" \
3\\\\\\n
"\\/p
18782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18787 s/.\{148\}/&'"$ac_delim"'/g
18792 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18795 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18797 ' <confdefs.h | sed '
18798 s/'"$ac_delim"'/"\\\
18799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18802 for (key in D) D_is_set[key] = 1
18805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18807 split(line, arg, " ")
18808 if (arg[1] == "#") {
18812 defundef
= substr
(arg
[1], 2)
18815 split(mac1
, mac2
, "(") #)
18817 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18818 if (D_is_set
[macro
]) {
18819 # Preserve the white space surrounding the "#".
18820 print prefix
"define", macro P
[macro
] D
[macro
]
18823 # Replace #undef with comments. This is necessary, for example,
18824 # in the case of _POSIX_SOURCE, which is predefined and required
18825 # on some systems where configure will not decide to define it.
18826 if (defundef
== "undef") {
18827 print
"/*", prefix defundef
, macro
, "*/"
18835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18836 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18837 fi # test -n "$CONFIG_HEADERS"
18840 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18845 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18847 case $ac_mode$ac_tag in
18849 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18850 :[FH
]-) ac_tag
=-:-;;
18851 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18868 -) ac_f
="$ac_tmp/stdin";;
18869 *) # Look for the file first in the build tree, then in the source tree
18870 # (if the path is not absolute). The absolute path cannot be DOS-style,
18871 # because $ac_f cannot contain `:'.
18875 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18877 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18879 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18880 as_fn_append ac_file_inputs
" '$ac_f'"
18883 # Let's still pretend it is `configure' which instantiates (i.e., don't
18884 # use $as_me), people would be surprised to read:
18885 # /* config.h. Generated by config.status. */
18886 configure_input
='Generated from '`
18887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18889 if test x
"$ac_file" != x-
; then
18890 configure_input
="$ac_file. $configure_input"
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18892 $as_echo "$as_me: creating $ac_file" >&6;}
18894 # Neutralize special characters interpreted by sed in replacement strings.
18895 case $configure_input in #(
18896 *\
&* |
*\|
* |
*\\* )
18897 ac_sed_conf_input
=`$as_echo "$configure_input" |
18898 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18899 *) ac_sed_conf_input
=$configure_input;;
18903 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18904 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18909 ac_dir
=`$as_dirname -- "$ac_file" ||
18910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18911 X"$ac_file" : 'X\(//\)[^/]' \| \
18912 X"$ac_file" : 'X\(//\)$' \| \
18913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18914 $as_echo X"$ac_file" |
18915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18919 /^X\(\/\/\)[^/].*/{
18932 as_dir
="$ac_dir"; as_fn_mkdir_p
18936 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18938 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18939 # A ".." for each directory in $ac_dir_suffix.
18940 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18941 case $ac_top_builddir_sub in
18942 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18943 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18946 ac_abs_top_builddir
=$ac_pwd
18947 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18948 # for backward compatibility:
18949 ac_top_builddir
=$ac_top_build_prefix
18952 .
) # We are building in place.
18954 ac_top_srcdir
=$ac_top_builddir_sub
18955 ac_abs_top_srcdir
=$ac_pwd ;;
18956 [\\/]* | ?
:[\\/]* ) # Absolute name.
18957 ac_srcdir
=$srcdir$ac_dir_suffix;
18958 ac_top_srcdir
=$srcdir
18959 ac_abs_top_srcdir
=$srcdir ;;
18960 *) # Relative name.
18961 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18962 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18963 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18965 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18975 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18976 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18978 ac_MKDIR_P
=$MKDIR_P
18980 [\\/$
]* | ?
:[\\/]* ) ;;
18981 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18986 # If the template does not know about datarootdir, expand it.
18987 # FIXME: This hack should be removed a few years after 2.60.
18988 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18999 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19000 *datarootdir
*) ac_datarootdir_seen
=yes;;
19001 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19003 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19006 ac_datarootdir_hack='
19007 s&@datadir@&$datadir&g
19008 s&@docdir@&$docdir&g
19009 s&@infodir@&$infodir&g
19010 s&@localedir@&$localedir&g
19011 s&@mandir@&$mandir&g
19012 s&\\\${datarootdir}&$datarootdir&g' ;;
19016 # Neutralize VPATH when `$srcdir' = `.'.
19017 # Shell code in configure.ac might set extrasub.
19018 # FIXME: do we really want to maintain this feature?
19019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19020 ac_sed_extra="$ac_vpsub
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19025 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19026 s|@configure_input@|
$ac_sed_conf_input|
;t t
19027 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19028 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19029 s
&@srcdir@
&$ac_srcdir&;t t
19030 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19031 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19032 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19033 s
&@builddir@
&$ac_builddir&;t t
19034 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19035 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19036 s
&@INSTALL@
&$ac_INSTALL&;t t
19037 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19038 $ac_datarootdir_hack
19040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
19041 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19044 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19046 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19048 which seems to be undefined. Please make sure it is defined" >&5
19049 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19050 which seems to be undefined. Please make sure it is defined" >&2;}
19052 rm -f "$ac_tmp/stdin"
19054 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19055 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19063 if test x"$ac_file" != x-; then
19065 $as_echo "/* $configure_input */" \
19066 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19067 } >"$ac_tmp/config.h" \
19068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19069 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19071 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19074 mv "$ac_tmp/config.h" "$ac_file" \
19075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19078 $as_echo "/* $configure_input */" \
19079 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19080 || as_fn_error $? "could not create -" "$LINENO" 5
19082 # Compute "$ac_file"'s index
in $config_headers.
19085 for _am_header
in $config_headers :; do
19086 case $_am_header in
19087 $_am_arg |
$_am_arg:* )
19090 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19093 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19094 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19095 X"$_am_arg" : 'X\(//\)[^/]' \| \
19096 X"$_am_arg" : 'X\(//\)$' \| \
19097 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19098 $as_echo X"$_am_arg" |
19099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19103 /^X\(\/\/\)[^/].*/{
19115 s/.*/./; q'`/stamp-h
$_am_stamp_count
19118 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19119 $as_echo "$as_me: executing $ac_file commands" >&6;}
19124 case $ac_file$ac_mode in
19126 # Only add multilib support code if we just rebuilt the top-level
19128 case " $CONFIG_FILES " in
19130 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
19133 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19134 # Older Autoconf quotes --file arguments for eval, but not when files
19135 # are listed without --file. Let's play safe and only enable the eval
19136 # if we detect the quoting.
19137 case $CONFIG_FILES in
19138 *\'*) eval set x
"$CONFIG_FILES" ;;
19139 *) set x
$CONFIG_FILES ;;
19144 # Strip MF so we end up with the name of the file.
19145 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19146 # Check whether this is an Automake generated Makefile or not.
19147 # We used to match only the files named 'Makefile.in', but
19148 # some people rename them; so instead we look at the file content.
19149 # Grep'ing the first line is not enough: some people post-process
19150 # each Makefile.in and add a new line on top of each file to say so.
19151 # Grep'ing the whole file is not good either: AIX grep has a line
19152 # limit of 2048, but all sed's we know have understand at least 4000.
19153 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19154 dirpart
=`$as_dirname -- "$mf" ||
19155 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19156 X"$mf" : 'X\(//\)[^/]' \| \
19157 X"$mf" : 'X\(//\)$' \| \
19158 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19164 /^X\(\/\/\)[^/].*/{
19180 # Extract the definition of DEPDIR, am__include, and am__quote
19181 # from the Makefile without running 'make'.
19182 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19183 test -z "$DEPDIR" && continue
19184 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19185 test -z "$am__include" && continue
19186 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19187 # Find all dependency output files, they are included files with
19188 # $(DEPDIR) in their names. We invoke sed twice because it is the
19189 # simplest approach to changing $(DEPDIR) to its actual value in the
19191 for file in `sed -n "
19192 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19193 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19194 # Make sure the directory exists.
19195 test -f "$dirpart/$file" && continue
19196 fdir
=`$as_dirname -- "$file" ||
19197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19198 X"$file" : 'X\(//\)[^/]' \| \
19199 X"$file" : 'X\(//\)$' \| \
19200 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19201 $as_echo X"$file" |
19202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19206 /^X\(\/\/\)[^/].*/{
19219 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19220 # echo "creating $dirpart/$file"
19221 echo '# dummy' > "$dirpart/$file"
19228 # See if we are running on zsh, and set the options which allow our
19229 # commands through without removal of \ escapes.
19230 if test -n "${ZSH_VERSION+set}" ; then
19231 setopt NO_GLOB_SUBST
19234 cfgfile
="${ofile}T"
19235 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19238 cat <<_LT_EOF >> "$cfgfile"
19241 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19242 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19244 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19246 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19247 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19248 # Written by Gordon Matzigkeit, 1996
19250 # This file is part of GNU Libtool.
19252 # GNU Libtool is free software; you can redistribute it and/or
19253 # modify it under the terms of the GNU General Public License as
19254 # published by the Free Software Foundation; either version 2 of
19255 # the License, or (at your option) any later version.
19257 # As a special exception to the GNU General Public License,
19258 # if you distribute this file as part of a program or library that
19259 # is built using GNU Libtool, you may include this file under the
19260 # same distribution terms that you use for the rest of that program.
19262 # GNU Libtool is distributed in the hope that it will be useful,
19263 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19264 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19265 # GNU General Public License for more details.
19267 # You should have received a copy of the GNU General Public License
19268 # along with GNU Libtool; see the file COPYING. If not, a copy
19269 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19270 # obtained by writing to the Free Software Foundation, Inc.,
19271 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19274 # The names of the tagged configurations supported by this script.
19275 available_tags="FC "
19277 # ### BEGIN LIBTOOL CONFIG
19279 # Which release of libtool.m4 was used?
19280 macro_version=$macro_version
19281 macro_revision=$macro_revision
19283 # Whether or not to build shared libraries.
19284 build_libtool_libs=$enable_shared
19286 # Whether or not to build static libraries.
19287 build_old_libs=$enable_static
19289 # What type of objects to build.
19292 # Whether or not to optimize for fast installation.
19293 fast_install=$enable_fast_install
19295 # Shell to use when invoking shell scripts.
19298 # An echo program that protects backslashes.
19302 host_alias=$host_alias
19306 # The build system.
19307 build_alias=$build_alias
19311 # A sed program that does not truncate output.
19314 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19315 Xsed="\$SED -e 1s/^X//"
19317 # A grep program that handles long lines.
19323 # A literal string matcher.
19326 # A BSD- or MS-compatible name lister.
19329 # Whether we need soft or hard links.
19332 # What is the maximum length of a command?
19333 max_cmd_len=$max_cmd_len
19335 # Object file suffix (normally "o").
19338 # Executable file suffix (normally "").
19341 # whether the shell understands "unset".
19344 # turn spaces into newlines.
19347 # turn newlines into spaces.
19350 # An object symbol dumper.
19351 OBJDUMP=$lt_OBJDUMP
19353 # Method to check whether dependent libraries are shared objects.
19354 deplibs_check_method=$lt_deplibs_check_method
19356 # Command to use when deplibs_check_method == "file_magic".
19357 file_magic_cmd=$lt_file_magic_cmd
19361 AR_FLAGS=$lt_AR_FLAGS
19363 # A symbol stripping program.
19366 # Commands used to install an old-style archive.
19368 old_postinstall_cmds=$lt_old_postinstall_cmds
19369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19371 # Whether to use a lock for old archive extraction.
19372 lock_old_archive_extraction=$lock_old_archive_extraction
19377 # LTCC compiler flags.
19378 LTCFLAGS=$lt_CFLAGS
19380 # Take the output of nm and produce a listing of raw symbols and C names.
19381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19383 # Transform the output of nm in a proper C declaration.
19384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19386 # Transform the output of nm in a C name address pair.
19387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19389 # Transform the output of nm in a C name address pair when lib prefix is needed.
19390 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19392 # The name of the directory that contains temporary libtool files.
19395 # Used to examine libraries when file_magic_cmd begins with "file".
19396 MAGIC_CMD=$MAGIC_CMD
19398 # Must we lock files when doing compilation?
19399 need_locks=$lt_need_locks
19401 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19402 DSYMUTIL=$lt_DSYMUTIL
19404 # Tool to change global to local symbols on Mac OS X.
19407 # Tool to manipulate fat objects and archives on Mac OS X.
19410 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19413 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19414 OTOOL64=$lt_OTOOL64
19416 # Old archive suffix (normally "a").
19419 # Shared library suffix (normally ".so").
19420 shrext_cmds=$lt_shrext_cmds
19422 # The commands to extract the exported symbol list from a shared archive.
19423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19425 # Variables whose values should be saved in libtool wrapper scripts and
19426 # restored at link time.
19427 variables_saved_for_relink=$lt_variables_saved_for_relink
19429 # Do we need the "lib" prefix for modules?
19430 need_lib_prefix=$need_lib_prefix
19432 # Do we need a version for libraries?
19433 need_version=$need_version
19435 # Library versioning type.
19436 version_type=$version_type
19438 # Shared library runtime path variable.
19439 runpath_var=$runpath_var
19441 # Shared library path variable.
19442 shlibpath_var=$shlibpath_var
19444 # Is shlibpath searched before the hard-coded library search path?
19445 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19447 # Format of library name prefix.
19448 libname_spec=$lt_libname_spec
19450 # List of archive names. First name is the real one, the rest are links.
19451 # The last name is the one that the linker finds with -lNAME
19452 library_names_spec=$lt_library_names_spec
19454 # The coded name of the library, if different from the real name.
19455 soname_spec=$lt_soname_spec
19457 # Permission mode override for installation of shared libraries.
19458 install_override_mode=$lt_install_override_mode
19460 # Command to use after installation of a shared archive.
19461 postinstall_cmds=$lt_postinstall_cmds
19463 # Command to use after uninstallation of a shared archive.
19464 postuninstall_cmds=$lt_postuninstall_cmds
19466 # Commands used to finish a libtool library installation in a directory.
19467 finish_cmds=$lt_finish_cmds
19469 # As "finish_cmds", except a single script fragment to be evaled but
19471 finish_eval=$lt_finish_eval
19473 # Whether we should hardcode library paths into libraries.
19474 hardcode_into_libs=$hardcode_into_libs
19476 # Compile-time system search path for libraries.
19477 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19479 # Run-time system search path for libraries.
19480 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19482 # Whether dlopen is supported.
19483 dlopen_support=$enable_dlopen
19485 # Whether dlopen of programs is supported.
19486 dlopen_self=$enable_dlopen_self
19488 # Whether dlopen of statically linked programs is supported.
19489 dlopen_self_static=$enable_dlopen_self_static
19491 # Commands to strip libraries.
19492 old_striplib=$lt_old_striplib
19493 striplib=$lt_striplib
19496 # The linker used to build libraries.
19499 # How to create reloadable object files.
19500 reload_flag=$lt_reload_flag
19501 reload_cmds=$lt_reload_cmds
19503 # Commands used to build an old-style archive.
19504 old_archive_cmds=$lt_old_archive_cmds
19506 # A language specific compiler.
19509 # Is the compiler the GNU compiler?
19512 # Compiler flag to turn off builtin functions.
19513 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19515 # How to pass a linker flag through the compiler.
19516 wl=$lt_lt_prog_compiler_wl
19518 # Additional compiler flags for building library objects.
19519 pic_flag=$lt_lt_prog_compiler_pic
19521 # Compiler flag to prevent dynamic linking.
19522 link_static_flag=$lt_lt_prog_compiler_static
19524 # Does compiler simultaneously support -c and -o options?
19525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19527 # Whether or not to add -lc for building shared libraries.
19528 build_libtool_need_lc=$archive_cmds_need_lc
19530 # Whether or not to disallow shared libs when runtime libs are static.
19531 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19533 # Compiler flag to allow reflexive dlopens.
19534 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19536 # Compiler flag to generate shared objects directly from archives.
19537 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19539 # Whether the compiler copes with passing no objects directly.
19540 compiler_needs_object=$lt_compiler_needs_object
19542 # Create an old-style archive from a shared archive.
19543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19545 # Create a temporary old-style archive to link instead of a shared archive.
19546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19548 # Commands used to build a shared archive.
19549 archive_cmds=$lt_archive_cmds
19550 archive_expsym_cmds=$lt_archive_expsym_cmds
19552 # Commands used to build a loadable module if different from building
19553 # a shared archive.
19554 module_cmds=$lt_module_cmds
19555 module_expsym_cmds=$lt_module_expsym_cmds
19557 # Whether we are building with GNU ld or not.
19558 with_gnu_ld=$lt_with_gnu_ld
19560 # Flag that allows shared libraries with undefined symbols to be built.
19561 allow_undefined_flag=$lt_allow_undefined_flag
19563 # Flag that enforces no undefined symbols.
19564 no_undefined_flag=$lt_no_undefined_flag
19566 # Flag to hardcode \$libdir into a binary during linking.
19567 # This must work even if \$libdir does not exist
19568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19570 # If ld is used when linking, flag to hardcode \$libdir into a binary
19571 # during linking. This must work even if \$libdir does not exist.
19572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19574 # Whether we need a single "-rpath" flag with a separated argument.
19575 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19577 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19578 # DIR into the resulting binary.
19579 hardcode_direct=$hardcode_direct
19581 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19582 # DIR into the resulting binary and the resulting library dependency is
19583 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19584 # library is relocated.
19585 hardcode_direct_absolute=$hardcode_direct_absolute
19587 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19588 # into the resulting binary.
19589 hardcode_minus_L=$hardcode_minus_L
19591 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19592 # into the resulting binary.
19593 hardcode_shlibpath_var=$hardcode_shlibpath_var
19595 # Set to "yes" if building a shared library automatically hardcodes DIR
19596 # into the library and all subsequent libraries and executables linked
19598 hardcode_automatic=$hardcode_automatic
19600 # Set to yes if linker adds runtime paths of dependent libraries
19601 # to runtime path list.
19602 inherit_rpath=$inherit_rpath
19604 # Whether libtool must link a program against all its dependency libraries.
19605 link_all_deplibs=$link_all_deplibs
19607 # Fix the shell variable \$srcfile for the compiler.
19608 fix_srcfile_path=$lt_fix_srcfile_path
19610 # Set to "yes" if exported symbols are required.
19611 always_export_symbols=$always_export_symbols
19613 # The commands to list exported symbols.
19614 export_symbols_cmds=$lt_export_symbols_cmds
19616 # Symbols that should not be listed in the preloaded symbols.
19617 exclude_expsyms=$lt_exclude_expsyms
19619 # Symbols that must always be exported.
19620 include_expsyms=$lt_include_expsyms
19622 # Commands necessary for linking programs (against libraries) with templates.
19623 prelink_cmds=$lt_prelink_cmds
19625 # Specify filename containing input files.
19626 file_list_spec=$lt_file_list_spec
19628 # How to hardcode a shared library path into an executable.
19629 hardcode_action=$hardcode_action
19631 # The directories searched by this compiler when creating a shared library.
19632 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19634 # Dependencies to place before and after the objects being linked to
19635 # create a shared library.
19636 predep_objects=$lt_predep_objects
19637 postdep_objects=$lt_postdep_objects
19638 predeps=$lt_predeps
19639 postdeps=$lt_postdeps
19641 # The library search path used internally by the compiler when linking
19642 # a shared library.
19643 compiler_lib_search_path=$lt_compiler_lib_search_path
19645 # ### END LIBTOOL CONFIG
19651 cat <<\_LT_EOF
>> "$cfgfile"
19652 # AIX sometimes has problems with the GCC collect2 program. For some
19653 # reason, if we set the COLLECT_NAMES environment variable, the problems
19654 # vanish in a puff of smoke.
19655 if test "X${COLLECT_NAMES+set}" != Xset
; then
19657 export COLLECT_NAMES
19664 ltmain
="$ac_aux_dir/ltmain.sh"
19667 # We use sed instead of cat because bash on DJGPP gets confused if
19668 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19669 # text mode, it properly converts lines to CR/LF. This bash problem
19670 # is reportedly fixed, but why not run on old versions too?
19671 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19672 ||
(rm -f "$cfgfile"; exit 1)
19676 cat << \_LT_EOF
>> "$cfgfile"
19678 # func_dirname file append nondir_replacement
19679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19680 # otherwise set result to NONDIR_REPLACEMENT.
19684 */*) func_dirname_result
="${1%/*}${2}" ;;
19685 * ) func_dirname_result
="${3}" ;;
19689 # func_basename file
19692 func_basename_result
="${1##*/}"
19695 # func_dirname_and_basename file append nondir_replacement
19696 # perform func_basename and func_dirname in a single function
19698 # dirname: Compute the dirname of FILE. If nonempty,
19699 # add APPEND to the result, otherwise set result
19700 # to NONDIR_REPLACEMENT.
19701 # value returned in "$func_dirname_result"
19702 # basename: Compute filename of FILE.
19703 # value retuned in "$func_basename_result"
19704 # Implementation must be kept synchronized with func_dirname
19705 # and func_basename. For efficiency, we do not delegate to
19706 # those functions but instead duplicate the functionality here.
19707 func_dirname_and_basename
()
19710 */*) func_dirname_result
="${1%/*}${2}" ;;
19711 * ) func_dirname_result
="${3}" ;;
19713 func_basename_result
="${1##*/}"
19716 # func_stripname prefix suffix name
19717 # strip PREFIX and SUFFIX off of NAME.
19718 # PREFIX and SUFFIX must not contain globbing or regex special
19719 # characters, hashes, percent signs, but SUFFIX may contain a leading
19720 # dot (in which case that matches only a dot).
19723 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19724 # positional parameters, so assign one to ordinary parameter first.
19725 func_stripname_result
=${3}
19726 func_stripname_result
=${func_stripname_result#"${1}"}
19727 func_stripname_result
=${func_stripname_result%"${2}"}
19733 func_opt_split_opt
=${1%%=*}
19734 func_opt_split_arg
=${1#*=}
19741 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19742 *) func_lo2o_result
=${1} ;;
19746 # func_xform libobj-or-source
19749 func_xform_result
=${1%.*}.lo
19752 # func_arith arithmetic-term...
19755 func_arith_result
=$
(( $
* ))
19759 # STRING may not start with a hyphen.
19762 func_len_result
=${#1}
19767 *) # Bourne compatible functions.
19768 cat << \_LT_EOF
>> "$cfgfile"
19770 # func_dirname file append nondir_replacement
19771 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19772 # otherwise set result to NONDIR_REPLACEMENT.
19775 # Extract subdirectory from the argument.
19776 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19777 if test "X$func_dirname_result" = "X${1}"; then
19778 func_dirname_result
="${3}"
19780 func_dirname_result
="$func_dirname_result${2}"
19784 # func_basename file
19787 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19791 # func_stripname prefix suffix name
19792 # strip PREFIX and SUFFIX off of NAME.
19793 # PREFIX and SUFFIX must not contain globbing or regex special
19794 # characters, hashes, percent signs, but SUFFIX may contain a leading
19795 # dot (in which case that matches only a dot).
19796 # func_strip_suffix prefix name
19800 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19801 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19806 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19807 my_sed_long_arg
='1s/^-[^=]*=//'
19812 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19813 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19819 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19822 # func_xform libobj-or-source
19825 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19828 # func_arith arithmetic-term...
19831 func_arith_result
=`expr "$@"`
19835 # STRING may not start with a hyphen.
19838 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19844 case $lt_shell_append in
19846 cat << \_LT_EOF
>> "$cfgfile"
19848 # func_append var value
19849 # Append VALUE to the end of shell variable VAR.
19857 cat << \_LT_EOF
>> "$cfgfile"
19859 # func_append var value
19860 # Append VALUE to the end of shell variable VAR.
19871 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19872 ||
(rm -f "$cfgfile"; exit 1)
19874 mv -f "$cfgfile" "$ofile" ||
19875 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19879 cat <<_LT_EOF >> "$ofile"
19881 # ### BEGIN LIBTOOL TAG CONFIG: FC
19883 # The linker used to build libraries.
19886 # How to create reloadable object files.
19887 reload_flag=$lt_reload_flag_FC
19888 reload_cmds=$lt_reload_cmds_FC
19890 # Commands used to build an old-style archive.
19891 old_archive_cmds=$lt_old_archive_cmds_FC
19893 # A language specific compiler.
19896 # Is the compiler the GNU compiler?
19899 # Compiler flag to turn off builtin functions.
19900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19902 # How to pass a linker flag through the compiler.
19903 wl=$lt_lt_prog_compiler_wl_FC
19905 # Additional compiler flags for building library objects.
19906 pic_flag=$lt_lt_prog_compiler_pic_FC
19908 # Compiler flag to prevent dynamic linking.
19909 link_static_flag=$lt_lt_prog_compiler_static_FC
19911 # Does compiler simultaneously support -c and -o options?
19912 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19914 # Whether or not to add -lc for building shared libraries.
19915 build_libtool_need_lc=$archive_cmds_need_lc_FC
19917 # Whether or not to disallow shared libs when runtime libs are static.
19918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19920 # Compiler flag to allow reflexive dlopens.
19921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19923 # Compiler flag to generate shared objects directly from archives.
19924 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19926 # Whether the compiler copes with passing no objects directly.
19927 compiler_needs_object=$lt_compiler_needs_object_FC
19929 # Create an old-style archive from a shared archive.
19930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19932 # Create a temporary old-style archive to link instead of a shared archive.
19933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19935 # Commands used to build a shared archive.
19936 archive_cmds=$lt_archive_cmds_FC
19937 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19939 # Commands used to build a loadable module if different from building
19940 # a shared archive.
19941 module_cmds=$lt_module_cmds_FC
19942 module_expsym_cmds=$lt_module_expsym_cmds_FC
19944 # Whether we are building with GNU ld or not.
19945 with_gnu_ld=$lt_with_gnu_ld_FC
19947 # Flag that allows shared libraries with undefined symbols to be built.
19948 allow_undefined_flag=$lt_allow_undefined_flag_FC
19950 # Flag that enforces no undefined symbols.
19951 no_undefined_flag=$lt_no_undefined_flag_FC
19953 # Flag to hardcode \$libdir into a binary during linking.
19954 # This must work even if \$libdir does not exist
19955 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19957 # If ld is used when linking, flag to hardcode \$libdir into a binary
19958 # during linking. This must work even if \$libdir does not exist.
19959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19961 # Whether we need a single "-rpath" flag with a separated argument.
19962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19964 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19965 # DIR into the resulting binary.
19966 hardcode_direct=$hardcode_direct_FC
19968 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19969 # DIR into the resulting binary and the resulting library dependency is
19970 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19971 # library is relocated.
19972 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19974 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19975 # into the resulting binary.
19976 hardcode_minus_L=$hardcode_minus_L_FC
19978 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19979 # into the resulting binary.
19980 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19982 # Set to "yes" if building a shared library automatically hardcodes DIR
19983 # into the library and all subsequent libraries and executables linked
19985 hardcode_automatic=$hardcode_automatic_FC
19987 # Set to yes if linker adds runtime paths of dependent libraries
19988 # to runtime path list.
19989 inherit_rpath=$inherit_rpath_FC
19991 # Whether libtool must link a program against all its dependency libraries.
19992 link_all_deplibs=$link_all_deplibs_FC
19994 # Fix the shell variable \$srcfile for the compiler.
19995 fix_srcfile_path=$lt_fix_srcfile_path_FC
19997 # Set to "yes" if exported symbols are required.
19998 always_export_symbols=$always_export_symbols_FC
20000 # The commands to list exported symbols.
20001 export_symbols_cmds=$lt_export_symbols_cmds_FC
20003 # Symbols that should not be listed in the preloaded symbols.
20004 exclude_expsyms=$lt_exclude_expsyms_FC
20006 # Symbols that must always be exported.
20007 include_expsyms=$lt_include_expsyms_FC
20009 # Commands necessary for linking programs (against libraries) with templates.
20010 prelink_cmds=$lt_prelink_cmds_FC
20012 # Specify filename containing input files.
20013 file_list_spec=$lt_file_list_spec_FC
20015 # How to hardcode a shared library path into an executable.
20016 hardcode_action=$hardcode_action_FC
20018 # The directories searched by this compiler when creating a shared library.
20019 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
20021 # Dependencies to place before and after the objects being linked to
20022 # create a shared library.
20023 predep_objects=$lt_predep_objects_FC
20024 postdep_objects=$lt_postdep_objects_FC
20025 predeps=$lt_predeps_FC
20026 postdeps=$lt_postdeps_FC
20028 # The library search path used internally by the compiler when linking
20029 # a shared library.
20030 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
20032 # ### END LIBTOOL TAG CONFIG: FC
20037 if test "$GCC" = yes; then
20038 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20040 echo "/* generated for $CC */" > tmp-stdint.h
20043 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20045 #ifndef GCC_GENERATED_STDINT_H
20046 #define GCC_GENERATED_STDINT_H 1
20048 #include <sys/types.h>
20051 if test "$acx_cv_header_stdint" != stdint.h
; then
20052 echo "#include <stddef.h>" >> tmp-stdint.h
20054 if test "$acx_cv_header_stdint" != stddef.h
; then
20055 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20058 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20059 /* glibc uses these symbols as guards to prevent redefinitions. */
20060 #ifdef __int8_t_defined
20065 #ifdef __uint32_t_defined
20071 # ----------------- done header, emit basic int types -------------
20072 if test "$acx_cv_header_stdint" = stddef.h
; then
20073 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20077 #ifndef __uint8_t_defined
20078 #define __uint8_t_defined
20080 typedef unsigned $acx_cv_type_int8_t uint8_t;
20087 #ifndef __uint16_t_defined
20088 #define __uint16_t_defined
20090 typedef unsigned $acx_cv_type_int16_t uint16_t;
20097 #ifndef __uint32_t_defined
20098 #define __uint32_t_defined
20100 typedef unsigned $acx_cv_type_int32_t uint32_t;
20107 #ifndef __int8_t_defined
20108 #define __int8_t_defined
20110 typedef $acx_cv_type_int8_t int8_t;
20117 #ifndef __int16_t_defined
20118 #define __int16_t_defined
20120 typedef $acx_cv_type_int16_t int16_t;
20127 #ifndef __int32_t_defined
20128 #define __int32_t_defined
20130 typedef $acx_cv_type_int32_t int32_t;
20135 elif test "$ac_cv_type_u_int32_t" = yes; then
20136 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20138 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20151 #ifndef __uint8_t_defined
20152 #define __uint8_t_defined
20154 typedef u_int8_t uint8_t;
20161 #ifndef __uint16_t_defined
20162 #define __uint16_t_defined
20164 typedef u_int16_t uint16_t;
20171 #ifndef __uint32_t_defined
20172 #define __uint32_t_defined
20174 typedef u_int32_t uint32_t;
20180 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20182 /* Some systems have guard macros to prevent redefinitions, define them. */
20204 # ------------- done basic int types, emit int64_t types ------------
20205 if test "$ac_cv_type_uint64_t" = yes; then
20206 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20208 /* system headers have good uint64_t and int64_t */
20216 elif test "$ac_cv_type_u_int64_t" = yes; then
20217 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20219 /* system headers have an u_int64_t (and int64_t) */
20225 #ifndef __uint64_t_defined
20226 #define __uint64_t_defined
20228 typedef u_int64_t uint64_t;
20233 elif test -n "$acx_cv_type_int64_t"; then
20234 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20236 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20240 typedef $acx_cv_type_int64_t int64_t;
20245 #ifndef __uint64_t_defined
20246 #define __uint64_t_defined
20248 typedef unsigned $acx_cv_type_int64_t uint64_t;
20254 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20256 /* some common heuristics for int64_t, using compiler-specific tests */
20257 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20260 #ifndef __int64_t_defined
20262 typedef long long int64_t;
20269 typedef unsigned long long uint64_t;
20273 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20274 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20275 does not implement __extension__. But that compiler doesn't define
20277 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20278 # define __extension__
20284 __extension__ typedef long long int64_t;
20290 __extension__ typedef unsigned long long uint64_t;
20294 #elif !defined __STRICT_ANSI__
20295 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20300 typedef __int64 int64_t;
20306 typedef unsigned __int64 uint64_t;
20309 # endif /* compiler */
20311 #endif /* ANSI version */
20315 # ------------- done int64_t types, emit intptr types ------------
20316 if test "$ac_cv_type_uintptr_t" != yes; then
20317 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20319 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20320 #ifndef __uintptr_t_defined
20322 typedef u$acx_cv_type_intptr_t uintptr_t;
20325 #ifndef __intptr_t_defined
20327 typedef $acx_cv_type_intptr_t intptr_t;
20333 # ------------- done intptr types, emit int_least types ------------
20334 if test "$ac_cv_type_int_least32_t" != yes; then
20335 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20337 /* Define int_least types */
20338 typedef int8_t int_least8_t;
20339 typedef int16_t int_least16_t;
20340 typedef int32_t int_least32_t;
20342 typedef int64_t int_least64_t;
20345 typedef uint8_t uint_least8_t;
20346 typedef uint16_t uint_least16_t;
20347 typedef uint32_t uint_least32_t;
20349 typedef uint64_t uint_least64_t;
20354 # ------------- done intptr types, emit int_fast types ------------
20355 if test "$ac_cv_type_int_fast32_t" != yes; then
20356 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20358 /* Define int_fast types. short is often slow */
20359 typedef int8_t int_fast8_t;
20360 typedef int int_fast16_t;
20361 typedef int32_t int_fast32_t;
20363 typedef int64_t int_fast64_t;
20366 typedef uint8_t uint_fast8_t;
20367 typedef unsigned int uint_fast16_t;
20368 typedef uint32_t uint_fast32_t;
20370 typedef uint64_t uint_fast64_t;
20375 if test "$ac_cv_type_uintmax_t" != yes; then
20376 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20378 /* Define intmax based on what we found */
20381 typedef int64_t intmax_t;
20383 typedef long intmax_t;
20388 typedef uint64_t uintmax_t;
20390 typedef unsigned long uintmax_t;
20396 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20398 #endif /* GCC_GENERATED_STDINT_H */
20401 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
20404 mv -f tmp-stdint.h gstdint.h
20415 ac_clean_files
=$ac_clean_files_save
20417 test $ac_write_fail = 0 ||
20418 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20421 # configure is writing to config.log, and then calls config.status.
20422 # config.status does its own redirection, appending to config.log.
20423 # Unfortunately, on DOS this fails, as config.log is still kept open
20424 # by configure, so config.status won't be able to write to it; its
20425 # output is simply discarded. So we exec the FD to /dev/null,
20426 # effectively closing config.log, so it can be properly (re)opened and
20427 # appended to by config.status. When coming back to configure, we
20428 # need to make the FD available again.
20429 if test "$no_create" != yes; then
20431 ac_config_status_args
=
20432 test "$silent" = yes &&
20433 ac_config_status_args
="$ac_config_status_args --quiet"
20435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20438 # would make configure fail if this is the last instruction.
20439 $ac_cs_success || as_fn_exit
1
20441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}